packages feed

sbv 12.2 → 14.4

raw patch · 1267 files changed

Files

CHANGES.md view
@@ -1,6 +1,427 @@ * Hackage: <http://hackage.haskell.org/package/sbv> * GitHub:  <http://github.com/LeventErkok/sbv> +### Version 14.4, 2026-07-03++  * Add `curry` and `uncurry` (for symbolic 2-tuples) and `curry3` and `uncurry3` (for+    symbolic 3-tuples) to `Data.SBV.Tuple`, mirroring `Prelude.curry`/`Prelude.uncurry`.++  * New example `Documentation.SBV.Examples.BitPrecise.Adders`, building ripple-carry and+    carry-lookahead adders out of logic gates and proving them correct (equal to bit-vector+    addition, equal to each other, and the carry-out equal to the overflow flag) fully+    automatically by bit-blasting.++  * New example `Documentation.SBV.Examples.TP.Adder`, the inductive companion to the above:+    it models the operands as arbitrary-length symbolic bit lists and proves, for all widths+    at once, that a ripple-carry adder computes the integer value of the bits, and that a+    parallel-prefix (carry-lookahead) tree computes the same carry as the ripple---resting on+    the associativity of the generate/propagate carry operator.++  * Use str.to_re (instead of str.to.re) in regular-expression construction, which is the standard+    naming in SMTLib2. Thanks to May Torrence for reporting the discrepancy.++### Version 14.3, 2026-06-19++  * Improve fpRoundToIntegralH to remove redundant internal check. Thanks to Ryan Scott for the report.++  * Add support for arctan/arcsin/arccos in CVC5. Thanks to Ryan Scott for pointing out support for it.++  * Improved backend-solver communication so that if a solver returns an error message SBV now makes+    sure it gets captured and displayed properly before the solver-process itself terminates.++  * Drop support for pi as an SReal: The whole premise of SReal is it represents algebraic-reals+    (i.e., those that are roots of polynomials) exactly. But pi is not representable as such, since+    it's transcendental. Older versions of SBV used an approximation, but that's confusing to say+    the least, and downright wrong. Note that you can still use pi at floating-point types, where+    precision loss is built into the semantics.++  * Fix the enumeration quasi-quoter for a zero step: `[sEnum| 1, 1 .. 5 |]` is now the+    (semantically infinite) list of 1's, instead of the empty list.++  * Soundness fix for termination measures: a real-valued measure is now rejected at compile+    time. The reals are not well-ordered (an infinite descending chain like 1, 1/2, 1/4, ...+    never reaches a minimum), so a non-negative, strictly-decreasing real measure does not+    imply termination. Use an integer-valued measure instead.++  * Termination measures may now be given over the bounded bit-vector types (`Word8`..`Word64`,+    `Int8`..`Int64`, `WordN n`, `IntN n`), in addition to the integer/float types supported before.++### Version 14.2, 2026-06-05++  * Fix float to integer conversions, which were ignoring the rounding mode previously. Thanks to+    Ryan Scott for the report.++  * Fix the implementation of properFraction for arbitrary-sized floats. Thanks to Ryan Scott+    for the report and the fix.++  * Fix a bug in pCase, where SBV was over-approximating the bound variables, causing the+    unused-variable warning checker to flag branches unnecessarily in generated code.++  * New TP example: Run-length encoding roundtrip (`Documentation.SBV.Examples.TP.RunLength`).+    Proves that `decode (encode xs) == xs` for a run-length encode/decode pair.++  * New TP example: Two-stack queue (`Documentation.SBV.Examples.TP.Queue`).+    Proves that a queue implemented with two lists (front/back) correctly implements+    FIFO semantics via an abstraction function.++  * New cabal flag `compile_examples` (default: True) controls whether the+    `Documentation.SBV.Examples.*` modules are built as part of the library.+    Disable with `-f-compile_examples` when using SBV as a dependency to skip+    compiling the example modules. Thanks to Robin Webbers for the contribution.++  * Add more floating-point operations to `Data.SBV.Dynamic`. Thanks to Ryan Scott for the patch.++### Version 14.1, 2026-05-04++  * [BACKWARDS COMPATIBILITY] Removed `tpRibbon`. The ribbon length for TP proof+    output is now auto-computed from the proof structure via a lightweight dry-run+    pass. Users no longer need to manually set it.++  * New TP combinators `whenDryRun` and `unlessDryRun` allow user code to guard+    actions (e.g., proof tree printing) that should only run during the real pass of a TP+    based proof.++  * TP `pCase` now supports nested `case` expressions as proof case-splits,+    mirroring how `sCase` treats nested `case` as symbolic cases.++  * Consolidated internal solver IPC timeouts into named constants.+    Set the environment variable `SBV_COMM_TIMEOUT_FACTOR` to scale them (e.g., `2` to double).++  * Better handling of logic-strings, accommodating solver differences. Thanks to Ryan Scott for the report.++  * Fixed a bug in fpRemH, which calculates the floating point reminder for concrete values. The result+    was rounded twice, which is against the specification. Thanks to Ryan Scott for the report and the fix.++  * Simplify how floating-point literals are printed. The older method worked for Z3/CVC5, but not for Bitwuzla.+    Thanks to Ryan Scott for the report and the fix.++  * Fix the definition of sRealToSIntegerTruncate to do proper truncation. Thanks to Ryan Scott for the+    report and the fix.++### Version 14.0, 2026-04-01++  * [BACKWARDS COMPATIBILITY] The most important change in this release is how SBV treats+    function definitions via `smtFunction` and its variants. In prior versions, these definitions were+    directly translated to SMT-lib, without checking that they actually terminate. Starting with+    this release, SBV now requires all functions to terminate (with an escape hatch where the user+    explicitly opts out), and it proves it for all functions involved in a proof. SBV guesses+    and verifies a termination measure, and in case it can't do so will tell the user to supply+    their own version. This major departure from the old style of ignoring termination is a step+    towards incorporating a better architecture for much improved (semi-)automated theorem proving+    in SBV. See below for more details.++  * [BACKWARDS COMPATIBILITY] Major improvements to the `sCase` and `pCase` quasi-quoters:+    - Type prefix is no longer required; the type is inferred automatically+      from the patterns. Old syntax: `[sCase|Expr e of ...]`. New syntax: `[sCase| e of ...]`.++    - Wildcard-only patterns are now supported. An unguarded wildcard generates the rhs directly,+      while guarded wildcards produce an `ite`-chain (for `sCase`) or proof obligations (for `pCase`).++    - Built-in types are now supported: `Maybe`, `Either`, `List`, and `Tuple2` through `Tuple8`.+      Nested patterns across built-in types are also supported (e.g., `Just (x:_)`, `Left (a, b)`).+      For single-constructor types, the generated code omits the redundant constructor tester guard.++    - Primitive types are now supported: `Bool`, `Integer`, `Char`, and `String`. Patterns can use+      `True`/`False`, integer literals, character literals, string literals, variable bindings,+      and wildcards.++       ```haskell+       [sCase| m of         [sCase| x of      [sCase| xs of                [sCase| c of+          Nothing -> 0         0 -> sTrue        []      -> 0                 'a' -> 1+          Just x  -> x + 1     _ -> sFalse       x : xs' -> x + f xs'         'b' -> 2+       |]                   |]                |]                               _   -> 0+                                                                           |]++       [sCase| x of                            [sCase| x of+          _ | x .> 0 -> x                         0         -> y+            | sTrue  -> -x                        _ | x .> y -> x+       |]                                           | sTrue  -> y+                                               |]+       ```++    - As-patterns (`x@pat`) are now supported in both top-level and nested positions.+      The as-name is bound to the scrutinee (top-level) or accessor (nested) via a+      let-binding, which is elided when the name is unused. This works with all pattern+      types: constructors, tuples, lists, wildcards, and in combination with nested `case`+      expressions.++       ```haskell+       [sCase| xs of+          a : tl@(_ : _) -> a + case tl of+                                   b : _ -> b+                                   []    -> 0+          _ : _           -> 0+          []              -> 0+       |]+       ```++    - Plain `case` expressions inside `[sCase|...|]` and `[pCase|...|]` are now automatically+      treated as symbolic case-splits. This works around GHC's quasi-quoter nesting limitation+      (`[sCase|` cannot contain `|]`), and makes nested symbolic case expressions natural:++       ```haskell+       [sCase| e of+          Zero      -> case m of+                         Nothing -> 0+                         Just v  -> v+          Num k     -> k+          Add a b   -> t a m + t b m+       |]+       ```++      All `case` expressions inside `sCase` and `pCase` become symbolic; use a `let` or helper+      function for regular Haskell case expressions.++  * Improved documentation for `lambdaArray`, explaining the model-theoretic distinction+    between the pure array theory (`select`/`store`/`const`) and the richer setting where+    arrays are identified with function spaces.++  * [BACKWARDS COMPATIBILITY] `recall` and `recallWith` no longer take a `String` argument.+    A recalled proof is now automatically cached and reused if the same proposition is+    encountered again. `tpNoCache` has been removed.++  * SBV now detects conflicting `smtFunction` definitions: if two calls use the same SMT+    name but have different bodies, an error is raised. Identical re-registrations (which+    happen naturally with recursive functions) remain allowed.++  * SBV now automatically checks termination of recursive functions defined via `smtFunction`.+    A measure (a non-negative expression that strictly decreases at each recursive call) is+    guessed automatically from argument types when possible. For functions that need an explicit+    measure, use `smtFunctionWithMeasure`:++    ```haskell+    ld = smtFunctionWithMeasure "ld" (\k n -> (n - k) `smax` 0, [])+       $ \k n -> ite (n `sMod` k .== 0) k (ld (k+1) n)+    ```++    When the measure requires inductive properties to verify, supply TP proof actions as helpers+    via `measureLemma`/`measureLemmaWith`:++    ```haskell+    normalize = smtFunctionWithMeasure "normalize"+                  ( \f -> tuple (ifComplexity f, ifDepth f)+                  , [measureLemma ifDepthNonNeg, measureLemma ifComplexityPos]+                  )+              $ \f -> ...+    ```++  * For nested recursive functions (like McCarthy's 91 function) where the termination argument+    depends on the function's return value at smaller inputs, use `smtFunctionWithContract`. This+    takes a measure and a contract (post-condition) that are verified simultaneously via well-founded+    induction:++    ```haskell+    mcCarthy91 = smtFunctionWithContract "mcCarthy91"+                   ( \n -> 0 `smax` (101 - n)+                   , \n r -> n .<= 100 .=> r .== 91+                   , []+                   )+               $ \n -> ite (n .> 100) (n - 10) (mcCarthy91 (mcCarthy91 (n + 11)))+    ```++  * Productive (corecursive) functions can now be defined via `smtProductiveFunction`. Unlike+    terminating functions, productive functions need not have a base case — they may produce+    infinite output, so long as every recursive call is guarded by a data constructor.++  * New function `smtFunctionNoTermination` for defining recursive SMT functions without any+    termination check. The function is emitted as `define-fun-rec` and the user takes+    responsibility for well-definedness. Use this for functions where termination is believed+    but cannot be proven. Any TP proof that depends on such a function will be marked as+    `[Modulo: <name> termination]` instead of `[Proven]` in its root of trust.++  * New example `Documentation.SBV.Examples.TP.Countdown`, proving properties of a+    list-building countdown function using induction.++  * New example `Documentation.SBV.Examples.TP.NatStream`, demonstrating `smtProductiveFunction`+    with the infinite stream `nats n = [n, n+1, n+2, ...]` and proofs about its head, length, and+    element access.++  * New example `Documentation.SBV.Examples.TP.MutualCorecursion`, demonstrating mutually+    corecursive productive functions. Two functions `ping` and `pong` take turns producing+    elements of a stream, and we prove elementwise equality and that the k-th element of+    `ping n` is `n + k`.++  * New example `Documentation.SBV.Examples.TP.Collatz`, using `smtFunctionNoTermination` to+    define the Collatz function (whose termination is a famous open problem) and proving that+    all powers of two reach 1.++### Version 13.6, 2026-03-02++  * The `sCase` quasi-quoter now supports nested constructor patterns. Sub-patterns+    in a constructor match can themselves be constructors, including nullary ones. For example:++    ```haskell+    normalize f = smtFunction "normalize" $ \f ->+      [sCase|Formula f of+        If (If p q r) left right -> normalize (sIf p (sIf q left right) (sIf r left right))+        If c          left right -> sIf c (normalize left) (normalize right)+        _                        -> f+      |]+    ```++    Nested patterns generate appropriate `isCstr`/`getCstr_i` guards and let-bindings+    automatically. Pattern guards (`, e1, e2`) may also be used alongside nested patterns.+    Additionally, `| True` is now accepted as a synonym for `| sTrue` in guards.++  * The `sCase` quasi-quoter now supports integer and string literal patterns in nested+    positions (and at the top level inside a constructor). For example:++    ```haskell+    p e = [sCase|Formula e of+             Val 0         -> 100          -- fires when the Val field equals 0+             Val 1         -> 200          -- fires when the Val field equals 1+             Add (Val 0) r -> eval r       -- nested literal: fires when left child is Val 0+             _             -> eval e+          |]+    ```++    A literal sub-pattern desugars to a symbolic equality guard (`getC_i e .== lit`),+    so the exhaustiveness checker correctly requires a fallback for any constructor+    that only appears with literal sub-patterns.++  * Add the `pCase` quasi-quoter for proof case-splits. Same syntax as `sCase`, but+    generates `cases [cond ==> proof, ...]` instead of `ite` chains. Wildcards are+    allowed as the last arm (with or without guards), generating a negated disjunction+    of all prior guards to do fall-thru proofs.++  * Add minimum and maximum to Data.SBV.List. If they receive empty list as argument,+    then the result is underspecified, i.e., can be any value of the element type.++  * Add mapConcat to Documentation.SBV.Examples.TP.Lists, which proves the theorem+    `map f . concat = concat . map (map f)`.++  * Add Documentation.SBV.Examples.TP.Kadane, proving the correctness of Kadane's algorithm+    for computing the maximum segment sum. The proof uses a generalized invariant lemma to relate+    the accumulator-based implementation to the specification. (This proof was completed with+    assistance from Claude, in particular the part where we had to come up with the invariant+    about the helper function.)++  * Add Documentation.SBV.Examples.TP.Coins, proving the classic coin change theorem: for any+    amount n >= 8, you can make exact change using only 3-cent and 5-cent coins. Inspired by+    an Imandra example at <https://github.com/imandra-ai/imandrax-examples/blob/main/src/coins.iml>.++  * Add Documentation.SBV.Examples.TP.Ackermann, proving the relationship between Ackermann's+    original function and R. Peter's version (1935). Inspired by an Imandra example at+    <https://github.com/imandra-ai/imandrax-examples/blob/main/src/ackermann.iml>. This proof+    was developed by Claude with minimal user prompting and guidance.++  * Add Documentation.SBV.Examples.TP.PigeonHole, proving the pigeonhole principle: If a list+    of numbers sum up to more than the length of the list, then some cell must have a value+    greater than one.++  * Add Documentation.SBV.Examples.TP.TautologyChecker, a verified tautology checker for+    propositional formulas using an unordered BDD-style SAT solver approach. The proof establishes+    both soundness (if the checker says a formula is a tautology, it evaluates to true under all+    bindings) and completeness (if the checker says a formula is not a tautology, falsify returns+    a counterexample binding). Inspired by an Imandra example at+    <https://github.com/imandra-ai/imandrax-examples/blob/main/src/tautology.iml>, originally+    based on Boyer-Moore '79. This proof was developed with Claude's assistance.++  * Add Documentation.SBV.Examples.TP.ConstFold, proving the correctness of a constant-folding+    optimizer for a simple expression language with variables, constants, arithmetic, and let-bindings.+    The optimizer performs bottom-up simplification including arithmetic identities (e.g., addition/+    multiplication by 0 or 1, constant propagation) and let-folding (inlining `Let x (Con v) b` via+    capture-avoiding substitution).++### Version 13.5, 2026-01-26++  * Replace internal SMT-lib program representation from plain String to Text. This+    should improve performance and memory behavior in certain cases. Since solver time+    dominates for most cases, this is not going to be noticeable by end-users, except+    for very large programs. In any case, it should at least improve memory usage.+    NB. Historical note: Most of these transformations were done by Claude code; the+    era of AI coding had its first contributions to SBV. I' duly impressed by Claude's+    ability to understand and manipulate Haskell. (I also tried Gemini, which was less+    successful, compared to Claude.) I, for one, welcome our new computer overlords.++  * Added Documentation.SBV.Examples.TP.UpDown.hs, demonstrating proof of a a couple of+    list-processing functions together with naturals using TP. The problem itself is inspired+    by a midterm exam question for an ACL2-class taught by J Moore at UT Austin back in 2011;+    a minor tribute to J's amazing legacy.++### Version 13.4, 2026-01-09++  * Remove Eq constraint on readArray, generalizing it to arbitrary types for array-reads.++  * Added 'freeArray', which creates an array with no constraints at all. (Compare to 'constArray'.)+    Note that this is useful for expression contexts. If you're in a symbolic context (i.e., in+    the Symbolic monad), you can just use 'free' or 'sArray' as usual.)++  * Add missing instance of SatModel for Arrays. Thanks to Robin Webbers for the patch.++  * Export ArrayModel, so it can be programmatically processed after a call.++  * Moved Data/SBV/TP/List.hs to Documentation/SBV/Examples/TP/Lists.hs, which aligns better with the+    haddock documentation.++  * Fixed closure-version implementations of list functions filter, partition, takeWhile, and dropWhile.+    Thanks to amigalemming on github for the bug report.++  * Query mode now works with optimization directives. In this case, we perform lexicographic+    optimization. (Let me know if you need other methods.) The advantage of this is that calls+    to getValue works in this mode, so it is easier to access optimized model values. In case+    the optimal value is in an extension field (i.e., involves epsilon or infinity values),+    then calls to  getValue  will throw an error and alert the user. In this latter case, you+    should resort back to using the regular optimize calls.++  * Added new puzzle example: Documentation.SBV.Examples.Puzzles.SquareBirthday++  * Add recallWith to Data.SBV.TP, which allows you to change the solver in a recalled proof.++### Version 13.3, 2025-12-05++  * Added 'constArray', which allows creation of constant valued symbolic arrays. The definition+    is semantically equivalent to 'lambdaArray . const', but we generate simpler SMTLib code+    for it. For the general case of initializing an array with arbitrary functions, continue+    using 'lambdaArray'. Thanks to Robin Webbers for the patch.++  * Improved the infinite-number-of-primes theorem statement slightly.++### Version 13.2, 2025-12-02++  * Improve support for SMTDefinable class, allowing support for on-the-fly generated functions.+    Thanks to Eddy Westbrook for the patch. This should have no impact on existing code or usage,+    just allowing new use cases. Let us know if it breaks anything.++  * SBV now supports uninterpreted functions of arbitrary arities. (Previously, we had support for upto+    12 args; Eddy's work above generalized this to arbitrary arity.)++  * Added Documentation.SBV.Examples.TP.Primes, which formalizes prime numbers and proves that there are+    an infinite number of primes.++### Version 13.1, 2025-10-31++  * Tweaks to make sure SBV compiles with GHC 9.8.4. No other changes on top of 13.0 below.++### Version 13.0, 2025-10-31++  * SBV now supports algebraic data-types. A new function 'mkSymbolic' is introduced, which take a list of types+    and turns them into types that you can symbolically process. Clearly, Haskell ADTs are extremely rich:+    Parameterized, self-referential, and mutually-recursive datatypes are supported. GADTs and more complicated+    forms of data-types (with higher-order fields, for instance) are not supported. What SBV covers should handle+    most use cases, please get in touch if you have a use case that is currently not supported.++  * Introduced a new quasiquoter, named sCase, which allows writing case-expressions over symbolic ADTs. It supports+    wildcards and guards. It does not support pattern guards, nor complex patterns. (Each pattern is either a+    variable or an underscore.) Symbolic-boolean guards allow for concise expressions. This construct makes+    symbolic programming with ADTs easier.++  * Added examples under Documentation.SBV.Examples.ADT, demonstrating the use of basic ADTs and a case study+    of modeling type-checking constraints.++  * Added Documentation.SBV.Examples.TP.Peano, modeling peano numbers using an ADT and demonstrating many proofs.++  * Added Documentation.SBV.Examples.TP.VM demonstrating the correctness of a simple interpreter over an expression+    language with respect to a version that compiles the expression and runs the instructions over a virtual machine.++  * [BACKWARDS COMPATIBILITY] The old functions 'mkSymbolicEnumeration' and 'mkUninterpretedSort' are now removed,+    since their functionality is subsumed by 'mkSymbolic'.++  * [BACKWARDS COMPATIBILITY] Strong-induction now takes extra proof objects that can be used to establish that+    the measure provided is non-negative. This is usually not needed, so simply pass []. However, in case of strong+    induction over ADTs in particular, it can come in handy to aid the solver in establishing the given measure+    is valid.+ ### Version 12.2, 2025-08-15    * Fix floating-point constant-folding code, which inadvertently constant-folded for symbolic rounding modes.@@ -43,7 +464,7 @@     implications and ask them to use custom-functions instead.  ### Version 12.0, 2025-07-04-  +   * [BACKWARDS COMPATIBILITY] Renamed KnuckleDragger to TP, for theorem-proving. The original name was confusing, and     the design has diverged from Phil's tool in significant ways and goals. @@ -72,7 +493,7 @@       - Documentation.SBV.Examples.TP.Majority:   Proof of Boyer-Moore's majority selection algorithm correct.       - Documentation.SBV.Examples.TP.McCarthy91: Proof of correctness for McCarthy's 91 function.       - Documentation.SBV.Examples.TP.PowerMod:   Proving arithmetic properties relating power operation and modular arithmetic.-      - Documentation.SBV.Examples.TP.ReverseAcc: Proving the accummulating reverse definition is correct.+      - Documentation.SBV.Examples.TP.ReverseAcc: Proving the accumulating reverse definition is correct.       - Documentation.SBV.Examples.TP.Reverse:    Proving a definition of reverse that uses no auxiliary definitions is correct.       - Documentation.SBV.Examples.TP.SumReverse: Proving summing a list and its reverse are equivalent. @@ -114,7 +535,7 @@     methods/tactics on top of knuckle-dragger provided facilities.  ### Version 11.6, 2025-05-10- +   * Make SBV compile cleanly with GHC 9.8.4. This is really as far back a GHC you should be using,     unless you can't use anything newer. @@ -133,7 +554,7 @@  ### Version 11.4, 2025-03-12 -  * Generalize the strong-induction principle to use lexicographic order for simultanous+  * Generalize the strong-induction principle to use lexicographic order for simultaneous     induction over two lists.    * Added a proof of correctness for the merge-sort algorithm using KnuckleDragger@@ -167,11 +588,11 @@     the SMT solver to find tricky proofs. See Documentation/SBV/Examples/KnuckleDragger directory for many     examples demonstrating the new features. -  * Generalize support for polyorphic and higher-order functions. These are still experimental, as SMTLib's+  * Generalize support for polymorphic and higher-order functions. These are still experimental, as SMTLib's     higher-order function support is nascent. (Version 3 of SMTLib will have proper support for such functions, which     is not released yet.) Currently, SBV can handle polymorphic and higher-order usage of: 'reverse', 'any', 'all',     'filter', 'map', 'foldl', 'foldr', 'zip', and 'zipWith'; all exported from the 'Data.SBV.List' module.-    These functions are supported polymporphically, and (except reverse and zip) all take a function as+    These functions are supported polymorphically, and (except reverse and zip) all take a function as     an argument. SBV firstifies these functions, and the resulting code is compatible with Z3 and CVC5.     (Firstification might change in the future, as SMTLib gains support for more higher-order     features itself.) Proof-support in backend solvers for higher-order functions is still quite weak,@@ -255,14 +676,14 @@    * Fix a few custom-floating-point format conversion bugs. Thanks to Sirui Lu for the patch. -  * Add a few OVERLAPPABLE pragms to generic Queriable instances to make them easily overridable by+  * Add a few OVERLAPPABLE pragmas to generic Queriable instances to make them easily overridable by     user programs. Thanks to Marco Zocca for reporting.    * Add signedMulOverflow, which checks whether multiplication of two signed-bitvectors can overflow.     SBV already had a method (bvMulO) that served this purpose, translating to the corresponding predicate     in SMTLib. Unfortunately not all solvers support this predicate efficiently. In particular, as of Aug 2024,     bitwuzla has a performant checker for this overflow, but z3 does not. In case you cannot use bitwuzla for-    some reason, you might want to use the new signedMulOverflow funtion for better performance.+    some reason, you might want to use the new signedMulOverflow function for better performance.  ### Version 10.11, 2024-07-26 @@ -417,7 +838,7 @@     ForallN and ExistsN for creating multiple variables at the same time.      The new function skolemize can be used to skolemize quantified formulas: The skolemized version of a-    formula has no existential (replaced by uninterpeted functions), and is equisatisfiable to the original.+    formula has no existential (replaced by uninterpreted functions), and is equisatisfiable to the original.      See the following files demonstrating reasoning with quantifiers: @@ -438,7 +859,7 @@   * Added new SList functions: map, mapi, foldl, foldr, foldli, foldri, zip, zipWith, filter, all, any.     Note that these work on arbitrary--but finite--length lists, with all terminating elements, per     usual SBV interpretation. These functions map to the underlying solver's fold and map functions,-    via lambda-abtractions. Note that the SMT engines remain incomplete with respect to sequence+    via lambda-abstractions. Note that the SMT engines remain incomplete with respect to sequence     theories. (That is, any property that requires induction for its proof will cause unknown     answers, or will not terminate.) However, basic properties, especially when the solver can determine the     shape of the sequence arguments (i.e., number of elements), should go through.@@ -620,7 +1041,7 @@     significand. This format is affectionately called "brain-float"     because it's often used in modeling neural networks machine-learning     applications, offering a wider-range than IEEE's half-float, at the-    exponse of reduced precision. It has 8-exponent bits and 8-significand+    expense of reduced precision. It has 8-exponent bits and 8-significand     bits, including the hidden bit.    * Add support for SRational type, rational values built out of the ratio@@ -634,7 +1055,7 @@     use cases. (Essentially, when there are no uninterpreted values or sorts present.)     The new algorithm has been measured to be at least an order of magnitude     faster or more in common cases as it splits the search space into disjoint-    models, reducing the burden of accummulated lemmas over multiple calls. (See+    models, reducing the burden of accumulated lemmas over multiple calls. (See     http://theory.stanford.edu/%7Enikolaj/programmingz3.html#sec-blocking-evaluations     for details.) @@ -697,7 +1118,7 @@   * Use SMTLib's int2bv if supported by the backend solver. If not, we still     do a manual translation. (CVC4 and z3 support it natively, Yices and     MathSAT does not, for which we do the manual translation. ABC and dReal-    doesn't support the coversion at all, since former doesn't support integers+    doesn't support the conversion at all, since former doesn't support integers     and the latter doesn't support bit-vectors.) Thanks to Martin Lundfall     for the initial pull request. @@ -1502,7 +1923,7 @@     Note that currently only Z3 and CVC4 has support for this logic,     and they do differ in some details. Various character/string     operations are supported, including length, concatenation,-    regular-expression matching, substrig operations, recognizers, etc.+    regular-expression matching, substring operations, recognizers, etc.     If you use this logic, you are likely to find bugs in solvers themselves     as support is rather new: Please report. @@ -2520,10 +2941,6 @@   * C code generation: Correctly translate square-root and fusedMA functions to C.  ### Version 3.1, 2014-07-12-- NB: GHC 7.8.1 and 7.8.2 has a serious bug <https://gitlab.haskell.org/ghc/ghc/-/issues/9078>-     that causes SBV to crash under heavy/repeated calls. The bug is addressed-     in GHC 7.8.3; so upgrading to GHC 7.8.3 is essential for using SBV!   New features/bug-fixes in v3.1: 
@@ -1,4 +1,4 @@-Copyright (c) 2010-2025, Levent Erkok (erkokl@gmail.com)+Copyright (c) 2010-2026, Levent Erkok (erkokl@gmail.com) All rights reserved.  The sbv library is distributed with the BSD3 license. See the LICENSE file
Data/SBV.hs view
@@ -81,6 +81,8 @@ -- --   * Uninterpreted sorts, and proofs over such sorts, potentially with axioms. --+--   *  Algebraic data types, including recursive fields..+-- --   * Ability to define SMTLib functions, generated directly from Haskell versions, --     including support for recursive and mutually recursive functions. --@@ -156,7 +158,7 @@ -- solvers are not good at proofs that require induction, or those that require complex chains of reasoning. Induction is necessary to reason about -- any recursive algorithm, and most such proofs require carefully constructed equational steps. ----- SBV allows for a style of semi-automated theorem proving, called TP. which can be used to construct such proofs.+-- SBV allows for a style of semi-automated theorem proving, called TP, which can be used to construct such proofs. -- The documentation includes example proofs for many list functions, and even inductive proofs for -- the familiar insertion, merge, quick-sort algorithms, along with a proof that the square-root of 2 is irrational. -- While a proper theorem prover (such as Lean, Isabelle etc.) is a more appropriate choice for such proofs, with some@@ -211,7 +213,7 @@   , SWord8, SWord16, SWord32, SWord64, SWord, WordN   -- *** Signed bit-vectors   , SInt8, SInt16, SInt32, SInt64, SInt, IntN-  -- *** Converting between fixed-size and arbitrary bitvectors+  -- *** Converting between fixed-size and arbitrary bit-vectors   , BVIsNonZero, FromSized, ToSized, fromSized, toSized   -- ** Unbounded integers   -- $unboundedLimitations@@ -236,18 +238,18 @@   , SChar, SString   -- ** Symbolic lists   -- $lists-  , SList+  , SList, (.:)   -- ** Symbolic enumerators   , EnumSymbolic(..), sEnum+  -- ** Symbolic case-expressions+  , sCase, pCase   -- ** Tuples   -- $tuples   , SymTuple, STuple, STuple2, STuple3, STuple4, STuple5, STuple6, STuple7, STuple8-  -- ** Sum types-  , SMaybe, SEither   -- ** Sets   , RCSet(..), SSet   -- * Arrays of symbolic values-  , SArray, sArray, sArray_, sArrays, readArray, writeArray, lambdaArray, listArray, ArrayModel+  , SArray, sArray, sArray_, sArrays, readArray, writeArray, lambdaArray, constArray, freeArray, listArray, ArrayModel(..)    -- * Creating symbolic values   -- ** Single value@@ -270,10 +272,14 @@   , sString, sString_   , sList, sList_   , sTuple, sTuple_-  , sEither, sEither_-  , sMaybe, sMaybe_   , sSet, sSet_ +  -- * Symbolic 'Maybe'+  , SMaybe, sMaybe, sMaybe_, sMaybes++  -- * Symbolic 'Either'+  , SEither, sEither, sEither_, sEithers+   -- ** List of values   -- $createSyms   , sBools@@ -294,13 +300,11 @@   , sStrings   , sLists   , sTuples-  , sEithers-  , sMaybes   , sSets    -- * Symbolic Equality and Comparisons   -- $distinctNote-  , EqSymbolic(..), OrdSymbolic(..), Equality(..)+  , EqSymbolic(..), OrdSymbolic(..), Zero(..), MeasureOf, Equality(..)   -- * Conditionals: Mergeable values   , Mergeable(..), ite, iteLazy @@ -343,16 +347,19 @@   -- ** Showing values in detail   , crack -  -- * Enumerations-  -- $enumerations-  , mkSymbolicEnumeration--  -- * Uninterpreted sorts, constants, and functions-  -- $uninterpreted-  , mkUninterpretedSort+  -- * Symbolic data types+  -- $symbolicADT+  , mkSymbolic    -- * Stopping unrolling: Defined functions-  , SMTDefinable(..), smtHOFunction, Closure(..), registerType+  , SMTDefinable(..)+  , smtFunction+  , smtFunctionWithMeasure+  , smtFunctionWithContract+  , smtProductiveFunction+  , smtFunctionNoTermination+  , ContractOf, MeasureHelper(..)+  , smtHOFunction, smtHOFunctionWithMeasure, Closure(..), registerType    -- * Special relations   -- $specialRels@@ -442,7 +449,7 @@   -- ** Programmable model extraction   -- $programmableExtraction   , Modelable(..), displayModels, extractModels-  , getModelDictionaries, getModelValues, getModelUninterpretedValues+  , getModelDictionaries, getModelValues    -- * SMT Interface   , SMTConfig(..), TPOptions(..), Timing(..), SMTLibVersion(..), Solver(..), SMTSolver(..)@@ -479,6 +486,8 @@ import Control.Monad       (unless) import Control.Monad.Trans (MonadIO) +import qualified Data.Text as T+ import Data.SBV.Core.AlgReals import Data.SBV.Core.Data       hiding (free, free_, mkFreeVars,                                         output, symbolic, symbolics, mkSymVal,@@ -497,7 +506,7 @@                                         sRational, sRational_, sRationals,                                         sWord8, sWord8_, sWord8s, sWord16, sWord16_, sWord16s,                                         sWord32, sWord32_, sWord32s, sWord64, sWord64_, sWord64s,-                                        sMaybe, sMaybe_, sMaybes, sEither, sEither_, sEithers, sSet, sSet_, sSets,+                                        sSet, sSet_, sSets,                                         sArray, sArray_, sArrays,                                         sBarrelRotateLeft, sBarrelRotateRight, zeroExtend, signExtend, sObserve) @@ -508,6 +517,9 @@  import Data.SBV.Core.SizedFloats +import Data.SBV.Maybe hiding (map)+import Data.SBV.Either+ import Data.SBV.Core.Floating import Data.SBV.Core.Symbolic   ( MonadSymbolic(..), SymbolicT, registerKind                                 , ProgInfo(..), rProgInfo, SpecialRelOp(..), UICodeKind(UINone)@@ -548,6 +560,7 @@ import Data.Char (isSpace, isPunctuation) import Data.SBV.List (EnumSymbolic(..)) import Data.SBV.SEnum (sEnum)+import Data.SBV.SCase (sCase, pCase)  import Data.SBV.Rational @@ -677,7 +690,7 @@   Goals can be lexicographically (default), independently, or pareto-front optimized. The relevant functions are:        * 'minimize': Minimize a given arithmetic goal-      * 'maximize': Minimize a given arithmetic goal+      * 'maximize': Maximize a given arithmetic goal    Goals can be optimized at a regular or an extended value: An extended value is either positive or negative infinity   (for unbounded integers and reals) or positive or negative epsilon differential from a real value (for reals).@@ -823,7 +836,7 @@ overflow/underflow as it is the case with the bounded types, such as 'SWord8', 'SInt16', etc. However, some bit-vector based operations are /not/ supported for the 'SInteger' type while in the verification mode. That is, you can use these operations on 'SInteger' values during normal programming/simulation.-but the SMT translation will not support these operations since there corresponding operations are not supported in SMT-Lib.+but the SMT translation will not support these operations since their corresponding operations are not supported in SMT-Lib. Note that this should rarely be a problem in practice, as these operations are mostly meaningful on fixed-size bit-vectors. The operations that are restricted to bounded word/int sizes are: @@ -880,10 +893,10 @@ -}  {- $partitionIntro-The function 'allSatPartition' one to restrict the results returned by calls to 'Data.SBV.allSat'.+The function 'allSatPartition' allows one to restrict the results returned by calls to 'Data.SBV.allSat'. In certain cases, we might consider certain models to be "equivalent," i.e., we might want to create equivalence classes over the search space when it comes to what we consider all satisfying-solutions. In these cases, we can use 'allSatPartition' tell SBV what classes of solutions to consider+solutions. In these cases, we can use 'allSatPartition' to tell SBV what classes of solutions to consider as unique. Consider:  >>> :{@@ -894,30 +907,30 @@    allSatPartition "p2" $ y .>= 0 :} Solution #1:-  x  =     0 :: Integer-  y  =    -1 :: Integer-  p1 =  True :: Bool-  p2 = False :: Bool-Solution #2:   x  =    -1 :: Integer   y  =     0 :: Integer   p1 = False :: Bool   p2 =  True :: Bool+Solution #2:+  x  =    0 :: Integer+  y  =    0 :: Integer+  p1 = True :: Bool+  p2 = True :: Bool Solution #3:+  x  =     0 :: Integer+  y  =    -1 :: Integer+  p1 =  True :: Bool+  p2 = False :: Bool+Solution #4:   x  =    -1 :: Integer   y  =    -1 :: Integer   p1 = False :: Bool   p2 = False :: Bool-Solution #4:-  x  =    0 :: Integer-  y  =    0 :: Integer-  p1 = True :: Bool-  p2 = True :: Bool Found 4 different solutions.  Without the call to 'allSatPartition' the above example, 'allSat' would return all possible combinations of @x@ and @y@ subject to the constraints. (Since we have none here,-the call would try to enumerate the infinite set of all integer tuples!) But 'allSatPartition' us to restrict our attention to the examples that satisfy the partitioning-constraints. The first argument to 'allSatPartition' simply a name, for diagnostic purposes. Note that the conditions given by 'allSatPartition' /not/ imposed on the search+the call would try to enumerate the infinite set of all integer tuples!) But 'allSatPartition' allows us to restrict our attention to the examples that satisfy the partitioning+constraints. The first argument to 'allSatPartition' is simply a name, for diagnostic purposes. Note that the conditions given by 'allSatPartition' are /not/ imposed on the search space at all: They're only used when we construct the search space. In the above example, we pick one example from each quadrant. Furthermore, while it is typical to pass a boolean as a partitioning argument, it is not required: Any expression is OK, whose value creates the equivalence class: @@ -953,7 +966,7 @@       ... @ -The first constraint requires @x@ to be larger than @y@. The scond one says that+The first constraint requires @x@ to be larger than @y@. The second one says that sum of @x@ and @y@ must be at least @12@, and the final one says that @y@ to be at least @3@. Constraints provide an easy way to assert additional properties on the input domain, right at the point of the introduction of variables.@@ -1114,78 +1127,76 @@ See 'Data.SBV.Control.getUnsatCore' for details and "Documentation.SBV.Examples.Queries.UnsatCore" for an example use case. -} -{- $uninterpreted+{- $symbolicADT Users can introduce new uninterpreted sorts simply by defining an empty data-type in Haskell and registering it as such. The following example demonstrates:    @      data B-     mkUninterpretedSort ''B+     mkSymbolic [''B]   @ -(Note that you'll also need to use pragmas @TemplateHaskell@, @StandAloneDeriving@, @DeriveDataTypeable@, and @DeriveAnyClass@ for this to work, follow GHC's error messages!)- This is all it takes to introduce @B@ as an uninterpreted sort in SBV, which makes the type @SBV B@ automagically become available as the type of symbolic values that ranges over @B@ values. Note that this will also introduce the type @SB@ into your environment, which is a synonym for @SBV B@. --Uninterpreted functions over both uninterpreted and regular sorts can be declared using the facilities introduced by-the 'Data.SBV.Core.Model.SMTDefinable' class.--}--{- $enumerations If the uninterpreted sort definition takes the form of an enumeration (i.e., a simple data type with all nullary constructors), then-you can use the 'mkSymbolicEnumeration' function to turn it into an enumeration in SMTLib.-A simple example is:+it will turn into an enumeration in SMTLib.  A simple example is:  @-    data X = A | B | C deriving (Enum, Bounded)-    mkSymbolicEnumeration ''X+    data X = A | B | C+    mkSymbolic [''X] @ -Note the magic incantation @mkSymbolicEnumeration ''X@. For this to work, you need to have the following-options turned on:-->   LANGUAGE TemplateHaskell->   LANGUAGE StandaloneDeriving->   LANGUAGE DeriveDataTypeable->   LANGUAGE DeriveAnyClass->   LANGUAGE FlexibleInstances+Note the magic incantation @mkSymbolic [''X]@, requires the following extensions:+@TemplateHaskell@, @TypeApplications@, and @FlexibleInstances@.+Parametric data-types also require @ScopedTypeVariables@. -and your own declaration must have instances of 'Enum' and 'Bounded'. (The instances can be derived, as above.)-This will automatically introduce the type:+SBV also supports good old ADT's as well, with fields. The support for this is similar, where SBV will create the+corresponding datatype in a symbolic manner:  @-    type SX = SBV X+-- | A basic arithmetic expression type.+data Expr = Num Integer+          | Var String+          | Add Expr Expr+          | Mul Expr Expr+          | Let String Expr Expr++-- | Create a symbolic version of expressions.+mkSymbolic [''Expr] @ -along with symbolic values of each of the enumerated values @sA@, @sB@, and @sC@. This way,-you can refer to the symbolic version as @SX@, treating it as a regular symbolic type ranging over the values @A@, @B@, and @C@. Such values can be compared for equality, and with the usual-other comparison operators, such as @.==@, @./=@, @.>@, @.>=@, @<@, and @<=@. For each enumerated value @X@, the symbolic versions @sX@ is defined to be equal to @literal X@. Furthermore, the symbolic type will be an instance of 'EnumSymbolic', allowing you to use-arithmetic progressions on symbolic values.+These types can also be parameterized, per usual Haskell usage. -A simple query would look like:+We also support a symbolic case-expression quasi-quoter, allowing us to write:  @-     allSat $ \x -> x .== (x :: SX)-@--which would list all three elements of this domain as satisfying solutions.+eval :: SExpr -> SInteger+eval = go []+ where go :: SList (String, Integer) -> SExpr -> SInteger+       go = smtFunction "eval"+          $ \env expr -> [sCase| expr of+                            Num i     -> i+                            Var s     -> get env s+                            Add l r   -> go env l + go env r+                            Mul l r   -> go env l * go env r+                            Let s e r -> go (tuple (s, go env e) SL..: env) r+                         |] -@-     Solution #1:-       s0 = A :: X-     Solution #2:-       s0 = B :: X-     Solution #3:-       s0 = C :: X-     Found 3 different solutions.+       get :: SList (String, Integer) -> SString -> SInteger+       get = smtFunction "get"+           $ \env s -> ite (SL.null env) 0+                     $ let (k, v) = untuple (SL.head env)+                       in ite (s .== k) v (get (SL.tail env) s) @ -Note that the result is properly typed as @X@ elements; these are not mere strings.+which defines an interpreter for this data-type. Such definitions also come with an induction principle+to perform TP based proofs on. These can be accessed using the 'Data.SBV.TP.inductiveLemma' function. -See "Documentation.SBV.Examples.Misc.Enumerate" for an extended example on how to use symbolic enumerations.+The argument to @mkSymbolic@ is typically a list of types. The requirement is that if the types you pass on+are mutually recursively defined, you should give them as a list. Otherwise, you can give them all together,+or one at a time. -}  {- $cardIntro@@ -1301,7 +1312,7 @@ Conversions to float: 'toSFloat' and 'toSDouble' simply return the nearest representable float from the given type based on the rounding mode provided. Similarly, 'toSFloatingPoint' converts to a generalized-floating-point number with specified exponent and significand bith widths.+floating-point number with specified exponent and significand bit widths.  Conversions from float: 'fromSFloat', 'fromSDouble', 'fromSFloatingPoint' functions do the reverse conversion. However some care is needed when given values@@ -1330,7 +1341,7 @@ same thing! Same goes for Haskell, which seems to convert via Int64, but we do not model that behavior in SBV as it doesn't seem to be intentional nor well documented. -You can check for @NaN@, @oo@ and @-oo@, using the predicates 'fpIsNaN', 'fpIsInfinite',+You can check for @NaN@, @oo@ and @-oo@, using the predicates 'Data.SBV.Core.Floating.fpIsNaN', 'Data.SBV.Core.Floating.fpIsInfinite', and 'fpIsPositive', 'fpIsNegative' predicates, respectively; and do the proper conversion based on your needs. (0 is a good choice, as are min/max bounds of the target type.) @@ -1357,15 +1368,15 @@ Q.E.D. >>> prove $ roundTrip @Int32 Falsifiable. Counter-example:-  s0 = RoundTowardPositive :: RoundingMode-  s1 =          1104019333 :: Int32+  s0 = RoundNearestTiesToAway :: RoundingMode+  s1 =               22049281 :: Int32  Note how we get a failure on `Int32`. The counter-example value is not representable exactly as a single precision float: ->>> toRational (1104019333 :: Float)-1104019328 % 1+>>> toRational (22049281 :: Float)+22049280 % 1 -Note how the numerator is different, it is off by 5. This is hardly surprising, since floats become sparser as+Note how the numerator is different, it is off by 1. This is hardly surprising, since floats become sparser as the magnitude increases to be able to cover all the integer values representable.  >>> :{@@ -1388,19 +1399,19 @@ >>> prove $ roundTrip @Int64 Falsifiable. Counter-example:   s0 = RoundNearestTiesToEven :: RoundingMode-  s1 =   -2305843042984656748 :: Int64+  s1 =    2305843026393563113 :: Int64  Just like in the `SFloat` case, once we reach 64-bits, we no longer can exactly represent the integer value for all possible values: ->>> toRational (fromIntegral (-2305843042984656748 :: Int64) :: Double)-(-2305843042984656896) % 1+>>> toRational (fromIntegral (2305843026393563113 :: Int64) :: Double)+2305843026393563136 % 1 -In this case the numerator is off by 148.+In this case the numerator is off by 23. -}  -- | An implementation of rotate-left, using a barrel shifter like design. Only works when both--- arguments are finite bitvectors, and furthermore when the second argument is unsigned.+-- arguments are finite bit-vectors, and furthermore when the second argument is unsigned. -- The first condition is enforced by the type, but the second is dynamically checked. -- We provide this implementation as an alternative to `sRotateLeft` since SMTLib logic -- does not support variable argument rotates (as opposed to shifts), and thus this@@ -1435,7 +1446,7 @@                                       -> SBV (bv (i - j + 1))   -- ^ Output is of size @i - j + 1@ bvExtract = CD.bvExtract --- | Join two bitvectors.+-- | Join two bit-vectors. -- -- >>> prove $ \x y -> x .== bvExtract (Proxy @79) (Proxy @71) ((x :: SWord 9) # (y :: SWord 71)) -- Q.E.D.@@ -1733,7 +1744,7 @@                                sa <- sbvToSV st a                                sb <- sbvToSV st b -                               newExpr st KBool $ SBVApp (Uninterpreted nm) [sa, sb]+                               newExpr st KBool $ SBVApp (Uninterpreted (T.pack nm)) [sa, sb]  -- | Check if the given relation satisfies the required axioms checkSpecialRelation :: forall a. SymVal a => SpecialRelOp -> Relation a -> SBool@@ -1756,8 +1767,12 @@                        unless (op `elem` curSpecialRels) $ do                            registerKind st ka-                          nm' <- newUninterpreted st (UIGiven nm) Nothing (SBVType [ka, ka, KBool]) (UINone True)+                          uop <- newUninterpreted st (UIGiven nm) Nothing (SBVType [ka, ka, KBool]) (UINone True) +                          let nm' = case uop of+                                      Uninterpreted s -> T.unpack s+                                      _               -> error $ "Data.SBV: Impossible happened: checkSpecialRelation received: " ++ show op+                           -- Add to the end so if we get incremental ones the order doesn't change for old ones!                           modifyIORef' (rProgInfo st) (\u -> u{progSpecialRels = curSpecialRels ++ [iop]}) @@ -1838,6 +1853,6 @@    create  = freshVar_   project = getValue-  embed   = return . literal+  embed   = pure . literal  {- HLint ignore module "Use import/export shortcut" -}
Data/SBV/Char.hs view
@@ -21,12 +21,10 @@ -- we will provide full unicode versions as well. ----------------------------------------------------------------------------- -{-# LANGUAGE CPP                 #-}-{-# LANGUAGE OverloadedLists     #-}-{-# LANGUAGE OverloadedStrings   #-}-{-# LANGUAGE Rank2Types          #-}-{-# LANGUAGE ScopedTypeVariables #-}-{-# LANGUAGE TypeApplications    #-}+{-# LANGUAGE CPP               #-}+{-# LANGUAGE OverloadedLists   #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE TypeApplications  #-}  {-# OPTIONS_GHC -Wall -Werror -Wno-orphans #-} 
Data/SBV/Client.hs view
@@ -10,54 +10,71 @@ -----------------------------------------------------------------------------  {-# LANGUAGE CPP                 #-}+{-# LANGUAGE DeriveLift          #-}+{-# LANGUAGE LambdaCase          #-} {-# LANGUAGE PackageImports      #-}-{-# LANGUAGE QuasiQuotes         #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE StandaloneDeriving  #-} {-# LANGUAGE TemplateHaskell     #-}+{-# LANGUAGE TupleSections       #-}  #if MIN_VERSION_template_haskell(2,22,1)-{-# OPTIONS_GHC -Wall -Werror #-}+-- No need for newer versions of TH #else-{-# LANGUAGE DeriveLift #-}-{-# OPTIONS_GHC -Wall -Werror -fno-warn-orphans #-}+{-# LANGUAGE FlexibleInstances   #-} #endif +{-# OPTIONS_GHC -Wall -Werror -Wno-orphans #-}+ module Data.SBV.Client   ( sbvCheckSolverInstallation   , defaultSolverConfig   , getAvailableSolvers-  , mkSymbolicEnumeration-  , mkUninterpretedSort+  , mkSymbolic+  , getConstructors   ) where -import Control.Monad (filterM)-import Data.Generics+import Data.SBV.Core.TH (getConstructors, bad, report) -import Test.QuickCheck (Arbitrary(..), arbitraryBoundedEnum)+import Data.Generics -import qualified Data.SBV.List as SL+import Control.Monad (filterM, mapAndUnzipM, zipWithM)+import Data.Function (fix)+import Test.QuickCheck (Arbitrary(..), elements)  import qualified Control.Exception as C +import Data.Char+import Data.Word+import Data.Int+import Data.Ratio+ import qualified "template-haskell" Language.Haskell.TH        as TH-#if MIN_VERSION_template_haskell(2,18,0) import qualified "template-haskell" Language.Haskell.TH.Syntax as TH-#endif +import Language.Haskell.TH.ExpandSyns as TH++import Data.SBV.Core.Concrete (cvRank) import Data.SBV.Core.Data import Data.SBV.Core.Model-import Data.SBV.Core.Operations+import Data.SBV.Core.SizedFloats+import Data.SBV.Core.Symbolic (registerKind)+ import Data.SBV.Provers.Prover+import qualified Data.SBV.List as SL +import Data.List (genericLength)++import Data.SBV.TP.Kernel+ -- | Check whether the given solver is installed and is ready to go. This call does a -- simple call to the solver to ensure all is well. sbvCheckSolverInstallation :: SMTConfig -> IO Bool-sbvCheckSolverInstallation cfg = check `C.catch` (\(_ :: C.SomeException) -> return False)+sbvCheckSolverInstallation cfg = check `C.catch` (\(_ :: C.SomeException) -> pure False)   where check = do ThmResult r <- proveWith cfg $ \x -> sNot (sNot x) .== (x :: SBool)                    case r of-                     Unsatisfiable{} -> return True-                     _               -> return False+                     Unsatisfiable{} -> pure True+                     _               -> pure False  -- | The default configs corresponding to supported SMT solvers defaultSolverConfig :: Solver -> SMTConfig@@ -85,159 +102,676 @@ deriving instance TH.Lift TH.ModName deriving instance TH.Lift TH.NameFlavour deriving instance TH.Lift TH.Name+deriving instance TH.Lift TH.Type+deriving instance TH.Lift TH.Specificity+deriving instance TH.Lift (TH.TyVarBndr TH.Specificity)+deriving instance TH.Lift (TH.TyVarBndr ())+deriving instance TH.Lift TH.TyLit #endif --- | Turn a name into a symbolic type. If first argument is true, then we're doing an enumeration, otherwise it's an uninterpreted type-declareSymbolic :: Bool -> TH.Name -> TH.Q [TH.Dec]-declareSymbolic isEnum typeName = do-    let typeCon  = TH.conT typeName-        sTypeCon = TH.conT ''SBV `TH.appT` typeCon+-- A few other things we need to TH lift+deriving instance TH.Lift Kind -    cstrs <- if isEnum then ensureEnumeration typeName-                       else ensureEmptyData   typeName+data ADTKind = ADTUninterpreted -- Completely uninterpreted+             | ADTEnum          -- Enumeration+             | ADTFull          -- A full datatype -    derives <- [d| deriving instance Show     $typeCon-                   deriving instance Read     $typeCon-                   deriving instance Data     $typeCon-                   deriving instance HasKind  $typeCon-                   deriving instance SatModel $typeCon-               |]+-- | Create a mutually recursive group of ADTs.+mkSymbolic :: [TH.Name] -> TH.Q [TH.Dec]+mkSymbolic ts = concat <$> mapM mkSymbolicADT ts -    symVals <- if isEnum-                  then [d| instance SymVal $typeCon where-                             minMaxBound = Just (minBound, maxBound)+-- | Create a symbolic ADT.+mkSymbolicADT :: TH.Name -> TH.Q [TH.Dec]+mkSymbolicADT typeName = do -                           instance Arbitrary $typeCon where-                             arbitrary = arbitraryBoundedEnum-                       |]-                  else [d| instance SymVal $typeCon where-                             minMaxBound = Nothing+     (tKind, params, cstrs) <- dissect typeName+     ds <- mkADT tKind typeName params cstrs -                           -- It's unfortunate we have to give this instance to make things-                           -- simple; but uninterpreted types don't really fit with the testing strategy.-                           instance {-# OVERLAPPABLE #-} Arbitrary $typeCon where-                             arbitrary = error $ unlines [ ""-                                                         , "*** Data.SBV: Cannot quickcheck the given property."-                                                         , "***"-                                                         , "*** Default arbitrary instance for " ++ TH.nameBase typeName ++ " is too limited."-                                                         , "***"-                                                         , "*** You can overcome this by giving your own Arbitrary instance."-                                                         , "*** Please get in touch if this workaround is not suitable for your case."-                                                         ]-                       |]+     -- declare an "undefiner" so we don't have stray names+     nm <- TH.newName $ "_undefiner_" ++ TH.nameBase typeName+     addDoc "Autogenerated definition to avoid unused-variable warnings from GHC." nm -    symEnum <- if isEnum-                  then [d| instance SL.EnumSymbolic $typeCon where-                              succ     x = let elts = [minBound .. maxBound] in x `SL.lookup` literal (zip elts (drop 1 elts))-                              pred     x = let elts = [minBound .. maxBound] in x `SL.lookup` literal (zip (drop 1 elts) elts)+     -- undefiner must be careful in putting ascriptions+     aVar <- TH.newName "a"+     let undefine n+           | base == "sCase" ++ tbase = wrap 1   -- Needs an extra param+           | True                     = wrap 0+           where tbase  = TH.nameBase typeName+                 base   = TH.nameBase n+                 wrap c = foldl TH.AppTypeE (TH.VarE n) (replicate (c + length params) (TH.ConT ''Integer)) -                              toEnum   x = let elts = [minBound .. maxBound] in x `SL.lookup` literal (zip [0..] elts)-                              fromEnum x = let elts = [minBound .. maxBound] in x `SL.lookup` literal (zip elts [0..])+         names     = [undefine n | TH.FunD n _ <- ds]+         body      = foldl TH.AppE (TH.VarE 'undefined)+                                   (names ++ [TH.SigE (TH.VarE 'undefined)+                                                      (foldl TH.AppT (TH.ConT (TH.mkName ('S' : TH.nameBase typeName)))+                                                                     (map (const (TH.ConT ''Integer)) params))]) -                              enumFrom n = SL.map SL.toEnum (SL.enumFromTo (SL.fromEnum n) (SL.fromEnum (literal (maxBound :: $typeCon))))+         undefSig  = TH.SigD nm (TH.ForallT [] [] (TH.VarT aVar))+         undefBody = TH.FunD nm [TH.Clause [] (TH.NormalB body) []] -                              enumFromThen = smtFunction ("EnumSymbolic." ++ TH.nameBase typeName ++ ".enumFromThen") $ \n1 n2 ->-                                                         let i_n1, i_n2 :: SInteger-                                                             i_n1 = SL.fromEnum n1-                                                             i_n2 = SL.fromEnum n2-                                                         in SL.map SL.toEnum (ite (i_n2 .>= i_n1)-                                                                                  (SL.enumFromThenTo i_n1 i_n2 (SL.fromEnum (literal (maxBound :: $typeCon))))-                                                                                  (SL.enumFromThenTo i_n1 i_n2 (SL.fromEnum (literal (minBound :: $typeCon)))))+     pure $ ds ++ [undefSig, undefBody] -                              enumFromTo     n m   = SL.map SL.toEnum (SL.enumFromTo     (SL.fromEnum n) (SL.fromEnum m))+-- | Add document to a generated declaration for the declaration+addDeclDocs :: (TH.Name, String) -> [(TH.Name, String)] -> TH.Q ()+addDeclDocs (tnm, ts) cnms = do add True (tnm, ts)+                                mapM_  (add False) cnms+   where add True  (cnm, cs) = TH.addModFinalizer $ TH.putDoc (TH.DeclDoc cnm) $ "Symbolic version of the type t'"        ++ cs ++ "'."+         add False (cnm, cs) = TH.addModFinalizer $ TH.putDoc (TH.DeclDoc cnm) $ "Symbolic version of the constructor v'" ++ cs ++ "'." -                              enumFromThenTo n m t = SL.map SL.toEnum (SL.enumFromThenTo (SL.fromEnum n) (SL.fromEnum m) (SL.fromEnum t))+-- | Add document to a generated function+addDoc :: String -> TH.Name -> TH.Q ()+addDoc what tnm = TH.addModFinalizer $ TH.putDoc (TH.DeclDoc tnm) what -                           instance OrdSymbolic $sTypeCon where-                             SBV a .<  SBV b = SBV (a `svLessThan`    b)-                             SBV a .<= SBV b = SBV (a `svLessEq`      b)-                             SBV a .>  SBV b = SBV (a `svGreaterThan` b)-                             SBV a .>= SBV b = SBV (a `svGreaterEq`   b)-                       |]-                  else pure []+-- | Symbolic version of a type+mkSBV :: TH.Type -> TH.Type+mkSBV a = TH.ConT ''SBV `TH.AppT` a -    sType <- sTypeCon+-- | Saturate the type with its parameters+saturate :: TH.Type -> [TH.Name] -> TH.Type+saturate t ps = foldr (\p b -> TH.AppT b (TH.VarT p)) t (reverse ps) -    let declConstructor c = ((nm, bnm), [sig, def])-          where bnm  = TH.nameBase c-                nm   = TH.mkName $ 's' : bnm-                def  = TH.FunD nm [TH.Clause [] (TH.NormalB body) []]-                body = TH.AppE (TH.VarE 'literal) (TH.ConE c)-                sig  = TH.SigD nm sType+-- | Create a symbolic ADT+mkADT ::  ADTKind                                       -- What kind of ADT are we generating?+       -> TH.Name                                       -- type name+       -> [TH.Name]                                     -- parameters+       -> [(TH.Name, [(Maybe TH.Name, TH.Type, Kind)])] -- constructors+       -> TH.Q [TH.Dec]                                 -- declarations+mkADT adtKind typeName params cstrs = do -        (constrNames, cdecls) = unzip (map declConstructor cstrs)+    let typeCon = saturate (TH.ConT typeName) params+        sType   = mkSBV typeCon +        inSymValContext = TH.ForallT [] [TH.AppT (TH.ConT ''SymVal) (TH.VarT n) | n <- params]++        isEnum = case adtKind of+                  ADTUninterpreted -> False+                  ADTEnum          -> True+                  ADTFull          -> False++        -- Given Cstr f1 f2 f3, generate the clause:+        --     inp@(Cstr [f1, f2, f3]) = case sequenceA [unlitCV (literal f1), unlitCV (literal f2), unlitCV (literal f3)] of+        --                                 Just c  -> let k = kindOf inp+        --                                            in SBV $ SVal k (Left (CV k (CADT (Cstr, c))))+        --                                 Nothing -> sCstr (literal f1)+        --+        mkLitClause (n, fs) = do+           as  <- mapM (const (TH.newName "a")) fs+           inp <- TH.newName "inp"+           c   <- TH.newName "c"++           let app a b = [| $a (literal $b) |]++           TH.clause [TH.asP inp (TH.conP n (map TH.varP as))]+                     (TH.normalB+                           (TH.caseE [| sequenceA $(TH.listE [ [| unlitCV (literal $(TH.varE a)) |] | a <- as ]) |]+                                     [ TH.match [p|Just $(TH.varP c)|]+                                                (TH.normalB [| let k = kindOf $(TH.varE inp)+                                                               in SBV $ SVal k (Left (CV k (CADT (TH.nameBase n, $(TH.varE c)))))+                                                            |])+                                                []+                                     , TH.match [p|Nothing|]+                                                (TH.normalB (foldl app (TH.varE (TH.mkName ('s' : TH.nameBase n))) (map TH.varE as)))+                                                []+                                     ]))+                     []++    litFun <- case adtKind of+                ADTUninterpreted -> do noLit <- [| error $ unlines [ "Data.SBV: unexpected call to derived literal implementation"+                                                                   , "***"+                                                                   , "*** Type: " ++ show typeName+                                                                   , ""+                                                                   , "***Please report this as a bug!"+                                                                   ]+                                                |]+                                       pure $ TH.FunD 'literal [TH.Clause [TH.WildP] (TH.NormalB noLit) []]++                ADTEnum          -> TH.FunD 'literal <$> mapM mkLitClause cstrs+                ADTFull          -> TH.FunD 'literal <$> mapM mkLitClause cstrs++    fromCVFunName <- TH.newName ("cv2" ++ TH.nameBase typeName)+    addDoc ("Conversion from SMT values to " ++ TH.nameBase typeName ++ " values.") fromCVFunName++    let fromCVSig = TH.SigD fromCVFunName+                            (inSymValContext (foldr (TH.AppT . TH.AppT TH.ArrowT) typeCon+                                                    [TH.ConT ''String, TH.AppT TH.ListT (TH.ConT ''CV)]))++        fromCVCls :: (TH.Name, [(Maybe TH.Name, TH.Type, Kind)]) -> TH.Q TH.Clause+        fromCVCls (nm, args) = do+            ns <- mapM (\(i, _) -> TH.newName ("a" ++ show i)) (zip [(1::Int)..] args)+            let pat = foldr ((\p acc -> TH.ConP '(:) [] [p, acc]) . TH.VarP) (TH.ConP '[] [] []) ns+            pure $ TH.Clause [TH.LitP (TH.StringL (TH.nameBase nm)), pat]+                             (TH.NormalB (foldl TH.AppE (TH.ConE nm)+                                                        [TH.AppE (TH.VarE 'fromCV) (TH.VarE n) | n <- ns]))+                             []++    catchAll <- do s <- TH.newName "s"+                   l <- TH.newName "l"+                   let errStr   = TH.LitE (TH.StringL ("fromCV " ++ TH.nameBase typeName ++ ": Unexpected constructor/arity: "))+                       tup      = TH.TupE [Just (TH.VarE s), Just (TH.AppE (TH.VarE 'length) (TH.VarE l))]+                       showCall = TH.AppE (TH.VarE 'show) tup+                       errMsg   = TH.InfixE (Just errStr) (TH.VarE '(++)) (Just showCall)+                   pure $ TH.Clause [TH.VarP s, TH.VarP l] (TH.NormalB (TH.AppE (TH.VarE 'error) errMsg)) []++    fromCVFun <- do clss <- mapM fromCVCls cstrs+                    pure $ TH.FunD fromCVFunName (clss ++ [catchAll])++    getFromCV <- [| let unexpected w = error $ "fromCV: " ++ show typeName ++ ": " ++ w+                        kindName (KADT n _ _) = n+                        kindName (KApp n _)   = n+                        kindName k            = unexpected $ "An ADT kind was expected, but got: " ++ show k+                    in \case CV k (CADT (c, kvs)) | kindName k == unmod typeName+                                                 -> $(TH.varE fromCVFunName) c (map (uncurry CV) kvs)+                             CV k e -> unexpected $ "Was expecting a CADT value, but got kind: " ++ show k ++ " (rank: " ++ show (cvRank e) ++ ")"+                 |]++    symCtx  <- TH.cxt [TH.appT (TH.conT ''SymVal) (TH.varT n) | n <- params]++    mmBound <- if isEnum+                  then let universe     = [TH.conE con | (con, _) <- cstrs]+                           (minb, maxb) = case (universe, reverse universe) of+                                             (x:_, y:_) -> (x, y)+                                             _          -> error $ "Impossible: Ran out of elements in determining bounds: " ++ show cstrs+                       in [| Just ($minb, $maxb) |]+                  else [| Nothing |]++    -- make the initializer to get the subtypes registered+    st <- TH.newName "_st"  -- Get an underscored name here, since st might go unused if there're no subtypes+    register <- do let concretize b@TH.ConT{}     = b+                       concretize TH.VarT{}       = TH.ConT ''Integer+                       concretize (TH.AppT l arg) = TH.AppT (concretize l) (concretize arg)+                       concretize r               = r++                   end <- TH.noBindS [| pure () |]+                   pure $ TH.DoE Nothing $ [TH.NoBindS (TH.AppE (TH.AppE (TH.VarE 'registerKind) (TH.VarE st))+                                                                (TH.AppE (TH.VarE 'kindOf)+                                                                         (TH.AppTypeE (TH.ConE 'Proxy) (concretize t))))+                                           | (_, fts) <- cstrs, (_, t, KApp n _) <- fts, n /= TH.nameBase typeName+                                           ] ++ [end]++    let regFun = TH.FunD 'mkSymValInit [TH.Clause [TH.VarP st, TH.WildP] (TH.NormalB register) []]++    let symVal = TH.InstanceD+                      Nothing+                      symCtx+                      (TH.AppT (TH.ConT ''SymVal) typeCon)+                      [ litFun+                      , regFun+                      , TH.FunD 'minMaxBound [TH.Clause [] (TH.NormalB mmBound)   []]+                      , TH.FunD 'fromCV      [TH.Clause [] (TH.NormalB getFromCV) []]+                       ]++    defCstrs <- [| [(unmod n, map (\(_, _, t) -> t) ntks) | (n, ntks) <- cstrs] |]++    kindCtx <- TH.cxt [TH.appT (TH.conT ''HasKind) (TH.varT p) | p <- params]++    let mkPair a b = TH.TupE [Just a, Just b]+        kindDef = foldl1 TH.AppE [ TH.ConE 'KADT+                                 , TH.LitE (TH.StringL (unmod typeName))+                                 , TH.ListE [ mkPair (TH.LitE (TH.StringL (TH.nameBase p)))+                                                     (TH.AppE (TH.VarE 'kindOf) (TH.AppTypeE (TH.ConE 'Proxy) (TH.VarT p)))+                                            | p <- params+                                            ]+                                 , defCstrs+                                 ]++        kindDecl = TH.InstanceD+                        Nothing+                        kindCtx+                        (TH.AppT (TH.ConT ''HasKind) typeCon)+                        [TH.FunD 'kindOf [TH.Clause [TH.WildP] (TH.NormalB kindDef) []]]++    hasArbitrary <- TH.isInstance ''Arbitrary [typeCon]+    arbDecl <- case () of+                () | hasArbitrary -> pure []+                   | isEnum       -> let universe  = TH.listE [TH.conE con | (con, _) <- cstrs]+                                     in [d|instance Arbitrary $(pure typeCon) where+                                             arbitrary = elements $universe+                                        |]+                   | True         -> [d|instance {-# OVERLAPPABLE #-} Arbitrary $(pure typeCon) where+                                          arbitrary = error $ unlines [ ""+                                                                      , "*** Data.SBV: Cannot quickcheck the given property."+                                                                      , "***"+                                                                      , "*** Default arbitrary instance for " ++ TH.nameBase typeName ++ " is too limited."+                                                                      , "***"+                                                                      , "*** You can overcome this by giving your own Arbitrary instance."+                                                                      , "*** Please get in touch if this workaround is not suitable for your case."+                                                                      ]+                                    |]++    -- Declare constructors+    let declConstructor :: (TH.Name, [(Maybe TH.Name, TH.Type, Kind)]) -> TH.Q ((TH.Name, String), [TH.Dec])+        declConstructor (n, ntks) = do+            let ats = map (mkSBV . (\(_, t, _) -> t)) ntks+                ty  = inSymValContext $ foldr (TH.AppT . TH.AppT TH.ArrowT) sType ats+                bnm = TH.nameBase n+                nm  = TH.mkName $ 's' : bnm++            as    <- mapM (const (TH.newName "a")) ntks+            c     <- TH.newName "c"++            cls <- TH.clause (map TH.varP as)+                             (TH.normalB+                                   (TH.caseE [| sequenceA $(TH.listE [ [| unlitCV $(TH.varE a) |] | a <- as ]) |]+                                             [ TH.match [p|Just $(TH.varP c)|]+                                                        -- We need the kind of the result type to build the value, but the+                                                        -- result type can only be recovered from the (signature-pinned) result+                                                        -- itself: a parametric type may carry the parameter in a phantom+                                                        -- position (e.g. the @a@ in @Right :: b -> Either a b@) that no argument+                                                        -- mentions. We tie the kind to the result via 'fix'. Crucially, 'fix'+                                                        -- binds @res@ as a /lambda-bound/ variable, which is always monomorphic;+                                                        -- a plain @let@ group would be generalized when the monomorphism+                                                        -- restriction is off (as it is at the GHCi prompt), yielding a spurious+                                                        -- ambiguous @HasKind@. ('kindOf' ignores its argument, so 'fix' is safe.)+                                                        (TH.normalB [| fix (\res -> let k = kindOf res+                                                                                    in SBV $ SVal k (Left (CV k (CADT (bnm, $(TH.varE c)))))) |])+                                                        []+                                             , TH.match [p|Nothing|]+                                                        (TH.normalB (foldl (\a b -> [| $a $b |]) [| mkADTConstructor bnm |] (map TH.varE as)))+                                                        []+                                             ]))+                             []++            pure ((nm, bnm), [TH.SigD nm ty, TH.FunD nm [cls]])++    (constrNames, cdecls) <- mapAndUnzipM declConstructor cstrs+     let btname = TH.nameBase typeName         tname  = TH.mkName ('S' : btname)-        tdecl  = TH.TySynD tname [] sType+        tdecl  = TH.TySynD tname [TH.PlainTV p TH.BndrReq | p <- params] sType -    addDocs (tname, btname) constrNames+    addDeclDocs (tname, btname) constrNames -    pure $ derives ++ symVals ++ symEnum ++ [tdecl] ++ concat cdecls+    -- Declare accessors+    let -- NB. field count starts at 1!+        declAccessor :: TH.Name -> (Maybe TH.Name, TH.Type, Kind) -> Int -> TH.Q [((TH.Name, String), [TH.Dec])]+        declAccessor c (mbUN, ft, _) i = do+                let bnm  = TH.nameBase c+                    anm  = "get" ++ bnm ++ "_" ++ show i+                    nm   = TH.mkName anm+                    ty    = inSymValContext $ TH.AppT (TH.AppT TH.ArrowT sType) (mkSBV ft) - where addDocs :: (TH.Name, String) -> [(TH.Name, String)] -> TH.Q ()-#if MIN_VERSION_template_haskell(2,18,0)-       addDocs (tnm, ts) cnms = do addDoc True (tnm, ts)-                                   mapM_  (addDoc False) cnms-          where addDoc True  (cnm, cs) = TH.addModFinalizer $ TH.putDoc (TH.DeclDoc cnm) $ "Symbolic version of the type '"        ++ cs ++ "'."-                addDoc False (cnm, cs) = TH.addModFinalizer $ TH.putDoc (TH.DeclDoc cnm) $ "Symbolic version of the constructor '" ++ cs ++ "'."-#else-       addDocs _ _ = pure ()-#endif+                cls <- do inp <- TH.newName "inp"+                          TH.clause [TH.varP inp]+                                    (TH.normalB+                                          (TH.caseE [| unlitCV $(TH.varE inp) |]+                                                    [ TH.match [p|Just (_, CADT (got, kv))|]+                                                               (TH.guardedB [do g <- TH.normalG [| got == bnm |]+                                                                                e <- [| let (k, v) = (kv !! (i-1))+                                                                                        in SBV $ SVal k (Left (CV k v))+                                                                                     |]+                                                                                pure (g, e)+                                                                            ])+                                                               []+                                                    , TH.match [p|_|]+                                                               (TH.normalB [| mkADTAccessor anm $(TH.varE inp) |])+                                                               []+                                                    ]))+                                    [] --- | Make an enumeration a symbolic type.-mkSymbolicEnumeration :: TH.Name -> TH.Q [TH.Dec]-mkSymbolicEnumeration = declareSymbolic True+                -- If there's a custom accessor given, declare that here too+                extras <- case mbUN of+                            Nothing -> pure []+                            Just un -> do let sun = TH.mkName $ 's' : TH.nameBase un+                                          pure [((sun, bnm), [TH.SigD sun ty, TH.FunD sun [cls]])] --- | Make an uninterpred sort.-mkUninterpretedSort :: TH.Name -> TH.Q [TH.Dec]-mkUninterpretedSort = declareSymbolic False+                pure $ ((nm, bnm), [TH.SigD nm ty, TH.FunD nm [cls]]) : extras --- | Make sure the given type is an enumeration-ensureEnumeration :: TH.Name -> TH.Q [TH.Name]-ensureEnumeration nm = do-        c <- TH.reify nm-        case c of-          TH.TyConI d -> case d of-                           TH.DataD _ _ _ _ cons _ -> case cons of-                                                        [] -> bad "The datatype given has no constructors."-                                                        xs -> concat <$> mapM check xs-                           _                       -> bad "The name given is not a datatype."+    allDefs <- sequence [zipWithM (declAccessor c) fs [(1::Int) ..] | (c, fs) <- cstrs]+    let (accessorNames, accessorDecls) = unzip $ concat (concat allDefs) -          _        -> bad "The name given is not a datatype."- where n = TH.nameBase nm+    mapM_ (addDoc "Field accessor function." . fst) accessorNames -       check (TH.NormalC c xs) = case xs of-                                   [] -> pure [c]-                                   _  -> bad $ "Constructor " ++ show c ++ " has arguments."+    testerDecls <- mkTesters sType inSymValContext cstrs -       check c                 = bad $ "Constructor " ++ show c ++ " is not an enumeration value."+    -- Get the case analyzer+    caseSigFuns <- mkCaseAnalyzer adtKind typeName params cstrs -       bad m = do TH.reportError $ unlines [ "Data.SBV.mkSymbolicEnumeration: Invalid argument " ++ show n-                                           , ""-                                           , "    Expected an enumeration. " ++ m-                                           , ""-                                           , "    To create an enumerated sort, use a simple Haskell enumerated type."-                                           ]-                  pure []+    -- Get the induction schema, upto 5 extra args. Only for enums and adts+    indDecs <- do let schemas = mapM (mkInductionSchema typeName params cstrs) [0 .. 5]+                  case adtKind of+                    ADTUninterpreted -> pure []+                    ADTEnum          -> schemas+                    ADTFull          -> schemas --- | Make sure the given type is an empty data-ensureEmptyData :: TH.Name -> TH.Q [TH.Name]-ensureEmptyData nm = do-        c <- TH.reify nm-        case c of-          TH.TyConI d -> case d of-                           TH.DataD _ _ _ _ cons _ -> case cons of-                                                        [] -> pure []-                                                        _  -> bad "The datatype given has constructors."-                           _                       -> bad "The name given is not a datatype."+    -- If this is an enumeration get EnumSymbolic and OrSymbolic instances+    symEnum <- case adtKind of+                ADTUninterpreted -> pure []+                ADTFull          -> pure []+                ADTEnum          ->+                  let universe  = TH.listE [TH.conE                          con   | (con, _) <- cstrs]+                      universeS = TH.listE [TH.litE (TH.stringL (TH.nameBase con)) | (con, _) <- cstrs]+                  in [d| instance SatModel $(TH.conT typeName) where+                           parseCVs (CV _ (CADT (s, [])) : r)+                             | Just v <- s `lookup` zip $universeS $universe+                             = Just (v, r)+                           parseCVs _ = Nothing -          _        -> bad "The name given is not a datatype."- where n = TH.nameBase nm-       bad m = do TH.reportError $ unlines [ "Data.SBV.mkUninterpretedSort: Invalid argument " ++ show n-                                           , ""-                                           , "    Expected an empty datatype. " ++ m-                                           , ""-                                           , "    To create an uninterpreted sort, use an empty datatype declaration."-                                           ]-                  pure []+                         instance SL.EnumSymbolic $(TH.conT typeName) where+                           succ x = go (zip $universe (drop 1 $universe))+                             where go []              = some ("succ_" ++ show typeName ++ "_maximal") (const sTrue)+                                   go ((c, s) : rest) = ite (x .== literal c) (literal s) (go rest)++                           pred x = go (zip (drop 1 $universe) $universe)+                             where go []              = some ("pred_" ++ show typeName ++ "_minimal") (const sTrue)+                                   go ((c, s) : rest) = ite (x .== literal c) (literal s) (go rest)++                           toEnum x = go (zip $universe [0..])+                             where go []              = some ("toEnum_" ++ show typeName ++ "_out_of_range") (const sTrue)+                                   go ((c, i) : rest) = ite (x .== literal i) (literal c) (go rest)++                           fromEnum x = go 0 $universe+                             where go _ []     = error "fromEnum: Impossible happened, ran out of elements."+                                   go i [_]    = i+                                   go i (c:cs) = ite (x .== literal c) i (go (i+1) cs)++                           enumFrom n = SL.map SL.toEnum (SL.enumFromTo (SL.fromEnum n) (genericLength $universe - 1))++                           enumFromThen = smtFunction ("EnumSymbolic." ++ TH.nameBase typeName ++ ".enumFromThen") $ \n1 n2 ->+                                                      let i_n1, i_n2 :: SInteger+                                                          i_n1 = SL.fromEnum n1+                                                          i_n2 = SL.fromEnum n2+                                                      in SL.map SL.toEnum (ite (i_n2 .>= i_n1)+                                                                               (SL.enumFromThenTo i_n1 i_n2 (genericLength $universe - 1))+                                                                               (SL.enumFromThenTo i_n1 i_n2 0))++                           enumFromTo     n m   = SL.map SL.toEnum (SL.enumFromTo     (SL.fromEnum n) (SL.fromEnum m))++                           enumFromThenTo n m t = SL.map SL.toEnum (SL.enumFromThenTo (SL.fromEnum n) (SL.fromEnum m) (SL.fromEnum t))++                         instance OrdSymbolic (SBV $(TH.conT typeName)) where+                           a .<  b = SL.fromEnum a .<  SL.fromEnum b+                           a .<= b = SL.fromEnum a .<= SL.fromEnum b+                           a .>  b = SL.fromEnum a .>  SL.fromEnum b+                           a .>= b = SL.fromEnum a .>= SL.fromEnum b+                     |]++    pure $  [tdecl, symVal, kindDecl]+         ++ arbDecl+         ++ concat cdecls+         ++ testerDecls+         ++ concat accessorDecls+         ++ symEnum+         ++ [fromCVSig, fromCVFun]+         ++ caseSigFuns+         ++ concat indDecs++-- | Make a case analyzer for the type. Works for ADTs and enums. Returns sig and defn+mkCaseAnalyzer :: ADTKind -> TH.Name -> [TH.Name] -> [(TH.Name, [(Maybe TH.Name, TH.Type, Kind)])] -> TH.Q [TH.Dec]+mkCaseAnalyzer kind typeName params cstrs = case kind of+                                              ADTUninterpreted -> pure [] -- no case analyzer for fully uninterpreted types+                                              ADTEnum          -> mk+                                              ADTFull          -> mk+  where mk = do let typeCon = saturate (TH.ConT typeName) params+                    sType   = mkSBV typeCon++                    bnm = TH.nameBase typeName+                    cnm = TH.mkName $ "sCase" ++ bnm++                se   <- TH.newName ('s' : bnm)+                fs   <- mapM (\(nm, _) -> TH.newName ('f' : TH.nameBase nm)) cstrs+                res  <- TH.newName "result"++                let def = TH.FunD cnm [TH.Clause (map TH.VarP (fs ++ [se])) (TH.NormalB (iteChain (zipWith (mkCase se) fs cstrs))) []]++                    iteChain :: [(TH.Exp, TH.Exp)] -> TH.Exp+                    iteChain []       = error $ unlines [ "Data.SBV.mkADT: Impossible happened!"+                                                        , ""+                                                        , "   Received an empty list for: " ++ show typeName+                                                        , ""+                                                        , "While building the case-analyzer."+                                                        , "Please report this as a bug."+                                                        ]+                    iteChain [(_, l)]        = l+                    iteChain ((t, e) : rest) = foldl TH.AppE (TH.VarE 'ite) [TH.AppE t (TH.VarE se), e, iteChain rest]++                    mkCase :: TH.Name -> TH.Name -> (TH.Name, [(Maybe TH.Name, TH.Type, Kind)]) -> (TH.Exp, TH.Exp)+                    mkCase cexpr func (c, fields) = (TH.VarE (TH.mkName ("is" ++ TH.nameBase c)), foldl TH.AppE (TH.VarE func) args)+                       where getters = [TH.mkName ("get" ++ TH.nameBase c ++ "_" ++ show i) | (i, _) <- zip [(1 :: Int) ..] fields]+                             args    = map (\g -> TH.AppE (TH.VarE g) (TH.VarE cexpr)) getters++                    rvar   = TH.VarT res+                    mkFun  = foldr (TH.AppT . TH.AppT TH.ArrowT) rvar+                    fTypes = [mkFun (map (mkSBV . (\(_, t, _) -> t)) ftks) | (_, ftks) <- cstrs]+                    sig    = TH.SigD cnm (TH.ForallT []+                                                     (TH.AppT (TH.ConT ''Mergeable) (TH.VarT res)+                                                     : [TH.AppT (TH.ConT ''SymVal) (TH.VarT p) | p <- params]+                                                     )+                                                     (mkFun (fTypes ++ [sType])))++                addDoc ("Case analyzer for the type " ++ bnm ++ ".") cnm+                pure [sig, def]++-- | Declare testers+mkTesters :: TH.Type -> (TH.Type -> TH.Type) -> [(TH.Name, [(Maybe TH.Name, TH.Type, Kind)])] -> TH.Q [TH.Dec]+mkTesters sType inSymValContext cstrs = do+    let declTester :: (TH.Name, [(Maybe TH.Name, TH.Type, Kind)]) -> TH.Q ((TH.Name, String), [TH.Dec])+        declTester (c, _) = do+             let ty  = inSymValContext $ TH.AppT (TH.AppT TH.ArrowT sType) (TH.ConT ''SBool)+                 bnm = TH.nameBase c+                 nm  = TH.mkName $ "is" ++ bnm++             inp <- TH.newName "inp"+             cls <- TH.clause [TH.varP inp]+                              (TH.normalB+                                    (TH.caseE [| unlitCV $(TH.varE inp) |]+                                              [ TH.match [p|Just (_, CADT (got, _))|]+                                                         (TH.normalB [| literal (got == bnm) |])+                                                         []+                                              , TH.match [p|Nothing|]+                                                         (TH.normalB [| mkADTTester ("is-" ++ bnm) $(TH.varE inp) |])+                                                         []+                                              ]))+                              []+             pure ((nm, bnm), [TH.SigD nm ty, TH.FunD nm [cls]])++    (testerNames, testerDecls) <- mapAndUnzipM declTester cstrs++    mapM_ (addDoc "Field recognizer predicate." . fst) testerNames++    pure $ concat testerDecls++-- We'll just drop the modules to keep this simple+-- If you use multiple expressions named the same (coming from different modules), oh well.+unmod :: TH.Name -> String+unmod = reverse . takeWhile (/= '.') . reverse . show++-- | Given a type name, determine what kind of a data-type it is.+dissect :: TH.Name -> TH.Q (ADTKind, [TH.Name], [(TH.Name, [(Maybe TH.Name, TH.Type, Kind)])])+dissect typeName = do+        (args, tcs) <- getConstructors typeName++        let mk n (mbfn, t) = do k <- expandSyns t >>= toSBV typeName n+                                pure (mbfn, t, k)++        cs <- mapM (\(n, ts) -> (n,) <$> mapM (mk n) ts) tcs++        let k | null cs             = ADTUninterpreted+              | all (null . snd) cs = ADTEnum+              | True                = ADTFull++        pure (k, args, cs)++-- | Find the SBV kind for this type+toSBV :: TH.Name -> TH.Name -> TH.Type -> TH.Q Kind+toSBV typeName constructorName = go+  where hasArrows (TH.AppT TH.ArrowT _)   = True+        hasArrows (TH.AppT lhs       rhs) = hasArrows lhs || hasArrows rhs+        hasArrows _                       = False++        -- Handle type variables (parameters)+        go (TH.VarT v) = pure $ KVar (TH.nameBase v)++        -- tuples+        go t | Just ps <- getTuple t = KTuple <$> mapM go ps++        -- recognize strings, since we don't (yet) support chars+        go (TH.AppT TH.ListT (TH.ConT t)) | t == ''Char = pure KString++        -- lists+        go (TH.AppT TH.ListT t) = KList <$> go t++        -- arbitrary words/ints+        go (TH.AppT (TH.ConT nm) (TH.LitT (TH.NumTyLit n)))+            | nm == ''WordN = pure $ KBounded False (fromIntegral n)+            | nm == ''IntN  = pure $ KBounded True  (fromIntegral n)++        -- arbitrary floats+        go (TH.AppT (TH.AppT (TH.ConT nm) (TH.LitT (TH.NumTyLit eb))) (TH.LitT (TH.NumTyLit sb)))+            | nm == ''FloatingPoint = pure $ KFP (fromIntegral eb) (fromIntegral sb)++        -- Rational+        go (TH.AppT (TH.ConT nm) (TH.ConT i))+            | nm == ''Ratio && i == ''Integer+            = pure KRational++        -- deal with base types+        go t@(TH.ConT constr)+            | Just base <- getBase constr+            = case base of+                Left (w, r) -> bad w $ [ "Datatype   : " ++ show typeName+                                       , "Constructor: " ++ show constructorName+                                       , "Kind       : " ++ TH.pprint t+                                       , ""+                                       ] ++ r+                Right k     -> pure k++        -- deal with constructors+        go t+           | Just (c, ps) <- getConApp t+           = KApp (TH.nameBase c) <$> mapM go ps++        -- giving up+        go t = bad "Unsupported constructor kind" [ "Datatype   : " ++ TH.nameBase typeName+                                                  , "Constructor: " ++ TH.nameBase constructorName+                                                  , "Kind       : " ++ TH.pprint t+                                                  , ""+                                                  , if hasArrows t+                                                    then "Higher order fields (i.e., function values) are not supported."+                                                    else report+                                                  ]++        -- Extract application of a constructor to some type-variables+        getConApp t = locate t []+          where locate (TH.ConT c)     sofar = Just (c, sofar)+                locate (TH.AppT l arg) sofar = locate l (arg : sofar)+                locate _               _     = Nothing++        -- Extract an N-tuple+        getTuple = tup []+          where tup sofar (TH.TupleT _) = Just sofar+                tup sofar (TH.AppT t p) = tup (p : sofar) t+                tup _     _             = Nothing++        -- Given the name of a base type, what's the equivalent in the SBV domain (if we have it)+        getBase :: TH.Name -> Maybe (Either (String, [String]) Kind)+        getBase t+          | t == ''Bool     = Just $ Right KBool+          | t == ''Integer  = Just $ Right KUnbounded+          | t == ''Float    = Just $ Right KFloat+          | t == ''Double   = Just $ Right KDouble+          | t == ''Char     = Just $ Right KChar+          | t == ''String   = Just $ Right KString+          | t == ''AlgReal  = Just $ Right KReal+          | t == ''Rational = Just $ Right KRational+          | t == ''Word8    = Just $ Right $ KBounded False  8+          | t == ''Word16   = Just $ Right $ KBounded False 16+          | t == ''Word32   = Just $ Right $ KBounded False 32+          | t == ''Word64   = Just $ Right $ KBounded False 64+          | t == ''Int8     = Just $ Right $ KBounded True   8+          | t == ''Int16    = Just $ Right $ KBounded True  16+          | t == ''Int32    = Just $ Right $ KBounded True  32+          | t == ''Int64    = Just $ Right $ KBounded True  64++          -- Platform specific, flag:+          |    t == ''Int+            || t == ''Word  = Just $ Left ( "Platform specific type: " ++ show t+                                          , [ "Please pick a more specific type, such as"+                                            , "Integer, Word8, WordN 32, IntN 16 etc."+                                            ])++          -- Otherwise, can't translate+          | True            = Nothing++-- | Make an induction schema for the type, with n extra arguments.+mkInductionSchema :: TH.Name -> [TH.Name] -> [(TH.Name, [(Maybe TH.Name, TH.Type, Kind)])] -> Int -> TH.Q [TH.Dec]+mkInductionSchema typeName params cstrs extraArgCnt = do+   let btype = TH.nameBase typeName+       nm    = "induct" ++ btype ++ if extraArgCnt == 0 then "" else show extraArgCnt++   pf <- TH.newName "pf"++   extraNames <- mapM (const (TH.newName "extraN")) [0 .. extraArgCnt-1]+   extraSyms  <- mapM (const (TH.newName "extraS")) [0 .. extraArgCnt-1]+   extraTypes <- mapM (const (TH.newName "extraT")) [0 .. extraArgCnt-1]++   let mkLam = TH.lamE . map (\a -> TH.conP 'Forall [TH.varP a])++   let mkIndCase :: (TH.Name, [(Maybe TH.Name, TH.Type, Kind)]) -> TH.Q TH.Exp+       mkIndCase (cstr, flds)+         | null flds && null extraNames+         = [| $(TH.varE pf) $(scstr) |]+         | True+         = do as <- mapM (const (TH.newName "a")) flds+              let -- When can we have the inductive hypothesis?+                  --  (1) same type+                  --  (2) applied at exactly the same types+                  isRecursive (_, _, k) = case k of+                                            KApp t ps -> t == btype && ps == map (KVar . TH.nameBase) params+                                            _         -> False+                  recFields = [a | (a, f) <- zip as flds, isRecursive f]++              TH.appE (TH.varE 'quantifiedBool)+                      (mkLam (as ++ extraNames)+                             (mkImp recFields (foldl TH.appE+                                                     (TH.appE (TH.varE pf) (foldl TH.appE scstr (map TH.varE as)))+                                                     (map TH.varE extraNames))))+         where cnm   = TH.nameBase cstr+               lcnm  = map toLower cnm+               scstr = TH.varE (TH.mkName ('s' : cnm))++               mkImp []  e = e+               mkImp [i] e = foldl1 TH.appE [TH.varE '(.=>), assume i, e]+               mkImp is  e = foldl1 TH.appE [TH.varE '(.=>), foldl1 TH.appE [TH.varE 'sAnd, TH.listE (map assume is)], e]++               assume :: TH.Name -> TH.Q TH.Exp+               assume n = do en <- mapM (const (TH.newName (lcnm ++ "_extraN"))) [0 .. extraArgCnt-1]+                             TH.appE (TH.varE 'quantifiedBool)+                                     (mkLam en (foldl TH.appE (TH.varE pf) (map TH.varE (n : en))))++   cases <- mapM mkIndCase cstrs+   post  <- do a <- TH.newName "recVal"+               TH.appE (TH.varE 'quantifiedBool)+                       (mkLam (a : extraNames) $ foldl TH.appE (TH.varE pf) (map TH.varE (a : extraNames)))++   propName <- TH.newName "prop"+   argName  <- TH.newName "a"+   taName   <- TH.newName "ta"++   let pre    = foldl1 TH.AppE [TH.VarE 'sAnd,  TH.ListE cases]+       schema = foldl1 TH.AppE [TH.VarE '(.=>), pre, post]+       ihB    = TH.AppE (TH.VarE 'proofOf) (foldl1 TH.AppE [TH.VarE 'internalAxiom, TH.LitE (TH.StringL nm), schema])++       instHead = TH.AppT (TH.ConT ''HasInductionSchema)+                          (foldr (TH.AppT . TH.AppT TH.ArrowT)+                                 (TH.ConT ''SBool)+                                 [  TH.AppT (TH.ConT ''Forall) (TH.VarT es) `TH.AppT` et+                                  | (es, et) <- zip (taName : extraSyms)+                                                    (saturate (TH.ConT typeName) params : map TH.VarT extraTypes)+                                 ])++       pfFun = TH.FunD pf [TH.Clause (map TH.VarP (argName : extraNames))+                                     (TH.NormalB (foldl TH.AppE+                                                        (TH.VarE propName)+                                                        [TH.AppE (TH.ConE 'Forall) (TH.VarE a) | a <- argName : extraNames]))+                                     []+                          ]++       method = TH.FunD 'inductionSchema+                        [TH.Clause [TH.VarP propName]+                                   (TH.NormalB (TH.LetE [pfFun] ihB))+                                   []+                        ]++   context <- TH.cxt [TH.appT (TH.conT ''SymVal) (TH.varT n) | n <- params ++ extraTypes]++   pure [TH.InstanceD Nothing context instHead [method]]
Data/SBV/Client/BaseIO.hs view
@@ -23,7 +23,7 @@                                 SFPHalf, SFPBFloat, SFPSingle, SFPDouble, SFPQuad, SFloatingPoint,                                 SInt8, SInt16, SInt32, SInt64, SInteger, SList,                                 SReal, SString, SV, SWord8, SWord16, SWord32,-                                SWord64, SEither, SRational, SMaybe, SSet, SArray, constrain, (.==))+                                SWord64, SRational, SSet, SArray, constrain, (.==)) import Data.SBV.Core.Kind      (BVIsNonZero, ValidFloat) import Data.SBV.Core.Model     (Metric(..), SymTuple) import Data.SBV.Core.Symbolic  (Objective, OptimizeStyle, Result, VarContext, Symbolic, SBVRunMode, SMTConfig,@@ -34,7 +34,7 @@  import GHC.TypeLits (KnownNat) -import Data.IORef(readIORef, writeIORef)+import Data.IORef(readIORef, modifyIORef')  import qualified Data.SBV.Core.Data      as Trans import qualified Data.SBV.Core.Model     as Trans@@ -224,7 +224,7 @@                         let new = case filter (`notElem` olds) (nm : [nm ++ "_" ++ show i | i <- [(1 :: Int) ..]]) of                                     h:_ -> h                                     []  -> error $ "Impossible: Can't get a fresh variable from infinite list in partition." ++ show (nm, term)-                        writeIORef rPartitionVars (olds ++ [new])+                        modifyIORef' rPartitionVars (++ [new])                         pure new     -- declare and constrain@@ -725,24 +725,6 @@ sTuples :: (SymTuple tup, SymVal tup) => [String] -> Symbolic [SBV tup] sTuples = Trans.sTuples --- | Declare a named 'Data.SBV.SEither'.------ NB. For a version which generalizes over the underlying monad, see 'Data.SBV.Trans.sEither'-sEither :: (SymVal a, SymVal b) => String -> Symbolic (SEither a b)-sEither = Trans.sEither---- | Declare an unnamed 'Data.SBV.SEither'.------ NB. For a version which generalizes over the underlying monad, see 'Data.SBV.Trans.sEither_'-sEither_ :: (SymVal a, SymVal b) => Symbolic (SEither a b)-sEither_ = Trans.sEither_---- | Declare a list of 'Data.SBV.SEither' values.------ NB. For a version which generalizes over the underlying monad, see 'Data.SBV.Trans.sEithers'-sEithers :: (SymVal a, SymVal b) => [String] -> Symbolic [SEither a b]-sEithers = Trans.sEithers- -- | Declare a named 'Data.SBV.SRational'. -- -- NB. For a version which generalizes over the underlying monad, see 'Data.SBV.Trans.sRational'@@ -760,24 +742,6 @@ -- NB. For a version which generalizes over the underlying monad, see 'Data.SBV.Trans.sRationals' sRationals :: [String] -> Symbolic [SRational] sRationals = Trans.sRationals---- | Declare a named 'Data.SBV.SMaybe'.------ NB. For a version which generalizes over the underlying monad, see 'Data.SBV.Trans.sMaybe'-sMaybe :: SymVal a => String -> Symbolic (SMaybe a)-sMaybe = Trans.sMaybe---- | Declare an unnamed 'Data.SBV.SMaybe'.------ NB. For a version which generalizes over the underlying monad, see 'Data.SBV.Trans.sMaybe_'-sMaybe_ :: SymVal a => Symbolic (SMaybe a)-sMaybe_ = Trans.sMaybe_---- | Declare a list of 'Data.SBV.SMaybe' values.------ NB. For a version which generalizes over the underlying monad, see 'Data.SBV.Trans.sMaybes'-sMaybes :: SymVal a => [String] -> Symbolic [SMaybe a]-sMaybes = Trans.sMaybes  -- | Declare a named 'Data.SBV.SSet'. --
Data/SBV/Compilers/C.hs view
@@ -9,8 +9,6 @@ -- Compilation of symbolic programs to C ----------------------------------------------------------------------------- -{-# LANGUAGE CPP           #-}-{-# LANGUAGE PatternGuards #-} {-# LANGUAGE TupleSections #-}  {-# OPTIONS_GHC -Wall -Werror -Wno-incomplete-uni-patterns #-}@@ -23,6 +21,7 @@ import Data.Maybe                     (isJust, isNothing, fromJust) import qualified Data.Foldable as F   (toList) import qualified Data.Set      as Set (member, union, unions, empty, toList, singleton, fromList)+import qualified Data.Text     as T import System.FilePath                (takeBaseName, replaceExtension) import System.Random @@ -33,6 +32,7 @@ import qualified Text.PrettyPrint.HughesPJ as P ((<>))  import Data.SBV.Core.Data+import Data.SBV.Core.Kind (kRoundingMode) import Data.SBV.Compilers.CodeGen  import Data.SBV.Utils.PrettyNum   (chex, showCFloat, showCDouble)@@ -60,11 +60,11 @@ compileToC :: Maybe FilePath -> String -> SBVCodeGen a -> IO a compileToC mbDirName nm f = do (retVal, cfg, bundle) <- compileToC' nm f                                renderCgPgmBundle mbDirName (cfg, bundle)-                               return retVal+                               pure retVal  -- | Lower level version of 'compileToC', producing a t'CgPgmBundle' compileToC' :: String -> SBVCodeGen a -> IO (a, CgConfig, CgPgmBundle)-compileToC' nm f = do rands <- randoms `fmap` newStdGen+compileToC' nm f = do rands <- randoms <$> newStdGen                       codeGen SBVToC (defaultCgConfig { cgDriverVals = rands }) nm f  -- | Create code to generate a library archive (.a) from given symbolic functions. Useful when generating code@@ -80,13 +80,13 @@ compileToCLib :: Maybe FilePath -> String -> [(String, SBVCodeGen a)] -> IO [a] compileToCLib mbDirName libName comps = do (retVal, cfg, pgm) <- compileToCLib' libName comps                                            renderCgPgmBundle mbDirName (cfg, pgm)-                                           return retVal+                                           pure retVal  -- | Lower level version of 'compileToCLib', producing a t'CgPgmBundle' compileToCLib' :: String -> [(String, SBVCodeGen a)] -> IO ([a], CgConfig, CgPgmBundle) compileToCLib' libName comps = do resCfgBundles <- mapM (uncurry compileToC') comps                                   let (finalCfg, finalPgm) = mergeToLib libName [(c, b) | (_, c, b) <- resCfgBundles]-                                  return ([r | (r, _, _) <- resCfgBundles], finalCfg, finalPgm)+                                  pure ([r | (r, _, _) <- resCfgBundles], finalCfg, finalPgm)  --------------------------------------------------------------------------- -- * Implementation@@ -198,6 +198,7 @@ -- | The printf specifier for the type specifier :: CgConfig -> SV -> Doc specifier cfg sv = case kindOf sv of+                     KVar{}        -> die $ "variable sort: " ++ show (kindOf sv)                      KBool         -> spec (False, 1)                      KBounded b i  -> spec (b, i)                      KUnbounded    -> spec (True, fromJust (cgInteger cfg))@@ -210,10 +211,9 @@                      KFP{}         -> die   "arbitrary float sort"                      KList k       -> die $ "list sort: "   ++ show k                      KSet  k       -> die $ "set sort: "    ++ show k-                     KUserSort s _ -> die $ "user sort: "   ++ s+                     KApp s _      -> die $ "ADT app: "     ++ s+                     KADT s _ _    -> die $ "ADT: "         ++ s                      KTuple k      -> die $ "tuple sort: "  ++ show k-                     KMaybe  k     -> die $ "maybe sort: "  ++ show k-                     KEither k1 k2 -> die $ "either sort: " ++ show (k1, k2)                      KArray  k1 k2 -> die $ "array sort: "  ++ show (k1, k2)   where u8InHex = cgShowU8InHex cfg @@ -256,15 +256,15 @@ showSizedConst :: Bool -> Integer -> (Bool, Int) -> Doc showSizedConst _   i   (False,  1) = text (if i == 0 then "false" else "true") showSizedConst u8h i t@(False,  8)-  | u8h                            = text (chex False True t i)+  | u8h                            = text $ T.unpack (chex False True t i)   | True                           = integer i showSizedConst _   i   (True,   8) = integer i-showSizedConst _   i t@(False, 16) = text $ chex False True t i-showSizedConst _   i t@(True,  16) = text $ chex False True t i-showSizedConst _   i t@(False, 32) = text $ chex False True t i-showSizedConst _   i t@(True,  32) = text $ chex False True t i-showSizedConst _   i t@(False, 64) = text $ chex False True t i-showSizedConst _   i t@(True,  64) = text $ chex False True t i+showSizedConst _   i t@(False, 16) = text $ T.unpack $ chex False True t i+showSizedConst _   i t@(True,  16) = text $ T.unpack $ chex False True t i+showSizedConst _   i t@(False, 32) = text $ T.unpack $ chex False True t i+showSizedConst _   i t@(True,  32) = text $ T.unpack $ chex False True t i+showSizedConst _   i t@(False, 64) = text $ T.unpack $ chex False True t i+showSizedConst _   i t@(True,  64) = text $ T.unpack $ chex False True t i showSizedConst _   i   (s, sz)     = die $ "Constant " ++ show i ++ " at type " ++ (if s then "SInt" else "SWord") ++ show sz  -- | Generate a makefile. The first argument is True if we have a driver.@@ -463,10 +463,6 @@   = notyet "Lists (SList)"   | any isTuple kindInfo   = notyet "Tuples (STupleN)"-  | any isMaybe kindInfo-  = notyet "Optional (SMaybe) values"-  | any isEither kindInfo-  = notyet "Either (SEither) values"   | isNothing (cgReal cfg) && KReal `Set.member` kindInfo   = error $ "SBV->C: SReal values are not supported by the C compiler."           ++ "\nUse 'cgSRealType' to specify a custom type for SReal representation."@@ -489,7 +485,7 @@        asserts | cgIgnoreAsserts cfg = []                | True                = origAsserts -       usorts = [s | KUserSort s _ <- Set.toList kindInfo, s /= "RoundingMode"] -- No support for any sorts other than RoundingMode!+       usorts = [s | k@(KADT s _ _) <- Set.toList kindInfo, isADT k && not (isRoundingMode k)] -- No support for any sorts other than RoundingMode!         pre    =  text "/* File:" <+> doubleQuotes (nm P.<> text ".c") P.<> text ". Automatically generated by SBV. Do not edit! */"               $$ text ""@@ -533,7 +529,8 @@                ResultLamInps is       -> die $ "Unexpected inputs  : " ++ show is         typeWidth = getMax 0 $ [len (kindOf s) | (s, _) <- assignments] ++ [len (kindOf s) | NamedSymVar s _ <- ins]-                where len KReal{}            = 5+                where len (KVar s)           = die $ "Variable: " ++ s+                      len KReal{}            = 5                       len KFloat{}           = 6 -- SFloat                       len KDouble{}          = 7 -- SDouble                       len KString{}          = 7 -- SString@@ -547,10 +544,9 @@                       len (KList s)          = die $ "List sort: "   ++ show s                       len (KSet  s)          = die $ "Set sort: "    ++ show s                       len (KTuple s)         = die $ "Tuple sort: "  ++ show s-                      len (KMaybe k)         = die $ "Maybe sort: "  ++ show k-                      len (KEither k1 k2)    = die $ "Either sort: " ++ show (k1, k2)                       len (KArray  k1 k2)    = die $ "Array sort:  " ++ show (k1, k2)-                      len (KUserSort s _)    = die $ "Uninterpreted sort: " ++ s+                      len (KApp s _)         = die $ "Uninterpreted ADT app: " ++ s+                      len (KADT s _ _)       = die $ "Uninterpreted ADT: "     ++ s                        getMax 8 _      = 8  -- 8 is the max we can get with SInteger, so don't bother looking any further                       getMax m []     = m@@ -613,7 +609,7 @@         genAssert (msg, cs, sv) = (getNodeId sv, doc)          where doc =     text "/* ASSERTION:" <+> text msg-                     $$  maybe empty (vcat . map text) (locInfo (getCallStack `fmap` cs))+                     $$  maybe empty (vcat . map text) (locInfo (getCallStack <$> cs))                      $$  text " */"                      $$  text "if" P.<> parens (showSV cfg consts sv)                      $$  text "{"@@ -695,21 +691,21 @@         -- grab the rounding-mode, if present, and make sure it's RoundNearestTiesToEven. Otherwise skip.         fpArgs = case as of                    []            -> []-                   ((m, _):args) -> case kindOf m of-                                      KUserSort "RoundingMode" _ -> case checkRM (m `lookup` consts) of-                                                                      Nothing          -> args-                                                                      Just (Left  msg) -> die msg-                                                                      Just (Right msg) -> tbd msg-                                      _                          -> as+                   ((m, _):args)+                     | isRoundingMode m -> case checkRM (m `lookup` consts) of+                                             Nothing          -> args+                                             Just (Left  msg) -> die msg+                                             Just (Right msg) -> tbd msg+                     | True              -> as          -- Check that the RM is RoundNearestTiesToEven.         -- If we start supporting other rounding-modes, this would be the point where we'd insert the rounding-mode set/reset code         -- instead of merely returning OK or not-        checkRM (Just cv@(CV (KUserSort "RoundingMode" _) v)) =-              case v of-                CUserSort (_, "RoundNearestTiesToEven") -> Nothing-                CUserSort (_, s)                        -> Just (Right $ "handleIEEE: Unsupported rounding-mode: " ++ show s ++ " for: " ++ show w)-                _                                       -> Just (Left  $ "handleIEEE: Unexpected value for rounding-mode: " ++ show cv ++ " for: " ++ show w)+        checkRM (Just cv@(CV k v))+          | k == kRoundingMode = case v of+                                   CADT ("RoundNearestTiesToEven", []) -> Nothing+                                   CADT (s,                        []) -> Just (Right $ "handleIEEE: Unsupported rounding-mode: " ++ show s ++ " for: " ++ show w)+                                   _                                   -> Just (Left  $ "handleIEEE: Unexpected value for rounding-mode: " ++ show cv ++ " for: " ++ show w)         checkRM (Just cv) = Just (Left  $ "handleIEEE: Expected rounding-mode, but got: " ++ show cv ++ " for: " ++ show w)         checkRM Nothing   = Just (Right $ "handleIEEE: Non-constant rounding-mode for: " ++ show w) @@ -768,8 +764,8 @@         p (PseudoBoolean pb) as = handlePB pb as         p (OverflowOp o) _      = tbd $ "Overflow operations" ++ show o         p (KindCast _ to)   [a] = parens (text (show to)) <+> a-        p (Uninterpreted s) [] = text "/* Uninterpreted constant */" <+> text s-        p (Uninterpreted s) as = text "/* Uninterpreted function */" <+> text s P.<> parens (fsep (punctuate comma as))+        p (Uninterpreted s) [] = text "/* Uninterpreted constant */" <+> text (T.unpack s)+        p (Uninterpreted s) as = text "/* Uninterpreted function */" <+> text (T.unpack s) P.<> parens (fsep (punctuate comma as))         p (Extract i j) [a]    = extract i j (hd "Extract" opArgs) a         p Join [a, b]          = join (let (s1 : s2 : _) = opArgs in (s1, s2, a, b))         p (Rol i) [a]          = rotate True  i a (hd "Rol" opArgs)@@ -800,6 +796,7 @@                 canOverflow False sz = (2::Integer)^sz    -1 >= fromIntegral len                  (needsCheckL, needsCheckR) = case k of+                                               KVar{}          -> die $ "array index with variable: " ++ show k                                                KBool           -> (False, canOverflow False (1::Int))                                                KBounded sg sz  -> (sg, canOverflow sg sz)                                                KReal           -> die "array index with real value"@@ -815,10 +812,9 @@                                                KList     s     -> die $ "List sort "   ++ show s                                                KSet      s     -> die $ "Set sort "    ++ show s                                                KTuple    s     -> die $ "Tuple sort "  ++ show s-                                               KMaybe    ek    -> die $ "Maybe sort "  ++ show ek-                                               KEither   k1 k2 -> die $ "Either sort " ++ show (k1, k2)                                                KArray    k1 k2 -> die $ "Array  sort " ++ show (k1, k2)-                                               KUserSort s _   -> die $ "Uninterpreted sort: " ++ s+                                               KApp      s _   -> die $ "ADT app: " ++ s+                                               KADT      s _ _ -> die $ "ADT: "     ++ s          -- Div/Rem should be careful on 0, in the SBV world x `div` 0 is 0, x `rem` 0 is x         -- NB: Quot is supposed to truncate toward 0; Not clear to me if C guarantees this behavior.
Data/SBV/Compilers/CodeGen.hs view
@@ -9,8 +9,6 @@ -- Code generation utilities ----------------------------------------------------------------------------- -{-# LANGUAGE CPP                        #-}-{-# LANGUAGE FlexibleInstances          #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-}  {-# OPTIONS_GHC -Wall -Werror #-}@@ -59,10 +57,6 @@  import Data.SBV.Provers.Prover(defaultSMTCfg) -#if MIN_VERSION_base(4,11,0)-import Control.Monad.Fail as Fail-#endif- -- | Abstract over code generation for different languages class CgTarget a where   targetName :: a -> String@@ -127,9 +121,7 @@ newtype SBVCodeGen a = SBVCodeGen (StateT CgState Symbolic a)                    deriving ( Applicative, Functor, Monad, MonadIO, MonadState CgState                             , MonadSymbolic-#if MIN_VERSION_base(4,11,0)-                            , Fail.MonadFail-#endif+                            , MonadFail                             )  -- | Reach into symbolic monad from code-generation@@ -221,7 +213,7 @@ svCgInput k nm = do r  <- symbolicEnv >>= liftIO . svMkSymVar (NonQueryVar (Just ALL)) k Nothing                     sv <- svToSymSV r                     modify' (\s -> s { cgInputs = (nm, CgAtomic sv) : cgInputs s })-                    return r+                    pure r  -- | Creates an array input in the generated code. svCgInputArr :: Kind -> Int -> String -> SBVCodeGen [SVal]@@ -230,7 +222,7 @@   | True   = do rs  <- symbolicEnv >>= liftIO . replicateM sz . svMkSymVar (NonQueryVar (Just ALL)) k Nothing                 sws <- mapM svToSymSV rs                 modify' (\s -> s { cgInputs = (nm, CgArray sws) : cgInputs s })-                return rs+                pure rs  -- | Creates an atomic output in the generated code. svCgOutput :: String -> SVal -> SBVCodeGen ()@@ -267,7 +259,7 @@ cgInput nm = do r  <- free_                 sv <- sbvToSymSV r                 modify' (\s -> s { cgInputs = (nm, CgAtomic sv) : cgInputs s })-                return r+                pure r  -- | Creates an array input in the generated code. cgInputArr :: SymVal a => Int -> String -> SBVCodeGen [SBV a]@@ -276,7 +268,7 @@   | True   = do rs <- mapM (const free_) [1..sz]                 sws <- mapM sbvToSymSV rs                 modify' (\s -> s { cgInputs = (nm, CgArray sws) : cgInputs s })-                return rs+                pure rs  -- | Creates an atomic output in the generated code. cgOutput :: String -> SBV a -> SBVCodeGen ()@@ -348,7 +340,7 @@    unless (null dupNames) $         error $ "SBV.codeGen: " ++ show nm ++ " has following argument names duplicated: " ++ unwords dupNames -   return (retVal, cgFinalConfig st, translate l (cgFinalConfig st) nm st res)+   pure (retVal, cgFinalConfig st, translate l (cgFinalConfig st) nm st res)  -- | Render a code-gen bundle to a directory or to stdout renderCgPgmBundle :: Maybe FilePath -> (CgConfig, CgPgmBundle) -> IO ()@@ -362,14 +354,14 @@         dups <- filterM (\fn -> doesFileExist (dirName </> fn)) (map fst files)          goOn <- case (overWrite, dups) of-                  (True, _) -> return True-                  (_,   []) -> return True+                  (True, _) -> pure True+                  (_,   []) -> pure True                   _         -> do putStrLn $ "Code generation would overwrite the following " ++ (if length dups == 1 then "file:" else "files:")                                   mapM_ (\fn -> putStrLn ('\t' : fn)) dups                                   putStr "Continue? [yn] "                                   hFlush stdout                                   resp <- getLine-                                  return $ map toLower resp `isPrefixOf` "yes"+                                  pure $ map toLower resp `isPrefixOf` "yes"          if goOn then do mapM_ renderFile files                         unless overWrite $ putStrLn "Done."
Data/SBV/Control.hs view
@@ -22,7 +22,7 @@       -- * Querying the solver      -- ** Extracting values-     , getFunction, getUninterpretedValue, getModel, getAssignment, getSMTResult, getUnknownReason, getObservables+     , getFunction, getModel, getAssignment, getSMTResult, getUnknownReason, getObservables       -- ** Extracting the unsat core      , getUnsatCore
Data/SBV/Control/BaseIO.hs view
@@ -11,8 +11,6 @@ -- @Data.SBV.Control@, where we restrict the underlying monad to be IO. ----------------------------------------------------------------------------- -{-# LANGUAGE FlexibleContexts #-}- {-# OPTIONS_GHC -Wall -Werror #-}  module Data.SBV.Control.BaseIO where@@ -20,9 +18,11 @@ import Data.SBV.Control.Query (Assignment) import Data.SBV.Control.Types (CheckSatResult, SMTInfoFlag, SMTInfoResponse, SMTOption, SMTReasonUnknown) import Data.SBV.Core.Concrete (CV)-import Data.SBV.Core.Data     (HasKind, Symbolic, SymVal, SBool, SBV, SBVType)+import Data.SBV.Core.Data     (Symbolic, SymVal, SBool, SBV, SBVType) import Data.SBV.Core.Symbolic (Query, QueryContext, QueryState, State, SMTModel, SMTResult, SV, Name) +import Data.Text (Text)+ import qualified Data.SBV.Control.Query as Trans import qualified Data.SBV.Control.Utils as Trans @@ -240,7 +240,7 @@ -- for this call to not error out! -- -- To get an interpolant for a pair of formulas @A@ and @B@, use a 'Data.SBV.constrainWithAttribute' call to attach--- interplation groups to @A@ and @B@. Then call 'getInterpolantMathSAT' @[\"A\"]@, assuming those are the names+-- interpolation groups to @A@ and @B@. Then call 'getInterpolantMathSAT' @[\"A\"]@, assuming those are the names -- you gave to the formulas in the @A@ group. -- -- An interpolant for @A@ and @B@ is a formula @I@ such that:@@ -403,20 +403,20 @@ -- file redirection is given, the output will go to the file. -- -- NB. For a version which generalizes over the underlying monad, see 'Data.SBV.Trans.Control.queryDebug'-queryDebug :: [String] -> Query ()+queryDebug :: [Text] -> Query () queryDebug = Trans.queryDebug  -- | Send a string to the solver, and return the response -- -- NB. For a version which generalizes over the underlying monad, see 'Data.SBV.Trans.Control.ask'-ask :: String -> Query String+ask :: Text -> Query String ask = Trans.ask  -- | Send a string to the solver. If the first argument is 'True', we will require -- a "success" response as well. Otherwise, we'll fire and forget. -- -- NB. For a version which generalizes over the underlying monad, see 'Data.SBV.Trans.Control.send'-send :: Bool -> String -> Query ()+send :: Bool -> Text -> Query () send = Trans.send  -- | Retrieve a responses from the solver until it produces a synchronization tag. We make the tag@@ -436,12 +436,6 @@ getValue :: SymVal a => SBV a -> Query a getValue = Trans.getValue --- | Get the value of an uninterpreted sort, as a String------ NB. For a version which generalizes over the underlying monad, see 'Data.SBV.Trans.Control.getUninterpretedValue'-getUninterpretedValue :: HasKind a => SBV a -> Query String-getUninterpretedValue = Trans.getUninterpretedValue- -- | Get the value of an uninterpreted function, as a list of domain, value pairs. -- The final value is the "else" clause, i.e., what the function maps values outside -- of the domain of the first list. If the result is not a value-association, then we get a string@@ -514,7 +508,7 @@ -- | Bail out if we don't get what we expected -- -- NB. For a version which generalizes over the underlying monad, see 'Data.SBV.Trans.Control.unexpected'-unexpected :: String -> String -> String -> Maybe [String] -> String -> Maybe [String] -> Query a+unexpected :: String -> Text -> String -> Maybe [String] -> String -> Maybe [String] -> Query a unexpected = Trans.unexpected  -- | Execute a query.
Data/SBV/Control/Query.hs view
@@ -9,22 +9,19 @@ -- Querying a solver interactively. ----------------------------------------------------------------------------- -{-# LANGUAGE BangPatterns        #-} {-# LANGUAGE LambdaCase          #-} {-# LANGUAGE NamedFieldPuns      #-}-{-# LANGUAGE Rank2Types          #-}+{-# LANGUAGE OverloadedStrings   #-} {-# LANGUAGE ScopedTypeVariables #-}-{-# LANGUAGE TupleSections       #-}-{-# LANGUAGE ViewPatterns        #-} -{-# OPTIONS_GHC -Wall -Werror -fno-warn-orphans #-}+{-# OPTIONS_GHC -Wall -Werror -Wno-orphans #-}  module Data.SBV.Control.Query (        send, ask, retrieveResponse      , CheckSatResult(..), checkSat, checkSatUsing, checkSatAssuming, checkSatAssumingWithUnsatisfiableSet      , getUnsatCore, getProof, getInterpolantMathSAT, getInterpolantZ3, getAbduct, getAbductNext, getAssignment, getOption      , push, pop, getAssertionStackDepth-     , inNewAssertionStack, echo, caseSplit, resetAssertions, exit, getAssertions, getUninterpretedValue, getModel, getSMTResult+     , inNewAssertionStack, echo, caseSplit, resetAssertions, exit, getAssertions, getModel, getSMTResult      , getLexicographicOptResults, getIndependentOptResults, getParetoOptResults, getAllSatResult, getUnknownReason, getObservables, ensureSat      , SMTOption(..), SMTInfoFlag(..), SMTErrorBehavior(..), SMTReasonUnknown(..), SMTInfoResponse(..), getInfo      , Logic(..), Assignment(..)@@ -40,44 +37,30 @@ import Data.IORef (readIORef)  import qualified Data.Map.Strict as M-import qualified Data.Sequence   as S import qualified Data.Text       as T import qualified Data.Foldable   as F   import Data.Char      (toLower)-import Data.List      (intercalate, nubBy, sortOn)-import Data.Maybe     (listToMaybe, catMaybes, fromMaybe)+import Data.List      (intercalate, nubBy)+import Data.Maybe     (fromMaybe) import Data.Function  (on)-import Data.Bifunctor (first)-import Data.Foldable  (toList)  import Data.SBV.Core.Data -import Data.SBV.Core.Symbolic (MonadQuery(..), State(..), incrementInternalCounter, validationRequested, getSV, lookupInput, mustIgnoreVar)+import Data.SBV.Core.Symbolic (MonadQuery(..), State(..), incrementInternalCounter, getSV)  import Data.SBV.Utils.SExpr  import Data.SBV.Control.Types import Data.SBV.Control.Utils -import Data.SBV.Utils.Lib       (unBar)+import Data.SBV.Utils.Lib       (showText, unBar) import Data.SBV.Utils.PrettyNum (showNegativeNumber)  -- | An Assignment of a model binding data Assignment = Assign SVal CV --- | Remove the bars from model names; these are (mostly!) automatically inserted-unBarModel :: SMTModel -> SMTModel-unBarModel SMTModel {modelObjectives, modelBindings, modelAssocs, modelUIFuns}-   = SMTModel { modelObjectives = ubf       <$> modelObjectives-              , modelBindings   = (ubn <$>) <$> modelBindings-              , modelAssocs     = ubf       <$> modelAssocs-              , modelUIFuns     = ubf       <$> modelUIFuns-              }-   where ubf (n, a) = (unBar n, a)-         ubn (NamedSymVar sv nm, a) = (NamedSymVar sv (T.pack (unBar (T.unpack nm))), a)- -- Is this a string? If so, return it, otherwise fail in the Maybe monad. fromECon :: SExpr -> Maybe String fromECon (ECon s) = Just s@@ -86,7 +69,7 @@ -- Collect strings appearing, used in 'getOption' only stringsOf :: SExpr -> [String] stringsOf (ECon s)           = [s]-stringsOf (ENum (i, _))      = [show i]+stringsOf (ENum (i, _, _))   = [show i] stringsOf (EReal   r)        = [show r] stringsOf (EFloat  f)        = [show f] stringsOf (EFloatingPoint f) = [show f]@@ -97,10 +80,10 @@ serialize :: Bool -> SExpr -> String serialize removeQuotes = go   where go (ECon s)           = if removeQuotes then unQuote s else s-        go (ENum (i, _))      = showNegativeNumber i-        go (EReal   r)        = showNegativeNumber r-        go (EFloat  f)        = showNegativeNumber f-        go (EDouble d)        = showNegativeNumber d+        go (ENum (i, _, _))   = T.unpack (showNegativeNumber i)+        go (EReal   r)        = T.unpack (showNegativeNumber r)+        go (EFloat  f)        = T.unpack (showNegativeNumber f)+        go (EDouble d)        = T.unpack (showNegativeNumber d)         go (EFloatingPoint f) = show f         go (EApp [x])         = go x         go (EApp ss)          = "(" ++ unwords (map go ss) ++ ")"@@ -108,7 +91,7 @@ -- | Generalization of 'Data.SBV.Control.getInfo' getInfo :: (MonadIO m, MonadQuery m) => SMTInfoFlag -> m SMTInfoResponse getInfo flag = do-    let cmd = "(get-info " ++ show flag ++ ")"+    let cmd = "(get-info " <> showText flag <> ")"         bad = unexpected "getInfo" cmd "a valid get-info response" Nothing          isAllStatistics AllStatistics = True@@ -130,17 +113,17 @@      parse r bad $ \pe ->        if isAllStat-          then return $ Resp_AllStatistics $ grabAllStats pe+          then pure $ Resp_AllStatistics $ grabAllStats pe           else case pe of-                 ECon "unsupported"                                        -> return Resp_Unsupported-                 EApp [ECon ":assertion-stack-levels", ENum (i, _)]        -> return $ Resp_AssertionStackLevels i-                 EApp (ECon ":authors" : ns)                               -> return $ Resp_Authors (map render ns)-                 EApp [ECon ":error-behavior", ECon "immediate-exit"]      -> return $ Resp_Error ErrorImmediateExit-                 EApp [ECon ":error-behavior", ECon "continued-execution"] -> return $ Resp_Error ErrorContinuedExecution-                 EApp (ECon ":name" : o)                                   -> return $ Resp_Name (render (EApp o))-                 EApp (ECon ":reason-unknown" : o)                         -> return $ Resp_ReasonUnknown (unk o)-                 EApp (ECon ":version" : o)                                -> return $ Resp_Version (render (EApp o))-                 EApp (ECon s : o)                                         -> return $ Resp_InfoKeyword s (map render o)+                 ECon "unsupported"                                        -> pure Resp_Unsupported+                 EApp [ECon ":assertion-stack-levels", ENum (i, _, _)]     -> pure $ Resp_AssertionStackLevels i+                 EApp (ECon ":authors" : ns)                               -> pure $ Resp_Authors (map render ns)+                 EApp [ECon ":error-behavior", ECon "immediate-exit"]      -> pure $ Resp_Error ErrorImmediateExit+                 EApp [ECon ":error-behavior", ECon "continued-execution"] -> pure $ Resp_Error ErrorContinuedExecution+                 EApp (ECon ":name" : o)                                   -> pure $ Resp_Name (render (EApp o))+                 EApp (ECon ":reason-unknown" : o)                         -> pure $ Resp_ReasonUnknown (unk o)+                 EApp (ECon ":version" : o)                                -> pure $ Resp_Version (render (EApp o))+                 EApp (ECon s : o)                                         -> pure $ Resp_InfoKeyword s (map render o)                  _                                                         -> bad r Nothing    where render = serialize True@@ -178,33 +161,33 @@                  SetInfo{}                   -> error "Data.SBV.Query: SMTLib does not allow querying value of meta-info!"    where askFor sbvName smtLibName continue = do-                let cmd = "(get-option " ++ smtLibName ++ ")"+                let cmd = "(get-option " <> T.pack smtLibName <> ")"                     bad = unexpected ("getOption " ++ sbvName) cmd "a valid option value" Nothing                  r <- ask cmd -                parse r bad $ \case ECon "unsupported" -> return Nothing+                parse r bad $ \case ECon "unsupported" -> pure Nothing                                     e                  -> continue e (bad r) -        string c (ECon s) _ = return $ Just $ c s+        string c (ECon s) _ = pure $ Just $ c s         string _ e        k = k $ Just ["Expected string, but got: " ++ show (serialize False e)] -        bool c (ENum (0, _)) _ = return $ Just $ c False-        bool c (ENum (1, _)) _ = return $ Just $ c True-        bool _ e             k = k $ Just ["Expected boolean, but got: " ++ show (serialize False e)]+        bool c (ENum (0, _, True)) _ = pure $ Just $ c False+        bool c (ENum (1, _, True)) _ = pure $ Just $ c True+        bool _ e                   k = k $ Just ["Expected boolean, but got: " ++ show (serialize False e)] -        integer c (ENum (i, _)) _ = return $ Just $ c i-        integer _ e             k = k $ Just ["Expected integer, but got: " ++ show (serialize False e)]+        integer c (ENum (i, _, _)) _ = pure $ Just $ c i+        integer _ e                k = k $ Just ["Expected integer, but got: " ++ show (serialize False e)]          -- free format, really-        stringList c e _ = return $ Just $ c $ stringsOf e+        stringList c e _ = pure $ Just $ c $ stringsOf e  -- | Generalization of 'Data.SBV.Control.getUnknownReason' getUnknownReason :: (MonadIO m, MonadQuery m) => m SMTReasonUnknown getUnknownReason = do ru <- getInfo ReasonUnknown                       case ru of-                        Resp_Unsupported     -> return $ UnknownOther "Solver responded: Unsupported."-                        Resp_ReasonUnknown r -> return r+                        Resp_Unsupported     -> pure $ UnknownOther "Solver responded: Unsupported."+                        Resp_ReasonUnknown r -> pure r                         -- Shouldn't happen, but just in case:                         _                    -> error $ "Unexpected reason value received: " ++ show ru @@ -213,8 +196,8 @@ ensureSat = do cfg <- getConfig                cs <- checkSatUsing $ satCmd cfg                case cs of-                 Sat    -> return ()-                 DSat{} -> return ()+                 Sat    -> pure ()+                 DSat{} -> pure ()                  Unk    -> do s <- getUnknownReason                               error $ unlines [ ""                                               , "*** Data.SBV.ensureSat: Solver reported Unknown!"@@ -250,7 +233,7 @@                                   Unk    -> Unknown       cfg <$> getUnknownReason    where getModelWithObjectives = do objectiveValues <- getObjectiveValues                                      m               <- getModel-                                     return m {modelObjectives = objectiveValues}+                                     pure m {modelObjectives = objectiveValues}  -- | Generalization of 'Data.SBV.Control.getIndependentOptResults' getIndependentOptResults :: forall m. (MonadIO m, MonadQuery m) => [String] -> m [(String, SMTResult)]@@ -258,163 +241,48 @@                                        cs  <- checkSat                                         case cs of-                                         Unsat  -> getUnsatCoreIfRequested >>= \mbUC -> return [(nm, Unsatisfiable cfg mbUC) | nm <- objNames]+                                         Unsat  -> getUnsatCoreIfRequested >>= \mbUC -> pure [(nm, Unsatisfiable cfg mbUC) | nm <- objNames]                                          Sat    -> continue (classifyModel cfg)                                          DSat{} -> continue (classifyModel cfg)                                          Unk    -> do ur <- Unknown cfg <$> getUnknownReason-                                                      return [(nm, ur) | nm <- objNames]+                                                      pure [(nm, ur) | nm <- objNames]    where continue classify = do objectiveValues <- getObjectiveValues                                nms <- zipWithM getIndependentResult [0..] objNames-                               return [(n, classify (m {modelObjectives = objectiveValues})) | (n, m) <- nms]+                               pure [(n, classify (m {modelObjectives = objectiveValues})) | (n, m) <- nms]          getIndependentResult :: Int -> String -> m (String, SMTModel)         getIndependentResult i s = do m <- getModelAtIndex (Just i)-                                      return (s, m)+                                      pure (s, m)  -- | Generalization of 'Data.SBV.Control.getParetoOptResults' getParetoOptResults :: (MonadIO m, MonadQuery m) => Maybe Int -> m (Bool, [SMTResult]) getParetoOptResults (Just i)-        | i <= 0             = return (True, [])+        | i <= 0             = pure (True, []) getParetoOptResults mbN      = do cfg <- getConfig                                   cs  <- checkSat                                    case cs of-                                    Unsat  -> return (False, [])+                                    Unsat  -> pure (False, [])                                     Sat    -> continue (classifyModel cfg)                                     DSat{} -> continue (classifyModel cfg)                                     Unk    -> do ur <- getUnknownReason-                                                 return (False, [ProofError cfg [show ur] Nothing])+                                                 pure (False, [ProofError cfg [show ur] Nothing])    where continue classify = do m <- getModel                                (limReached, fronts) <- getParetoFronts (subtract 1 <$> mbN) [m]-                               return (limReached, reverse (map classify fronts))+                               pure (limReached, reverse (map classify fronts))          getParetoFronts :: (MonadIO m, MonadQuery m) => Maybe Int -> [SMTModel] -> m (Bool, [SMTModel])-        getParetoFronts (Just i) sofar | i <= 0 = return (True, sofar)+        getParetoFronts (Just i) sofar | i <= 0 = pure (True, sofar)         getParetoFronts mbi      sofar          = do cs <- checkSat                                                      let more = getModel >>= \m -> getParetoFronts (subtract 1 <$> mbi) (m : sofar)                                                      case cs of-                                                       Unsat  -> return (False, sofar)+                                                       Unsat  -> pure (False, sofar)                                                        Sat    -> more                                                        DSat{} -> more                                                        Unk    -> more --- | Generalization of 'Data.SBV.Control.getModel'-getModel :: (MonadIO m, MonadQuery m) => m SMTModel-getModel = getModelAtIndex Nothing---- | Get a model stored at an index. This is likely very Z3 specific!-getModelAtIndex :: (MonadIO m, MonadQuery m) => Maybe Int -> m SMTModel-getModelAtIndex mbi = do-    State{runMode} <- queryState-    rm <- io $ readIORef runMode-    case rm of-      m@CodeGen     -> error $ "SBV.getModel: Model is not available in mode: " ++ show m-      m@LambdaGen{} -> error $ "SBV.getModel: Model is not available in mode: " ++ show m-      m@Concrete{}  -> error $ "SBV.getModel: Model is not available in mode: " ++ show m-      SMTMode{}     -> do-          cfg <- getConfig-          uis <- getUIs--          allModelInputs <- getTopLevelInputs-          obsvs          <- getObservables--          inputAssocs <- let grab (NamedSymVar sv nm) = let wrap !c = (sv, (nm, c)) in wrap <$> getValueCV mbi sv-                         in mapM grab allModelInputs--          let name     = fst . snd-              removeSV = snd-              prepare  = S.unstableSort . S.filter (not . mustIgnoreVar cfg . T.unpack . name)-              assocs   = fmap removeSV (prepare inputAssocs) <> S.fromList (sortOn fst obsvs)--          -- collect UIs, and UI functions if requested-          let uiFuns = [ui | ui@(nm, (_, _, SBVType as)) <- uis, length as >  1, allSatTrackUFs cfg, not (mustIgnoreVar cfg nm)] -- functions have at least two things in their type!-              uiRegs = [ui | ui@(nm, (_, _, SBVType as)) <- uis, length as == 1,                     not (mustIgnoreVar cfg nm)]--          -- If there are uninterpreted functions, arrange so that z3's pretty-printer flattens things out-          -- as cex's tend to get larger-          unless (null uiFuns) $-             let solverCaps = capabilities (solver cfg)-             in case supportsFlattenedModels solverCaps of-                  Nothing   -> return ()-                  Just cmds -> mapM_ (send True) cmds--          bindings <- let get i@(getSV -> sv) = case lookupInput fst sv inputAssocs of-                                                  Just (_, (_, cv)) -> return (i, cv)-                                                  Nothing           -> do cv <- getValueCV mbi sv-                                                                          return (i, cv)--                      in if validationRequested cfg-                         then Just <$> mapM get allModelInputs-                         else return Nothing--          uiFunVals <- mapM (\ui@(nm, (c, _, t)) -> (\a -> (nm, (c, t, a))) <$> getUIFunCVAssoc mbi ui) uiFuns--          uiVals    <- mapM (\ui@(nm, (_, _, _)) -> (nm,) <$> getUICVal mbi ui) uiRegs--          return $ unBarModel $ SMTModel { modelObjectives = []-                                         , modelBindings   = toList <$> bindings-                                         , modelAssocs     = uiVals ++ toList (first T.unpack <$> assocs)-                                         , modelUIFuns     = uiFunVals-                                         }---- | Just after a check-sat is issued, collect objective values. Used--- internally only, not exposed to the user.-getObjectiveValues :: forall m. (MonadIO m, MonadQuery m) => m [(String, GeneralizedCV)]-getObjectiveValues = do let cmd = "(get-objectives)"--                            bad = unexpected "getObjectiveValues" cmd "a list of objective values" Nothing--                        r <- ask cmd--                        inputs <- F.toList <$> getTopLevelInputs--                        parse r bad $ \case EApp (ECon "objectives" : es) -> catMaybes <$> mapM (getObjValue (bad r) inputs) es-                                            _                             -> bad r Nothing--  where -- | Parse an objective value out.-        getObjValue :: (forall a. Maybe [String] -> m a) -> [NamedSymVar] -> SExpr -> m (Maybe (String, GeneralizedCV))-        getObjValue bailOut inputs expr =-                case expr of-                  EApp [_]          -> return Nothing            -- Happens when a soft-assertion has no associated group.-                  EApp [ECon nm, v] -> locate nm v               -- Regular case-                  _                 -> dontUnderstand (show expr)--          where locate nm v = case listToMaybe [p | p@(NamedSymVar sv _) <- inputs, show sv == nm] of-                                Nothing                          -> return Nothing -- Happens when the soft assertion has a group-id that's not one of the input names-                                Just (NamedSymVar sv actualName) -> grab sv v >>= \val -> return $ Just (T.unpack actualName, val)--                dontUnderstand s = bailOut $ Just [ "Unable to understand solver output."-                                                  , "While trying to process: " ++ s-                                                  ]--                grab :: SV -> SExpr -> m GeneralizedCV-                grab s topExpr-                  | Just v <- recoverKindedValue k topExpr = return $ RegularCV v-                  | True                                   = ExtendedCV <$> cvt (simplify topExpr)-                  where k = kindOf s--                        -- Convert to an extended expression. Hopefully complete!-                        cvt :: SExpr -> m ExtCV-                        cvt (ECon "oo")                    = return $ Infinite  k-                        cvt (ECon "epsilon")               = return $ Epsilon   k-                        cvt (EApp [ECon "interval", x, y]) =          Interval  <$> cvt x <*> cvt y-                        cvt (ENum    (i, _))               = return $ BoundedCV $ mkConstCV k i-                        cvt (EReal   r)                    = return $ BoundedCV $ CV k $ CAlgReal r-                        cvt (EFloat  f)                    = return $ BoundedCV $ CV k $ CFloat   f-                        cvt (EDouble d)                    = return $ BoundedCV $ CV k $ CDouble  d-                        cvt (EApp [ECon "+", x, y])        =          AddExtCV <$> cvt x <*> cvt y-                        cvt (EApp [ECon "*", x, y])        =          MulExtCV <$> cvt x <*> cvt y-                        -- Nothing else should show up, hopefully!-                        cvt e = dontUnderstand (show e)--                        -- drop the pesky to_real's that Z3 produces.. Cool but useless.-                        simplify :: SExpr -> SExpr-                        simplify (EApp [ECon "to_real", n]) = n-                        simplify (EApp xs)                  = EApp (map simplify xs)-                        simplify e                          = e- -- | Generalization of 'Data.SBV.Control.checkSatAssuming' checkSatAssuming :: (MonadIO m, MonadQuery m) => [SBool] -> m CheckSatResult checkSatAssuming sBools = fst <$> checkSatAssumingHelper False sBools@@ -428,14 +296,14 @@ checkSatAssumingHelper getAssumptions sBools = do         -- sigh.. SMT-Lib requires the values to be literals only. So, create proxies.         let mkAssumption st = do swsOriginal <- mapM (\sb -> do sv <- sbvToSV st sb-                                                                return (sv, sb)) sBools+                                                                pure (sv, sb)) sBools                                   -- drop duplicates and trues                                  let swbs = [p | p@(sv, _) <- nubBy ((==) `on` fst) swsOriginal, sv /= trueSV]                                   -- get a unique proxy name for each                                  uniqueSWBs <- mapM (\(sv, sb) -> do unique <- incrementInternalCounter st-                                                                     return (sv, (unique, sb))) swbs+                                                                     pure (sv, (unique, sb))) swbs                                   let translate (sv, (unique, sb)) = (nm, decls, (proxy, sb))                                         where nm    = show sv@@ -444,13 +312,13 @@                                                       , "(assert (= " ++ proxy ++ " " ++ nm ++ "))"                                                       ] -                                 return $ map translate uniqueSWBs+                                 pure $ map translate uniqueSWBs          assumptions <- inNewContext mkAssumption          let (origNames, declss, proxyMap) = unzip3 assumptions -        let cmd = "(check-sat-assuming (" ++ unwords (map fst proxyMap) ++ "))"+        let cmd = "(check-sat-assuming (" <> T.pack (unwords (map fst proxyMap)) <> "))"             bad = unexpected "checkSatAssuming" cmd "one of sat/unsat/unknown"                            $ Just [ "Make sure you use:"                                   , ""@@ -459,17 +327,17 @@                                   , "to tell the solver to produce unsat assumptions."                                   ] -        mapM_ (send True) $ concat declss+        mapM_ (send True . T.pack) $ concat declss         r <- ask cmd          let grabUnsat              | getAssumptions = do as <- getUnsatAssumptions origNames proxyMap-                                   return (Unsat, Just as)-             | True           = return (Unsat, Nothing)+                                   pure (Unsat, Just as)+             | True           = pure (Unsat, Nothing) -        parse r bad $ \case ECon "sat"     -> return (Sat, Nothing)+        parse r bad $ \case ECon "sat"     -> pure (Sat, Nothing)                             ECon "unsat"   -> grabUnsat-                            ECon "unknown" -> return (Unk, Nothing)+                            ECon "unknown" -> pure (Unk, Nothing)                             _              -> bad r Nothing  -- | Generalization of 'Data.SBV.Control.getAssertionStackDepth'@@ -485,23 +353,23 @@                             let inits = [ "table"  ++ show i ++ "_initializer" | i <- [0 .. tCount - 1]]                              case inits of-                              []  -> return ()   -- Nothing to do-                              [x] -> send True $ "(assert " ++ x ++ ")"-                              xs  -> send True $ "(assert (and " ++ unwords xs ++ "))"+                              []  -> pure ()   -- Nothing to do+                              [x] -> send True $ "(assert " <> T.pack x <> ")"+                              xs  -> send True $ "(assert (and " <> T.pack (unwords xs) <> "))"  -- | Generalization of 'Data.SBV.Control.inNewAssertionStack' inNewAssertionStack :: (MonadIO m, MonadQuery m) => m a -> m a inNewAssertionStack q = do push 1                            r <- q                            pop 1-                           return r+                           pure r  -- | Generalization of 'Data.SBV.Control.push' push :: (MonadIO m, MonadQuery m) => Int -> m () push i  | i <= 0 = error $ "Data.SBV: push requires a strictly positive level argument, received: " ++ show i  | True   = do depth <- getAssertionStackDepth-               send True $ "(push " ++ show i ++ ")"+               send True $ "(push " <> showText i <> ")"                modifyQueryState $ \s -> s{queryAssertionStackDepth = depth + i}  -- | Generalization of 'Data.SBV.Control.pop'@@ -519,7 +387,7 @@                                                   , "***"                                                   , "*** Request this as a feature for the underlying solver!"                                                   ]-                             else do send True $ "(pop " ++ show i ++ ")"+                             else do send True $ "(pop " <> showText i <> ")"                                      restoreTablesAndArrays                                      modifyQueryState $ \s -> s{queryAssertionStackDepth = depth - i}    where shl 1 = "one level"@@ -531,7 +399,7 @@                                 go cfg (cases ++ [("Coverage", sNot (sOr (map snd cases)))])   where msg = when printCases . io . putStrLn -        go _ []            = return Nothing+        go _ []            = pure Nothing         go cfg ((n,c):ncs) = do let notify s = msg $ "Case " ++ n ++ ": " ++ s                                  notify "Starting"@@ -543,15 +411,15 @@                                    Sat      -> do notify "Satisfiable"                                                  res <- Satisfiable cfg <$> getModel-                                                 return $ Just (n, res)+                                                 pure $ Just (n, res)                                    DSat mbP -> do notify $ "Delta satisfiable" ++ maybe "" (" (precision: " ++) mbP                                                  res <- DeltaSat cfg mbP <$> getModel-                                                 return $ Just (n, res)+                                                 pure $ Just (n, res)                                    Unk      -> do notify "Unknown"                                                  res <- Unknown cfg <$> getUnknownReason-                                                 return $ Just (n, res)+                                                 pure $ Just (n, res)  -- | Generalization of 'Data.SBV.Control.resetAssertions' resetAssertions :: (MonadIO m, MonadQuery m) => m ()@@ -563,7 +431,7 @@  -- | Generalization of 'Data.SBV.Control.echo' echo :: (MonadIO m, MonadQuery m) => String -> m ()-echo s = do let cmd = "(echo \"" ++ concatMap sanitize s ++ "\")"+echo s = do let cmd = "(echo \"" <> T.pack (concatMap sanitize s) <> "\")"              -- we send the command, but otherwise ignore the response             -- note that 'send True/False' would be incorrect here. 'send True' would@@ -572,7 +440,7 @@             -- and forgets about it immediately.             _ <- ask cmd -            return ()+            pure ()   where sanitize '"'  = "\"\""  -- quotes need to be duplicated         sanitize c    = [c] @@ -584,7 +452,7 @@ -- | Generalization of 'Data.SBV.Control.getUnsatCore' getUnsatCore :: (MonadIO m, MonadQuery m) => m [String] getUnsatCore = do-        let cmd = "(get-unsat-core)"+        let cmd = "(get-unsat-core)" :: T.Text             bad = unexpected "getUnsatCore" cmd "an unsat-core response"                            $ Just [ "Make sure you use:"                                   , ""@@ -606,7 +474,7 @@         r <- ask cmd          parse r bad $ \case-           EApp es | Just xs <- mapM fromECon es -> return $ map unBar xs+           EApp es | Just xs <- mapM fromECon es -> pure $ map unBar xs            _                                     -> bad r Nothing  -- | Retrieve the unsat core if it was asked for in the configuration@@ -615,12 +483,12 @@         cfg <- getConfig         if or [b | ProduceUnsatCores b <- solverSetOptions cfg]            then Just <$> getUnsatCore-           else return Nothing+           else pure Nothing  -- | Generalization of 'Data.SBV.Control.getProof' getProof :: (MonadIO m, MonadQuery m) => m String getProof = do-        let cmd = "(get-proof)"+        let cmd = "(get-proof)" :: T.Text             bad = unexpected "getProof" cmd "a get-proof response"                            $ Just [ "Make sure you use:"                                   , ""@@ -635,7 +503,7 @@          -- we only care about the fact that we can parse the output, so the         -- result of parsing is ignored.-        parse r bad $ \_ -> return r+        parse r bad $ \_ -> pure r  -- | Generalization of 'Data.SBV.Control.getInterpolantMathSAT'. Use this version with MathSAT. getInterpolantMathSAT :: (MonadIO m, MonadQuery m) => [String] -> m String@@ -644,7 +512,7 @@   = error "SBV.getInterpolantMathSAT requires at least one marked constraint, received none!"   | True   = do let bar s = '|' : s ++ "|"-           cmd = "(get-interpolant (" ++ unwords (map bar fs) ++ "))"+           cmd = "(get-interpolant (" <> T.pack (unwords (map bar fs)) <> "))"            bad = unexpected "getInterpolant" cmd "a get-interpolant response"                           $ Just [ "Make sure you use:"                                  , ""@@ -657,29 +525,29 @@         r <- ask cmd -       parse r bad $ \e -> return $ serialize False e+       parse r bad $ \e -> pure $ serialize False e   -- | Generalization of 'Data.SBV.Control.getAbduct'. getAbduct :: (SolverContext m, MonadIO m, MonadQuery m) => Maybe String -> String -> SBool -> m String getAbduct mbGrammar defName b = do    s <- inNewContext (`sbvToSV` b)-   let cmd = "(get-abduct " ++ defName ++ " " ++ show s ++ fromMaybe "" mbGrammar ++ ")"+   let cmd = "(get-abduct " <> T.pack defName <> " " <> showText s <> T.pack (fromMaybe "" mbGrammar) <> ")"        bad = unexpected "getAbduct" cmd "a get-abduct response" Nothing     r <- ask cmd -   parse r bad $ \e -> return $ serialize False e+   parse r bad $ \e -> pure $ serialize False e  -- | Generalization of 'Data.SBV.Control.getAbductNext'. getAbductNext :: (MonadIO m, MonadQuery m) => m String getAbductNext = do-   let cmd = "(get-abduct-next)"+   let cmd = "(get-abduct-next)" :: T.Text        bad = unexpected "getAbductNext" cmd "a get-abduct-next response" Nothing     r <- ask cmd -   parse r bad $ \e -> return $ serialize False e+   parse r bad $ \e -> pure $ serialize False e  -- | Generalization of 'Data.SBV.Control.getInterpolantZ3'. Use this version with Z3. getInterpolantZ3 :: (MonadIO m, MonadQuery m) => [SBool] -> m String@@ -687,22 +555,22 @@   | length fs < 2   = error $ "SBV.getInterpolantZ3 requires at least two booleans, received: " ++ show fs   | True-  = do ss <- let fAll []     sofar = return $ reverse sofar+  = do ss <- let fAll []     sofar = pure $ reverse sofar                  fAll (b:bs) sofar = do sv <- inNewContext (`sbvToSV` b)                                         fAll bs (sv : sofar)              in fAll fs [] -       let cmd = "(get-interpolant " ++ unwords (map show ss) ++ ")"+       let cmd = "(get-interpolant " <> T.pack (unwords (map show ss)) <> ")"            bad = unexpected "getInterpolant" cmd "a get-interpolant response" Nothing         r <- ask cmd -       parse r bad $ \e -> return $ serialize False e+       parse r bad $ \e -> pure $ serialize False e  -- | Generalization of 'Data.SBV.Control.getAssertions' getAssertions :: (MonadIO m, MonadQuery m) => m [String] getAssertions = do-        let cmd = "(get-assertions)"+        let cmd = "(get-assertions)" :: T.Text             bad = unexpected "getAssertions" cmd "a get-assertions response"                            $ Just [ "Make sure you use:"                                   , ""@@ -716,13 +584,13 @@         r <- ask cmd          parse r bad $ \pe -> case pe of-                                EApp xs -> return $ map render xs-                                _       -> return [render pe]+                                EApp xs -> pure $ map render xs+                                _       -> pure [render pe]  -- | Generalization of 'Data.SBV.Control.getAssignment' getAssignment :: (MonadIO m, MonadQuery m) => m [(String, Bool)] getAssignment = do-        let cmd = "(get-assignment)"+        let cmd = "(get-assignment)" :: T.Text             bad = unexpected "getAssignment" cmd "a get-assignment response"                            $ Just [ "Make sure you use:"                                   , ""@@ -733,13 +601,13 @@                                   ]              -- we're expecting boolean assignment to labels, essentially-            grab (EApp [ECon s, ENum (0, _)]) = Just (unQuote s, False)-            grab (EApp [ECon s, ENum (1, _)]) = Just (unQuote s, True)-            grab _                            = Nothing+            grab (EApp [ECon s, ENum (0, _, _)]) = Just (unQuote s, False)+            grab (EApp [ECon s, ENum (1, _, _)]) = Just (unQuote s, True)+            grab _                               = Nothing          r <- ask cmd -        parse r bad $ \case EApp ps | Just vs <- mapM grab ps -> return vs+        parse r bad $ \case EApp ps | Just vs <- mapM grab ps -> pure vs                             _                                 -> bad r Nothing  -- | Make an assignment. The type 'Assignment' is abstract, the result is typically passed@@ -769,7 +637,7 @@              QueryState{queryConfig} <- getQueryState              inps <- F.toList <$> getTopLevelInputs -             let grabValues st = do let extract (Assign s n) = sbvToSV st (SBV s) >>= \sv -> return (sv, n)+             let grabValues st = do let extract (Assign s n) = sbvToSV st (SBV s) >>= \sv -> pure (sv, n)                                      modelAssignment <- mapM extract asgns @@ -820,7 +688,7 @@                                                                                 , "***   Candidates: " ++ unwords nms                                                                                 ] -                                    return [(findName s, n) | (s, n) <- modelAssignment]+                                    pure [(findName s, n) | (s, n) <- modelAssignment]               assocs <- inNewContext grabValues @@ -830,6 +698,4 @@                               , modelUIFuns     = []                               } -             return $ Satisfiable queryConfig m--{- HLint ignore getModelAtIndex "Use forM_" -}+             pure $ Satisfiable queryConfig m
Data/SBV/Control/Types.hs view
@@ -164,14 +164,14 @@ -- logics that might be supported on new solvers. See <https://smt-lib.org/logics.shtml> for the official list. data Logic   = AUFLIA             -- ^ Formulas over the theory of linear integer arithmetic and arrays extended with free sort and function symbols but restricted to arrays with integer indices and values.-  | AUFLIRA            -- ^ Linear formulas with free sort and function symbols over one- and two-dimentional arrays of integer index and real value.+  | AUFLIRA            -- ^ Linear formulas with free sort and function symbols over one- and two-dimensional arrays of integer index and real value.   | AUFNIRA            -- ^ Formulas with free function and predicate symbols over a theory of arrays of arrays of integer index and real value.   | LRA                -- ^ Linear formulas in linear real arithmetic.-  | QF_ABV             -- ^ Quantifier-free formulas over the theory of bitvectors and bitvector arrays.-  | QF_AUFBV           -- ^ Quantifier-free formulas over the theory of bitvectors and bitvector arrays extended with free sort and function symbols.+  | QF_ABV             -- ^ Quantifier-free formulas over the theory of bit-vectors and bit-vector arrays.+  | QF_AUFBV           -- ^ Quantifier-free formulas over the theory of bit-vectors and bit-vector arrays extended with free sort and function symbols.   | QF_AUFLIA          -- ^ Quantifier-free linear formulas over the theory of integer arrays extended with free sort and function symbols.   | QF_AX              -- ^ Quantifier-free formulas over the theory of arrays with extensionality.-  | QF_BV              -- ^ Quantifier-free formulas over the theory of fixed-size bitvectors.+  | QF_BV              -- ^ Quantifier-free formulas over the theory of fixed-size bit-vectors.   | QF_IDL             -- ^ Difference Logic over the integers. Boolean combinations of inequations of the form x - y < b where x and y are integer variables and b is an integer constant.   | QF_LIA             -- ^ Unquantified linear integer arithmetic. In essence, Boolean combinations of inequations between linear polynomials over integer variables.   | QF_LRA             -- ^ Unquantified linear real arithmetic. In essence, Boolean combinations of inequations between linear polynomials over real variables.@@ -179,7 +179,7 @@   | QF_NRA             -- ^ Quantifier-free real arithmetic.   | QF_RDL             -- ^ Difference Logic over the reals. In essence, Boolean combinations of inequations of the form x - y < b where x and y are real variables and b is a rational constant.   | QF_UF              -- ^ Unquantified formulas built over a signature of uninterpreted (i.e., free) sort and function symbols.-  | QF_UFBV            -- ^ Unquantified formulas over bitvectors with uninterpreted sort function and symbols.+  | QF_UFBV            -- ^ Unquantified formulas over bit-vectors with uninterpreted sort function and symbols.   | QF_UFIDL           -- ^ Difference Logic over the integers (in essence) but with uninterpreted sort and function symbols.   | QF_UFLIA           -- ^ Unquantified linear integer arithmetic with uninterpreted sort and function symbols.   | QF_UFLRA           -- ^ Unquantified linear real arithmetic with uninterpreted sort and function symbols.
Data/SBV/Control/Utils.hs view
@@ -10,35 +10,34 @@ -----------------------------------------------------------------------------  {-# LANGUAGE BangPatterns           #-}-{-# LANGUAGE InstanceSigs           #-}-{-# LANGUAGE FlexibleContexts       #-} {-# LANGUAGE FlexibleInstances      #-} {-# LANGUAGE FunctionalDependencies #-}+{-# LANGUAGE InstanceSigs           #-} {-# LANGUAGE LambdaCase             #-} {-# LANGUAGE NamedFieldPuns         #-} {-# LANGUAGE OverloadedStrings      #-}+{-# LANGUAGE RankNTypes             #-} {-# LANGUAGE ScopedTypeVariables    #-} {-# LANGUAGE TupleSections          #-} {-# LANGUAGE TypeApplications       #-}-{-# LANGUAGE TypeFamilies           #-} {-# LANGUAGE ViewPatterns           #-}-{-# LANGUAGE UndecidableInstances   #-} -{-# OPTIONS_GHC -Wall -Werror -fno-warn-orphans #-}+{-# OPTIONS_GHC -Wall -Werror -Wno-orphans #-}  module Data.SBV.Control.Utils (        io-     , ask, send, getValue, getFunction, getUninterpretedValue+     , ask, send, getValue, getFunction      , getValueCV, getUICVal, getUIFunCVAssoc, getUnsatAssumptions      , SMTFunction(..), getQueryState, modifyQueryState, getConfig, getObjectives, getUIs-     , getSBVAssertions, getSBVPgm, getObservables+     , getSBVAssertions, getObservables      , checkSat, checkSatUsing, getAllSatResult      , inNewContext, freshVar, freshVar_      , getTopLevelInputs, parse, unexpected-     , timeout, queryDebug, retrieveResponse, recoverKindedValue, runProofOn, executeQuery+     , timeout, queryDebug, retrieveResponse, runProofOn, executeQuery+     , startOptimizer, getObjectiveValues, getModel, getModelAtIndex      ) where -import Data.List  (sortBy, sortOn, elemIndex, partition, groupBy, tails, intercalate, nub, sort, isPrefixOf, isSuffixOf)+import Data.List  (sortOn, partition, groupBy, tails, intercalate, isPrefixOf, isSuffixOf)  import Data.Char      (isPunctuation, isSpace, isDigit) import Data.Function  (on)@@ -46,17 +45,18 @@  import Data.Proxy -import qualified Data.Foldable      as F (toList)+import qualified Data.Foldable      as F (toList, for_) import qualified Data.Map.Strict    as Map+import qualified Data.Set           as Set  (empty, fromList, toAscList) import qualified Data.Sequence      as S import qualified Data.Text          as T -import Control.Monad            (join, unless, zipWithM, when, replicateM, forM_)+import Control.Monad            (join, unless, zipWithM, when, replicateM) import Control.Monad.IO.Class   (MonadIO, liftIO) import Control.Monad.Trans      (lift) import Control.Monad.Reader     (runReaderT) -import Data.Maybe (isNothing, isJust)+import Data.Maybe (isNothing, isJust, catMaybes, listToMaybe)  import Data.IORef (readIORef, writeIORef, IORef, newIORef, modifyIORef') @@ -70,8 +70,9 @@                               , newExpr, SBVExpr(..), Op(..), FPOp(..), SBV(..)                               , SolverContext(..), SBool, Objective(..), SolverCapabilities(..), capabilities                               , Result(..), SMTProblem(..), trueSV, SymVal(..), SBVPgm(..), SMTSolver(..), SBVRunMode(..)-                              , SBVType(..), forceSVArg, RoundingMode(RoundNearestTiesToEven), (.=>)-                              , RCSet(..), QuantifiedBool(..), ArrayModel(..)+                              , SBVType(..), forceSVArg, (.=>)+                              , RCSet(..), QuantifiedBool(..), ArrayModel(..), SInfo(..), getSInfo+                              , OptimizeStyle(..), GeneralizedCV(..), ExtCV(..)                               )  import Data.SBV.Core.Symbolic ( IncState(..), withNewIncState, State(..), svToSV, symbolicEnv, SymbolicT@@ -79,33 +80,30 @@                               , registerLabel, svMkSymVar, validationRequested                               , isSafetyCheckingIStage, isSetupIStage, isRunIStage, IStage(..), QueryT(..)                               , extractSymbolicSimulationState, MonadSymbolic(..)-                              , UserInputs, getSV, NamedSymVar(..), lookupInput, getUserName'+                              , UserInputs, getSV, NamedSymVar(..), lookupInput, getUserName, getUserName'                               , Name, CnstMap, Inputs(..), ProgInfo(..)-                              , mustIgnoreVar, newInternalVariable+                              , mustIgnoreVar, newInternalVariable, Penalty(..), smtLibPgmText                               )  import Data.SBV.Core.AlgReals    (mergeAlgReals, AlgReal(..), RealPoint(..)) import Data.SBV.Core.SizedFloats (fpZero, fpFromInteger, fpFromFloat, fpFromDouble)-import Data.SBV.Core.Kind        (smtType, hasUninterpretedSorts)+import Data.SBV.Core.Kind        (smtType, hasUninterpretedSorts, expandKinds, isSomeKindOfFloat, substituteADTVars) import Data.SBV.Core.Operations  (svNot, svNotEqual, svOr, svEqual) -import Data.SBV.SMT.SMT     (showModel, parseCVs, SatModel, AllSatResult(..))+import Data.SBV.SMT.SMT     (showModel, parseCVs, SatModel, AllSatResult(..), OptimizeResult(..)) import Data.SBV.SMT.SMTLib  (toIncSMTLib, toSMTLib) import Data.SBV.SMT.SMTLib2 (setSMTOption) import Data.SBV.SMT.Utils   ( showTimeoutValue, addAnnotations, alignPlain, debug                             , mergeSExpr, SBVException(..), recordTranscript, TranscriptMsg(..)-                            , witnessName                             )  import Data.SBV.Utils.ExtractIO-import Data.SBV.Utils.Lib       (qfsToString)+import Data.SBV.Utils.Lib       (qfsToString, unBar, mapToSortedList, showText) import Data.SBV.Utils.SExpr import Data.SBV.Utils.PrettyNum (cvToSMTLib)  import Data.SBV.Control.Types -import qualified Data.Set as Set (empty, fromList, toAscList)- import qualified Control.Exception as C  import GHC.Stack@@ -139,7 +137,7 @@                                                                              sbvToSV st b)                                        unless (null atts && sv == trueSV) $-                                             send True $ "(" ++ asrt ++ " " ++ addAnnotations atts (show sv)  ++ ")"+                                             send True $ "(" <> T.pack asrt <> " " <> addAnnotations atts (showText sv) <> ")"    where asrt | isSoft = "assert-soft"               | True   = "assert" @@ -152,11 +150,6 @@ getObjectives = do State{rOptGoals} <- queryState                    io $ reverse <$> readIORef rOptGoals --- | Get the program-getSBVPgm :: (MonadIO m, MonadQuery m) => m SBVPgm-getSBVPgm = do State{spgm} <- queryState-               io $ readIORef spgm- -- | Get the assertions put in via 'Data.SBV.sAssert' getSBVAssertions :: (MonadIO m, MonadQuery m) => m [(String, Maybe CallStack, SV)] getSBVAssertions = do State{rAsserts} <- queryState@@ -174,23 +167,21 @@         -- update global consts to have the new ones         (newConsts, allConsts) <- liftIO $ do nc <- readIORef (rNewConsts is)                                               oc <- readIORef rGlobalConsts-                                              let allConsts = Map.union nc oc+                                              let !allConsts = Map.union nc oc                                               writeIORef rGlobalConsts allConsts                                               pure (nc, allConsts) -        ls  <- io $ do let swap  (a, b)        = (b, a)-                           cmp   (a, _) (b, _) = a `compare` b-                           arrange (i, (at, rt, es)) = ((i, at, rt), es)+        ls  <- io $ do let arrange (i, (at, rt, es)) = ((i, at, rt), es)                        inps        <- reverse <$> readIORef (rNewInps is)                        ks          <- readIORef (rNewKinds is)-                       tbls        <- map arrange . sortBy cmp . map swap . Map.toList <$> readIORef (rNewTbls is)+                       tbls        <- map arrange . mapToSortedList <$> readIORef (rNewTbls is)                        uis         <- Map.toAscList <$> readIORef (rNewUIs is)                        as          <- readIORef (rNewAsgns is)                        constraints <- readIORef (rNewConstraints is) -                       let cnsts = sortBy cmp . map swap . Map.toList $ newConsts+                       let cnsts = mapToSortedList newConsts -                       return $ toIncSMTLib cfg progInfo inps ks (allConsts, cnsts) tbls uis as constraints cfg+                       pure $ toIncSMTLib cfg progInfo inps ks (allConsts, cnsts) tbls uis as constraints cfg          mapM_ (send True) $ mergeSExpr ls @@ -203,7 +194,7 @@                                                 , "*** Data.SBV: Impossible happened: Query context required in a non-query mode."                                                 , "Please report this as a bug!"                                                 ]-                     Just qs -> return qs+                     Just qs -> pure qs  -- | Generalization of 'Data.SBV.Control.modifyQueryState' modifyQueryState :: (MonadIO m, MonadQuery m) => (QueryState -> QueryState) -> m ()@@ -223,7 +214,7 @@                       (is, r)  <- io $ withNewIncState st act                       progInfo <- io $ readIORef rProgInfo                       syncUpSolver progInfo rconstMap is-                      return r+                      pure r  -- | Generalization of 'Data.SBV.Control.freshVar_' freshVar_ :: forall a m. (MonadIO m, MonadQuery m, SymVal a) => m (SBV a)@@ -236,31 +227,30 @@   where k = kindOf (Proxy @a)  -- | Generalization of 'Data.SBV.Control.queryDebug'-queryDebug :: (MonadIO m, MonadQuery m) => [String] -> m ()+queryDebug :: (MonadIO m, MonadQuery m) => [T.Text] -> m () queryDebug msgs = do QueryState{queryConfig} <- getQueryState                      io $ do debug queryConfig msgs-                             -- If we're doing a transcript, record it there too-                             recordTranscript (transcript queryConfig) (DebugMsg (unlines msgs))+                             recordTranscript (transcript queryConfig) (DebugMsg (T.unlines msgs))  -- | We need to track sent asserts/check-sat calls so we can issue an extra check-sat call if needed-trackAsserts :: (MonadIO m, MonadQuery m) => String -> m ()+trackAsserts :: (MonadIO m, MonadQuery m) => T.Text -> m () trackAsserts s    | isCheckSat || isAssert    = do State{rOutstandingAsserts} <- queryState         liftIO $ writeIORef rOutstandingAsserts isAssert    | True    = pure ()-  where trimmedS   = dropWhile isSpace s-        isCheckSat = "(check-sat" `isPrefixOf` trimmedS-        isAssert   = "(assert"    `isPrefixOf` trimmedS+  where trimmedS   = T.dropWhile isSpace s+        isCheckSat = "(check-sat" `T.isPrefixOf` trimmedS+        isAssert   = "(assert"    `T.isPrefixOf` trimmedS  -- | Generalization of 'Data.SBV.Control.ask'-ask :: (MonadIO m, MonadQuery m) => String -> m String+ask :: (MonadIO m, MonadQuery m) => T.Text -> m String ask s = askIgnoring s []  -- | Send a string to the solver, and return the response. Except, if the response -- is one of the "ignore" ones, keep querying.-askIgnoring :: (MonadIO m, MonadQuery m) => String -> [String] -> m String+askIgnoring :: (MonadIO m, MonadQuery m) => T.Text -> [String] -> m String askIgnoring s ignoreList = do             trackAsserts s@@ -269,23 +259,23 @@             case queryTimeOutValue of              Nothing -> queryDebug ["[SEND] " `alignPlain` s]-             Just i  -> queryDebug ["[SEND, TimeOut: " ++ showTimeoutValue i ++ "] " `alignPlain` s]+             Just i  -> queryDebug ["[SEND, TimeOut: " <> showTimeoutValue i <> "] " `alignPlain` s]            r <- io $ queryAsk queryTimeOutValue s-           queryDebug ["[RECV] " `alignPlain` r]+           queryDebug ["[RECV] " `alignPlain` T.pack r]             let loop currentResponse                  | currentResponse `notElem` ignoreList-                 = return currentResponse+                 = pure currentResponse                  | True                  = do queryDebug ["[WARN] Previous response is explicitly ignored, beware!"]                       newResponse <- io $ queryRetrieveResponse queryTimeOutValue-                      queryDebug ["[RECV] " `alignPlain` newResponse]+                      queryDebug ["[RECV] " `alignPlain` T.pack newResponse]                       loop newResponse             loop r  -- | Generalization of 'Data.SBV.Control.send'-send :: (MonadIO m, MonadQuery m) => Bool -> String -> m ()+send :: (MonadIO m, MonadQuery m) => Bool -> T.Text -> m () send requireSuccess s = do              trackAsserts s@@ -299,11 +289,11 @@                          ["success"] -> queryDebug ["[GOOD] " `alignPlain` s]                          _           -> do case queryTimeOutValue of                                              Nothing -> queryDebug ["[FAIL] " `alignPlain` s]-                                             Just i  -> queryDebug [("[FAIL, TimeOut: " ++ showTimeoutValue i ++ "]  ") `alignPlain` s]+                                             Just i  -> queryDebug ["[FAIL, TimeOut: " <> showTimeoutValue i <> "]  " `alignPlain` s]  -                                           let cmd = case words (dropWhile (\c -> isSpace c || isPunctuation c) s) of-                                                       (c:_) -> c+                                           let cmd = case T.words (T.dropWhile (\c -> isSpace c || isPunctuation c) s) of+                                                       (c:_) -> T.unpack c                                                        _     -> "Command"                                             unexpected cmd s "success" Nothing r Nothing@@ -320,9 +310,9 @@              let synchTag = show $ userTag ++ " (at: " ++ ts ++ ")"                  cmd = "(echo " ++ synchTag ++ ")" -             queryDebug ["[SYNC] Attempting to synchronize with tag: " ++ synchTag]+             queryDebug ["[SYNC] Attempting to synchronize with tag: " <> T.pack synchTag] -             send False cmd+             send False (T.pack cmd)               QueryState{queryRetrieveResponse} <- getQueryState @@ -333,9 +323,9 @@                   -- echo'ed strings, but they don't always do. Accommodate for that                   -- here, though I wish we didn't have to.                   if s == synchTag || show s == synchTag-                     then do queryDebug ["[SYNC] Synchronization achieved using tag: " ++ synchTag]-                             return $ reverse sofar-                     else do queryDebug ["[RECV] " `alignPlain` s]+                     then do queryDebug ["[SYNC] Synchronization achieved using tag: " <> T.pack synchTag]+                             pure $ reverse sofar+                     else do queryDebug ["[RECV] " `alignPlain` T.pack s]                              loop (s : sofar)               loop []@@ -361,12 +351,38 @@           Unk    -> bad           Unsat  -> bad +      -- Are we in an optimization context? If so, we must ensure that the model is not in an extended field+      objs <- getObjectives+      unless (null objs) $ do+         ovs <- getObjectiveValues+         case [() | (_, ExtendedCV _) <- ovs] of+           [] -> pure ()    -- We're good, all objectives are within the domain+           _  -> do cfg <- getConfig+                    m   <- getModel+                    ov  <- getObjectiveValues++                    let mdl = LexicographicResult (SatExtField cfg m{modelObjectives = ov})++                        align "" = "***"+                        align l  = "*** " ++ l++                    error $ unlines $ "" : map align ([+                                "Data.SBV.getValue: The current solver state is satisfiable in an extension field."+                              , "That is, the optimized values assume epsilon/infinity values."+                              , ""+                              , "Calls to getValue is not supported in this context. Instead, use the 'optimize' method"+                              , "directly and inspect the objective values explicitly."+                              , ""+                              , "The current model is:"+                              , ""+                              ] ++ map ("    " ++) (lines (show mdl)))+       cv <- getValueCV Nothing sv-      return $ fromCV cv+      pure $ fromCV cv  -- | A class which allows for sexpr-conversion to functions class (HasKind r, SatModel r) => SMTFunction fun a r | fun -> a r where-  sexprToArg     :: fun -> [SExpr] -> Maybe a+  sexprToArg     :: (MonadIO m, SolverContext m) => fun -> [SExpr] -> m (Maybe a)   smtFunName     :: (MonadIO m, SolverContext m) => fun -> m ((String, Maybe [String]), Bool)   smtFunSaturate :: fun -> SBV r   smtFunType     :: fun -> SBVType@@ -388,7 +404,7 @@                     nm    <- findName st uiMap                      -- Read the uiMap again here. Why? Because the act of finding the name might've-                    -- introduced it as an uninterperted name!+                    -- introduced it as an uninterpreted name!                     newUIMap <- liftIO $ readIORef rUIMap                     case nm `Map.lookup` newUIMap of                       Nothing                     -> cantFind newUIMap@@ -419,21 +435,27 @@              case S.findIndexR ((== r) . fst) asgns of                Nothing -> cantFind uiMap                Just i  -> case asgns `S.index` i of-                            (sv, SBVApp (Uninterpreted nm) _) | r == sv -> return nm+                            (sv, SBVApp (Uninterpreted nm) _) | r == sv -> pure (T.unpack nm)                             _                                           -> cantFind uiMap    sexprToFun f (s, e) = do nm    <- fst . fst <$> smtFunName f+                           si    <- contextState >>= getSInfo                            mbRes <- case parseSExprFunction e of                                       Just (Left nm') -> case (nm == nm', smtFunDefault f) of-                                                           (True, Just v)  -> return $ Just ([], v)+                                                           (True, Just v)  -> pure $ Just ([], v)                                                            _               -> bailOut nm-                                      Just (Right v)  -> return $ convert v+                                      Just (Right v)  -> convert si v                                       Nothing         -> do mbPVS <- pointWiseExtract nm (smtFunType f)-                                                            return $ mbPVS >>= convert+                                                            case mbPVS of+                                                              Nothing  -> pure Nothing+                                                              Just pts -> convert si pts                            pure $ maybe (Left s) Right mbRes-    where convert    (vs, d) = (,) <$> mapM sexprPoint vs <*> sexprToVal d-          sexprPoint (as, v) = (,) <$> sexprToArg f as    <*> sexprToVal v+    where convert st (vs, d) = do ps <- mapM (sexprPoint st) vs+                                  pure $ (,) <$> sequenceA ps <*> sexprToVal st d +          sexprPoint st (as, v) = do mbA <- sexprToArg f as+                                     pure $ (,) <$> mbA <*> sexprToVal st v+           bailOut nm = error $ unlines [ ""                                        , "*** Data.SBV.getFunction: Unable to extract an interpretation for function " ++ show nm                                        , "***"@@ -448,12 +470,12 @@ -- up. And I think it'll only be necessary then, I haven't seen z3 try anything smarter in other scenarios. pointWiseExtract ::  forall m. (MonadIO m, MonadQuery m) => String -> SBVType -> m (Maybe ([([SExpr], SExpr)], SExpr)) pointWiseExtract nm typ = tryPointWise-  where trueSExpr  = ENum (1, Nothing)-        falseSExpr = ENum (0, Nothing)+  where trueSExpr  = ENum (1, Nothing, True)+        falseSExpr = ENum (0, Nothing, True) -        isTrueSExpr (ENum (1, Nothing)) = True-        isTrueSExpr (ENum (0, Nothing)) = False-        isTrueSExpr s                   = error $ "Data.SBV.pointWiseExtract: Impossible happened: Received: " ++ show s+        isTrueSExpr (ENum (1, Nothing, True)) = True+        isTrueSExpr (ENum (0, Nothing, True)) = False+        isTrueSExpr s                         = error $ "Data.SBV.pointWiseExtract: Impossible happened: Received: " ++ show s          (nArgs, isBoolFunc) = case typ of                                 SBVType ts -> (length ts - 1, all (== KBool) ts)@@ -464,13 +486,13 @@                                as = unwords $ map shc args -                              cmd   = "(get-value ((" ++ nm ++ " " ++ as ++ ")))"+                              cmd   = "(get-value ((" <> T.pack nm <> " " <> T.pack as <> ")))"                                bad   = unexpected "get-value" cmd ("pointwise value of boolean function " ++ nm ++ " on " ++ show as) Nothing                            r <- ask cmd -                          parse r bad $ \case EApp [EApp [_, e]] -> return (args, e)+                          parse r bad $ \case EApp [EApp [_, e]] -> pure (args, e)                                               _                  -> bad r Nothing          getBVals :: m [([SExpr], SExpr)]@@ -478,14 +500,14 @@          tryPointWise           | not isBoolFunc-          = return Nothing+          = pure Nothing           | nArgs < 1           = error $ "Data.SBV.pointWiseExtract: Impossible happened, nArgs < 1: " ++ show nArgs ++ " type: " ++ show typ           | True           = do vs <- getBVals                -- Pick the value that will give us the fewer entries                let (trues, falses) = partition (\(_, v) -> isTrueSExpr v) vs-               return $ Just $ if length trues <= length falses+               pure $ Just $ if length trues <= length falses                                then (trues,  falseSExpr)                                else (falses, trueSExpr) @@ -500,8 +522,8 @@          , SatModel r, HasKind r          ) => SMTFunction (SBV a -> SBV r) a r          where-  sexprToArg _ [a0] = sexprToVal a0-  sexprToArg _ _    = Nothing+  sexprToArg _ [a0] = contextState >>= getSInfo >>= \si -> pure $ sexprToVal si a0+  sexprToArg _ _    = pure Nothing    smtFunType _ = SBVType [kindOf (Proxy @a), kindOf (Proxy @r)] @@ -513,8 +535,8 @@          , SatModel r, HasKind r          ) => SMTFunction (SBV a -> SBV b -> SBV r) (a, b) r          where-  sexprToArg _ [a0, a1] = (,) <$> sexprToVal a0 <*> sexprToVal a1-  sexprToArg _ _        = Nothing+  sexprToArg _ [a0, a1] = contextState >>= getSInfo >>= \si -> pure $ (,) <$> sexprToVal si a0 <*> sexprToVal si a1+  sexprToArg _ _        = pure Nothing    smtFunType _ = SBVType [kindOf (Proxy @a), kindOf (Proxy @b), kindOf (Proxy @r)] @@ -528,8 +550,8 @@          , SatModel r, HasKind r          ) => SMTFunction (SBV a -> SBV b -> SBV c -> SBV r) (a, b, c) r          where-  sexprToArg _ [a0, a1, a2] = (,,) <$> sexprToVal a0 <*> sexprToVal a1 <*> sexprToVal a2-  sexprToArg _ _            = Nothing+  sexprToArg _ [a0, a1, a2] = contextState >>= getSInfo >>= \si -> pure $ (,,) <$> sexprToVal si a0 <*> sexprToVal si a1 <*> sexprToVal si a2+  sexprToArg _ _            = pure Nothing    smtFunType _ = SBVType [kindOf (Proxy @a), kindOf (Proxy @b), kindOf (Proxy @c), kindOf (Proxy @r)] @@ -545,8 +567,8 @@          , SatModel r, HasKind r          ) => SMTFunction (SBV a -> SBV b -> SBV c -> SBV d -> SBV r) (a, b, c, d) r          where-  sexprToArg _ [a0, a1, a2, a3] = (,,,) <$> sexprToVal a0 <*> sexprToVal a1 <*> sexprToVal a2 <*> sexprToVal a3-  sexprToArg _ _               = Nothing+  sexprToArg _ [a0, a1, a2, a3] = contextState >>= getSInfo >>= \si -> pure $ (,,,) <$> sexprToVal si a0 <*> sexprToVal si a1 <*> sexprToVal si a2 <*> sexprToVal si a3+  sexprToArg _ _                = pure Nothing    smtFunType _ = SBVType [kindOf (Proxy @a), kindOf (Proxy @b), kindOf (Proxy @c), kindOf (Proxy @d), kindOf (Proxy @r)] @@ -564,8 +586,8 @@          , SatModel r, HasKind r          ) => SMTFunction (SBV a -> SBV b -> SBV c -> SBV d -> SBV e -> SBV r) (a, b, c, d, e) r          where-  sexprToArg _ [a0, a1, a2, a3, a4] = (,,,,) <$> sexprToVal a0 <*> sexprToVal a1 <*> sexprToVal a2 <*> sexprToVal a3 <*> sexprToVal a4-  sexprToArg _ _                    = Nothing+  sexprToArg _ [a0, a1, a2, a3, a4] = contextState >>= getSInfo >>= \si -> pure $ (,,,,) <$> sexprToVal si a0 <*> sexprToVal si a1 <*> sexprToVal si a2 <*> sexprToVal si a3 <*> sexprToVal si a4+  sexprToArg _ _                    = pure Nothing    smtFunType _ = SBVType [kindOf (Proxy @a), kindOf (Proxy @b), kindOf (Proxy @c), kindOf (Proxy @d), kindOf (Proxy @e), kindOf (Proxy @r)] @@ -585,8 +607,8 @@          , SatModel r, HasKind r          ) => SMTFunction (SBV a -> SBV b -> SBV c -> SBV d -> SBV e -> SBV f -> SBV r) (a, b, c, d, e, f) r          where-  sexprToArg _ [a0, a1, a2, a3, a4, a5] = (,,,,,) <$> sexprToVal a0 <*> sexprToVal a1 <*> sexprToVal a2 <*> sexprToVal a3 <*> sexprToVal a4 <*> sexprToVal a5-  sexprToArg _ _                        = Nothing+  sexprToArg _ [a0, a1, a2, a3, a4, a5] = contextState >>= getSInfo >>= \si -> pure $ (,,,,,) <$> sexprToVal si a0 <*> sexprToVal si a1 <*> sexprToVal si a2 <*> sexprToVal si a3 <*> sexprToVal si a4 <*> sexprToVal si a5+  sexprToArg _ _                        = pure Nothing    smtFunType _ = SBVType [kindOf (Proxy @a), kindOf (Proxy @b), kindOf (Proxy @c), kindOf (Proxy @d), kindOf (Proxy @e), kindOf (Proxy @f), kindOf (Proxy @r)] @@ -608,8 +630,8 @@          , SatModel r, HasKind r          ) => SMTFunction (SBV a -> SBV b -> SBV c -> SBV d -> SBV e -> SBV f -> SBV g -> SBV r) (a, b, c, d, e, f, g) r          where-  sexprToArg _ [a0, a1, a2, a3, a4, a5, a6] = (,,,,,,) <$> sexprToVal a0 <*> sexprToVal a1 <*> sexprToVal a2 <*> sexprToVal a3 <*> sexprToVal a4 <*> sexprToVal a5 <*> sexprToVal a6-  sexprToArg _ _                            = Nothing+  sexprToArg _ [a0, a1, a2, a3, a4, a5, a6] = contextState >>= getSInfo >>= \si -> pure $ (,,,,,,) <$> sexprToVal si a0 <*> sexprToVal si a1 <*> sexprToVal si a2 <*> sexprToVal si a3 <*> sexprToVal si a4 <*> sexprToVal si a5 <*> sexprToVal si a6+  sexprToArg _ _                            = pure Nothing    smtFunType _ = SBVType [kindOf (Proxy @a), kindOf (Proxy @b), kindOf (Proxy @c), kindOf (Proxy @d), kindOf (Proxy @e), kindOf (Proxy @f), kindOf (Proxy @g), kindOf (Proxy @r)] @@ -633,8 +655,8 @@          , SatModel r, HasKind r          ) => SMTFunction (SBV a -> SBV b -> SBV c -> SBV d -> SBV e -> SBV f -> SBV g -> SBV h -> SBV r) (a, b, c, d, e, f, g, h) r          where-  sexprToArg _ [a0, a1, a2, a3, a4, a5, a6, a7] = (,,,,,,,) <$> sexprToVal a0 <*> sexprToVal a1 <*> sexprToVal a2 <*> sexprToVal a3 <*> sexprToVal a4 <*> sexprToVal a5 <*> sexprToVal a6 <*> sexprToVal a7-  sexprToArg _ _                                = Nothing+  sexprToArg _ [a0, a1, a2, a3, a4, a5, a6, a7] = contextState >>= getSInfo >>= \si -> pure $ (,,,,,,,) <$> sexprToVal si a0 <*> sexprToVal si a1 <*> sexprToVal si a2 <*> sexprToVal si a3 <*> sexprToVal si a4 <*> sexprToVal si a5 <*> sexprToVal si a6 <*> sexprToVal si a7+  sexprToArg _ _                                = pure Nothing    smtFunType _ = SBVType [kindOf (Proxy @a), kindOf (Proxy @b), kindOf (Proxy @c), kindOf (Proxy @d), kindOf (Proxy @e), kindOf (Proxy @f), kindOf (Proxy @g), kindOf (Proxy @h), kindOf (Proxy @r)] @@ -653,8 +675,8 @@          , SatModel r, HasKind r          ) => SMTFunction ((SBV a, SBV b) -> SBV r) (a, b) r          where-  sexprToArg _ [a0, a1] = (,) <$> sexprToVal a0 <*> sexprToVal a1-  sexprToArg _ _        = Nothing+  sexprToArg _ [a0, a1] = contextState >>= getSInfo >>= \si -> pure $ (,) <$> sexprToVal si a0 <*> sexprToVal si a1+  sexprToArg _ _        = pure Nothing    smtFunType _ = SBVType [kindOf (Proxy @a), kindOf (Proxy @b), kindOf (Proxy @r)] @@ -669,8 +691,8 @@          , SatModel r, HasKind r          ) => SMTFunction ((SBV a, SBV b, SBV c) -> SBV r) (a, b, c) r          where-  sexprToArg _ [a0, a1, a2] = (,,) <$> sexprToVal a0 <*> sexprToVal a1 <*> sexprToVal a2-  sexprToArg _ _            = Nothing+  sexprToArg _ [a0, a1, a2] = contextState >>= getSInfo >>= \si -> pure $ (,,) <$> sexprToVal si a0 <*> sexprToVal si a1 <*> sexprToVal si a2+  sexprToArg _ _            = pure Nothing    smtFunType _ = SBVType [kindOf (Proxy @a), kindOf (Proxy @b), kindOf (Proxy @c), kindOf (Proxy @r)] @@ -687,8 +709,8 @@          , SatModel r, HasKind r          ) => SMTFunction ((SBV a, SBV b, SBV c, SBV d) -> SBV r) (a, b, c, d) r          where-  sexprToArg _ [a0, a1, a2, a3] = (,,,) <$> sexprToVal a0 <*> sexprToVal a1 <*> sexprToVal a2 <*> sexprToVal a3-  sexprToArg _ _                = Nothing+  sexprToArg _ [a0, a1, a2, a3] = contextState >>= getSInfo >>= \si -> pure $ (,,,) <$> sexprToVal si a0 <*> sexprToVal si a1 <*> sexprToVal si a2 <*> sexprToVal si a3+  sexprToArg _ _                = pure Nothing    smtFunType _ = SBVType [kindOf (Proxy @a), kindOf (Proxy @b), kindOf (Proxy @c), kindOf (Proxy @d), kindOf (Proxy @r)] @@ -707,8 +729,8 @@          , SatModel r, HasKind r          ) => SMTFunction ((SBV a, SBV b, SBV c, SBV d, SBV e) -> SBV r) (a, b, c, d, e) r          where-  sexprToArg _ [a0, a1, a2, a3, a4] = (,,,,) <$> sexprToVal a0 <*> sexprToVal a1 <*> sexprToVal a2 <*> sexprToVal a3 <*> sexprToVal a4-  sexprToArg _ _                    = Nothing+  sexprToArg _ [a0, a1, a2, a3, a4] = contextState >>= getSInfo >>= \si -> pure $ (,,,,) <$> sexprToVal si a0 <*> sexprToVal si a1 <*> sexprToVal si a2 <*> sexprToVal si a3 <*> sexprToVal si a4+  sexprToArg _ _                    = pure Nothing    smtFunType _ = SBVType [kindOf (Proxy @a), kindOf (Proxy @b), kindOf (Proxy @c), kindOf (Proxy @d), kindOf (Proxy @e), kindOf (Proxy @r)] @@ -729,8 +751,8 @@          , SatModel r, HasKind r          ) => SMTFunction ((SBV a, SBV b, SBV c, SBV d, SBV e, SBV f) -> SBV r) (a, b, c, d, e, f) r          where-  sexprToArg _ [a0, a1, a2, a3, a4, a5] = (,,,,,) <$> sexprToVal a0 <*> sexprToVal a1 <*> sexprToVal a2 <*> sexprToVal a3 <*> sexprToVal a4 <*> sexprToVal a5-  sexprToArg _ _                        = Nothing+  sexprToArg _ [a0, a1, a2, a3, a4, a5] = contextState >>= getSInfo >>= \si -> pure $ (,,,,,) <$> sexprToVal si a0 <*> sexprToVal si a1 <*> sexprToVal si a2 <*> sexprToVal si a3 <*> sexprToVal si a4 <*> sexprToVal si a5+  sexprToArg _ _                        = pure Nothing    smtFunType _ = SBVType [kindOf (Proxy @a), kindOf (Proxy @b), kindOf (Proxy @c), kindOf (Proxy @d), kindOf (Proxy @e), kindOf (Proxy @f), kindOf (Proxy @r)] @@ -753,8 +775,8 @@          , SatModel r, HasKind r          ) => SMTFunction ((SBV a, SBV b, SBV c, SBV d, SBV e, SBV f, SBV g) -> SBV r) (a, b, c, d, e, f, g) r          where-  sexprToArg _ [a0, a1, a2, a3, a4, a5, a6] = (,,,,,,) <$> sexprToVal a0 <*> sexprToVal a1 <*> sexprToVal a2 <*> sexprToVal a3 <*> sexprToVal a4 <*> sexprToVal a5 <*> sexprToVal a6-  sexprToArg _ _                            = Nothing+  sexprToArg _ [a0, a1, a2, a3, a4, a5, a6] = contextState >>= getSInfo >>= \si -> pure $ (,,,,,,) <$> sexprToVal si a0 <*> sexprToVal si a1 <*> sexprToVal si a2 <*> sexprToVal si a3 <*> sexprToVal si a4 <*> sexprToVal si a5 <*> sexprToVal si a6+  sexprToArg _ _                            = pure Nothing    smtFunType _ = SBVType [kindOf (Proxy @a), kindOf (Proxy @b), kindOf (Proxy @c), kindOf (Proxy @d), kindOf (Proxy @e), kindOf (Proxy @f), kindOf (Proxy @g), kindOf (Proxy @r)] @@ -779,8 +801,8 @@          , SatModel r, HasKind r          ) => SMTFunction ((SBV a, SBV b, SBV c, SBV d, SBV e, SBV f, SBV g, SBV h) -> SBV r) (a, b, c, d, e, f, g, h) r          where-  sexprToArg _ [a0, a1, a2, a3, a4, a5, a6, a7] = (,,,,,,,) <$> sexprToVal a0 <*> sexprToVal a1 <*> sexprToVal a2 <*> sexprToVal a3 <*> sexprToVal a4 <*> sexprToVal a5 <*> sexprToVal a6 <*> sexprToVal a7-  sexprToArg _ _                                = Nothing+  sexprToArg _ [a0, a1, a2, a3, a4, a5, a6, a7] = contextState >>= getSInfo >>= \si -> pure $ (,,,,,,,) <$> sexprToVal si a0 <*> sexprToVal si a1 <*> sexprToVal si a2 <*> sexprToVal si a3 <*> sexprToVal si a4 <*> sexprToVal si a5 <*> sexprToVal si a6 <*> sexprToVal si a7+  sexprToArg _ _                                = pure Nothing    smtFunType _ = SBVType [kindOf (Proxy @a), kindOf (Proxy @b), kindOf (Proxy @c), kindOf (Proxy @d), kindOf (Proxy @e), kindOf (Proxy @f), kindOf (Proxy @g), kindOf (Proxy @h), kindOf (Proxy @r)] @@ -814,53 +836,40 @@             => fun -> m (Either (String, (Bool, Maybe [String], SExpr))  ([(a, r)], r)) getFunction f = do ((nm, args), isCurried) <- smtFunName f -                   let cmd = "(get-value (" ++ nm ++ "))"+                   let cmd = "(get-value (" <> T.pack nm <> "))"                        bad = unexpected "getFunction" cmd "a function value" Nothing                     r <- ask cmd -                   parse r bad $ \case EApp [EApp [ECon o, e]] | o == nm -> do mbAssocs <- sexprToFun f (trimFunctionResponse r nm isCurried args, e)-                                                                               case mbAssocs of-                                                                                 Right assocs -> return $ Right assocs-                                                                                 Left  raw    -> do mbPVS <- pointWiseExtract nm (smtFunType f)-                                                                                                    case mbPVS >>= convert of-                                                                                                      Just x  -> return $ Right x-                                                                                                      Nothing -> return $ Left (raw, (isCurried, args, e))-                                       _                                 -> bad r Nothing-    where convert    (vs, d) = (,) <$> mapM sexprPoint vs <*> sexprToVal d-          sexprPoint (as, v) = (,) <$> sexprToArg f as    <*> sexprToVal v---- | Generalization of 'Data.SBV.Control.getUninterpretedValue'-getUninterpretedValue :: (MonadIO m, MonadQuery m, HasKind a) => SBV a -> m String-getUninterpretedValue s =-        case kindOf s of-          KUserSort _ Nothing -> do sv <- inNewContext (`sbvToSV` s)--                                    let nm  = show sv-                                        cmd = "(get-value (" ++ nm ++ "))"-                                        bad = unexpected "getValue" cmd "a model value" Nothing--                                    r <- ask cmd+                   si <- contextState >>= getSInfo -                                    parse r bad $ \case EApp [EApp [ECon o,  ECon v]] | o == show sv -> return v-                                                        _                                            -> bad r Nothing+                   parse r bad $ \case EApp [EApp [ECon o, e]] | o == nm -> do+                                          mbAssocs <- sexprToFun f (trimFunctionResponse r nm isCurried args, e)+                                          case mbAssocs of+                                            Right assocs -> pure $ Right assocs+                                            Left  raw    -> do+                                               let rawRes = Left (raw, (isCurried, args, e))+                                               mbPVS <- pointWiseExtract nm (smtFunType f)+                                               case mbPVS of+                                                 Just ps -> do rs <- convert si ps+                                                               case rs of+                                                                  Just x  -> pure $ Right x+                                                                  Nothing -> pure rawRes+                                                 Nothing -> pure rawRes+                                       _ -> bad r Nothing+    where convert si (vs, d) = do ps <- mapM (sexprPoint si) vs+                                  pure $ (,) <$> sequenceA ps <*> sexprToVal si d -          k                   -> error $ unlines [""-                                                 , "*** SBV.getUninterpretedValue: Called on an 'interpreted' kind"-                                                 , "*** "-                                                 , "***    Kind: " ++ show k-                                                 , "***    Hint: Use 'getValue' to extract value for interpreted kinds."-                                                 , "*** "-                                                 , "*** Only truly uninterpreted sorts should be used with 'getUninterpretedValue.'"-                                                 ]+          sexprPoint si (as, v) = do mbA <- sexprToArg f as+                                     pure $ (,) <$> mbA <*> sexprToVal si v  -- | Get the value of a term, but in CV form. Used internally. The model-index, in particular is extremely Z3 specific! getValueCVHelper :: (MonadIO m, MonadQuery m) => Maybe Int -> SV -> m CV getValueCVHelper mbi s   | s == trueSV-  = return trueCV+  = pure trueCV   | s == falseSV-  = return falseCV+  = pure falseCV   | True   = extractValue mbi (show s) (kindOf s) @@ -868,11 +877,11 @@ defaultKindedValue :: Kind -> CV defaultKindedValue k = CV k $ cvt k   where cvt :: Kind -> CVal+        cvt (KVar s)         = error ("defaultKindedValue: Unexpected kind: " ++ s)         cvt KBool            = CInteger 0         cvt KBounded{}       = CInteger 0         cvt KUnbounded       = CInteger 0         cvt KReal            = CAlgReal 0-        cvt (KUserSort s ui) = uninterp s ui         cvt KFloat           = CFloat 0         cvt KDouble          = CDouble 0         cvt KRational        = CRational 0@@ -882,73 +891,82 @@         cvt (KList  _)       = CList []         cvt (KSet  _)        = CSet $ RegularSet Set.empty -- why not? Arguably, could be the universal set         cvt (KTuple ks)      = CTuple $ map cvt ks-        cvt (KMaybe _)       = CMaybe Nothing-        cvt (KEither k1 _)   = CEither . Left $ cvt k1     -- why not?         cvt (KArray  _  k2)  = CArray $ ArrayModel [] (cvt k2) -        -- Tricky case of uninterpreted-        uninterp _ (Just (c:_)) = CUserSort (Just 0, c)-        uninterp _ (Just [])    = error "defaultKindedValue: enumerated kind with no constructors!"+        cvt (KApp s _)       = error ("defaultKindedValue not supported for ADT app: " ++ s) -- tough luck -        -- A completely uninterpreted sort, i.e., no elements. Return the witness element for it.-        uninterp s Nothing      = CUserSort (Nothing, witnessName s)+        -- For ADTs, just return the first element if there's any+        cvt (KADT s _ cstrs) = case cstrs of+                                 []            -> error ("defaultKindedValue not supported for ADT: "     ++ s) -- tough luck+                                 ((c, ks) : _) -> CADT (c, [(k, cvt fk) | fk <- ks])  -- | Go from an SExpr directly to a value-sexprToVal :: forall a. SymVal a => SExpr -> Maybe a-sexprToVal e = fromCV <$> recoverKindedValue (kindOf (Proxy @a)) e+sexprToVal :: forall a. SymVal a => SInfo -> SExpr -> Maybe a+sexprToVal si e = fromCV <$> recoverKindedValue si (kindOf (Proxy @a)) e  -- | Recover a given solver-printed value with a possible interpretation-recoverKindedValue :: Kind -> SExpr -> Maybe CV-recoverKindedValue k e = case k of-                           KBool       | ENum (i, _) <- e      -> Just $ mkConstCV k i-                                       | True                  -> Nothing+recoverKindedValue :: SInfo -> Kind -> SExpr -> Maybe CV+recoverKindedValue si k e =+    case k of+      KVar{}      -> error $ "Data.SBV.recoverKindedValue: Unexpected var kind: " ++ show k -                           KBounded{}  | ENum (i, _) <- e      -> Just $ mkConstCV k i-                                       | True                  -> Nothing+      KApp n ks   -> case [(s, ps, cstrs) | KADT s ps cstrs <- sInfoKinds si, s == n] of+                       [(s, ps, cstr)]+                         | length ks == length ps -> recoverKindedValue si (KADT s (zip (map fst ps) ks) cstr) e+                       xs -> error $ unlines [ "Data.SBV.recoverKindedValue: Can't uniquely locate reference to ADT: "+                                             , "***"+                                             , "*** ADT    : " ++ show n+                                             , "*** Params : " ++ show ks+                                             , "*** Matched: " ++ show xs+                                             , "*** Expr   : " ++ show e+                                             , "***"+                                             , "*** Please report this as a bug."+                                             ] -                           KUnbounded  | ENum (i, _) <- e      -> Just $ mkConstCV k i-                                       | True                  -> Nothing+      KBool       | ENum (i, _, _) <- e   -> Just $ mkConstCV k i+                  | True                  -> Nothing -                           KReal       | ENum (i, _) <- e      -> Just $ mkConstCV k i-                                       | EReal i     <- e      -> Just $ CV KReal (CAlgReal i)-                                       | True                  -> interpretInterval e+      KBounded{}  | ENum (i, _, _) <- e   -> Just $ mkConstCV k i+                  | True                  -> Nothing -                           KUserSort{} | ECon s <- e           -> Just $ CV k $ CUserSort (getUIIndex k s, simplifyECon s)-                                       | True                  -> Nothing+      KUnbounded  | ENum (i, _, _) <- e   -> Just $ mkConstCV k i+                  | True                  -> Nothing -                           KFloat      | ENum (i, _) <- e      -> Just $ mkConstCV k i-                                       | EFloat i    <- e      -> Just $ CV KFloat (CFloat i)-                                       | True                  -> Nothing+      KReal       | ENum (i, _, _) <- e   -> Just $ mkConstCV k i+                  | EReal i        <- e   -> Just $ CV KReal (CAlgReal i)+                  | True                  -> interpretInterval e -                           KDouble     | ENum (i, _) <- e      -> Just $ mkConstCV k i-                                       | EDouble i   <- e      -> Just $ CV KDouble (CDouble i)-                                       | True                  -> Nothing+      KADT nm dict def                    -> let k' = KADT nm dict [(c, map (substituteADTVars nm dict) ks) | (c, ks) <- def]+                                             in Just $ CV k' $ CADT $ interpretADT k' e -                           KFP eb sb   | ENum (i, _)      <- e -> Just $ CV k $ CFP $ fpFromInteger eb sb i-                                       | EFloat f         <- e -> Just $ CV k $ CFP $ fpFromFloat   eb sb f-                                       | EDouble d        <- e -> Just $ CV k $ CFP $ fpFromDouble  eb sb d-                                       | EFloatingPoint c <- e -> Just $ CV k $ CFP c-                                       | True                  -> Nothing+      KFloat      | ENum (i, _, _) <- e   -> Just $ mkConstCV k i+                  | EFloat i       <- e   -> Just $ CV KFloat (CFloat i)+                  | True                  -> Nothing -                           KChar       | ECon s      <- e      -> Just $ CV KChar $ CChar $ interpretChar s-                                       | True                  -> Nothing+      KDouble     | ENum (i, _, _) <- e   -> Just $ mkConstCV k i+                  | EDouble i      <- e   -> Just $ CV KDouble (CDouble i)+                  | True                  -> Nothing -                           KString     | ECon s      <- e      -> Just $ CV KString $ CString $ interpretString s-                                       | True                  -> Nothing+      KFP eb sb   | ENum (i, _, _)   <- e -> Just $ CV k $ CFP $ fpFromInteger eb sb i+                  | EFloat f         <- e -> Just $ CV k $ CFP $ fpFromFloat   eb sb f+                  | EDouble d        <- e -> Just $ CV k $ CFP $ fpFromDouble  eb sb d+                  | EFloatingPoint c <- e -> Just $ CV k $ CFP c+                  | True                  -> Nothing -                           KRational                           -> Just $ CV k $ CRational $ interpretRational       e-                           KList ek                            -> Just $ CV k $ CList     $ interpretList ek        e-                           KSet ek                             -> Just $ CV k $ CSet      $ interpretSet ek         e-                           KTuple{}                            -> Just $ CV k $ CTuple    $ interpretTuple          e-                           KMaybe{}                            -> Just $ CV k $ CMaybe    $ interpretMaybe    k     e-                           KEither{}                           -> Just $ CV k $ CEither   $ interpretEither   k     e-                           KArray k1 k2                        -> Just $ CV k $ CArray    $ interpretArray    k1 k2 e+      KChar       | ECon s      <- e      -> Just $ CV KChar $ CChar $ interpretChar s+                  | True                  -> Nothing -  where getUIIndex (KUserSort  _ (Just xs)) i = i `elemIndex` xs-        getUIIndex _                        _ = Nothing+      KString     | ECon s      <- e      -> Just $ CV KString $ CString $ interpretString s+                  | True                  -> Nothing -        stringLike xs = length xs >= 2 && "\"" `isPrefixOf` xs && "\"" `isSuffixOf` xs+      KRational                           -> Just $ CV k $ CRational $ interpretRational       e+      KList ek                            -> Just $ CV k $ CList     $ interpretList ek        e+      KSet ek                             -> Just $ CV k $ CSet      $ interpretSet ek         e+      KTuple{}                            -> Just $ CV k $ CTuple    $ interpretTuple          e+      KArray k1 k2                        -> Just $ CV k $ CArray    $ interpretArray    k1 k2 e +  where stringLike xs = length xs >= 2 && "\"" `isPrefixOf` xs && "\"" `isSuffixOf` xs+         -- Make sure strings are really strings         interpretString xs           | not (stringLike xs)@@ -961,15 +979,15 @@                              _   -> error $ "Expected a singleton char constant, received: <" ++ xs ++ ">"          interpretRational (EApp [ECon "SBV.Rational", v1, v2])-           | Just (CV _ (CInteger n)) <- recoverKindedValue KUnbounded v1-           , Just (CV _ (CInteger d)) <- recoverKindedValue KUnbounded v2+           | Just (CV _ (CInteger n)) <- recoverKindedValue si KUnbounded v1+           , Just (CV _ (CInteger d)) <- recoverKindedValue si KUnbounded v2            = n % d         interpretRational xs = error $ "Expected a rational constant, received: <" ++ show xs ++ ">"          interpretList ek topExpr = walk topExpr           where walk (EApp [ECon "as", v, _])      = walk v                 walk (ECon "seq.empty")            = []-                walk (EApp [ECon "seq.unit", v])   = case recoverKindedValue ek v of+                walk (EApp [ECon "seq.unit", v])   = case recoverKindedValue si ek v of                                                        Just w -> [cvVal w]                                                        Nothing -> error $ "Cannot parse a sequence item of kind " ++ show ek ++ " from: " ++ show v ++ extra v                 walk (EApp (ECon "seq.++" : rest)) = concatMap walk rest@@ -999,8 +1017,8 @@                                          ]  -                 isTrue (ENum (1, Nothing)) = True-                 isTrue (ENum (0, Nothing)) = False+                 isTrue (ENum (1, Nothing, True)) = True+                 isTrue (ENum (0, Nothing, True)) = False                  isTrue bad                 = tbd $ "Non-boolean membership value seen: " ++ show bad                   isUniversal (EApp [EApp [ECon "as", ECon "const", EApp [ECon "Array", _, ECon "Bool"]], r]) = isTrue r@@ -1018,17 +1036,17 @@                  contents _   bad      = tbd $ "Multi-valued set member seen: " ++ show bad                   element cvt x = case (cvt, ke) of-                                   (True, KChar) -> case recoverKindedValue KString x of+                                   (True, KChar) -> case recoverKindedValue si KString x of                                                       Just v  -> case cvVal v of                                                                   CString [c] -> [CChar c]                                                                   CString _   -> []                                                                   _           -> tbd $ "Unexpected value for kind: " ++ show (x, ke)                                                       Nothing -> tbd $ "Unexpected value for kind: " ++ show (x, ke)-                                   _             -> case recoverKindedValue ke x of+                                   _             -> case recoverKindedValue si ke x of                                                       Just v  -> [cvVal v]                                                       Nothing -> tbd $ "Unexpected value for kind: " ++ show (x, ke) -        interpretTuple te = walk (1 :: Int) (zipWith recoverKindedValue ks args) []+        interpretTuple te = walk (1 :: Int) (zipWith (recoverKindedValue si) ks args) []                 where (ks, n) = case k of                                   KTuple eks -> (eks, length eks)                                   _          -> error $ unlines [ "Impossible: Expected a tuple kind, but got: " ++ show k@@ -1054,48 +1072,14 @@                                                                   , "Expr: " ++ show te                                                                   ] -        -- SMaybe-        interpretMaybe (KMaybe _)  (ECon "nothing_SBVMaybe")        = Nothing-        interpretMaybe (KMaybe ek) (EApp [ECon "just_SBVMaybe", a]) = case recoverKindedValue ek a of-                                                                        Just (CV _ v) -> Just v-                                                                        Nothing       -> error $ unlines [ "Couldn't parse a maybe just value"-                                                                                                         , "Kind: " ++ show ek-                                                                                                         , "Expr: " ++ show a-                                                                                                         ]-        -- CVC4 puts in full ascriptions, handle those:-        interpretMaybe _  (      EApp [ECon "as", ECon "nothing_SBVMaybe", _])     = Nothing-        interpretMaybe mk (EApp [EApp [ECon "as", ECon "just_SBVMaybe",    _], a]) = interpretMaybe mk (EApp [ECon "just_SBVMaybe", a])--        interpretMaybe _  other = error $ "Expected an SMaybe sexpr, but received: " ++ show (k, other)--        -- SEither-        interpretEither (KEither k1 _) (EApp [ECon "left_SBVEither",  a]) = case recoverKindedValue k1 a of-                                                                              Just (CV _ v) -> Left v-                                                                              Nothing       -> error $ unlines [ "Couldn't parse an either value on the left"-                                                                                                               , "Kind: " ++ show k1-                                                                                                               , "Expr: " ++ show a-                                                                                                               ]-        interpretEither (KEither _ k2) (EApp [ECon "right_SBVEither", b]) = case recoverKindedValue k2 b of-                                                                              Just (CV _ v) -> Right v-                                                                              Nothing       -> error $ unlines [ "Couldn't parse an either value on the right"-                                                                                                               , "Kind: " ++ show k2-                                                                                                               , "Expr: " ++ show b-                                                                                                               ]--        -- CVC4 puts full ascriptions:-        interpretEither ek (EApp [EApp [ECon "as", ECon "left_SBVEither",  _], a]) = interpretEither ek (EApp [ECon "left_SBVEither", a])-        interpretEither ek (EApp [EApp [ECon "as", ECon "right_SBVEither", _], b]) = interpretEither ek (EApp [ECon "right_SBVEither", b])--        interpretEither _ other = error $ "Expected an SEither sexpr, but received: " ++ show (k, other)-         -- Intervals, for dReal         interpretInterval expr = case expr of                                    EApp [ECon "interval", lo, hi] -> do vlo <- getBorder lo                                                                         vhi <- getBorder hi                                                                         pure $ CV KReal (CAlgReal (AlgInterval vlo vhi))                                    _                              -> Nothing-          where getBorder (EApp [ECon "open",   v]) = recoverKindedValue KReal v >>= border OpenPoint-                getBorder (EApp [ECon "closed", v]) = recoverKindedValue KReal v >>= border ClosedPoint+          where getBorder (EApp [ECon "open",   v]) = recoverKindedValue si KReal v >>= border OpenPoint+                getBorder (EApp [ECon "closed", v]) = recoverKindedValue si KReal v >>= border ClosedPoint                 getBorder _                         = Nothing                  border b (CV KReal (CAlgReal (AlgRational True v))) = pure $ b v@@ -1119,11 +1103,49 @@                                          ]                   decode (args, d) = ArrayModel [(cvt k1 l, cvt k2 [r]) | (l, r) <- args] (cvt k2 [d])-                   where cvt ek [v] = case recoverKindedValue ek v of+                   where cvt ek [v] = case recoverKindedValue si ek v of                                          Just (CV _ x) -> x                                          _             -> tbd $ "Cannot convert value: " ++ show v                          cvt _ vs   = tbd $ "Unexpected function-like-value as array index" ++ show vs +        interpretADT :: Kind -> SExpr -> (String, [(Kind, CVal)])+        interpretADT adtK@(KADT _ _ cks) expr+           | isUninterpreted adtK+           = case expr of+               ECon s -> (simplifyECon s, [])+               _      -> bad ["Unexpected expression value for uninterpreted kind."]+           | Just ks <- cstr `lookup` cks+           = if length fs == length ks+             then (cstr, zipWith convert (zip [1..] ks) fs)+             else bad ["Mismatching field count: " ++ show (fs, ks)]+           | True+           = bad ["Cannot find constructor in the kind: " ++ show (cstr, adtK)]+          where (cstr, fs) = case removeAS expr of+                               ECon c             -> (c, [])+                               EApp (ECon c : cs) -> (c, cs)+                               _                  -> bad ["Unexpected expression value; does not start with a constructor."]++                removeAS :: SExpr -> SExpr+                removeAS (EApp [ECon "as", i, _]) = removeAS i+                removeAS (EApp xs)                = EApp $ map removeAS xs+                removeAS ae                       = ae++                bad :: [String] -> a+                bad extras = error $ unlines $ [ "Data.SBV.interpretADT: Cannot recover ADT value from solver output."+                                               , "   Kind: " ++ show adtK+                                               , "   Expr: " ++ show expr+                                               ] ++ extras++                convert :: (Int, Kind) -> SExpr -> (Kind, CVal)+                convert (i, fk) f = case recoverKindedValue si fk f of+                                      Just (CV kv v) -> (kv, v)+                                      Nothing        -> bad ["Couldn't convert field " ++ show i ++ ": " ++ show (fk, f)]++        interpretADT someK expr = error $ unlines [ "Data.SBV.interpretADT: Expected an ADT kind, but got something else."+                                                  , "   Expr: " ++ show expr+                                                  , "   Kind: " ++ show someK+                                                  ]+ -- | Generalization of 'Data.SBV.Control.getValueCV' getValueCV :: (MonadIO m, MonadQuery m) => Maybe Int -> SV -> m CV getValueCV mbi s@@ -1136,13 +1158,13 @@           else do send True "(set-option :pp.decimal false)"                   rep1 <- getValueCVHelper mbi s                   send True   "(set-option :pp.decimal true)"-                  send True $ "(set-option :pp.decimal_precision " ++ show (printRealPrec cfg) ++ ")"+                  send True $ "(set-option :pp.decimal_precision " <> showText (printRealPrec cfg) <> ")"                   rep2 <- getValueCVHelper mbi s                    let bad = unexpected "getValueCV" "get-value" ("a real-valued binding for " ++ show s) Nothing (show (rep1, rep2)) Nothing                    case (rep1, rep2) of-                    (CV KReal (CAlgReal a), CV KReal (CAlgReal b)) -> return $ CV KReal (CAlgReal (mergeAlgReals ("Cannot merge real-values for " ++ show s) a b))+                    (CV KReal (CAlgReal a), CV KReal (CAlgReal b)) -> pure $ CV KReal (CAlgReal (mergeAlgReals ("Cannot merge real-values for " ++ show s) a b))                     _                                              -> bad  -- | Retrieve value from the solver@@ -1152,14 +1174,16 @@                           Nothing -> ""                           Just i  -> " :model_index " ++ show i -           cmd        = "(get-value (" ++ nm ++ ")" ++ modelIndex ++ ")"+           cmd        = "(get-value (" <> T.pack nm <> ")" <> T.pack modelIndex <> ")"             bad = unexpected "get-value" cmd ("a value binding for kind: " ++ show k) Nothing         r <- ask cmd -       let recover val = case recoverKindedValue k val of-                           Just cv -> return cv+       si <- queryState >>= getSInfo++       let recover val = case recoverKindedValue si k val of+                           Just cv -> pure cv                            Nothing -> bad r Nothing         parse r bad $ \case EApp [EApp [ECon v, val]] | v == nm -> recover val@@ -1169,7 +1193,7 @@ getUICVal :: forall m. (MonadIO m, MonadQuery m) => Maybe Int -> (String, (Bool, Maybe [String], SBVType)) -> m CV getUICVal mbi (nm, (_, _, t)) = case t of                                  SBVType [k] -> extractValue mbi nm k-                                 _           -> error $ "SBV.getUICVal: Expected to be called on an uninterpeted value of a base type, received something else: " ++ show (nm, t)+                                 _           -> error $ "SBV.getUICVal: Expected to be called on an uninterpreted value of a base type, received something else: " ++ show (nm, t)  -- | Generalization of 'Data.SBV.Control.getUIFunCVAssoc' getUIFunCVAssoc :: forall m. (MonadIO m, MonadQuery m) => Maybe Int -> (String, (Bool, Maybe [String], SBVType)) -> m (Either String ([([CV], CV)], CV))@@ -1178,23 +1202,25 @@                      Nothing -> ""                      Just i  -> " :model_index " ++ show i -      cmd        = "(get-value (" ++ nm ++ ")" ++ modelIndex ++ ")"+      cmd        = "(get-value (" <> T.pack nm <> ")" <> T.pack modelIndex <> ")"        bad        = unexpected "get-value" cmd "a function value" Nothing    r <- ask cmd +  si <- queryState >>= getSInfo+   let (ats, rt) = case typ of                     SBVType as | length as > 1 -> (init as, last as)                     _                          -> error $ "Data.SBV.getUIFunCVAssoc: Expected a function type, got: " ++ show typ    let convert (vs, d) = (,) <$> mapM toPoint vs <*> toRes d       toPoint (as, v)-         | length as == length ats = (,) <$> zipWithM recoverKindedValue ats as <*> toRes v+         | length as == length ats = (,) <$> zipWithM (recoverKindedValue si) ats as <*> toRes v          | True                    = error $ "Data.SBV.getUIFunCVAssoc: Mismatching type/value arity, got: " ++ show (as, ats)        toRes :: SExpr -> Maybe CV-      toRes = recoverKindedValue rt+      toRes = recoverKindedValue si rt        -- if we fail to parse, we'll return this answer as the string       fallBack = trimFunctionResponse r nm isCurried mbArgs@@ -1207,10 +1233,10 @@                           Just sExprs -> pure $ maybe (Left fallBack) Right (convert sExprs)    parse r bad $ \case EApp [EApp [ECon o, e]] | o == nm -> case parseSExprFunction e of-                                                             Just (Right assocs) | Just res <- convert assocs                 -> return (Right res)+                                                             Just (Right assocs) | Just res <- convert assocs                 -> pure (Right res)                                                                                  | True                                       -> tryPointWise -                                                             Just (Left nm')     | nm == nm', let res = defaultKindedValue rt -> return (Right ([], res))+                                                             Just (Left nm')     | nm == nm', let res = defaultKindedValue rt -> pure (Right ([], res))                                                                                  | True                                       -> bad r Nothing                                                               Nothing                                                          -> tryPointWise@@ -1224,22 +1250,22 @@  -- | Generalization of 'Data.SBV.Control.checkSatUsing' checkSatUsing :: (MonadIO m, MonadQuery m) => String -> m CheckSatResult-checkSatUsing cmd = do let bad = unexpected "checkSat" cmd "one of sat/unsat/unknown" Nothing+checkSatUsing cmd = do let bad = unexpected "checkSat" (T.pack cmd) "one of sat/unsat/unknown" Nothing                             -- Sigh.. Ignore some of the pesky warnings. We only do it as an exception here.                            ignoreList = ["WARNING: optimization with quantified constraints is not supported"] -                       r <- askIgnoring cmd ignoreList+                       r <- askIgnoring (T.pack cmd) ignoreList                         -- query for the precision if supported                        let getPrecision = do cfg <- getConfig                                              case supportsDeltaSat (capabilities (solver cfg)) of                                                Nothing -> pure Nothing-                                               Just o  -> Just <$> ask o+                                               Just o  -> Just <$> ask (T.pack o) -                       parse r bad $ \case ECon "sat"       -> return Sat-                                           ECon "unsat"     -> return Unsat-                                           ECon "unknown"   -> return Unk+                       parse r bad $ \case ECon "sat"       -> pure Sat+                                           ECon "unsat"     -> pure Unsat+                                           ECon "unknown"   -> pure Unk                                            ECon "delta-sat" -> DSat <$> getPrecision                                            _                -> bad r Nothing @@ -1257,7 +1283,7 @@                     rObs <- liftIO $ readIORef rObservables                      -- This intentionally reverses the result; since 'rObs' stores in reversed order-                    let walk []             !sofar = return sofar+                    let walk []             !sofar = pure sofar                         walk ((n, f, s):os) !sofar = do cv <- getValueCV Nothing s                                                         if f cv                                                           then walk os ((n, cv) : sofar)@@ -1270,12 +1296,11 @@ getUIs :: forall m. (MonadIO m, MonadQuery m) => m [(String, (Bool, Maybe [String], SBVType))] getUIs = do State{rUIMap, rDefns, rIncState} <- queryState             -- NB. no need to worry about new-defines, because we don't allow definitions once query mode starts-            defines <- do allDefs <- io $ readIORef rDefns-                          pure $ map fst allDefs+            defineSet <- Map.keysSet <$> io (readIORef rDefns)              prior <- io $ readIORef rUIMap             new   <- io $ readIORef rIncState >>= readIORef . rNewUIs-            return $ nub $ sort [p | p@(n, _) <- Map.toList prior ++ Map.toList new, n `notElem` defines]+            pure $ Map.toList $ Map.withoutKeys (Map.union prior new) defineSet  -- | Return all satisfying models. getAllSatResult :: forall m. (MonadIO m, MonadQuery m, SolverContext m) => m AllSatResult@@ -1302,21 +1327,21 @@                       -- Functions have at least two kinds in their type and all components must be "interpreted"                      let allUiFuns = [u | allSatTrackUFs cfg                                              -- config says consider UIFs                                         , u@(nm, (_, _, SBVType as)) <- allUninterpreteds, length as > 1  -- get the function ones-                                        , not (mustIgnoreVar cfg nm)                                      -- make sure they aren't explicitly ignored+                                        , not (mustIgnoreVar cfg (T.pack nm))                              -- make sure they aren't explicitly ignored                                      ]                           allUiRegs = [u | u@(nm, (_, _, SBVType as)) <- allUninterpreteds, length as == 1 -- non-function ones-                                        , not (mustIgnoreVar cfg nm)                                      -- make sure they aren't explicitly ignored+                                        , not (mustIgnoreVar cfg (T.pack nm))                              -- make sure they aren't explicitly ignored                                      ]                           -- We can only "allSat" if all component types themselves are interpreted. (Otherwise                          -- there is no way to reflect back the values to the solver.)-                         collectAcceptable []                                sofar = return sofar+                         collectAcceptable []                                sofar = pure sofar                          collectAcceptable ((nm, (_, _, t@(SBVType ats))):rest) sofar                            | not (any hasUninterpretedSorts ats)                            = collectAcceptable rest (nm : sofar)                            | True-                           = do queryDebug [ "*** SBV.allSat: Uninterpreted function: " ++ nm ++ " :: " ++ show t+                           = do queryDebug [ "*** SBV.allSat: Uninterpreted function: " <> T.pack nm <> " :: " <> showText t                                            , "*** Will *not* be used in allSat considerations since its type"                                            , "*** has uninterpreted sorts present."                                            ]@@ -1329,20 +1354,18 @@                      -- as cex's tend to get larger                      unless (null uiFuns) $                         let solverCaps = capabilities (solver cfg)-                        in case supportsFlattenedModels solverCaps of-                             Nothing   -> return ()-                             Just cmds -> mapM_ (send True) cmds+                        in F.for_ (supportsFlattenedModels solverCaps) (mapM_ (send True . T.pack)) -                     let usorts = [s | us@(KUserSort s _) <- Set.toAscList ki, isFree us]+                     let usorts = [s | us@(KADT s _ _) <- Set.toAscList ki, isUninterpreted us] -                     unless (null usorts) $ queryDebug [ "*** SBV.allSat: Uninterpreted sorts present: " ++ unwords usorts+                     unless (null usorts) $ queryDebug [ "*** SBV.allSat: Uninterpreted sorts present: " <> T.pack (unwords usorts)                                                        , "***             SBV will use equivalence classes to generate all-satisfying instances."                                                        ]                       -- Drop the things that are not model vars or internal-                     let mkSVal nm@(getSV -> sv) = (SVal (kindOf sv) (Right (cache (const (return sv)))), nm)+                     let mkSVal nm@(getSV -> sv) = (SVal (kindOf sv) (Right (cache (const (pure sv)))), nm)                      let extractVars :: S.Seq (SVal, NamedSymVar)-                         extractVars = mkSVal <$> S.filter (not . mustIgnoreVar cfg . getUserName') allModelInputs+                         extractVars = mkSVal <$> S.filter (not . mustIgnoreVar cfg . getUserName) allModelInputs                           vars :: S.Seq (SVal, NamedSymVar)                          vars = case partitionVars of@@ -1386,7 +1409,7 @@                       if isSimple                         then do let mkVar :: (String, (Bool, Maybe [String], SBVType)) -> IO (SVal, NamedSymVar)-                                    mkVar (nm, (_, _, SBVType [k])) = do sv <- newExpr topState k (SBVApp (Uninterpreted nm) [])+                                    mkVar (nm, (_, _, SBVType [k])) = do sv <- newExpr topState k (SBVApp (Uninterpreted (T.pack nm)) [])                                                                          let sval = SVal k $ Right $ cache $ \_ -> pure sv                                                                              nsv  = NamedSymVar sv (T.pack nm)                                                                          pure (sval, nsv)@@ -1395,10 +1418,7 @@                                 fastAllSat                                        allModelInputs (uiVars S.>< extractVars) (uiVars S.>< vars) cfg start                         else    loop       topState (allUiFuns, uiFuns) allUiRegs allModelInputs                                        vars  cfg start -   where isFree (KUserSort _ Nothing) = True-         isFree _                     = False--         finalize cnt cfg sofar extra+   where finalize cnt cfg sofar extra                 = when (allSatPrintAlong cfg && not (null (allSatResults sofar))) $ do                            let msg 0 = "No solutions found."                                msg 1 = "This is the only solution."@@ -1436,7 +1456,7 @@                                                 else case allSatMaxModelCount cfg of                                                        Just maxModels                                                          | have >= maxModels -> do unless (allSatMaxModelCountReached sofar) $ do-                                                                                      queryDebug ["*** Maximum model count request of " ++ show maxModels ++ " reached, stopping the search."]+                                                                                      queryDebug ["*** Maximum model count request of " <> showText maxModels <> " reached, stopping the search."]                                                                                       when (allSatPrintAlong cfg) $ io $ putStrLn "Search stopped since model count request was reached."                                                                                       io $ modifyIORef' finalResult $ \(h, s, _, m) -> (h, s{ allSatMaxModelCountReached = True }, True, m)                                                                                    pure Nothing@@ -1445,31 +1465,29 @@                                 case mbCont of                                   Nothing  -> pure ()                                   Just cnt -> do-                                    queryDebug ["Fast allSat, Looking for solution " ++ show cnt]+                                    queryDebug ["Fast allSat, Looking for solution " <> showText cnt]                                      cs <- checkSat                                      case cs of                                       Unsat  -> pure () -                                      Unk    -> do let m = "Solver returned unknown, terminating query."-                                                   queryDebug ["*** " ++ m]-                                                   io $ modifyIORef' finalResult $ \(h, s, _, _) -> (h, s{allSatSolverReturnedUnknown = True}, True, Just ("[" ++ m ++ "]"))+                                      Unk    -> do queryDebug ["*** Solver returned unknown, terminating query."]+                                                   io $ modifyIORef' finalResult $ \(h, s, _, _) -> (h, s{allSatSolverReturnedUnknown = True}, True, Just "[Solver returned unknown, terminating query.]") -                                      DSat _ -> do let m = "Solver returned delta-sat, terminating query."-                                                   queryDebug ["*** " ++ m]-                                                   io $ modifyIORef' finalResult $ \(h, s, _, _) -> (h, s{allSatSolverReturnedDSat = True}, True, Just ("[" ++ m ++ "]"))+                                      DSat _ -> do queryDebug ["*** Solver returned delta-sat, terminating query."]+                                                   io $ modifyIORef' finalResult $ \(h, s, _, _) -> (h, s{allSatSolverReturnedDSat = True}, True, Just "[Solver returned delta-sat, terminating query.]")                                        Sat    -> do assocs <- mapM (\(sval, NamedSymVar sv n) -> do !cv <- getValueCV Nothing sv-                                                                                                   return (sv, (n, (sval, cv)))) extractVars+                                                                                                   pure (sv, (n, (sval, cv)))) extractVars                                                     bindings <- let grab i@(getSV -> sv) = case lookupInput fst sv assocs of-                                                                                            Just (_, (_, (_, cv))) -> return (i, cv)+                                                                                            Just (_, (_, (_, cv))) -> pure (i, cv)                                                                                             Nothing                -> do !cv <- getValueCV Nothing sv-                                                                                                                         return (i, cv)+                                                                                                                         pure (i, cv)                                                                in if validationRequested cfg                                                                   then Just <$> mapM grab allInputs-                                                                  else return Nothing+                                                                  else pure Nothing                                                     obsvs <- getObservables @@ -1497,7 +1515,7 @@                                                        cstr shouldReject (sv, cv) = constrain (SBV $ mkEq (kindOf sv) sv (SVal (kindOf sv) (Left cv)) :: SBool)                                                          where mkEq :: Kind -> SVal -> SVal -> SVal                                                                mkEq k a b-                                                                | isDouble k || isFloat k || isFP k+                                                                | any isSomeKindOfFloat (expandKinds k)                                                                 = if shouldReject                                                                      then svNot  (a `fpEq` b)                                                                      else         a `fpEq` b@@ -1524,7 +1542,7 @@                                                                 send True "(pop 1)"                                                                 pure r -                                                   forM_ [0 .. length terms - 1] $ \i -> do+                                                   F.for_ [0 .. length terms - 1] $ \i -> do                                                         sc <- shouldContinue                                                         when sc $ do case S.splitAt i terms of                                                                        (pre, rest@(cur S.:<| _)) -> scope cur pre $ walk False rest@@ -1536,11 +1554,11 @@            where go :: Int -> AllSatResult -> m AllSatResult                  go !cnt !sofar                    | Just maxModels <- allSatMaxModelCount cfg, cnt > maxModels-                   = do queryDebug ["*** Maximum model count request of " ++ show maxModels ++ " reached, stopping the search."]+                   = do queryDebug ["*** Maximum model count request of " <> showText maxModels <> " reached, stopping the search."]                         when (allSatPrintAlong cfg) $ io $ putStrLn "Search stopped since model count request was reached."-                        return $! sofar { allSatMaxModelCountReached = True }+                        pure $! sofar { allSatMaxModelCountReached = True }                    | True-                   = do queryDebug ["Looking for solution " ++ show cnt]+                   = do queryDebug ["Looking for solution " <> showText cnt]                          cs <- checkSat @@ -1548,23 +1566,21 @@                          case cs of                           Unsat  -> do endMsg Nothing-                                       return sofar+                                       pure sofar -                          Unk    -> do let m = "Solver returned unknown, terminating query."-                                       queryDebug ["*** " ++ m]-                                       endMsg $ Just $ "[" ++ m ++ "]"-                                       return sofar{ allSatSolverReturnedUnknown = True }+                          Unk    -> do queryDebug ["*** Solver returned unknown, terminating query."]+                                       endMsg $ Just "[Solver returned unknown, terminating query.]"+                                       pure sofar{ allSatSolverReturnedUnknown = True } -                          DSat _ -> do let m = "Solver returned delta-sat, terminating query."-                                       queryDebug ["*** " ++ m]-                                       endMsg $ Just $ "[" ++ m ++ "]"-                                       return sofar{ allSatSolverReturnedDSat = True }+                          DSat _ -> do queryDebug ["*** Solver returned delta-sat, terminating query."]+                                       endMsg $ Just "[Solver returned delta-sat, terminating query.]"+                                       pure sofar{ allSatSolverReturnedDSat = True }                            Sat    -> do assocs <- mapM (\(sval, NamedSymVar sv n) -> do !cv <- getValueCV Nothing sv-                                                                                       return (sv, (n, (sval, cv)))) vars+                                                                                       pure (sv, (n, (sval, cv)))) vars                                         let getUIFun ui@(nm, (isCurried, _, t)) = do cvs <- getUIFunCVAssoc Nothing ui-                                                                                    return (nm, (isCurried, t, cvs))+                                                                                    pure (nm, (isCurried, t, cvs))                                        uiFunVals <- mapM getUIFun allUiFuns                                         uiRegVals <- mapM (\ui@(nm, _) -> (nm,) <$> getUICVal Nothing ui) allUiRegs@@ -1572,12 +1588,12 @@                                        obsvs <- getObservables                                         bindings <- let grab i@(getSV -> sv) = case lookupInput fst sv assocs of-                                                                                Just (_, (_, (_, cv))) -> return (i, cv)+                                                                                Just (_, (_, (_, cv))) -> pure (i, cv)                                                                                 Nothing                -> do !cv <- getValueCV Nothing sv-                                                                                                             return (i, cv)+                                                                                                             pure (i, cv)                                                    in if validationRequested cfg                                                          then Just <$> mapM grab allInputs-                                                         else return Nothing+                                                         else pure Nothing                                         let model = SMTModel { modelObjectives = []                                                             , modelBindings   = F.toList <$> bindings@@ -1588,14 +1604,14 @@                                                             }                                            m = Satisfiable cfg model -                                           (interpreteds, uninterpreteds) = S.partition (not . isFree . kindOf . fst) (fmap (snd . snd) assocs)+                                           (interpreteds, uninterpreteds) = S.partition (not . isUninterpreted . kindOf . fst) (snd . snd <$> assocs) -                                           interpretedRegUis = filter (not . isFree . kindOf . snd) uiRegVals+                                           interpretedRegUis = filter (not . isUninterpreted . kindOf . snd) uiRegVals                                             interpretedRegUiSVs = [(cvt n (kindOf cv), cv) | (n, cv) <- interpretedRegUis]                                              where cvt :: String -> Kind -> SVal                                                    cvt nm k = SVal k $ Right $ cache r-                                                     where r st = newExpr st k (SBVApp (Uninterpreted nm) [])+                                                     where r st = newExpr st k (SBVApp (Uninterpreted (T.pack nm)) [])                                             -- For each interpreted variable, figure out the model equivalence                                            -- NB. When the kind is floating, we *have* to be careful, since +/- zero, and NaN's@@ -1627,8 +1643,8 @@                                            -- For each uninterpreted function, create a disqualifying equation                                            -- We do this rather brute-force, since we need to create a new function                                            -- and do an existential assertion.-                                           uninterpretedReject :: Maybe [String]-                                           uninterpretedFuns   :: [String]+                                           uninterpretedReject :: Maybe [T.Text]+                                           uninterpretedFuns   :: [T.Text]                                            (uninterpretedReject, uninterpretedFuns) = (uiReject, concat defs)                                                where uiReject = case rejects of                                                                   []  -> Nothing@@ -1660,39 +1676,39 @@                                                           , "*** NB. If this is a use case you'd like SBV to support, please get in touch!"                                                           ]                                                      mkNotEq (nm, (_, SBVType ts, Right vs)) = (reject, def ++ dif)-                                                       where nm' = nm ++ "_model" ++ show cnt+                                                       where nm' = T.pack nm <> "_model" <> showText cnt -                                                             reject = nm' ++ "_reject"+                                                             reject = nm' <> "_reject" -                                                             -- rounding mode doesn't matter here, just pick one-                                                             scv = cvToSMTLib RoundNearestTiesToEven+                                                             -- convert a constant+                                                             scv = cvToSMTLib                                                               (ats, rt) = (init ts, last ts) -                                                             args = unwords ["(x!" ++ show i ++ " " ++ smtType t ++ ")" | (t, i) <- zip ats [(0::Int)..]]+                                                             args = T.unwords ["(x!" <> showText i <> " " <> smtType t <> ")" | (t, i) <- zip ats [(0::Int)..]]                                                              res  = smtType rt -                                                             params = ["x!" ++ show i | (_, i) <- zip ats [(0::Int)..]]+                                                             params = ["x!" <> showText i | (_, i) <- zip ats [(0::Int)..]] -                                                             uparams = unwords params+                                                             uparams = T.unwords params                                                               chain (vals, fallThru) = walk vals-                                                               where walk []               = ["   " ++ scv fallThru ++ replicate (length vals) ')']-                                                                     walk ((as, r) : rest) = ("   (ite " ++ cond as ++ " " ++ scv r) :  walk rest+                                                               where walk []               = ["   " <> scv fallThru <> T.replicate (length vals) ")"]+                                                                     walk ((as, r) : rest) = ("   (ite " <> cond as <> " " <> scv r) :  walk rest -                                                                     cond as = "(and " ++ unwords (zipWith eq params as) ++ ")"-                                                                     eq p a  = "(= " ++ p ++ " " ++ scv a ++ ")"+                                                                     cond as = "(and " <> T.unwords (zipWith eq params as) <> ")"+                                                                     eq p a  = "(= " <> p <> " " <> scv a <> ")" -                                                             def =    ("(define-fun " ++ nm' ++ " (" ++ args ++ ") " ++ res)+                                                             def =    ("(define-fun " <> nm' <> " (" <> args <> ") " <> res)                                                                    :  chain vs                                                                    ++ [")"] -                                                             pad = replicate (1 + length nm' - length nm) ' '+                                                             pad = T.replicate (1 + T.length nm' - length nm) " " -                                                             dif = [ "(define-fun " ++  reject ++ " () Bool"-                                                                   , "   (exists (" ++ args ++ ")"-                                                                   , "           (distinct (" ++ nm  ++ pad ++ uparams ++ ")"-                                                                   , "                     (" ++ nm' ++ " " ++ uparams ++ "))))"+                                                             dif = [ "(define-fun " <>  reject <> " () Bool"+                                                                   , "   (exists (" <> args <> ")"+                                                                   , "           (distinct (" <> T.pack nm  <> pad <> uparams <> ")"+                                                                   , "                     (" <> nm' <> " " <> uparams <> "))))"                                                                    ]                                             eqs = interpretedEqs ++ uninterpretedEqs@@ -1718,36 +1734,37 @@                                           else do let uiFunRejector   = "uiFunRejector_model_" ++ show cnt                                                       header          = "define-fun " ++ uiFunRejector ++ " () Bool " -                                                      defineRejector []     = return ()-                                                      defineRejector [x]    = send True $ "(" ++ header ++ x ++ ")"-                                                      defineRejector (x:xs) = mapM_ (send True) $ mergeSExpr $  ("(" ++ header)-                                                                                                             :  ("        (or " ++ x)-                                                                                                             :  ["            " ++ e | e <- xs]-                                                                                                             ++ ["        ))"]+                                                      defineRejector []     = pure ()+                                                      defineRejector [x]    = send True $ "(" <> T.pack header <> x <> ")"+                                                      defineRejector (x:xs) = mapM_ (send True) $ mergeSExpr+                                                                                                                  $  T.pack ("(" ++ header)+                                                                                                                  :  ("        (or " <> x)+                                                                                                                  :  ["            " <> e | e <- xs]+                                                                                                                  ++ ["        ))"]                                                   rejectFuncs <- case uninterpretedReject of-                                                                   Nothing -> return Nothing+                                                                   Nothing -> pure Nothing                                                                    Just fs -> do mapM_ (send True) $ mergeSExpr uninterpretedFuns                                                                                  defineRejector fs-                                                                                 return $ Just uiFunRejector+                                                                                 pure $ Just uiFunRejector                                                    -- send the disallow clause and the uninterpreted rejector:                                                   case (disallow, rejectFuncs) of                                                      (Nothing, Nothing) -> pure resultsSoFar                                                      (Just d,  Nothing) -> do constrain d                                                                               go (cnt+1) resultsSoFar-                                                     (Nothing, Just f)  -> do send True $ "(assert " ++ f ++ ")"+                                                     (Nothing, Just f)  -> do send True $ "(assert " <> T.pack f <> ")"                                                                               go (cnt+1) resultsSoFar                                                      (Just d,  Just f)  -> -- This is where it gets ugly. We have an SBV and a string and we need to "or" them.                                                                            -- But we need a way to force 'd' to be produced. So, go ahead and force it:                                                                            do constrain $ d .=> d  -- NB: Redundant, but it makes sure the corresponding constraint gets shown                                                                               svd <- io $ svToSV topState (unSBV d)-                                                                              send True $ "(assert (or " ++ f ++ " " ++ show svd ++ "))"+                                                                              send True $ "(assert (or " <> T.pack f <> " " <> showText svd <> "))"                                                                               go (cnt+1) resultsSoFar  -- | Generalization of 'Data.SBV.Control.getUnsatAssumptions' getUnsatAssumptions :: (MonadIO m, MonadQuery m) => [String] -> [(String, a)] -> m [a] getUnsatAssumptions originals proxyMap = do-        let cmd = "(get-unsat-assumptions)"+        let cmd = "(get-unsat-assumptions)" :: T.Text              bad = unexpected "getUnsatAssumptions" cmd "a list of unsatisfiable assumptions"                            $ Just [ "Make sure you use:"@@ -1767,13 +1784,13 @@         -- in the original list of assumptions for `check-sat-assuming`. So, we walk over         -- and ignore those that weren't in the original list, and put a warning for those         -- we couldn't find.-        let walk []     sofar = return $ reverse sofar+        let walk []     sofar = pure $ reverse sofar             walk (a:as) sofar = case a `lookup` proxyMap of                                   Just v  -> walk as (v:sofar)                                   Nothing -> do queryDebug [ "*** In call to 'getUnsatAssumptions'"                                                            , "***"-                                                           , "***    Unexpected assumption named: " ++ show a-                                                           , "***    Was expecting one of       : " ++ show originals+                                                           , "***    Unexpected assumption named: " <> showText a+                                                           , "***    Was expecting one of       : " <> showText originals                                                            , "***"                                                            , "*** This can happen if unsat-cores are also enabled. Ignoring."                                                            ]@@ -1801,7 +1818,7 @@ timeout n q = do modifyQueryState (\qs -> qs {queryTimeOutValue = Just n})                  r <- q                  modifyQueryState (\qs -> qs {queryTimeOutValue = Nothing})-                 return r+                 pure r  -- | Bail out if a parse goes bad parse :: String -> (String -> Maybe [String] -> a) -> (SExpr -> a) -> a@@ -1810,7 +1827,7 @@                         Right res -> sCont res  -- | Generalization of 'Data.SBV.Control.unexpected'-unexpected :: (MonadIO m, MonadQuery m) => String -> String -> String -> Maybe [String] -> String -> Maybe [String] -> m a+unexpected :: (MonadIO m, MonadQuery m) => String -> T.Text -> String -> Maybe [String] -> String -> Maybe [String] -> m a unexpected ctx sent expected mbHint received mbReason = do         -- empty the response channel first         extras <- retrieveResponse "terminating upon unexpected response" (Just 5000000)@@ -1818,7 +1835,7 @@         cfg <- getConfig          let exc = SBVException { sbvExceptionDescription = "Unexpected response from the solver, context: " ++ ctx-                               , sbvExceptionSent        = Just sent+                               , sbvExceptionSent        = Just (T.unpack sent)                                , sbvExceptionExpected    = Just expected                                , sbvExceptionReceived    = Just received                                , sbvExceptionStdOut      = Just $ unlines extras@@ -1855,14 +1872,14 @@  -- | Generalization of 'Data.SBV.Control.executeQuery' executeQuery :: forall m a. ExtractIO m => QueryContext -> QueryT m a -> SymbolicT m a-executeQuery queryContext (QueryT userQuery) = do+executeQuery queryContext originalQuery = do      st <- symbolicEnv      rm <- liftIO $ readIORef (runMode st)       -- Make sure the phases match:      () <- liftIO $ case (queryContext, rm) of-                      (QueryInternal, _)                                -> return ()  -- no worries, internal-                      (QueryExternal, SMTMode QueryExternal ISetup _ _) -> return () -- legitimate runSMT call+                      (QueryInternal, _)                                -> pure ()  -- no worries, internal+                      (QueryExternal, SMTMode QueryExternal ISetup _ _) -> pure () -- legitimate runSMT call                       _                                                 -> invalidQuery rm       case rm of@@ -1886,6 +1903,20 @@                   res     <- liftIO $ extractSymbolicSimulationState st                   setOpts <- liftIO $ reverse <$> readIORef (rSMTOptions st) +                  -- Run any registered measure checks (termination/productivity verification)+                  liftIO $ do skip <- readIORef (rSkipMeasureChecks st)+                              unless skip $ do+                                checks <- readIORef (rMeasureChecks st)+                                unless (null checks) $ do+                                  let nms = map (\(n, _, _) -> n) checks+                                  debug cfg ["[MEASURE] Verifying termination measures for: " <> T.pack (intercalate ", " nms)]+                                  mapM_ (\(nm, isProductive, check) -> do+                                            debug cfg ["[MEASURE] Checking: " <> T.pack nm]+                                            check cfg+                                            let tag = if isProductive then "productive" else "terminating"+                                            debug cfg ["[MEASURE] Passed (" <> tag <> "): " <> T.pack nm]+                                        ) checks+                   let SMTProblem{smtLibPgm} = runProofOn rm queryContext [] res                       cfg' = cfg { solverSetOptions = solverSetOptions cfg ++ setOpts }                       pgm  = smtLibPgm cfg'@@ -1895,14 +1926,24 @@                   let terminateSolver maybeForwardedException = do                          qs <- readIORef $ rQueryState st                          case qs of-                           Nothing                         -> return ()+                           Nothing                         -> pure ()                            Just QueryState{queryTerminate} -> queryTerminate maybeForwardedException +                  -- If this is an external query and there are objectives, let's add those to the list before we run+                  -- Here we only allow Lexicographic; we might want to make that configurable later.+                  let userQuery = case queryContext of+                                    QueryInternal -> originalQuery+                                    QueryExternal -> do mbDirs <- startOptimizer cfg Lexicographic+                                                        case mbDirs of+                                                          Nothing        -> pure ()+                                                          Just (_, cmds) -> mapM_ (send True . T.pack) cmds+                                                        originalQuery+                   lift $ join $ liftIO $ C.mask $ \restore -> do-                    r <- restore (extractIO $ join $ liftIO $ backend cfg' st (show pgm) $ extractIO . runReaderT userQuery)+                    r <- restore (extractIO $ join $ liftIO $ backend cfg' st (smtLibPgmText pgm) $ extractIO . runReaderT (runQueryT userQuery))                           `C.catch` \e -> terminateSolver (Just e) >> C.throwIO (e :: C.SomeException)                     terminateSolver Nothing-                    return r+                    pure r          -- Already in a query, in theory we can just continue, but that causes use-case issues         -- so we reject it. TODO: Review if we should actually support this. The issue arises with@@ -1963,5 +2004,182 @@                                           , "*** and each call to runSMT should have only one query call inside."                                           ] +-- | Preparing for optimization. If we have objectives, returns the directives for the solver. If not, it returns nothing.+startOptimizer :: (MonadIO m, MonadQuery m) => SMTConfig -> OptimizeStyle -> m (Maybe ([Objective (SV, SV)], [String]))+startOptimizer config style = do+  objectives <- getObjectives++  if null objectives+     then pure Nothing+     else do unless (supportsOptimization (capabilities (solver config))) $+                    error $ unlines [ ""+                                    , "*** Data.SBV: The backend solver " ++ show (name (solver config)) ++ "does not support optimization goals."+                                    , "*** Please use a solver that has support, such as z3"+                                    ]++             when (validateModel config && not (optimizeValidateConstraints config)) $+                    error $ unlines [ ""+                                    , "*** Data.SBV: Model validation is not supported in optimization calls."+                                    , "***"+                                    , "*** Instead, use `cfg{optimizeValidateConstraints = True}`"+                                    , "***"+                                    , "*** which checks that the results satisfy the constraints but does"+                                    , "*** NOT ensure that they are optimal."+                                    ]+++             let optimizerDirectives = concatMap minmax objectives ++ priority style+                   where mkEq (x, y) = "(assert (= " ++ show x ++ " " ++ show y ++ "))"++                         minmax (Minimize          _  xy@(_, v))     = [mkEq xy, "(minimize "    ++ show v                 ++ ")"]+                         minmax (Maximize          _  xy@(_, v))     = [mkEq xy, "(maximize "    ++ show v                 ++ ")"]+                         minmax (AssertWithPenalty nm xy@(_, v) mbp) = [mkEq xy, "(assert-soft " ++ show v ++ penalize mbp ++ ")"]+                           where penalize DefaultPenalty    = ""+                                 penalize (Penalty w mbGrp)+                                    | w <= 0 = error $ unlines [ "SBV.AssertWithPenalty: Goal " ++ show nm ++ " is assigned a non-positive penalty: " ++ shw+                                                               , "All soft goals must have > 0 penalties associated."+                                                               ]+                                    | True   = " :weight " ++ shw ++ maybe "" group mbGrp+                                    where shw = show (fromRational w :: Double)++                                 group g = " :id " ++ g++                         priority Lexicographic = [] -- default, no option needed+                         priority Independent   = ["(set-option :opt.priority box)"]+                         priority (Pareto _)    = ["(set-option :opt.priority pareto)"]++             pure $ Just (objectives, optimizerDirectives)++-- | Just after a check-sat is issued, collect objective values. Used+-- internally only, not exposed to the user.+getObjectiveValues :: forall m. (MonadIO m, MonadQuery m) => m [(String, GeneralizedCV)]+getObjectiveValues = do let cmd = "(get-objectives)" :: T.Text++                            bad = unexpected "getObjectiveValues" cmd "a list of objective values" Nothing++                        r <- ask cmd++                        si <- queryState >>= getSInfo++                        inputs <- F.toList <$> getTopLevelInputs++                        parse r bad $ \case EApp (ECon "objectives" : es) -> catMaybes <$> mapM (getObjValue si (bad r) inputs) es+                                            _                             -> bad r Nothing++  where -- | Parse an objective value out.+        getObjValue :: SInfo -> (forall a. Maybe [String] -> m a) -> [NamedSymVar] -> SExpr -> m (Maybe (String, GeneralizedCV))+        getObjValue si bailOut inputs expr =+                case expr of+                  EApp [_]          -> pure Nothing            -- Happens when a soft-assertion has no associated group.+                  EApp [ECon nm, v] -> locate nm v               -- Regular case+                  _                 -> dontUnderstand (show expr)++          where locate nm v = case listToMaybe [p | p@(NamedSymVar sv _) <- inputs, show sv == nm] of+                                Nothing                          -> pure Nothing -- Happens when the soft assertion has a group-id that's not one of the input names+                                Just (NamedSymVar sv actualName) -> grab sv v >>= \val -> pure $ Just (T.unpack actualName, val)++                dontUnderstand s = bailOut $ Just [ "Unable to understand solver output."+                                                  , "While trying to process: " ++ s+                                                  ]++                grab :: SV -> SExpr -> m GeneralizedCV+                grab s topExpr+                  | Just v <- recoverKindedValue si k topExpr = pure $ RegularCV v+                  | True                                      = ExtendedCV <$> cvt (simplify topExpr)+                  where k = kindOf s++                        -- Convert to an extended expression. Hopefully complete!+                        cvt :: SExpr -> m ExtCV+                        cvt (ECon "oo")                    = pure $ Infinite  k+                        cvt (ECon "epsilon")               = pure $ Epsilon   k+                        cvt (EApp [ECon "interval", x, y]) =          Interval  <$> cvt x <*> cvt y+                        cvt (ENum    (i, _, _))            = pure $ BoundedCV $ mkConstCV k i+                        cvt (EReal   r)                    = pure $ BoundedCV $ CV k $ CAlgReal r+                        cvt (EFloat  f)                    = pure $ BoundedCV $ CV k $ CFloat   f+                        cvt (EDouble d)                    = pure $ BoundedCV $ CV k $ CDouble  d+                        cvt (EApp [ECon "+", x, y])        =          AddExtCV <$> cvt x <*> cvt y+                        cvt (EApp [ECon "*", x, y])        =          MulExtCV <$> cvt x <*> cvt y+                        -- Nothing else should show up, hopefully!+                        cvt e = dontUnderstand (show e)++                        -- drop the pesky to_real's that Z3 produces.. Cool but useless.+                        simplify :: SExpr -> SExpr+                        simplify (EApp [ECon "to_real", n]) = n+                        simplify (EApp xs)                  = EApp (map simplify xs)+                        simplify e                          = e++-- | Generalization of 'Data.SBV.Control.getModel'+getModel :: (MonadIO m, MonadQuery m) => m SMTModel+getModel = getModelAtIndex Nothing++-- | Get a model stored at an index. This is likely very Z3 specific!+getModelAtIndex :: (MonadIO m, MonadQuery m) => Maybe Int -> m SMTModel+getModelAtIndex mbi = do+    State{runMode} <- queryState+    rm <- io $ readIORef runMode+    case rm of+      m@CodeGen     -> error $ "SBV.getModel: Model is not available in mode: " ++ show m+      m@LambdaGen{} -> error $ "SBV.getModel: Model is not available in mode: " ++ show m+      m@Concrete{}  -> error $ "SBV.getModel: Model is not available in mode: " ++ show m+      SMTMode{}     -> do+          cfg <- getConfig+          uis <- getUIs++          allModelInputs <- getTopLevelInputs+          obsvs          <- getObservables++          inputAssocs <- let grab (NamedSymVar sv nm) = let wrap !c = (sv, (nm, c)) in wrap <$> getValueCV mbi sv+                         in mapM grab allModelInputs++          let name     = fst . snd+              removeSV = snd+              prepare  = S.unstableSort . S.filter (not . mustIgnoreVar cfg . name)+              assocs   = (removeSV <$> prepare inputAssocs) <> S.fromList (sortOn fst obsvs)++          -- collect UIs, and UI functions if requested+          let uiFuns = [ui | ui@(nm, (_, _, SBVType as)) <- uis, length as >  1, allSatTrackUFs cfg, not (mustIgnoreVar cfg (T.pack nm))] -- functions have at least two things in their type!+              uiRegs = [ui | ui@(nm, (_, _, SBVType as)) <- uis, length as == 1,                     not (mustIgnoreVar cfg (T.pack nm))]++          -- If there are uninterpreted functions, arrange so that z3's pretty-printer flattens things out+          -- as cex's tend to get larger+          unless (null uiFuns) $+             let solverCaps = capabilities (solver cfg)+             in F.for_ (supportsFlattenedModels solverCaps) (mapM_ (send True . T.pack))++          bindings <- let get i@(getSV -> sv) = case lookupInput fst sv inputAssocs of+                                                  Just (_, (_, cv)) -> pure (i, cv)+                                                  Nothing           -> do cv <- getValueCV mbi sv+                                                                          pure (i, cv)++                      in if validationRequested cfg+                         then Just <$> mapM get allModelInputs+                         else pure Nothing++          uiFunVals <- mapM (\ui@(nm, (c, _, t)) -> (\a -> (nm, (c, t, a))) <$> getUIFunCVAssoc mbi ui) uiFuns++          uiVals    <- mapM (\ui@(nm, (_, _, _)) -> (nm,) <$> getUICVal mbi ui) uiRegs++          pure $ unBarModel $ SMTModel { modelObjectives = []+                                       , modelBindings   = F.toList <$> bindings+                                       , modelAssocs     = uiVals ++ F.toList (first T.unpack <$> assocs)+                                       , modelUIFuns     = uiFunVals+                                       }++-- | Remove the bars from model names; these are (mostly!) automatically inserted+unBarModel :: SMTModel -> SMTModel+unBarModel SMTModel {modelObjectives, modelBindings, modelAssocs, modelUIFuns}+   = SMTModel { modelObjectives = ubf       <$> modelObjectives+              , modelBindings   = (ubn <$>) <$> modelBindings+              , modelAssocs     = ubf       <$> modelAssocs+              , modelUIFuns     = ubf       <$> modelUIFuns+              }+   where ubf (n, a) = (unBar n, a)+         ubn (NamedSymVar sv nm, a) = (NamedSymVar sv (unBarT nm), a)++         unBarT t = case T.uncons t of+                      Just ('|', rest) | not (T.null rest) && T.last rest == '|' -> T.init rest+                      _                                                          -> t+ {- HLint ignore module          "Reduce duplication" -} {- HLint ignore getAllSatResult "Use forM_"          -}+{- HLint ignore getModelAtIndex "Use forM_"          -}
Data/SBV/Core/AlgReals.hs view
@@ -9,12 +9,13 @@ -- Algebraic reals in Haskell. ----------------------------------------------------------------------------- +{-# LANGUAGE BangPatterns       #-} {-# LANGUAGE DeriveAnyClass     #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric      #-} {-# LANGUAGE FlexibleInstances  #-} -{-# OPTIONS_GHC -Wall -Werror -fno-warn-orphans #-}+{-# OPTIONS_GHC -Wall -Werror -Wno-orphans #-}  module Data.SBV.Core.AlgReals (              AlgReal(..)@@ -101,7 +102,7 @@        merge []                     = []        merge [x]                    = [x]        merge ((a, b):r@((c, d):xs))-         | b == d                   = merge ((a+c, b):xs)+         | b == d                   = let !s = a+c in merge ((s, b):xs)          | True                     = (a, b) : merge r  instance Show AlgRealPoly where@@ -129,8 +130,8 @@ instance Show AlgReal where   show (AlgRational exact a)         = showRat exact a   show (AlgPolyRoot (i, p) mbApprox) = "root(" ++ show i ++ ", " ++ show p ++ ")" ++ maybe "" app mbApprox-     where app v | last v == '?' = " = " ++ init v ++ "..."-                 | True          = " = " ++ v+     where app v | not (null v) && last v == '?' = " = " ++ init v ++ "..."+                 | True                          = " = " ++ v   show (AlgInterval a b)         = case (a, b) of                                      (OpenPoint   l, OpenPoint   h) -> "(" ++ show l ++ ", " ++ show h ++ ")"                                      (OpenPoint   l, ClosedPoint h) -> "(" ++ show l ++ ", " ++ show h ++ "]"@@ -196,7 +197,7 @@   toRational (AlgRational True v) = v   toRational x                    = error $ "AlgReal.toRational: Argument cannot be represented as a rational value: " ++ algRealToHaskell x --- | Random instance for rational needs to be careful to split the generator twice for numerator and denumerator+-- | Random instance for rational needs to be careful to split the generator twice for numerator and denominator instance Random Rational where   random g = (a % b', g'')      where (a, g')  = random g@@ -348,4 +349,4 @@  -- Quickcheck instance instance Arbitrary AlgReal where-  arbitrary = AlgRational True `fmap` arbitrary+  arbitrary = AlgRational True <$> arbitrary
Data/SBV/Core/Concrete.hs view
@@ -10,11 +10,10 @@ -----------------------------------------------------------------------------  {-# LANGUAGE DeriveAnyClass      #-}-{-# LANGUAGE DeriveGeneric       #-} {-# LANGUAGE DeriveDataTypeable  #-}+{-# LANGUAGE DeriveGeneric       #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TypeApplications    #-}-{-# LANGUAGE Rank2Types          #-}  {-# OPTIONS_GHC -Wall -Werror #-} @@ -29,6 +28,7 @@  import Data.Char (chr, isSpace) import Data.List (intercalate)+import qualified Data.Text as T  import Data.SBV.Core.Kind import Data.SBV.Core.AlgReals@@ -91,7 +91,7 @@ -- That is, we store the history of the writes. The earlier a pair is in the list, the "later" it -- is done, i.e., it takes precedence over the latter entries. data ArrayModel a b = ArrayModel [(a, b)] b-                     deriving (G.Data, Generic, NFData)+                     deriving (G.Data, Generic, NFData, Show)  -- | The kind of an ArrayModel instance (HasKind a, HasKind b) => HasKind (ArrayModel a b) where@@ -100,21 +100,19 @@ -- | A constant value. -- Note: If you add a new constructor here, make sure you add the -- corresponding equality in the instance "Eq CVal" and "Ord CVal"!-data CVal = CAlgReal  !AlgReal                -- ^ Algebraic real-          | CInteger  !Integer                -- ^ Bit-vector/unbounded integer-          | CFloat    !Float                  -- ^ Float-          | CDouble   !Double                 -- ^ Double-          | CFP       !FP                     -- ^ Arbitrary float-          | CRational Rational                -- ^ Rational-          | CChar     !Char                   -- ^ Character-          | CString   !String                 -- ^ String-          | CList     ![CVal]                 -- ^ List-          | CSet      !(RCSet CVal)           -- ^ Set. Can be regular or complemented.-          | CUserSort !(Maybe Int, String)    -- ^ Value of an uninterpreted/user kind. The Maybe Int shows index position for enumerations-          | CTuple    ![CVal]                 -- ^ Tuple-          | CMaybe    !(Maybe CVal)           -- ^ Maybe-          | CEither   !(Either CVal CVal)     -- ^ Disjoint union-          | CArray    !(ArrayModel CVal CVal) -- ^ Arrays are backed by look-up tables concretely+data CVal = CAlgReal  !AlgReal                  -- ^ Algebraic real+          | CInteger  !Integer                  -- ^ Bit-vector/unbounded integer+          | CFloat    !Float                    -- ^ Float+          | CDouble   !Double                   -- ^ Double+          | CFP       !FP                       -- ^ Arbitrary float+          | CRational !Rational                 -- ^ Rational+          | CChar     !Char                     -- ^ Character+          | CString   !String                   -- ^ String+          | CList     ![CVal]                   -- ^ List+          | CSet      !(RCSet CVal)             -- ^ Set. Can be regular or complemented.+          | CADT      !(String, [(Kind, CVal)]) -- ^ ADT: Constructor, and fields+          | CTuple    ![CVal]                   -- ^ Tuple+          | CArray    !(ArrayModel CVal CVal)   -- ^ Arrays are backed by look-up tables concretely           deriving (G.Data, Generic, NFData)  -- | Assign a rank to constant values, this is structural and helps with ordering@@ -129,11 +127,9 @@ cvRank CString   {} =  7 cvRank CList     {} =  8 cvRank CSet      {} =  9-cvRank CUserSort {} = 10+cvRank CADT      {} = 10 cvRank CTuple    {} = 11-cvRank CMaybe    {} = 12-cvRank CEither   {} = 13-cvRank CArray    {} = 14+cvRank CArray    {} = 12  -- | Eq instance for CVal. Note that we cannot simply derive Eq/Ord, since CVAlgReal doesn't have proper -- instances for these when values are infinitely precise reals. However, we do@@ -149,10 +145,8 @@   CString   a == CString   b = a == b   CList     a == CList     b = a == b   CSet      a == CSet      b = a `eqRCSet` b-  CUserSort a == CUserSort b = a == b   CTuple    a == CTuple    b = a == b-  CMaybe    a == CMaybe    b = a == b-  CEither   a == CEither   b = a == b+  CADT      a == CADT      b = a == b    -- This is legit since we don't use this equality for actual semantic" equality, but rather as an index into maps   CArray    (ArrayModel a1 d1) == CArray (ArrayModel a2 d2) = (a1, d1) == (a2, d2)@@ -179,10 +173,8 @@   CString   a `compare` CString   b = a `compare`                  b   CList     a `compare` CList     b = a `compare`                  b   CSet      a `compare` CSet      b = a `compareRCSet`             b-  CUserSort a `compare` CUserSort b = a `compare`                  b   CTuple    a `compare` CTuple    b = a `compare`                  b-  CMaybe    a `compare` CMaybe    b = a `compare`                  b-  CEither   a `compare` CEither   b = a `compare`                  b+  CADT      a `compare` CADT      b = a `compare`                  b    -- This is legit since we don't use this equality for actual semantic order, but rather as an index into maps   CArray    (ArrayModel a1 d1) `compare` CArray (ArrayModel a2 d2) = (a1, d1) `compare` (a2, d2)@@ -201,8 +193,8 @@  -- | A t'CV' represents a concrete word of a fixed size: -- For signed words, the most significant digit is considered to be the sign.-data CV = CV { _cvKind  :: !Kind-             , cvVal    :: !CVal+data CV = CV { cvKind  :: !Kind+             , cvVal   :: !CVal              }              deriving (Eq, Ord, G.Data, NFData, Generic) @@ -251,8 +243,8 @@            where par v | parens = '(' : v ++ ")"                        | True   = v                  withKind isInterval v | not shk    = v-                                       | isInterval = v ++ " :: [" ++ showBaseKind (kindOf extCV) ++ "]"-                                       | True       = v ++ " :: "  ++ showBaseKind (kindOf extCV)+                                       | isInterval = v ++ " :: [" ++ T.unpack (showBaseKind (kindOf extCV)) ++ "]"+                                       | True       = v ++ " :: "  ++ T.unpack (showBaseKind (kindOf extCV))                   add :: String -> String -> String                  add n ('-':v) = n ++ " - " ++ v@@ -332,12 +324,10 @@                                                     CRational a -> CRational (ra a)                                                     CChar{}     -> error "Data.SBV.mapCV: Unexpected call through mapCV with chars!"                                                     CString{}   -> error "Data.SBV.mapCV: Unexpected call through mapCV with strings!"-                                                    CUserSort{} -> error "Data.SBV.mapCV: Unexpected call through mapCV with uninterpreted sorts!"+                                                    CADT{}      -> error "Data.SBV.mapCV: Unexpected call through mapCV with ADTs!"                                                     CList{}     -> error "Data.SBV.mapCV: Unexpected call through mapCV with lists!"                                                     CSet{}      -> error "Data.SBV.mapCV: Unexpected call through mapCV with sets!"                                                     CTuple{}    -> error "Data.SBV.mapCV: Unexpected call through mapCV with tuples!"-                                                    CMaybe{}    -> error "Data.SBV.mapCV: Unexpected call through mapCV with maybe!"-                                                    CEither{}   -> error "Data.SBV.mapCV: Unexpected call through mapCV with either!"                                                     CArray{}    -> error "Data.SBV.mapCV: Unexpected call through mapCV with arrays!"  -- | Map a binary function through a t'CV'.@@ -357,11 +347,8 @@                             (True, CRational a, CRational b) -> normCV $ CV (kindOf x) (CRational (ra a b))                             (True, CChar{},     CChar{})     -> unexpected "chars!"                             (True, CString{},   CString{})   -> unexpected "strings!"-                            (True, CUserSort{}, CUserSort{}) -> unexpected "uninterpreted constants!"                             (True, CList{},     CList{})     -> unexpected "lists!"                             (True, CTuple{},    CTuple{})    -> unexpected "tuples!"-                            (True, CMaybe{},    CMaybe{})    -> unexpected "maybes!"-                            (True, CEither{},   CEither{})   -> unexpected "eithers!"                             _                                -> unexpected $ "incompatible args: " ++ show (x, y)    where unexpected w = error $ unlines [ ""                                         , "*** Data.SBV.mapCV2: Unexpected call through mapCV2 with " ++ w@@ -381,26 +368,24 @@ showCV :: Bool -> CV -> String showCV shk w | isBoolean w = show (cvToBool w) ++ (if shk then " :: Bool" else "") showCV shk w = sh (cvVal w) ++ kInfo-  where kInfo | shk  = " :: " ++ showBaseKind wk+  where kInfo | shk  = " :: " ++ T.unpack (showBaseKind wk)               | True = ""          wk = kindOf w -        sh (CAlgReal  v) = show v-        sh (CInteger  v) = show v-        sh (CFloat    v) = show v-        sh (CDouble   v) = show v-        sh (CFP       v) = show v-        sh (CRational v) = show v-        sh (CChar     v) = show v-        sh (CString   v) = show v-        sh (CUserSort v) = snd  v-        sh (CList     v) = shL  v-        sh (CSet      v) = shS  v-        sh (CTuple    v) = shT  v-        sh (CMaybe    v) = shM  v-        sh (CEither   v) = shE  v-        sh (CArray    v) = shA  v+        sh (CAlgReal  v) = show  v+        sh (CInteger  v) = show  v+        sh (CFloat    v) = show  v+        sh (CDouble   v) = show  v+        sh (CFP       v) = show  v+        sh (CRational v) = show  v+        sh (CChar     v) = show  v+        sh (CString   v) = show  v+        sh (CADT      c) = shADT c+        sh (CList     v) = shL   v+        sh (CSet      v) = shS   v+        sh (CTuple    v) = shT   v+        sh (CArray    v) = shA   v          shL xs = "[" ++ intercalate "," (map (showCV False . CV ke) xs) ++ "]"           where ke = case wk of@@ -424,34 +409,24 @@                         KTuple ks | length ks == length xs -> zipWith (\k x -> showCV False (CV k x)) ks xs                         _   -> error $ "Data.SBV.showCV: Impossible happened, expected tuple (of length " ++ show (length xs) ++ "), got: " ++ show wk -        shM :: Maybe CVal -> String-        shM c = case (c, wk) of-                  (Nothing, KMaybe{}) -> "Nothing"-                  (Just x,  KMaybe k) -> "Just " ++ paren (showCV False (CV k x))-                  _                   -> error $ "Data.SBV.showCV: Impossible happened, expected maybe, got: " ++ show wk--        shE :: Either CVal CVal -> String-        shE val-          | KEither k1 k2 <- wk = case val of-                                    Left  x -> "Left "  ++ paren (showCV False (CV k1 x))-                                    Right y -> "Right " ++ paren (showCV False (CV k2 y))-          | True                = error $ "Data.SBV.showCV: Impossible happened, expected sum, got: " ++ show wk-         shA :: ArrayModel CVal CVal -> String         shA (ArrayModel assocs def)           | KArray k1 k2 <- wk = "([" ++ intercalate "," [showCV False (CV (KTuple [k1, k2]) (CTuple [a, b])) | (a, b) <- assocs] ++ "], " ++ showCV False (CV k2 def) ++ ")"           | True               = error $ "Data.SBV.showCV: Impossible happened, expected array, got: " ++ show wk -        -- kind of crude, but works ok-        paren v-          | needsParen = '(' : v ++ ")"-          | True       = v-          where needsParen = case dropWhile isSpace v of-                               []         -> False-                               rest@(x:_) -> x == '-' || (any isSpace rest && x `notElem` "{[(")+        shADT (c, kvs)+          | null @[] flds = c+          | True          = unwords (c : map wrap flds)+          where wrap v+                 | take 1 v `elem` ["(", "[", "{"]  = v+                 | any isSpace v || take 1 v == "-" = '(' : v ++ ")"+                 | True                             = v +                flds = map (\(k, v) -> showCV False (CV k v)) kvs+ -- | Create a constant word from an integral. mkConstCV :: Integral a => Kind -> a -> CV+mkConstCV k@KVar{}        _ = error $ "mkConstCV: Unexpected kind: " ++ show k mkConstCV KBool           a = normCV $ CV KBool      (CInteger  (toInteger a)) mkConstCV k@KBounded{}    a = normCV $ CV k          (CInteger  (toInteger a)) mkConstCV KUnbounded      a = normCV $ CV KUnbounded (CInteger  (toInteger a))@@ -462,18 +437,52 @@ mkConstCV KRational       a = normCV $ CV KRational  (CRational (fromInteger (toInteger a))) mkConstCV KChar           a = error $ "Unexpected call to mkConstCV (Char) with value: "   ++ show (toInteger a) mkConstCV KString         a = error $ "Unexpected call to mkConstCV (String) with value: " ++ show (toInteger a)-mkConstCV (KUserSort s _) a = error $ "Unexpected call to mkConstCV with user kind: " ++ s ++ " with value: " ++ show (toInteger a)+mkConstCV (KApp s _)      a = error $ "Unexpected call to mkConstCV with kind: " ++ s ++ " with value: " ++ show (toInteger a)+mkConstCV (KADT s _ _)    a = error $ "Unexpected call to mkConstCV with ADT: "  ++ s ++ " with value: " ++ show (toInteger a) mkConstCV k@KList{}       a = error $ "Unexpected call to mkConstCV (" ++ show k ++ ") with value: " ++ show (toInteger a) mkConstCV k@KSet{}        a = error $ "Unexpected call to mkConstCV (" ++ show k ++ ") with value: " ++ show (toInteger a) mkConstCV k@KTuple{}      a = error $ "Unexpected call to mkConstCV (" ++ show k ++ ") with value: " ++ show (toInteger a)-mkConstCV k@KMaybe{}      a = error $ "Unexpected call to mkConstCV (" ++ show k ++ ") with value: " ++ show (toInteger a)-mkConstCV k@KEither{}     a = error $ "Unexpected call to mkConstCV (" ++ show k ++ ") with value: " ++ show (toInteger a) mkConstCV k@KArray{}      a = error $ "Unexpected call to mkConstCV (" ++ show k ++ ") with value: " ++ show (toInteger a) +-- | Create a constant value from a floating-point value.+fpConstCV ::+  -- | Must be 'KFloat', 'KDouble', or 'KFP'.+  Kind ->+  -- | The constant to use when the kind is 'KFloat'.+  Float ->+  -- | The constant to use when the kind is 'KDouble'.+  Double ->+  -- | The constant to make when the kind is 'KFP', where the 'Int's represent+  -- the exponent and significand sizes.+  (Int -> Int -> FP) ->+  CV+fpConstCV k cf cd cfp =+  case k of+    KFloat    -> CV k $ CFloat cf+    KDouble   -> CV k $ CDouble cd+    KFP eb sb -> CV k $ CFP $ cfp eb sb++    KVar{} -> unexpected+    KBool{} -> unexpected+    KBounded{} -> unexpected+    KUnbounded{} -> unexpected+    KReal{} -> unexpected+    KRational{} -> unexpected+    KChar{} -> unexpected+    KString{} -> unexpected+    KApp{} -> unexpected+    KADT{} -> unexpected+    KList{} -> unexpected+    KSet{} -> unexpected+    KTuple{} -> unexpected+    KArray{} -> unexpected+  where unexpected = error $ "Data.SBV.fpConstCV: Unexpected kind: " ++ show k+ -- | Generate a random constant value ('CVal') of the correct kind. We error out for a completely uninterpreted type. randomCVal :: Kind -> IO CVal randomCVal k =   case k of+    KVar{}             -> error $ "randomCVal: Unexpected kind: " ++ show k     KBool              -> CInteger  <$> randomRIO (0, 1)     KBounded s w       -> CInteger  <$> randomRIO (bounds s w)     KUnbounded         -> CInteger  <$> randomIO@@ -494,36 +503,30 @@                              CString <$> replicateM l (chr <$> randomRIO (0, 255))     KChar              -> CChar . chr <$> randomRIO (0, 255) -    KUserSort s es     -> case es of-                            Just vs@(_:_) -> do i <- randomRIO (0, length vs - 1)-                                                pure $ CUserSort (Just i, vs !! i)-                            _             -> error $ "randomCVal: Not supported for completely uninterpreted type: " ++ s+    -- TODO: Can we do something here?+    KApp s _           -> error $ "randomCVal: Not supported for KApp: " ++ s +    KADT _ _ cstrs@(_:_) -> do i <- randomRIO (0, length cstrs - 1)+                               let (c, fks) = cstrs !! i+                               vs <- mapM randomCVal fks+                               pure $ CADT (c, zip fks vs)+    KADT s _ _         -> error $ "randomCVal: Not supported for ADT:  " ++ s+     KList ek           -> do l <- randomRIO (0, 100)                              CList <$> replicateM l (randomCVal ek)      KSet  ek           -> do i <- randomIO                           -- regular or complement                              l <- randomRIO (0, 100)                 -- some set upto 100 elements                              vals <- Set.fromList <$> replicateM l (randomCVal ek)-                             return $ CSet $ if i then RegularSet vals else ComplementSet vals+                             pure $ CSet $ if i then RegularSet vals else ComplementSet vals      KTuple ks          -> CTuple <$> traverse randomCVal ks -    KMaybe ke          -> do i <- randomIO-                             if i-                                then return $ CMaybe Nothing-                                else CMaybe . Just <$> randomCVal ke--    KEither k1 k2      -> do i <- randomIO-                             if i-                                then CEither . Left  <$> randomCVal k1-                                else CEither . Right <$> randomCVal k2-     KArray k1 k2       -> do l   <- randomRIO (0, 100)                              ks  <- replicateM l (randomCVal k1)                              vs  <- replicateM l (randomCVal k2)                              def <- randomCVal k2-                             return $ CArray $ ArrayModel (zip ks vs) def+                             pure $ CArray $ ArrayModel (zip ks vs) def   where     bounds :: Bool -> Int -> (Integer, Integer)     bounds False w = (0, 2^w - 1)
Data/SBV/Core/Data.hs view
@@ -16,12 +16,13 @@ {-# LANGUAGE DeriveGeneric         #-} {-# LANGUAGE FlexibleContexts      #-} {-# LANGUAGE FlexibleInstances     #-}+{-# LANGUAGE GADTs                 #-} {-# LANGUAGE MultiParamTypeClasses #-}-{-# LANGUAGE PatternGuards         #-}+{-# LANGUAGE RankNTypes            #-} {-# LANGUAGE ScopedTypeVariables   #-} {-# LANGUAGE TypeApplications      #-}-{-# LANGUAGE TypeOperators         #-} {-# LANGUAGE TypeFamilies          #-}+{-# LANGUAGE TypeOperators         #-} {-# LANGUAGE UndecidableInstances  #-}  {-# OPTIONS_GHC -Wall -Werror -Wno-orphans #-}@@ -32,14 +33,12 @@  , SFloatingPoint, SFPHalf, SFPBFloat, SFPSingle, SFPDouble, SFPQuad  , SWord, SInt, WordN, IntN  , SRational- , SChar, SString, SList- , SEither, SMaybe, SArray, ArrayModel(..)+ , SChar, SString, SList, (.:), nil+ , SArray, ArrayModel(..)  , STuple, STuple2, STuple3, STuple4, STuple5, STuple6, STuple7, STuple8  , RCSet(..), SSet  , nan, infinity, sNaN, sInfinity, RoundingMode(..), SRoundingMode- , sRoundNearestTiesToEven, sRoundNearestTiesToAway, sRoundTowardPositive, sRoundTowardNegative, sRoundTowardZero- , sRNE, sRNA, sRTP, sRTN, sRTZ- , SymVal(..)+ , SymVal(..), SymValInsts(..), symValKinds, SymVals(..)  , CV(..), CVal(..), AlgReal(..), AlgRealPoly(..), ExtCV(..), GeneralizedCV(..), isRegularCV, cvSameType, cvToBool  , mkConstCV , mapCV, mapCV2  , SV(..), trueSV, falseSV, trueCV, falseCV, normCV@@ -47,10 +46,12 @@  , sTrue, sFalse, sNot, (.&&), (.||), (.<+>), (.~&), (.~|), (.=>), (.<=>), sAnd, sOr, sAny, sAll, fromBool  , SBV(..), NodeId(..), mkSymSBV  , sbvToSV, sbvToSymSV, forceSVArg+ , RList(..), RNil, (:>), rlist2list+ , SBVs(..), mapMSBVs, foldlSymSBVs  , SBVExpr(..), newExpr  , cache, Cached, uncache, HasKind(..)  , Op(..), PBOp(..), FPOp(..), StrOp(..), RegExOp(..), SeqOp(..), RegExp(..), NamedSymVar(..), OvOp(..), getTableIndex- , SBVPgm(..), Symbolic, runSymbolic, State, getPathCondition, extendPathCondition+ , SBVPgm(..), Symbolic, runSymbolic, State, SInfo(..), getSInfo, getPathCondition  , inSMTMode, SBVRunMode(..), Kind(..), Outputtable(..), Result(..)  , SolverContext(..), internalConstraint, isCodeGenMode  , SBVType(..), newUninterpreted@@ -73,16 +74,19 @@ import Control.Monad.Trans    (liftIO, MonadIO) import Data.Int               (Int8, Int16, Int32, Int64) import Data.Word              (Word8, Word16, Word32, Word64)-import Data.List              (elemIndex)  import Data.Kind (Type) import Data.Proxy import Data.Typeable          (Typeable) +import Data.IORef+import qualified Data.Set as Set (toList)+ import GHC.Generics (Generic, U1(..), M1(..), (:*:)(..), K1(..), (:+:)(..)) import qualified GHC.Generics  as G-import qualified Data.Generics as G (Data(..)) +import GHC.Exts (IsList(..))+ import System.Random  import Data.SBV.Core.AlgReals@@ -96,6 +100,7 @@ import Data.SBV.Control.Types  import Data.SBV.Utils.Lib+import Data.SBV.Utils.Numeric (RoundingMode(..))  import Test.QuickCheck (Arbitrary(..)) @@ -103,10 +108,6 @@ getPathCondition :: State -> SBool getPathCondition st = SBV (getSValPathCondition st) --- | Extend the path condition with the given test value.-extendPathCondition :: State -> (SBool -> SBool) -> State-extendPathCondition st f = extendSValPathCondition st (unSBV . f . SBV)- -- | The "Symbolic" value. The parameter @a@ is phantom, but is -- extremely important in keeping the user interface strongly typed. newtype SBV a = SBV { unSBV :: SVal }@@ -196,12 +197,43 @@ -- Note that lists can be nested, i.e., we do allow lists of lists of ... items. type SList a = SBV [a] --- | Symbolic 'Either'-type SEither a b = SBV (Either a b)+-- | Prepend an element, the traditional @cons@.+--+-- >>> 1 .: 2 .: 3 .: [4, 5, 6 :: SInteger]+-- [1,2,3,4,5,6] :: [SInteger]+infixr 5 .:+(.:) :: forall a. (SymVal a, SymVal [a]) => SBV a -> SList a -> SList a+a .: as+  | Just av  <- unliteral a+  , Just asv <- unliteral as+  = literal (av : asv)+  | Just asv <- unliteral as, null asv  -- singleton: skip the concat with empty+  = SBV $ SVal kl $ Right $ cache $ \st -> do+        sva <- sbvToSV st a+        newExpr st kl (SBVApp (SeqOp (SeqUnit ka)) [sva])+  | True+  = SBV $ SVal kl $ Right $ cache r+  where ka = kindOf (Proxy @a)+        kl = kindOf (Proxy @[a])+        r st = do sva  <- sbvToSV st a+                  svs  <- newExpr st kl (SBVApp (SeqOp (SeqUnit ka)) [sva])+                  svas <- sbvToSV st as+                  newExpr st kl (SBVApp (SeqOp (SeqConcat kl)) [svs, svas]) --- | Symbolic 'Maybe'-type SMaybe a = SBV (Maybe a)+-- | Empty list. This value has the property that it's the only list with length 0. If you use @OverloadedLists@ extension,+-- you can write it as the familiar @[]@.+nil :: SymVal [a] => SList a+nil = literal [] +-- | 'IsList' instance allows list literals to be written compactly.+instance (SymVal a, SymVal [a]) => IsList (SList a) where+  type Item (SList a) = SBV a++  fromList = foldr (.:) nil -- Don't use [] here for nil, as this is the very definition of doing overloaded lists+  toList x = case unliteral x of+               Nothing -> error "IsList.toList used in a symbolic context"+               Just xs -> map literal xs+ -- | Symbolic arrays. A symbolic array is more akin to a function in SMTLib (and thus in SBV), -- as opposed to contagious-storage with a finite range as found in many programming languages. -- Additionally, the domain uses object-equality in the SMTLib semantics. Object equality is@@ -336,52 +368,9 @@ sAll :: (a -> SBool) -> [a] -> SBool sAll f = sAnd . map f --- | 'RoundingMode' can be used symbolically-instance SymVal RoundingMode- -- | The symbolic variant of 'RoundingMode' type SRoundingMode = SBV RoundingMode --- | Symbolic variant of 'RoundNearestTiesToEven'-sRoundNearestTiesToEven :: SRoundingMode-sRoundNearestTiesToEven = literal RoundNearestTiesToEven---- | Symbolic variant of 'RoundNearestTiesToAway'-sRoundNearestTiesToAway :: SRoundingMode-sRoundNearestTiesToAway = literal RoundNearestTiesToAway---- | Symbolic variant of 'RoundTowardPositive'-sRoundTowardPositive :: SRoundingMode-sRoundTowardPositive = literal RoundTowardPositive---- | Symbolic variant of 'RoundTowardNegative'-sRoundTowardNegative :: SRoundingMode-sRoundTowardNegative = literal RoundTowardNegative---- | Symbolic variant of 'RoundTowardZero'-sRoundTowardZero :: SRoundingMode-sRoundTowardZero = literal RoundTowardZero---- | Alias for 'sRoundNearestTiesToEven'-sRNE :: SRoundingMode-sRNE = sRoundNearestTiesToEven---- | Alias for 'sRoundNearestTiesToAway'-sRNA :: SRoundingMode-sRNA = sRoundNearestTiesToAway---- | Alias for 'sRoundTowardPositive'-sRTP :: SRoundingMode-sRTP = sRoundTowardPositive---- | Alias for 'sRoundTowardNegative'-sRTN :: SRoundingMode-sRTN = sRoundTowardNegative---- | Alias for 'sRoundTowardZero'-sRTZ :: SRoundingMode-sRTZ = sRoundTowardZero- -- | A 'Show' instance is not particularly "desirable," when the value is symbolic, -- but we do need this instance as otherwise we cannot simply evaluate Haskell functions -- that return symbolic values and have their constant values printed easily!@@ -395,6 +384,51 @@ sbvToSV :: State -> SBV a -> IO SV sbvToSV st (SBV s) = svToSV st s +-- | A datakind for lists with cons on the right+data RList a = RNil | (RList a) :> a++-- | Convert an 'RList' into a reversed standard list+rlist2listRev :: RList a -> [a]+rlist2listRev RNil = []+rlist2listRev (as :> a) = a : rlist2listRev as++-- | Convert an 'RList' into a standard list+rlist2list :: RList a -> [a]+rlist2list = reverse . rlist2listRev++-- | Helper for writing types containing @RNil@+type RNil = 'RNil++-- | Helper for writing types containing @:>@+type (:>) = '(:>)++-- | A sequence of elements of types @SBV a1,...,SBV an@ given the list+-- @[a1,...,an]@ of Haskell types+data SBVs as where+  SBVsNil  :: SBVs RNil+  SBVsCons :: SBVs as -> SBV a -> SBVs (as :> a)++-- | Fold a function over each SBV value in an SBVs sequence in a manner similar+-- to 'foldr' for lists, except backwards because the lists are stored in+-- reverse order+foldlSBVs :: (forall a. r -> SBV a -> r) -> r -> SBVs as -> r+foldlSBVs _ r SBVsNil             = r+foldlSBVs f r (SBVsCons args arg) = f (foldlSBVs f r args) arg++-- | Map a monadic function over the SBV values in an SBVs sequence in a+-- manner similar to 'mapM' for lists+mapMSBVs :: Monad m => (forall a. SBV a -> m r) -> SBVs as -> m (RList r)+mapMSBVs f = foldlSBVs (\m arg -> (:>) <$> m <*> f arg) (pure RNil)++-- | Fold a function over each SBV value in an SBVs sequence in a manner similar+-- to 'foldr' for lists (but backwards because SBVs have cons on the right),+-- using 'SymVal' instances for each value+foldlSymSBVs :: (forall a. SymVal a => r -> SBV a -> r) -> r ->+                SymValInsts as -> SBVs as -> r+foldlSymSBVs _ r _                   SBVsNil             = r+foldlSymSBVs f r (SymValsCons symvs) (SBVsCons args arg) =+  f (foldlSymSBVs f r symvs args) arg+ ------------------------------------------------------------------------- -- * Symbolic Computations -------------------------------------------------------------------------@@ -436,7 +470,7 @@ -- will be prefixed in front of @_1@, @_2@, ..., @_n@ to form the names of the variables. newtype ExistsN (n :: Nat) (nm :: Symbol) a = ExistsN [SBV a] --- | Exactly @n@ universal symbolic variables, used in in building quantified constraints. The name attached+-- | Exactly @n@ universal symbolic variables, used in building quantified constraints. The name attached -- will be prefixed in front of @_1@, @_2@, ..., @_n@ to form the names of the variables. newtype ForallN (n :: Nat) (nm :: Symbol) a = ForallN [SBV a] @@ -444,7 +478,7 @@ mkQArg :: forall m a. (HasKind a, MonadIO m) => State -> Quantifier -> m (SBV a) mkQArg st q = do let k = kindOf (Proxy @a)                  sv <- liftIO $ quantVar q st k-                 pure $ SBV $ SVal k (Right (cache (const (return sv))))+                 pure $ SBV $ SVal k (Right (cache (const (pure sv))))  -- | Functions of a single existential instance (SymVal a, Constraint m r) => Constraint m (Exists nm a -> r) where@@ -485,7 +519,7 @@   mkLambda st fn = mkArg >>= mkLambda st . fn     where mkArg = do let k = kindOf (Proxy @a)                      sv <- liftIO $ lambdaVar st k-                     pure $ SBV $ SVal k (Right (cache (const (return sv))))+                     pure $ SBV $ SVal k (Right (cache (const (pure sv))))  -- | A value that can be used as a quantified boolean class QuantifiedBool a where@@ -557,6 +591,14 @@ registerType _ = do st <- contextState                     liftIO $ registerKind st (kindOf (Proxy @a)) +-- | Various info we use in recoverKinded value+newtype SInfo = SInfo { sInfoKinds :: [Kind] }++-- | Turn state into SInfo+getSInfo :: MonadIO m => State -> m SInfo+getSInfo st = do rk <- liftIO $ readIORef (rUsedKinds st)+                 pure $ SInfo { sInfoKinds = Set.toList rk }+ -- | A class representing what can be returned from a symbolic computation. class Outputtable a where   -- | Generalization of 'Data.SBV.output'@@ -565,13 +607,13 @@ instance Outputtable (SBV a) where   output i = do           outputSVal (unSBV i)-          return i+          pure i  instance Outputtable a => Outputtable [a] where   output = mapM output  instance Outputtable () where-  output = return+  output = pure  instance (Outputtable a, Outputtable b) => Outputtable (a, b) where   output = mlift2 (,) output output@@ -602,6 +644,10 @@   -- | Generalization of 'Data.SBV.mkSymVal'   mkSymVal :: MonadSymbolic m => VarContext -> Maybe String -> m (SBV a) +  -- | Certain types (ADTs) might need to do further initialization.+  mkSymValInit :: State -> SBV a -> IO ()+  mkSymValInit _ _ = pure ()+   -- | Turn a literal constant to symbolic   literal :: a -> SBV a @@ -615,32 +661,13 @@   -- If the underlying type is bounded, we have a default below. Otherwise it's nothing.   minMaxBound :: Maybe (a, a) -  -- minimal complete definition: Nothing.-  -- Giving no instances is okay when defining an uninterpreted/enumerated sort, but otherwise you really-  -- want to define: literal, fromCV, mkSymVal--  default mkSymVal :: (MonadSymbolic m, Read a, G.Data a) => VarContext -> Maybe String -> m (SBV a)-  mkSymVal vc mbNm = SBV <$> (symbolicEnv >>= liftIO . svMkSymVar vc k mbNm)-    where -- NB.A call of the form-          --      constructUKind (Proxy @a)-          -- would be wrong here, as it would uninterpret the Proxy datatype!-          -- So, we have to use the dreaded undefined value in this case.-          k = constructUKind (undefined :: a)--  default literal :: Show a => a -> SBV a-  literal x = let k  = kindOf x-                  sx = show x-                  conts = case k of-                           KUserSort _ cts -> cts-                           _               -> Nothing-                  mbIdx = case conts of-                            Just xs -> sx `elemIndex` xs-                            Nothing -> Nothing-              in SBV $ SVal k (Left (CV k (CUserSort (mbIdx, sx))))+  {-# MINIMAL literal, fromCV #-} -  default fromCV :: Read a => CV -> a-  fromCV (CV _ (CUserSort (_, s))) = read s-  fromCV cv                        = error $ "Cannot convert CV " ++ show cv ++ " to kind " ++ show (kindOf (Proxy @a))+  default mkSymVal :: MonadSymbolic m => VarContext -> Maybe String -> m (SBV a)+  mkSymVal vc mbNm = do st <- symbolicEnv+                        liftIO $ do v <- SBV <$> svMkSymVar vc (kindOf (undefined :: a)) mbNm st+                                    mkSymValInit st v+                                    pure v    default minMaxBound :: Bounded a => Maybe (a, a)   minMaxBound = Just (minBound, maxBound)@@ -674,6 +701,11 @@   unliteral (SBV (SVal _ (Left c))) = Just $ fromCV c   unliteral _                       = Nothing +  -- | Get the underlying CV, if available+  unlitCV :: SBV a -> Maybe (Kind, CVal)+  unlitCV (SBV (SVal _ (Left (CV k v)))) = Just (k, v)+  unlitCV _                              = Nothing+   -- | Is the symbolic word concrete?   isConcrete :: SBV a -> Bool   isConcrete (SBV (SVal _ (Left _))) = True@@ -683,6 +715,31 @@   isSymbolic :: SBV a -> Bool   isSymbolic = not . isConcrete +-- | A sequence of instance dictionaries for each type @ai@ in the type list+-- @[a1,...,an]@+data SymValInsts as where+  SymValsNil :: SymValInsts RNil+  SymValsCons :: SymVal a => SymValInsts as -> SymValInsts (as :> a)++-- | Get the 'Kind' of each type in the type list of a 'SymValInsts' sequence+symValKinds :: SymValInsts as -> [Kind]+symValKinds = rlist2list . helper where+  helper :: SymValInsts as -> RList Kind+  helper SymValsNil = RNil+  helper insts@(SymValsCons insts') = helper insts' :> kindOf (headPrx insts)+  headPrx :: SymValInsts (bs :> b) -> Proxy b+  headPrx _ = Proxy++-- | A 'SymVals' is a list of types that all satisfy 'SymVal'+class SymVals as where+  symValInsts :: SymValInsts as++instance SymVals RNil where+  symValInsts = SymValsNil++instance (SymVal a, SymVals as) => SymVals (as :> a) where+  symValInsts = SymValsCons symValInsts+ instance (Random a, SymVal a) => Random (SBV a) where   randomR (l, h) g = case (unliteral l, unliteral h) of                        (Just lb, Just hb) -> let (v, g') = randomR (lb, hb) g in (literal (v :: a), g')@@ -859,7 +916,7 @@    where i  = fromIntegral (natVal start)          j  = fromIntegral (natVal end) --- | Join two bitvectors.+-- | Join two bit-vectors. (#) :: ( KnownNat n, BVIsNonZero n, SymVal (bv n)        , KnownNat m, BVIsNonZero m, SymVal (bv m)        ) => SBV (bv n)                     -- ^ First input, of size @n@, becomes the left side@@ -1001,7 +1058,7 @@   type NegatesTo (ExistsN nm n a -> r) = ForallN nm n a -> NegatesTo r   qNot f (ForallN xs) = qNot (f (ExistsN xs)) --- | Negate over an unique existential quantifier+-- | Negate over a unique existential quantifier instance (QNot r, QuantifiedBool r, EqSymbolic (SBV a)) => QNot (ExistsUnique nm a -> r) where   type NegatesTo (ExistsUnique nm a -> r) =  Forall nm a                                           -> Exists (AppendSymbol nm "_eu1") a
Data/SBV/Core/Floating.hs view
@@ -11,16 +11,14 @@  {-# LANGUAGE DefaultSignatures    #-} {-# LANGUAGE FlexibleContexts     #-}-{-# LANGUAGE FlexibleInstances    #-} {-# LANGUAGE InstanceSigs         #-}-{-# LANGUAGE Rank2Types           #-} {-# LANGUAGE ScopedTypeVariables  #-} {-# LANGUAGE TypeApplications     #-} {-# LANGUAGE TypeFamilies         #-} {-# LANGUAGE TypeOperators        #-} {-# LANGUAGE UndecidableInstances #-} -{-# OPTIONS_GHC -Wall -Werror -fno-warn-orphans -Wno-incomplete-uni-patterns #-}+{-# OPTIONS_GHC -Wall -Werror -Wno-orphans #-}  module Data.SBV.Core.Floating (          IEEEFloating(..), IEEEFloatConvertible(..)@@ -42,7 +40,7 @@  import Data.SBV.Core.AlgReals (isExactRational) import Data.SBV.Core.Sized-import Data.SBV.Core.SizedFloats+import Data.SBV.Core.SizedFloats hiding (fpIsNaN, fpIsZero)  import Data.SBV.Core.Data import Data.SBV.Core.Kind@@ -384,9 +382,9 @@  -- | Add the converted rounding mode if given as an argument addRM :: State -> Maybe SRoundingMode -> [SV] -> IO [SV]-addRM _  Nothing   as = return as+addRM _  Nothing   as = pure as addRM st (Just rm) as = do svm <- sbvToSV st rm-                           return (svm : as)+                           pure (svm : as)  -- | Lift a 1 arg FP-op lift1 :: SymVal a => FPOp -> Maybe (a -> a) -> Maybe SRoundingMode -> SBV a -> SBV a@@ -529,12 +527,17 @@ -- and it works as long as you do not have a @NaN@. sFloatAsComparableSWord32 :: SFloat -> SWord32 sFloatAsComparableSWord32 f = ite (fpIsNegativeZero f) (sFloatAsComparableSWord32 0) (fromBitsBE $ sNot sb : ite sb (map sNot rest) rest)-  where (sb : rest) = blastBE $ sFloatAsSWord32 f+  where (sb, rest) = case blastBE $ sFloatAsSWord32 f of+                        b : bs -> (b, bs)+                        []     -> error "sFloatAsComparableSWord32: impossible, blastBE produced empty list"  -- | Inverse transformation to 'sFloatAsComparableSWord32'. sComparableSWord32AsSFloat :: SWord32 -> SFloat sComparableSWord32AsSFloat w = sWord32AsSFloat $ ite sb (fromBitsBE $ sFalse : rest) (fromBitsBE $ map sNot allBits)-  where allBits@(sb : rest) = blastBE w+  where allBits    = blastBE w+        (sb, rest) = case allBits of+                        b : bs -> (b, bs)+                        []     -> error "sComparableSWord32AsSFloat: impossible, blastBE produced empty list"  -- | Convert a double to a comparable 'SWord64'. The trick is to ignore the -- sign of -0, and if it's a negative value flip all the bits, and otherwise@@ -542,13 +545,18 @@ -- and it works as long as you do not have a @NaN@. sDoubleAsComparableSWord64 :: SDouble -> SWord64 sDoubleAsComparableSWord64 d = ite (fpIsNegativeZero d) (sDoubleAsComparableSWord64 0) (fromBitsBE $ sNot sb : ite sb (map sNot rest) rest)-  where (sb : rest) = blastBE $ sDoubleAsSWord64 d+  where (sb, rest) = case blastBE $ sDoubleAsSWord64 d of+                        b : bs -> (b, bs)+                        []     -> error "sDoubleAsComparableSWord64: impossible, blastBE produced empty list"  -- | Inverse transformation to 'sDoubleAsComparableSWord64'. Note that this isn't a perfect inverse, since @-0@ maps to @0@ and back to @0@. -- Otherwise, it's faithful: sComparableSWord64AsSDouble :: SWord64 -> SDouble sComparableSWord64AsSDouble w = sWord64AsSDouble $ ite sb (fromBitsBE $ sFalse : rest) (fromBitsBE $ map sNot allBits)-  where allBits@(sb : rest) = blastBE w+  where allBits    = blastBE w+        (sb, rest) = case allBits of+                        b : bs -> (b, bs)+                        []     -> error "sComparableSWord64AsSDouble: impossible, blastBE produced empty list"  -- | 'Float' instance for 'Metric' goes through the lexicographic ordering on 'Word32'. -- It implicitly makes sure that the value is not @NaN@.@@ -561,12 +569,12 @@    msMinimize nm o = do constrain $ sNot $ fpIsNaN o                         let nm' = annotateForMS (Proxy @Float) nm                         when (nm' /= nm) $ sObserve nm (unSBV o)-                        addSValOptGoal $ unSBV `fmap` Minimize nm' (toMetricSpace o)+                        addSValOptGoal $ unSBV <$> Minimize nm' (toMetricSpace o)     msMaximize nm o = do constrain $ sNot $ fpIsNaN o                         let nm' = annotateForMS (Proxy @Float) nm                         when (nm' /= nm) $ sObserve nm (unSBV o)-                        addSValOptGoal $ unSBV `fmap` Maximize nm' (toMetricSpace o)+                        addSValOptGoal $ unSBV <$> Maximize nm' (toMetricSpace o)     annotateForMS _ s = "toMetricSpace(" ++ s ++ ")" @@ -581,12 +589,12 @@    msMinimize nm o = do constrain $ sNot $ fpIsNaN o                         let nm' = annotateForMS (Proxy @Double) nm                         when (nm' /= nm) $ sObserve nm (unSBV o)-                        addSValOptGoal $ unSBV `fmap` Minimize nm' (toMetricSpace o)+                        addSValOptGoal $ unSBV <$> Minimize nm' (toMetricSpace o)     msMaximize nm o = do constrain $ sNot $ fpIsNaN o                         let nm' = annotateForMS (Proxy @Double) nm                         when (nm' /= nm) $ sObserve nm (unSBV o)-                        addSValOptGoal $ unSBV `fmap` Maximize nm' (toMetricSpace o)+                        addSValOptGoal $ unSBV <$> Maximize nm' (toMetricSpace o)     annotateForMS _ s = "toMetricSpace(" ++ s ++ ")" @@ -615,13 +623,18 @@ sFloatingPointAsComparableSWord :: forall eb sb. (ValidFloat eb sb, KnownNat (eb + sb), BVIsNonZero (eb + sb)) => SFloatingPoint eb sb -> SWord (eb + sb) sFloatingPointAsComparableSWord f = ite (fpIsNegativeZero f) posZero (fromBitsBE $ sNot sb : ite sb (map sNot rest) rest)   where posZero     = sFloatingPointAsComparableSWord (0 :: SFloatingPoint eb sb)-        (sb : rest) = blastBE (sFloatingPointAsSWord f :: SWord (eb + sb))+        (sb, rest)  = case blastBE (sFloatingPointAsSWord f :: SWord (eb + sb)) of+                         b : bs -> (b, bs)+                         []     -> error "sFloatingPointAsComparableSWord: impossible, blastBE produced empty list"  -- | Inverse transformation to 'sFloatingPointAsComparableSWord'. Note that this isn't a perfect inverse, since @-0@ maps to @0@ and back to @0@. -- Otherwise, it's faithful: sComparableSWordAsSFloatingPoint :: forall eb sb. (KnownNat (eb + sb), BVIsNonZero (eb + sb), ValidFloat eb sb) => SWord (eb + sb) -> SFloatingPoint eb sb sComparableSWordAsSFloatingPoint w = sWordAsSFloatingPoint $ ite signBit (fromBitsBE $ sFalse : rest) (fromBitsBE $ map sNot allBits)-  where allBits@(signBit : rest) = blastBE w+  where allBits        = blastBE w+        (signBit, rest) = case allBits of+                             b : bs -> (b, bs)+                             []     -> error "sComparableSWordAsSFloatingPoint: impossible, blastBE produced empty list"  -- | Convert a word to an arbitrary float, by reinterpreting the bits of the word as the corresponding bits of the float. sWordAsSFloatingPoint :: forall eb sb. (KnownNat (eb + sb), BVIsNonZero (eb + sb), ValidFloat eb sb) => SWord (eb + sb) -> SFloatingPoint eb sb@@ -655,23 +668,18 @@    msMinimize nm o = do constrain $ sNot $ fpIsNaN o                         let nm' = annotateForMS (Proxy @(FloatingPoint eb sb)) nm                         when (nm' /= nm) $ sObserve nm (unSBV o)-                        addSValOptGoal $ unSBV `fmap` Minimize nm' (toMetricSpace o)+                        addSValOptGoal $ unSBV <$> Minimize nm' (toMetricSpace o)     msMaximize nm o = do constrain $ sNot $ fpIsNaN o                         let nm' = annotateForMS (Proxy @(FloatingPoint eb sb)) nm                         when (nm' /= nm) $ sObserve nm (unSBV o)-                        addSValOptGoal $ unSBV `fmap` Maximize nm' (toMetricSpace o)+                        addSValOptGoal $ unSBV <$> Maximize nm' (toMetricSpace o)     annotateForMS _ s = "toMetricSpace(" ++ s ++ ")"  -- Map SBV's rounding modes to LibBF's rmToRM :: SRoundingMode -> Maybe RoundMode-rmToRM srm = cvt <$> unliteral srm-  where cvt RoundNearestTiesToEven = NearEven-        cvt RoundNearestTiesToAway = NearAway-        cvt RoundTowardPositive    = ToPosInf-        cvt RoundTowardNegative    = ToNegInf-        cvt RoundTowardZero        = ToZero+rmToRM srm = roundingModeToRoundMode <$> unliteral srm  -- | Lift a 1 arg Big-float op lift1FP :: forall eb sb. ValidFloat eb sb =>
Data/SBV/Core/Kind.hs view
@@ -11,39 +11,43 @@  {-# LANGUAGE CPP                  #-} {-# LANGUAGE DataKinds            #-}-{-# LANGUAGE DefaultSignatures    #-} {-# LANGUAGE DeriveAnyClass       #-} {-# LANGUAGE DeriveDataTypeable   #-} {-# LANGUAGE DeriveGeneric        #-} {-# LANGUAGE FlexibleInstances    #-} {-# LANGUAGE LambdaCase           #-}+{-# LANGUAGE OverloadedStrings    #-} {-# LANGUAGE ScopedTypeVariables  #-}-{-# LANGUAGE TypeFamilies         #-} {-# LANGUAGE TypeApplications     #-}+{-# LANGUAGE TypeFamilies         #-} {-# LANGUAGE TypeOperators        #-} {-# LANGUAGE ViewPatterns         #-} {-# LANGUAGE UndecidableInstances #-} -{-# OPTIONS_GHC -Wall -Werror -fno-warn-orphans #-}+{-# OPTIONS_GHC -Wall -Werror -Wno-orphans #-}  module Data.SBV.Core.Kind (-          Kind(..), HasKind(..), constructUKind, smtType, hasUninterpretedSorts+          Kind(..), HasKind(..), smtType, hasUninterpretedSorts         , BVIsNonZero, ValidFloat, intOfProxy-        , showBaseKind, needsFlattening, RoundingMode(..), smtRoundingMode+        , showBaseKind, needsFlattening         , eqCheckIsObjectEq, containsFloats, isSomeKindOfFloat, expandKinds+        , substituteADTVars+        , kRoundingMode         ) where -import qualified Data.Generics as G (Data(..), DataType, dataTypeName, dataTypeOf, tyconUQname, dataTypeConstrs, constrFields)+import qualified Data.Generics as G (Data(..), DataType, dataTypeName, tyconUQname)  import Data.Char (isSpace) import Data.Int import Data.Word import Data.SBV.Core.AlgReals+import Data.Text (Text)+import qualified Data.Text as T  import Data.Proxy import Data.Kind -import Data.List (isPrefixOf, intercalate, sort)+import Data.List (intercalate, sort) import Control.DeepSeq (NFData)  import Data.Containers.ListUtils (nubOrd)@@ -54,47 +58,81 @@  import GHC.TypeLits -import Data.SBV.Utils.Lib (isKString)+import Data.SBV.Utils.Lib     (isKString, showText)+import Data.SBV.Utils.Numeric (RoundingMode)  import GHC.Generics import qualified Data.Generics.Uniplate.Data as G -import Test.QuickCheck (Arbitrary(..), arbitraryBoundedEnum)- -- | Kind of symbolic value-data Kind = KBool+data Kind =+          -- Base types+            KBool++          -- Word and Int. Boolean is True for Int.           | KBounded !Bool !Int++          -- Unbounded integers           | KUnbounded++          -- Reals           | KReal-          | KUserSort String (Maybe [String])  -- name. Uninterpreted, or enumeration constants.++          -- Floats, standard and generalized           | KFloat           | KDouble           | KFP !Int !Int++          -- Rationals+          | KRational++          -- Chars and strings           | KChar           | KString++          -- Algebraic datatypes+          | KVar String         -- only used temporarily during ADT construction+          | KApp String [Kind]  -- Application of a constructor to a bunch of types+          | KADT String+                 [(String, Kind)]   -- Parameters, applied to these args+                 [(String, [Kind])] -- Constructors, and their fields++          -- Collections           | KList Kind           | KSet  Kind           | KTuple [Kind]-          | KMaybe  Kind-          | KRational-          | KEither Kind Kind++          -- Arrays           | KArray  Kind Kind           deriving (Eq, Ord, G.Data, NFData, Generic) --- Expand such that the resulting list has all the kinds we touch+-- | Built in kind for rounding mode+kRoundingMode :: Kind+kRoundingMode = KADT "RoundingMode" [] (map (\r -> (show r, [])) [minBound .. maxBound :: RoundingMode])++-- | Expand such that the resulting list has all the kinds we touch expandKinds :: Kind -> [Kind] expandKinds = sort . nubOrd . G.universe --- | The interesting about the show instance is that it can tell apart two kinds nicely; since it conveniently--- ignores the enumeration constructors. Also, when we construct a 'KUserSort', we make sure we don't use any of--- the reserved names; see 'constructUKind' for details.+-- | For an ADT kind, substitute kinds for the variables.+substituteADTVars :: String -> [(String, Kind)] -> Kind -> Kind+substituteADTVars t dict = G.transform sub+  where sub :: Kind -> Kind+        sub (KVar v)+          | Just k <- v `lookup` dict = k+          | True                      = error $ "Data.SBV.ADT: Kind find variable in param subst: " ++ show (t, v, dict)+        sub k = k++-- | The interesting about the show instance is that it can tell apart two kinds nicely. Otherwise the string produced isn't parsed back. instance Show Kind where+  show (KVar s)           = s   show KBool              = "SBool"   show (KBounded False n) = pickType n "SWord" "SWord " ++ show n   show (KBounded True n)  = pickType n "SInt"  "SInt "  ++ show n   show KUnbounded         = "SInteger"   show KReal              = "SReal"-  show (KUserSort s _)    = s+  show (KApp c ks)        = unwords (c : map (T.unpack . kindParen . showBaseKind      )  ks)+  show (KADT s pks _)     = unwords (s : map (T.unpack . kindParen . showBaseKind . snd) pks)   show KFloat             = "SFloat"   show KDouble            = "SDouble"   show (KFP eb sb)        = "SFloatingPoint " ++ show eb ++ " " ++ show sb@@ -104,35 +142,34 @@   show (KSet  e)          = "{" ++ show e ++ "}"   show (KTuple m)         = "(" ++ intercalate ", " (show <$> m) ++ ")"   show KRational          = "SRational"-  show (KMaybe k)         = "SMaybe "  ++ kindParen (showBaseKind k)-  show (KEither k1 k2)    = "SEither " ++ kindParen (showBaseKind k1) ++ " " ++ kindParen (showBaseKind k2)-  show (KArray k1 k2)     = "SArray "  ++ kindParen (showBaseKind k1) ++ " " ++ kindParen (showBaseKind k2)+  show (KArray k1 k2)     = "SArray "  ++ T.unpack (kindParen (showBaseKind k1)) ++ " " ++ T.unpack (kindParen (showBaseKind k2)) --- | A version of show for kinds that says Bool instead of SBool-showBaseKind :: Kind -> String+-- | A version of show for kinds that says Bool instead of SBool, Float instead of SFloat, etc.+showBaseKind :: Kind -> Text showBaseKind = sh-  where sh k@KBool            = noS (show k)-        sh (KBounded False n) = pickType n "Word" "WordN " ++ show n-        sh (KBounded True n)  = pickType n "Int"  "IntN "  ++ show n-        sh k@KUnbounded       = noS (show k)-        sh k@KReal            = noS (show k)-        sh k@KUserSort{}      = show k     -- Leave user-sorts untouched!-        sh k@KFloat           = noS (show k)-        sh k@KDouble          = noS (show k)-        sh k@KFP{}            = noS (show k)-        sh k@KChar            = noS (show k)-        sh k@KString          = noS (show k)+  where sh (KVar s)           = T.pack s+        sh k@KBool            = noS (showText k)+        sh (KBounded False n) = T.pack (pickType n "Word" "WordN ") <> showText n+        sh (KBounded True n)  = T.pack (pickType n "Int"  "IntN ")  <> showText n+        sh (KApp s ks)        = T.unwords (T.pack s : map (kindParen . sh) ks)+        sh k@KUnbounded       = noS (showText k)+        sh k@KReal            = noS (showText k)+        sh k@KADT{}           = showText k     -- Leave user-sorts untouched!+        sh k@KFloat           = noS (showText k)+        sh k@KDouble          = noS (showText k)+        sh k@KFP{}            = noS (showText k)+        sh k@KChar            = noS (showText k)+        sh k@KString          = noS (showText k)         sh KRational          = "Rational"-        sh (KList k)          = "[" ++ sh k ++ "]"-        sh (KSet k)           = "{" ++ sh k ++ "}"-        sh (KTuple ks)        = "(" ++ intercalate ", " (map sh ks) ++ ")"-        sh (KMaybe k)         = "Maybe "  ++ kindParen (sh k)-        sh (KEither k1 k2)    = "Either " ++ kindParen (sh k1) ++ " " ++ kindParen (sh k2)-        sh (KArray  k1 k2)    = "Array "  ++ kindParen (sh k1) ++ " " ++ kindParen (sh k2)+        sh (KList k)          = "[" <> sh k <> "]"+        sh (KSet k)           = "{" <> sh k <> "}"+        sh (KTuple ks)        = "(" <> T.intercalate ", " (map sh ks) <> ")"+        sh (KArray  k1 k2)    = "Array "  <> kindParen (sh k1) <> " " <> kindParen (sh k2)          -- Drop the initial S if it's there-        noS ('S':s) = s-        noS s       = s+        noS s = case T.uncons s of+                  Just ('S', rest) -> rest+                  _                -> s  -- For historical reasons, we show 8-16-32-64 bit values with no space; others with a space. pickType :: Int -> String -> String -> String@@ -141,34 +178,36 @@   | True                     = other  -- | Put parens if necessary. This test is rather crummy, but seems to work ok-kindParen :: String -> String-kindParen s@('[':_) = s-kindParen s@('(':_) = s-kindParen s | any isSpace s = '(' : s ++ ")"-            | True          = s+kindParen :: Text -> Text+kindParen s = case T.uncons s of+                Just ('[', _) -> s+                Just ('(', _) -> s+                _             -> if T.any isSpace s+                                 then T.singleton '(' <> s <> T.singleton ')'+                                 else s  -- | How the type maps to SMT land-smtType :: Kind -> String+smtType :: Kind -> Text+smtType (KVar s)        = T.pack s smtType KBool           = "Bool"-smtType (KBounded _ sz) = "(_ BitVec " ++ show sz ++ ")"+smtType (KBounded _ sz) = "(_ BitVec " <> showText sz <> ")" smtType KUnbounded      = "Int" smtType KReal           = "Real" smtType KFloat          = "(_ FloatingPoint  8 24)" smtType KDouble         = "(_ FloatingPoint 11 53)"-smtType (KFP eb sb)     = "(_ FloatingPoint " ++ show eb ++ " " ++ show sb ++ ")"+smtType (KFP eb sb)     = "(_ FloatingPoint " <> showText eb <> " " <> showText sb <> ")" smtType KString         = "String" smtType KChar           = "String"-smtType (KList k)       = "(Seq "   ++ smtType k ++ ")"-smtType (KSet  k)       = "(Array " ++ smtType k ++ " Bool)"-smtType (KUserSort s _) = s+smtType (KList k)       = "(Seq "   <> smtType k <> ")"+smtType (KSet  k)       = "(Array " <> smtType k <> " Bool)"+smtType (KApp s ks)     = kindParen $ T.unwords (T.pack s : map smtType          ks)+smtType (KADT s pks _)  = kindParen $ T.unwords (T.pack s : map (smtType . snd) pks) smtType (KTuple [])     = "SBVTuple0"-smtType (KTuple kinds)  = "(SBVTuple" ++ show (length kinds) ++ " " ++ unwords (smtType <$> kinds) ++ ")"+smtType (KTuple kinds)  = "(SBVTuple" <> showText (length kinds) <> " " <> T.unwords (smtType <$> kinds) <> ")" smtType KRational       = "SBVRational"-smtType (KMaybe k)      = "(SBVMaybe " ++ smtType k ++ ")"-smtType (KEither k1 k2) = "(SBVEither "  ++ smtType k1 ++ " " ++ smtType k2 ++ ")"-smtType (KArray  k1 k2) = "(Array "      ++ smtType k1 ++ " " ++ smtType k2 ++ ")"+smtType (KArray  k1 k2) = "(Array " <> smtType k1 <> " " <> smtType k2 <> ")" -instance Eq  G.DataType where+instance Eq G.DataType where    a == b = G.tyconUQname (G.dataTypeName a) == G.tyconUQname (G.dataTypeName b)  instance Ord G.DataType where@@ -176,7 +215,8 @@  -- | Does this kind represent a signed quantity? kindHasSign :: Kind -> Bool-kindHasSign = \case KBool        -> False+kindHasSign = \case KVar _       -> False+                    KBool        -> False                     KBounded b _ -> b                     KUnbounded   -> True                     KReal        -> True@@ -184,79 +224,49 @@                     KDouble      -> True                     KFP{}        -> True                     KRational    -> True-                    KUserSort{}  -> False+                    KApp{}       -> False+                    KADT{}       -> False                     KString      -> False                     KChar        -> False                     KList{}      -> False                     KSet{}       -> False                     KTuple{}     -> False-                    KMaybe{}     -> False-                    KEither{}    -> False                     KArray{}     -> False --- | Construct an uninterpreted/enumerated kind from a piece of data; we distinguish simple enumerations as those--- are mapped to proper SMT-Lib2 data-types; while others go completely uninterpreted-constructUKind :: forall a. (Read a, G.Data a) => a -> Kind-constructUKind a-  | any (`isPrefixOf` sortName) badPrefixes-  = error $ unlines [ "*** Data.SBV: Cannot construct user-sort with name: " ++ show sortName-                    , "***"-                    , "***  Must not start with any of: " ++ intercalate ", " badPrefixes-                    ]-  | True-  = case (constrs, concatMap G.constrFields constrs) of-      ([], _)  -> KUserSort sortName   Nothing-      (cs, []) -> KUserSort sortName $ Just (map show cs)-      _        -> error $ unlines [ "*** Data.SBV: " ++ sortName ++ " is not an enumeration."-                                  , "***"-                                  , "*** To declare an enumeration, constructors should not have any fields."-                                  , "*** To declare an uninterpreted sort, use a datatype with no constructors."-                                  ]--  where -- make sure we don't step on ourselves:-        -- NB. The sort "RoundingMode" is special. It's treated by SBV as a user-defined-        -- sort, even though it's internally handled differently. So, that name doesn't appear-        -- below.-        badPrefixes = [ "SBool",   "SWord", "SInt", "SInteger", "SReal",  "SFloat", "SDouble"-                      , "SString", "SChar", "[",    "SSet",     "STuple", "SMaybe", "SEither"-                      , "SRational"-                      ]--        dataType    = G.dataTypeOf a-        sortName    = G.tyconUQname . G.dataTypeName $ dataType-        constrs     = G.dataTypeConstrs dataType- -- | A class for capturing values that have a sign and a size (finite or infinite) -- minimal complete definition: kindOf, unless you can take advantage of the default -- signature: This class can be automatically derived for data-types that have -- a 'G.Data' instance; this is useful for creating uninterpreted sorts. So, in -- reality, end users should almost never need to define any methods. class HasKind a where-  kindOf      :: a -> Kind-  hasSign     :: a -> Bool-  intSizeOf   :: a -> Int-  isBoolean   :: a -> Bool-  isBounded   :: a -> Bool   -- NB. This really means word/int; i.e., Real/Float will test False-  isReal      :: a -> Bool-  isFloat     :: a -> Bool-  isDouble    :: a -> Bool-  isRational  :: a -> Bool-  isFP        :: a -> Bool-  isUnbounded :: a -> Bool-  isUserSort  :: a -> Bool-  isChar      :: a -> Bool-  isString    :: a -> Bool-  isList      :: a -> Bool-  isSet       :: a -> Bool-  isTuple     :: a -> Bool-  isMaybe     :: a -> Bool-  isEither    :: a -> Bool-  isArray     :: a -> Bool-  showType    :: a -> String+  kindOf          :: a -> Kind+  hasSign         :: a -> Bool+  intSizeOf       :: a -> Int+  isBoolean       :: a -> Bool+  isBounded       :: a -> Bool   -- NB. This really means word/int; i.e., Real/Float will test False+  isReal          :: a -> Bool+  isFloat         :: a -> Bool+  isDouble        :: a -> Bool+  isRational      :: a -> Bool+  isFP            :: a -> Bool+  isUnbounded     :: a -> Bool+  isADT           :: a -> Bool+  isChar          :: a -> Bool+  isString        :: a -> Bool+  isList          :: a -> Bool+  isSet           :: a -> Bool+  isTuple         :: a -> Bool+  isArray         :: a -> Bool+  isRoundingMode  :: a -> Bool+  isUninterpreted :: a -> Bool++  showType        :: a -> String+   -- defaults   hasSign x = kindHasSign (kindOf x)    intSizeOf x = case kindOf x of+                  KVar{}        -> error "SBV.HasKind.intSizeOf(KVar)"                   KBool         -> error "SBV.HasKind.intSizeOf((S)Bool)"                   KBounded _ s  -> s                   KUnbounded    -> error "SBV.HasKind.intSizeOf((S)Integer)"@@ -265,14 +275,13 @@                   KDouble       -> 64                   KFP i j       -> i + j                   KRational     -> error "SBV.HasKind.intSizeOf((S)Rational)"-                  KUserSort s _ -> error $ "SBV.HasKind.intSizeOf: Uninterpreted sort: " ++ s+                  KApp s _      -> error $ "SBV.HasKind.intSizeOf: Type application: "    ++ s+                  KADT s _ _    -> error $ "SBV.HasKind.intSizeOf: Algebraic data type: " ++ s                   KString       -> error "SBV.HasKind.intSizeOf((S)Double)"                   KChar         -> error "SBV.HasKind.intSizeOf((S)Char)"                   KList ek      -> error $ "SBV.HasKind.intSizeOf((S)List)"   ++ show ek                   KSet  ek      -> error $ "SBV.HasKind.intSizeOf((S)Set)"    ++ show ek                   KTuple tys    -> error $ "SBV.HasKind.intSizeOf((S)Tuple)"  ++ show tys-                  KMaybe k      -> error $ "SBV.HasKind.intSizeOf((S)Maybe)"  ++ show k-                  KEither k1 k2 -> error $ "SBV.HasKind.intSizeOf((S)Either)" ++ show (k1, k2)                   KArray  k1 k2 -> error $ "SBV.HasKind.intSizeOf((S)Array)"  ++ show (k1, k2)    isBoolean       (kindOf -> KBool{})      = True@@ -299,8 +308,8 @@   isUnbounded     (kindOf -> KUnbounded{}) = True   isUnbounded     _                        = False -  isUserSort      (kindOf -> KUserSort{})  = True-  isUserSort      _                        = False+  isADT           (kindOf -> KADT{})       = True+  isADT           _                        = False    isChar          (kindOf -> KChar{})      = True   isChar          _                        = False@@ -317,41 +326,40 @@   isTuple         (kindOf -> KTuple{})     = True   isTuple         _                        = False -  isMaybe         (kindOf -> KMaybe{})     = True-  isMaybe         _                        = False--  isEither        (kindOf -> KEither{})    = True-  isEither        _                        = False-   isArray         (kindOf -> KArray{})     = True   isArray         _                        = False +  -- Derived kinds+  isRoundingMode  (kindOf -> k)            = k == kRoundingMode+  isUninterpreted (kindOf -> k)            = case k of+                                               KADT _ [] [] -> True+                                               _            -> False+   showType = show . kindOf -  -- default signature for uninterpreted/enumerated kinds-  default kindOf :: (Read a, G.Data a) => a -> Kind-  kindOf = constructUKind+  {-# MINIMAL kindOf #-}  -- | This instance allows us to use the `kindOf (Proxy @a)` idiom instead of -- the `kindOf (undefined :: a)`, which is safer and looks more idiomatic. instance HasKind a => HasKind (Proxy a) where   kindOf _ = kindOf (undefined :: a) -instance HasKind Bool     where kindOf _ = KBool-instance HasKind Int8     where kindOf _ = KBounded True  8-instance HasKind Word8    where kindOf _ = KBounded False 8-instance HasKind Int16    where kindOf _ = KBounded True  16-instance HasKind Word16   where kindOf _ = KBounded False 16-instance HasKind Int32    where kindOf _ = KBounded True  32-instance HasKind Word32   where kindOf _ = KBounded False 32-instance HasKind Int64    where kindOf _ = KBounded True  64-instance HasKind Word64   where kindOf _ = KBounded False 64-instance HasKind Integer  where kindOf _ = KUnbounded-instance HasKind AlgReal  where kindOf _ = KReal-instance HasKind Rational where kindOf _ = KRational-instance HasKind Float    where kindOf _ = KFloat-instance HasKind Double   where kindOf _ = KDouble-instance HasKind Char     where kindOf _ = KChar+instance HasKind Bool         where kindOf _ = KBool+instance HasKind Int8         where kindOf _ = KBounded True  8+instance HasKind Word8        where kindOf _ = KBounded False 8+instance HasKind Int16        where kindOf _ = KBounded True  16+instance HasKind Word16       where kindOf _ = KBounded False 16+instance HasKind Int32        where kindOf _ = KBounded True  32+instance HasKind Word32       where kindOf _ = KBounded False 32+instance HasKind Int64        where kindOf _ = KBounded True  64+instance HasKind Word64       where kindOf _ = KBounded False 64+instance HasKind Integer      where kindOf _ = KUnbounded+instance HasKind AlgReal      where kindOf _ = KReal+instance HasKind Rational     where kindOf _ = KRational+instance HasKind Float        where kindOf _ = KFloat+instance HasKind Double       where kindOf _ = KDouble+instance HasKind Char         where kindOf _ = KChar+instance HasKind RoundingMode where kindOf _ = kRoundingMode  -- | Grab the bit-size from the proxy. If the nat is too large to fit in an int, -- we throw an error. (This would mean too big of a bit-size, that we can't@@ -390,10 +398,7 @@  -- | Do we have a completely uninterpreted sort lying around anywhere? hasUninterpretedSorts :: Kind -> Bool-hasUninterpretedSorts = any check . expandKinds-  where check (KUserSort _ Nothing)  = True   -- These are the completely uninterpreted sorts, which we are looking for here-        check (KUserSort _ (Just{})) = False  -- These are the enumerated sorts, and they are perfectly fine-        check _                      = False+hasUninterpretedSorts = any isUninterpreted . expandKinds  instance (Typeable a, HasKind a) => HasKind [a] where    kindOf x | isKString @[a] x = KString@@ -426,12 +431,6 @@ instance (HasKind a, HasKind b, HasKind c, HasKind d, HasKind e, HasKind f, HasKind g, HasKind h) => HasKind (a, b, c, d, e, f, g, h) where   kindOf _ = KTuple [kindOf (Proxy @a), kindOf (Proxy @b), kindOf (Proxy @c), kindOf (Proxy @d), kindOf (Proxy @e), kindOf (Proxy @f), kindOf (Proxy @g), kindOf (Proxy @h)] -instance (HasKind a, HasKind b) => HasKind (Either a b) where-  kindOf _ = KEither (kindOf (Proxy @a)) (kindOf (Proxy @b))--instance HasKind a => HasKind (Maybe a) where-  kindOf _ = KMaybe (kindOf (Proxy @a))- instance (HasKind a, HasKind b) => HasKind (a -> b) where   kindOf _ = KArray (kindOf (Proxy @a)) (kindOf (Proxy @b)) @@ -443,16 +442,16 @@   where check KList{}     = True         check KSet{}      = True         check KTuple{}    = True-        check KMaybe{}    = True-        check KEither{}   = True         check KArray{}    = True+        check KApp{}      = True+        check k@KADT{}    = not (isUninterpreted k || isRoundingMode k)          -- no need to expand bases+        check KVar{}      = False         check KBool       = False         check KBounded{}  = False         check KUnbounded  = False         check KReal       = False-        check KUserSort{} = False         check KFloat      = False         check KDouble     = False         check KFP{}       = False@@ -522,33 +521,3 @@                                             (() :: Constraint)                                             (TypeError (InvalidFloat eb sb))                                        )---- | Rounding mode to be used for the IEEE floating-point operations.--- Note that Haskell's default is 'RoundNearestTiesToEven'. If you use--- a different rounding mode, then the counter-examples you get may not--- match what you observe in Haskell.-data RoundingMode = RoundNearestTiesToEven  -- ^ Round to nearest representable floating point value.-                                            -- If precisely at half-way, pick the even number.-                                            -- (In this context, /even/ means the lowest-order bit is zero.)-                  | RoundNearestTiesToAway  -- ^ Round to nearest representable floating point value.-                                            -- If precisely at half-way, pick the number further away from 0.-                                            -- (That is, for positive values, pick the greater; for negative values, pick the smaller.)-                  | RoundTowardPositive     -- ^ Round towards positive infinity. (Also known as rounding-up or ceiling.)-                  | RoundTowardNegative     -- ^ Round towards negative infinity. (Also known as rounding-down or floor.)-                  | RoundTowardZero         -- ^ Round towards zero. (Also known as truncation.)-                  deriving (Eq, Ord, Show, Read, G.Data, Bounded, Enum)---- | 'RoundingMode' kind-instance HasKind RoundingMode---- | An arbitrary rounding mode-instance Arbitrary RoundingMode where-  arbitrary = arbitraryBoundedEnum---- | Convert a rounding mode to the format SMT-Lib2 understands.-smtRoundingMode :: RoundingMode -> String-smtRoundingMode RoundNearestTiesToEven = "roundNearestTiesToEven"-smtRoundingMode RoundNearestTiesToAway = "roundNearestTiesToAway"-smtRoundingMode RoundTowardPositive    = "roundTowardPositive"-smtRoundingMode RoundTowardNegative    = "roundTowardNegative"-smtRoundingMode RoundTowardZero        = "roundTowardZero"
Data/SBV/Core/Model.hs view
@@ -9,3613 +9,4840 @@ -- Instance declarations for our symbolic world ----------------------------------------------------------------------------- -{-# LANGUAGE BangPatterns            #-}-{-# LANGUAGE CPP                     #-}-{-# LANGUAGE DataKinds               #-}-{-# LANGUAGE DefaultSignatures       #-}-{-# LANGUAGE DeriveFunctor           #-}-{-# LANGUAGE FlexibleContexts        #-}-{-# LANGUAGE FlexibleInstances       #-}-{-# LANGUAGE InstanceSigs            #-}-{-# LANGUAGE MultiParamTypeClasses   #-}-{-# LANGUAGE NamedFieldPuns          #-}-{-# LANGUAGE Rank2Types              #-}-{-# LANGUAGE ScopedTypeVariables     #-}-{-# LANGUAGE TypeApplications        #-}-{-# LANGUAGE TypeFamilies            #-}-{-# LANGUAGE TypeOperators           #-}-{-# LANGUAGE UndecidableInstances    #-}--{-# OPTIONS_GHC -Wall -Werror -fno-warn-orphans -Wno-incomplete-uni-patterns #-}--module Data.SBV.Core.Model (-    Mergeable(..), Equality(..), EqSymbolic(..), OrdSymbolic(..), SDivisible(..), SMTDefinable(..), QSaturate, qSaturateSavingObservables-  , Metric(..), minimize, maximize, assertWithPenalty, SIntegral, SFiniteBits(..)-  , ite, iteLazy, sFromIntegral, sShiftLeft, sShiftRight, sRotateLeft, sBarrelRotateLeft, sRotateRight, sBarrelRotateRight, sSignedShiftArithRight, (.^)-  , some-  , oneIf, genVar, genVar_-  , pbAtMost, pbAtLeast, pbExactly, pbLe, pbGe, pbEq, pbMutexed, pbStronglyMutexed-  , sBool, sBool_, sBools, sWord8, sWord8_, sWord8s, sWord16, sWord16_, sWord16s, sWord32, sWord32_, sWord32s-  , sWord64, sWord64_, sWord64s, sInt8, sInt8_, sInt8s, sInt16, sInt16_, sInt16s, sInt32, sInt32_, sInt32s, sInt64, sInt64_-  , sInt64s, sInteger, sInteger_, sIntegers, sReal, sReal_, sReals, sFloat, sFloat_, sFloats, sDouble, sDouble_, sDoubles-  , sWord, sWord_, sWords, sInt, sInt_, sInts-  , sFPHalf, sFPHalf_, sFPHalfs, sFPBFloat, sFPBFloat_, sFPBFloats, sFPSingle, sFPSingle_, sFPSingles, sFPDouble, sFPDouble_, sFPDoubles, sFPQuad, sFPQuad_, sFPQuads, sArray, sArray_, sArrays-  , sFloatingPoint, sFloatingPoint_, sFloatingPoints-  , sChar, sChar_, sChars, sString, sString_, sStrings, sList, sList_, sLists-  , sRational, sRational_, sRationals-  , SymTuple, sTuple, sTuple_, sTuples-  , sEither, sEither_, sEithers, sMaybe, sMaybe_, sMaybes-  , sSet, sSet_, sSets-  , sEDivMod, sEDiv, sEMod-  , sDivides-  , solve-  , slet-  , sRealToSInteger, sRealToSIntegerTruncate, label, observe, observeIf, sObserve-  , sAssert-  , liftQRem, liftDMod, symbolicMergeWithKind-  , genLiteral, genFromCV, genMkSymVar-  , zeroExtend, signExtend-  , sbvQuickCheck-  , readArray, writeArray, lambdaArray, listArray-  , FromSized, ToSized, FromSizedBV(..), ToSizedBV(..)-  , smtHOFunction, Closure(..)-  )-  where--import Control.Applicative    (ZipList(ZipList))-import Control.Monad          (when, unless, mplus, replicateM)-import Control.Monad.IO.Class (MonadIO, liftIO)--import qualified Control.Exception as C--import GHC.Generics (M1(..), U1(..), (:*:)(..), K1(..))-import qualified GHC.Generics as G--import GHC.Stack-import GHC.TypeLits-#if MIN_VERSION_base(4,18,0)-                    hiding(SChar)-#endif--import Data.Array  (Array, Ix, elems, bounds, rangeSize)-import qualified Data.Array as DA (listArray)--import Data.Bits   (Bits(..))-import Data.Int    (Int8, Int16, Int32, Int64)-import Data.Kind   (Type, Constraint)-import Data.List   (genericLength, genericIndex, genericTake, unzip4, unzip5, unzip6, unzip7, intercalate)-import Data.Maybe  (fromMaybe, mapMaybe)-import Data.String (IsString(..))-import Data.Word   (Word8, Word16, Word32, Word64)--import Data.List.NonEmpty (NonEmpty(..))-import qualified Data.List.NonEmpty as NE--import qualified Data.Set as Set--import Data.Proxy-import Data.Dynamic (fromDynamic, toDyn, Typeable)--import Test.QuickCheck                         (Testable(..), Arbitrary(..))-import qualified Test.QuickCheck.Test    as QC (isSuccess)-import qualified Test.QuickCheck         as QC (quickCheckResult, counterexample)-import qualified Test.QuickCheck.Monadic as QC (monadicIO, run, assert, pre, monitor)--import qualified Data.Foldable as F (toList)--import Data.SBV.Core.AlgReals-import Data.SBV.Core.Sized-import Data.SBV.Core.SizedFloats-import Data.SBV.Core.Data hiding (Constraint)-import Data.SBV.Core.Symbolic-import Data.SBV.Core.Operations-import Data.SBV.Core.Kind-import Data.SBV.Lambda-import Data.SBV.Utils.ExtractIO(ExtractIO)--import Data.SBV.Provers.Prover (defaultSMTCfg, SafeResult(..), defs2smt, prove)-import Data.SBV.SMT.SMT        (ThmResult, showModel)--import Data.SBV.Utils.Numeric (fpIsEqualObjectH)--import Data.IORef (readIORef, writeIORef)-import Data.SBV.Utils.Lib--import Data.Char---- Symbolic-Word class instances--import Crypto.Hash.SHA512 (hash)-import qualified Data.ByteString.Base16 as B-import qualified Data.ByteString.Char8  as BC---- | Generate a variable, named-genVar :: MonadSymbolic m => VarContext -> Kind -> String -> m (SBV a)-genVar q k = mkSymSBV q k . Just---- | Generate an unnamed variable-genVar_ :: MonadSymbolic m => VarContext -> Kind -> m (SBV a)-genVar_ q k = mkSymSBV q k Nothing---- | Generate a finite constant bitvector-genLiteral :: Integral a => Kind -> a -> SBV b-genLiteral k = SBV . SVal k . Left . mkConstCV k---- | Convert a constant to an integral value-genFromCV :: Integral a => CV -> a-genFromCV (CV _ (CInteger x)) = fromInteger x-genFromCV c                   = error $ "genFromCV: Unsupported non-integral value: " ++ show c---- | Generalization of 'Data.SBV.genMkSymVar'-genMkSymVar :: MonadSymbolic m => Kind -> VarContext -> Maybe String -> m (SBV a)-genMkSymVar k mbq Nothing  = genVar_ mbq k-genMkSymVar k mbq (Just s) = genVar  mbq k s--instance SymVal Bool where-  mkSymVal = genMkSymVar KBool-  literal  = SBV . svBool-  fromCV   = cvToBool--instance SymVal Word8 where-  mkSymVal = genMkSymVar (KBounded False 8)-  literal  = genLiteral  (KBounded False 8)-  fromCV   = genFromCV--instance SymVal Int8 where-  mkSymVal = genMkSymVar (KBounded True 8)-  literal  = genLiteral  (KBounded True 8)-  fromCV   = genFromCV--instance SymVal Word16 where-  mkSymVal = genMkSymVar (KBounded False 16)-  literal  = genLiteral  (KBounded False 16)-  fromCV   = genFromCV--instance SymVal Int16 where-  mkSymVal = genMkSymVar (KBounded True 16)-  literal  = genLiteral  (KBounded True 16)-  fromCV   = genFromCV--instance SymVal Word32 where-  mkSymVal = genMkSymVar (KBounded False 32)-  literal  = genLiteral  (KBounded False 32)-  fromCV   = genFromCV--instance SymVal Int32 where-  mkSymVal = genMkSymVar (KBounded True 32)-  literal  = genLiteral  (KBounded True 32)-  fromCV   = genFromCV--instance SymVal Word64 where-  mkSymVal = genMkSymVar (KBounded False 64)-  literal  = genLiteral  (KBounded False 64)-  fromCV   = genFromCV--instance SymVal Int64 where-  mkSymVal = genMkSymVar (KBounded True 64)-  literal  = genLiteral  (KBounded True 64)-  fromCV   = genFromCV--instance SymVal Integer where-  mkSymVal    = genMkSymVar KUnbounded-  literal     = SBV . SVal KUnbounded . Left . mkConstCV KUnbounded-  fromCV      = genFromCV-  minMaxBound = Nothing--instance SymVal Rational where-  mkSymVal                    = genMkSymVar KRational-  literal                     = SBV . SVal KRational  . Left . CV KRational . CRational-  fromCV (CV _ (CRational r)) = r-  fromCV c                    = error $ "SymVal.Rational: Unexpected non-rational value: " ++ show c-  minMaxBound                 = Nothing--instance SymVal AlgReal where-  mkSymVal                   = genMkSymVar KReal-  literal                    = SBV . SVal KReal . Left . CV KReal . CAlgReal-  fromCV (CV _ (CAlgReal a)) = a-  fromCV c                   = error $ "SymVal.AlgReal: Unexpected non-real value: " ++ show c-  minMaxBound               = Nothing--  -- AlgReal needs its own definition of isConcretely-  -- to make sure we avoid using unimplementable Haskell functions-  isConcretely (SBV (SVal KReal (Left (CV KReal (CAlgReal v))))) p-     | isExactRational v = p v-  isConcretely _ _       = False--instance SymVal Float where-  mkSymVal                 = genMkSymVar KFloat-  literal                  = SBV . SVal KFloat . Left . CV KFloat . CFloat-  fromCV (CV _ (CFloat a)) = a-  fromCV c                 = error $ "SymVal.Float: Unexpected non-float value: " ++ show c-  minMaxBound              = Nothing--  -- For Float, we conservatively return 'False' for isConcretely. The reason is that-  -- this function is used for optimizations when only one of the argument is concrete,-  -- and in the presence of NaN's it would be incorrect to do any optimization-  isConcretely _ _ = False--instance SymVal Double where-  mkSymVal                  = genMkSymVar KDouble-  literal                   = SBV . SVal KDouble . Left . CV KDouble . CDouble-  fromCV (CV _ (CDouble a)) = a-  fromCV c                  = error $ "SymVal.Double: Unexpected non-double value: " ++ show c-  minMaxBound               = Nothing--  -- For Double, we conservatively return 'False' for isConcretely. The reason is that-  -- this function is used for optimizations when only one of the argument is concrete,-  -- and in the presence of NaN's it would be incorrect to do any optimization-  isConcretely _ _ = False--instance SymVal Char where-  mkSymVal                = genMkSymVar KChar-  literal c               = SBV . SVal KChar . Left . CV KChar $ CChar c-  fromCV (CV _ (CChar a)) = a-  fromCV c                = error $ "SymVal.String: Unexpected non-char value: " ++ show c--instance SymVal a => SymVal [a] where-  mkSymVal-    | isKString @[a] undefined = genMkSymVar KString-    | True                     = genMkSymVar (KList (kindOf (Proxy @a)))--  literal as-    | isKString @[a] undefined = case fromDynamic (toDyn as) of-                                   Just s  -> SBV . SVal KString . Left . CV KString . CString $ s-                                   Nothing -> error "SString: Cannot construct literal string!"-    | True                     = let k = KList (kindOf (Proxy @a))-                                 in SBV $ SVal k $ Left $ CV k $ CList $ map toCV as--  fromCV (CV _ (CString a)) = fromMaybe (error "SString: Cannot extract a literal string!")-                                        (fromDynamic (toDyn a))-  fromCV (CV _ (CList a))   = fromCV . CV (kindOf (Proxy @a)) <$> a-  fromCV c                  = error $ "SymVal.fromCV: Unexpected non-list value: " ++ show c--  minMaxBound               = Nothing--instance ValidFloat eb sb => HasKind (FloatingPoint eb sb) where-  kindOf _ = KFP (intOfProxy (Proxy @eb)) (intOfProxy (Proxy @sb))--instance ValidFloat eb sb => SymVal (FloatingPoint eb sb) where-  mkSymVal                   = genMkSymVar (KFP (intOfProxy (Proxy @eb)) (intOfProxy (Proxy @sb)))-  literal (FloatingPoint r)  = let k = KFP (intOfProxy (Proxy @eb)) (intOfProxy (Proxy @sb))-                               in SBV $ SVal k $ Left $ CV k (CFP r)-  fromCV  (CV _ (CFP r))     = FloatingPoint r-  fromCV  c                  = error $ "SymVal.FPR: Unexpected non-arbitrary-precision value: " ++ show c-  minMaxBound                = Nothing---- | 'SymVal' instance for 'WordN'-instance (KnownNat n, BVIsNonZero n) => SymVal (WordN n) where-   literal  x = genLiteral  (kindOf x) x-   mkSymVal   = genMkSymVar (kindOf (undefined :: WordN n))-   fromCV     = genFromCV---- | 'SymVal' instance for 'IntN'-instance (KnownNat n, BVIsNonZero n) => SymVal (IntN n) where-   literal  x = genLiteral  (kindOf x) x-   mkSymVal   = genMkSymVar (kindOf (undefined :: IntN n))-   fromCV     = genFromCV--toCV :: SymVal a => a -> CVal-toCV a = case literal a of-           SBV (SVal _ (Left cv)) -> cvVal cv-           _                      -> error "SymVal.toCV: Impossible happened, couldn't produce a concrete value"--mkCVTup :: Int -> Kind -> [CVal] -> SBV a-mkCVTup i k@(KTuple ks) cs-  | lks == lcs && lks == i-  = SBV $ SVal k $ Left $ CV k $ CTuple cs-  | True-  = error $ "SymVal.mkCVTup: Impossible happened. Malformed tuple received: " ++ show (i, k)-   where lks = length ks-         lcs = length cs-mkCVTup i k _-  = error $ "SymVal.mkCVTup: Impossible happened. Non-tuple received: " ++ show (i, k)--fromCVTup :: Int -> CV -> [CV]-fromCVTup i inp@(CV (KTuple ks) (CTuple cs))-   | lks == lcs && lks == i-   = zipWith CV ks cs-   | True-   = error $ "SymVal.fromCTup: Impossible happened. Malformed tuple received: " ++ show (i, inp)-   where lks = length ks-         lcs = length cs-fromCVTup i inp = error $ "SymVal.fromCVTup: Impossible happened. Non-tuple received: " ++ show (i, inp)--instance (SymVal a, SymVal b) => SymVal (Either a b) where-  mkSymVal = genMkSymVar (kindOf (Proxy @(Either a b)))--  literal s-    | Left  a <- s = mk $ Left  (toCV a)-    | Right b <- s = mk $ Right (toCV b)-    where k  = kindOf (Proxy @(Either a b))--          mk = SBV . SVal k . Left . CV k . CEither--  fromCV (CV (KEither k1 _ ) (CEither (Left c)))  = Left  $ fromCV $ CV k1 c-  fromCV (CV (KEither _  k2) (CEither (Right c))) = Right $ fromCV $ CV k2 c-  fromCV bad                                      = error $ "SymVal.fromCV (Either): Malformed either received: " ++ show bad--  minMaxBound = Nothing--instance SymVal a => SymVal (Maybe a) where-  mkSymVal = genMkSymVar (kindOf (Proxy @(Maybe a)))--  literal s-    | Nothing <- s = mk Nothing-    | Just  a <- s = mk $ Just (toCV a)-    where k = kindOf (Proxy @(Maybe a))--          mk = SBV . SVal k . Left . CV k . CMaybe--  fromCV (CV (KMaybe _) (CMaybe Nothing))  = Nothing-  fromCV (CV (KMaybe k) (CMaybe (Just x))) = Just $ fromCV $ CV k x-  fromCV bad                               = error $ "SymVal.fromCV (Maybe): Malformed sum received: " ++ show bad--  minMaxBound = Nothing--instance (HasKind a, HasKind b, SymVal a, SymVal b) => SymVal (ArrayModel a b) where-  mkSymVal = genMkSymVar (KArray (kindOf (Proxy @a)) (kindOf (Proxy @b)))--  -- If the table has duplicate entries for keys, then the first one takes precedence.-  -- That is, [(a, v1), (a, v2)] is equivalent to [(a, v1)]. The best way to think about-  -- this is as a "stack" of writes. [(a, v1), (a, v2)] means we first "wrote" v2 at-  -- a, and then wrote v1 at the same address; so the first write of v2 got overwritten.-  literal (ArrayModel tbl def) = SBV . SVal knd . Left . CV knd $ CArray $ ArrayModel [(toCV k, toCV v) | (k, v) <- tbl] (toCV def)-    where knd = kindOf (Proxy @(ArrayModel a b))--  fromCV (CV (KArray k1 k2) (CArray (ArrayModel assocs def))) = ArrayModel [(fromCV (CV k1 a), fromCV (CV k2 b)) | (a, b) <- assocs]-                                                                           (fromCV (CV k2 def))--  fromCV bad = error $ "SymVal.fromCV (SArray): Malformed array received: " ++ show bad--  minMaxBound = Nothing--instance (Arbitrary a, Arbitrary b) => Arbitrary (ArrayModel a b) where-  arbitrary = ArrayModel <$> arbitrary <*> arbitrary--instance (Ord a, SymVal a) => SymVal (RCSet a) where-  mkSymVal = genMkSymVar (kindOf (Proxy @(RCSet a)))--  literal eur = SBV $ SVal k $ Left $ CV k $ CSet $ dir $ Set.map toCV s-    where (dir, s) = case eur of-                      RegularSet x    -> (RegularSet,    x)-                      ComplementSet x -> (ComplementSet, x)-          k        = kindOf (Proxy @(RCSet a))--  fromCV (CV (KSet a) (CSet (RegularSet    s))) = RegularSet    $ Set.map (fromCV . CV a) s-  fromCV (CV (KSet a) (CSet (ComplementSet s))) = ComplementSet $ Set.map (fromCV . CV a) s-  fromCV bad                                    = error $ "SymVal.fromCV (Set): Malformed set received: " ++ show bad--  minMaxBound = Nothing---- | SymVal for 0-tuple (i.e., unit)-instance SymVal () where-  mkSymVal   = genMkSymVar (KTuple [])-  literal () = mkCVTup 0   (kindOf (Proxy @())) []-  fromCV cv  = fromCVTup 0 cv `seq` ()---- | SymVal for 2-tuples-instance (SymVal a, SymVal b) => SymVal (a, b) where-   mkSymVal         = genMkSymVar (kindOf (Proxy @(a, b)))-   literal (v1, v2) = mkCVTup 2   (kindOf (Proxy @(a, b))) [toCV v1, toCV v2]-   fromCV  cv       = let ~[v1, v2] = fromCVTup 2 cv-                      in (fromCV v1, fromCV v2)--   minMaxBound = Nothing---- | SymVal for 3-tuples-instance (SymVal a, SymVal b, SymVal c) => SymVal (a, b, c) where-   mkSymVal             = genMkSymVar (kindOf (Proxy @(a, b, c)))-   literal (v1, v2, v3) = mkCVTup 3   (kindOf (Proxy @(a, b, c))) [toCV v1, toCV v2, toCV v3]-   fromCV  cv           = let ~[v1, v2, v3] = fromCVTup 3 cv-                          in (fromCV v1, fromCV v2, fromCV v3)-   minMaxBound          = Nothing---- | SymVal for 4-tuples-instance (SymVal a, SymVal b, SymVal c, SymVal d) => SymVal (a, b, c, d) where-   mkSymVal                 = genMkSymVar (kindOf (Proxy @(a, b, c, d)))-   literal (v1, v2, v3, v4) = mkCVTup 4   (kindOf (Proxy @(a, b, c, d))) [toCV v1, toCV v2, toCV v3, toCV v4]-   fromCV  cv               = let ~[v1, v2, v3, v4] = fromCVTup 4 cv-                              in (fromCV v1, fromCV v2, fromCV v3, fromCV v4)-   minMaxBound              = Nothing---- | SymVal for 5-tuples-instance (SymVal a, SymVal b, SymVal c, SymVal d, SymVal e) => SymVal (a, b, c, d, e) where-   mkSymVal                     = genMkSymVar (kindOf (Proxy @(a, b, c, d, e)))-   literal (v1, v2, v3, v4, v5) = mkCVTup 5   (kindOf (Proxy @(a, b, c, d, e))) [toCV v1, toCV v2, toCV v3, toCV v4, toCV v5]-   fromCV  cv                   = let ~[v1, v2, v3, v4, v5] = fromCVTup 5 cv-                                  in (fromCV v1, fromCV v2, fromCV v3, fromCV v4, fromCV v5)-   minMaxBound                  = Nothing---- | SymVal for 6-tuples-instance (SymVal a, SymVal b, SymVal c, SymVal d, SymVal e, SymVal f) => SymVal (a, b, c, d, e, f) where-   mkSymVal                         = genMkSymVar (kindOf (Proxy @(a, b, c, d, e, f)))-   literal (v1, v2, v3, v4, v5, v6) = mkCVTup 6   (kindOf (Proxy @(a, b, c, d, e, f))) [toCV v1, toCV v2, toCV v3, toCV v4, toCV v5, toCV v6]-   fromCV  cv                       = let ~[v1, v2, v3, v4, v5, v6] = fromCVTup 6 cv-                                      in (fromCV v1, fromCV v2, fromCV v3, fromCV v4, fromCV v5, fromCV v6)-   minMaxBound                      = Nothing---- | SymVal for 7-tuples-instance (SymVal a, SymVal b, SymVal c, SymVal d, SymVal e, SymVal f, SymVal g) => SymVal (a, b, c, d, e, f, g) where-   mkSymVal                             = genMkSymVar (kindOf (Proxy @(a, b, c, d, e, f, g)))-   literal (v1, v2, v3, v4, v5, v6, v7) = mkCVTup 7   (kindOf (Proxy @(a, b, c, d, e, f, g))) [toCV v1, toCV v2, toCV v3, toCV v4, toCV v5, toCV v6, toCV v7]-   fromCV  cv                           = let ~[v1, v2, v3, v4, v5, v6, v7] = fromCVTup 7 cv-                                          in (fromCV v1, fromCV v2, fromCV v3, fromCV v4, fromCV v5, fromCV v6, fromCV v7)-   minMaxBound                          = Nothing---- | SymVal for 8-tuples-instance (SymVal a, SymVal b, SymVal c, SymVal d, SymVal e, SymVal f, SymVal g, SymVal h) => SymVal (a, b, c, d, e, f, g, h) where-   mkSymVal                                 = genMkSymVar (kindOf (Proxy @(a, b, c, d, e, f, g, h)))-   literal (v1, v2, v3, v4, v5, v6, v7, v8) = mkCVTup 8   (kindOf (Proxy @(a, b, c, d, e, f, g, h))) [toCV v1, toCV v2, toCV v3, toCV v4, toCV v5, toCV v6, toCV v7, toCV v8]-   fromCV  cv                               = let ~[v1, v2, v3, v4, v5, v6, v7, v8] = fromCVTup 8 cv-                                              in (fromCV v1, fromCV v2, fromCV v3, fromCV v4, fromCV v5, fromCV v6, fromCV v7, fromCV v8)-   minMaxBound                              = Nothing--instance IsString SString where-  fromString = literal----------------------------------------------------------------------------------------- * Smart constructors for creating symbolic values. These are not strictly--- necessary, as they are mere aliases for 'symbolic' and 'symbolics', but--- they nonetheless make programming easier.----------------------------------------------------------------------------------------- | Generalization of 'Data.SBV.sBool'-sBool :: MonadSymbolic m => String -> m SBool-sBool = symbolic---- | Generalization of 'Data.SBV.sBool_'-sBool_ :: MonadSymbolic m => m SBool-sBool_ = free_---- | Generalization of 'Data.SBV.sBools'-sBools :: MonadSymbolic m => [String] -> m [SBool]-sBools = symbolics---- | Generalization of 'Data.SBV.sWord8'-sWord8 :: MonadSymbolic m => String -> m SWord8-sWord8 = symbolic---- | Generalization of 'Data.SBV.sWord8_'-sWord8_ :: MonadSymbolic m => m SWord8-sWord8_ = free_---- | Generalization of 'Data.SBV.sWord8s'-sWord8s :: MonadSymbolic m => [String] -> m [SWord8]-sWord8s = symbolics---- | Generalization of 'Data.SBV.sWord16'-sWord16 :: MonadSymbolic m => String -> m SWord16-sWord16 = symbolic---- | Generalization of 'Data.SBV.sWord16_'-sWord16_ :: MonadSymbolic m => m SWord16-sWord16_ = free_---- | Generalization of 'Data.SBV.sWord16s'-sWord16s :: MonadSymbolic m => [String] -> m [SWord16]-sWord16s = symbolics---- | Generalization of 'Data.SBV.sWord32'-sWord32 :: MonadSymbolic m => String -> m SWord32-sWord32 = symbolic---- | Generalization of 'Data.SBV.sWord32_'-sWord32_ :: MonadSymbolic m => m SWord32-sWord32_ = free_---- | Generalization of 'Data.SBV.sWord32s'-sWord32s :: MonadSymbolic m => [String] -> m [SWord32]-sWord32s = symbolics---- | Generalization of 'Data.SBV.sWord64'-sWord64 :: MonadSymbolic m => String -> m SWord64-sWord64 = symbolic---- | Generalization of 'Data.SBV.sWord64_'-sWord64_ :: MonadSymbolic m => m SWord64-sWord64_ = free_---- | Generalization of 'Data.SBV.sWord64s'-sWord64s :: MonadSymbolic m => [String] -> m [SWord64]-sWord64s = symbolics---- | Generalization of 'Data.SBV.sInt8'-sInt8 :: MonadSymbolic m => String -> m SInt8-sInt8 = symbolic---- | Generalization of 'Data.SBV.sInt8_'-sInt8_ :: MonadSymbolic m => m SInt8-sInt8_ = free_---- | Generalization of 'Data.SBV.sInt8s'-sInt8s :: MonadSymbolic m => [String] -> m [SInt8]-sInt8s = symbolics---- | Generalization of 'Data.SBV.sInt16'-sInt16 :: MonadSymbolic m => String -> m SInt16-sInt16 = symbolic---- | Generalization of 'Data.SBV.sInt16_'-sInt16_ :: MonadSymbolic m => m SInt16-sInt16_ = free_---- | Generalization of 'Data.SBV.sInt16s'-sInt16s :: MonadSymbolic m => [String] -> m [SInt16]-sInt16s = symbolics---- | Generalization of 'Data.SBV.sInt32'-sInt32 :: MonadSymbolic m => String -> m SInt32-sInt32 = symbolic---- | Generalization of 'Data.SBV.sInt32_'-sInt32_ :: MonadSymbolic m => m SInt32-sInt32_ = free_---- | Generalization of 'Data.SBV.sInt32s'-sInt32s :: MonadSymbolic m => [String] -> m [SInt32]-sInt32s = symbolics---- | Generalization of 'Data.SBV.sInt64'-sInt64 :: MonadSymbolic m => String -> m SInt64-sInt64 = symbolic---- | Generalization of 'Data.SBV.sInt64_'-sInt64_ :: MonadSymbolic m => m SInt64-sInt64_ = free_---- | Generalization of 'Data.SBV.sInt64s'-sInt64s :: MonadSymbolic m => [String] -> m [SInt64]-sInt64s = symbolics---- | Generalization of 'Data.SBV.sInteger'-sInteger:: MonadSymbolic m => String -> m SInteger-sInteger = symbolic---- | Generalization of 'Data.SBV.sInteger_'-sInteger_:: MonadSymbolic m => m SInteger-sInteger_ = free_---- | Generalization of 'Data.SBV.sIntegers'-sIntegers :: MonadSymbolic m => [String] -> m [SInteger]-sIntegers = symbolics---- | Generalization of 'Data.SBV.sReal'-sReal:: MonadSymbolic m => String -> m SReal-sReal = symbolic---- | Generalization of 'Data.SBV.sReal_'-sReal_:: MonadSymbolic m => m SReal-sReal_ = free_---- | Generalization of 'Data.SBV.sReals'-sReals :: MonadSymbolic m => [String] -> m [SReal]-sReals = symbolics---- | Generalization of 'Data.SBV.sFloat'-sFloat :: MonadSymbolic m => String -> m SFloat-sFloat = symbolic---- | Generalization of 'Data.SBV.sFloat_'-sFloat_ :: MonadSymbolic m => m SFloat-sFloat_ = free_---- | Generalization of 'Data.SBV.sFloats'-sFloats :: MonadSymbolic m => [String] -> m [SFloat]-sFloats = symbolics---- | Generalization of 'Data.SBV.sDouble'-sDouble :: MonadSymbolic m => String -> m SDouble-sDouble = symbolic---- | Generalization of 'Data.SBV.sDouble_'-sDouble_ :: MonadSymbolic m => m SDouble-sDouble_ = free_---- | Generalization of 'Data.SBV.sDoubles'-sDoubles :: MonadSymbolic m => [String] -> m [SDouble]-sDoubles = symbolics---- | Generalization of 'Data.SBV.sFPHalf'-sFPHalf :: String -> Symbolic SFPHalf-sFPHalf = symbolic---- | Generalization of 'Data.SBV.sFPHalf_'-sFPHalf_ :: Symbolic SFPHalf-sFPHalf_ = free_---- | Generalization of 'Data.SBV.sFPHalfs'-sFPHalfs :: [String] -> Symbolic [SFPHalf]-sFPHalfs = symbolics---- | Generalization of 'Data.SBV.sFPBFloat'-sFPBFloat :: String -> Symbolic SFPBFloat-sFPBFloat = symbolic---- | Generalization of 'Data.SBV.sFPBFloat_'-sFPBFloat_ :: Symbolic SFPBFloat-sFPBFloat_ = free_---- | Generalization of 'Data.SBV.sFPBFloats'-sFPBFloats :: [String] -> Symbolic [SFPBFloat]-sFPBFloats = symbolics---- | Generalization of 'Data.SBV.sFPSingle'-sFPSingle :: String -> Symbolic SFPSingle-sFPSingle = symbolic---- | Generalization of 'Data.SBV.sFPSingle_'-sFPSingle_ :: Symbolic SFPSingle-sFPSingle_ = free_---- | Generalization of 'Data.SBV.sFPSingles'-sFPSingles :: [String] -> Symbolic [SFPSingle]-sFPSingles = symbolics---- | Generalization of 'Data.SBV.sFPDouble'-sFPDouble :: String -> Symbolic SFPDouble-sFPDouble = symbolic---- | Generalization of 'Data.SBV.sFPDouble_'-sFPDouble_ :: Symbolic SFPDouble-sFPDouble_ = free_---- | Generalization of 'Data.SBV.sFPDoubles'-sFPDoubles :: [String] -> Symbolic [SFPDouble]-sFPDoubles = symbolics---- | Generalization of 'Data.SBV.sFPQuad'-sFPQuad :: String -> Symbolic SFPQuad-sFPQuad = symbolic---- | Generalization of 'Data.SBV.sFPQuad_'-sFPQuad_ :: Symbolic SFPQuad-sFPQuad_ = free_---- | Generalization of 'Data.SBV.sFPQuads'-sFPQuads :: [String] -> Symbolic [SFPQuad]-sFPQuads = symbolics---- | Generalization of 'Data.SBV.sFloatingPoint'-sFloatingPoint :: ValidFloat eb sb => String -> Symbolic (SFloatingPoint eb sb)-sFloatingPoint = symbolic---- | Generalization of 'Data.SBV.sFloatingPoint_'-sFloatingPoint_ :: ValidFloat eb sb => Symbolic (SFloatingPoint eb sb)-sFloatingPoint_ = free_---- | Generalization of 'Data.SBV.sFloatingPoints'-sFloatingPoints :: ValidFloat eb sb => [String] -> Symbolic [SFloatingPoint eb sb]-sFloatingPoints = symbolics---- | Generalization of 'Data.SBV.sWord'-sWord :: (KnownNat n, BVIsNonZero n) => MonadSymbolic m => String -> m (SWord n)-sWord = symbolic---- | Generalization of 'Data.SBV.sWord_'-sWord_ :: (KnownNat n, BVIsNonZero n) => MonadSymbolic m => m (SWord n)-sWord_ = free_---- | Generalization of 'Data.SBV.sWord64s'-sWords :: (KnownNat n, BVIsNonZero n) => MonadSymbolic m => [String] -> m [SWord n]-sWords = symbolics---- | Generalization of 'Data.SBV.sInt'-sInt :: (KnownNat n, BVIsNonZero n) => MonadSymbolic m => String -> m (SInt n)-sInt = symbolic---- | Generalization of 'Data.SBV.sInt_'-sInt_ :: (KnownNat n, BVIsNonZero n) => MonadSymbolic m => m (SInt n)-sInt_ = free_---- | Generalization of 'Data.SBV.sInts'-sInts :: (KnownNat n, BVIsNonZero n) => MonadSymbolic m => [String] -> m [SInt n]-sInts = symbolics---- | Generalization of 'Data.SBV.sChar'-sChar :: MonadSymbolic m => String -> m SChar-sChar = symbolic---- | Generalization of 'Data.SBV.sChar_'-sChar_ :: MonadSymbolic m => m SChar-sChar_ = free_---- | Generalization of 'Data.SBV.sChars'-sChars :: MonadSymbolic m => [String] -> m [SChar]-sChars = symbolics---- | Generalization of 'Data.SBV.sString'-sString :: MonadSymbolic m => String -> m SString-sString = symbolic---- | Generalization of 'Data.SBV.sString_'-sString_ :: MonadSymbolic m => m SString-sString_ = free_---- | Generalization of 'Data.SBV.sStrings'-sStrings :: MonadSymbolic m => [String] -> m [SString]-sStrings = symbolics---- | Generalization of 'Data.SBV.sList'-sList :: (SymVal a, MonadSymbolic m) => String -> m (SList a)-sList = symbolic---- | Generalization of 'Data.SBV.sList_'-sList_ :: (SymVal a, MonadSymbolic m) => m (SList a)-sList_ = free_---- | Generalization of 'Data.SBV.sLists'-sLists :: (SymVal a, MonadSymbolic m) => [String] -> m [SList a]-sLists = symbolics---- | Generalization of 'Data.SBV.sAray'-sArray :: (SymVal a, SymVal b, MonadSymbolic m) => String -> m (SArray a b)-sArray = symbolic---- | Generalization of 'Data.SBV.sList_'-sArray_ :: (SymVal a, SymVal b, MonadSymbolic m) => m (SArray a b)-sArray_ = free_---- | Generalization of 'Data.SBV.sLists'-sArrays :: (SymVal a, SymVal b, MonadSymbolic m) => [String] -> m [SArray a b]-sArrays = symbolics---- | Identify tuple like things. Note that there are no methods, just instances to control type inference-class SymTuple a-instance SymTuple ()-instance SymTuple (a, b)-instance SymTuple (a, b, c)-instance SymTuple (a, b, c, d)-instance SymTuple (a, b, c, d, e)-instance SymTuple (a, b, c, d, e, f)-instance SymTuple (a, b, c, d, e, f, g)-instance SymTuple (a, b, c, d, e, f, g, h)---- | Generalization of 'Data.SBV.sTuple'-sTuple :: (SymTuple tup, SymVal tup, MonadSymbolic m) => String -> m (SBV tup)-sTuple = symbolic---- | Generalization of 'Data.SBV.sTuple_'-sTuple_ :: (SymTuple tup, SymVal tup, MonadSymbolic m) => m (SBV tup)-sTuple_ = free_---- | Generalization of 'Data.SBV.sTuples'-sTuples :: (SymTuple tup, SymVal tup, MonadSymbolic m) => [String] -> m [SBV tup]-sTuples = symbolics---- | Generalization of 'Data.SBV.sRational'-sRational :: MonadSymbolic m => String -> m SRational-sRational = symbolic---- | Generalization of 'Data.SBV.sRational_'-sRational_ :: MonadSymbolic m => m SRational-sRational_ = free_---- | Generalization of 'Data.SBV.sRationals'-sRationals :: MonadSymbolic m => [String] -> m [SRational]-sRationals = symbolics---- | Generalization of 'Data.SBV.sEither'-sEither :: (SymVal a, SymVal b, MonadSymbolic m) => String -> m (SEither a b)-sEither = symbolic---- | Generalization of 'Data.SBV.sEither_'-sEither_ :: (SymVal a, SymVal b, MonadSymbolic m) => m (SEither a b)-sEither_ = free_---- | Generalization of 'Data.SBV.sEithers'-sEithers :: (SymVal a, SymVal b, MonadSymbolic m) => [String] -> m [SEither a b]-sEithers = symbolics---- | Generalization of 'Data.SBV.sMaybe'-sMaybe :: (SymVal a, MonadSymbolic m) => String -> m (SMaybe a)-sMaybe = symbolic---- | Generalization of 'Data.SBV.sMaybe_'-sMaybe_ :: (SymVal a, MonadSymbolic m) => m (SMaybe a)-sMaybe_ = free_---- | Generalization of 'Data.SBV.sMaybes'-sMaybes :: (SymVal a, MonadSymbolic m) => [String] -> m [SMaybe a]-sMaybes = symbolics---- | Generalization of 'Data.SBV.sSet'-sSet :: (Ord a, SymVal a, MonadSymbolic m) => String -> m (SSet a)-sSet = symbolic---- | Generalization of 'Data.SBV.sMaybe_'-sSet_ :: (Ord a, SymVal a, MonadSymbolic m) => m (SSet a)-sSet_ = free_---- | Generalization of 'Data.SBV.sMaybes'-sSets :: (Ord a, SymVal a, MonadSymbolic m) => [String] -> m [SSet a]-sSets = symbolics---- | Generalization of 'Data.SBV.solve'-solve :: MonadSymbolic m => [SBool] -> m SBool-solve = return . sAnd---- | Convert an SReal to an SInteger. That is, it computes the--- largest integer @n@ that satisfies @sIntegerToSReal n <= r@--- essentially giving us the @floor@.------ For instance, @1.3@ will be @1@, but @-1.3@ will be @-2@.-sRealToSInteger :: SReal -> SInteger-sRealToSInteger x-  | Just i <- unliteral x, isExactRational i-  = literal $ floor (toRational i)-  | True-  = SBV (SVal KUnbounded (Right (cache y)))-  where y st = do xsv <- sbvToSV st x-                  newExpr st KUnbounded (SBVApp (KindCast KReal KUnbounded) [xsv])---- | Convert an SReal to an SInteger, truncating version.-sRealToSIntegerTruncate :: SReal -> SInteger-sRealToSIntegerTruncate x = ite (x .< 0) (sRealToSInteger x) (- (sRealToSInteger (- x)))---- | label: Label the result of an expression. This is essentially a no-op, but useful as it generates a comment in the generated C/SMT-Lib code.--- Note that if the argument is a constant, then the label is dropped completely, per the usual constant folding strategy. Compare this to 'observe'--- which is good for printing counter-examples.-label :: SymVal a => String -> SBV a -> SBV a-label m x-   | Just _ <- unliteral x = x-   | True                  = SBV $ SVal k $ Right $ cache r-  where k    = kindOf x-        r st = do xsv <- sbvToSV st x-                  newExpr st k (SBVApp (Label m) [xsv])----- | Observe the value of an expression, if the given condition holds.  Such values are useful in model construction, as they are printed part of a satisfying model, or a--- counter-example. The same works for quick-check as well. Useful when we want to see intermediate values, or expected/obtained--- pairs in a particular run. Note that an observed expression is always symbolic, i.e., it won't be constant folded. Compare this to 'label'--- which is used for putting a label in the generated SMTLib-C code.------ NB. If the observed expression happens under a SBV-lambda expression, then it is silently ignored; since--- there's no way to access the value of such a value.-observeIf :: SymVal a => (a -> Bool) -> String -> SBV a -> SBV a-observeIf cond m x-  | Just bad <- checkObservableName m-  = error bad-  | True-  = SBV $ SVal k $ Right $ cache r-  where k = kindOf x-        r st = do xsv <- sbvToSV st (label ("Observing: " ++ m) x)-                  recordObservable st m (cond . fromCV) xsv-                  return xsv---- | Observe the value of an expression, unconditionally. See 'observeIf' for a generalized version.-observe :: SymVal a => String -> SBV a -> SBV a-observe = observeIf (const True)---- | Symbolic Comparisons. Similar to 'Eq', we cannot implement Haskell's 'Ord' class--- since there is no way to return an 'Ordering' value from a symbolic comparison.--- Furthermore, 'OrdSymbolic' requires 'Mergeable' to implement if-then-else, for the--- benefit of implementing symbolic versions of 'max' and 'min' functions.-infix 4 .<, .<=, .>, .>=-class (Mergeable a, EqSymbolic a) => OrdSymbolic a where-  -- | Symbolic less than.-  (.<)  :: a -> a -> SBool-  -- | Symbolic less than or equal to.-  (.<=) :: a -> a -> SBool-  -- | Symbolic greater than.-  (.>)  :: a -> a -> SBool-  -- | Symbolic greater than or equal to.-  (.>=) :: a -> a -> SBool-  -- | Symbolic minimum.-  smin  :: a -> a -> a-  -- | Symbolic maximum.-  smax  :: a -> a -> a-  -- | Is the value within the allowed /inclusive/ range?-  inRange    :: a -> (a, a) -> SBool--  {-# MINIMAL (.<) #-}--  a .<= b    = a .< b .|| a .== b-  a .>  b    = b .<  a-  a .>= b    = b .<= a--  a `smin` b = ite (a .<= b) a b-  a `smax` b = ite (a .<= b) b a--  inRange x (y, z) = x .>= y .&& x .<= z---{- We can't have a generic instance of the form:--instance Eq a => EqSymbolic a where-  x .== y = if x == y then true else sFalse--even if we're willing to allow Flexible/undecidable instances..-This is because if we allow this it would imply EqSymbolic (SBV a);-since (SBV a) has to be Eq as it must be a Num. But this wouldn't be-the right choice obviously; as the Eq instance is bogus for SBV-for natural reasons..--}---- It is tempting to put in an @Eq a@ superclass here. But doing so--- is complicated, as it requires all underlying types to have equality,--- which is at best shaky for algebraic reals and sets. So, leave it out.-instance (HasKind a, SymVal a) => EqSymbolic (SBV a) where-  SBV x .== SBV y = SBV (svEqual x y)-  SBV x ./= SBV y = SBV (svNotEqual x y)--  SBV x .=== SBV y = SBV (svStrongEqual x y)--  -- Custom version of distinct that generates better code for base types-  distinct []                                             = sTrue-  distinct [_]                                            = sTrue-  distinct xs | all isConc xs                             = checkDiff xs-              | [SBV a, SBV b] <- xs, a `is` svBool True  = SBV $ svNot b-              | [SBV a, SBV b] <- xs, b `is` svBool True  = SBV $ svNot a-              | [SBV a, SBV b] <- xs, a `is` svBool False = SBV b-              | [SBV a, SBV b] <- xs, b `is` svBool False = SBV a-              -- 3 booleans can't be distinct!-              | (x : _ : _ : _) <- xs, isBool x           = sFalse-              | True                                      = SBV (SVal KBool (Right (cache r)))-    where r st = do xsv <- mapM (sbvToSV st) xs-                    newExpr st KBool (SBVApp NotEqual xsv)--          -- We call this in case all are concrete, which will-          -- reduce to a constant and generate no code at all!-          -- Note that this is essentially the same as the default-          -- definition, which unfortunately we can no longer call!-          checkDiff []     = sTrue-          checkDiff (a:as) = sAll (a ./=) as .&& checkDiff as--          -- Sigh, we can't use isConcrete since that requires SymVal-          -- constraint that we don't have here. (To support SBools.)-          isConc (SBV (SVal _ (Left _))) = True-          isConc _                       = False--          -- Likewise here; need to go lower.-          SVal k1 (Left c1) `is` SVal k2 (Left c2) = (k1, c1) == (k2, c2)-          _                 `is` _                 = False--          isBool (SBV (SVal KBool _)) = True-          isBool _                    = False--  -- Custom version of distinctExcept that generates better code for base types-  distinctExcept []  _       = sTrue-  distinctExcept [_] _       = sTrue-  distinctExcept es  ignored-    | all isConc (es ++ ignored)-    = distinct (filter ignoreConc es)-    | True-    = SBV (SVal KBool (Right (cache r)))-    where ignoreConc x = case x `sElem` ignored of-                           SBV (SVal KBool (Left cv)) -> cvToBool cv-                           _                          -> error $ "distinctExcept: Impossible happened, concrete sElem failed: " ++ show (es, ignored, x)--          r st = do let incr x table = ite (x `sElem` ignored) (0 :: SInteger) (1 + readArrayNoEq table x)--                        initArray :: SArray a Integer-                        initArray = lambdaArray (const 0)--                        finalArray = foldl (\table x -> writeArrayNoKnd table x (incr x table)) initArray es--                    sbvToSV st $ sAll (\e -> readArrayNoEq finalArray e .<= (1 :: SInteger)) es--          -- Sigh, we can't use isConcrete since that requires SymVal-          -- constraint that we don't have here. (To support SBools.)-          isConc (SBV (SVal _ (Left _))) = True-          isConc _                       = False--          -- Version of readArray that doesn't have the Eq constraint, since we don't have it here-          readArrayNoEq array key = SBV . SVal KUnbounded . Right $ cache g-             where g st = do f <- sbvToSV st array-                             k <- sbvToSV st key-                             newExpr st KUnbounded (SBVApp ReadArray [f, k])--          writeArrayNoKnd :: forall key. HasKind key => SArray key Integer -> SBV key -> SInteger -> SArray key Integer-          writeArrayNoKnd array key value = SBV . SVal k . Right $ cache g-              where k  = KArray (kindOf (Proxy @key)) KUnbounded--                    g st = do arr    <- sbvToSV st array-                              keyVal <- sbvToSV st key-                              val    <- sbvToSV st value-                              newExpr st k (SBVApp WriteArray [arr, keyVal, val])---- We don't want to do a generic OrdSymbolic (SBV a) instance; since that would be dangerous, like the case--- for Num. So, we explicitly define for each type we care about.--#define MKSORD(CSTR, TYPE)                                                            \-instance CSTR => OrdSymbolic TYPE where {                                             \-  a@(SBV x) .<  b@(SBV y) | smtComparable "<"   a b = SBV (svLessThan x y)            \-                          | True                    = SBV (svStructuralLessThan x y); \-                                                                                      \-  a@(SBV x) .<= b@(SBV y) | smtComparable ".<=" a b = SBV (svLessEq x y)              \-                          | True                    = a .< b .|| a .== b;             \-                                                                                      \-  a@(SBV x) .>  b@(SBV y) | smtComparable ">"   a b = SBV (svGreaterThan x y)         \-                          | True                    = b .< a;                         \-                                                                                      \-  a@(SBV x) .>= b@(SBV y) | smtComparable ">="  a b = SBV (svGreaterEq x y)           \-                          | True                    = b .<= a;                        \-}                                                                                     \---- Derive basic instances we need. NB. We don't give the SRational instance here. It's handled--- in Data/SBV/Rational due to representation issues.-MKSORD((),                          SInteger)-MKSORD((),                          SWord8)-MKSORD((),                          SWord16)-MKSORD((),                          SWord32)-MKSORD((),                          SWord64)-MKSORD((),                          SInt8)-MKSORD((),                          SInt16)-MKSORD((),                          SInt32)-MKSORD((),                          SInt64)-MKSORD((),                          SFloat)-MKSORD((),                          SChar)-MKSORD((SymVal a),                  (SMaybe  a))-MKSORD((SymVal a),                  (SList   a))-MKSORD((SymVal a, SymVal b),        (SEither a b))-MKSORD((),                          SDouble)-MKSORD((),                          SReal)-MKSORD((KnownNat n, BVIsNonZero n), (SWord n))-MKSORD((KnownNat n, BVIsNonZero n), (SInt  n))-MKSORD((ValidFloat eb sb),          (SFloatingPoint eb sb))---- Tuples-MKSORD((SymVal a, SymVal b),                                                             (SBV (a, b)))-MKSORD((SymVal a, SymVal b, SymVal c),                                                   (SBV (a, b, c)))-MKSORD((SymVal a, SymVal b, SymVal c, SymVal d),                                         (SBV (a, b, c, d)))-MKSORD((SymVal a, SymVal b, SymVal c, SymVal d, SymVal e),                               (SBV (a, b, c, d, e)))-MKSORD((SymVal a, SymVal b, SymVal c, SymVal d, SymVal e, SymVal f),                     (SBV (a, b, c, d, e, f)))-MKSORD((SymVal a, SymVal b, SymVal c, SymVal d, SymVal e, SymVal f, SymVal g),           (SBV (a, b, c, d, e, f, g)))-MKSORD((SymVal a, SymVal b, SymVal c, SymVal d, SymVal e, SymVal f, SymVal g, SymVal h), (SBV (a, b, c, d, e, f, g, h)))-#undef MKSORD---- Is this a type that's comparable by underlying translation to SMTLib?--- Note that we allow concrete versions to go through unless the type is a set, as there's really no reason not to.-smtComparable :: (SymVal a, HasKind a) => String -> SBV a -> SBV a -> Bool-smtComparable op x y-  | isConcrete x && isConcrete y && not (isSet k)-  = True-  | True-  = case k of-      KBool         -> True-      KBounded   {} -> True-      KUnbounded {} -> True-      KReal      {} -> True-      KUserSort  {} -> True-      KFloat        -> True-      KDouble       -> True-      KRational  {} -> True-      KFP        {} -> True-      KChar         -> True-      KString       -> True-      KList      {} -> nope     -- Unfortunately, no way for us to desugar this-      KSet       {} -> nope     -- Ditto here..-      KTuple     {} -> False-      KMaybe     {} -> False-      KEither    {} -> False-      KArray     {} -> True- where k    = kindOf x-       nope = error $ "Data.SBV.OrdSymbolic: SMTLib does not support " ++ op ++ " for " ++ show k---- Bool-instance EqSymbolic Bool where-  x .== y = fromBool $ x == y---- Lists-instance EqSymbolic a => EqSymbolic [a] where-  []     .==  []     = sTrue-  (x:xs) .==  (y:ys) = x .== y .&& xs .== ys-  _      .==  _      = sFalse--  []     .=== []     = sTrue-  (x:xs) .=== (y:ys) = x .=== y .&& xs .=== ys-  _      .=== _      = sFalse--instance OrdSymbolic a => OrdSymbolic [a] where-  []     .< []     = sFalse-  []     .< _      = sTrue-  _      .< []     = sFalse-  (x:xs) .< (y:ys) = x .< y .|| (x .== y .&& xs .< ys)---- NonEmpty-instance EqSymbolic a => EqSymbolic (NonEmpty a) where-  (x :| xs) .==  (y :| ys) = x : xs .==  y : ys-  (x :| xs) .=== (y :| ys) = x : xs .=== y : ys--instance OrdSymbolic a => OrdSymbolic (NonEmpty a) where-   (x :| xs) .< (y :| ys) = x : xs .< y : ys---- Maybe-instance EqSymbolic a => EqSymbolic (Maybe a) where-  Nothing .== Nothing = sTrue-  Just a  .== Just b  = a .== b-  _       .== _       = sFalse--instance OrdSymbolic a => OrdSymbolic (Maybe a) where-  Nothing .<  Nothing = sFalse-  Nothing .<  _       = sTrue-  Just _  .<  Nothing = sFalse-  Just a  .<  Just b  = a .< b---- Either-instance (EqSymbolic a, EqSymbolic b) => EqSymbolic (Either a b) where-  Left a  .==  Left b  = a .== b-  Right a .==  Right b = a .== b-  _       .==  _       = sFalse--  Left a  .=== Left b  = a .=== b-  Right a .=== Right b = a .=== b-  _       .=== _       = sFalse--instance (OrdSymbolic a, OrdSymbolic b) => OrdSymbolic (Either a b) where-  Left a  .< Left b  = a .< b-  Left _  .< Right _ = sTrue-  Right _ .< Left _  = sFalse-  Right a .< Right b = a .< b---- 2-Tuple-instance (EqSymbolic a, EqSymbolic b) => EqSymbolic (a, b) where-  (a0, b0) .==  (a1, b1) = a0 .==  a1 .&& b0 .==  b1-  (a0, b0) .=== (a1, b1) = a0 .=== a1 .&& b0 .=== b1--instance (OrdSymbolic a, OrdSymbolic b) => OrdSymbolic (a, b) where-  (a0, b0) .< (a1, b1) = a0 .< a1 .|| (a0 .== a1 .&& b0 .< b1)---- 3-Tuple-instance (EqSymbolic a, EqSymbolic b, EqSymbolic c) => EqSymbolic (a, b, c) where-  (a0, b0, c0) .==  (a1, b1, c1) = (a0, b0) .==  (a1, b1) .&& c0 .==  c1-  (a0, b0, c0) .=== (a1, b1, c1) = (a0, b0) .=== (a1, b1) .&& c0 .=== c1--instance (OrdSymbolic a, OrdSymbolic b, OrdSymbolic c) => OrdSymbolic (a, b, c) where-  (a0, b0, c0) .< (a1, b1, c1) = (a0, b0) .< (a1, b1) .|| ((a0, b0) .== (a1, b1) .&& c0 .< c1)---- 4-Tuple-instance (EqSymbolic a, EqSymbolic b, EqSymbolic c, EqSymbolic d) => EqSymbolic (a, b, c, d) where-  (a0, b0, c0, d0) .==  (a1, b1, c1, d1) = (a0, b0, c0) .==  (a1, b1, c1) .&& d0 .==  d1-  (a0, b0, c0, d0) .=== (a1, b1, c1, d1) = (a0, b0, c0) .=== (a1, b1, c1) .&& d0 .=== d1--instance (OrdSymbolic a, OrdSymbolic b, OrdSymbolic c, OrdSymbolic d) => OrdSymbolic (a, b, c, d) where-  (a0, b0, c0, d0) .< (a1, b1, c1, d1) = (a0, b0, c0) .< (a1, b1, c1) .|| ((a0, b0, c0) .== (a1, b1, c1) .&& d0 .< d1)---- 5-Tuple-instance (EqSymbolic a, EqSymbolic b, EqSymbolic c, EqSymbolic d, EqSymbolic e) => EqSymbolic (a, b, c, d, e) where-  (a0, b0, c0, d0, e0) .==  (a1, b1, c1, d1, e1) = (a0, b0, c0, d0) .==  (a1, b1, c1, d1) .&& e0 .==  e1-  (a0, b0, c0, d0, e0) .=== (a1, b1, c1, d1, e1) = (a0, b0, c0, d0) .=== (a1, b1, c1, d1) .&& e0 .=== e1--instance (OrdSymbolic a, OrdSymbolic b, OrdSymbolic c, OrdSymbolic d, OrdSymbolic e) => OrdSymbolic (a, b, c, d, e) where-  (a0, b0, c0, d0, e0) .< (a1, b1, c1, d1, e1) = (a0, b0, c0, d0) .< (a1, b1, c1, d1) .|| ((a0, b0, c0, d0) .== (a1, b1, c1, d1) .&& e0 .< e1)---- 6-Tuple-instance (EqSymbolic a, EqSymbolic b, EqSymbolic c, EqSymbolic d, EqSymbolic e, EqSymbolic f) => EqSymbolic (a, b, c, d, e, f) where-  (a0, b0, c0, d0, e0, f0) .==  (a1, b1, c1, d1, e1, f1) = (a0, b0, c0, d0, e0) .==  (a1, b1, c1, d1, e1) .&& f0 .==  f1-  (a0, b0, c0, d0, e0, f0) .=== (a1, b1, c1, d1, e1, f1) = (a0, b0, c0, d0, e0) .=== (a1, b1, c1, d1, e1) .&& f0 .=== f1--instance (OrdSymbolic a, OrdSymbolic b, OrdSymbolic c, OrdSymbolic d, OrdSymbolic e, OrdSymbolic f) => OrdSymbolic (a, b, c, d, e, f) where-  (a0, b0, c0, d0, e0, f0) .< (a1, b1, c1, d1, e1, f1) =    (a0, b0, c0, d0, e0) .<  (a1, b1, c1, d1, e1)-                                                       .|| ((a0, b0, c0, d0, e0) .== (a1, b1, c1, d1, e1) .&& f0 .< f1)---- 7-Tuple-instance (EqSymbolic a, EqSymbolic b, EqSymbolic c, EqSymbolic d, EqSymbolic e, EqSymbolic f, EqSymbolic g) => EqSymbolic (a, b, c, d, e, f, g) where-  (a0, b0, c0, d0, e0, f0, g0) .==  (a1, b1, c1, d1, e1, f1, g1) = (a0, b0, c0, d0, e0, f0) .==  (a1, b1, c1, d1, e1, f1) .&& g0 .==  g1-  (a0, b0, c0, d0, e0, f0, g0) .=== (a1, b1, c1, d1, e1, f1, g1) = (a0, b0, c0, d0, e0, f0) .=== (a1, b1, c1, d1, e1, f1) .&& g0 .=== g1--instance (OrdSymbolic a, OrdSymbolic b, OrdSymbolic c, OrdSymbolic d, OrdSymbolic e, OrdSymbolic f, OrdSymbolic g) => OrdSymbolic (a, b, c, d, e, f, g) where-  (a0, b0, c0, d0, e0, f0, g0) .< (a1, b1, c1, d1, e1, f1, g1) =    (a0, b0, c0, d0, e0, f0) .<  (a1, b1, c1, d1, e1, f1)-                                                               .|| ((a0, b0, c0, d0, e0, f0) .== (a1, b1, c1, d1, e1, f1) .&& g0 .< g1)---- | Regular expressions can be compared for equality. Note that we diverge here from the equality--- in the concrete sense; i.e., the Eq instance does not match the symbolic case. This is a bit unfortunate,--- but unavoidable with the current design of how we "distinguish" operators. Hopefully shouldn't be a big deal,--- though one should be careful.-instance EqSymbolic RegExp where-  r1 .== r2 = SBV $ SVal KBool $ Right $ cache r-    where r st = newExpr st KBool $ SBVApp (RegExOp (RegExEq r1 r2))  []--  r1 ./= r2 = SBV $ SVal KBool $ Right $ cache r-    where r st = newExpr st KBool $ SBVApp (RegExOp (RegExNEq r1 r2)) []---- | Symbolic Numbers. This is a simple class that simply incorporates all number like--- base types together, simplifying writing polymorphic type-signatures that work for all--- symbolic numbers, such as 'SWord8', 'SInt8' etc. For instance, we can write a generic--- list-minimum function as follows:------ @---    mm :: SIntegral a => [SBV a] -> SBV a---    mm = foldr1 (\a b -> ite (a .<= b) a b)--- @------ It is similar to the standard 'Integral' class, except ranging over symbolic instances.-class (SymVal a, Num a, Num (SBV a), Bits a, Integral a) => SIntegral a---- 'SIntegral' Instances, skips Real/Float/Bool-instance SIntegral Word8-instance SIntegral Word16-instance SIntegral Word32-instance SIntegral Word64-instance SIntegral Int8-instance SIntegral Int16-instance SIntegral Int32-instance SIntegral Int64-instance SIntegral Integer-instance (KnownNat n, BVIsNonZero n) => SIntegral (WordN n)-instance (KnownNat n, BVIsNonZero n) => SIntegral (IntN n)---- | Zero extend a bit-vector.-zeroExtend :: forall n m bv. ( KnownNat n, BVIsNonZero n, SymVal (bv n)-                             , KnownNat m, BVIsNonZero m, SymVal (bv m)-                             , n + 1 <= m-                             , SIntegral (bv (m - n))-                             , BVIsNonZero (m - n)-                             ) => SBV (bv n)    -- ^ Input, of size @n@-                               -> SBV (bv m)    -- ^ Output, of size @m@. @n < m@ must hold-zeroExtend n = SBV $ svZeroExtend i (unSBV n)-  where nv = intOfProxy (Proxy @n)-        mv = intOfProxy (Proxy @m)-        i  = fromIntegral (mv - nv)---- | Sign extend a bit-vector.-signExtend :: forall n m bv. ( KnownNat n, BVIsNonZero n, SymVal (bv n)-                             , KnownNat m, BVIsNonZero m, SymVal (bv m)-                             , n + 1 <= m-                             , SFiniteBits (bv n)-                             , SIntegral   (bv (m - n))-                             , BVIsNonZero (m - n)-                             ) => SBV (bv n)  -- ^ Input, of size @n@-                               -> SBV (bv m)  -- ^ Output, of size @m@. @n < m@ must hold-signExtend n = SBV $ svSignExtend i (unSBV n)-  where nv = intOfProxy (Proxy @n)-        mv = intOfProxy (Proxy @m)-        i  = fromIntegral (mv - nv)----- | Finite bit-length symbolic values. Essentially the same as 'SIntegral', but further leaves out 'Integer'. Loosely--- based on Haskell's @FiniteBits@ class, but with more methods defined and structured differently to fit into the--- symbolic world view. Minimal complete definition: 'sFiniteBitSize'.-class (Ord a, SymVal a, Num a, Num (SBV a), OrdSymbolic (SBV a), Bits a) => SFiniteBits a where-    -- | Bit size.-    sFiniteBitSize      :: SBV a -> Int-    -- | Least significant bit of a word, always stored at index 0.-    lsb                 :: SBV a -> SBool-    -- | Most significant bit of a word, always stored at the last position.-    msb                 :: SBV a -> SBool-    -- | Big-endian blasting of a word into its bits.-    blastBE             :: SBV a -> [SBool]-    -- | Little-endian blasting of a word into its bits.-    blastLE             :: SBV a -> [SBool]-    -- | Reconstruct from given bits, given in little-endian.-    fromBitsBE          :: [SBool] -> SBV a-    -- | Reconstruct from given bits, given in little-endian.-    fromBitsLE          :: [SBool] -> SBV a-    -- | Replacement for 'testBit', returning 'SBool' instead of 'Bool'.-    sTestBit            :: SBV a -> Int -> SBool-    -- | Variant of 'sTestBit', where we want to extract multiple bit positions.-    sExtractBits        :: SBV a -> [Int] -> [SBool]-    -- | Variant of 'popCount', returning a symbolic value.-    sPopCount           :: SBV a -> SWord8-    -- | A combo of 'setBit' and 'clearBit', when the bit to be set is symbolic.-    setBitTo            :: SBV a -> Int -> SBool -> SBV a-    -- | Variant of 'setBitTo' when the index is symbolic. If the index it out-of-bounds,-    -- then the result is underspecified.-    sSetBitTo           :: Integral a => SBV a -> SBV a -> SBool -> SBV a-    -- | Full adder, returns carry-out from the addition. Only for unsigned quantities.-    fullAdder           :: SBV a -> SBV a -> (SBool, SBV a)-    -- | Full multiplier, returns both high and low-order bits. Only for unsigned quantities.-    fullMultiplier      :: SBV a -> SBV a -> (SBV a, SBV a)-    -- | Count leading zeros in a word, big-endian interpretation.-    sCountLeadingZeros  :: SBV a -> SWord8-    -- | Count trailing zeros in a word, big-endian interpretation.-    sCountTrailingZeros :: SBV a -> SWord8--    {-# MINIMAL sFiniteBitSize #-}--    -- Default implementations-    lsb (SBV v) = SBV (svTestBit v 0)-    msb x       = sTestBit x (sFiniteBitSize x - 1)--    blastBE   = reverse . blastLE-    blastLE x = map (sTestBit x) [0 .. intSizeOf x - 1]--    fromBitsBE = fromBitsLE . reverse-    fromBitsLE bs-       | length bs /= w-       = error $ "SBV.SFiniteBits.fromBitsLE/BE: Expected: " ++ show w ++ " bits, received: " ++ show (length bs)-       | True-       = result-       where w = sFiniteBitSize result-             result = go 0 0 bs--             go !acc _  []     = acc-             go !acc !i (x:xs) = go (ite x (setBit acc i) acc) (i+1) xs--    sTestBit (SBV x) i = SBV (svTestBit x i)-    sExtractBits x     = map (sTestBit x)--    -- NB. 'sPopCount' returns an 'SWord8', which can overflow when used on quantities that have-    -- more than 255 bits. For the regular interface, this suffices for all types we support.-    -- For the Dynamic interface, if we ever implement this, this will fail for bit-vectors-    -- larger than that many bits. The alternative would be to return SInteger here, but that-    -- seems a total overkill for most use cases. If such is required, users are encouraged-    -- to define their own variants, which is rather easy.-    sPopCount x-      | Just v <- unliteral x = go 0 v-      | True                  = sum [ite b 1 0 | b <- blastLE x]-      where -- concrete case-            go !c 0 = c-            go !c w = go (c+1) (w .&. (w-1))--    setBitTo x i b = ite b (setBit x i) (clearBit x i)--    sSetBitTo x idx b-      | Just i <- unliteral idx, Just index <- safe i-      = setBitTo x index b-      | True-      = go x [0 .. sFiniteBitSize x - 1]-      where -- paranoia check: make sure index can fit in an int-            safe i = let asInteger   = toInteger i-                         asInt       = fromIntegral asInteger-                         backInteger = toInteger asInt-                     in if backInteger == asInteger-                        then Just asInt-                        else Nothing--            go v []     = v-            go v (i:is) = go (ite (idx .== literal (fromIntegral i)) (setBitTo v (fromIntegral i) b) v) is--    fullAdder a b-      | isSigned a = error "fullAdder: only works on unsigned numbers"-      | True       = (a .> s .|| b .> s, s)-      where s = a + b--    -- N.B. The higher-order bits are determined using a simple shift-add multiplier,-    -- thus involving bit-blasting. It'd be naive to expect SMT solvers to deal efficiently-    -- with properties involving this function, at least with the current state of the art.-    fullMultiplier a b-      | isSigned a = error "fullMultiplier: only works on unsigned numbers"-      | True       = (go (sFiniteBitSize a) 0 a, a*b)-      where go 0 p _ = p-            go n p x = let (c, p')  = ite (lsb x) (fullAdder p b) (sFalse, p)-                           (o, p'') = shiftIn c p'-                           (_, x')  = shiftIn o x-                       in go (n-1) p'' x'-            shiftIn k v = (lsb v, mask .|. (v `shiftR` 1))-               where mask = ite k (bit (sFiniteBitSize v - 1)) 0--    -- See the note for 'sPopCount' for a comment on why we return 'SWord8'-    sCountLeadingZeros x = fromIntegral m - go m-      where m = sFiniteBitSize x - 1--            -- NB. When i is 0 below, which happens when x is 0 as we count all the way down,-            -- we return -1, which is equal to 2^n-1, giving us: n-1-(2^n-1) = n-2^n = n, as required, i.e., the bit-size.-            go :: Int -> SWord8-            go i | i < 0 = i8-                 | True  = ite (sTestBit x i) i8 (go (i-1))-               where i8 = literal (fromIntegral i :: Word8)--    -- See the note for 'sPopCount' for a comment on why we return 'SWord8'-    sCountTrailingZeros x = go 0-       where m = sFiniteBitSize x--             go :: Int -> SWord8-             go i | i >= m = i8-                  | True   = ite (sTestBit x i) i8 (go (i+1))-                where i8 = literal (fromIntegral i :: Word8)---- 'SFiniteBits' Instances, skips Real/Float/Bool/Integer-instance SFiniteBits Word8  where sFiniteBitSize _ =  8-instance SFiniteBits Word16 where sFiniteBitSize _ = 16-instance SFiniteBits Word32 where sFiniteBitSize _ = 32-instance SFiniteBits Word64 where sFiniteBitSize _ = 64-instance SFiniteBits Int8   where sFiniteBitSize _ =  8-instance SFiniteBits Int16  where sFiniteBitSize _ = 16-instance SFiniteBits Int32  where sFiniteBitSize _ = 32-instance SFiniteBits Int64  where sFiniteBitSize _ = 64-instance (KnownNat n, BVIsNonZero n) => SFiniteBits (WordN n) where sFiniteBitSize _ = intOfProxy (Proxy @n)-instance (KnownNat n, BVIsNonZero n) => SFiniteBits (IntN  n) where sFiniteBitSize _ = intOfProxy (Proxy @n)---- | Returns 1 if the boolean is 'sTrue', otherwise 0.-oneIf :: (Ord a, Num (SBV a), SymVal a) => SBool -> SBV a-oneIf t = ite t 1 0---- | Lift a pseudo-boolean op, performing checks-liftPB :: String -> PBOp -> [SBool] -> SBool-liftPB w o xs-  | Just e <- check o-  = error $ "SBV." ++ w ++ ": " ++ e-  | True-  = result-  where check (PB_AtMost  k) = pos k-        check (PB_AtLeast k) = pos k-        check (PB_Exactly k) = pos k-        check (PB_Le cs   k) = pos k `mplus` match cs-        check (PB_Ge cs   k) = pos k `mplus` match cs-        check (PB_Eq cs   k) = pos k `mplus` match cs--        pos k-          | k < 0 = Just $ "comparison value must be positive, received: " ++ show k-          | True  = Nothing--        match cs-          | any (< 0) cs = Just $ "coefficients must be non-negative. Received: " ++ show cs-          | lxs /= lcs   = Just $ "coefficient length must match number of arguments. Received: " ++ show (lcs, lxs)-          | True         = Nothing-          where lxs = length xs-                lcs = length cs--        result = SBV (SVal KBool (Right (cache r)))-        r st   = do xsv <- mapM (sbvToSV st) xs-                    -- PseudoBoolean's implicitly require support for integers, so make sure to register that kind!-                    registerKind st KUnbounded-                    newExpr st KBool (SBVApp (PseudoBoolean o) xsv)---- | 'sTrue' if at most @k@ of the input arguments are 'sTrue'-pbAtMost :: [SBool] -> Int -> SBool-pbAtMost xs k- | k < 0             = error $ "SBV.pbAtMost: Non-negative value required, received: " ++ show k- | all isConcrete xs = literal $ sum (map (pbToInteger "pbAtMost" 1) xs) <= fromIntegral k- | True              = liftPB "pbAtMost" (PB_AtMost k) xs---- | 'sTrue' if at least @k@ of the input arguments are 'sTrue'-pbAtLeast :: [SBool] -> Int -> SBool-pbAtLeast xs k- | k < 0             = error $ "SBV.pbAtLeast: Non-negative value required, received: " ++ show k- | all isConcrete xs = literal $ sum (map (pbToInteger "pbAtLeast" 1) xs) >= fromIntegral k- | True              = liftPB "pbAtLeast" (PB_AtLeast k) xs---- | 'sTrue' if exactly @k@ of the input arguments are 'sTrue'-pbExactly :: [SBool] -> Int -> SBool-pbExactly xs k- | k < 0             = error $ "SBV.pbExactly: Non-negative value required, received: " ++ show k- | all isConcrete xs = literal $ sum (map (pbToInteger "pbExactly" 1) xs) == fromIntegral k- | True              = liftPB "pbExactly" (PB_Exactly k) xs---- | 'sTrue' if the sum of coefficients for 'sTrue' elements is at most @k@. Generalizes 'pbAtMost'.-pbLe :: [(Int, SBool)] -> Int -> SBool-pbLe xs k- | k < 0                     = error $ "SBV.pbLe: Non-negative value required, received: " ++ show k- | all (isConcrete . snd) xs = literal $ sum [pbToInteger "pbLe" c b | (c, b) <- xs] <= fromIntegral k- | True                      = liftPB "pbLe" (PB_Le (map fst xs) k) (map snd xs)---- | 'sTrue' if the sum of coefficients for 'sTrue' elements is at least @k@. Generalizes 'pbAtLeast'.-pbGe :: [(Int, SBool)] -> Int -> SBool-pbGe xs k- | k < 0                     = error $ "SBV.pbGe: Non-negative value required, received: " ++ show k- | all (isConcrete . snd) xs = literal $ sum [pbToInteger "pbGe" c b | (c, b) <- xs] >= fromIntegral k- | True                      = liftPB "pbGe" (PB_Ge (map fst xs) k) (map snd xs)---- | 'sTrue' if the sum of coefficients for 'sTrue' elements is exactly least @k@. Useful for coding--- /exactly K-of-N/ constraints, and in particular mutex constraints.-pbEq :: [(Int, SBool)] -> Int -> SBool-pbEq xs k- | k < 0                     = error $ "SBV.pbEq: Non-negative value required, received: " ++ show k- | all (isConcrete . snd) xs = literal $ sum [pbToInteger "pbEq" c b | (c, b) <- xs] == fromIntegral k- | True                      = liftPB "pbEq" (PB_Eq (map fst xs) k) (map snd xs)---- | 'sTrue' if there is at most one set bit-pbMutexed :: [SBool] -> SBool-pbMutexed xs = pbAtMost xs 1---- | 'sTrue' if there is exactly one set bit-pbStronglyMutexed :: [SBool] -> SBool-pbStronglyMutexed xs = pbExactly xs 1---- | Convert a concrete pseudo-boolean to given int; converting to integer-pbToInteger :: String -> Int -> SBool -> Integer-pbToInteger w c b- | c < 0                 = error $ "SBV." ++ w ++ ": Non-negative coefficient required, received: " ++ show c- | Just v <- unliteral b = if v then fromIntegral c else 0- | True                  = error $ "SBV.pbToInteger: Received a symbolic boolean: " ++ show (c, b)---- | Predicate for optimizing word operations like (+) and (*).-isConcreteZero :: SBV a -> Bool-isConcreteZero (SBV (SVal _     (Left (CV _     (CInteger n))))) = n == 0-isConcreteZero (SBV (SVal KReal (Left (CV KReal (CAlgReal v))))) = isExactRational v && v == 0-isConcreteZero _                                                 = False---- | Predicate for optimizing word operations like (+) and (*).-isConcreteOne :: SBV a -> Bool-isConcreteOne (SBV (SVal _     (Left (CV _     (CInteger 1))))) = True-isConcreteOne (SBV (SVal KReal (Left (CV KReal (CAlgReal v))))) = isExactRational v && v == 1-isConcreteOne _                                                 = False---- | Symbolic exponentiation using bit blasting and repeated squaring.------ N.B. The exponent must be unsigned/bounded if symbolic. Signed exponents will be rejected.-(.^) :: (Mergeable b, Num b, SIntegral e) => b -> SBV e -> b-b .^ e-  | isConcrete e, Just (x :: Integer) <- unliteral (sFromIntegral e)-  = if x >= 0 then let go n v-                        | n == 0 = 1-                        | even n =     go (n `div` 2) (v * v)-                        | True   = v * go (n `div` 2) (v * v)-                   in  go x b-              else error $ "(.^): exponentiation: negative exponent: " ++ show x-  | not (isBounded e) || isSigned e-  = error $ "(.^): exponentiation only works with unsigned bounded symbolic exponents, kind: " ++ show (kindOf e)-  | True-  =  -- NB. We can't simply use sTestBit and blastLE since they have SFiniteBit requirement-     -- but we want to have SIntegral here only.-     let SBV expt = e-         expBit i = SBV (svTestBit expt i)-         blasted  = map expBit [0 .. intSizeOf e - 1]-     in product $ zipWith (\use n -> ite use n 1)-                          blasted-                          (iterate (\x -> x*x) b)-infixr 8 .^--instance (Ord a, Num (SBV a), SymVal a, Fractional a) => Fractional (SBV a) where-  fromRational  = literal . fromRational-  SBV x / sy@(SBV y) | div0 = ite (sy .== 0) 0 res-                     | True = res-       where res  = SBV (svDivide x y)-             -- Identify those kinds where we have a div-0 equals 0 exception-             div0 = case kindOf sy of-                      KFloat             -> False-                      KDouble            -> False-                      KFP{}              -> False-                      KReal              -> True-                      KRational          -> True-                      -- Following cases should not happen since these types should *not* be instances of Fractional-                      k@KBounded{}  -> error $ "Unexpected Fractional case for: " ++ show k-                      k@KUnbounded  -> error $ "Unexpected Fractional case for: " ++ show k-                      k@KBool       -> error $ "Unexpected Fractional case for: " ++ show k-                      k@KString     -> error $ "Unexpected Fractional case for: " ++ show k-                      k@KChar       -> error $ "Unexpected Fractional case for: " ++ show k-                      k@KList{}     -> error $ "Unexpected Fractional case for: " ++ show k-                      k@KSet{}      -> error $ "Unexpected Fractional case for: " ++ show k-                      k@KUserSort{} -> error $ "Unexpected Fractional case for: " ++ show k-                      k@KTuple{}    -> error $ "Unexpected Fractional case for: " ++ show k-                      k@KMaybe{}    -> error $ "Unexpected Fractional case for: " ++ show k-                      k@KEither{}   -> error $ "Unexpected Fractional case for: " ++ show k-                      k@KArray{}    -> error $ "Unexpected Fractional case for: " ++ show k---- | Define Floating instance on SBV's; only for base types that are already floating; i.e., 'SFloat', 'SDouble', and 'SReal'.--- (See the separate definition below for 'SFloatingPoint'.)  Note that unless you use delta-sat via 'Data.SBV.Provers.dReal' on 'SReal', most--- of the fields are "undefined" for symbolic values. We will add methods as they are supported by SMTLib. Currently, the--- only symbolically available function in this class is 'sqrt' for 'SFloat', 'SDouble' and 'SFloatingPoint'.-instance (Ord a, Num (SBV a), SymVal a, Fractional a, Floating a) => Floating (SBV a) where-  pi      = fromRational . toRational $ (pi :: Double)-  exp     = lift1FNS "exp"     exp-  log     = lift1FNS "log"     log-  sqrt    = lift1F   FP_Sqrt   sqrt-  sin     = lift1FNS "sin"     sin-  cos     = lift1FNS "cos"     cos-  tan     = lift1FNS "tan"     tan-  asin    = lift1FNS "asin"    asin-  acos    = lift1FNS "acos"    acos-  atan    = lift1FNS "atan"    atan-  sinh    = lift1FNS "sinh"    sinh-  cosh    = lift1FNS "cosh"    cosh-  tanh    = lift1FNS "tanh"    tanh-  asinh   = lift1FNS "asinh"   asinh-  acosh   = lift1FNS "acosh"   acosh-  atanh   = lift1FNS "atanh"   atanh-  (**)    = lift2FNS "**"      (**)-  logBase = lift2FNS "logBase" logBase--unsupported :: String -> a-unsupported w = error $ "Data.SBV.FloatingPoint: Unsupported operation: " ++ w ++ ". Please request this as a feature!"---- | We give a specific instance for 'SFloatingPoint', because the underlying floating-point type doesn't support--- fromRational directly. The overlap with the above instance is unfortunate.-instance {-# OVERLAPPING #-} ValidFloat eb sb => Floating (SFloatingPoint eb sb) where-  -- Try from double; if there's enough precision this'll work, otherwise will bail out.-  pi-   | ei > 11 || si > 53 = unsupported $ "Floating.SFloatingPoint.pi (not-enough-precision for " ++ show (ei, si) ++ ")"-   | True               = literal $ FloatingPoint $ fpFromRational ei si (toRational (pi :: Double))-   where ei = intOfProxy (Proxy @eb)-         si = intOfProxy (Proxy @sb)--  -- Likewise, exponentiation is again limited to precision of double-  exp i-   | ei > 11 || si > 53 = unsupported $ "Floating.SFloatingPoint.exp (not-enough-precision for " ++ show (ei, si) ++ ")"-   | True               = literal e ** i-   where ei = intOfProxy (Proxy @eb)-         si = intOfProxy (Proxy @sb)-         e  = FloatingPoint $ fpFromRational ei si (toRational (exp 1 :: Double))--  log     = lift1FNS "log"     log-  sqrt    = lift1F   FP_Sqrt   sqrt-  sin     = lift1FNS "sin"     sin-  cos     = lift1FNS "cos"     cos-  tan     = lift1FNS "tan"     tan-  asin    = lift1FNS "asin"    asin-  acos    = lift1FNS "acos"    acos-  atan    = lift1FNS "atan"    atan-  sinh    = lift1FNS "sinh"    sinh-  cosh    = lift1FNS "cosh"    cosh-  tanh    = lift1FNS "tanh"    tanh-  asinh   = lift1FNS "asinh"   asinh-  acosh   = lift1FNS "acosh"   acosh-  atanh   = lift1FNS "atanh"   atanh-  (**)    = lift2FNS "**"      (**)-  logBase = lift2FNS "logBase" logBase---- | Lift a 1 arg FP-op, using sRNE default-lift1F :: SymVal a => FPOp -> (a -> a) -> SBV a -> SBV a-lift1F w op a-  | Just v <- unliteral a-  = literal $ op v-  | True-  = SBV $ SVal k $ Right $ cache r-  where k    = kindOf a-        r st = do swa  <- sbvToSV st a-                  swm  <- sbvToSV st sRNE-                  newExpr st k (SBVApp (IEEEFP w) [swm, swa])---- | Lift a float/double unary function, only over constants-lift1FNS :: (SymVal a, Floating a) => String -> (a -> a) -> SBV a -> SBV a-lift1FNS nm f sv-  | Just v <- unliteral sv = literal $ f v-  | True                   = error $ "SBV." ++ nm ++ ": not supported for symbolic values of type " ++ show (kindOf sv)---- | Lift a float/double binary function, only over constants-lift2FNS :: (SymVal a, Floating a) => String -> (a -> a -> a) -> SBV a -> SBV a -> SBV a-lift2FNS nm f sv1 sv2-  | Just v1 <- unliteral sv1-  , Just v2 <- unliteral sv2 = literal $ f v1 v2-  | True                     = error $ "SBV." ++ nm ++ ": not supported for symbolic values of type " ++ show (kindOf sv1)---- | SReal Floating instance, used in conjunction with the dReal solver for delta-satisfiability. Note that--- we do not constant fold these values (except for pi), as Haskell doesn't really have any means of computing--- them for arbitrary rationals.-instance {-# OVERLAPPING #-} Floating SReal where-  pi      = fromRational . toRational $ (pi :: Double)  -- Perhaps not good enough?-  exp     = lift1SReal NR_Exp-  log     = lift1SReal NR_Log-  sqrt    = lift1SReal NR_Sqrt-  sin     = lift1SReal NR_Sin-  cos     = lift1SReal NR_Cos-  tan     = lift1SReal NR_Tan-  asin    = lift1SReal NR_ASin-  acos    = lift1SReal NR_ACos-  atan    = lift1SReal NR_ATan-  sinh    = lift1SReal NR_Sinh-  cosh    = lift1SReal NR_Cosh-  tanh    = lift1SReal NR_Tanh-  asinh   = error "Data.SBV.SReal: asinh is currently not supported. Please request this as a feature!"-  acosh   = error "Data.SBV.SReal: acosh is currently not supported. Please request this as a feature!"-  atanh   = error "Data.SBV.SReal: atanh is currently not supported. Please request this as a feature!"-  (**)    = lift2SReal NR_Pow--  logBase x y = log y  / log x---- | Lift an sreal unary function-lift1SReal :: NROp -> SReal -> SReal-lift1SReal w a = SBV $ SVal k $ Right $ cache r-  where k    = kindOf a-        r st = do swa <- sbvToSV st a-                  newExpr st k (SBVApp (NonLinear w) [swa])---- | Lift an sreal binary function-lift2SReal :: NROp -> SReal -> SReal -> SReal-lift2SReal w a b = SBV $ SVal k $ Right $ cache r-  where k    = kindOf a-        r st = do swa <- sbvToSV st a-                  swb <- sbvToSV st b-                  newExpr st k (SBVApp (NonLinear w) [swa, swb])---- Bail out nicely.-noEquals :: String -> String -> (String, String) -> a-noEquals o n (l, r) = error $ unlines [ ""-                                      , "*** Data.SBV: Comparing symbolic values using Haskell's Eq class!"-                                      , "***"-                                      , "*** Received:    (" ++ l ++ ")  " ++ o ++ " (" ++ r ++ ")"-                                      , "*** Instead use: (" ++ l ++ ") "  ++ n ++ " (" ++ r ++ ")"-                                      , "***"-                                      , "*** The Eq instance for symbolic values are necessiated only because"-                                      , "*** of the Bits class requirement. You must use symbolic equality"-                                      , "*** operators instead. (And complain to Haskell folks that they"-                                      , "*** remove the 'Eq' superclass from 'Bits'!.)"-                                      ]---- | This instance is only defined so that we can define an instance for--- 'Data.Bits.Bits'. '==' and '/=' simply throw an error. Use--- 'Data.SBV.EqSymbolic' instead.-instance SymVal a => Eq (SBV a) where-  a == b = fromMaybe (noEquals "==" ".==" (show a, show b)) (unliteral (a .== b))-  a /= b = fromMaybe (noEquals "/=" "./=" (show a, show b)) (unliteral (a ./= b))---- NB. In the optimizations below, use of -1 is valid as--- -1 has all bits set to True for both signed and unsigned values--- | Using 'popCount' or 'testBit' on non-concrete values will result in an--- error. Use 'sPopCount' or 'sTestBit' instead.-instance (Ord a, Num (SBV a), Num a, Bits a, SymVal a) => Bits (SBV a) where-  SBV x .&. SBV y    = SBV (svAnd x y)-  SBV x .|. SBV y    = SBV (svOr x y)-  SBV x `xor` SBV y  = SBV (svXOr x y)-  complement (SBV x) = SBV (svNot x)-  bitSize  x         = intSizeOf x-  bitSizeMaybe x     = Just $ intSizeOf x-  isSigned x         = hasSign x-  bit i              = 1 `shiftL` i-  setBit        x i  = x .|. genLiteral (kindOf x) (bit i :: Integer)-  clearBit      x i  = x .&. genLiteral (kindOf x) (complement (bit i) :: Integer)-  complementBit x i  = x `xor` genLiteral (kindOf x) (bit i :: Integer)-  shiftL  (SBV x) i  = SBV (svShl x i)-  shiftR  (SBV x) i  = SBV (svShr x i)-  rotateL (SBV x) i  = SBV (svRol x i)-  rotateR (SBV x) i  = SBV (svRor x i)-  -- NB. testBit is *not* implementable on non-concrete symbolic words-  x `testBit` i-    | SBV (SVal _ (Left (CV _ (CInteger n)))) <- x-    = testBit n i-    | True-    = error $ "SBV.testBit: Called on symbolic value: " ++ show x ++ ". Use sTestBit instead."-  -- NB. popCount is *not* implementable on non-concrete symbolic words-  popCount x-    | SBV (SVal _ (Left (CV (KBounded _ w) (CInteger n)))) <- x-    = popCount (n .&. (bit w - 1))-    | True-    = error $ "SBV.popCount: Called on symbolic value: " ++ show x ++ ". Use sPopCount instead."---- | Conversion between integral-symbolic values, akin to Haskell's `fromIntegral`-sFromIntegral :: forall a b. (Integral a, HasKind a, Num a, SymVal a, HasKind b, Num b, SymVal b) => SBV a -> SBV b-sFromIntegral x-  | kFrom == kTo-  = SBV (unSBV x)-  | isReal x-  = error "SBV.sFromIntegral: Called on a real value" -- can't really happen due to types, but being overcautious-  | Just v <- unliteral x-  = literal (fromIntegral v)-  | True-  = result-  where result = SBV (SVal kTo (Right (cache y)))-        kFrom  = kindOf x-        kTo    = kindOf (Proxy @b)-        y st   = do xsv <- sbvToSV st x-                    newExpr st kTo (SBVApp (KindCast kFrom kTo) [xsv])---- | Lift a binary operation thru it's dynamic counterpart. Note that--- we still want the actual functions here as differ in their type--- compared to their dynamic counterparts, but the implementations--- are the same.-liftViaSVal :: (SVal -> SVal -> SVal) -> SBV a -> SBV b -> SBV c-liftViaSVal f (SBV a) (SBV b) = SBV $ f a b---- | Generalization of 'shiftL', when the shift-amount is symbolic. Since Haskell's--- 'shiftL' only takes an 'Int' as the shift amount, it cannot be used when we have--- a symbolic amount to shift with.-sShiftLeft :: (SIntegral a, SIntegral b) => SBV a -> SBV b -> SBV a-sShiftLeft = liftViaSVal svShiftLeft---- | Generalization of 'shiftR', when the shift-amount is symbolic. Since Haskell's--- 'shiftR' only takes an 'Int' as the shift amount, it cannot be used when we have--- a symbolic amount to shift with.------ NB. If the shiftee is signed, then this is an arithmetic shift; otherwise it's logical,--- following the usual Haskell convention. See 'sSignedShiftArithRight' for a variant--- that explicitly uses the msb as the sign bit, even for unsigned underlying types.-sShiftRight :: (SIntegral a, SIntegral b) => SBV a -> SBV b -> SBV a-sShiftRight = liftViaSVal svShiftRight---- | Arithmetic shift-right with a symbolic unsigned shift amount. This is equivalent--- to 'sShiftRight' when the argument is signed. However, if the argument is unsigned,--- then it explicitly treats its msb as a sign-bit, and uses it as the bit that--- gets shifted in. Useful when using the underlying unsigned bit representation to implement--- custom signed operations. Note that there is no direct Haskell analogue of this function.-sSignedShiftArithRight:: (SFiniteBits a, SIntegral b) => SBV a -> SBV b -> SBV a-sSignedShiftArithRight x i-  | isSigned i = error "sSignedShiftArithRight: shift amount should be unsigned"-  | isSigned x = ssa x i-  | True       = ite (msb x)-                     (complement (ssa (complement x) i))-                     (ssa x i)-  where ssa = liftViaSVal svShiftRight---- | Generalization of 'rotateL', when the shift-amount is symbolic. Since Haskell's--- 'rotateL' only takes an 'Int' as the shift amount, it cannot be used when we have--- a symbolic amount to shift with. The first argument should be a bounded quantity.-sRotateLeft :: (SIntegral a, SIntegral b) => SBV a -> SBV b -> SBV a-sRotateLeft = liftViaSVal svRotateLeft---- | An implementation of rotate-left, using a barrel shifter like design. Only works when both--- arguments are finite bitvectors, and furthermore when the second argument is unsigned.--- The first condition is enforced by the type, but the second is dynamically checked.--- We provide this implementation as an alternative to `sRotateLeft` since SMTLib logic--- does not support variable argument rotates (as opposed to shifts), and thus this--- implementation can produce better code for verification compared to `sRotateLeft`.-sBarrelRotateLeft :: (SFiniteBits a, SFiniteBits b) => SBV a -> SBV b -> SBV a-sBarrelRotateLeft = liftViaSVal svBarrelRotateLeft---- | Generalization of 'rotateR', when the shift-amount is symbolic. Since Haskell's--- 'rotateR' only takes an 'Int' as the shift amount, it cannot be used when we have--- a symbolic amount to shift with. The first argument should be a bounded quantity.-sRotateRight :: (SIntegral a, SIntegral b) => SBV a -> SBV b -> SBV a-sRotateRight = liftViaSVal svRotateRight---- | An implementation of rotate-right, using a barrel shifter like design. See comments--- for `sBarrelRotateLeft` for details.-sBarrelRotateRight :: (SFiniteBits a, SFiniteBits b) => SBV a -> SBV b -> SBV a-sBarrelRotateRight = liftViaSVal svBarrelRotateRight---- | Capturing non-matching instances for better error messages, conversions from sized-type FromSizedErr (arg :: Type) =     'Text "fromSized: Cannot convert from type: " ':<>: 'ShowType arg-                                ':$$: 'Text "           Source type must be one of SInt N, SWord N, IntN N, WordN N"-                                ':$$: 'Text "           where N is 8, 16, 32, or 64."---- | Capturing non-matching instances for better error messages, conversions to sized-type ToSizedErr (arg :: Type) =      'Text "toSized: Cannot convert from type: " ':<>: 'ShowType arg-                              ':$$: 'Text "          Source type must be one of Int8/16/32/64"-                              ':$$: 'Text "                                  OR Word8/16/32/64"-                              ':$$: 'Text "                                  OR their symbolic variants."---- | Capture the correspondence between sized and fixed-sized BVs-type family FromSized (t :: Type) :: Type where-   FromSized (WordN  8) = Word8-   FromSized (WordN 16) = Word16-   FromSized (WordN 32) = Word32-   FromSized (WordN 64) = Word64-   FromSized (IntN   8) = Int8-   FromSized (IntN  16) = Int16-   FromSized (IntN  32) = Int32-   FromSized (IntN  64) = Int64-   FromSized (SWord  8) = SWord8-   FromSized (SWord 16) = SWord16-   FromSized (SWord 32) = SWord32-   FromSized (SWord 64) = SWord64-   FromSized (SInt   8) = SInt8-   FromSized (SInt  16) = SInt16-   FromSized (SInt  32) = SInt32-   FromSized (SInt  64) = SInt64---- | Capture the correspondence, in terms of a constraint-type family FromSizedCstr (t :: Type) :: Constraint where-   FromSizedCstr (WordN  8) = ()-   FromSizedCstr (WordN 16) = ()-   FromSizedCstr (WordN 32) = ()-   FromSizedCstr (WordN 64) = ()-   FromSizedCstr (IntN   8) = ()-   FromSizedCstr (IntN  16) = ()-   FromSizedCstr (IntN  32) = ()-   FromSizedCstr (IntN  64) = ()-   FromSizedCstr (SWord  8) = ()-   FromSizedCstr (SWord 16) = ()-   FromSizedCstr (SWord 32) = ()-   FromSizedCstr (SWord 64) = ()-   FromSizedCstr (SInt   8) = ()-   FromSizedCstr (SInt  16) = ()-   FromSizedCstr (SInt  32) = ()-   FromSizedCstr (SInt  64) = ()-   FromSizedCstr arg        = TypeError (FromSizedErr arg)---- | Conversion from a sized BV to a fixed-sized bit-vector.-class FromSizedBV a where-   -- | Convert a sized bit-vector to the corresponding fixed-sized bit-vector,-   -- for instance 'SWord 16' to 'SWord16'. See also 'toSized'.-   fromSized :: a -> FromSized a--   default fromSized :: (Num (FromSized a), Integral a) => a -> FromSized a-   fromSized = fromIntegral--instance {-# OVERLAPPING  #-} FromSizedBV (WordN   8)-instance {-# OVERLAPPING  #-} FromSizedBV (WordN  16)-instance {-# OVERLAPPING  #-} FromSizedBV (WordN  32)-instance {-# OVERLAPPING  #-} FromSizedBV (WordN  64)-instance {-# OVERLAPPING  #-} FromSizedBV (IntN    8)-instance {-# OVERLAPPING  #-} FromSizedBV (IntN   16)-instance {-# OVERLAPPING  #-} FromSizedBV (IntN   32)-instance {-# OVERLAPPING  #-} FromSizedBV (IntN   64)-instance {-# OVERLAPPING  #-} FromSizedBV (SWord   8) where fromSized = sFromIntegral-instance {-# OVERLAPPING  #-} FromSizedBV (SWord  16) where fromSized = sFromIntegral-instance {-# OVERLAPPING  #-} FromSizedBV (SWord  32) where fromSized = sFromIntegral-instance {-# OVERLAPPING  #-} FromSizedBV (SWord  64) where fromSized = sFromIntegral-instance {-# OVERLAPPING  #-} FromSizedBV (SInt    8) where fromSized = sFromIntegral-instance {-# OVERLAPPING  #-} FromSizedBV (SInt   16) where fromSized = sFromIntegral-instance {-# OVERLAPPING  #-} FromSizedBV (SInt   32) where fromSized = sFromIntegral-instance {-# OVERLAPPING  #-} FromSizedBV (SInt   64) where fromSized = sFromIntegral-instance {-# OVERLAPPABLE #-} FromSizedCstr arg => FromSizedBV arg where fromSized = error "unreachable"---- | Capture the correspondence between fixed-sized and sized BVs-type family ToSized (t :: Type) :: Type where-   ToSized Word8   = WordN  8-   ToSized Word16  = WordN 16-   ToSized Word32  = WordN 32-   ToSized Word64  = WordN 64-   ToSized Int8    = IntN   8-   ToSized Int16   = IntN  16-   ToSized Int32   = IntN  32-   ToSized Int64   = IntN  64-   ToSized SWord8  = SWord  8-   ToSized SWord16 = SWord 16-   ToSized SWord32 = SWord 32-   ToSized SWord64 = SWord 64-   ToSized SInt8   = SInt   8-   ToSized SInt16  = SInt  16-   ToSized SInt32  = SInt  32-   ToSized SInt64  = SInt  64---- | Capture the correspondence in terms of a constraint-type family ToSizedCstr (t :: Type) :: Constraint where-   ToSizedCstr Word8   = ()-   ToSizedCstr Word16  = ()-   ToSizedCstr Word32  = ()-   ToSizedCstr Word64  = ()-   ToSizedCstr Int8    = ()-   ToSizedCstr Int16   = ()-   ToSizedCstr Int32   = ()-   ToSizedCstr Int64   = ()-   ToSizedCstr SWord8  = ()-   ToSizedCstr SWord16 = ()-   ToSizedCstr SWord32 = ()-   ToSizedCstr SWord64 = ()-   ToSizedCstr SInt8   = ()-   ToSizedCstr SInt16  = ()-   ToSizedCstr SInt32  = ()-   ToSizedCstr SInt64  = ()-   ToSizedCstr arg     = TypeError (ToSizedErr arg)---- | Conversion from a fixed-sized BV to a sized bit-vector.-class ToSizedBV a where-   -- | Convert a fixed-sized bit-vector to the corresponding sized bit-vector,-   -- for instance 'SWord16' to 'SWord 16'. See also 'fromSized'.-   toSized :: a -> ToSized a--   default toSized :: (Num (ToSized a), Integral a) => (a -> ToSized a)-   toSized = fromIntegral--instance {-# OVERLAPPING  #-} ToSizedBV Word8-instance {-# OVERLAPPING  #-} ToSizedBV Word16-instance {-# OVERLAPPING  #-} ToSizedBV Word32-instance {-# OVERLAPPING  #-} ToSizedBV Word64-instance {-# OVERLAPPING  #-} ToSizedBV Int8-instance {-# OVERLAPPING  #-} ToSizedBV Int16-instance {-# OVERLAPPING  #-} ToSizedBV Int32-instance {-# OVERLAPPING  #-} ToSizedBV Int64-instance {-# OVERLAPPING  #-} ToSizedBV SWord8  where toSized = sFromIntegral-instance {-# OVERLAPPING  #-} ToSizedBV SWord16 where toSized = sFromIntegral-instance {-# OVERLAPPING  #-} ToSizedBV SWord32 where toSized = sFromIntegral-instance {-# OVERLAPPING  #-} ToSizedBV SWord64 where toSized = sFromIntegral-instance {-# OVERLAPPING  #-} ToSizedBV SInt8   where toSized = sFromIntegral-instance {-# OVERLAPPING  #-} ToSizedBV SInt16  where toSized = sFromIntegral-instance {-# OVERLAPPING  #-} ToSizedBV SInt32  where toSized = sFromIntegral-instance {-# OVERLAPPING  #-} ToSizedBV SInt64  where toSized = sFromIntegral-instance {-# OVERLAPPABLE #-} ToSizedCstr arg => ToSizedBV arg where toSized = error "unreachable"---- | The 'SDivisible' class captures the essence of division.--- Unfortunately we cannot use Haskell's 'Integral' class since the 'Real'--- and 'Enum' superclasses are not implementable for symbolic bit-vectors.--- However, 'quotRem' and 'divMod' both make perfect sense, and the 'SDivisible' class captures--- this operation. One issue is how division by 0 behaves. The verification--- technology requires total functions, and there are several design choices--- here. We follow Isabelle/HOL approach of assigning the value 0 for division--- by 0. Therefore, we impose the following pair of laws:------ @---      x `sQuotRem` 0 = (0, x)---      x `sDivMod`  0 = (0, x)--- @------ Note that our instances implement this law even when @x@ is @0@ itself.------ NB. 'quot' truncates toward zero, while 'div' truncates toward negative infinity.------ === C code generation of division operations------ In the case of division or modulo of a minimal signed value (e.g. @-128@ for--- 'SInt8') by @-1@, SMTLIB and Haskell agree on what the result should be.--- Unfortunately the result in C code depends on CPU architecture and compiler--- settings, as this is undefined behaviour in C.  **SBV does not guarantee**--- what will happen in generated C code in this corner case.-class SDivisible a where-  sQuotRem :: a -> a -> (a, a)-  sDivMod  :: a -> a -> (a, a)-  sQuot    :: a -> a -> a-  sRem     :: a -> a -> a-  sDiv     :: a -> a -> a-  sMod     :: a -> a -> a--  {-# MINIMAL sQuotRem, sDivMod #-}--  x `sQuot` y = fst $ x `sQuotRem` y-  x `sRem`  y = snd $ x `sQuotRem` y-  x `sDiv`  y = fst $ x `sDivMod`  y-  x `sMod`  y = snd $ x `sDivMod`  y--instance SDivisible Word64 where-  sQuotRem x 0 = (0, x)-  sQuotRem x y = x `quotRem` y-  sDivMod  x 0 = (0, x)-  sDivMod  x y = x `divMod` y--instance SDivisible Int64 where-  sQuotRem x 0 = (0, x)-  sQuotRem x y = x `quotRem` y-  sDivMod  x 0 = (0, x)-  sDivMod  x y = x `divMod` y--instance SDivisible Word32 where-  sQuotRem x 0 = (0, x)-  sQuotRem x y = x `quotRem` y-  sDivMod  x 0 = (0, x)-  sDivMod  x y = x `divMod` y--instance SDivisible Int32 where-  sQuotRem x 0 = (0, x)-  sQuotRem x y = x `quotRem` y-  sDivMod  x 0 = (0, x)-  sDivMod  x y = x `divMod` y--instance SDivisible Word16 where-  sQuotRem x 0 = (0, x)-  sQuotRem x y = x `quotRem` y-  sDivMod  x 0 = (0, x)-  sDivMod  x y = x `divMod` y--instance SDivisible Int16 where-  sQuotRem x 0 = (0, x)-  sQuotRem x y = x `quotRem` y-  sDivMod  x 0 = (0, x)-  sDivMod  x y = x `divMod` y--instance SDivisible Word8 where-  sQuotRem x 0 = (0, x)-  sQuotRem x y = x `quotRem` y-  sDivMod  x 0 = (0, x)-  sDivMod  x y = x `divMod` y--instance SDivisible Int8 where-  sQuotRem x 0 = (0, x)-  sQuotRem x y = x `quotRem` y-  sDivMod  x 0 = (0, x)-  sDivMod  x y = x `divMod` y--instance SDivisible Integer where-  sQuotRem x 0 = (0, x)-  sQuotRem x y = x `quotRem` y-  sDivMod  x 0 = (0, x)-  sDivMod  x y = x `divMod` y--instance SDivisible CV where-  sQuotRem a b-    | CInteger x <- cvVal a, CInteger y <- cvVal b-    = let (r1, r2) = sQuotRem x y in (normCV a{ cvVal = CInteger r1 }, normCV b{ cvVal = CInteger r2 })-  sQuotRem a b = error $ "SBV.sQuotRem: impossible, unexpected args received: " ++ show (a, b)-  sDivMod a b-    | CInteger x <- cvVal a, CInteger y <- cvVal b-    = let (r1, r2) = sDivMod x y in (normCV a{ cvVal = CInteger r1 }, normCV b{ cvVal = CInteger r2 })-  sDivMod a b = error $ "SBV.sDivMod: impossible, unexpected args received: " ++ show (a, b)--instance SDivisible SWord64 where {sQuotRem = liftQRem; sDivMod  = liftDMod}-instance SDivisible SWord32 where {sQuotRem = liftQRem; sDivMod  = liftDMod}-instance SDivisible SWord16 where {sQuotRem = liftQRem; sDivMod  = liftDMod}-instance SDivisible SWord8  where {sQuotRem = liftQRem; sDivMod  = liftDMod}-instance SDivisible SInt64  where {sQuotRem = liftQRem; sDivMod  = liftDMod}-instance SDivisible SInt32  where {sQuotRem = liftQRem; sDivMod  = liftDMod}-instance SDivisible SInt16  where {sQuotRem = liftQRem; sDivMod  = liftDMod}-instance SDivisible SInt8   where {sQuotRem = liftQRem; sDivMod  = liftDMod}---- | 'SDivisible' instance for 'WordN'-instance (KnownNat n, BVIsNonZero n) => SDivisible (WordN n) where-  sQuotRem x 0 = (0, x)-  sQuotRem x y = x `quotRem` y-  sDivMod  x 0 = (0, x)-  sDivMod  x y = x `divMod` y---- | 'SDivisible' instance for 'IntN'-instance (KnownNat n, BVIsNonZero n) => SDivisible (IntN n) where-  sQuotRem x 0 = (0, x)-  sQuotRem x y = x `quotRem` y-  sDivMod  x 0 = (0, x)-  sDivMod  x y = x `divMod` y---- | 'SDivisible' instance for 'SWord'-instance (KnownNat n, BVIsNonZero n) => SDivisible (SWord n) where-  sQuotRem = liftQRem-  sDivMod  = liftDMod---- | 'SDivisible' instance for 'SInt'-instance (KnownNat n, BVIsNonZero n) => SDivisible (SInt n) where-  sQuotRem = liftQRem-  sDivMod  = liftDMod---- | Does the concrete positive number n divide the given integer?-sDivides :: Integer -> SInteger -> SBool-sDivides n v-  | n < 0-  = error $ "svDivides: First argument must be a strictly positive integer. Received: " ++ show n-  | Just x <- unliteral v-  = if x `mod` n == 0 then sTrue else sFalse-  | True-  = SBV $ svDivides n (unSBV v)---- | Lift 'quotRem' to symbolic words. Division by 0 is defined s.t. @x/0 = 0@; which--- holds even when @x@ is @0@ itself.-liftQRem :: (Eq a, SymVal a) => SBV a -> SBV a -> (SBV a, SBV a)-liftQRem x y-  | isConcreteZero x-  = (x, x)-  | isConcreteOne y-  = (x, z)-{-------------------------------- - N.B. The seemingly innocuous variant when y == -1 only holds if the type is signed;- - and also is problematic around the minBound.. So, we refrain from that optimization-  | isConcreteOnes y-  = (-x, z)---------------------------------}-  | True-  = ite (y .== z) (z, x) (qr x y)-  where qr (SBV (SVal sgnsz (Left a))) (SBV (SVal _ (Left b))) = let (q, r) = sQuotRem a b in (SBV (SVal sgnsz (Left q)), SBV (SVal sgnsz (Left r)))-        qr a@(SBV (SVal sgnsz _))      b                       = (SBV (SVal sgnsz (Right (cache (mk Quot)))), SBV (SVal sgnsz (Right (cache (mk Rem)))))-                where mk o st = do sw1 <- sbvToSV st a-                                   sw2 <- sbvToSV st b-                                   mkSymOp o st sgnsz sw1 sw2-        z = genLiteral (kindOf x) (0::Integer)---- | Lift 'divMod' to symbolic words. Division by 0 is defined s.t. @x/0 = 0@; which--- holds even when @x@ is @0@ itself. Essentially, this is conversion from quotRem--- (truncate to 0) to divMod (truncate towards negative infinity)-liftDMod :: (Ord a, SymVal a, Num a, Num (SBV a), SDivisible (SBV a)) => SBV a -> SBV a -> (SBV a, SBV a)-liftDMod x y-  | isConcreteZero x-  = (x, x)-  | isConcreteOne y-  = (x, z)-{-------------------------------- - N.B. The seemingly innocuous variant when y == -1 only holds if the type is signed;- - and also is problematic around the minBound.. So, we refrain from that optimization-  | isConcreteOnes y-  = (-x, z)---------------------------------}-  | True-  = ite (y .== z) (z, x) $ ite (signum r .== negate (signum y)) (q-i, r+y) qr- where qr@(q, r) = x `sQuotRem` y-       z = genLiteral (kindOf x) (0::Integer)-       i = genLiteral (kindOf x) (1::Integer)---- SInteger instance for quotRem/divMod are tricky!--- SMT-Lib only has Euclidean operations, but Haskell--- uses "truncate to 0" for quotRem, and "truncate to negative infinity" for divMod.--- So, we cannot just use the above liftings directly.-instance SDivisible SInteger where-  sDivMod x y = ite (y .> 0) (sEDivMod x y) (liftDMod x y)-  sQuotRem x y-    | not (isSymbolic x || isSymbolic y)-    = liftQRem x y-    | True-    = ite (y .== 0) (0, x) (qE+i, rE-i*y)-    where (qE, rE) = liftQRem x y   -- for integers, this is euclidean due to SMTLib semantics-          i = ite (x .>= 0 .|| rE .== 0) 0-            $ ite (y .>  0)              1 (-1)---- | Euclidian division and modulus.-sEDivMod :: SInteger -> SInteger -> (SInteger, SInteger)-sEDivMod a b = (a `sEDiv` b, a `sEMod` b)---- | Euclidian division. Note that unlike regular division, Euclidian division by @0@--- is unconstrained. i.e., it can take any value whatsoever.-sEDiv :: SInteger -> SInteger -> SInteger-sEDiv (SBV a) (SBV b) = SBV $ a `svQuot` b---- | Euclidian modulus. Note that unlike regular modulus, Euclidian division by @0@--- is unconstrained. i.e., it can take any value whatsoever.-sEMod :: SInteger -> SInteger -> SInteger-sEMod (SBV a) (SBV b) = SBV $ a `svRem` b---- Quickcheck interface-instance (SymVal a, Arbitrary a) => Arbitrary (SBV a) where-  arbitrary = literal `fmap` arbitrary---- |  Symbolic conditionals are modeled by the 'Mergeable' class, describing--- how to merge the results of an if-then-else call with a symbolic test. SBV--- provides all basic types as instances of this class, so users only need--- to declare instances for custom data-types of their programs as needed.------ A 'Mergeable' instance may be automatically derived for a custom data-type--- with a single constructor where the type of each field is an instance of--- 'Mergeable', such as a record of symbolic values. Users only need to add--- 'G.Generic' and 'Mergeable' to the @deriving@ clause for the data-type. See--- 'Documentation.SBV.Examples.Puzzles.U2Bridge.Status' for an example and an--- illustration of what the instance would look like if written by hand.------ The function 'select' is a total-indexing function out of a list of choices--- with a default value, simulating array/list indexing. It's an n-way generalization--- of the 'ite' function.------ Minimal complete definition: None, if the type is instance of @Generic@. Otherwise--- 'symbolicMerge'. Note that most types subject to merging are likely to be--- trivial instances of @Generic@.-class Mergeable a where-   -- | Merge two values based on the condition. The first argument states-   -- whether we force the then-and-else branches before the merging, at the-   -- word level. This is an efficiency concern; one that we'd rather not-   -- make but unfortunately necessary for getting symbolic simulation-   -- working efficiently.-   symbolicMerge :: Bool -> SBool -> a -> a -> a--   -- | Total indexing operation. @select xs default index@ is intuitively-   -- the same as @xs !! index@, except it evaluates to @default@ if @index@-   -- underflows/overflows.-   select :: (Ord b, SymVal b, Num b, Num (SBV b), OrdSymbolic (SBV b)) => [a] -> a -> SBV b -> a--   -- NB. Earlier implementation of select used the binary-search trick-   -- on the index to chop down the search space. While that is a good trick-   -- in general, it doesn't work for SBV since we do not have any notion of-   -- "concrete" subwords: If an index is symbolic, then all its bits are-   -- symbolic as well. So, the binary search only pays off only if the indexed-   -- list is really humongous, which is not very common in general. (Also,-   -- for the case when the list is bit-vectors, we use SMT tables anyhow.)-   select xs err ind-    | isReal   ind = bad "real"-    | isFloat  ind = bad "float"-    | isDouble ind = bad "double"-    | hasSign  ind = ite (ind .< 0) err (walk xs ind err)-    | True         =                     walk xs ind err-    where bad w = error $ "SBV.select: unsupported " ++ w ++ " valued select/index expression"-          walk []     _ acc = acc-          walk (e:es) i acc = walk es (i-1) (ite (i .== 0) e acc)--   -- Default implementation for 'symbolicMerge' if the type is 'Generic'-   default symbolicMerge :: (G.Generic a, GMergeable (G.Rep a)) => Bool -> SBool -> a -> a -> a-   symbolicMerge = symbolicMergeDefault---- | If-then-else. This is by definition 'symbolicMerge' with both--- branches forced. This is typically the desired behavior, but also--- see 'iteLazy' should you need more laziness.-ite :: Mergeable a => SBool -> a -> a -> a-ite t a b-  | Just r <- unliteral t = if r then a else b-  | True                  = symbolicMerge True t a b---- | A Lazy version of ite, which does not force its arguments. This might--- cause issues for symbolic simulation with large thunks around, so use with--- care.-iteLazy :: Mergeable a => SBool -> a -> a -> a-iteLazy t a b-  | Just r <- unliteral t = if r then a else b-  | True                  = symbolicMerge False t a b---- | Symbolic assert. Check that the given boolean condition is always 'sTrue' in the given path. The--- optional first argument can be used to provide call-stack info via GHC's location facilities.-sAssert :: HasKind a => Maybe CallStack -> String -> SBool -> SBV a -> SBV a-sAssert cs msg cond x-   | Just mustHold <- unliteral cond-   = if mustHold-     then x-     else error $ show $ SafeResult ((locInfo . getCallStack) `fmap` cs, msg, Satisfiable defaultSMTCfg (SMTModel [] Nothing [] []))-   | True-   = SBV $ SVal k $ Right $ cache r-  where k     = kindOf x-        r st  = do xsv <- sbvToSV st x-                   let pc = getPathCondition st-                       -- We're checking if there are any cases where the path-condition holds, but not the condition-                       -- Any violations of this, should be signaled, i.e., whenever the following formula is satisfiable-                       mustNeverHappen = pc .&& sNot cond-                   cnd <- sbvToSV st mustNeverHappen-                   addAssertion st cs msg cnd-                   return xsv--        locInfo ps = intercalate ",\n " (map loc ps)-          where loc (f, sl) = concat [srcLocFile sl, ":", show (srcLocStartLine sl), ":", show (srcLocStartCol sl), ":", f]---- | Merge two symbolic values, at kind @k@, possibly @force@'ing the branches to make--- sure they do not evaluate to the same result. This should only be used for internal purposes;--- as default definitions provided should suffice in many cases. (i.e., End users should--- only need to define 'symbolicMerge' when needed; which should be rare to start with.)-symbolicMergeWithKind :: Kind -> Bool -> SBool -> SBV a -> SBV a -> SBV a-symbolicMergeWithKind k force (SBV t) (SBV a) (SBV b) = SBV (svSymbolicMerge k force t a b)--instance SymVal a => Mergeable (SBV a) where-    symbolicMerge force t x y-    -- Carefully use the kindOf instance to avoid strictness issues.-       | force = symbolicMergeWithKind (kindOf x)          True  t x y-       | True  = symbolicMergeWithKind (kindOf (Proxy @a)) False t x y-    -- Custom version of select that translates to SMT-Lib tables at the base type of words-    select xs err ind-      | SBV (SVal _ (Left c)) <- ind = case cvVal c of-                                         CInteger i -> if i < 0 || i >= genericLength xs-                                                       then err-                                                       else xs `genericIndex` i-                                         _          -> error $ "SBV.select: unsupported " ++ show (kindOf ind) ++ " valued select/index expression"-    select xsOrig err ind = xs `seq` SBV (SVal kElt (Right (cache r)))-      where kInd = kindOf ind-            kElt = kindOf err-            -- Based on the index size, we need to limit the elements. For instance if the index is 8 bits, but there-            -- are 257 elements, that last element will never be used and we can chop it of..-            xs   = case kindOf ind of-                     KBounded False i -> genericTake ((2::Integer) ^ (fromIntegral i     :: Integer)) xsOrig-                     KBounded True  i -> genericTake ((2::Integer) ^ (fromIntegral (i-1) :: Integer)) xsOrig-                     KUnbounded       -> xsOrig-                     _                -> error $ "SBV.select: unsupported " ++ show (kindOf ind) ++ " valued select/index expression"-            r st  = do sws <- mapM (sbvToSV st) xs-                       swe <- sbvToSV st err-                       if all (== swe) sws  -- off-chance that all elts are the same. Note that this also correctly covers the case when list is empty.-                          then return swe-                          else do idx <- getTableIndex st kInd kElt sws-                                  swi <- sbvToSV st ind-                                  let len = length xs-                                  -- NB. No need to worry here that the index might be < 0; as the SMTLib translation takes care of that automatically-                                  newExpr st kElt (SBVApp (LkUp (idx, kInd, kElt, len) swi swe) [])---- | Construct a useful error message if we hit an unmergeable case.-cannotMerge :: String -> String -> String -> a-cannotMerge typ why hint = error $ unlines [ ""-                                           , "*** Data.SBV.Mergeable: Cannot merge instances of " ++ typ ++ "."-                                           , "*** While trying to do a symbolic if-then-else with incompatible branch results."-                                           , "***"-                                           , "*** " ++ why-                                           , "*** "-                                           , "*** Hint: " ++ hint-                                           ]---- | Merge concrete values that can be checked for equality-concreteMerge :: Show a => String -> String -> (a -> a -> Bool) -> a -> a -> a-concreteMerge t st eq x y-  | x `eq` y = x-  | True     = cannotMerge t-                           ("Concrete values can only be merged when equal. Got: " ++ show x ++ " vs. " ++ show y)-                           ("Use an " ++ st ++ " field if the values can differ.")---- Mergeable instances for List/Maybe/Either/Array are useful, but can--- throw exceptions if there is no structural matching of the results--- It's a question whether we should really keep them..---- Lists-instance Mergeable a => Mergeable [a] where-  symbolicMerge f t xs ys-    | lxs == lys = zipWith (symbolicMerge f t) xs ys-    | True       = cannotMerge "lists"-                               ("Branches produce different sizes: " ++ show lxs ++ " vs " ++ show lys ++ ". Must have the same length.")-                               "Use the 'SList' type (and Data.SBV.List routines) to model fully symbolic lists."-    where (lxs, lys) = (length xs, length ys)---- NonEmpty-instance Mergeable a => Mergeable (NonEmpty a) where-   symbolicMerge f t xs ys-     | lxs == lys = NE.zipWith (symbolicMerge f t) xs ys-     | True       = cannotMerge "non-empty lists"-                                ("Branches produce different sizes: " ++ show lxs ++ " vs " ++ show lys ++ ". Must have the same length.")-                                "Use the 'SList' type (and Data.SBV.List routines) to model fully symbolic lists."-     where (lxs, lys) = (length xs, length ys)---- ZipList-instance Mergeable a => Mergeable (ZipList a) where-  symbolicMerge force test (ZipList xs) (ZipList ys)-    = ZipList (symbolicMerge force test xs ys)---- Maybe-instance Mergeable a => Mergeable (Maybe a) where-  symbolicMerge _ _ Nothing  Nothing  = Nothing-  symbolicMerge f t (Just a) (Just b) = Just $ symbolicMerge f t a b-  symbolicMerge _ _ a b = cannotMerge "'Maybe' values"-                                      ("Branches produce different constructors: " ++ show (k a, k b))-                                      "Instead of an option type, try using a valid bit to indicate when a result is valid."-      where k Nothing = "Nothing"-            k _       = "Just"---- Either-instance (Mergeable a, Mergeable b) => Mergeable (Either a b) where-  symbolicMerge f t (Left a)  (Left b)  = Left  $ symbolicMerge f t a b-  symbolicMerge f t (Right a) (Right b) = Right $ symbolicMerge f t a b-  symbolicMerge _ _ a b = cannotMerge "'Either' values"-                                      ("Branches produce different constructors: " ++ show (k a, k b))-                                      "Consider using a product type by a tag instead."-     where k (Left _)  = "Left"-           k (Right _) = "Right"---- Arrays-instance (Ix a, Mergeable b) => Mergeable (Array a b) where-  symbolicMerge f t a b-    | ba == bb = DA.listArray ba (zipWith (symbolicMerge f t) (elems a) (elems b))-    | True     = cannotMerge "'Array' values"-                             ("Branches produce different ranges: " ++ show (k ba, k bb))-                             "Consider using SBV's native 'SArray' abstraction."-    where [ba, bb] = map bounds [a, b]-          k = rangeSize---- Functions-instance Mergeable b => Mergeable (a -> b) where-  symbolicMerge f t g h x = symbolicMerge f t (g x) (h x)-  {- Following definition, while correct, is utterly inefficient. Since the-     application is delayed, this hangs on to the inner list and all the-     impending merges, even when ind is concrete. Thus, it's much better to-     simply use the default definition for the function case.-  -}-  -- select xs err ind = \x -> select (map ($ x) xs) (err x) ind---- 2-Tuple-instance (Mergeable a, Mergeable b) => Mergeable (a, b) where-  symbolicMerge f t (i0, i1) (j0, j1) = ( symbolicMerge f t i0 j0-                                        , symbolicMerge f t i1 j1-                                        )--  select xs (err1, err2) ind = ( select as err1 ind-                               , select bs err2 ind-                               )-    where (as, bs) = unzip xs---- 3-Tuple-instance (Mergeable a, Mergeable b, Mergeable c) => Mergeable (a, b, c) where-  symbolicMerge f t (i0, i1, i2) (j0, j1, j2) = ( symbolicMerge f t i0 j0-                                                , symbolicMerge f t i1 j1-                                                , symbolicMerge f t i2 j2-                                                )--  select xs (err1, err2, err3) ind = ( select as err1 ind-                                     , select bs err2 ind-                                     , select cs err3 ind-                                     )--    where (as, bs, cs) = unzip3 xs---- 4-Tuple-instance (Mergeable a, Mergeable b, Mergeable c, Mergeable d) => Mergeable (a, b, c, d) where-  symbolicMerge f t (i0, i1, i2, i3) (j0, j1, j2, j3) = ( symbolicMerge f t i0 j0-                                                        , symbolicMerge f t i1 j1-                                                        , symbolicMerge f t i2 j2-                                                        , symbolicMerge f t i3 j3-                                                        )--  select xs (err1, err2, err3, err4) ind = ( select as err1 ind-                                           , select bs err2 ind-                                           , select cs err3 ind-                                           , select ds err4 ind-                                           )-    where (as, bs, cs, ds) = unzip4 xs---- 5-Tuple-instance (Mergeable a, Mergeable b, Mergeable c, Mergeable d, Mergeable e) => Mergeable (a, b, c, d, e) where-  symbolicMerge f t (i0, i1, i2, i3, i4) (j0, j1, j2, j3, j4) = ( symbolicMerge f t i0 j0-                                                                , symbolicMerge f t i1 j1-                                                                , symbolicMerge f t i2 j2-                                                                , symbolicMerge f t i3 j3-                                                                , symbolicMerge f t i4 j4-                                                                )--  select xs (err1, err2, err3, err4, err5) ind = ( select as err1 ind-                                                 , select bs err2 ind-                                                 , select cs err3 ind-                                                 , select ds err4 ind-                                                 , select es err5 ind-                                                 )-    where (as, bs, cs, ds, es) = unzip5 xs---- 6-Tuple-instance (Mergeable a, Mergeable b, Mergeable c, Mergeable d, Mergeable e, Mergeable f) => Mergeable (a, b, c, d, e, f) where-  symbolicMerge f t (i0, i1, i2, i3, i4, i5) (j0, j1, j2, j3, j4, j5) = ( symbolicMerge f t i0 j0-                                                                        , symbolicMerge f t i1 j1-                                                                        , symbolicMerge f t i2 j2-                                                                        , symbolicMerge f t i3 j3-                                                                        , symbolicMerge f t i4 j4-                                                                        , symbolicMerge f t i5 j5-                                                                        )--  select xs (err1, err2, err3, err4, err5, err6) ind = ( select as err1 ind-                                                       , select bs err2 ind-                                                       , select cs err3 ind-                                                       , select ds err4 ind-                                                       , select es err5 ind-                                                       , select fs err6 ind-                                                       )-    where (as, bs, cs, ds, es, fs) = unzip6 xs---- 7-Tuple-instance (Mergeable a, Mergeable b, Mergeable c, Mergeable d, Mergeable e, Mergeable f, Mergeable g) => Mergeable (a, b, c, d, e, f, g) where-  symbolicMerge f t (i0, i1, i2, i3, i4, i5, i6) (j0, j1, j2, j3, j4, j5, j6) = ( symbolicMerge f t i0 j0-                                                                                , symbolicMerge f t i1 j1-                                                                                , symbolicMerge f t i2 j2-                                                                                , symbolicMerge f t i3 j3-                                                                                , symbolicMerge f t i4 j4-                                                                                , symbolicMerge f t i5 j5-                                                                                , symbolicMerge f t i6 j6-                                                                                )--  select xs (err1, err2, err3, err4, err5, err6, err7) ind = ( select as err1 ind-                                                             , select bs err2 ind-                                                             , select cs err3 ind-                                                             , select ds err4 ind-                                                             , select es err5 ind-                                                             , select fs err6 ind-                                                             , select gs err7 ind-                                                             )-    where (as, bs, cs, ds, es, fs, gs) = unzip7 xs---- Base types are mergeable so long as they are equal-instance Mergeable ()      where symbolicMerge _ _ = concreteMerge "()"      "()"        (==)-instance Mergeable Integer where symbolicMerge _ _ = concreteMerge "Integer" "SInteger"  (==)-instance Mergeable Bool    where symbolicMerge _ _ = concreteMerge "Bool"    "SBool"     (==)-instance Mergeable Char    where symbolicMerge _ _ = concreteMerge "Char"    "SChar"     (==)-instance Mergeable Float   where symbolicMerge _ _ = concreteMerge "Float"   "SFloat"    fpIsEqualObjectH-instance Mergeable Double  where symbolicMerge _ _ = concreteMerge "Double"  "SDouble"   fpIsEqualObjectH-instance Mergeable Word8   where symbolicMerge _ _ = concreteMerge "Word8"   "SWord8"    (==)-instance Mergeable Word16  where symbolicMerge _ _ = concreteMerge "Word16"  "SWord16"   (==)-instance Mergeable Word32  where symbolicMerge _ _ = concreteMerge "Word32"  "SWord32"   (==)-instance Mergeable Word64  where symbolicMerge _ _ = concreteMerge "Word64"  "SWord64"   (==)-instance Mergeable Int8    where symbolicMerge _ _ = concreteMerge "Int8"    "SInt8"     (==)-instance Mergeable Int16   where symbolicMerge _ _ = concreteMerge "Int16"   "SInt16"    (==)-instance Mergeable Int32   where symbolicMerge _ _ = concreteMerge "Int32"   "SInt32"    (==)-instance Mergeable Int64   where symbolicMerge _ _ = concreteMerge "Int64"   "SInt64"    (==)---- Arbitrary product types, using GHC.Generics------ NB: Because of the way GHC.Generics works, the implementation of--- symbolicMerge' is recursive. The derived instance for @data T a = T a a a a@--- resembles that for (a, (a, (a, a))), not the flat 4-tuple (a, a, a, a). This--- difference should have no effect in practice. Note also that, unlike the--- hand-rolled tuple instances, the generic instance does not provide a custom--- 'select' implementation, and so does not benefit from the SMT-table--- implementation in the 'SBV a' instance.---- | Not exported. Symbolic merge using the generic representation provided by--- 'G.Generics'.-symbolicMergeDefault :: (G.Generic a, GMergeable (G.Rep a)) => Bool -> SBool -> a -> a -> a-symbolicMergeDefault force t x y = G.to $ symbolicMerge' force t (G.from x) (G.from y)---- | Not exported. Used only in 'symbolicMergeDefault'. Instances are provided for--- the generic representations of product types where each element is Mergeable.-class GMergeable f where-  symbolicMerge' :: Bool -> SBool -> f a -> f a -> f a--{-- - N.B. A V1 instance like the below would be wrong!- - Why? Because inSBV, we use empty data to mean "uninterpreted" sort; not- - something that has no constructors. Perhaps that was a bad design- - decision. So, do not allow merging of such values!-instance GMergeable V1 where-  symbolicMerge' _ _ x _ = x--}--instance GMergeable U1 where-  symbolicMerge' _ _ _ _ = U1--instance (Mergeable c) => GMergeable (K1 i c) where-  symbolicMerge' force t (K1 x) (K1 y) = K1 $ symbolicMerge force t x y--instance (GMergeable f) => GMergeable (M1 i c f) where-  symbolicMerge' force t (M1 x) (M1 y) = M1 $ symbolicMerge' force t x y--instance (GMergeable f, GMergeable g) => GMergeable (f :*: g) where-  symbolicMerge' force t (x1 :*: y1) (x2 :*: y2) = symbolicMerge' force t x1 x2 :*: symbolicMerge' force t y1 y2--{- A mergeable instance for sum-types isn't possible. Why? It would something like:--instance (GMergeable f, GMergeable g) => GMergeable (f :+: g) where-  symbolicMerge' force t (L1 x) (L1 y) = L1 $ symbolicMerge' force t x y-  symbolicMerge' force t (R1 x) (R1 y) = R1 $ symbolicMerge' force t x y-  symbolicMerge' force t l r-    | Just tv <- unliteral t = if tv then l else r-    | True                   = ????--There's really no good code to put in ????. We have no way to ask the SMT solver to merge composite values that-have different constructors. Calling "error" here would pass the type-checker, but that simply postpones the problem-to run-time. If you need mergeable on sum-types, you better write one yourself, possibly using the SEither type yourself.-As we have it, you'll get a type-error; which can be hard to read, but is preferable.--NB. This isn't a problem with the generic version of symbolic equality; since we can simply return sFalse if we-see different constructors. Such isn't the case when merging.--}---- Bounded instances-instance {-# OVERLAPPABLE #-} (SymVal a, Bounded a) => Bounded (SBV a) where-  minBound = literal minBound-  maxBound = literal maxBound---- Haskell and SMTLib differ in their default char ranges. In Haskell, maxbound is a lot larger.--- But in SMTLib, we only go upto 0x2FFFF. So, we adopt the SMTLib variant here. This is hardly--- an issue in practice, but the discrepancy is disconcerting.-instance {-# OVERLAPPING #-} Bounded SChar where-  minBound = literal (chr 0)-  maxBound = literal (chr 0x2FFFF)---- | Choose a value that satisfies the given predicate. This is Hillbert's choice, essentially. Note that--- if the predicate given is not satisfiable (for instance @const sFalse@), then the element returned will be arbitrary.--- The only guarantee is that if there's at least one element that satisfies the predicate, then the returned--- element will be one of those that do. The returned element is not guaranteed to be unique, least, greatest etc, unless--- there happens to be exactly one satisfying element.-some :: forall a. (SymVal a, HasKind a) => String -> (SBV a -> SBool) -> SBV a-some inpName cond = mk f-  where mk = SBV . SVal k . Right . cache--        k = kindOf (Proxy @a)---        f st = do ctr <- incrementFreshNameCounter st-                  let pre = atProxy (Proxy @a) inpName-                      nm  | ctr == 0 = pre-                          | True     = pre ++ "_" ++ show ctr-                  nm' <- newUninterpreted st (UIGiven nm) Nothing (SBVType [k]) (UINone False)-                  chosen <- newExpr st k $ SBVApp (Uninterpreted nm') []-                  let ifExists  = quantifiedBool $ \(Exists ex) -> cond ex-                  internalConstraint st False [] (unSBV (ifExists .=> cond (mk (pure (pure chosen)))))-                  pure chosen---- | SMT definable constants and functions, which can also be uninterpeted.--- This class captures functions that we can generate standalone-code for--- in the SMT solver. Note that we also allow uninterpreted constants and--- functions too. An uninterpreted constant is a value that is indexed by its name. The only--- property the prover assumes -- about these values are that they are equivalent to themselves; i.e., (for--- functions) they return the same results when applied to same arguments.--- We support uninterpreted-functions as a general means of black-box'ing--- operations that are /irrelevant/ for the purposes of the proof; i.e., when--- the proofs can be performed without any knowledge about the function itself.------ Minimal complete definition: 'sbvDefineValue'. However, most instances in--- practice are already provided by SBV, so end-users should not need to define their--- own instances.-class SMTDefinable a where-  -- | Generate the code for this value as an SMTLib function, instead of-  -- the usual unrolling semantics. This is useful for generating sub-functions-  -- in generated SMTLib problem, or handling recursive (and mutually-recursive)-  -- definitions that wouldn't terminate in an unrolling symbolic simulation context.-  ---  -- __IMPORTANT NOTE__ The string argument names this function. Note that SBV will identify-  -- this function with that name, i.e., if you use this function twice (or use it recursively),-  -- it will simply assume this name uniquely identifies the function being defined. Hence,-  -- the user has to assure that this string is unique amongst all the functions you use.-  -- Furthermore, if the call to 'smtFunction' happens in the scope of a parameter, you-  -- must make sure the string is chosen to keep it unique per parameter value. For instance,-  -- if you have:-  ---  -- @-  --   bar :: SInteger -> SInteger -> SInteger-  --   bar k = smtFunction "bar" (\x -> x+k)   -- Note the capture of k!-  -- @-  ---  -- and you call @bar 2@ and @bar 3@, you *will* get the same SMTLib function. Obviously-  -- this is unsound. The reason is that the parameter value isn't captured by the name. In general,-  -- you should simply not do this, but if you must, have a concrete argument to make sure you can-  -- create a unique name. Something like:-  ---  -- @-  --   bar :: String -> SInteger -> SInteger -> SInteger-  --   bar tag k = smtFunction ("bar_" ++ tag) (\x -> x+k)   -- Tag should make the name unique!-  -- @-  ---  -- Then, make sure you use @bar "two" 2@ and @bar "three" 3@ etc. to preserve the invariant.-  ---  -- Furthermore, the function argument must not capture any non-constant variables in the context.-  -- You can also define higher-order functions, see 'smtHOFunction' for that purpose.-  ---  -- Note that this is a design choice, to keep function creation as easy to use as possible. SBV-  -- could've made 'smtFunction' a monadic call and generated the name itself to avoid all these issues.-  -- But the ergonomics of that is worse, and doesn't fit with the general design philosophy. If you-  -- can think of a solution (perhaps using some nifty GHC tricks?) to avoid this issue without making-  -- 'smtFunction' return a monadic result, please get in touch!-  smtFunction :: (Typeable a, Lambda Symbolic a) => String -> a -> a--  -- | Register a function. This function is typically not needed as SBV will register functions used-  -- automatically upon first use. However, there are scenarios (in particular query contexts)-  -- where the definition isn't used before query-mode starts, and SBV (for historical reasons)-  -- requires functions to be known before query-mode starts executing. In such cases, use this function-  -- to register them with the system.-  registerFunction :: a -> Symbolic ()--  -- | Uninterpret a value, i.e., add this value as a completely undefined value/function that-  -- the solver is free to instantiate to satisfy other constraints.-  ---  -- __Known issues__-  ---  -- Usually using an uninterpret function will register itself to the solver, but sometimes the lazyness-  -- of the evaluation might render this unreliable.-  ---  -- For example, when working with quantifiers and uninterpreted functions with the following code:-  ---  -- > runSMTWith z3 $ do-  -- >   let f = uninterpret "f" :: SInteger -> SInteger-  -- >   query $ do-  -- >     constrain $ \(Forall (b :: SInteger)) -> f b .== f b-  -- >     checkSat-  ---  -- The solver will complain about the unknown constant @f (Int)@.-  ---  -- A workaround of this is to explicit register them with 'Data.SBV.Control.registerUISMTFunction':-  ---  -- > runSMTWith z3 $ do-  -- >   let f = uninterpret "f" :: SInteger -> SInteger-  -- >   registerUISMTFunction f-  -- >   query $ do-  -- >     constrain $ \(Forall (b :: SInteger)) -> f b .== f b-  -- >     checkSat-  ---  -- See https://github.com/LeventErkok/sbv/issues/711 for more info.-  uninterpret :: String -> a--  -- | Uninterpret a value, with named arguments in case of functions. SBV will use these-  -- names when it shows the values for the arguments. If the given names are more than needed-  -- we ignore the excess. If not enough, we add from a stock set of variables.-  uninterpretWithArgs :: String -> [String] -> a--  -- | Uninterpret a value, only for the purposes of code-generation. For execution-  -- and verification the value is used as is. For code-generation, the alternate-  -- definition is used. This is useful when we want to take advantage of native-  -- libraries on the target languages.-  cgUninterpret :: String -> [String] -> a -> a--  -- | Most generalized form of uninterpretation, this function should not be needed-  -- by end-user-code, but is rather useful for the library development.-  sbvDefineValue :: UIName -> Maybe [String] -> UIKind a -> a--  -- | A synonym for 'uninterpret'. Allows us to create variables without-  -- having to call 'free' explicitly, i.e., without being in the symbolic monad.-  sym :: String -> a--  -- | Render an uninterpeted value as an SMTLib definition-  sbv2smt :: ExtractIO m => a -> m String--  {-# MINIMAL sbvDefineValue, sbv2smt #-}--  -- defaults:-  uninterpret         nm         = sbvDefineValue (UIGiven nm) Nothing   $ UIFree True-  uninterpretWithArgs nm  as     = sbvDefineValue (UIGiven nm) (Just as) $ UIFree True-  cgUninterpret       nm  code v = sbvDefineValue (UIGiven nm) Nothing   $ UICodeC (v, code)-  sym                            = uninterpret--  smtFunction nm v = sbvDefineValue (UIGiven (atProxy (Proxy @a) nm)) Nothing $ UIFun (v, \st fk -> lambda st TopLevel fk v)--  default registerFunction :: forall b c. (a ~ (SBV b -> c), SymVal b, SMTDefinable c) => a -> Symbolic ()-  registerFunction f = do let k = kindOf (Proxy @b)-                          st <- symbolicEnv-                          v <- liftIO $ newInternalVariable st k-                          let b = SBV $ SVal k $ Right $ cache (const (pure v))-                          registerFunction $ f b----- | Kind of uninterpretation-data UIKind a = UIFree  Bool                            -- ^ completely uninterpreted. If Bool is true, then this is curried.-              | UIFun   (a, State -> Kind -> IO SMTDef) -- ^ has code for SMTLib, with final type of kind (note this is the result-                                                        -- , not the arguments), which can be generated by calling the function on the state.-              | UICodeC (a, [String])                   -- ^ has code for code-generation, i.e., C-              deriving Functor---- Get the code associated with the UI, unless we've already did this once. (To support recursive defs.)-retrieveUICode :: UIName -> State -> Kind -> UIKind a -> IO UICodeKind-retrieveUICode _             _  _  (UIFree  c)      = pure $ UINone c-retrieveUICode (UIGiven  nm) st fk (UIFun   (_, f)) = do userFuncs <- readIORef (rUserFuncs st)-                                                         if nm `Set.member` userFuncs-                                                            then pure $ UINone True-                                                            else do modifyState st rUserFuncs (Set.insert nm) (pure ())-                                                                    UISMT <$> f st fk-retrieveUICode _             _  _  (UICodeC (_, c)) = pure $ UICgC c---- Get the constant value associated with the UI-retrieveConstCode :: UIKind a -> Maybe a-retrieveConstCode UIFree{}         = Nothing-retrieveConstCode (UIFun   (v, _)) = Just v-retrieveConstCode (UICodeC (v, _)) = Just v---- Plain constants-instance (SymVal a, HasKind a) => SMTDefinable (SBV a) where-  sbv2smt a = do st <- mkNewState defaultSMTCfg (LambdaGen (Just 0))-                 s <- lambdaStr st TopLevel (kindOf a) a-                 pure $ intercalate "\n" [ "; Automatically generated by SBV. Do not modify!"-                                         , "; Type: " ++ smtType (kindOf a)-                                         , show s-                                         ]--  registerFunction x = constrain $ x .== x--  sbvDefineValue nm mbArgs uiKind-     | Just v <- retrieveConstCode uiKind-     = v-     | True-     = SBV $ SVal ka $ Right $ cache result-    where ka = kindOf (Proxy @a)-          result st = do isSMT <- inSMTMode st-                         case (isSMT, uiKind) of-                           (True, UICodeC (v, _)) -> sbvToSV st v-                           _                      -> do nm' <- newUninterpreted st nm mbArgs (SBVType [ka]) =<< retrieveUICode nm st ka uiKind-                                                        newExpr st ka $ SBVApp (Uninterpreted nm') []---- Functions of one argument-instance (SymVal b, SymVal a, HasKind a) => SMTDefinable (SBV b -> SBV a) where-  sbv2smt fn = defs2smt $ \b -> fn b .== fn b--  sbvDefineValue nm mbArgs uiKind = f-    where f arg0-           | Just v <- retrieveConstCode uiKind, isConcrete arg0-           = v arg0-           | True-           = SBV $ SVal ka $ Right $ cache result-           where ka = kindOf (Proxy @a)-                 kb = kindOf (Proxy @b)-                 result st = do isSMT <- inSMTMode st-                                case (isSMT, uiKind) of-                                  (True, UICodeC (v, _)) -> sbvToSV st (v arg0)-                                  _                      -> do nm' <- newUninterpreted st nm mbArgs (SBVType [kb, ka]) =<< retrieveUICode nm st ka uiKind-                                                               sw0 <- sbvToSV st arg0-                                                               mapM_ forceSVArg [sw0]-                                                               newExpr st ka $ SBVApp (Uninterpreted nm') [sw0]---- Functions of two arguments-instance (SymVal c, SymVal b, SymVal a, HasKind a) => SMTDefinable (SBV c -> SBV b -> SBV a) where-  sbv2smt fn = defs2smt $ \c b -> fn c b .== fn c b--  sbvDefineValue nm mbArgs uiKind = f-    where f arg0 arg1-           | Just v <- retrieveConstCode uiKind, isConcrete arg0, isConcrete arg1-           = v arg0 arg1-           | True-           = SBV $ SVal ka $ Right $ cache result-           where ka = kindOf (Proxy @a)-                 kb = kindOf (Proxy @b)-                 kc = kindOf (Proxy @c)-                 result st = do isSMT <- inSMTMode st-                                case (isSMT, uiKind) of-                                  (True, UICodeC (v, _)) -> sbvToSV st (v arg0 arg1)-                                  _                      -> do nm' <- newUninterpreted st nm mbArgs (SBVType [kc, kb, ka]) =<< retrieveUICode nm st ka uiKind-                                                               sw0 <- sbvToSV st arg0-                                                               sw1 <- sbvToSV st arg1-                                                               mapM_ forceSVArg [sw0, sw1]-                                                               newExpr st ka $ SBVApp (Uninterpreted nm') [sw0, sw1]---- Functions of three arguments-instance (SymVal d, SymVal c, SymVal b, SymVal a, HasKind a) => SMTDefinable (SBV d -> SBV c -> SBV b -> SBV a) where-  sbv2smt fn = defs2smt $ \d c b -> fn d c b .== fn d c b--  sbvDefineValue nm mbArgs uiKind = f-    where f arg0 arg1 arg2-           | Just v <- retrieveConstCode uiKind, isConcrete arg0, isConcrete arg1, isConcrete arg2-           = v arg0 arg1 arg2-           | True-           = SBV $ SVal ka $ Right $ cache result-           where ka = kindOf (Proxy @a)-                 kb = kindOf (Proxy @b)-                 kc = kindOf (Proxy @c)-                 kd = kindOf (Proxy @d)-                 result st = do isSMT <- inSMTMode st-                                case (isSMT, uiKind) of-                                  (True, UICodeC (v, _)) -> sbvToSV st (v arg0 arg1 arg2)-                                  _                      -> do nm' <- newUninterpreted st nm mbArgs (SBVType [kd, kc, kb, ka]) =<< retrieveUICode nm st ka uiKind-                                                               sw0 <- sbvToSV st arg0-                                                               sw1 <- sbvToSV st arg1-                                                               sw2 <- sbvToSV st arg2-                                                               mapM_ forceSVArg [sw0, sw1, sw2]-                                                               newExpr st ka $ SBVApp (Uninterpreted nm') [sw0, sw1, sw2]---- Functions of four arguments-instance (SymVal e, SymVal d, SymVal c, SymVal b, SymVal a, HasKind a) => SMTDefinable (SBV e -> SBV d -> SBV c -> SBV b -> SBV a) where-  sbv2smt fn = defs2smt $ \e d c b -> fn e d c b .== fn e d c b--  sbvDefineValue nm mbArgs uiKind = f-    where f arg0 arg1 arg2 arg3-           | Just v <- retrieveConstCode uiKind, isConcrete arg0, isConcrete arg1, isConcrete arg2, isConcrete arg3-           = v arg0 arg1 arg2 arg3-           | True-           = SBV $ SVal ka $ Right $ cache result-           where ka = kindOf (Proxy @a)-                 kb = kindOf (Proxy @b)-                 kc = kindOf (Proxy @c)-                 kd = kindOf (Proxy @d)-                 ke = kindOf (Proxy @e)-                 result st = do isSMT <- inSMTMode st-                                case (isSMT, uiKind) of-                                  (True, UICodeC (v, _)) -> sbvToSV st (v arg0 arg1 arg2 arg3)-                                  _                      -> do nm' <- newUninterpreted st nm mbArgs (SBVType [ke, kd, kc, kb, ka]) =<< retrieveUICode nm st ka uiKind-                                                               sw0 <- sbvToSV st arg0-                                                               sw1 <- sbvToSV st arg1-                                                               sw2 <- sbvToSV st arg2-                                                               sw3 <- sbvToSV st arg3-                                                               mapM_ forceSVArg [sw0, sw1, sw2, sw3]-                                                               newExpr st ka $ SBVApp (Uninterpreted nm') [sw0, sw1, sw2, sw3]---- Functions of five arguments-instance (SymVal f, SymVal e, SymVal d, SymVal c, SymVal b, SymVal a, HasKind a) => SMTDefinable (SBV f -> SBV e -> SBV d -> SBV c -> SBV b -> SBV a) where-  sbv2smt fn = defs2smt $ \f e d c b -> fn f e d c b .== fn f e d c b--  sbvDefineValue nm mbArgs uiKind = f-    where f arg0 arg1 arg2 arg3 arg4-           | Just v <- retrieveConstCode uiKind, isConcrete arg0, isConcrete arg1, isConcrete arg2, isConcrete arg3, isConcrete arg4-           = v arg0 arg1 arg2 arg3 arg4-           | True-           = SBV $ SVal ka $ Right $ cache result-           where ka = kindOf (Proxy @a)-                 kb = kindOf (Proxy @b)-                 kc = kindOf (Proxy @c)-                 kd = kindOf (Proxy @d)-                 ke = kindOf (Proxy @e)-                 kf = kindOf (Proxy @f)-                 result st = do isSMT <- inSMTMode st-                                case (isSMT, uiKind) of-                                  (True, UICodeC (v, _)) -> sbvToSV st (v arg0 arg1 arg2 arg3 arg4)-                                  _                      -> do nm' <- newUninterpreted st nm mbArgs (SBVType [kf, ke, kd, kc, kb, ka]) =<< retrieveUICode nm st ka uiKind-                                                               sw0 <- sbvToSV st arg0-                                                               sw1 <- sbvToSV st arg1-                                                               sw2 <- sbvToSV st arg2-                                                               sw3 <- sbvToSV st arg3-                                                               sw4 <- sbvToSV st arg4-                                                               mapM_ forceSVArg [sw0, sw1, sw2, sw3, sw4]-                                                               newExpr st ka $ SBVApp (Uninterpreted nm') [sw0, sw1, sw2, sw3, sw4]---- Functions of six arguments-instance (SymVal g, SymVal f, SymVal e, SymVal d, SymVal c, SymVal b, SymVal a, HasKind a) => SMTDefinable (SBV g -> SBV f -> SBV e -> SBV d -> SBV c -> SBV b -> SBV a) where-  sbv2smt fn = defs2smt $ \f g e d c b -> fn g f e d c b .== fn g f e d c b--  sbvDefineValue nm mbArgs uiKind = f-    where f arg0 arg1 arg2 arg3 arg4 arg5-           | Just v <- retrieveConstCode uiKind, isConcrete arg0, isConcrete arg1, isConcrete arg2, isConcrete arg3, isConcrete arg4, isConcrete arg5-           = v arg0 arg1 arg2 arg3 arg4 arg5-           | True-           = SBV $ SVal ka $ Right $ cache result-           where ka = kindOf (Proxy @a)-                 kb = kindOf (Proxy @b)-                 kc = kindOf (Proxy @c)-                 kd = kindOf (Proxy @d)-                 ke = kindOf (Proxy @e)-                 kf = kindOf (Proxy @f)-                 kg = kindOf (Proxy @g)-                 result st = do isSMT <- inSMTMode st-                                case (isSMT, uiKind) of-                                  (True, UICodeC (v, _)) -> sbvToSV st (v arg0 arg1 arg2 arg3 arg4 arg5)-                                  _                      -> do nm' <- newUninterpreted st nm mbArgs (SBVType [kg, kf, ke, kd, kc, kb, ka]) =<< retrieveUICode nm st ka uiKind-                                                               sw0 <- sbvToSV st arg0-                                                               sw1 <- sbvToSV st arg1-                                                               sw2 <- sbvToSV st arg2-                                                               sw3 <- sbvToSV st arg3-                                                               sw4 <- sbvToSV st arg4-                                                               sw5 <- sbvToSV st arg5-                                                               mapM_ forceSVArg [sw0, sw1, sw2, sw3, sw4, sw5]-                                                               newExpr st ka $ SBVApp (Uninterpreted nm') [sw0, sw1, sw2, sw3, sw4, sw5]---- Functions of seven arguments-instance (SymVal h, SymVal g, SymVal f, SymVal e, SymVal d, SymVal c, SymVal b, SymVal a, HasKind a)-            => SMTDefinable (SBV h -> SBV g -> SBV f -> SBV e -> SBV d -> SBV c -> SBV b -> SBV a) where-  sbv2smt fn = defs2smt $ \h g f e d c b -> fn h g f e d c b .== fn h g f e d c b--  sbvDefineValue nm mbArgs uiKind = f-    where f arg0 arg1 arg2 arg3 arg4 arg5 arg6-           | Just v <- retrieveConstCode uiKind, isConcrete arg0, isConcrete arg1, isConcrete arg2, isConcrete arg3, isConcrete arg4, isConcrete arg5, isConcrete arg6-           = v arg0 arg1 arg2 arg3 arg4 arg5 arg6-           | True-           = SBV $ SVal ka $ Right $ cache result-           where ka = kindOf (Proxy @a)-                 kb = kindOf (Proxy @b)-                 kc = kindOf (Proxy @c)-                 kd = kindOf (Proxy @d)-                 ke = kindOf (Proxy @e)-                 kf = kindOf (Proxy @f)-                 kg = kindOf (Proxy @g)-                 kh = kindOf (Proxy @h)-                 result st = do isSMT <- inSMTMode st-                                case (isSMT, uiKind) of-                                  (True, UICodeC (v, _)) -> sbvToSV st (v arg0 arg1 arg2 arg3 arg4 arg5 arg6)-                                  _                      -> do nm' <- newUninterpreted st nm mbArgs (SBVType [kh, kg, kf, ke, kd, kc, kb, ka]) =<< retrieveUICode nm st ka uiKind-                                                               sw0 <- sbvToSV st arg0-                                                               sw1 <- sbvToSV st arg1-                                                               sw2 <- sbvToSV st arg2-                                                               sw3 <- sbvToSV st arg3-                                                               sw4 <- sbvToSV st arg4-                                                               sw5 <- sbvToSV st arg5-                                                               sw6 <- sbvToSV st arg6-                                                               mapM_ forceSVArg [sw0, sw1, sw2, sw3, sw4, sw5, sw6]-                                                               newExpr st ka $ SBVApp (Uninterpreted nm') [sw0, sw1, sw2, sw3, sw4, sw5, sw6]---- Functions of eight arguments-instance (SymVal i, SymVal h, SymVal g, SymVal f, SymVal e, SymVal d, SymVal c, SymVal b, SymVal a, SymVal a, HasKind a)-            => SMTDefinable (SBV i -> SBV h -> SBV g -> SBV f -> SBV e -> SBV d -> SBV c -> SBV b -> SBV a) where-  sbv2smt fn = defs2smt $ \i h g f e d c b -> fn i h g f e d c b .== fn i h g f e d c b--  sbvDefineValue nm mbArgs uiKind = f-    where f arg0 arg1 arg2 arg3 arg4 arg5 arg6 arg7-           | Just v <- retrieveConstCode uiKind, isConcrete arg0, isConcrete arg1, isConcrete arg2, isConcrete arg3, isConcrete arg4, isConcrete arg5, isConcrete arg6, isConcrete arg7-           = v arg0 arg1 arg2 arg3 arg4 arg5 arg6 arg7-           | True-           = SBV $ SVal ka $ Right $ cache result-           where ka = kindOf (Proxy @a)-                 kb = kindOf (Proxy @b)-                 kc = kindOf (Proxy @c)-                 kd = kindOf (Proxy @d)-                 ke = kindOf (Proxy @e)-                 kf = kindOf (Proxy @f)-                 kg = kindOf (Proxy @g)-                 kh = kindOf (Proxy @h)-                 ki = kindOf (Proxy @i)-                 result st = do isSMT <- inSMTMode st-                                case (isSMT, uiKind) of-                                  (True, UICodeC (v, _)) -> sbvToSV st (v arg0 arg1 arg2 arg3 arg4 arg5 arg6 arg7)-                                  _                      -> do nm' <- newUninterpreted st nm mbArgs (SBVType [ki, kh, kg, kf, ke, kd, kc, kb, ka]) =<< retrieveUICode nm st ka uiKind-                                                               sw0 <- sbvToSV st arg0-                                                               sw1 <- sbvToSV st arg1-                                                               sw2 <- sbvToSV st arg2-                                                               sw3 <- sbvToSV st arg3-                                                               sw4 <- sbvToSV st arg4-                                                               sw5 <- sbvToSV st arg5-                                                               sw6 <- sbvToSV st arg6-                                                               sw7 <- sbvToSV st arg7-                                                               mapM_ forceSVArg [sw0, sw1, sw2, sw3, sw4, sw5, sw6, sw7]-                                                               newExpr st ka $ SBVApp (Uninterpreted nm') [sw0, sw1, sw2, sw3, sw4, sw5, sw6, sw7]---- Functions of nine arguments-instance (SymVal j, SymVal i, SymVal h, SymVal g, SymVal f, SymVal e, SymVal d, SymVal c, SymVal b, SymVal a, HasKind a)-            => SMTDefinable (SBV j -> SBV i -> SBV h -> SBV g -> SBV f -> SBV e -> SBV d -> SBV c -> SBV b -> SBV a) where-  sbv2smt fn = defs2smt $ \j i h g f e d c b -> fn j i h g f e d c b .== fn j i h g f e d c b--  sbvDefineValue nm mbArgs uiKind = f-    where f arg0 arg1 arg2 arg3 arg4 arg5 arg6 arg7 arg8-           | Just v <- retrieveConstCode uiKind, isConcrete arg0, isConcrete arg1, isConcrete arg2, isConcrete arg3, isConcrete arg4, isConcrete arg5, isConcrete arg6, isConcrete arg7, isConcrete arg8-           = v arg0 arg1 arg2 arg3 arg4 arg5 arg6 arg7 arg8-           | True-           = SBV $ SVal ka $ Right $ cache result-           where ka = kindOf (Proxy @a)-                 kb = kindOf (Proxy @b)-                 kc = kindOf (Proxy @c)-                 kd = kindOf (Proxy @d)-                 ke = kindOf (Proxy @e)-                 kf = kindOf (Proxy @f)-                 kg = kindOf (Proxy @g)-                 kh = kindOf (Proxy @h)-                 ki = kindOf (Proxy @i)-                 kj = kindOf (Proxy @j)-                 result st = do isSMT <- inSMTMode st-                                case (isSMT, uiKind) of-                                  (True, UICodeC (v, _)) -> sbvToSV st (v arg0 arg1 arg2 arg3 arg4 arg5 arg6 arg7 arg8)-                                  _                      -> do nm' <- newUninterpreted st nm mbArgs (SBVType [kj, ki, kh, kg, kf, ke, kd, kc, kb, ka]) =<< retrieveUICode nm st ka uiKind-                                                               sw0 <- sbvToSV st arg0-                                                               sw1 <- sbvToSV st arg1-                                                               sw2 <- sbvToSV st arg2-                                                               sw3 <- sbvToSV st arg3-                                                               sw4 <- sbvToSV st arg4-                                                               sw5 <- sbvToSV st arg5-                                                               sw6 <- sbvToSV st arg6-                                                               sw7 <- sbvToSV st arg7-                                                               sw8 <- sbvToSV st arg8-                                                               mapM_ forceSVArg [sw0, sw1, sw2, sw3, sw4, sw5, sw6, sw7, sw8]-                                                               newExpr st ka $ SBVApp (Uninterpreted nm') [sw0, sw1, sw2, sw3, sw4, sw5, sw6, sw7, sw8]---- Functions of ten arguments-instance (SymVal k, SymVal j, SymVal i, SymVal h, SymVal g, SymVal f, SymVal e, SymVal d, SymVal c, SymVal b, SymVal a, HasKind a)-            => SMTDefinable (SBV k -> SBV j -> SBV i -> SBV h -> SBV g -> SBV f -> SBV e -> SBV d -> SBV c -> SBV b -> SBV a) where-  sbv2smt fn = defs2smt $ \k j i h g f e d c b -> fn k j i h g f e d c b .== fn k j i h g f e d c b--  sbvDefineValue nm mbArgs uiKind = f-    where f arg0 arg1 arg2 arg3 arg4 arg5 arg6 arg7 arg8 arg9-           | Just v <- retrieveConstCode uiKind, isConcrete arg0, isConcrete arg1, isConcrete arg2, isConcrete arg3, isConcrete arg4, isConcrete arg5, isConcrete arg6, isConcrete arg7, isConcrete arg8, isConcrete arg9-           = v arg0 arg1 arg2 arg3 arg4 arg5 arg6 arg7 arg8 arg9-           | True-           = SBV $ SVal ka $ Right $ cache result-           where ka = kindOf (Proxy @a)-                 kb = kindOf (Proxy @b)-                 kc = kindOf (Proxy @c)-                 kd = kindOf (Proxy @d)-                 ke = kindOf (Proxy @e)-                 kf = kindOf (Proxy @f)-                 kg = kindOf (Proxy @g)-                 kh = kindOf (Proxy @h)-                 ki = kindOf (Proxy @i)-                 kj = kindOf (Proxy @j)-                 kk = kindOf (Proxy @k)-                 result st = do isSMT <- inSMTMode st-                                case (isSMT, uiKind) of-                                  (True, UICodeC (v, _)) -> sbvToSV st (v arg0 arg1 arg2 arg3 arg4 arg5 arg6 arg7 arg8 arg9)-                                  _                      -> do nm' <- newUninterpreted st nm mbArgs (SBVType [kk, kj, ki, kh, kg, kf, ke, kd, kc, kb, ka]) =<< retrieveUICode nm st ka uiKind-                                                               sw0 <- sbvToSV st arg0-                                                               sw1 <- sbvToSV st arg1-                                                               sw2 <- sbvToSV st arg2-                                                               sw3 <- sbvToSV st arg3-                                                               sw4 <- sbvToSV st arg4-                                                               sw5 <- sbvToSV st arg5-                                                               sw6 <- sbvToSV st arg6-                                                               sw7 <- sbvToSV st arg7-                                                               sw8 <- sbvToSV st arg8-                                                               sw9 <- sbvToSV st arg9-                                                               mapM_ forceSVArg [sw0, sw1, sw2, sw3, sw4, sw5, sw6, sw7, sw8, sw9]-                                                               newExpr st ka $ SBVApp (Uninterpreted nm') [sw0, sw1, sw2, sw3, sw4, sw5, sw6, sw7, sw8, sw9]---- Functions of eleven arguments-instance (SymVal l, SymVal k, SymVal j, SymVal i, SymVal h, SymVal g, SymVal f, SymVal e, SymVal d, SymVal c, SymVal b, SymVal a, HasKind a)-            => SMTDefinable (SBV l -> SBV k -> SBV j -> SBV i -> SBV h -> SBV g -> SBV f -> SBV e -> SBV d -> SBV c -> SBV b -> SBV a) where-  sbv2smt fn = defs2smt $ \l k j i h g f e d c b -> fn l k j i h g f e d c b .== fn l k j i h g f e d c b--  sbvDefineValue nm mbArgs uiKind = f-    where f arg0 arg1 arg2 arg3 arg4 arg5 arg6 arg7 arg8 arg9 arg10-           | Just v <- retrieveConstCode uiKind, isConcrete arg0, isConcrete arg1, isConcrete arg2, isConcrete arg3, isConcrete arg4, isConcrete arg5, isConcrete arg6, isConcrete arg7, isConcrete arg8, isConcrete arg9, isConcrete arg10-           = v arg0 arg1 arg2 arg3 arg4 arg5 arg6 arg7 arg8 arg9 arg10-           | True-           = SBV $ SVal ka $ Right $ cache result-           where ka = kindOf (Proxy @a)-                 kb = kindOf (Proxy @b)-                 kc = kindOf (Proxy @c)-                 kd = kindOf (Proxy @d)-                 ke = kindOf (Proxy @e)-                 kf = kindOf (Proxy @f)-                 kg = kindOf (Proxy @g)-                 kh = kindOf (Proxy @h)-                 ki = kindOf (Proxy @i)-                 kj = kindOf (Proxy @j)-                 kk = kindOf (Proxy @k)-                 kl = kindOf (Proxy @l)-                 result st = do isSMT <- inSMTMode st-                                case (isSMT, uiKind) of-                                  (True, UICodeC (v, _)) -> sbvToSV st (v arg0 arg1 arg2 arg3 arg4 arg5 arg6 arg7 arg8 arg9 arg10)-                                  _                      -> do nm' <- newUninterpreted st nm mbArgs (SBVType [kl, kk, kj, ki, kh, kg, kf, ke, kd, kc, kb, ka]) =<< retrieveUICode nm st ka uiKind-                                                               sw0  <- sbvToSV st arg0-                                                               sw1  <- sbvToSV st arg1-                                                               sw2  <- sbvToSV st arg2-                                                               sw3  <- sbvToSV st arg3-                                                               sw4  <- sbvToSV st arg4-                                                               sw5  <- sbvToSV st arg5-                                                               sw6  <- sbvToSV st arg6-                                                               sw7  <- sbvToSV st arg7-                                                               sw8  <- sbvToSV st arg8-                                                               sw9  <- sbvToSV st arg9-                                                               sw10 <- sbvToSV st arg10-                                                               mapM_ forceSVArg [sw0, sw1, sw2, sw3, sw4, sw5, sw6, sw7, sw8, sw9, sw10]-                                                               newExpr st ka $ SBVApp (Uninterpreted nm') [sw0, sw1, sw2, sw3, sw4, sw5, sw6, sw7, sw8, sw9, sw10]---- Functions of twelve arguments-instance (SymVal m, SymVal l, SymVal k, SymVal j, SymVal i, SymVal h, SymVal g, SymVal f, SymVal e, SymVal d, SymVal c, SymVal b, SymVal a, HasKind a)-            => SMTDefinable (SBV m -> SBV l -> SBV k -> SBV j -> SBV i -> SBV h -> SBV g -> SBV f -> SBV e -> SBV d -> SBV c -> SBV b -> SBV a) where-  sbv2smt fn = defs2smt $ \m l k j i h g f e d c b -> fn m l k j i h g f e d c b .== fn m l k j i h g f e d c b--  sbvDefineValue nm mbArgs uiKind = f-    where f arg0 arg1 arg2 arg3 arg4 arg5 arg6 arg7 arg8 arg9 arg10 arg11-           | Just v <- retrieveConstCode uiKind, isConcrete arg0, isConcrete arg1, isConcrete arg2, isConcrete arg3, isConcrete arg4, isConcrete arg5, isConcrete arg6, isConcrete arg7, isConcrete arg8, isConcrete arg9, isConcrete arg10, isConcrete arg11-           = v arg0 arg1 arg2 arg3 arg4 arg5 arg6 arg7 arg8 arg9 arg10 arg11-           | True-           = SBV $ SVal ka $ Right $ cache result-           where ka = kindOf (Proxy @a)-                 kb = kindOf (Proxy @b)-                 kc = kindOf (Proxy @c)-                 kd = kindOf (Proxy @d)-                 ke = kindOf (Proxy @e)-                 kf = kindOf (Proxy @f)-                 kg = kindOf (Proxy @g)-                 kh = kindOf (Proxy @h)-                 ki = kindOf (Proxy @i)-                 kj = kindOf (Proxy @j)-                 kk = kindOf (Proxy @k)-                 kl = kindOf (Proxy @l)-                 km = kindOf (Proxy @m)-                 result st = do isSMT <- inSMTMode st-                                case (isSMT, uiKind) of-                                  (True, UICodeC (v, _)) -> sbvToSV st (v arg0 arg1 arg2 arg3 arg4 arg5 arg6 arg7 arg8 arg9 arg10 arg11)-                                  _                      -> do nm' <- newUninterpreted st nm mbArgs (SBVType [km, kl, kk, kj, ki, kh, kg, kf, ke, kd, kc, kb, ka]) =<< retrieveUICode nm st ka uiKind-                                                               sw0  <- sbvToSV st arg0-                                                               sw1  <- sbvToSV st arg1-                                                               sw2  <- sbvToSV st arg2-                                                               sw3  <- sbvToSV st arg3-                                                               sw4  <- sbvToSV st arg4-                                                               sw5  <- sbvToSV st arg5-                                                               sw6  <- sbvToSV st arg6-                                                               sw7  <- sbvToSV st arg7-                                                               sw8  <- sbvToSV st arg8-                                                               sw9  <- sbvToSV st arg9-                                                               sw10 <- sbvToSV st arg10-                                                               sw11 <- sbvToSV st arg11-                                                               mapM_ forceSVArg [sw0, sw1, sw2, sw3, sw4, sw5, sw6, sw7, sw8, sw9, sw10, sw11]-                                                               newExpr st ka $ SBVApp (Uninterpreted nm') [sw0, sw1, sw2, sw3, sw4, sw5, sw6, sw7, sw8, sw9, sw10, sw11]---- Mark the UIKind as uncurried-mkUncurried :: UIKind a -> UIKind a-mkUncurried (UIFree  _) = UIFree  False-mkUncurried (UIFun   a) = UIFun   a-mkUncurried (UICodeC a) = UICodeC a---- Uncurried functions of two arguments-instance (SymVal c, SymVal b, SymVal a, HasKind a) => SMTDefinable ((SBV c, SBV b) -> SBV a) where-  sbv2smt fn                      = defs2smt $ \p -> fn p .== fn p-  registerFunction                = registerFunction . curry2-  sbvDefineValue nm mbArgs uiKind = let f = sbvDefineValue nm mbArgs (curry2 <$> mkUncurried uiKind) in uncurry2 f---- Uncurried functions of three arguments-instance (SymVal d, SymVal c, SymVal b, SymVal a, HasKind a) => SMTDefinable ((SBV d, SBV c, SBV b) -> SBV a) where-  sbv2smt fn                      = defs2smt $ \p -> fn p .== fn p-  registerFunction                = registerFunction . curry3-  sbvDefineValue nm mbArgs uiKind = let f = sbvDefineValue nm mbArgs (curry3 <$> mkUncurried uiKind) in uncurry3 f---- Uncurried functions of four arguments-instance (SymVal e, SymVal d, SymVal c, SymVal b, SymVal a, HasKind a) => SMTDefinable ((SBV e, SBV d, SBV c, SBV b) -> SBV a) where-  sbv2smt fn                      = defs2smt $ \p -> fn p .== fn p-  registerFunction                = registerFunction . curry4-  sbvDefineValue nm mbArgs uiKind = let f = sbvDefineValue nm mbArgs (curry4 <$> mkUncurried uiKind) in uncurry4 f---- Uncurried functions of five arguments-instance (SymVal f, SymVal e, SymVal d, SymVal c, SymVal b, SymVal a, HasKind a) => SMTDefinable ((SBV f, SBV e, SBV d, SBV c, SBV b) -> SBV a) where-  sbv2smt fn                      = defs2smt $ \p -> fn p .== fn p-  registerFunction                = registerFunction . curry5-  sbvDefineValue nm mbArgs uiKind = let f = sbvDefineValue nm mbArgs (curry5 <$> mkUncurried uiKind) in uncurry5 f---- Uncurried functions of six arguments-instance (SymVal g, SymVal f, SymVal e, SymVal d, SymVal c, SymVal b, SymVal a, HasKind a) => SMTDefinable ((SBV g, SBV f, SBV e, SBV d, SBV c, SBV b) -> SBV a) where-  sbv2smt fn                      = defs2smt $ \p -> fn p .== fn p-  registerFunction                = registerFunction . curry6-  sbvDefineValue nm mbArgs uiKind = let f = sbvDefineValue nm mbArgs (curry6 <$> mkUncurried uiKind) in uncurry6 f---- Uncurried functions of seven arguments-instance (SymVal h, SymVal g, SymVal f, SymVal e, SymVal d, SymVal c, SymVal b, SymVal a, HasKind a) => SMTDefinable ((SBV h, SBV g, SBV f, SBV e, SBV d, SBV c, SBV b) -> SBV a) where-  sbv2smt fn                      = defs2smt $ \p -> fn p .== fn p-  registerFunction                = registerFunction . curry7-  sbvDefineValue nm mbArgs uiKind = let f = sbvDefineValue nm mbArgs (curry7 <$> mkUncurried uiKind) in uncurry7 f---- Uncurried functions of eight arguments-instance (SymVal i, SymVal h, SymVal g, SymVal f, SymVal e, SymVal d, SymVal c, SymVal b, SymVal a, HasKind a) => SMTDefinable ((SBV i, SBV h, SBV g, SBV f, SBV e, SBV d, SBV c, SBV b) -> SBV a) where-  sbv2smt fn                      = defs2smt $ \p -> fn p .== fn p-  registerFunction                = registerFunction . curry8-  sbvDefineValue nm mbArgs uiKind = let f = sbvDefineValue nm mbArgs (curry8 <$> mkUncurried uiKind) in uncurry8 f---- Uncurried functions of nine arguments-instance (SymVal j, SymVal i, SymVal h, SymVal g, SymVal f, SymVal e, SymVal d, SymVal c, SymVal b, SymVal a, HasKind a) => SMTDefinable ((SBV j, SBV i, SBV h, SBV g, SBV f, SBV e, SBV d, SBV c, SBV b) -> SBV a) where-  sbv2smt fn                      = defs2smt $ \p -> fn p .== fn p-  registerFunction                = registerFunction . curry9-  sbvDefineValue nm mbArgs uiKind = let f = sbvDefineValue nm mbArgs (curry9 <$> mkUncurried uiKind) in uncurry9 f---- Uncurried functions of ten arguments-instance (SymVal k, SymVal j, SymVal i, SymVal h, SymVal g, SymVal f, SymVal e, SymVal d, SymVal c, SymVal b, SymVal a, HasKind a) => SMTDefinable ((SBV k, SBV j, SBV i, SBV h, SBV g, SBV f, SBV e, SBV d, SBV c, SBV b) -> SBV a) where-  sbv2smt fn                      = defs2smt $ \p -> fn p .== fn p-  registerFunction                = registerFunction . curry10-  sbvDefineValue nm mbArgs uiKind = let f = sbvDefineValue nm mbArgs (curry10 <$> mkUncurried uiKind) in uncurry10 f---- Uncurried functions of eleven arguments-instance (SymVal l, SymVal k, SymVal j, SymVal i, SymVal h, SymVal g, SymVal f, SymVal e, SymVal d, SymVal c, SymVal b, SymVal a, HasKind a) => SMTDefinable ((SBV l, SBV k, SBV j, SBV i, SBV h, SBV g, SBV f, SBV e, SBV d, SBV c, SBV b) -> SBV a) where-  sbv2smt fn                      = defs2smt $ \p -> fn p .== fn p-  registerFunction                = registerFunction . curry11-  sbvDefineValue nm mbArgs uiKind = let f = sbvDefineValue nm mbArgs (curry11 <$> mkUncurried uiKind) in uncurry11 f---- Uncurried functions of twelve arguments-instance (SymVal m, SymVal l, SymVal k, SymVal j, SymVal i, SymVal h, SymVal g, SymVal f, SymVal e, SymVal d, SymVal c, SymVal b, SymVal a, HasKind a) => SMTDefinable ((SBV m, SBV l, SBV k, SBV j, SBV i, SBV h, SBV g, SBV f, SBV e, SBV d, SBV c, SBV b) -> SBV a) where-  sbv2smt fn                      = defs2smt $ \p -> fn p .== fn p-  registerFunction                = registerFunction . curry12-  sbvDefineValue nm mbArgs uiKind = let f = sbvDefineValue nm mbArgs (curry12 <$> mkUncurried uiKind) in uncurry12 f---- | Symbolic computations provide a context for writing symbolic programs.-instance MonadIO m => SolverContext (SymbolicT m) where-   constrain                   = imposeConstraint False []               . unSBV . quantifiedBool-   softConstrain               = imposeConstraint True  []               . unSBV . quantifiedBool-   namedConstraint        nm   = imposeConstraint False [(":named", nm)] . unSBV . quantifiedBool-   constrainWithAttribute atts = imposeConstraint False atts             . unSBV . quantifiedBool--   contextState = symbolicEnv-   setOption o  = addNewSMTOption  o--   internalVariable k = contextState >>= \st -> liftIO $ do-                           sv <- newInternalVariable st k-                           pure $ SBV $ SVal k (Right (cache (const (pure sv))))---- | Generalization of 'Data.SBV.assertWithPenalty'-assertWithPenalty :: MonadSymbolic m => String -> SBool -> Penalty -> m ()-assertWithPenalty nm o p = addSValOptGoal $ unSBV `fmap` AssertWithPenalty nm o p---- | Class of metrics we can optimize for. Currently, booleans,--- bounded signed/unsigned bit-vectors, unbounded integers,--- algebraic reals and floats can be optimized. You can add--- your instances, but bewared that the 'MetricSpace' should--- map your type to something the backend solver understands, which--- are limited to unsigned bit-vectors, reals, and unbounded integers--- for z3.------ A good reference on these features is given in the following paper:--- <http://www.microsoft.com/en-us/research/wp-content/uploads/2016/02/nbjorner-scss2014.pdf>.------ Minimal completion: None. However, if @MetricSpace@ is not identical to the type, you want--- to define 'toMetricSpace'/'annotateForMS', and possibly 'minimize'/'maximize' to add extra constraints as necessary.-class Metric a where-  -- | The metric space we optimize the goal over. Usually the same as the type itself, but not always!-  -- For instance, signed bit-vectors are optimized over their unsigned counterparts, floats are-  -- optimized over their 'Word32' comparable counterparts, etc.-  type MetricSpace a :: Type-  type MetricSpace a = a--  -- | Compute the metric value to optimize.-  toMetricSpace   :: SBV a -> SBV (MetricSpace a)--  -- | Compute the value itself from the metric corresponding to it.-  fromMetricSpace :: SBV (MetricSpace a) -> SBV a--  -- | Annotate for the metric space, to clarify the new name. If this result is not identity,-  -- we will add an sObserve on the original.-  annotateForMS :: Proxy a -> String -> String--  -- | Minimizing a metric space-  msMinimize :: (MonadSymbolic m, SolverContext m) => String -> SBV a -> m ()-  msMinimize nm o = do let nm' = annotateForMS (Proxy @a) nm-                       when (nm' /= nm) $ sObserve nm (unSBV o)-                       addSValOptGoal $ unSBV `fmap` Minimize nm' (toMetricSpace o)--  -- | Maximizing a metric space-  msMaximize :: (MonadSymbolic m, SolverContext m) => String -> SBV a -> m ()-  msMaximize nm o = do let nm' = annotateForMS (Proxy @a) nm-                       when (nm' /= nm) $ sObserve nm (unSBV o)-                       addSValOptGoal $ unSBV `fmap` Maximize nm' (toMetricSpace o)--  -- if MetricSpace is the same, we can give a default definition-  default toMetricSpace :: (a ~ MetricSpace a) => SBV a -> SBV (MetricSpace a)-  toMetricSpace = id--  default fromMetricSpace :: (a ~ MetricSpace a) => SBV (MetricSpace a) -> SBV a-  fromMetricSpace = id--  -- Annotations to indicate if the metric space transition was needed-  default annotateForMS :: (a ~ MetricSpace a) => Proxy a -> String -> String-  annotateForMS _ s = s---- Booleans assume True is greater than False-instance Metric Bool where-  type MetricSpace Bool = Word8-  toMetricSpace t   = ite t 1 0-  fromMetricSpace w = w ./= 0-  annotateForMS _ s = "toMetricSpace(" ++ s ++ ")"---- | Generalization of 'Data.SBV.minimize'-minimize :: (Metric a, MonadSymbolic m, SolverContext m) => String -> SBV a -> m ()-minimize = msMinimize---- | Generalization of 'Data.SBV.maximize'-maximize :: (Metric a, MonadSymbolic m, SolverContext m) => String -> SBV a -> m ()-maximize = msMaximize---- Unsigned types, integers, and reals directly optimize-instance Metric Word8-instance Metric Word16-instance Metric Word32-instance Metric Word64-instance Metric Integer-instance Metric AlgReal---- To optimize signed bounded values, we have to adjust to the range-instance Metric Int8 where-  type MetricSpace Int8 = Word8-  toMetricSpace   x = sFromIntegral x + 128  -- 2^7-  fromMetricSpace x = sFromIntegral x - 128-  annotateForMS _ s = "toMetricSpace(" ++ s ++ ")"--instance Metric Int16 where-  type MetricSpace Int16 = Word16-  toMetricSpace   x = sFromIntegral x + 32768  -- 2^15-  fromMetricSpace x = sFromIntegral x - 32768-  annotateForMS _ s = "toMetricSpace(" ++ s ++ ")"--instance Metric Int32 where-  type MetricSpace Int32 = Word32-  toMetricSpace   x = sFromIntegral x + 2147483648 -- 2^31-  fromMetricSpace x = sFromIntegral x - 2147483648-  annotateForMS _ s = "toMetricSpace(" ++ s ++ ")"--instance Metric Int64 where-  type MetricSpace Int64 = Word64-  toMetricSpace   x = sFromIntegral x + 9223372036854775808  -- 2^63-  fromMetricSpace x = sFromIntegral x - 9223372036854775808-  annotateForMS _ s = "toMetricSpace(" ++ s ++ ")"---- | Optimizing 'WordN'-instance (KnownNat n, BVIsNonZero n) => Metric (WordN n)---- | Optimizing 'IntN'-instance (KnownNat n, BVIsNonZero n) => Metric (IntN n) where-  type MetricSpace (IntN n) = WordN n-  toMetricSpace   x = sFromIntegral x + 2 ^ (intOfProxy (Proxy @n) - 1)-  fromMetricSpace x = sFromIntegral x - 2 ^ (intOfProxy (Proxy @n) - 1)-  annotateForMS _ s = "toMetricSpace(" ++ s ++ ")"---- Quickcheck interface on symbolic-booleans..-instance Testable SBool where-  property (SBV (SVal _ (Left b))) = property (cvToBool b)-  property s                       = cantQuickCheck $ "Result did not evaluate to a concrete boolean: " ++ show s--instance Testable (Symbolic SBool) where-   property prop = QC.monadicIO $ do (cond, r, modelVals) <- QC.run test-                                     QC.pre cond-                                     unless (r || null modelVals) $ QC.monitor (QC.counterexample (complain modelVals))-                                     QC.assert r-     where test = do (r, Result{resTraces=tvals, resObservables=ovals, resConsts=(_, cs), resConstraints=cstrs, resUIConsts=unints}) <- -                                 C.catch (runSymbolic defaultSMTCfg (Concrete Nothing) prop)-                                         (\(e :: C.SomeException) -> cantQuickCheck (show e))---                     let cval = fromMaybe (cantQuickCheck "A constraint did not evaluate to a concrete boolean") . (`lookup` cs)-                         cond = -- Only pick-up "hard" constraints, as indicated by False in the fist component-                                and [cvToBool (cval v) | (False, _, v) <- F.toList cstrs]--                         getObservable (nm, f, v) = case v `lookup` cs of-                                                      Just cv -> if f cv then Just (nm, cv) else Nothing-                                                      Nothing -> cantQuickCheck "An observable did not evaluate to a concrete value"--                     case map fst unints of-                       [] -> case unliteral r of-                               Nothing -> cantQuickCheck "The result did not evaluate to a concrete value"-                               Just b  -> return (cond, b, tvals ++ mapMaybe getObservable ovals)-                       uis -> cantQuickCheck $ "Uninterpreted constants remain: " ++ unwords uis--           complain qcInfo = showModel defaultSMTCfg (SMTModel [] Nothing qcInfo [])---- Complain if what we got isn't something we can quick-check-cantQuickCheck :: String -> a-cantQuickCheck why = error $ unlines [ "*** Data.SBV: Cannot quickcheck the given property."-                                     , "***"-                                     , "*** Certain SBV properties cannot be quick-checked. In particular,"-                                     , "*** SBV can't quick-check in the presence of:"-                                     , "***"-                                     , "***   - Uninterpreted constants."-                                     , "***   - Uninterpreted types."-                                     , "***   - Floating point operations with rounding modes other than RNE."-                                     , "***   - Floating point FMA operation, regardless of rounding mode."-                                     , "***   - Quantified booleans, i.e., uses of Forall/Exists/ExistsUnique."-                                     , "***   - Uses of quantifiedBool"-                                     , "***   - Calls to 'observe' (use 'sObserve' instead)"-                                     , "***"-                                     , "*** If you can't avoid the above features or run into an issue with"-                                     , "*** quickcheck even though you haven't used these features, please report this as a bug!"-                                     , "***"-                                     , "*** Origin:"-                                     , "***"-                                     , why-                                     ]---- | Quick check an SBV property. Note that a regular @quickCheck@ call will work just as--- well. Use this variant if you want to receive the boolean result.-sbvQuickCheck :: Symbolic SBool -> IO Bool-sbvQuickCheck prop = QC.isSuccess `fmap` QC.quickCheckResult prop---- Quickcheck interface on dynamically-typed values. A run-time check--- ensures that the value has boolean type.-instance Testable (Symbolic SVal) where-  property m = property $ do s <- m-                             when (kindOf s /= KBool) $ error "Cannot quickcheck non-boolean value"-                             return (SBV s :: SBool)---- | Explicit sharing combinator. The SBV library has internal caching/hash-consing mechanisms--- built in, based on Andy Gill's type-safe observable sharing technique (see: <http://ku-fpg.github.io/files/Gill-09-TypeSafeReification.pdf>).--- However, there might be times where being explicit on the sharing can help, especially in experimental code. The 'slet' combinator--- ensures that its first argument is computed once and passed on to its continuation, explicitly indicating the intent of sharing. Most--- use cases of the SBV library should simply use Haskell's @let@ construct for this purpose.-slet :: forall a b. (HasKind a, HasKind b) => SBV a -> (SBV a -> SBV b) -> SBV b-slet x f = SBV $ SVal k $ Right $ cache r-    where k    = kindOf (Proxy @b)-          r st = do xsv <- sbvToSV st x-                    let xsbv = SBV $ SVal (kindOf x) (Right (cache (const (return xsv))))-                        res  = f xsbv-                    sbvToSV st res---- | Class of things that we can logically reduce to a boolean, by saturating and then asserting equivalance to itself-class QSaturate m a where-  qSaturate :: a -> m ()---- | Base case; simple variable in the symbolic monad-instance SolverContext m => QSaturate m SBool where-  qSaturate b = constrain $ b .== b---- | Saturate over a universal quantifier-instance (HasKind a, Monad m, SolverContext m, QSaturate m r) => QSaturate m (Forall nm a -> r) where-  qSaturate f = qSaturate . f . Forall =<< internalVariable (kindOf (Proxy @a))---- | Saturate over a pair of universal quantifiers-instance (HasKind a, HasKind b, Monad m, SolverContext m, QSaturate m r) => QSaturate m ((Forall na a, Forall nb b) -> r) where-  qSaturate = qSaturate . curry---- | Saturate over a pair of existential quantifiers-instance (HasKind a, HasKind b, Monad m, SolverContext m, QSaturate m r) => QSaturate m ((Exists na a, Exists nb b) -> r) where-  qSaturate = qSaturate . curry---- | Saturate over a number of universal quantifiers-instance (KnownNat n, HasKind a, Monad m, SolverContext m, QSaturate m r) => QSaturate m (ForallN n nm a -> r) where-  qSaturate f = qSaturate . f . ForallN =<< replicateM (intOfProxy (Proxy @n)) (internalVariable (kindOf (Proxy @a)))---- | Saturate over an existential quantifier-instance (HasKind a, Monad m, SolverContext m, QSaturate m r) => QSaturate m (Exists nm a -> r) where-  qSaturate f = qSaturate . f . Exists =<< internalVariable (kindOf (Proxy @a))---- | Saturate over an a number of existential quantifiers-instance (KnownNat n, HasKind a, Monad m, SolverContext m, QSaturate m r) => QSaturate m (ExistsN n nm a -> r) where-  qSaturate f = qSaturate . f . ExistsN =<< replicateM (intOfProxy (Proxy @n)) (internalVariable (kindOf (Proxy @a)))---- | Saturate over a unique-exists variable-instance (HasKind a, Monad m, SolverContext m, QSaturate m r) => QSaturate m (ExistsUnique nm a -> r) where-  qSaturate f = qSaturate . f . ExistsUnique =<< internalVariable (kindOf (Proxy @a))---- | Saturate a predicate, but save/restore observables so they're not messed up.-qSaturateSavingObservables :: (Monad m, MonadIO m, SolverContext m, QSaturate m a) => a -> m ()-qSaturateSavingObservables p = do State{rObservables} <- contextState-                                  curObservables <- liftIO $ readIORef rObservables-                                  qSaturate p-                                  liftIO $ writeIORef rObservables curObservables---- | Equality as a proof method. Allows for--- very concise construction of equivalence proofs, which is very typical in--- bit-precise proofs.-infix 4 ===-class Equality a where-  (===) :: a -> a -> IO ThmResult--instance {-# OVERLAPPABLE #-} (SymVal a, EqSymbolic z) => Equality (SBV a -> z) where-  k === l = prove $ \a -> k a .== l a--instance {-# OVERLAPPABLE #-} (SymVal a, SymVal b, EqSymbolic z) => Equality (SBV a -> SBV b -> z) where-  k === l = prove $ \a b -> k a b .== l a b--instance {-# OVERLAPPABLE #-} (SymVal a, SymVal b, EqSymbolic z) => Equality ((SBV a, SBV b) -> z) where-  k === l = prove $ \a b -> k (a, b) .== l (a, b)--instance {-# OVERLAPPABLE #-} (SymVal a, SymVal b, SymVal c, EqSymbolic z) => Equality (SBV a -> SBV b -> SBV c -> z) where-  k === l = prove $ \a b c -> k a b c .== l a b c--instance {-# OVERLAPPABLE #-} (SymVal a, SymVal b, SymVal c, EqSymbolic z) => Equality ((SBV a, SBV b, SBV c) -> z) where-  k === l = prove $ \a b c -> k (a, b, c) .== l (a, b, c)--instance {-# OVERLAPPABLE #-} (SymVal a, SymVal b, SymVal c, SymVal d, EqSymbolic z) => Equality (SBV a -> SBV b -> SBV c -> SBV d -> z) where-  k === l = prove $ \a b c d -> k a b c d .== l a b c d--instance {-# OVERLAPPABLE #-} (SymVal a, SymVal b, SymVal c, SymVal d, EqSymbolic z) => Equality ((SBV a, SBV b, SBV c, SBV d) -> z) where-  k === l = prove $ \a b c d -> k (a, b, c, d) .== l (a, b, c, d)--instance {-# OVERLAPPABLE #-} (SymVal a, SymVal b, SymVal c, SymVal d, SymVal e, EqSymbolic z) => Equality (SBV a -> SBV b -> SBV c -> SBV d -> SBV e -> z) where-  k === l = prove $ \a b c d e -> k a b c d e .== l a b c d e--instance {-# OVERLAPPABLE #-} (SymVal a, SymVal b, SymVal c, SymVal d, SymVal e, EqSymbolic z) => Equality ((SBV a, SBV b, SBV c, SBV d, SBV e) -> z) where-  k === l = prove $ \a b c d e -> k (a, b, c, d, e) .== l (a, b, c, d, e)--instance {-# OVERLAPPABLE #-} (SymVal a, SymVal b, SymVal c, SymVal d, SymVal e, SymVal f, EqSymbolic z) => Equality (SBV a -> SBV b -> SBV c -> SBV d -> SBV e -> SBV f -> z) where-  k === l = prove $ \a b c d e f -> k a b c d e f .== l a b c d e f--instance {-# OVERLAPPABLE #-}- (SymVal a, SymVal b, SymVal c, SymVal d, SymVal e, SymVal f, EqSymbolic z) => Equality ((SBV a, SBV b, SBV c, SBV d, SBV e, SBV f) -> z) where-  k === l = prove $ \a b c d e f -> k (a, b, c, d, e, f) .== l (a, b, c, d, e, f)--instance {-# OVERLAPPABLE #-}- (SymVal a, SymVal b, SymVal c, SymVal d, SymVal e, SymVal f, SymVal g, EqSymbolic z) => Equality (SBV a -> SBV b -> SBV c -> SBV d -> SBV e -> SBV f -> SBV g -> z) where-  k === l = prove $ \a b c d e f g -> k a b c d e f g .== l a b c d e f g--instance {-# OVERLAPPABLE #-} (SymVal a, SymVal b, SymVal c, SymVal d, SymVal e, SymVal f, SymVal g, EqSymbolic z) => Equality ((SBV a, SBV b, SBV c, SBV d, SBV e, SBV f, SBV g) -> z) where-  k === l = prove $ \a b c d e f g -> k (a, b, c, d, e, f, g) .== l (a, b, c, d, e, f, g)---- | Reading a value from an array.-readArray :: forall key val. (Eq key, SymVal key, SymVal val, HasKind val) => SArray key val -> SBV key -> SBV val-readArray array key-   | eqCheckIsObjectEq ka, Just (ArrayModel tbl def) <- unliteral array, Just k <- unliteral key-   = literal $ fromMaybe def (k `lookup` tbl) -- return the first value, since we don't bother deleting previous writes-   | True-   = symRes-   where symRes = SBV . SVal kb . Right $ cache g-         ka = kindOf (Proxy @key)-         kb = kindOf (Proxy @val)-         g st = do f <- sbvToSV st array-                   k <- sbvToSV st key-                   newExpr st kb (SBVApp ReadArray [f, k])---- | Writing a value to an array. For the concrete case, we don't bother deleting earlier entries, we keep a history. The earlier a value is in the list, the "later" it happened; in a stack fashion.-writeArray :: forall key val. (HasKind key, SymVal key, SymVal val, HasKind val) => SArray key val -> SBV key -> SBV val -> SArray key val-writeArray array key value-   | Just (ArrayModel tbl def) <- unliteral array, Just keyVal <- unliteral key, Just val <- unliteral value-   = literal $ ArrayModel ((keyVal, val) : tbl) def  -- It's important that we "cons" the value here, since it takes precedence in a read-   | True-   = SBV . SVal k . Right $ cache g-   where k  = KArray (kindOf (Proxy @key)) (kindOf (Proxy @val))--         g st = do arr    <- sbvToSV st array-                   keyVal <- sbvToSV st key-                   val    <- sbvToSV st value-                   newExpr st k (SBVApp WriteArray [arr, keyVal, val])---- | Using a lambda as an array.-lambdaArray :: forall a b. (SymVal a, HasKind b) => (SBV a -> SBV b) -> SArray a b-lambdaArray f = SBV . SVal k . Right $ cache g-  where k = KArray (kindOf (Proxy @a)) (kindOf (Proxy @b))--        g st = do def <- lambdaStr st TopLevel (kindOf (Proxy @b)) f-                  newExpr st k (SBVApp (ArrayLambda def) [])---- | Turn a constant association-list and a default into a symbolic array.-listArray :: (SymVal a, SymVal b) => [(a, b)] -> b -> SArray a b-listArray ascs def = literal $ ArrayModel ascs def---- | Create a closure, wrapping the free variables together with the function. When using higher-order functions--- in SBV (like map), the function passed must be closed, i.e., not have any free variables. If you need to call--- such a function with a function capturing a free variable, you should create a closure instead.-data Closure env a = Closure { closureEnv :: env-                             , closureFun :: env -> a-                             }---- | Define a higher-order function. Similar to 'smtFunction', but when we have a higher-order argument. Note that--- the higher-order argument cannot have free variables. Also, if the function is recursive, you should call--- the first argument of the defining function, which SBV uses to tie the recursive knot. (Note that recursive--- functions defined via 'smtFunction' don't have this latter requirement as they can figure out the recursion--- automatically. Higher-order functions, unfortunately, can't do this: They firstify their high-order argument,--- giving the whole function a unique name; captured via the call to the recursive definition.)-smtHOFunction :: forall a b f.-                 ( SMTDefinable (a -> SBV b)-                 , Lambda Symbolic f-                 , Lambda Symbolic (a -> SBV b)-                 , HasKind b-                 , HasKind f-                 , Typeable a-                 , Typeable b-                 , Typeable f-                 ) => String       -- prefix to use-                   -> f            -- The higher-order argument. We're very generic here!-                   -> (a -> SBV b) -- The ho-function we're modeling-                   ->  a -> SBV b  -- The resulting function, that can be used as is, and will be rendered in SMTLib without unfolding-smtHOFunction nm f hof arg = SBV $ SVal (kindOf (Proxy @(SBV b))) $ Right $ cache r-  where r st = do SMTLambda lam <- lambdaStr st HigherOrderArg (resKindOf (kindOf (Proxy @f))) f-                  let uniqLen = firstifyUniqueLen $ stCfg st-                      uniq    = take uniqLen (BC.unpack (B.encode (hash (BC.pack (unwords (words lam))))))-                  sbvToSV st (smtFunction (atProxy (Proxy @f) nm <> "_" <> uniq) hof arg)--        -- we get the functions as arrays here, so chase to find the result-        resKindOf (KArray _ k) = resKindOf k-        resKindOf k            = k--{- HLint ignore module "Reduce duplication"   -}-{- HLint ignore module "Eta reduce"           -}-{- HLint ignore module "Avoid NonEmpty.unzip" -}-{- HLint ignore module "Redundant id"         -}+{-# LANGUAGE AllowAmbiguousTypes     #-}+{-# LANGUAGE BangPatterns            #-}+{-# LANGUAGE CPP                     #-}+{-# LANGUAGE DataKinds               #-}+{-# LANGUAGE DefaultSignatures       #-}+{-# LANGUAGE DeriveFunctor           #-}+{-# LANGUAGE FlexibleContexts        #-}+{-# LANGUAGE FlexibleInstances       #-}+{-# LANGUAGE GADTs                   #-}+{-# LANGUAGE MultiParamTypeClasses   #-}+{-# LANGUAGE NamedFieldPuns          #-}+{-# LANGUAGE OverloadedStrings       #-}+{-# LANGUAGE RankNTypes              #-}+{-# LANGUAGE ScopedTypeVariables     #-}+{-# LANGUAGE TypeApplications        #-}+{-# LANGUAGE TypeFamilies            #-}+{-# LANGUAGE TypeOperators           #-}+{-# LANGUAGE UndecidableInstances    #-}++{-# OPTIONS_GHC -Wall -Werror -Wno-orphans #-}++module Data.SBV.Core.Model (+    Mergeable(..), Equality(..), EqSymbolic(..), OrdSymbolic(..)+  , Zero(..), MeasureOf, Measure(..), MeasureHelper(..)+  , ContractOf, smtFunction, smtFunctionWithMeasure, smtFunctionWithContract, smtProductiveFunction, smtFunctionNoTermination+  , checkMutualGroup+  , SDivisible(..), SMTDefinable(..), QSaturate, qSaturateSavingObservables+  , Metric(..), minimize, maximize, assertWithPenalty, SIntegral, SFiniteBits(..)+  , ite, iteLazy, sFromIntegral, sShiftLeft, sShiftRight, sRotateLeft, sBarrelRotateLeft, sRotateRight, sBarrelRotateRight, sSignedShiftArithRight, (.^)+  , some+  , oneIf, genVar, genVar_+  , pbAtMost, pbAtLeast, pbExactly, pbLe, pbGe, pbEq, pbMutexed, pbStronglyMutexed+  , sBool, sBool_, sBools, sWord8, sWord8_, sWord8s, sWord16, sWord16_, sWord16s, sWord32, sWord32_, sWord32s+  , sWord64, sWord64_, sWord64s, sInt8, sInt8_, sInt8s, sInt16, sInt16_, sInt16s, sInt32, sInt32_, sInt32s, sInt64, sInt64_+  , sInt64s, sInteger, sInteger_, sIntegers, sReal, sReal_, sReals, sFloat, sFloat_, sFloats, sDouble, sDouble_, sDoubles+  , sWord, sWord_, sWords, sInt, sInt_, sInts+  , sFPHalf, sFPHalf_, sFPHalfs, sFPBFloat, sFPBFloat_, sFPBFloats, sFPSingle, sFPSingle_, sFPSingles, sFPDouble, sFPDouble_, sFPDoubles, sFPQuad, sFPQuad_, sFPQuads, sArray, sArray_, sArrays+  , sFloatingPoint, sFloatingPoint_, sFloatingPoints+  , sRoundNearestTiesToEven, sRoundNearestTiesToAway, sRoundTowardPositive, sRoundTowardNegative, sRoundTowardZero+  , sRNE, sRNA, sRTP, sRTN, sRTZ+  , sChar, sChar_, sChars, sString, sString_, sStrings, sList, sList_, sLists+  , sRational, sRational_, sRationals+  , SymTuple, sTuple, sTuple_, sTuples+  , sSet, sSet_, sSets+  , sEDivMod, sEDiv, sEMod+  , sDivides+  , solve+  , slet+  , sRealToSInteger, sRealToSIntegerTruncate, label, observe, observeIf, sObserve+  , sAssert+  , liftQRem, liftDMod, symbolicMergeWithKind+  , genLiteral, genFromCV, genMkSymVar+  , zeroExtend, signExtend+  , sbvQuickCheck+  , readArray, writeArray, constArray, freeArray, lambdaArray, listArray+  , FromSized, ToSized, FromSizedBV(..), ToSizedBV(..)+  , smtHOFunction, smtHOFunctionWithMeasure, Closure(..)+  )+  where++import Control.Applicative    (ZipList(ZipList))+import Control.Monad          (when, unless, mplus, replicateM)+import Control.Monad.IO.Class (MonadIO, liftIO)++import qualified Control.Exception as C++import GHC.Generics (M1(..), U1(..), (:*:)(..), K1(..))+import qualified GHC.Generics as G++import GHC.Stack+import GHC.TypeLits hiding(SChar)++import Data.Array  (Array, Ix, elems, bounds, rangeSize)+import qualified Data.Array as DA (listArray)++import Data.Bifunctor (first)++import Data.Bits   (Bits(..))+import Data.Int    (Int8, Int16, Int32, Int64)+import Data.Kind   (Type, Constraint)+import Data.List   (genericLength, genericIndex, genericTake, unzip4, unzip5, unzip6, unzip7+                   , intercalate, dropWhileEnd, isPrefixOf, partition, nubBy+#if !MIN_VERSION_base(4,20,0)+                   , foldl'+#endif+                   )+import Data.Maybe  (fromMaybe, mapMaybe, isJust)+import Data.String (IsString(..))+import Data.Word   (Word8, Word16, Word32, Word64)++import Data.List.NonEmpty (NonEmpty(..))+import qualified Data.List.NonEmpty as NE++import qualified Data.Set as Set+import qualified Data.Graph as DG++import Data.Proxy+import Data.Dynamic (fromDynamic, toDyn, Typeable)++import Test.QuickCheck                         (Testable(..), Arbitrary(..))+import qualified Test.QuickCheck.Test    as QC (isSuccess)+import qualified Test.QuickCheck         as QC (quickCheckResult, counterexample)+import qualified Test.QuickCheck.Monadic as QC (monadicIO, run, assert, pre, monitor)++import qualified Data.Foldable as F (toList, for_)+import qualified Data.Map.Strict as Map+import qualified Data.Sequence as Seq+import qualified Data.Text as T++import Data.SBV.Core.AlgReals+import Data.SBV.Core.Sized+import Data.SBV.Core.SizedFloats+import Data.SBV.Core.Data hiding (Constraint)+import Data.SBV.Core.Symbolic+import Data.SBV.Core.Operations+import Data.SBV.Core.Kind+import Data.SBV.Lambda+import Data.SBV.Utils.ExtractIO (ExtractIO)++import Data.SBV.Provers.Prover (defaultSMTCfg, SafeResult(..), defs2smt, prove, proveWith)+import Data.SBV.SMT.SMT        (ThmResult(..), showModel)+import Data.SBV.SMT.Utils      (debug)++import Data.SBV.Utils.Numeric (fpIsEqualObjectH)++import Data.IORef (readIORef, writeIORef, modifyIORef')+import System.Mem.StableName (makeStableName, hashStableName)+import Data.SBV.Utils.Lib++import Data.Char++import System.FilePath (dropExtension, takeExtension)++-- Symbolic-Word class instances++import Crypto.Hash.SHA512 (hash)+import qualified Data.ByteString.Base16 as B+import qualified Data.ByteString.Char8  as BC++-- | Generate a variable, named+genVar :: MonadSymbolic m => VarContext -> Kind -> String -> m (SBV a)+genVar q k = mkSymSBV q k . Just++-- | Generate an unnamed variable+genVar_ :: MonadSymbolic m => VarContext -> Kind -> m (SBV a)+genVar_ q k = mkSymSBV q k Nothing++-- | Generate a finite constant bitvector+genLiteral :: Integral a => Kind -> a -> SBV b+genLiteral k = SBV . SVal k . Left . mkConstCV k++-- | Convert a constant to an integral value+genFromCV :: Integral a => CV -> a+genFromCV (CV _ (CInteger x)) = fromInteger x+genFromCV c                   = error $ "genFromCV: Unsupported non-integral value: " ++ show c++-- | Generalization of 'Data.SBV.genMkSymVar'+genMkSymVar :: MonadSymbolic m => Kind -> VarContext -> Maybe String -> m (SBV a)+genMkSymVar k mbq Nothing  = genVar_ mbq k+genMkSymVar k mbq (Just s) = genVar  mbq k s++instance SymVal Bool where+  mkSymVal = genMkSymVar KBool+  literal  = SBV . svBool+  fromCV   = cvToBool++instance SymVal Word8 where+  mkSymVal = genMkSymVar (KBounded False 8)+  literal  = genLiteral  (KBounded False 8)+  fromCV   = genFromCV++instance SymVal Int8 where+  mkSymVal = genMkSymVar (KBounded True 8)+  literal  = genLiteral  (KBounded True 8)+  fromCV   = genFromCV++instance SymVal Word16 where+  mkSymVal = genMkSymVar (KBounded False 16)+  literal  = genLiteral  (KBounded False 16)+  fromCV   = genFromCV++instance SymVal Int16 where+  mkSymVal = genMkSymVar (KBounded True 16)+  literal  = genLiteral  (KBounded True 16)+  fromCV   = genFromCV++instance SymVal Word32 where+  mkSymVal = genMkSymVar (KBounded False 32)+  literal  = genLiteral  (KBounded False 32)+  fromCV   = genFromCV++instance SymVal Int32 where+  mkSymVal = genMkSymVar (KBounded True 32)+  literal  = genLiteral  (KBounded True 32)+  fromCV   = genFromCV++instance SymVal Word64 where+  mkSymVal = genMkSymVar (KBounded False 64)+  literal  = genLiteral  (KBounded False 64)+  fromCV   = genFromCV++instance SymVal Int64 where+  mkSymVal = genMkSymVar (KBounded True 64)+  literal  = genLiteral  (KBounded True 64)+  fromCV   = genFromCV++instance SymVal Integer where+  mkSymVal    = genMkSymVar KUnbounded+  literal     = SBV . SVal KUnbounded . Left . mkConstCV KUnbounded+  fromCV      = genFromCV+  minMaxBound = Nothing++instance SymVal Rational where+  mkSymVal                    = genMkSymVar KRational+  literal                     = SBV . SVal KRational  . Left . CV KRational . CRational+  fromCV (CV _ (CRational r)) = r+  fromCV c                    = error $ "SymVal.Rational: Unexpected non-rational value: " ++ show c+  minMaxBound                 = Nothing++instance SymVal AlgReal where+  mkSymVal                   = genMkSymVar KReal+  literal                    = SBV . SVal KReal . Left . CV KReal . CAlgReal+  fromCV (CV _ (CAlgReal a)) = a+  fromCV c                   = error $ "SymVal.AlgReal: Unexpected non-real value: " ++ show c+  minMaxBound               = Nothing++  -- AlgReal needs its own definition of isConcretely+  -- to make sure we avoid using unimplementable Haskell functions+  isConcretely (SBV (SVal KReal (Left (CV KReal (CAlgReal v))))) p+     | isExactRational v = p v+  isConcretely _ _       = False++instance SymVal Float where+  mkSymVal                 = genMkSymVar KFloat+  literal                  = SBV . SVal KFloat . Left . CV KFloat . CFloat+  fromCV (CV _ (CFloat a)) = a+  fromCV c                 = error $ "SymVal.Float: Unexpected non-float value: " ++ show c+  minMaxBound              = Nothing++  -- For Float, we conservatively return 'False' for isConcretely. The reason is that+  -- this function is used for optimizations when only one of the argument is concrete,+  -- and in the presence of NaN's it would be incorrect to do any optimization+  isConcretely _ _ = False++instance SymVal Double where+  mkSymVal                  = genMkSymVar KDouble+  literal                   = SBV . SVal KDouble . Left . CV KDouble . CDouble+  fromCV (CV _ (CDouble a)) = a+  fromCV c                  = error $ "SymVal.Double: Unexpected non-double value: " ++ show c+  minMaxBound               = Nothing++  -- For Double, we conservatively return 'False' for isConcretely. The reason is that+  -- this function is used for optimizations when only one of the argument is concrete,+  -- and in the presence of NaN's it would be incorrect to do any optimization+  isConcretely _ _ = False++instance SymVal RoundingMode where+  literal = SBV . svRoundingMode+  fromCV c =+    case cvAsRoundingMode c of+      Just mode -> mode+      Nothing   -> error $ "SymVal.RoundingMode: Unexpected non-rounding mode value: " ++ show c++-- | Symbolic variant of 'RoundNearestTiesToEven'+sRoundNearestTiesToEven :: SRoundingMode+sRoundNearestTiesToEven = literal RoundNearestTiesToEven++-- | Symbolic variant of 'RoundNearestTiesToAway'+sRoundNearestTiesToAway :: SRoundingMode+sRoundNearestTiesToAway = literal RoundNearestTiesToAway++-- | Symbolic variant of 'RoundTowardPositive'+sRoundTowardPositive :: SRoundingMode+sRoundTowardPositive = literal RoundTowardPositive++-- | Symbolic variant of 'RoundTowardNegative'+sRoundTowardNegative :: SRoundingMode+sRoundTowardNegative = literal RoundTowardNegative++-- | Symbolic variant of 'RoundTowardZero'+sRoundTowardZero :: SRoundingMode+sRoundTowardZero = literal RoundTowardZero++-- | Alias for 'sRoundNearestTiesToEven'+sRNE :: SRoundingMode+sRNE = sRoundNearestTiesToEven++-- | Alias for 'sRoundNearestTiesToAway'+sRNA :: SRoundingMode+sRNA = sRoundNearestTiesToAway++-- | Alias for 'sRoundTowardPositive'+sRTP :: SRoundingMode+sRTP = sRoundTowardPositive++-- | Alias for 'sRoundTowardNegative'+sRTN :: SRoundingMode+sRTN = sRoundTowardNegative++-- | Alias for 'sRoundTowardZero'+sRTZ :: SRoundingMode+sRTZ = sRoundTowardZero+++instance SymVal Char where+  mkSymVal                = genMkSymVar KChar+  literal c               = SBV . SVal KChar . Left . CV KChar $ CChar c+  fromCV (CV _ (CChar a)) = a+  fromCV c                = error $ "SymVal.String: Unexpected non-char value: " ++ show c++instance SymVal a => SymVal [a] where+  mkSymVal+    | isKString @[a] undefined = genMkSymVar KString+    | True                     = genMkSymVar (KList (kindOf (Proxy @a)))++  literal as+    | isKString @[a] undefined = case fromDynamic (toDyn as) of+                                   Just s  -> SBV . SVal KString . Left . CV KString . CString $ s+                                   Nothing -> error "SString: Cannot construct literal string!"+    | True                     = let k = KList (kindOf (Proxy @a))+                                 in SBV $ SVal k $ Left $ CV k $ CList $ map toCV as++  fromCV (CV _ (CString a)) = fromMaybe (error "SString: Cannot extract a literal string!")+                                        (fromDynamic (toDyn a))+  fromCV (CV _ (CList a))   = fromCV . CV (kindOf (Proxy @a)) <$> a+  fromCV c                  = error $ "SymVal.fromCV: Unexpected non-list value: " ++ show c++  minMaxBound               = Nothing++instance ValidFloat eb sb => HasKind (FloatingPoint eb sb) where+  kindOf _ = KFP (intOfProxy (Proxy @eb)) (intOfProxy (Proxy @sb))++instance ValidFloat eb sb => SymVal (FloatingPoint eb sb) where+  mkSymVal                   = genMkSymVar (KFP (intOfProxy (Proxy @eb)) (intOfProxy (Proxy @sb)))+  literal (FloatingPoint r)  = let k = KFP (intOfProxy (Proxy @eb)) (intOfProxy (Proxy @sb))+                               in SBV $ SVal k $ Left $ CV k (CFP r)+  fromCV  (CV _ (CFP r))     = FloatingPoint r+  fromCV  c                  = error $ "SymVal.FPR: Unexpected non-arbitrary-precision value: " ++ show c+  minMaxBound                = Nothing++-- | 'SymVal' instance for 'WordN'+instance (KnownNat n, BVIsNonZero n) => SymVal (WordN n) where+   literal  x = genLiteral  (kindOf x) x+   mkSymVal   = genMkSymVar (kindOf (undefined :: WordN n))+   fromCV     = genFromCV++-- | 'SymVal' instance for 'IntN'+instance (KnownNat n, BVIsNonZero n) => SymVal (IntN n) where+   literal  x = genLiteral  (kindOf x) x+   mkSymVal   = genMkSymVar (kindOf (undefined :: IntN n))+   fromCV     = genFromCV++toCV :: SymVal a => a -> CVal+toCV a = case literal a of+           SBV (SVal _ (Left cv)) -> cvVal cv+           _                      -> error "SymVal.toCV: Impossible happened, couldn't produce a concrete value"++mkCVTup :: Int -> Kind -> [CVal] -> SBV a+mkCVTup i k@(KTuple ks) cs+  | lks == lcs && lks == i+  = SBV $ SVal k $ Left $ CV k $ CTuple cs+  | True+  = error $ "SymVal.mkCVTup: Impossible happened. Malformed tuple received: " ++ show (i, k)+   where lks = length ks+         lcs = length cs+mkCVTup i k _+  = error $ "SymVal.mkCVTup: Impossible happened. Non-tuple received: " ++ show (i, k)++fromCVTup :: Int -> CV -> [CV]+fromCVTup i inp@(CV (KTuple ks) (CTuple cs))+   | lks == lcs && lks == i+   = zipWith CV ks cs+   | True+   = error $ "SymVal.fromCTup: Impossible happened. Malformed tuple received: " ++ show (i, inp)+   where lks = length ks+         lcs = length cs+fromCVTup i inp = error $ "SymVal.fromCVTup: Impossible happened. Non-tuple received: " ++ show (i, inp)++instance (HasKind a, HasKind b, SymVal a, SymVal b) => SymVal (ArrayModel a b) where+  mkSymVal = genMkSymVar (KArray (kindOf (Proxy @a)) (kindOf (Proxy @b)))++  -- If the table has duplicate entries for keys, then the first one takes precedence.+  -- That is, [(a, v1), (a, v2)] is equivalent to [(a, v1)]. The best way to think about+  -- this is as a "stack" of writes. [(a, v1), (a, v2)] means we first "wrote" v2 at+  -- a, and then wrote v1 at the same address; so the first write of v2 got overwritten.+  literal (ArrayModel tbl def) = SBV . SVal knd . Left . CV knd $ CArray $ ArrayModel [(toCV k, toCV v) | (k, v) <- tbl] (toCV def)+    where knd = kindOf (Proxy @(ArrayModel a b))++  fromCV (CV (KArray k1 k2) (CArray (ArrayModel assocs def))) = ArrayModel [(fromCV (CV k1 a), fromCV (CV k2 b)) | (a, b) <- assocs]+                                                                           (fromCV (CV k2 def))++  fromCV bad = error $ "SymVal.fromCV (SArray): Malformed array received: " ++ show bad++  minMaxBound = Nothing++instance (Arbitrary a, Arbitrary b) => Arbitrary (ArrayModel a b) where+  arbitrary = ArrayModel <$> arbitrary <*> arbitrary++instance (Ord a, SymVal a) => SymVal (RCSet a) where+  mkSymVal = genMkSymVar (kindOf (Proxy @(RCSet a)))++  literal eur = SBV $ SVal k $ Left $ CV k $ CSet $ dir $ Set.map toCV s+    where (dir, s) = case eur of+                      RegularSet x    -> (RegularSet,    x)+                      ComplementSet x -> (ComplementSet, x)+          k        = kindOf (Proxy @(RCSet a))++  fromCV (CV (KSet a) (CSet (RegularSet    s))) = RegularSet    $ Set.map (fromCV . CV a) s+  fromCV (CV (KSet a) (CSet (ComplementSet s))) = ComplementSet $ Set.map (fromCV . CV a) s+  fromCV bad                                    = error $ "SymVal.fromCV (Set): Malformed set received: " ++ show bad++  minMaxBound = Nothing++-- | SymVal for 0-tuple (i.e., unit)+instance SymVal () where+  mkSymVal   = genMkSymVar (KTuple [])+  literal () = mkCVTup 0   (kindOf (Proxy @())) []+  fromCV cv  = fromCVTup 0 cv `seq` ()++-- | SymVal for 2-tuples+instance (SymVal a, SymVal b) => SymVal (a, b) where+   mkSymVal         = genMkSymVar (kindOf (Proxy @(a, b)))+   literal (v1, v2) = mkCVTup 2   (kindOf (Proxy @(a, b))) [toCV v1, toCV v2]+   fromCV  cv       = case fromCVTup 2 cv of+                        [v1, v2] -> (fromCV v1, fromCV v2)+                        res      -> error $ "Data.SBV.SymVal-Tuple2: Unexpected result: " ++ show res++   minMaxBound = Nothing++-- | SymVal for 3-tuples+instance (SymVal a, SymVal b, SymVal c) => SymVal (a, b, c) where+   mkSymVal             = genMkSymVar (kindOf (Proxy @(a, b, c)))+   literal (v1, v2, v3) = mkCVTup 3   (kindOf (Proxy @(a, b, c))) [toCV v1, toCV v2, toCV v3]+   fromCV  cv           = case fromCVTup 3 cv of+                            [v1, v2, v3] -> (fromCV v1, fromCV v2, fromCV v3)+                            res          -> error $ "Data.SBV.SymVal-Tuple3: Unexpected result: " ++ show res+   minMaxBound          = Nothing++-- | SymVal for 4-tuples+instance (SymVal a, SymVal b, SymVal c, SymVal d) => SymVal (a, b, c, d) where+   mkSymVal                 = genMkSymVar (kindOf (Proxy @(a, b, c, d)))+   literal (v1, v2, v3, v4) = mkCVTup 4   (kindOf (Proxy @(a, b, c, d))) [toCV v1, toCV v2, toCV v3, toCV v4]+   fromCV  cv               = case fromCVTup 4 cv of+                                [v1, v2, v3, v4] -> (fromCV v1, fromCV v2, fromCV v3, fromCV v4)+                                res              -> error $ "Data.SBV.SymVal-Tuple4: Unexpected result: " ++ show res+   minMaxBound              = Nothing++-- | SymVal for 5-tuples+instance (SymVal a, SymVal b, SymVal c, SymVal d, SymVal e) => SymVal (a, b, c, d, e) where+   mkSymVal                     = genMkSymVar (kindOf (Proxy @(a, b, c, d, e)))+   literal (v1, v2, v3, v4, v5) = mkCVTup 5   (kindOf (Proxy @(a, b, c, d, e))) [toCV v1, toCV v2, toCV v3, toCV v4, toCV v5]+   fromCV  cv                   = case fromCVTup 5 cv of+                                    [v1, v2, v3, v4, v5] -> (fromCV v1, fromCV v2, fromCV v3, fromCV v4, fromCV v5)+                                    res                  -> error $ "Data.SBV.SymVal-Tuple5: Unexpected result: " ++ show res+   minMaxBound                  = Nothing++-- | SymVal for 6-tuples+instance (SymVal a, SymVal b, SymVal c, SymVal d, SymVal e, SymVal f) => SymVal (a, b, c, d, e, f) where+   mkSymVal                         = genMkSymVar (kindOf (Proxy @(a, b, c, d, e, f)))+   literal (v1, v2, v3, v4, v5, v6) = mkCVTup 6   (kindOf (Proxy @(a, b, c, d, e, f))) [toCV v1, toCV v2, toCV v3, toCV v4, toCV v5, toCV v6]+   fromCV  cv                       = case fromCVTup 6 cv of+                                        [v1, v2, v3, v4, v5, v6] -> (fromCV v1, fromCV v2, fromCV v3, fromCV v4, fromCV v5, fromCV v6)+                                        res                      -> error $ "Data.SBV.SymVal-Tuple6: Unexpected result: " ++ show res+   minMaxBound                      = Nothing++-- | SymVal for 7-tuples+instance (SymVal a, SymVal b, SymVal c, SymVal d, SymVal e, SymVal f, SymVal g) => SymVal (a, b, c, d, e, f, g) where+   mkSymVal                             = genMkSymVar (kindOf (Proxy @(a, b, c, d, e, f, g)))+   literal (v1, v2, v3, v4, v5, v6, v7) = mkCVTup 7   (kindOf (Proxy @(a, b, c, d, e, f, g))) [toCV v1, toCV v2, toCV v3, toCV v4, toCV v5, toCV v6, toCV v7]+   fromCV  cv                           = case fromCVTup 7 cv of+                                            [v1, v2, v3, v4, v5, v6, v7] -> (fromCV v1, fromCV v2, fromCV v3, fromCV v4, fromCV v5, fromCV v6, fromCV v7)+                                            res                          -> error $ "Data.SBV.SymVal-Tuple7: Unexpected result: " ++ show res+   minMaxBound                          = Nothing++-- | SymVal for 8-tuples+instance (SymVal a, SymVal b, SymVal c, SymVal d, SymVal e, SymVal f, SymVal g, SymVal h) => SymVal (a, b, c, d, e, f, g, h) where+   mkSymVal                                 = genMkSymVar (kindOf (Proxy @(a, b, c, d, e, f, g, h)))+   literal (v1, v2, v3, v4, v5, v6, v7, v8) = mkCVTup 8   (kindOf (Proxy @(a, b, c, d, e, f, g, h))) [toCV v1, toCV v2, toCV v3, toCV v4, toCV v5, toCV v6, toCV v7, toCV v8]+   fromCV  cv                               = case fromCVTup 8 cv of+                                                [v1, v2, v3, v4, v5, v6, v7, v8] -> (fromCV v1, fromCV v2, fromCV v3, fromCV v4, fromCV v5, fromCV v6, fromCV v7, fromCV v8)+                                                res                              -> error $ "Data.SBV.SymVal-Tuple8: Unexpected result: " ++ show res+   minMaxBound                              = Nothing++instance IsString SString where+  fromString = literal++------------------------------------------------------------------------------------+-- * Smart constructors for creating symbolic values. These are not strictly+-- necessary, as they are mere aliases for 'symbolic' and 'symbolics', but+-- they nonetheless make programming easier.+------------------------------------------------------------------------------------++-- | Generalization of 'Data.SBV.sBool'+sBool :: MonadSymbolic m => String -> m SBool+sBool = symbolic++-- | Generalization of 'Data.SBV.sBool_'+sBool_ :: MonadSymbolic m => m SBool+sBool_ = free_++-- | Generalization of 'Data.SBV.sBools'+sBools :: MonadSymbolic m => [String] -> m [SBool]+sBools = symbolics++-- | Generalization of 'Data.SBV.sWord8'+sWord8 :: MonadSymbolic m => String -> m SWord8+sWord8 = symbolic++-- | Generalization of 'Data.SBV.sWord8_'+sWord8_ :: MonadSymbolic m => m SWord8+sWord8_ = free_++-- | Generalization of 'Data.SBV.sWord8s'+sWord8s :: MonadSymbolic m => [String] -> m [SWord8]+sWord8s = symbolics++-- | Generalization of 'Data.SBV.sWord16'+sWord16 :: MonadSymbolic m => String -> m SWord16+sWord16 = symbolic++-- | Generalization of 'Data.SBV.sWord16_'+sWord16_ :: MonadSymbolic m => m SWord16+sWord16_ = free_++-- | Generalization of 'Data.SBV.sWord16s'+sWord16s :: MonadSymbolic m => [String] -> m [SWord16]+sWord16s = symbolics++-- | Generalization of 'Data.SBV.sWord32'+sWord32 :: MonadSymbolic m => String -> m SWord32+sWord32 = symbolic++-- | Generalization of 'Data.SBV.sWord32_'+sWord32_ :: MonadSymbolic m => m SWord32+sWord32_ = free_++-- | Generalization of 'Data.SBV.sWord32s'+sWord32s :: MonadSymbolic m => [String] -> m [SWord32]+sWord32s = symbolics++-- | Generalization of 'Data.SBV.sWord64'+sWord64 :: MonadSymbolic m => String -> m SWord64+sWord64 = symbolic++-- | Generalization of 'Data.SBV.sWord64_'+sWord64_ :: MonadSymbolic m => m SWord64+sWord64_ = free_++-- | Generalization of 'Data.SBV.sWord64s'+sWord64s :: MonadSymbolic m => [String] -> m [SWord64]+sWord64s = symbolics++-- | Generalization of 'Data.SBV.sInt8'+sInt8 :: MonadSymbolic m => String -> m SInt8+sInt8 = symbolic++-- | Generalization of 'Data.SBV.sInt8_'+sInt8_ :: MonadSymbolic m => m SInt8+sInt8_ = free_++-- | Generalization of 'Data.SBV.sInt8s'+sInt8s :: MonadSymbolic m => [String] -> m [SInt8]+sInt8s = symbolics++-- | Generalization of 'Data.SBV.sInt16'+sInt16 :: MonadSymbolic m => String -> m SInt16+sInt16 = symbolic++-- | Generalization of 'Data.SBV.sInt16_'+sInt16_ :: MonadSymbolic m => m SInt16+sInt16_ = free_++-- | Generalization of 'Data.SBV.sInt16s'+sInt16s :: MonadSymbolic m => [String] -> m [SInt16]+sInt16s = symbolics++-- | Generalization of 'Data.SBV.sInt32'+sInt32 :: MonadSymbolic m => String -> m SInt32+sInt32 = symbolic++-- | Generalization of 'Data.SBV.sInt32_'+sInt32_ :: MonadSymbolic m => m SInt32+sInt32_ = free_++-- | Generalization of 'Data.SBV.sInt32s'+sInt32s :: MonadSymbolic m => [String] -> m [SInt32]+sInt32s = symbolics++-- | Generalization of 'Data.SBV.sInt64'+sInt64 :: MonadSymbolic m => String -> m SInt64+sInt64 = symbolic++-- | Generalization of 'Data.SBV.sInt64_'+sInt64_ :: MonadSymbolic m => m SInt64+sInt64_ = free_++-- | Generalization of 'Data.SBV.sInt64s'+sInt64s :: MonadSymbolic m => [String] -> m [SInt64]+sInt64s = symbolics++-- | Generalization of 'Data.SBV.sInteger'+sInteger:: MonadSymbolic m => String -> m SInteger+sInteger = symbolic++-- | Generalization of 'Data.SBV.sInteger_'+sInteger_:: MonadSymbolic m => m SInteger+sInteger_ = free_++-- | Generalization of 'Data.SBV.sIntegers'+sIntegers :: MonadSymbolic m => [String] -> m [SInteger]+sIntegers = symbolics++-- | Generalization of 'Data.SBV.sReal'+sReal:: MonadSymbolic m => String -> m SReal+sReal = symbolic++-- | Generalization of 'Data.SBV.sReal_'+sReal_:: MonadSymbolic m => m SReal+sReal_ = free_++-- | Generalization of 'Data.SBV.sReals'+sReals :: MonadSymbolic m => [String] -> m [SReal]+sReals = symbolics++-- | Generalization of 'Data.SBV.sFloat'+sFloat :: MonadSymbolic m => String -> m SFloat+sFloat = symbolic++-- | Generalization of 'Data.SBV.sFloat_'+sFloat_ :: MonadSymbolic m => m SFloat+sFloat_ = free_++-- | Generalization of 'Data.SBV.sFloats'+sFloats :: MonadSymbolic m => [String] -> m [SFloat]+sFloats = symbolics++-- | Generalization of 'Data.SBV.sDouble'+sDouble :: MonadSymbolic m => String -> m SDouble+sDouble = symbolic++-- | Generalization of 'Data.SBV.sDouble_'+sDouble_ :: MonadSymbolic m => m SDouble+sDouble_ = free_++-- | Generalization of 'Data.SBV.sDoubles'+sDoubles :: MonadSymbolic m => [String] -> m [SDouble]+sDoubles = symbolics++-- | Generalization of 'Data.SBV.sFPHalf'+sFPHalf :: String -> Symbolic SFPHalf+sFPHalf = symbolic++-- | Generalization of 'Data.SBV.sFPHalf_'+sFPHalf_ :: Symbolic SFPHalf+sFPHalf_ = free_++-- | Generalization of 'Data.SBV.sFPHalfs'+sFPHalfs :: [String] -> Symbolic [SFPHalf]+sFPHalfs = symbolics++-- | Generalization of 'Data.SBV.sFPBFloat'+sFPBFloat :: String -> Symbolic SFPBFloat+sFPBFloat = symbolic++-- | Generalization of 'Data.SBV.sFPBFloat_'+sFPBFloat_ :: Symbolic SFPBFloat+sFPBFloat_ = free_++-- | Generalization of 'Data.SBV.sFPBFloats'+sFPBFloats :: [String] -> Symbolic [SFPBFloat]+sFPBFloats = symbolics++-- | Generalization of 'Data.SBV.sFPSingle'+sFPSingle :: String -> Symbolic SFPSingle+sFPSingle = symbolic++-- | Generalization of 'Data.SBV.sFPSingle_'+sFPSingle_ :: Symbolic SFPSingle+sFPSingle_ = free_++-- | Generalization of 'Data.SBV.sFPSingles'+sFPSingles :: [String] -> Symbolic [SFPSingle]+sFPSingles = symbolics++-- | Generalization of 'Data.SBV.sFPDouble'+sFPDouble :: String -> Symbolic SFPDouble+sFPDouble = symbolic++-- | Generalization of 'Data.SBV.sFPDouble_'+sFPDouble_ :: Symbolic SFPDouble+sFPDouble_ = free_++-- | Generalization of 'Data.SBV.sFPDoubles'+sFPDoubles :: [String] -> Symbolic [SFPDouble]+sFPDoubles = symbolics++-- | Generalization of 'Data.SBV.sFPQuad'+sFPQuad :: String -> Symbolic SFPQuad+sFPQuad = symbolic++-- | Generalization of 'Data.SBV.sFPQuad_'+sFPQuad_ :: Symbolic SFPQuad+sFPQuad_ = free_++-- | Generalization of 'Data.SBV.sFPQuads'+sFPQuads :: [String] -> Symbolic [SFPQuad]+sFPQuads = symbolics++-- | Generalization of 'Data.SBV.sFloatingPoint'+sFloatingPoint :: ValidFloat eb sb => String -> Symbolic (SFloatingPoint eb sb)+sFloatingPoint = symbolic++-- | Generalization of 'Data.SBV.sFloatingPoint_'+sFloatingPoint_ :: ValidFloat eb sb => Symbolic (SFloatingPoint eb sb)+sFloatingPoint_ = free_++-- | Generalization of 'Data.SBV.sFloatingPoints'+sFloatingPoints :: ValidFloat eb sb => [String] -> Symbolic [SFloatingPoint eb sb]+sFloatingPoints = symbolics++-- | Generalization of 'Data.SBV.sWord'+sWord :: (KnownNat n, BVIsNonZero n) => MonadSymbolic m => String -> m (SWord n)+sWord = symbolic++-- | Generalization of 'Data.SBV.sWord_'+sWord_ :: (KnownNat n, BVIsNonZero n) => MonadSymbolic m => m (SWord n)+sWord_ = free_++-- | Generalization of 'Data.SBV.sWord64s'+sWords :: (KnownNat n, BVIsNonZero n) => MonadSymbolic m => [String] -> m [SWord n]+sWords = symbolics++-- | Generalization of 'Data.SBV.sInt'+sInt :: (KnownNat n, BVIsNonZero n) => MonadSymbolic m => String -> m (SInt n)+sInt = symbolic++-- | Generalization of 'Data.SBV.sInt_'+sInt_ :: (KnownNat n, BVIsNonZero n) => MonadSymbolic m => m (SInt n)+sInt_ = free_++-- | Generalization of 'Data.SBV.sInts'+sInts :: (KnownNat n, BVIsNonZero n) => MonadSymbolic m => [String] -> m [SInt n]+sInts = symbolics++-- | Generalization of 'Data.SBV.sChar'+sChar :: MonadSymbolic m => String -> m SChar+sChar = symbolic++-- | Generalization of 'Data.SBV.sChar_'+sChar_ :: MonadSymbolic m => m SChar+sChar_ = free_++-- | Generalization of 'Data.SBV.sChars'+sChars :: MonadSymbolic m => [String] -> m [SChar]+sChars = symbolics++-- | Generalization of 'Data.SBV.sString'+sString :: MonadSymbolic m => String -> m SString+sString = symbolic++-- | Generalization of 'Data.SBV.sString_'+sString_ :: MonadSymbolic m => m SString+sString_ = free_++-- | Generalization of 'Data.SBV.sStrings'+sStrings :: MonadSymbolic m => [String] -> m [SString]+sStrings = symbolics++-- | Generalization of 'Data.SBV.sList'+sList :: (SymVal a, MonadSymbolic m) => String -> m (SList a)+sList = symbolic++-- | Generalization of 'Data.SBV.sList_'+sList_ :: (SymVal a, MonadSymbolic m) => m (SList a)+sList_ = free_++-- | Generalization of 'Data.SBV.sLists'+sLists :: (SymVal a, MonadSymbolic m) => [String] -> m [SList a]+sLists = symbolics++-- | Generalization of 'Data.SBV.sAray'+sArray :: (SymVal a, SymVal b, MonadSymbolic m) => String -> m (SArray a b)+sArray = symbolic++-- | Generalization of 'Data.SBV.sList_'+sArray_ :: (SymVal a, SymVal b, MonadSymbolic m) => m (SArray a b)+sArray_ = free_++-- | Generalization of 'Data.SBV.sLists'+sArrays :: (SymVal a, SymVal b, MonadSymbolic m) => [String] -> m [SArray a b]+sArrays = symbolics++-- | Identify tuple like things. Note that there are no methods, just instances to control type inference+class SymTuple a+instance SymTuple ()+instance SymTuple (a, b)+instance SymTuple (a, b, c)+instance SymTuple (a, b, c, d)+instance SymTuple (a, b, c, d, e)+instance SymTuple (a, b, c, d, e, f)+instance SymTuple (a, b, c, d, e, f, g)+instance SymTuple (a, b, c, d, e, f, g, h)++-- | Generalization of 'Data.SBV.sTuple'+sTuple :: (SymTuple tup, SymVal tup, MonadSymbolic m) => String -> m (SBV tup)+sTuple = symbolic++-- | Generalization of 'Data.SBV.sTuple_'+sTuple_ :: (SymTuple tup, SymVal tup, MonadSymbolic m) => m (SBV tup)+sTuple_ = free_++-- | Generalization of 'Data.SBV.sTuples'+sTuples :: (SymTuple tup, SymVal tup, MonadSymbolic m) => [String] -> m [SBV tup]+sTuples = symbolics++-- | Generalization of 'Data.SBV.sRational'+sRational :: MonadSymbolic m => String -> m SRational+sRational = symbolic++-- | Generalization of 'Data.SBV.sRational_'+sRational_ :: MonadSymbolic m => m SRational+sRational_ = free_++-- | Generalization of 'Data.SBV.sRationals'+sRationals :: MonadSymbolic m => [String] -> m [SRational]+sRationals = symbolics++-- | Generalization of 'Data.SBV.sSet'+sSet :: (Ord a, SymVal a, MonadSymbolic m) => String -> m (SSet a)+sSet = symbolic++-- | Generalization of 'Data.SBV.sMaybe_'+sSet_ :: (Ord a, SymVal a, MonadSymbolic m) => m (SSet a)+sSet_ = free_++-- | Generalization of 'Data.SBV.sMaybes'+sSets :: (Ord a, SymVal a, MonadSymbolic m) => [String] -> m [SSet a]+sSets = symbolics++-- | Generalization of 'Data.SBV.solve'+solve :: MonadSymbolic m => [SBool] -> m SBool+solve = pure . sAnd++-- | Convert an SReal to an SInteger. That is, it computes the+-- largest integer @n@ that satisfies @sIntegerToSReal n <= r@+-- essentially giving us the @floor@.+--+-- For instance, @1.3@ will be @1@, but @-1.3@ will be @-2@.+sRealToSInteger :: SReal -> SInteger+sRealToSInteger x+  | Just i <- unliteral x, isExactRational i+  = literal $ floor (toRational i)+  | True+  = SBV (SVal KUnbounded (Right (cache y)))+  where y st = do xsv <- sbvToSV st x+                  newExpr st KUnbounded (SBVApp (KindCast KReal KUnbounded) [xsv])++-- | Convert an SReal to an SInteger, truncating version. Truncate simply chops of the+-- fractional part, essentially rounding towards zero.+sRealToSIntegerTruncate :: SReal -> SInteger+sRealToSIntegerTruncate x = ite (x .>= 0) (sRealToSInteger x) (- sRealToSInteger (-x))++-- | label: Label the result of an expression. This is essentially a no-op, but useful as it generates a comment in the generated C/SMT-Lib code.+-- Note that if the argument is a constant, then the label is dropped completely, per the usual constant folding strategy. Compare this to 'observe'+-- which is good for printing counter-examples.+label :: SymVal a => String -> SBV a -> SBV a+label m x+   | Just _ <- unliteral x = x+   | True                  = SBV $ SVal k $ Right $ cache r+  where k    = kindOf x+        r st = do xsv <- sbvToSV st x+                  newExpr st k (SBVApp (Label m) [xsv])+++-- | Observe the value of an expression, if the given condition holds.  Such values are useful in model construction, as they are printed part of a satisfying model, or a+-- counter-example. The same works for quick-check as well. Useful when we want to see intermediate values, or expected/obtained+-- pairs in a particular run. Note that an observed expression is always symbolic, i.e., it won't be constant folded. Compare this to 'label'+-- which is used for putting a label in the generated SMTLib-C code.+--+-- NB. If the observed expression happens under a SBV-lambda expression, then it is silently ignored; since+-- there's no way to access the value of such a value.+observeIf :: SymVal a => (a -> Bool) -> String -> SBV a -> SBV a+observeIf cond m x+  | Just bad <- checkObservableName m+  = error bad+  | True+  = SBV $ SVal k $ Right $ cache r+  where k = kindOf x+        r st = do xsv <- sbvToSV st (label ("Observing: " ++ m) x)+                  recordObservable st (T.pack m) (cond . fromCV) xsv+                  pure xsv++-- | Observe the value of an expression, unconditionally. See 'observeIf' for a generalized version.+observe :: SymVal a => String -> SBV a -> SBV a+observe = observeIf (const True)++-- | Symbolic Comparisons. Similar to 'Eq', we cannot implement Haskell's 'Ord' class+-- since there is no way to return an 'Ordering' value from a symbolic comparison.+-- Furthermore, 'OrdSymbolic' requires 'Mergeable' to implement if-then-else, for the+-- benefit of implementing symbolic versions of 'max' and 'min' functions.+infix 4 .<, .<=, .>, .>=+class (Mergeable a, EqSymbolic a) => OrdSymbolic a where+  -- | Symbolic less than.+  (.<)  :: a -> a -> SBool+  -- | Symbolic less than or equal to.+  (.<=) :: a -> a -> SBool+  -- | Symbolic greater than.+  (.>)  :: a -> a -> SBool+  -- | Symbolic greater than or equal to.+  (.>=) :: a -> a -> SBool+  -- | Symbolic minimum.+  smin  :: a -> a -> a+  -- | Symbolic maximum.+  smax  :: a -> a -> a+  -- | Is the value within the allowed /inclusive/ range?+  inRange    :: a -> (a, a) -> SBool++  {-# MINIMAL (.<) #-}++  a .<= b    = a .< b .|| a .== b+  a .>  b    = b .<  a+  a .>= b    = b .<= a++  a `smin` b = ite (a .<= b) a b+  a `smax` b = ite (a .<= b) b a++  inRange x (y, z) = x .>= y .&& x .<= z+++{- We can't have a generic instance of the form:++instance Eq a => EqSymbolic a where+  x .== y = if x == y then true else sFalse++even if we're willing to allow Flexible/undecidable instances..+This is because if we allow this it would imply EqSymbolic (SBV a);+since (SBV a) has to be Eq as it must be a Num. But this wouldn't be+the right choice obviously; as the Eq instance is bogus for SBV+for natural reasons..+-}++-- It is tempting to put in an @Eq a@ superclass here. But doing so+-- is complicated, as it requires all underlying types to have equality,+-- which is at best shaky for algebraic reals and sets. So, leave it out.+instance (HasKind a, SymVal a) => EqSymbolic (SBV a) where+  SBV x .== SBV y = SBV (svEqual x y)+  SBV x ./= SBV y = SBV (svNotEqual x y)++  SBV x .=== SBV y = SBV (svStrongEqual x y)++  -- Custom version of distinct that generates better code for base types+  distinct []                                             = sTrue+  distinct [_]                                            = sTrue+  distinct xs | all isConc xs                             = checkDiff xs+              | [SBV a, SBV b] <- xs, a `is` svBool True  = SBV $ svNot b+              | [SBV a, SBV b] <- xs, b `is` svBool True  = SBV $ svNot a+              | [SBV a, SBV b] <- xs, a `is` svBool False = SBV b+              | [SBV a, SBV b] <- xs, b `is` svBool False = SBV a+              -- 3 booleans can't be distinct!+              | (x : _ : _ : _) <- xs, isBool x           = sFalse+              | True                                      = SBV (SVal KBool (Right (cache r)))+    where r st = do xsv <- mapM (sbvToSV st) xs+                    newExpr st KBool (SBVApp NotEqual xsv)++          -- We call this in case all are concrete, which will+          -- reduce to a constant and generate no code at all!+          -- Note that this is essentially the same as the default+          -- definition, which unfortunately we can no longer call!+          checkDiff []     = sTrue+          checkDiff (a:as) = sAll (a ./=) as .&& checkDiff as++          -- Sigh, we can't use isConcrete since that requires SymVal+          -- constraint that we don't have here. (To support SBools.)+          isConc (SBV (SVal _ (Left _))) = True+          isConc _                       = False++          -- Likewise here; need to go lower.+          SVal k1 (Left c1) `is` SVal k2 (Left c2) = (k1, c1) == (k2, c2)+          _                 `is` _                 = False++          isBool (SBV (SVal KBool _)) = True+          isBool _                    = False++  -- Custom version of distinctExcept that generates better code for base types+  distinctExcept []  _       = sTrue+  distinctExcept [_] _       = sTrue+  distinctExcept es  ignored+    | all isConc (es ++ ignored)+    = distinct (filter ignoreConc es)+    | True+    = SBV (SVal KBool (Right (cache r)))+    where ignoreConc x = case x `sElem` ignored of+                           SBV (SVal KBool (Left cv)) -> cvToBool cv+                           _                          -> error $ "distinctExcept: Impossible happened, concrete sElem failed: " ++ show (es, ignored, x)++          r st = do let incr x table = ite (x `sElem` ignored) (0 :: SInteger) (1 + readArrayNoEq table x)++                        initArray :: SArray a Integer+                        initArray = constArray 0++                        finalArray = foldl' (\table x -> writeArrayNoKnd table x (incr x table)) initArray es++                    sbvToSV st $ sAll (\e -> readArrayNoEq finalArray e .<= (1 :: SInteger)) es++          -- Sigh, we can't use isConcrete since that requires SymVal+          -- constraint that we don't have here. (To support SBools.)+          isConc (SBV (SVal _ (Left _))) = True+          isConc _                       = False++          -- Version of readArray that doesn't have the Eq constraint, since we don't have it here+          readArrayNoEq array key = SBV . SVal KUnbounded . Right $ cache g+             where g st = do f <- sbvToSV st array+                             k <- sbvToSV st key+                             newExpr st KUnbounded (SBVApp ReadArray [f, k])++          writeArrayNoKnd :: forall key. HasKind key => SArray key Integer -> SBV key -> SInteger -> SArray key Integer+          writeArrayNoKnd array key value = SBV . SVal k . Right $ cache g+              where k  = KArray (kindOf (Proxy @key)) KUnbounded++                    g st = do arr    <- sbvToSV st array+                              keyVal <- sbvToSV st key+                              val    <- sbvToSV st value+                              newExpr st k (SBVApp WriteArray [arr, keyVal, val])++-- We don't want to do a generic OrdSymbolic (SBV a) instance; since that would be dangerous, like the case+-- for Num. So, we explicitly define for each type we care about.++#define MKSORD(CSTR, TYPE)                                                            \+instance CSTR => OrdSymbolic TYPE where {                                             \+  a@(SBV x) .<  b@(SBV y) | smtComparable "<"   a b = SBV (svLessThan x y)            \+                          | True                    = SBV (svStructuralLessThan x y); \+                                                                                      \+  a@(SBV x) .<= b@(SBV y) | smtComparable ".<=" a b = SBV (svLessEq x y)              \+                          | True                    = a .< b .|| a .== b;             \+                                                                                      \+  a@(SBV x) .>  b@(SBV y) | smtComparable ">"   a b = SBV (svGreaterThan x y)         \+                          | True                    = b .< a;                         \+                                                                                      \+  a@(SBV x) .>= b@(SBV y) | smtComparable ">="  a b = SBV (svGreaterEq x y)           \+                          | True                    = b .<= a;                        \+}                                                                                     \++-- Derive basic instances we need. NB. We don't give the SRational instance here. It's handled+-- in Data/SBV/Rational due to representation issues.+MKSORD((),                          SInteger)+MKSORD((),                          SWord8)+MKSORD((),                          SWord16)+MKSORD((),                          SWord32)+MKSORD((),                          SWord64)+MKSORD((),                          SInt8)+MKSORD((),                          SInt16)+MKSORD((),                          SInt32)+MKSORD((),                          SInt64)+MKSORD((),                          SFloat)+MKSORD((),                          SChar)+MKSORD((SymVal a),                  (SList a))+MKSORD((),                          SDouble)+MKSORD((),                          SReal)+MKSORD((KnownNat n, BVIsNonZero n), (SWord n))+MKSORD((KnownNat n, BVIsNonZero n), (SInt  n))+MKSORD((ValidFloat eb sb),          (SFloatingPoint eb sb))++-- Tuples+MKSORD((SymVal a, SymVal b),                                                             (SBV (a, b)))+MKSORD((SymVal a, SymVal b, SymVal c),                                                   (SBV (a, b, c)))+MKSORD((SymVal a, SymVal b, SymVal c, SymVal d),                                         (SBV (a, b, c, d)))+MKSORD((SymVal a, SymVal b, SymVal c, SymVal d, SymVal e),                               (SBV (a, b, c, d, e)))+MKSORD((SymVal a, SymVal b, SymVal c, SymVal d, SymVal e, SymVal f),                     (SBV (a, b, c, d, e, f)))+MKSORD((SymVal a, SymVal b, SymVal c, SymVal d, SymVal e, SymVal f, SymVal g),           (SBV (a, b, c, d, e, f, g)))+MKSORD((SymVal a, SymVal b, SymVal c, SymVal d, SymVal e, SymVal f, SymVal g, SymVal h), (SBV (a, b, c, d, e, f, g, h)))+#undef MKSORD++-- Is this a type that's comparable by underlying translation to SMTLib?+-- Note that we allow concrete versions to go through unless the type is a set, as there's really no reason not to.+smtComparable :: (SymVal a, HasKind a) => String -> SBV a -> SBV a -> Bool+smtComparable op x y+  | isConcrete x && isConcrete y && not (isSet k)+  = True+  | True+  = case k of+      KVar       {} -> False+      KBool         -> True+      KBounded   {} -> True+      KUnbounded {} -> True+      KReal      {} -> True+      KApp       {} -> True+      KADT       {} -> True+      KFloat        -> True+      KDouble       -> True+      KRational  {} -> True+      KFP        {} -> True+      KChar         -> True+      KString       -> True+      KList      {} -> nope     -- Unfortunately, no way for us to desugar this+      KSet       {} -> nope     -- Ditto here..+      KTuple     {} -> False+      KArray     {} -> True+ where k    = kindOf x+       nope = error $ "Data.SBV.OrdSymbolic: SMTLib does not support " ++ op ++ " for " ++ show k++-- Bool+instance EqSymbolic Bool where+  x .== y = fromBool $ x == y++-- Lists+instance EqSymbolic a => EqSymbolic [a] where+  []     .==  []     = sTrue+  (x:xs) .==  (y:ys) = x .== y .&& xs .== ys+  _      .==  _      = sFalse++  []     .=== []     = sTrue+  (x:xs) .=== (y:ys) = x .=== y .&& xs .=== ys+  _      .=== _      = sFalse++instance OrdSymbolic a => OrdSymbolic [a] where+  []     .< []     = sFalse+  []     .< _      = sTrue+  _      .< []     = sFalse+  (x:xs) .< (y:ys) = x .< y .|| (x .== y .&& xs .< ys)++-- NonEmpty+instance EqSymbolic a => EqSymbolic (NonEmpty a) where+  (x :| xs) .==  (y :| ys) = x : xs .==  y : ys+  (x :| xs) .=== (y :| ys) = x : xs .=== y : ys++instance OrdSymbolic a => OrdSymbolic (NonEmpty a) where+   (x :| xs) .< (y :| ys) = x : xs .< y : ys++-- Maybe+instance EqSymbolic a => EqSymbolic (Maybe a) where+  Nothing .== Nothing = sTrue+  Just a  .== Just b  = a .== b+  _       .== _       = sFalse++instance OrdSymbolic a => OrdSymbolic (Maybe a) where+  Nothing .<  Nothing = sFalse+  Nothing .<  _       = sTrue+  Just _  .<  Nothing = sFalse+  Just a  .<  Just b  = a .< b++-- Either+instance (EqSymbolic a, EqSymbolic b) => EqSymbolic (Either a b) where+  Left a  .==  Left b  = a .== b+  Right a .==  Right b = a .== b+  _       .==  _       = sFalse++  Left a  .=== Left b  = a .=== b+  Right a .=== Right b = a .=== b+  _       .=== _       = sFalse++instance (OrdSymbolic a, OrdSymbolic b) => OrdSymbolic (Either a b) where+  Left a  .< Left b  = a .< b+  Left _  .< Right _ = sTrue+  Right _ .< Left _  = sFalse+  Right a .< Right b = a .< b++-- 2-Tuple+instance (EqSymbolic a, EqSymbolic b) => EqSymbolic (a, b) where+  (a0, b0) .==  (a1, b1) = a0 .==  a1 .&& b0 .==  b1+  (a0, b0) .=== (a1, b1) = a0 .=== a1 .&& b0 .=== b1++instance (OrdSymbolic a, OrdSymbolic b) => OrdSymbolic (a, b) where+  (a0, b0) .< (a1, b1) = a0 .< a1 .|| (a0 .== a1 .&& b0 .< b1)++-- 3-Tuple+instance (EqSymbolic a, EqSymbolic b, EqSymbolic c) => EqSymbolic (a, b, c) where+  (a0, b0, c0) .==  (a1, b1, c1) = (a0, b0) .==  (a1, b1) .&& c0 .==  c1+  (a0, b0, c0) .=== (a1, b1, c1) = (a0, b0) .=== (a1, b1) .&& c0 .=== c1++instance (OrdSymbolic a, OrdSymbolic b, OrdSymbolic c) => OrdSymbolic (a, b, c) where+  (a0, b0, c0) .< (a1, b1, c1) = (a0, b0) .< (a1, b1) .|| ((a0, b0) .== (a1, b1) .&& c0 .< c1)++-- 4-Tuple+instance (EqSymbolic a, EqSymbolic b, EqSymbolic c, EqSymbolic d) => EqSymbolic (a, b, c, d) where+  (a0, b0, c0, d0) .==  (a1, b1, c1, d1) = (a0, b0, c0) .==  (a1, b1, c1) .&& d0 .==  d1+  (a0, b0, c0, d0) .=== (a1, b1, c1, d1) = (a0, b0, c0) .=== (a1, b1, c1) .&& d0 .=== d1++instance (OrdSymbolic a, OrdSymbolic b, OrdSymbolic c, OrdSymbolic d) => OrdSymbolic (a, b, c, d) where+  (a0, b0, c0, d0) .< (a1, b1, c1, d1) = (a0, b0, c0) .< (a1, b1, c1) .|| ((a0, b0, c0) .== (a1, b1, c1) .&& d0 .< d1)++-- 5-Tuple+instance (EqSymbolic a, EqSymbolic b, EqSymbolic c, EqSymbolic d, EqSymbolic e) => EqSymbolic (a, b, c, d, e) where+  (a0, b0, c0, d0, e0) .==  (a1, b1, c1, d1, e1) = (a0, b0, c0, d0) .==  (a1, b1, c1, d1) .&& e0 .==  e1+  (a0, b0, c0, d0, e0) .=== (a1, b1, c1, d1, e1) = (a0, b0, c0, d0) .=== (a1, b1, c1, d1) .&& e0 .=== e1++instance (OrdSymbolic a, OrdSymbolic b, OrdSymbolic c, OrdSymbolic d, OrdSymbolic e) => OrdSymbolic (a, b, c, d, e) where+  (a0, b0, c0, d0, e0) .< (a1, b1, c1, d1, e1) = (a0, b0, c0, d0) .< (a1, b1, c1, d1) .|| ((a0, b0, c0, d0) .== (a1, b1, c1, d1) .&& e0 .< e1)++-- 6-Tuple+instance (EqSymbolic a, EqSymbolic b, EqSymbolic c, EqSymbolic d, EqSymbolic e, EqSymbolic f) => EqSymbolic (a, b, c, d, e, f) where+  (a0, b0, c0, d0, e0, f0) .==  (a1, b1, c1, d1, e1, f1) = (a0, b0, c0, d0, e0) .==  (a1, b1, c1, d1, e1) .&& f0 .==  f1+  (a0, b0, c0, d0, e0, f0) .=== (a1, b1, c1, d1, e1, f1) = (a0, b0, c0, d0, e0) .=== (a1, b1, c1, d1, e1) .&& f0 .=== f1++instance (OrdSymbolic a, OrdSymbolic b, OrdSymbolic c, OrdSymbolic d, OrdSymbolic e, OrdSymbolic f) => OrdSymbolic (a, b, c, d, e, f) where+  (a0, b0, c0, d0, e0, f0) .< (a1, b1, c1, d1, e1, f1) =    (a0, b0, c0, d0, e0) .<  (a1, b1, c1, d1, e1)+                                                       .|| ((a0, b0, c0, d0, e0) .== (a1, b1, c1, d1, e1) .&& f0 .< f1)++-- 7-Tuple+instance (EqSymbolic a, EqSymbolic b, EqSymbolic c, EqSymbolic d, EqSymbolic e, EqSymbolic f, EqSymbolic g) => EqSymbolic (a, b, c, d, e, f, g) where+  (a0, b0, c0, d0, e0, f0, g0) .==  (a1, b1, c1, d1, e1, f1, g1) = (a0, b0, c0, d0, e0, f0) .==  (a1, b1, c1, d1, e1, f1) .&& g0 .==  g1+  (a0, b0, c0, d0, e0, f0, g0) .=== (a1, b1, c1, d1, e1, f1, g1) = (a0, b0, c0, d0, e0, f0) .=== (a1, b1, c1, d1, e1, f1) .&& g0 .=== g1++instance (OrdSymbolic a, OrdSymbolic b, OrdSymbolic c, OrdSymbolic d, OrdSymbolic e, OrdSymbolic f, OrdSymbolic g) => OrdSymbolic (a, b, c, d, e, f, g) where+  (a0, b0, c0, d0, e0, f0, g0) .< (a1, b1, c1, d1, e1, f1, g1) =    (a0, b0, c0, d0, e0, f0) .<  (a1, b1, c1, d1, e1, f1)+                                                               .|| ((a0, b0, c0, d0, e0, f0) .== (a1, b1, c1, d1, e1, f1) .&& g0 .< g1)++-- | A class of values that capture the notion of a zero for measure values.+-- Used in termination checking for recursive SMT functions.+class OrdSymbolic (SBV a) => Zero a where+  zero   :: SBV a+  -- | Component-wise non-negativity check. For scalars this is simply @>= 0@.+  -- For tuples, every component must be @>= 0@, which is stronger than+  -- lexicographic @>= (0, 0, ..)@. This is required for well-foundedness+  -- of the lexicographic ordering on the non-negative part.+  nonNeg :: SBV a -> SBool+  nonNeg x = x .>= zero++-- | An integer as a measure+instance Zero Integer where+   zero = literal 0++-- | Bounded bit-vectors as measures. These are all sound: each is a finite type, so a+-- non-negative, strictly-decreasing chain of values is necessarily finite. (The default+-- @nonNeg x = x .>= 0@ works for both the unsigned and signed cases.)+instance Zero Word8  where zero = literal 0+instance Zero Word16 where zero = literal 0+instance Zero Word32 where zero = literal 0+instance Zero Word64 where zero = literal 0+instance Zero Int8   where zero = literal 0+instance Zero Int16  where zero = literal 0+instance Zero Int32  where zero = literal 0+instance Zero Int64  where zero = literal 0+instance (KnownNat n, BVIsNonZero n) => Zero (WordN n) where zero = literal 0+instance (KnownNat n, BVIsNonZero n) => Zero (IntN  n) where zero = literal 0++-- NB. We would like to use 'Data.SBV.Tuple.untuple' in the 'nonNeg' definitions below,+-- but 'Data.SBV.Tuple' imports 'Data.SBV.Core.Model', creating a circular dependency.+-- So we extract components at the SVal level using 'TupleAccess' directly.++-- | A tuple of integers as a measure+instance Zero (Integer, Integer) where+  zero   = literal (0, 0)+  nonNeg = tupleNonNeg 2++-- | A triple of integers as a measure+instance Zero (Integer, Integer, Integer) where+  zero   = literal (0, 0, 0)+  nonNeg = tupleNonNeg 3++-- | A quadruple of integers as a measure+instance Zero (Integer, Integer, Integer, Integer) where+  zero   = literal (0, 0, 0, 0)+  nonNeg = tupleNonNeg 4++-- | A quintuple of integers as a measure+instance Zero (Integer, Integer, Integer, Integer, Integer) where+  zero   = literal (0, 0, 0, 0, 0)+  nonNeg = tupleNonNeg 5++-- | A float as a measure+instance Zero Float where+   zero = literal 0++-- | A double as a measure+instance Zero Double where+   zero = literal 0++-- | Algebraic reals are /not/ permitted as measures, and we reject them at compile time.+-- The reals are dense, hence not well-ordered: a merely non-negative and strictly-decreasing+-- real measure does not imply termination (e.g. the chain @1, 1\/2, 1\/4, ...@ descends forever+-- without reaching a minimum). Use an integer-valued measure instead.+instance TypeError (     'Text "A termination measure may not have a real-valued result."+                   ':$$: 'Text ""+                   ':$$: 'Text "The reals are not well-ordered: an infinite descending chain such as"+                   ':$$: 'Text "1, 1/2, 1/4, ... has no least element, so a non-negative and strictly"+                   ':$$: 'Text "decreasing real measure does not imply termination."+                   ':$$: 'Text ""+                   ':$$: 'Text "Use an integer-valued measure instead (e.g. a count of remaining steps)."+                   ) => Zero AlgReal where+   zero = error "Data.SBV.Zero(AlgReal): unreachable"++-- | A floating-point as a measure+instance ValidFloat eb sb => Zero (FloatingPoint eb sb) where+   zero = literal 0++-- | Component-wise non-negativity for an n-tuple of integers.+-- Extracts each component via 'TupleAccess' and checks @>= 0@.+tupleNonNeg :: SymVal a => Int -> SBV a -> SBool+tupleNonNeg n t = sAll (.>= (0 :: SInteger)) [acc i | i <- [1..n]]+  where acc i = SBV $ SVal KUnbounded $ Right $ cache $ \st -> do+                  sv <- sbvToSV st t+                  newExpr st KUnbounded (SBVApp (TupleAccess i n) [sv])++-- | Type family that maps a function type to its corresponding measure type.+-- The measure function takes the same arguments but returns a different type.+type family MeasureOf f r where+  MeasureOf (SBV a -> r) r' = SBV a -> MeasureOf r r'+  MeasureOf (SBV a)      r  = SBV r++-- | Apply a measure function to a list of SVal arguments, producing the measure value.+-- This is used internally during measure verification.+class ApplyMeasure a r where+  applyMeasure :: MeasureOf a r -> [SVal] -> SBV r++instance ApplyMeasure (SBV a) r where+  applyMeasure m [] = m+  applyMeasure _ _  = error "Data.SBV.applyMeasure: too many arguments"++instance ApplyMeasure b r => ApplyMeasure (SBV a -> b) r where+  applyMeasure _ []       = error "Data.SBV.applyMeasure: not enough arguments"+  applyMeasure m (sv:svs) = applyMeasure @b @r (m (SBV sv)) svs++-- | Type family that maps a function type to its corresponding contract type.+-- A contract takes the same arguments as the function, plus the result, and returns 'SBool'.+-- For example, a contract for @SBV Integer -> SBV Integer@ has type @SBV Integer -> SBV Integer -> SBool@+-- (first arg is the input, second is the output).+type family ContractOf f where+  ContractOf (SBV a)      = SBV a -> SBool+  ContractOf (SBV a -> r) = SBV a -> ContractOf r++-- | Apply a contract function to a list of input t'SVal' arguments and a result t'SVal'.+class ApplyContract a where+  applyContract :: ContractOf a -> [SVal] -> SVal -> SBool++instance ApplyContract (SBV a) where+  applyContract c [] sv = c (SBV sv)+  applyContract _ _  _  = error "Data.SBV.applyContract: too many arguments"++instance ApplyContract b => ApplyContract (SBV a -> b) where+  applyContract _ []       _ = error "Data.SBV.applyContract: not enough arguments"+  applyContract c (sv:svs) r = applyContract @b (c (SBV sv)) svs r++-- | An evaluated measure: captures the ability to apply the measure function+-- to a list of arguments, along with the ordering and zero constraints.+data MeasureEval where+  MeasureEval :: (Zero r, OrdSymbolic (SBV r), SymVal r) => ([SVal] -> SBV r) -> MeasureEval++-- | An evaluated contract: captures the ability to apply a contract predicate+-- to a list of input arguments and a result value. Used during measure verification+-- for nested recursive functions, where the inductive hypothesis provides the contract+-- on recursive call results.+data ContractEval where+  ContractEval :: ([SVal] -> SVal -> SBool) -> ContractEval++-- | A measure for a function, used to prove termination of recursive definitions.+--+--   * 'AutoMeasure': The function either doesn't need a measure (because it's not recursive),+--     or SBV will automatically guess one based on argument types.+--   * 'HasMeasure': The user provided an explicit measure function.+--   * 'HasContract': The user provided a measure and a contract. The contract is a predicate+--     on the function's inputs and output that is proven simultaneously with the measure decrease+--     via well-founded induction. This handles nested recursion (e.g., McCarthy 91) where the+--     termination argument depends on the function's return value at smaller inputs.+--   * 'Productive': The function is corecursive (productive). Instead of proving termination via a+--     measure, SBV checks that every recursive call is guarded by a data constructor (list cons,+--     ADT constructor, etc.), ensuring the function always produces output incrementally.+--   * 'Unverified': No termination or productivity check is performed. The function is emitted as+--     @define-fun-rec@ and the user takes responsibility for well-definedness. Use this for functions+--     where termination is believed but cannot be proven (e.g., Collatz).+data Measure f where+  AutoMeasure  :: Measure f+  HasMeasure   :: MeasureEval -> [MeasureHelper] -> Measure f+  HasContract  :: MeasureEval -> ContractEval -> [MeasureHelper] -> Measure f+  Productive   :: Measure f+  Unverified   :: Measure f++-- | A helper axiom for measure verification. When a measure's correctness depends on+-- properties that require induction to prove (e.g., @ifComplexity f > 0@), the user+-- provides these properties along with their proofs. During the measure check, each+-- helper is run: the TP proof is executed to confirm the property holds, and the+-- proven property is asserted as an axiom in the measure verification session.+--+-- Use the 'Data.SBV.TP.measureLemma' smart constructor to create these from TP proofs.+newtype MeasureHelper = MeasureHelper { runMeasureHelper :: SMTConfig -> IO SBool }++-- | Verify that a measure decreases at each recursive call site.+-- Walks the expression DAG to find recursive calls, computes reaching conditions+-- via ITE analysis, and verifies the measure property in a separate solver session.+-- Throws an error with a detailed message if verification fails.+verifyMeasure :: SMTConfig -> String -> LambdaInfo -> MeasureEval -> [MeasureHelper] -> IO ()+verifyMeasure cfg funcNm info meval helpers = do+   -- Run each helper with funcNm added to measuresBeingVerified, preventing re-entrant verification.+   -- This is needed when a measureLemma proof uses the function whose measure is being checked+   -- (e.g., revPreservesLen proves length(rev xs) == length xs, using rev itself).+   let curVerifying = measuresBeingVerified (tpOptions cfg)+       cfg'         = cfg{tpOptions = (tpOptions cfg){measuresBeingVerified = Set.insert funcNm curVerifying}}++   debug cfg ["[MEASURE] " <> T.pack funcNm <> ": verifying with " <> showText (length helpers) <> " helper(s)"+              <> if Set.null curVerifying then "" else ", already verifying: " <> showText (Set.toList curVerifying)]+   axioms <- mapM (`runMeasureHelper` cfg') helpers+   debug cfg ["[MEASURE] " <> T.pack funcNm <> ": " <> showText (length axioms) <> " helper axiom(s) collected, checking measure"]+   result <- checkMeasure cfg funcNm False info meval axioms+   let prettyNm = prettyFuncNm funcNm+   case result of+     MeasureOK              -> pure ()+     MeasureNotNonNeg r     -> error $ unlines $+        [ ""+        , "*** Data.SBV: Termination measure is not non-negative."+        , "***"+        , "***   Function: " ++ prettyNm+        , "***"+        ]+        ++ ["***   " ++ l | l <- lines (show r)]+        +++        [ "***"+        , "*** The measure must be non-negative for all inputs."+        ]+     MeasureNotDecreasing r -> error $ unlines $+        [ ""+        , "*** Data.SBV: Termination measure does not strictly decrease at a recursive call site."+        , "***"+        , "***   Function: " ++ prettyNm+        , "***"+        ]+        ++ ["***   " ++ l | l <- lines (show r)]+        +++        [ "***"+        , "*** The measure must strictly decrease at every recursive call."+        ]++-- | Result of checking a measure.+data MeasureCheckResult = MeasureOK                         -- ^ Measure is valid+                        | MeasureNotNonNeg     ThmResult    -- ^ Measure can be negative+                        | MeasureNotDecreasing ThmResult    -- ^ Measure doesn't strictly decrease++-- | Check that a measure is valid: non-negative and strictly decreasing at each recursive call.+-- Returns 'MeasureOK' if valid, or the specific failure otherwise.+-- If @skipNonNeg@ is 'True', the non-negativity check is skipped (used for ADT size measures+-- where non-negativity is guaranteed by construction).+-- The @axioms@ list contains additional properties to assert in the verification session+-- (used for user-provided measures that depend on inductively-proven helper properties).+checkMeasure :: SMTConfig -> String -> Bool -> LambdaInfo -> MeasureEval -> [SBool] -> IO MeasureCheckResult+checkMeasure cfgIn funcNm skipNonNeg LambdaInfo{liAssignments, liParams, liOutput, liConsts} (MeasureEval applyM) axioms = do+   let -- Use a separate transcript for the measure check, so it doesn't clobber the main one+       addSuffix s fp = dropExtension fp ++ "_measure_" ++ map (\c -> if c == ' ' then '_' else c) funcNm ++ "_" ++ s ++ takeExtension fp+       cfgNonNeg      = cfgIn{transcript = addSuffix "nonNeg"   <$> transcript cfgIn}+       cfgDecrease    = cfgIn{transcript = addSuffix "decrease"  <$> transcript cfgIn}+       barFuncNm      = barify funcNm+       recCalls  = [(sv, args) | (sv, SBVApp (Uninterpreted nm) args) <- F.toList liAssignments, nm == T.pack barFuncNm]++   if null recCalls+     then pure MeasureOK+     else do+       let reachConds = computeReachingConditions liAssignments liOutput+           paramSVs   = map snd liParams++           -- Set up the proving environment: create fresh symbolic parameters,+           -- constrain any axioms (which may register function definitions in this+           -- session via the SVal cache mechanism), then replay the function body DAG.+           -- The order matters: axioms must be constrained BEFORE replaying the DAG,+           -- so that replayDAG knows which functions are available in this session.+           mkProveEnv = do+              st <- symbolicEnv+              liftIO $ writeIORef (rSkipMeasureChecks st) True++              let singleParam = length paramSVs == 1+              freshParams <- liftIO $ sequence [svToSV st =<< svMkSymVar (NonQueryVar Nothing) (kindOf sv) (Just (if singleParam then "arg" else "arg" ++ show i)) st+                                               | (i, sv) <- zip [(0::Int)..] paramSVs+                                               ]+              freshConsts <- liftIO $ mapM (\(_, cv) -> svToSV st (SVal (kindOf cv) (Left cv))) liConsts++              -- Constrain axioms first: forcing axiom SBools triggers newUninterpreted+              -- for any functions they reference, registering those definitions in this session.+              mapM_ constrain axioms++              -- Now read which functions are actually available in this session+              sessionDefns <- liftIO $ readIORef (rDefns st)+              let sessionFuncs = Map.keysSet sessionDefns++              let constMapping = zip (map fst liConsts) freshConsts+                  paramMapping = zip paramSVs freshParams+                  initMap      = Map.fromList (constMapping ++ paramMapping)+                  builtinMap   = Map.fromList [(trueSV, trueSV), (falseSV, falseSV)]+                  startMap     = Map.union initMap builtinMap++              svMap <- liftIO $ replayDAG cfgIn st (Set.singleton barFuncNm) sessionFuncs startMap (F.toList liAssignments)++              let formalSVals = map (\sv -> SVal (kindOf sv) (Right (cache (\_ -> pure sv)))) freshParams+                  mFormal     = applyM formalSVals++              pure (svMap, mFormal)++       -- Check 1: Non-negativity (skipped for ADT size measures, which are non-negative by construction)+       nonNegOK <- if skipNonNeg+                   then pure (Right ())+                   else do nonNegResult <- proveWith cfgNonNeg (do+                              (_, mFormal) <- mkProveEnv+                              sObserve "measure" (unSBV mFormal)+                              pure $ nonNeg mFormal :: Symbolic SBool)+                           pure $ case nonNegResult of+                             ThmResult Unsatisfiable{} -> Right ()+                             _                         -> Left nonNegResult++       case nonNegOK of+         Right () -> do+           -- Check 2: Strict decrease at each recursive call+           decResult <- proveWith cfgDecrease (do+              (svMap, mFormal) <- mkProveEnv++              -- When we have axioms from measure helpers that reference the function being+              -- verified (e.g., revPreservesLen references rev), the axioms register the+              -- function definition in this session via the SVal cache mechanism. We then+              -- connect the fresh variables (created by replayDAG for recursive calls) to+              -- actual function calls, so the axioms can reason about them.+              -- For example, the axiom len(rev(xs)) = len(xs) needs to know that fresh_1+              -- is actually rev(as) in order to derive len(fresh_1) = len(as).+              st <- symbolicEnv+              defns <- liftIO $ readIORef (rDefns st)+              let funcRegistered = Map.member barFuncNm defns+              when funcRegistered $+                liftIO $ mapM_ (\(rcSV, callArgSVs) -> do+                    let freshSV    = Map.findWithDefault rcSV rcSV svMap+                        mappedArgs = map (\sv -> Map.findWithDefault sv sv svMap) callArgSVs+                        k          = kindOf rcSV+                    -- Create the actual function call: f(mapped_args)+                    actualSV <- newExpr st k (SBVApp (Uninterpreted (T.pack barFuncNm)) mappedArgs)+                    -- Assert fresh_var == f(mapped_args)+                    let freshSVal  = SVal k (Right (cache (const (pure freshSV))))+                        actualSVal = SVal k (Right (cache (const (pure actualSV))))+                    internalConstraint st False [] (svEqual freshSVal actualSVal)+                  ) recCalls++              let singleCall = length recCalls == 1+                  mkObligation (i, (rcSV, callArgSVs)) = do+                    let mappedArgs = map (\sv -> Map.findWithDefault sv sv svMap) callArgSVs+                        argSVals   = map (\sv -> SVal (kindOf sv) (Right (cache (\_ -> pure sv)))) mappedArgs+                        mCall      = applyM argSVals++                        reachSVal  = case Map.lookup rcSV reachConds of+                                       Just conds -> sAnd [ let sv' = Map.findWithDefault condSV condSV svMap+                                                                s   = SBV (SVal KBool (Right (cache (\_ -> pure sv'))))+                                                            in if pol then s else sNot s+                                                          | (condSV, pol) <- conds+                                                          ]+                                       Nothing    -> sTrue++                        tag nm | singleCall = nm+                               | True       = nm ++ "[" ++ show (i :: Int) ++ "]"++                    sObserve (tag "then")   (unSBV mCall)+                    pure $ reachSVal .=> mFormal .> mCall++              sObserve "before" (unSBV mFormal)+              obligations <- mapM mkObligation (zip [1..] recCalls)+              pure $ sAnd obligations :: Symbolic SBool)++           case decResult of+             ThmResult Unsatisfiable{} -> pure MeasureOK+             _                         -> pure $ MeasureNotDecreasing decResult++         Left nonNegResult -> pure $ MeasureNotNonNeg nonNegResult++-- | Verify a measure with a contract for nested recursive functions.+-- Uses well-founded induction: the inductive hypothesis provides the contract+-- on recursive call results, and we prove both measure decrease and contract simultaneously.+-- One-step unfolding of the function body at each recursive call site gives the solver+-- information about base-case behavior without assuming totality.+verifyMeasureWithContract :: SMTConfig -> String -> LambdaInfo -> MeasureEval -> ContractEval -> [MeasureHelper] -> IO ()+verifyMeasureWithContract cfg funcNm info meval ceval helpers = do+   -- Run helpers with funcNm added to measuresBeingVerified, same as verifyMeasure+   let curVerifying = measuresBeingVerified (tpOptions cfg)+       cfg'         = cfg{tpOptions = (tpOptions cfg){measuresBeingVerified = Set.insert funcNm curVerifying}}++   debug cfg ["[MEASURE] " <> T.pack funcNm <> " (contract): verifying with " <> showText (length helpers) <> " helper(s)"]+   axioms <- mapM (`runMeasureHelper` cfg') helpers+   debug cfg ["[MEASURE] " <> T.pack funcNm <> " (contract): " <> showText (length axioms) <> " helper axiom(s) collected, checking measure+contract"]+   result <- checkMeasureWithContract cfg funcNm False info meval ceval axioms+   let prettyNm = prettyFuncNm funcNm+   case result of+     MeasureOK              -> pure ()+     MeasureNotNonNeg r     -> error $ unlines $+        [ ""+        , "*** Data.SBV: Termination measure is not non-negative."+        , "***"+        , "***   Function: " ++ prettyNm+        , "***"+        ]+        ++ ["***   " ++ l | l <- lines (show r)]+        +++        [ "***"+        , "*** The measure must be non-negative for all inputs."+        ]+     MeasureNotDecreasing r -> error $ unlines $+        [ ""+        , "*** Data.SBV: Measure+contract verification failed."+        , "***"+        , "***   Function: " ++ prettyNm+        , "***"+        ]+        ++ ["***   " ++ l | l <- lines (show r)]+        +++        [ "***"+        , "*** The measure must strictly decrease at every recursive call,"+        , "*** and the contract must hold for the function's output."+        , "*** The inductive hypothesis provides the contract on recursive call"+        , "*** results for inputs with strictly smaller measure."+        ]++-- | Check a measure with contract: non-negative, strictly decreasing, and contract holds.+-- Uses one-step unfolding at each recursive call site to give the solver base-case behavior,+-- and assumes the inductive hypothesis (contract on recursive call results) to handle+-- nested recursion where a call's argument depends on another call's result.+checkMeasureWithContract :: SMTConfig -> String -> Bool -> LambdaInfo -> MeasureEval -> ContractEval -> [SBool] -> IO MeasureCheckResult+checkMeasureWithContract cfgIn funcNm skipNonNeg LambdaInfo{liAssignments, liParams, liOutput, liConsts} (MeasureEval applyM) (ContractEval applyC) axioms = do+   let addSuffix s fp = dropExtension fp ++ "_measure_" ++ map (\c -> if c == ' ' then '_' else c) funcNm ++ "_" ++ s ++ takeExtension fp+       cfgNonNeg      = cfgIn{transcript = addSuffix "nonNeg"   <$> transcript cfgIn}+       cfgDecrease    = cfgIn{transcript = addSuffix "decrease"  <$> transcript cfgIn}+       barFuncNm      = barify funcNm+       recCalls  = [(sv, args) | (sv, SBVApp (Uninterpreted nm) args) <- F.toList liAssignments, nm == T.pack barFuncNm]++   if null recCalls+     then pure MeasureOK+     else do+       -- Non-negativity: same as checkMeasure+       nonNegOK <- if skipNonNeg+                   then pure (Right ())+                   else do nonNegResult <- proveWith cfgNonNeg (do+                              st <- symbolicEnv+                              liftIO $ writeIORef (rSkipMeasureChecks st) True++                              let singleParam = length paramSVs == 1+                              freshParams <- liftIO $ sequence [svToSV st =<< svMkSymVar (NonQueryVar Nothing) (kindOf sv) (Just (if singleParam then "arg" else "arg" ++ show i)) st+                                                                | (i, sv) <- zip [(0::Int)..] paramSVs+                                                                ]+                              freshConsts <- liftIO $ mapM (\(_, cv) -> svToSV st (SVal (kindOf cv) (Left cv))) liConsts++                              mapM_ constrain axioms+                              sessionDefns <- liftIO $ readIORef (rDefns st)+                              let sessionFuncs = Map.keysSet sessionDefns++                              let constMapping = zip (map fst liConsts) freshConsts+                                  paramMapping = zip paramSVs freshParams+                                  initMap      = Map.fromList (constMapping ++ paramMapping)+                                  builtinMap   = Map.fromList [(trueSV, trueSV), (falseSV, falseSV)]+                                  startMap     = Map.union initMap builtinMap++                              _ <- liftIO $ replayDAG cfgIn st (Set.singleton barFuncNm) sessionFuncs startMap (F.toList liAssignments)++                              let formalSVals = map (\sv -> SVal (kindOf sv) (Right (cache (\_ -> pure sv)))) freshParams+                                  mFormal     = applyM formalSVals++                              sObserve "measure" (unSBV mFormal)+                              pure $ nonNeg mFormal :: Symbolic SBool)+                           pure $ case nonNegResult of+                             ThmResult Unsatisfiable{} -> Right ()+                             _                         -> Left nonNegResult++       case nonNegOK of+         Right () -> do+           -- Decrease + contract check+           decResult <- proveWith cfgDecrease (do+              st <- symbolicEnv+              liftIO $ writeIORef (rSkipMeasureChecks st) True++              let singleParam = length paramSVs == 1+              freshParams <- liftIO $ sequence [svToSV st =<< svMkSymVar (NonQueryVar Nothing) (kindOf sv) (Just (if singleParam then "arg" else "arg" ++ show i)) st+                                                | (i, sv) <- zip [(0::Int)..] paramSVs+                                                ]+              freshConsts <- liftIO $ mapM (\(_, cv) -> svToSV st (SVal (kindOf cv) (Left cv))) liConsts++              mapM_ constrain axioms+              sessionDefns <- liftIO $ readIORef (rDefns st)+              let sessionFuncs = Map.keysSet sessionDefns++              let constMapping = zip (map fst liConsts) freshConsts+                  paramMapping = zip paramSVs freshParams+                  initMap      = Map.fromList (constMapping ++ paramMapping)+                  builtinMap   = Map.fromList [(trueSV, trueSV), (falseSV, falseSV)]+                  startMap     = Map.union initMap builtinMap++              svMap <- liftIO $ replayDAG cfgIn st (Set.singleton barFuncNm) sessionFuncs startMap (F.toList liAssignments)++              let formalSVals = map (\sv -> SVal (kindOf sv) (Right (cache (\_ -> pure sv)))) freshParams+                  mFormal     = applyM formalSVals++              -- One-step unfolding: for each recursive call, replay the function body+              -- with the call's arguments substituted for the formal parameters.+              -- This gives the solver base-case behavior without assuming totality.+              let dagList = F.toList liAssignments+              liftIO $ F.for_ recCalls $ \(rcSV, callArgSVs) -> do+                let -- Map the call's arguments through svMap to get the fresh session SVs+                    mappedCallArgs = map (\sv -> Map.findWithDefault sv sv svMap) callArgSVs+                    -- Build the initial map for the unfolded body: formal params -> call args+                    unfoldParamMapping = zip paramSVs mappedCallArgs+                    unfoldConstMapping = zip (map fst liConsts) freshConsts+                    unfoldInitMap      = Map.fromList (unfoldConstMapping ++ unfoldParamMapping)+                    unfoldStartMap     = Map.union unfoldInitMap builtinMap++                -- Replay the entire function body with the call's args+                unfoldSvMap <- replayDAG cfgIn st (Set.singleton barFuncNm) sessionFuncs unfoldStartMap dagList++                -- The unfolded output SV+                let unfoldedOutputSV = Map.findWithDefault liOutput liOutput unfoldSvMap+                    -- The fresh variable that was assigned to this recursive call+                    freshCallSV = Map.findWithDefault rcSV rcSV svMap+                    -- Assert: fresh_call = unfolded_output+                    freshSVal    = SVal (kindOf rcSV) (Right (cache (const (pure freshCallSV))))+                    unfoldedSVal = SVal (kindOf rcSV) (Right (cache (const (pure unfoldedOutputSV))))+                internalConstraint st False [] (svEqual freshSVal unfoldedSVal)++              -- IH contract: for each recursive call, assume the contract holds on its result.+              -- This is sound because we also prove measure decrease at each call site.+              liftIO $ F.for_ recCalls $ \(rcSV, callArgSVs) -> do+                let mappedArgs    = map (\sv -> Map.findWithDefault sv sv svMap) callArgSVs+                    argSVals      = map (\sv -> SVal (kindOf sv) (Right (cache (\_ -> pure sv)))) mappedArgs+                    freshCallSV   = Map.findWithDefault rcSV rcSV svMap+                    freshResult   = SVal (kindOf rcSV) (Right (cache (const (pure freshCallSV))))+                    contractHolds = applyC argSVals freshResult+                internalConstraint st False [] (unSBV contractHolds)++              -- Proof obligations:+              -- 1. Measure strictly decreases at each reachable recursive call site+              let reachConds = computeReachingConditions liAssignments liOutput+                  singleCall = length recCalls == 1+                  mkDecreaseObligation (i, (rcSV, callArgSVs)) = do+                    let mappedArgs = map (\sv -> Map.findWithDefault sv sv svMap) callArgSVs+                        argSVals   = map (\sv -> SVal (kindOf sv) (Right (cache (\_ -> pure sv)))) mappedArgs+                        mCall      = applyM argSVals++                        reachSVal  = case Map.lookup rcSV reachConds of+                                       Just conds -> sAnd [ let sv' = Map.findWithDefault condSV condSV svMap+                                                                s   = SBV (SVal KBool (Right (cache (\_ -> pure sv'))))+                                                            in if pol then s else sNot s+                                                          | (condSV, pol) <- conds+                                                          ]+                                       Nothing    -> sTrue++                        tag nm | singleCall = nm+                               | True       = nm ++ "[" ++ show (i :: Int) ++ "]"++                    sObserve (tag "then")   (unSBV mCall)+                    pure $ reachSVal .=> mFormal .> mCall++              sObserve "before" (unSBV mFormal)+              decreaseObligations <- mapM mkDecreaseObligation (zip [1..] recCalls)++              -- 2. Contract holds for the function's output+              let mappedOutput  = Map.findWithDefault liOutput liOutput svMap+                  resultSVal   = SVal (kindOf liOutput) (Right (cache (const (pure mappedOutput))))+                  contractObl  = applyC formalSVals resultSVal++              pure $ sAnd decreaseObligations .&& contractObl :: Symbolic SBool)++           case decResult of+             ThmResult Unsatisfiable{} -> pure MeasureOK+             _                         -> pure $ MeasureNotDecreasing decResult++         Left nonNegResult -> pure $ MeasureNotNonNeg nonNegResult+   where paramSVs = map snd liParams++-- | Verify that a function marked as productive is guarded-recursive:+-- every recursive call must be a direct argument to a data constructor.+verifyGuardedness :: SMTConfig -> String -> LambdaInfo -> IO ()+verifyGuardedness cfg funcNm info+  | isGuardedRecursive (Set.singleton (barify funcNm)) info+  = debug cfg ["[MEASURE] " <> T.pack funcNm <> ": productive (all recursive calls are guarded by constructors)"]+  | True+  = error $ unlines+      [ ""+      , "*** Data.SBV: Function marked as productive is not guarded-recursive."+      , "***"+      , "***   Function: " ++ prettyFuncNm funcNm+      , "***"+      , "*** Every recursive call must be a direct argument to a data constructor"+      , "*** (list cons, ADT constructor, etc.) to ensure productivity."+      ]++-- | Check if a recursive function is guarded: every recursive call's result+-- is consumed by a data constructor (list cons, ADT constructor, tuple constructor).+-- This ensures the function is productive — it always makes progress by producing+-- at least one constructor before recursing. The set of barified names covers+-- all functions in the mutual recursion group (or just the function itself for self-recursion).+isGuardedRecursive :: Set.Set String -> LambdaInfo -> Bool+isGuardedRecursive barFuncNms LambdaInfo{liAssignments} = all isGuarded recCallSVs+  where+    dagList    = F.toList liAssignments+    recCallSVs = [sv | (sv, SBVApp (Uninterpreted nm) _) <- dagList, nm `Set.member` Set.map T.pack barFuncNms]++    -- Build a map from SV to the set of operations that consume it+    consumers :: Map.Map SV [(SV, Op)]+    consumers = foldl' addConsumers Map.empty dagList+      where addConsumers m (sv, SBVApp op args) =+              foldl' (\m' a -> Map.insertWith (\_ old -> (sv, op) : old) a [(sv, op)] m') m args++    -- A recursive call is guarded if at least one of its consumers is a constructor+    isGuarded sv = case Map.lookup sv consumers of+                     Nothing   -> False+                     Just cons -> any (isConstructorOp . snd) cons++    isConstructorOp (SeqOp SeqConcat{})      = True+    isConstructorOp (ADTOp ADTConstructor{}) = True+    isConstructorOp (TupleConstructor _)     = True+    isConstructorOp _                        = False++-- | Generate candidate measures based on parameter kinds.+-- For list args, we use @length@. For integer args, we use @abs@. For recursive ADTs, we use @sbv.dt.size@.+-- ADT size measures are tried first (most likely to succeed for structural recursion).+-- If there are multiple scalar candidates, we also try their sum.+-- For two or more scalar candidates, we also try lexicographic (tuple) measures+-- using all pairs and triples, which handles functions like Ackermann that+-- decrease lexicographically.+guessMeasures :: [(Quantifier, SV)] -> [(String, MeasureEval, Maybe Int)]+guessMeasures params = map (\(d, f, mi) -> (d, MeasureEval f, mi)) (adtSingles ++ otherSingles ++ summed) ++ lexPairs ++ lexTriples+  where+    singles :: [(String, [SVal] -> SInteger, Maybe Int)]+    singles = concatMap mkCandidates (zip [0..] params)++    -- ADT size measures are most likely to succeed for ADT-recursive functions, so try them first+    (adtSingles, otherSingles) = partition (\(_, _, mi) -> isJust mi) singles++    mkCandidates :: (Int, (Quantifier, SV)) -> [(String, [SVal] -> SInteger, Maybe Int)]+    mkCandidates (i, (_, sv)) = case kindOf sv of+      KList elemK -> [("length arg" ++ show (i+1), \svs ->+                       let listSVal = svs !! i+                       in SBV $ SVal KUnbounded $ Right $ cache $ \st -> do+                            s <- sbvToSV st (SBV listSVal)+                            newExpr st KUnbounded (SBVApp (SeqOp (SeqLen elemK)) [s]), Nothing)]++      -- Strings are sequences of characters in SMTLib+      KString      -> [("length arg" ++ show (i+1), \svs ->+                       let strSVal = svs !! i+                       in SBV $ SVal KUnbounded $ Right $ cache $ \st -> do+                            s <- sbvToSV st (SBV strSVal)+                            newExpr st KUnbounded (SBVApp (SeqOp (SeqLen KChar)) [s]), Nothing)]++      -- Unbounded integers: try abs and smax 0 as measures+      KUnbounded       -> [ ("abs arg"     ++ show (i+1), \svs ->      abs (SBV (svs !! i)), Nothing)+                          , ("smax 0 arg"  ++ show (i+1), \svs -> 0 `smax` SBV (svs !! i), Nothing)+                          ]++      -- Bounded bitvectors: cast to Integer for the measure. Unsigned values are+      -- already non-negative; signed values need abs to ensure non-negativity.+      KBounded False _ -> [("arg" ++ show (i+1),     \svs ->      SBV (svFromIntegral KUnbounded (svs !! i)),  Nothing)]+      KBounded True  _ -> [("abs arg" ++ show (i+1), \svs -> abs (SBV (svFromIntegral KUnbounded (svs !! i))), Nothing)]++      KTuple ks   -> concatMap (mkTupleComponent i (length ks)) (zip [1..] ks)+      KADT adtName _ ctors+        | any (any (isRecKind adtName) . snd) ctors ->+            let sizeName = "sbv.dt.size." ++ adtName+                adtKind  = kindOf sv+            in [(sizeName ++ " arg" ++ show (i+1), \svs ->+                 SBV $ SVal KUnbounded $ Right $ cache $ \st -> do+                      ensureADTSizeDefined st sizeName adtKind ctors+                      s <- sbvToSV st (SBV (svs !! i))+                      newExpr st KUnbounded (SBVApp (Uninterpreted (T.pack sizeName)) [s]), Just i)]+      _           -> []++    mkTupleComponent :: Int -> Int -> (Int, Kind) -> [(String, [SVal] -> SInteger, Maybe Int)]+    mkTupleComponent argIdx nFields (compIdx, compKind) = case compKind of+      KList elemK -> [("length arg" ++ show (argIdx+1) ++ "._" ++ show compIdx, \svs ->+                       let comp = SBV $ SVal compKind $ Right $ cache $ \st -> do+                                    tupSV <- sbvToSV st (SBV (svs !! argIdx))+                                    newExpr st compKind (SBVApp (TupleAccess compIdx nFields) [tupSV])+                       in SBV $ SVal KUnbounded $ Right $ cache $ \st -> do+                            s <- sbvToSV st comp+                            newExpr st KUnbounded (SBVApp (SeqOp (SeqLen elemK)) [s]), Nothing)]+      KUnbounded  -> [("abs arg" ++ show (argIdx+1) ++ "._" ++ show compIdx, \svs ->+                       abs $ SBV $ SVal KUnbounded $ Right $ cache $ \st -> do+                         tupSV <- sbvToSV st (SBV (svs !! argIdx))+                         newExpr st KUnbounded (SBVApp (TupleAccess compIdx nFields) [tupSV]), Nothing)]+      _           -> []++    summed | length singles > 1 = [( intercalate " + " [d | (d, _, _) <- singles]+                                   , \svs -> sum [f svs | (_, f, _) <- singles]+                                   , Nothing+                                   )]+           | True               = []++    -- Lexicographic pair measures: try all ordered pairs from the scalar candidates+    lexPairs :: [(String, MeasureEval, Maybe Int)]+    lexPairs+      | length singles < 2 = []+      | True                = [ ( "(" ++ d1 ++ ", " ++ d2 ++ ")"+                                , MeasureEval (\svs -> mkPair (f1 svs) (f2 svs))+                                , Nothing+                                )+                              | (d1, f1, _) <- singles+                              , (d2, f2, _) <- singles+                              , d1 /= d2+                              ]++    -- Lexicographic triple measures: try all ordered triples from the scalar candidates+    lexTriples :: [(String, MeasureEval, Maybe Int)]+    lexTriples+      | length singles < 3 = []+      | True                = [ ( "(" ++ d1 ++ ", " ++ d2 ++ ", " ++ d3 ++ ")"+                                , MeasureEval (\svs -> mkTriple (f1 svs) (f2 svs) (f3 svs))+                                , Nothing+                                )+                              | (d1, f1, _) <- singles+                              , (d2, f2, _) <- singles+                              , d1 /= d2+                              , (d3, f3, _) <- singles+                              , d1 /= d3, d2 /= d3+                              ]++    -- Build an SBV (Integer, Integer) from two SIntegers+    mkPair :: SInteger -> SInteger -> SBV (Integer, Integer)+    mkPair a b = SBV $ SVal (KTuple [KUnbounded, KUnbounded]) $ Right $ cache $ \st -> do+      sa <- sbvToSV st a+      sb <- sbvToSV st b+      newExpr st (KTuple [KUnbounded, KUnbounded]) (SBVApp (TupleConstructor 2) [sa, sb])++    -- Build an SBV (Integer, Integer, Integer) from three SIntegers+    mkTriple :: SInteger -> SInteger -> SInteger -> SBV (Integer, Integer, Integer)+    mkTriple a b c = SBV $ SVal (KTuple [KUnbounded, KUnbounded, KUnbounded]) $ Right $ cache $ \st -> do+      sa <- sbvToSV st a+      sb <- sbvToSV st b+      sc <- sbvToSV st c+      newExpr st (KTuple [KUnbounded, KUnbounded, KUnbounded]) (SBVApp (TupleConstructor 3) [sa, sb, sc])++-- | Check if a kind refers back to a given ADT name (i.e., is a recursive field).+-- Recursive fields in constructor kinds use 'KApp', not 'KADT'.+isRecKind :: String -> Kind -> Bool+isRecKind adtName (KApp n _)   = n == adtName+isRecKind adtName (KADT n _ _) = n == adtName+isRecKind _       _            = False++-- | Ensure that an ADT size function is defined in the given state. The size function+-- maps ADT values to non-negative integers, returning 0 for base constructors and+-- @1 + sum(sizes of recursive fields)@ for recursive constructors.+-- This is used as a termination measure for functions that recurse on ADT values.+ensureADTSizeDefined :: State -> String -> Kind -> [(String, [Kind])] -> IO ()+ensureADTSizeDefined st sizeName adtKind ctors = do+   defs <- readIORef (rDefns st)+   unless (Map.member sizeName defs) $ do+      let argNm      = "x"+          smtArgType = T.unpack (smtType adtKind)++          -- Build the SMT-Lib body for the size function+          body = buildBody ctors++          buildBody []  = "0"+          buildBody [c] = caseExpr c+          buildBody (c:cs) = "(ite " ++ testerExpr c ++ " " ++ caseExpr c ++ " " ++ buildBody cs ++ ")"++          testerExpr (cName, _) = "(is-" ++ cName ++ " " ++ argNm ++ ")"++          caseExpr (cName, flds) =+            let recIdxs = [j | (j, k) <- zip [1::Int ..] flds, isRecKind (adtNameOf adtKind) k]+            in if null recIdxs+               then "0"+               else let recCalls = ["(" ++ sizeName ++ " (get" ++ cName ++ "_" ++ show j ++ " " ++ argNm ++ "))" | j <- recIdxs]+                    in "(+ 1 " ++ smtSum recCalls ++ ")"++          smtSum [x]    = x+          smtSum (x:xs) = "(+ " ++ x ++ " " ++ smtSum xs ++ ")"+          smtSum []     = "0"++          paramStr = T.pack $ "((" ++ argNm ++ " " ++ smtArgType ++ "))"+          smtDef   = SMTDef KUnbounded [sizeName] (Just paramStr) (\n -> T.pack (replicate n ' ' ++ body))+          sbvTy    = SBVType [adtKind, KUnbounded]++      modifyIORef' (rDefns st) (Map.insert sizeName (smtDef, sbvTy))+      modifyState st rUIMap (Map.insert sizeName (True, Nothing, sbvTy)) (pure ())++-- | Extract the ADT name from a KADT kind.+adtNameOf :: Kind -> String+adtNameOf (KADT n _ _) = n+adtNameOf _            = ""++-- | Check if a function is structurally recursive on a given parameter.+-- Returns 'True' if every recursive call passes a strict sub-term of the+-- formal parameter (obtained via one or more 'ADTAccessor' operations) as+-- the argument at that parameter position. Structural recursion on an ADT+-- guarantees termination by the well-foundedness of the datatype, so the+-- measure check can be skipped.+isStructurallyDecreasing :: String -> LambdaInfo -> Int -> Bool+isStructurallyDecreasing funcNm LambdaInfo{liAssignments, liParams} paramIdx =+    not (null recCalls) && all checkCall recCalls+  where+    barFuncNm = barify funcNm+    paramSV   = snd (liParams !! paramIdx)+    asgns     = F.toList liAssignments+    defMap    = Map.fromList asgns++    recCalls = [args | (_, SBVApp (Uninterpreted nm) args) <- asgns, nm == T.pack barFuncNm]++    checkCall callArgs+      | paramIdx < length callArgs = isProperSubTerm (callArgs !! paramIdx)+      | True                       = False++    -- An SV is a proper sub-term of the parameter if it is obtained by applying+    -- one or more ADTAccessor operations to the parameter.+    isProperSubTerm sv = case Map.lookup sv defMap of+       Just (SBVApp (ADTOp (ADTAccessor _ _)) [parent]) ->+            parent == paramSV || isProperSubTerm parent+       _ -> False++-- | Try to auto-guess a termination measure for a recursive function. Generates candidates+-- based on parameter kinds and tries each one. Returns the first measure that passes both+-- non-negativity and strict decrease checks, or 'Nothing' if no guess works.+autoGuess :: SMTConfig -> String -> LambdaInfo -> IO (Maybe MeasureEval)+autoGuess cfg funcNm info = do+    let barFuncNm = barify funcNm+        recCalls  = [(sv, args) | (sv, SBVApp (Uninterpreted nm) args) <- F.toList (liAssignments info), nm == T.pack barFuncNm]+        allUIs    = [(nm, length args) | (_, SBVApp (Uninterpreted nm) args) <- F.toList (liAssignments info)]+    debug cfg ["[MEASURE] " <> T.pack funcNm <> ": barified = " <> showText barFuncNm]+    debug cfg ["[MEASURE] " <> T.pack funcNm <> ": Uninterpreted ops in DAG: " <> showText allUIs]+    debug cfg ["[MEASURE] " <> T.pack funcNm <> ": recursive calls found = " <> showText (length recCalls)]+    go candidates+  where+    candidates = guessMeasures (liParams info)+    go []                    = pure Nothing+    go ((desc, m, mbIdx):ms) = do let skipNonNeg = "sbv.dt.size." `isPrefixOf` desc+                                  debug cfg ["[MEASURE] " <> T.pack funcNm <> ": trying " <> T.pack desc]+                                  -- For ADT size measures, try syntactic sub-term check first.+                                  -- This avoids calling the solver, which can hang on recursive+                                  -- define-fun-rec definitions.+                                  result <- case mbIdx of+                                              Just idx | isStructurallyDecreasing funcNm info idx -> do+                                                 debug cfg ["[MEASURE] " <> T.pack funcNm <> ": " <> T.pack desc <> " -> OK (structural recursion)"]+                                                 pure MeasureOK+                                              _ -> checkMeasure cfg funcNm skipNonNeg info m []+                                  case result of+                                    MeasureOK              -> do debug cfg ["[MEASURE] " <> T.pack funcNm <> ": " <> T.pack desc <> " -> OK"]+                                                                 pure (Just m)+                                    MeasureNotNonNeg r     -> do debug cfg ["[MEASURE] " <> T.pack funcNm <> ": " <> T.pack desc <> " failed non-negativity: " <> showText r]+                                                                 debug cfg ["[MEASURE] " <> T.pack funcNm <> ": trying next candidate.."]+                                                                 go ms+                                    MeasureNotDecreasing r -> do debug cfg ["[MEASURE] " <> T.pack funcNm <> ": " <> T.pack desc <> " failed strict decrease: " <> showText r]+                                                                 debug cfg ["[MEASURE] " <> T.pack funcNm <> ": trying next candidate.."]+                                                                 go ms++-- | Auto-guess a termination measure, or fail with a helpful error message.+autoGuessOrFail :: SMTConfig -> String -> LambdaInfo -> IO ()+autoGuessOrFail cfg funcNm info = do+   mbMeasure <- autoGuess cfg funcNm info+   case mbMeasure of+     Just _  -> pure ()+     Nothing -> error $ unlines $+        [ ""+        , "*** Data.SBV: Cannot determine a termination measure."+        , "***"+        , "***   Function: " ++ prettyFuncNm funcNm+        ]+        ++ guessLines+        +++        [ "***"+        , "*** Please use 'smtFunctionWithMeasure' to provide an explicit measure."+        ]+  where candidates  = guessMeasures (liParams info)+        guessLines+          | null candidates = [ "***"+                              , "***   No measure candidates could be derived from the argument types."+                              ]+          | True            = [ "***"+                              , "***   Measures tried:"+                              ]+                              ++ [ "***     " ++ d | (d, _, _) <- candidates]++-- | Check mutual recursion for a function by computing the SCC from State.+-- This is called as a deferred closure from rMeasureChecks. It computes the SCC+-- of the function graph, finds the group containing the given function, and+-- verifies the whole group if it's a multi-member cycle. Multiple members of the+-- same group may register this check, but only the first execution does work;+-- after successful verification, verified members are removed from rFuncLambdaInfos,+-- so subsequent closures find insufficient infos and skip.+--+-- The optional t'MeasureEval' is a user-provided measure (from 'smtFunctionWithMeasure').+-- If given, it is tried first before falling back to auto-guessing.+checkMutualFromState :: SMTConfig -> String -> State -> Maybe MeasureEval -> IO ()+checkMutualFromState cfg funcNm st mbMeasure = do+   defns     <- readIORef (rDefns st)+   funcInfos <- readIORef (rFuncLambdaInfos st)++   let barFuncNm = barify funcNm+       nodes = [(nm, nm, deps) | (nm, (SMTDef _ deps _ _, _)) <- Map.toList defns]+       sccs  = DG.stronglyConnComp nodes++       -- Find the SCC containing our function (using barified name since rDefns keys are barified)+       mySCC = [members | DG.CyclicSCC members <- sccs, barFuncNm `elem` members]++   case mySCC of+     [members] | length members >= 2 -> do+       -- rFuncLambdaInfos uses plain names, so unbar the SCC member names for lookup.+       -- Build the infos map with plain names as keys (matching rFuncLambdaInfos convention).+       let plainMembers = map unBar members+           infos = Map.fromList [(pnm, v) | pnm <- plainMembers, Just v <- [Map.lookup pnm funcInfos]]+       if Map.size infos >= 2+         then do checkMutualGroup cfg infos mbMeasure+                 -- Remove verified members from rFuncLambdaInfos so that subsequent closures+                 -- for the same group (registered by other members) find insufficient infos and skip.+                 modifyIORef' (rFuncLambdaInfos st) (\m -> foldl' (flip Map.delete) m plainMembers)+         else do debug cfg ["[MEASURE] " <> T.pack funcNm <> ": mutual group already verified, skipping"]+                 modifyIORef' (rFuncLambdaInfos st) (Map.delete funcNm)+     _ -> do debug cfg ["[MEASURE] " <> T.pack funcNm <> ": not in a multi-member cycle, skipping mutual check"]+             modifyIORef' (rFuncLambdaInfos st) (Map.delete funcNm)++-- | Reject mutual recursion for contract-based functions. Deferred to SCC computation time+-- so that non-mutual cross-refs (helper functions, uninterpreted constants) don't cause false positives.+rejectMutualContractFromState :: SMTConfig -> String -> State -> IO ()+rejectMutualContractFromState cfg funcNm st = do+   defns <- readIORef (rDefns st)++   let barFuncNm = barify funcNm+       nodes = [(nm, nm, deps) | (nm, (SMTDef _ deps _ _, _)) <- Map.toList defns]+       sccs  = DG.stronglyConnComp nodes+       mySCC = [members | DG.CyclicSCC members <- sccs, barFuncNm `elem` members]++   case mySCC of+     [members] | length members >= 2 ->+       error $ unlines [ ""+                        , "*** Data.SBV: smtFunctionWithContract does not support mutual recursion."+                        , "***"+                        , "***   Function: " ++ prettyFuncNm funcNm+                        , "***"+                        , "*** Please use smtFunction or smtFunctionWithMeasure for mutual recursion groups."+                        , ""+                        ]+     _ -> debug cfg ["[MEASURE] " <> T.pack funcNm <> ": not in a multi-member cycle, skipping mutual contract check"]++-- | Check that all members of a mutual recursion group marked as productive are guarded-recursive,+-- considering cross-calls as well as self-calls.+checkMutualProductiveFromState :: SMTConfig -> String -> State -> IO ()+checkMutualProductiveFromState cfg funcNm st = do+   defns     <- readIORef (rDefns st)+   funcInfos <- readIORef (rFuncLambdaInfos st)++   let barFuncNm = barify funcNm+       nodes = [(nm, nm, deps) | (nm, (SMTDef _ deps _ _, _)) <- Map.toList defns]+       sccs  = DG.stronglyConnComp nodes+       mySCC = [members | DG.CyclicSCC members <- sccs, barFuncNm `elem` members]++   case mySCC of+     [members] | length members >= 2 -> do+       let plainMembers = map unBar members+           infos = Map.fromList [(pnm, v) | pnm <- plainMembers, Just v <- [Map.lookup pnm funcInfos]]+       if Map.size infos >= 2+         then do let barNames = Set.fromList members+                     memberNamesStr = intercalate ", " (map prettyFuncNm plainMembers)+                 debug cfg ["[MEASURE] Checking mutual productive group: {" <> T.pack memberNamesStr <> "}"]+                 let failed = [(pnm, info) | (pnm, info) <- Map.toList infos, not (isGuardedRecursive barNames info)]+                 case failed of+                   [] -> do debug cfg ["[MEASURE] Mutual productive group: all members are guarded"]++                            modifyIORef' (rFuncLambdaInfos st) (\m -> foldl' (flip Map.delete) m plainMembers)+                   _  -> error $ unlines $+                            [ ""+                            , "*** Data.SBV: Mutual productive group has unguarded recursive calls."+                            , "***"+                            ]+                            ++ groupLines (Map.toList infos)+                            +++                            [ "***   Unguarded: " ++ intercalate ", " (map (prettyFuncNm . fst) failed)+                            , "***"+                            , "*** Every recursive call (self or cross) must be a direct argument to a data constructor."+                            , ""+                            ]+         else do debug cfg ["[MEASURE] " <> T.pack funcNm <> ": mutual productive group already verified, skipping"]+                 modifyIORef' (rFuncLambdaInfos st) (Map.delete funcNm)+     _ -> do debug cfg ["[MEASURE] " <> T.pack funcNm <> ": not in a multi-member cycle, skipping mutual productive check"]+             modifyIORef' (rFuncLambdaInfos st) (Map.delete funcNm)++-- | Check termination for a mutual recursion group. Each function in the group+-- gets an auto-guessed measure, and we verify that at every call edge (self or cross),+-- the caller's measure at formal parameters strictly exceeds the callee's measure at actual arguments.+--+-- If a user-provided measure is given ('Just'), it is tried first before auto-guessing.+checkMutualGroup :: SMTConfig -> Map.Map String LambdaInfo -> Maybe MeasureEval -> IO ()+checkMutualGroup cfg members mbMeasure = do+   let memberNames = Map.keys members+       memberNamesStr = intercalate ", " (map prettyFuncNm memberNames)+   debug cfg ["[MEASURE] Checking mutual recursion group: {" <> T.pack memberNamesStr <> "}"]++   -- If a user-provided measure is given, try it first+   let memberList = Map.toList members+   userOK <- case mbMeasure of+     Nothing -> pure False+     Just m  -> do+       debug cfg ["[MEASURE] Mutual group: trying user-provided measure for all members"]+       ok <- checkMutualMeasure cfg memberList m+       if ok+         then do debug cfg ["[MEASURE] Mutual group: user-provided measure works for all members"]+                 pure True+         else do debug cfg ["[MEASURE] Mutual group: user-provided measure failed, falling back to auto-guess"]+                 pure False++   unless userOK $ do+     -- Auto-guess: for each function, generate measure candidates+     let memberCandidates = [(nm, info, guessMeasures (liParams info)) | (nm, info) <- memberList]++     -- Check if any member has no candidates at all+     case [(nm, info) | (nm, info, []) <- memberCandidates] of+       (nm, _):_ -> error $ unlines $+          [ ""+          , "*** Data.SBV: Cannot determine a termination measure for mutual recursion group."+          , "***"+          ]+          ++ groupLines memberList+          +++          [ "***   Function with no measure candidates: " ++ prettyFuncNm nm+          , "***"+          , if isJust mbMeasure+            then "*** The user-provided measure did not work, and no auto-guess candidates are available."+            else "*** Please use 'smtFunctionWithMeasure' to provide explicit measures."+          ]+       [] -> pure ()++     -- Try to find a working combination. For efficiency, when all members have the same+     -- parameter kinds, we try the same candidate for all. Otherwise we try combinations.+     let allCandidateLists = [(nm, info, cs) | (nm, info, cs) <- memberCandidates]+     tryMeasures allCandidateLists++ where+   tryMeasures :: [(String, LambdaInfo, [(String, MeasureEval, Maybe Int)])] -> IO ()+   tryMeasures memberInfos = do+     -- Collect all unique candidates from all members (by description).+     -- Different members may have different parameter kinds, yielding different candidates.+     let allCandidates = nubBy (\(d1,_,_) (d2,_,_) -> d1 == d2)+                              $ concatMap (\(_, _, cs) -> cs) memberInfos++     result <- go allCandidates+     case result of+       Just _  -> pure ()+       Nothing -> do+         error $ unlines $+           [ ""+           , "*** Data.SBV: Cannot determine a termination measure for mutual recursion group."+           , "***"+           ]+           ++ groupLines (Map.toList members)+           +++           [ "***"+           , if isJust mbMeasure+             then "*** The user-provided measure did not work, and auto-guessing also failed."+             else "*** Please use 'smtFunctionWithMeasure' to provide explicit measures."+           ]++    where+     go [] = pure Nothing+     go ((desc, m, _mbIdx):rest) = do+       debug cfg ["[MEASURE] Mutual group: trying measure " <> T.pack desc <> " for all members"]+       -- Try the same measure for all members. Catch exceptions from kind mismatches+       -- (e.g., applying abs to a list parameter) and treat them as failure.+       let memberList = [(nm, info) | (nm, info, _) <- memberInfos]+       result <- C.try $ checkMutualMeasure cfg memberList m+       case result of+         Right True -> do debug cfg ["[MEASURE] Mutual group: measure " <> T.pack desc <> " works for all members"]+                          pure (Just m)+         Right False -> do debug cfg ["[MEASURE] Mutual group: measure " <> T.pack desc <> " failed, trying next"]+                           go rest+         Left (e :: C.SomeException) -> do+                           debug cfg ["[MEASURE] Mutual group: measure " <> T.pack desc <> " incompatible: " <> showText e]+                           go rest++-- | Verify that a given measure works for all functions in a mutual recursion group.+-- Uses the same measure for all members. For each function f, check that at every call+-- site to any function g in the group, measure(f's formals) > measure(g's actuals).+checkMutualMeasure :: SMTConfig -> [(String, LambdaInfo)] -> MeasureEval -> IO Bool+checkMutualMeasure cfgIn members (MeasureEval applyM) = go members+  where+    -- Set of barified names of all group members+    groupBarNames = Set.fromList [barify nm | (nm, _) <- members]++    go [] = pure True+    go ((funcNm, LambdaInfo{liAssignments, liParams, liOutput, liConsts}):rest) = do+       -- Find all calls to any member of the mutual group+       let allGroupCalls = [(sv, args)+                           | (sv, SBVApp (Uninterpreted calleeNm) args) <- F.toList liAssignments+                           , calleeNm `Set.member` Set.map T.pack groupBarNames+                           ]++       if null allGroupCalls+         then go rest  -- No calls to group members, no decrease needed+         else do+           let addSuffix s fp = dropExtension fp ++ "_measure_" ++ map (\c -> if c == ' ' then '_' else c) funcNm ++ "_" ++ s ++ takeExtension fp+               cfgDecrease    = cfgIn{transcript = addSuffix "mutual_decrease" <$> transcript cfgIn}+               cfgNonNeg      = cfgIn{transcript = addSuffix "mutual_nonNeg"   <$> transcript cfgIn}+               paramSVs       = map snd liParams+               reachConds     = computeReachingConditions liAssignments liOutput++               mkProveEnv = do+                  st <- symbolicEnv+                  liftIO $ writeIORef (rSkipMeasureChecks st) True+                  let singleParam = length paramSVs == 1+                  freshParams <- liftIO $ sequence+                    [svToSV st =<< svMkSymVar (NonQueryVar Nothing) (kindOf sv)+                                              (Just (if singleParam then "arg" else "arg" ++ show i)) st+                    | (i, sv) <- zip [(0::Int)..] paramSVs+                    ]+                  freshConsts <- liftIO $ mapM (\(_, cv) -> svToSV st (SVal (kindOf cv) (Left cv))) liConsts+                  sessionDefns <- liftIO $ readIORef (rDefns st)+                  let sessionFuncs = Map.keysSet sessionDefns+                      constMapping = zip (map fst liConsts) freshConsts+                      paramMapping = zip paramSVs freshParams+                      initMap      = Map.fromList (constMapping ++ paramMapping)+                      builtinMap   = Map.fromList [(trueSV, trueSV), (falseSV, falseSV)]+                      startMap     = Map.union initMap builtinMap+                  svMap <- liftIO $ replayDAG cfgIn st groupBarNames sessionFuncs startMap (F.toList liAssignments)+                  let formalSVals = map (\sv -> SVal (kindOf sv) (Right (cache (\_ -> pure sv)))) freshParams+                      mFormal     = applyM formalSVals+                  pure (svMap, mFormal)++           -- Check 1: Non-negativity of caller's measure+           nonNegResult <- proveWith cfgNonNeg (do+               (_, mFormal) <- mkProveEnv+               sObserve "measure" (unSBV mFormal)+               pure $ nonNeg mFormal :: Symbolic SBool)++           case nonNegResult of+             ThmResult Unsatisfiable{} -> do+               -- Check 2: Strict decrease at each call site+               decResult <- proveWith cfgDecrease (do+                   (svMap, mFormal) <- mkProveEnv+                   let singleCall = length allGroupCalls == 1+                       mkObligation (i, (rcSV, callArgSVs)) = do+                         let mappedArgs = map (\sv -> Map.findWithDefault sv sv svMap) callArgSVs+                             argSVals   = map (\sv -> SVal (kindOf sv) (Right (cache (\_ -> pure sv)))) mappedArgs+                             mCall      = applyM argSVals+                             reachSVal  = case Map.lookup rcSV reachConds of+                                            Just conds -> sAnd [ let sv' = Map.findWithDefault condSV condSV svMap+                                                                     s   = SBV (SVal KBool (Right (cache (\_ -> pure sv'))))+                                                                 in if pol then s else sNot s+                                                               | (condSV, pol) <- conds+                                                               ]+                                            Nothing    -> sTrue+                             tag nm | singleCall = nm+                                    | True       = nm ++ "[" ++ show (i :: Int) ++ "]"+                         sObserve (tag "then") (unSBV mCall)+                         pure $ reachSVal .=> mFormal .> mCall+                   sObserve "before" (unSBV mFormal)+                   obligations <- mapM mkObligation (zip [1..] allGroupCalls)+                   pure $ sAnd obligations :: Symbolic SBool)+               case decResult of+                 ThmResult Unsatisfiable{} -> do+                   debug cfgIn ["[MEASURE] Mutual group: decrease verified for " <> T.pack funcNm]+                   go rest+                 _ -> do+                   debug cfgIn ["[MEASURE] Mutual group: decrease failed for " <> T.pack funcNm <> ": " <> showText decResult]+                   pure False+             _ -> do+               debug cfgIn ["[MEASURE] Mutual group: non-negativity failed for " <> T.pack funcNm]+               pure False++-- | Pretty-print a function name: turn @"insert @(SBV Integer -> SBV [Integer])"@ into @"insert :: SBV Integer -> SBV [Integer]"@+prettyFuncNm :: String -> String+prettyFuncNm m = case break (== '@') m of+                   (nm, '@':'(':tp) | not (null tp) -> dropWhileEnd (== ' ') nm ++ " :: " ++ init tp+                   _                                -> m++-- | Format group members on separate lines, aligned on @::@.+groupLines :: [(String, LambdaInfo)] -> [String]+groupLines ms = case map (prettyFuncNm . fst) ms of+  []    -> []+  names -> let parts    = [(nm, tp) | n <- names, let (nm, tp) = case break (== ':') n of+                                                                    (a, ':':':':b) -> (dropWhileEnd (== ' ') a, " ::" ++ b)+                                                                    _              -> (n, "")]+               maxNm    = maximum (map (length . fst) parts)+               pad s    = s ++ replicate (maxNm - length s) ' '+               fmt (n, t) = "***     " ++ pad n ++ " " ++ t+           in map fmt parts++-- | Replay the DAG in a new state, building up an SV mapping from old to new.+-- Recursive calls to the functions being verified are replaced with fresh variables.+-- Calls to other DEFINED functions (present in the parent state's rDefns) are replayed as actual calls.+-- All other Uninterpreted references (uninterpreted constants, free functions, sentinels)+-- are replaced with fresh variables since they aren't defined in the fresh proveWith session.+replayDAG :: SMTConfig -> State -> Set.Set String -> Set.Set String -> Map.Map SV SV -> [(SV, SBVExpr)] -> IO (Map.Map SV SV)+replayDAG cfg st recFuncNames definedFuncs startMap dag = do+  let n = length dag+  let nms = intercalate ", " (map unBar (Set.toList recFuncNames))+  debug cfg ["[MEASURE] replayDAG {" <> T.pack nms <> "}: replaying " <> showText n <> " node(s)"]+  go startMap dag+  where -- Map an SV through the svMap. If it's not found, it's an external captured variable+        -- (e.g., from a higher-order function's closure). Create a fresh unconstrained variable+        -- for it to avoid leaking foreign-context SVals into the current state.+        mapArg svMap a = case Map.lookup a svMap of+                           Just a' -> pure (a', svMap)+                           Nothing -> do fresh <- newInternalVariable st (kindOf a)+                                         pure (fresh, Map.insert a fresh svMap)++        mapArgs svMap []     = pure ([], svMap)+        mapArgs svMap (a:as) = do (a',  svMap')  <- mapArg svMap a+                                  (as', svMap'') <- mapArgs svMap' as+                                  pure (a':as', svMap'')++        go svMap []                = pure svMap+        go svMap ((sv, expr):rest) = do+          let SBVApp op args = expr+          (mappedArgs, svMap') <- mapArgs svMap args+          newSV' <- case op of+                      -- For recursive calls (self or mutual), create a fresh uninterpreted value instead of replaying+                      Uninterpreted nm | nm `Set.member` Set.map T.pack recFuncNames -> newInternalVariable st (kindOf sv)+                      -- For calls to other defined functions (e.g., partition), replay properly+                      Uninterpreted nm | nm `Set.member` Set.map T.pack definedFuncs -> do+                                          let mappedOp = mapOpSVs (\a -> Map.findWithDefault a a svMap') op+                                          newExpr st (kindOf sv) (SBVApp mappedOp mappedArgs)+                      -- For everything else that's Uninterpreted (free functions, sentinels, etc.),+                      -- create fresh values since they aren't defined in the proveWith session+                      Uninterpreted{} -> newInternalVariable st (kindOf sv)+                      -- For all other operations (arithmetic, list ops, etc.), replay properly+                      _ -> do let mappedOp = mapOpSVs (\a -> Map.findWithDefault a a svMap') op+                              newExpr st (kindOf sv) (SBVApp mappedOp mappedArgs)+          go (Map.insert sv newSV' svMap') rest++-- | Map any SVs embedded directly in an Op (e.g., in LkUp, FP_Cast)+mapOpSVs :: (SV -> SV) -> Op -> Op+mapOpSVs f (LkUp p sv1 sv2)                  = LkUp p (f sv1) (f sv2)+mapOpSVs f (IEEEFP (FP_Cast fk tk sv))       = IEEEFP (FP_Cast fk tk (f sv))+mapOpSVs _ (ArrayInit (Right (SMTLambda s)))  = ArrayInit (Right (SMTLambda s))  -- Lambda strings don't contain SVs to map+mapOpSVs _ op                                 = op++-- | Compute the reaching condition for each SV: under what boolean condition+-- does the SV's value contribute to the output? Propagates conditions top-down+-- through ITE, AND, and OR nodes. Each reaching condition is a list of+-- @(condSV, polarity)@ pairs; the actual condition is the conjunction: for each+-- pair, @condSV@ if polarity is 'True', @not condSV@ if polarity is 'False'.+computeReachingConditions :: Seq.Seq (SV, SBVExpr) -> SV -> Map.Map SV [(SV, Bool)]+computeReachingConditions asgns outSV = go initMap (reverse $ F.toList asgns)+  where+    -- The output's reaching condition is True (empty conjunction)+    initMap = Map.singleton outSV []++    go condMap [] = condMap+    go condMap ((sv, SBVApp op args) : rest) =+      case Map.lookup sv condMap of+        Nothing -> go condMap rest  -- This SV doesn't contribute to the output+        Just rc ->+          let condMap' = case (op, args) of+                (Ite, [c, t, e]) ->+                  let condMapT = addReach t ((c, True)  : rc) condMap+                      condMapE = addReach e ((c, False) : rc) condMapT+                  in condMapE+                -- For AND: each arg is only relevant when the other is True+                (And, [a, b]) ->+                  let condMapA = addReach a ((b, True) : rc) condMap+                      condMapB = addReach b ((a, True) : rc) condMapA+                  in condMapB+                -- For OR: each arg is only relevant when the other is False+                (Or, [a, b]) ->+                  let condMapA = addReach a ((b, False) : rc) condMap+                      condMapB = addReach b ((a, False) : rc) condMapA+                  in condMapB+                _ -> foldl' (\m a -> addReach a rc m) condMap args+          in go condMap' rest++    -- Add a reaching condition to an SV. For shared nodes, keep the first condition found+    -- (most direct path from the output).+    addReach sv rc m = Map.insertWith (\_ old -> old) sv rc m++-- | Regular expressions can be compared for equality. Note that we diverge here from the equality+-- in the concrete sense; i.e., the Eq instance does not match the symbolic case. This is a bit unfortunate,+-- but unavoidable with the current design of how we "distinguish" operators. Hopefully shouldn't be a big deal,+-- though one should be careful.+instance EqSymbolic RegExp where+  r1 .== r2 = SBV $ SVal KBool $ Right $ cache r+    where r st = newExpr st KBool $ SBVApp (RegExOp (RegExEq r1 r2))  []++  r1 ./= r2 = SBV $ SVal KBool $ Right $ cache r+    where r st = newExpr st KBool $ SBVApp (RegExOp (RegExNEq r1 r2)) []++-- | Symbolic Numbers. This is a simple class that simply incorporates all number like+-- base types together, simplifying writing polymorphic type-signatures that work for all+-- symbolic numbers, such as 'SWord8', 'SInt8' etc. For instance, we can write a generic+-- list-minimum function as follows:+--+-- @+--    mm :: SIntegral a => [SBV a] -> SBV a+--    mm = foldr1 (\a b -> ite (a .<= b) a b)+-- @+--+-- It is similar to the standard 'Integral' class, except ranging over symbolic instances.+class (SymVal a, Num a, Num (SBV a), Bits a, Integral a) => SIntegral a++-- 'SIntegral' Instances, skips Real/Float/Bool+instance SIntegral Word8+instance SIntegral Word16+instance SIntegral Word32+instance SIntegral Word64+instance SIntegral Int8+instance SIntegral Int16+instance SIntegral Int32+instance SIntegral Int64+instance SIntegral Integer+instance (KnownNat n, BVIsNonZero n) => SIntegral (WordN n)+instance (KnownNat n, BVIsNonZero n) => SIntegral (IntN n)++-- | Zero extend a bit-vector.+zeroExtend :: forall n m bv. ( KnownNat n, BVIsNonZero n, SymVal (bv n)+                             , KnownNat m, BVIsNonZero m, SymVal (bv m)+                             , n + 1 <= m+                             , SIntegral (bv (m - n))+                             , BVIsNonZero (m - n)+                             ) => SBV (bv n)    -- ^ Input, of size @n@+                               -> SBV (bv m)    -- ^ Output, of size @m@. @n < m@ must hold+zeroExtend n = SBV $ svZeroExtend i (unSBV n)+  where nv = intOfProxy (Proxy @n)+        mv = intOfProxy (Proxy @m)+        i  = fromIntegral (mv - nv)++-- | Sign extend a bit-vector.+signExtend :: forall n m bv. ( KnownNat n, BVIsNonZero n, SymVal (bv n)+                             , KnownNat m, BVIsNonZero m, SymVal (bv m)+                             , n + 1 <= m+                             , SFiniteBits (bv n)+                             , SIntegral   (bv (m - n))+                             , BVIsNonZero (m - n)+                             ) => SBV (bv n)  -- ^ Input, of size @n@+                               -> SBV (bv m)  -- ^ Output, of size @m@. @n < m@ must hold+signExtend n = SBV $ svSignExtend i (unSBV n)+  where nv = intOfProxy (Proxy @n)+        mv = intOfProxy (Proxy @m)+        i  = fromIntegral (mv - nv)+++-- | Finite bit-length symbolic values. Essentially the same as 'SIntegral', but further leaves out 'Integer'. Loosely+-- based on Haskell's @FiniteBits@ class, but with more methods defined and structured differently to fit into the+-- symbolic world view. Minimal complete definition: 'sFiniteBitSize'.+class (Ord a, SymVal a, Num a, Num (SBV a), OrdSymbolic (SBV a), Bits a) => SFiniteBits a where+    -- | Bit size.+    sFiniteBitSize      :: SBV a -> Int+    -- | Least significant bit of a word, always stored at index 0.+    lsb                 :: SBV a -> SBool+    -- | Most significant bit of a word, always stored at the last position.+    msb                 :: SBV a -> SBool+    -- | Big-endian blasting of a word into its bits.+    blastBE             :: SBV a -> [SBool]+    -- | Little-endian blasting of a word into its bits.+    blastLE             :: SBV a -> [SBool]+    -- | Reconstruct from given bits, given in little-endian.+    fromBitsBE          :: [SBool] -> SBV a+    -- | Reconstruct from given bits, given in little-endian.+    fromBitsLE          :: [SBool] -> SBV a+    -- | Replacement for 'testBit', returning 'SBool' instead of 'Bool'.+    sTestBit            :: SBV a -> Int -> SBool+    -- | Variant of 'sTestBit', where we want to extract multiple bit positions.+    sExtractBits        :: SBV a -> [Int] -> [SBool]+    -- | Variant of 'popCount', returning a symbolic value.+    sPopCount           :: SBV a -> SWord8+    -- | A combo of 'setBit' and 'clearBit', when the bit to be set is symbolic.+    setBitTo            :: SBV a -> Int -> SBool -> SBV a+    -- | Variant of 'setBitTo' when the index is symbolic. If the index it out-of-bounds,+    -- then the result is underspecified.+    sSetBitTo           :: Integral a => SBV a -> SBV a -> SBool -> SBV a+    -- | Full adder, returns carry-out from the addition. Only for unsigned quantities.+    fullAdder           :: SBV a -> SBV a -> (SBool, SBV a)+    -- | Full multiplier, returns both high and low-order bits. Only for unsigned quantities.+    fullMultiplier      :: SBV a -> SBV a -> (SBV a, SBV a)+    -- | Count leading zeros in a word, big-endian interpretation.+    sCountLeadingZeros  :: SBV a -> SWord8+    -- | Count trailing zeros in a word, big-endian interpretation.+    sCountTrailingZeros :: SBV a -> SWord8++    {-# MINIMAL sFiniteBitSize #-}++    -- Default implementations+    lsb (SBV v) = SBV (svTestBit v 0)+    msb x       = sTestBit x (sFiniteBitSize x - 1)++    blastBE   = reverse . blastLE+    blastLE x = map (sTestBit x) [0 .. intSizeOf x - 1]++    fromBitsBE = fromBitsLE . reverse+    fromBitsLE bs+       | length bs /= w+       = error $ "SBV.SFiniteBits.fromBitsLE/BE: Expected: " ++ show w ++ " bits, received: " ++ show (length bs)+       | True+       = result+       where w = sFiniteBitSize result+             result = go 0 0 bs++             go !acc _  []     = acc+             go !acc !i (x:xs) = go (ite x (setBit acc i) acc) (i+1) xs++    sTestBit (SBV x) i = SBV (svTestBit x i)+    sExtractBits x     = map (sTestBit x)++    -- NB. 'sPopCount' returns an 'SWord8', which can overflow when used on quantities that have+    -- more than 255 bits. For the regular interface, this suffices for all types we support.+    -- For the Dynamic interface, if we ever implement this, this will fail for bit-vectors+    -- larger than that many bits. The alternative would be to return SInteger here, but that+    -- seems a total overkill for most use cases. If such is required, users are encouraged+    -- to define their own variants, which is rather easy.+    sPopCount x+      | Just v <- unliteral x = go 0 v+      | True                  = sum [ite b 1 0 | b <- blastLE x]+      where -- concrete case+            go !c 0 = c+            go !c w = go (c+1) (w .&. (w-1))++    setBitTo x i b = ite b (setBit x i) (clearBit x i)++    sSetBitTo x idx b+      | Just i <- unliteral idx, Just index <- safe i+      = setBitTo x index b+      | True+      = go x [0 .. sFiniteBitSize x - 1]+      where -- paranoia check: make sure index can fit in an int+            safe i = let asInteger   = toInteger i+                         asInt       = fromIntegral asInteger+                         backInteger = toInteger asInt+                     in if backInteger == asInteger+                        then Just asInt+                        else Nothing++            go v []     = v+            go v (i:is) = go (ite (idx .== literal (fromIntegral i)) (setBitTo v (fromIntegral i) b) v) is++    fullAdder a b+      | isSigned a = error "fullAdder: only works on unsigned numbers"+      | True       = (a .> s .|| b .> s, s)+      where s = a + b++    -- N.B. The higher-order bits are determined using a simple shift-add multiplier,+    -- thus involving bit-blasting. It'd be naive to expect SMT solvers to deal efficiently+    -- with properties involving this function, at least with the current state of the art.+    fullMultiplier a b+      | isSigned a = error "fullMultiplier: only works on unsigned numbers"+      | True       = (go (sFiniteBitSize a) 0 a, a*b)+      where go 0 p _ = p+            go n p x = let (c, p')  = ite (lsb x) (fullAdder p b) (sFalse, p)+                           (o, p'') = shiftIn c p'+                           (_, x')  = shiftIn o x+                       in go (n-1) p'' x'+            shiftIn k v = (lsb v, mask .|. (v `shiftR` 1))+               where mask = ite k (bit (sFiniteBitSize v - 1)) 0++    -- See the note for 'sPopCount' for a comment on why we return 'SWord8'+    sCountLeadingZeros x = fromIntegral m - go m+      where m = sFiniteBitSize x - 1++            -- NB. When i is 0 below, which happens when x is 0 as we count all the way down,+            -- we return -1, which is equal to 2^n-1, giving us: n-1-(2^n-1) = n-2^n = n, as required, i.e., the bit-size.+            go :: Int -> SWord8+            go i | i < 0 = i8+                 | True  = ite (sTestBit x i) i8 (go (i-1))+               where i8 = literal (fromIntegral i :: Word8)++    -- See the note for 'sPopCount' for a comment on why we return 'SWord8'+    sCountTrailingZeros x = go 0+       where m = sFiniteBitSize x++             go :: Int -> SWord8+             go i | i >= m = i8+                  | True   = ite (sTestBit x i) i8 (go (i+1))+                where i8 = literal (fromIntegral i :: Word8)++-- 'SFiniteBits' Instances, skips Real/Float/Bool/Integer+instance SFiniteBits Word8  where sFiniteBitSize _ =  8+instance SFiniteBits Word16 where sFiniteBitSize _ = 16+instance SFiniteBits Word32 where sFiniteBitSize _ = 32+instance SFiniteBits Word64 where sFiniteBitSize _ = 64+instance SFiniteBits Int8   where sFiniteBitSize _ =  8+instance SFiniteBits Int16  where sFiniteBitSize _ = 16+instance SFiniteBits Int32  where sFiniteBitSize _ = 32+instance SFiniteBits Int64  where sFiniteBitSize _ = 64+instance (KnownNat n, BVIsNonZero n) => SFiniteBits (WordN n) where sFiniteBitSize _ = intOfProxy (Proxy @n)+instance (KnownNat n, BVIsNonZero n) => SFiniteBits (IntN  n) where sFiniteBitSize _ = intOfProxy (Proxy @n)++-- | Returns 1 if the boolean is 'sTrue', otherwise 0.+oneIf :: (Ord a, Num (SBV a), SymVal a) => SBool -> SBV a+oneIf t = ite t 1 0++-- | Lift a pseudo-boolean op, performing checks+liftPB :: String -> PBOp -> [SBool] -> SBool+liftPB w o xs+  | Just e <- check o+  = error $ "SBV." ++ w ++ ": " ++ e+  | True+  = result+  where check (PB_AtMost  k) = pos k+        check (PB_AtLeast k) = pos k+        check (PB_Exactly k) = pos k+        check (PB_Le cs   k) = pos k `mplus` match cs+        check (PB_Ge cs   k) = pos k `mplus` match cs+        check (PB_Eq cs   k) = pos k `mplus` match cs++        pos k+          | k < 0 = Just $ "comparison value must be positive, received: " ++ show k+          | True  = Nothing++        match cs+          | any (< 0) cs = Just $ "coefficients must be non-negative. Received: " ++ show cs+          | lxs /= lcs   = Just $ "coefficient length must match number of arguments. Received: " ++ show (lcs, lxs)+          | True         = Nothing+          where lxs = length xs+                lcs = length cs++        result = SBV (SVal KBool (Right (cache r)))+        r st   = do xsv <- mapM (sbvToSV st) xs+                    -- PseudoBoolean's implicitly require support for integers, so make sure to register that kind!+                    registerKind st KUnbounded+                    newExpr st KBool (SBVApp (PseudoBoolean o) xsv)++-- | 'sTrue' if at most @k@ of the input arguments are 'sTrue'+pbAtMost :: [SBool] -> Int -> SBool+pbAtMost xs k+ | k < 0             = error $ "SBV.pbAtMost: Non-negative value required, received: " ++ show k+ | all isConcrete xs = literal $ sum (map (pbToInteger "pbAtMost" 1) xs) <= fromIntegral k+ | True              = liftPB "pbAtMost" (PB_AtMost k) xs++-- | 'sTrue' if at least @k@ of the input arguments are 'sTrue'+pbAtLeast :: [SBool] -> Int -> SBool+pbAtLeast xs k+ | k < 0             = error $ "SBV.pbAtLeast: Non-negative value required, received: " ++ show k+ | all isConcrete xs = literal $ sum (map (pbToInteger "pbAtLeast" 1) xs) >= fromIntegral k+ | True              = liftPB "pbAtLeast" (PB_AtLeast k) xs++-- | 'sTrue' if exactly @k@ of the input arguments are 'sTrue'+pbExactly :: [SBool] -> Int -> SBool+pbExactly xs k+ | k < 0             = error $ "SBV.pbExactly: Non-negative value required, received: " ++ show k+ | all isConcrete xs = literal $ sum (map (pbToInteger "pbExactly" 1) xs) == fromIntegral k+ | True              = liftPB "pbExactly" (PB_Exactly k) xs++-- | 'sTrue' if the sum of coefficients for 'sTrue' elements is at most @k@. Generalizes 'pbAtMost'.+pbLe :: [(Int, SBool)] -> Int -> SBool+pbLe xs k+ | k < 0                     = error $ "SBV.pbLe: Non-negative value required, received: " ++ show k+ | all (isConcrete . snd) xs = literal $ sum [pbToInteger "pbLe" c b | (c, b) <- xs] <= fromIntegral k+ | True                      = liftPB "pbLe" (PB_Le (map fst xs) k) (map snd xs)++-- | 'sTrue' if the sum of coefficients for 'sTrue' elements is at least @k@. Generalizes 'pbAtLeast'.+pbGe :: [(Int, SBool)] -> Int -> SBool+pbGe xs k+ | k < 0                     = error $ "SBV.pbGe: Non-negative value required, received: " ++ show k+ | all (isConcrete . snd) xs = literal $ sum [pbToInteger "pbGe" c b | (c, b) <- xs] >= fromIntegral k+ | True                      = liftPB "pbGe" (PB_Ge (map fst xs) k) (map snd xs)++-- | 'sTrue' if the sum of coefficients for 'sTrue' elements is exactly least @k@. Useful for coding+-- /exactly K-of-N/ constraints, and in particular mutex constraints.+pbEq :: [(Int, SBool)] -> Int -> SBool+pbEq xs k+ | k < 0                     = error $ "SBV.pbEq: Non-negative value required, received: " ++ show k+ | all (isConcrete . snd) xs = literal $ sum [pbToInteger "pbEq" c b | (c, b) <- xs] == fromIntegral k+ | True                      = liftPB "pbEq" (PB_Eq (map fst xs) k) (map snd xs)++-- | 'sTrue' if there is at most one set bit+pbMutexed :: [SBool] -> SBool+pbMutexed xs = pbAtMost xs 1++-- | 'sTrue' if there is exactly one set bit+pbStronglyMutexed :: [SBool] -> SBool+pbStronglyMutexed xs = pbExactly xs 1++-- | Convert a concrete pseudo-boolean to given int; converting to integer+pbToInteger :: String -> Int -> SBool -> Integer+pbToInteger w c b+ | c < 0                 = error $ "SBV." ++ w ++ ": Non-negative coefficient required, received: " ++ show c+ | Just v <- unliteral b = if v then fromIntegral c else 0+ | True                  = error $ "SBV.pbToInteger: Received a symbolic boolean: " ++ show (c, b)++-- | Predicate for optimizing word operations like (+) and (*).+isConcreteZero :: SBV a -> Bool+isConcreteZero (SBV (SVal _     (Left (CV _     (CInteger n))))) = n == 0+isConcreteZero (SBV (SVal KReal (Left (CV KReal (CAlgReal v))))) = isExactRational v && v == 0+isConcreteZero _                                                 = False++-- | Predicate for optimizing word operations like (+) and (*).+isConcreteOne :: SBV a -> Bool+isConcreteOne (SBV (SVal _     (Left (CV _     (CInteger 1))))) = True+isConcreteOne (SBV (SVal KReal (Left (CV KReal (CAlgReal v))))) = isExactRational v && v == 1+isConcreteOne _                                                 = False++-- | Symbolic exponentiation using bit blasting and repeated squaring.+--+-- N.B. The exponent must be unsigned/bounded if symbolic. Signed exponents will be rejected.+(.^) :: (Mergeable b, Num b, SIntegral e) => b -> SBV e -> b+b .^ e+  | isConcrete e, Just (x :: Integer) <- unliteral (sFromIntegral e)+  = if x >= 0 then let go n v+                        | n == 0 = 1+                        | even n =     go (n `div` 2) (v * v)+                        | True   = v * go (n `div` 2) (v * v)+                   in  go x b+              else error $ "(.^): exponentiation: negative exponent: " ++ show x+  | not (isBounded e) || isSigned e+  = error $ "(.^): exponentiation only works with unsigned bounded symbolic exponents, kind: " ++ show (kindOf e)+  | True+  =  -- NB. We can't simply use sTestBit and blastLE since they have SFiniteBit requirement+     -- but we want to have SIntegral here only.+     let SBV expt = e+         expBit i = SBV (svTestBit expt i)+         blasted  = map expBit [0 .. intSizeOf e - 1]+     in product $ zipWith (\use n -> ite use n 1)+                          blasted+                          (iterate (\x -> x*x) b)+infixr 8 .^++instance (Ord a, Num (SBV a), SymVal a, Fractional a) => Fractional (SBV a) where+  fromRational  = literal . fromRational+  SBV x / sy@(SBV y) | div0 = ite (sy .== 0) 0 res+                     | True = res+       where res  = SBV (svDivide x y)+             -- Identify those kinds where we have a div-0 equals 0 exception+             div0 = case kindOf sy of+                      KVar{}             -> error $ "Unexpected Fractional case for: " ++ show (kindOf sy)+                      KFloat             -> False+                      KDouble            -> False+                      KFP{}              -> False+                      KReal              -> True+                      KRational          -> True+                      -- Following cases should not happen since these types should *not* be instances of Fractional+                      k@KBounded{}  -> error $ "Unexpected Fractional case for: " ++ show k+                      k@KUnbounded  -> error $ "Unexpected Fractional case for: " ++ show k+                      k@KBool       -> error $ "Unexpected Fractional case for: " ++ show k+                      k@KString     -> error $ "Unexpected Fractional case for: " ++ show k+                      k@KChar       -> error $ "Unexpected Fractional case for: " ++ show k+                      k@KList{}     -> error $ "Unexpected Fractional case for: " ++ show k+                      k@KSet{}      -> error $ "Unexpected Fractional case for: " ++ show k+                      k@KApp{}      -> error $ "Unexpected Fractional case for: " ++ show k+                      k@KADT{}      -> error $ "Unexpected Fractional case for: " ++ show k+                      k@KTuple{}    -> error $ "Unexpected Fractional case for: " ++ show k+                      k@KArray{}    -> error $ "Unexpected Fractional case for: " ++ show k++-- | Define Floating instance on SBV's; only for base types that are already floating; i.e., 'SFloat', 'SDouble', and 'SReal'.+-- (See the separate definition below for 'SFloatingPoint'.)  Note that unless you use delta-sat via 'Data.SBV.Provers.dReal' on 'SReal', most+-- of the fields are "undefined" for symbolic values. We will add methods as they are supported by SMTLib. Currently, the+-- only symbolically available function in this class is 'sqrt' for 'SFloat', 'SDouble' and 'SFloatingPoint'.+instance (Ord a, Num (SBV a), SymVal a, Fractional a, Floating a) => Floating (SBV a) where+  pi      = fromRational . toRational $ (pi :: Double)+  exp     = lift1FNS "exp"     exp+  log     = lift1FNS "log"     log+  sqrt    = lift1F   FP_Sqrt   sqrt+  sin     = lift1FNS "sin"     sin+  cos     = lift1FNS "cos"     cos+  tan     = lift1FNS "tan"     tan+  asin    = lift1FNS "asin"    asin+  acos    = lift1FNS "acos"    acos+  atan    = lift1FNS "atan"    atan+  sinh    = lift1FNS "sinh"    sinh+  cosh    = lift1FNS "cosh"    cosh+  tanh    = lift1FNS "tanh"    tanh+  asinh   = lift1FNS "asinh"   asinh+  acosh   = lift1FNS "acosh"   acosh+  atanh   = lift1FNS "atanh"   atanh+  (**)    = lift2FNS "**"      (**)+  logBase = lift2FNS "logBase" logBase++unsupported :: String -> a+unsupported w = error $ "Data.SBV.FloatingPoint: Unsupported operation: " ++ w ++ ". Please request this as a feature!"++-- | We give a specific instance for 'SFloatingPoint', because the underlying floating-point type doesn't support+-- fromRational directly. The overlap with the above instance is unfortunate.+instance {-# OVERLAPPING #-} ValidFloat eb sb => Floating (SFloatingPoint eb sb) where+  -- Try from double; if there's enough precision this'll work, otherwise will bail out.+  pi+   | ei > 11 || si > 53 = unsupported $ "Floating.SFloatingPoint.pi (not-enough-precision for " ++ show (ei, si) ++ ")"+   | True               = literal $ FloatingPoint $ fpFromRational ei si (toRational (pi :: Double))+   where ei = intOfProxy (Proxy @eb)+         si = intOfProxy (Proxy @sb)++  -- Likewise, exponentiation is again limited to precision of double+  exp i+   | ei > 11 || si > 53 = unsupported $ "Floating.SFloatingPoint.exp (not-enough-precision for " ++ show (ei, si) ++ ")"+   | True               = literal e ** i+   where ei = intOfProxy (Proxy @eb)+         si = intOfProxy (Proxy @sb)+         e  = FloatingPoint $ fpFromRational ei si (toRational (exp 1 :: Double))++  log     = lift1FNS "log"     log+  sqrt    = lift1F   FP_Sqrt   sqrt+  sin     = lift1FNS "sin"     sin+  cos     = lift1FNS "cos"     cos+  tan     = lift1FNS "tan"     tan+  asin    = lift1FNS "asin"    asin+  acos    = lift1FNS "acos"    acos+  atan    = lift1FNS "atan"    atan+  sinh    = lift1FNS "sinh"    sinh+  cosh    = lift1FNS "cosh"    cosh+  tanh    = lift1FNS "tanh"    tanh+  asinh   = lift1FNS "asinh"   asinh+  acosh   = lift1FNS "acosh"   acosh+  atanh   = lift1FNS "atanh"   atanh+  (**)    = lift2FNS "**"      (**)+  logBase = lift2FNS "logBase" logBase++-- | Lift a 1 arg FP-op, using sRNE default+lift1F :: SymVal a => FPOp -> (a -> a) -> SBV a -> SBV a+lift1F w op a+  | Just v <- unliteral a+  = literal $ op v+  | True+  = SBV $ SVal k $ Right $ cache r+  where k    = kindOf a+        r st = do swa  <- sbvToSV st a+                  swm  <- sbvToSV st sRNE+                  newExpr st k (SBVApp (IEEEFP w) [swm, swa])++-- | Lift a float/double unary function, only over constants+lift1FNS :: (SymVal a, Floating a) => String -> (a -> a) -> SBV a -> SBV a+lift1FNS nm f sv+  | Just v <- unliteral sv = literal $ f v+  | True                   = error $ "SBV." ++ nm ++ ": not supported for symbolic values of type " ++ show (kindOf sv)++-- | Lift a float/double binary function, only over constants+lift2FNS :: (SymVal a, Floating a) => String -> (a -> a -> a) -> SBV a -> SBV a -> SBV a+lift2FNS nm f sv1 sv2+  | Just v1 <- unliteral sv1+  , Just v2 <- unliteral sv2 = literal $ f v1 v2+  | True                     = error $ "SBV." ++ nm ++ ": not supported for symbolic values of type " ++ show (kindOf sv1)++-- | SReal Floating instance, used in conjunction with the dReal solver for delta-satisfiability. Note that+-- we do not constant fold these values (except for pi), as Haskell doesn't really have any means of computing+-- them for arbitrary rationals.+instance {-# OVERLAPPING #-} Floating SReal where+  -- Should we support pi? It's a transcendental value, and our SReal type has no way of representing+  -- this quantity with the required fidelity. (SReal can only support roots of polynomials and rationals+  -- correctly, not transcendentals.) One option is to use an approximation here. But that goes against the+  -- whole idea of Real being infinitely precise. Another option is to see if the solver has support for it, such+  -- as CVC5, which has the constant real.pi. Alas, that has its problems: In models CVC5 uses real.pi as a+  -- model value, which we have no way of properly supporting back as a Haskell value. Worse: It uses it in+  -- expressions like 1 + real.pi, which we don't have an evaluator for. So, we simply say not supported.+  -- If you want it for reals, you'll have to plugin your own "approximation" for it, and thus be aware of the+  -- limitations of that choice.+  pi      = error $ unlines [ ""+                            , "*** Data.SBV.SReal: Cannot represent pi as an SReal value."+                            , "***"+                            , "*** Usual trick is to use an approximation if that suits your purpose,"+                            , "*** or use solver-specific constants when applicable. Please get in touch"+                            , "*** if you'd like to explore ideas here."+                            ]++  exp     = lift1SReal NR_Exp+  log     = lift1SReal NR_Log+  sqrt    = lift1SReal NR_Sqrt+  sin     = lift1SReal NR_Sin+  cos     = lift1SReal NR_Cos+  tan     = lift1SReal NR_Tan+  asin    = lift1SReal NR_ASin+  acos    = lift1SReal NR_ACos+  atan    = lift1SReal NR_ATan+  sinh    = lift1SReal NR_Sinh+  cosh    = lift1SReal NR_Cosh+  tanh    = lift1SReal NR_Tanh+  asinh   = error "Data.SBV.SReal: asinh is currently not supported. Please request this as a feature!"+  acosh   = error "Data.SBV.SReal: acosh is currently not supported. Please request this as a feature!"+  atanh   = error "Data.SBV.SReal: atanh is currently not supported. Please request this as a feature!"+  (**)    = lift2SReal NR_Pow++  logBase x y = log y  / log x++-- | Lift an sreal unary function+lift1SReal :: NROp -> SReal -> SReal+lift1SReal w a = SBV $ SVal k $ Right $ cache r+  where k    = kindOf a+        r st = do swa <- sbvToSV st a+                  newExpr st k (SBVApp (NonLinear w) [swa])++-- | Lift an sreal binary function+lift2SReal :: NROp -> SReal -> SReal -> SReal+lift2SReal w a b = SBV $ SVal k $ Right $ cache r+  where k    = kindOf a+        r st = do swa <- sbvToSV st a+                  swb <- sbvToSV st b+                  newExpr st k (SBVApp (NonLinear w) [swa, swb])++-- Bail out nicely.+noEquals :: String -> String -> (String, String) -> a+noEquals o n (l, r) = error $ unlines [ ""+                                      , "*** Data.SBV: Comparing symbolic values using Haskell's Eq class!"+                                      , "***"+                                      , "*** Received:    (" ++ l ++ ")  " ++ o ++ " (" ++ r ++ ")"+                                      , "*** Instead use: (" ++ l ++ ") "  ++ n ++ " (" ++ r ++ ")"+                                      , "***"+                                      , "*** The Eq instance for symbolic values are necessiated only because"+                                      , "*** of the Bits class requirement. You must use symbolic equality"+                                      , "*** operators instead. (And complain to Haskell folks that they"+                                      , "*** remove the 'Eq' superclass from 'Bits'!.)"+                                      ]++-- | This instance is only defined so that we can define an instance for+-- 'Data.Bits.Bits'. '==' and '/=' simply throw an error. Use+-- 'Data.SBV.EqSymbolic' instead.+instance SymVal a => Eq (SBV a) where+  a == b = fromMaybe (noEquals "==" ".==" (show a, show b)) (unliteral (a .== b))+  a /= b = fromMaybe (noEquals "/=" "./=" (show a, show b)) (unliteral (a ./= b))++-- NB. In the optimizations below, use of -1 is valid as+-- -1 has all bits set to True for both signed and unsigned values+-- | Using 'popCount' or 'testBit' on non-concrete values will result in an+-- error. Use 'sPopCount' or 'sTestBit' instead.+instance (Ord a, Num (SBV a), Num a, Bits a, SymVal a) => Bits (SBV a) where+  SBV x .&. SBV y    = SBV (svAnd x y)+  SBV x .|. SBV y    = SBV (svOr x y)+  SBV x `xor` SBV y  = SBV (svXOr x y)+  complement (SBV x) = SBV (svNot x)+  bitSize  x         = intSizeOf x+  bitSizeMaybe x     = Just $ intSizeOf x+  isSigned x         = hasSign x+  bit i              = 1 `shiftL` i+  setBit        x i  = x .|. genLiteral (kindOf x) (bit i :: Integer)+  clearBit      x i  = x .&. genLiteral (kindOf x) (complement (bit i) :: Integer)+  complementBit x i  = x `xor` genLiteral (kindOf x) (bit i :: Integer)+  shiftL  (SBV x) i  = SBV (svShl x i)+  shiftR  (SBV x) i  = SBV (svShr x i)+  rotateL (SBV x) i  = SBV (svRol x i)+  rotateR (SBV x) i  = SBV (svRor x i)+  -- NB. testBit is *not* implementable on non-concrete symbolic words+  x `testBit` i+    | SBV (SVal _ (Left (CV _ (CInteger n)))) <- x+    = testBit n i+    | True+    = error $ "SBV.testBit: Called on symbolic value: " ++ show x ++ ". Use sTestBit instead."+  -- NB. popCount is *not* implementable on non-concrete symbolic words+  popCount x+    | SBV (SVal _ (Left (CV (KBounded _ w) (CInteger n)))) <- x+    = popCount (n .&. (bit w - 1))+    | True+    = error $ "SBV.popCount: Called on symbolic value: " ++ show x ++ ". Use sPopCount instead."++-- | Conversion between integral-symbolic values, akin to Haskell's `fromIntegral`+sFromIntegral :: forall a b. (Integral a, HasKind a, Num a, SymVal a, HasKind b, Num b, SymVal b) => SBV a -> SBV b+sFromIntegral x+  | kFrom == kTo+  = SBV (unSBV x)+  | isReal x+  = error "SBV.sFromIntegral: Called on a real value" -- can't really happen due to types, but being overcautious+  | Just v <- unliteral x+  = literal (fromIntegral v)+  | True+  = result+  where result = SBV (SVal kTo (Right (cache y)))+        kFrom  = kindOf x+        kTo    = kindOf (Proxy @b)+        y st   = do xsv <- sbvToSV st x+                    newExpr st kTo (SBVApp (KindCast kFrom kTo) [xsv])++-- | Lift a binary operation thru its dynamic counterpart. Note that+-- we still want the actual functions here as differ in their type+-- compared to their dynamic counterparts, but the implementations+-- are the same.+liftViaSVal :: (SVal -> SVal -> SVal) -> SBV a -> SBV b -> SBV c+liftViaSVal f (SBV a) (SBV b) = SBV $ f a b++-- | Generalization of 'shiftL', when the shift-amount is symbolic. Since Haskell's+-- 'shiftL' only takes an 'Int' as the shift amount, it cannot be used when we have+-- a symbolic amount to shift with.+sShiftLeft :: (SIntegral a, SIntegral b) => SBV a -> SBV b -> SBV a+sShiftLeft = liftViaSVal svShiftLeft++-- | Generalization of 'shiftR', when the shift-amount is symbolic. Since Haskell's+-- 'shiftR' only takes an 'Int' as the shift amount, it cannot be used when we have+-- a symbolic amount to shift with.+--+-- NB. If the shiftee is signed, then this is an arithmetic shift; otherwise it's logical,+-- following the usual Haskell convention. See 'sSignedShiftArithRight' for a variant+-- that explicitly uses the msb as the sign bit, even for unsigned underlying types.+sShiftRight :: (SIntegral a, SIntegral b) => SBV a -> SBV b -> SBV a+sShiftRight = liftViaSVal svShiftRight++-- | Arithmetic shift-right with a symbolic unsigned shift amount. This is equivalent+-- to 'sShiftRight' when the argument is signed. However, if the argument is unsigned,+-- then it explicitly treats its msb as a sign-bit, and uses it as the bit that+-- gets shifted in. Useful when using the underlying unsigned bit representation to implement+-- custom signed operations. Note that there is no direct Haskell analogue of this function.+sSignedShiftArithRight:: (SFiniteBits a, SIntegral b) => SBV a -> SBV b -> SBV a+sSignedShiftArithRight x i+  | isSigned i = error "sSignedShiftArithRight: shift amount should be unsigned"+  | isSigned x = ssa x i+  | True       = ite (msb x)+                     (complement (ssa (complement x) i))+                     (ssa x i)+  where ssa = liftViaSVal svShiftRight++-- | Generalization of 'rotateL', when the shift-amount is symbolic. Since Haskell's+-- 'rotateL' only takes an 'Int' as the shift amount, it cannot be used when we have+-- a symbolic amount to shift with. The first argument should be a bounded quantity.+sRotateLeft :: (SIntegral a, SIntegral b) => SBV a -> SBV b -> SBV a+sRotateLeft = liftViaSVal svRotateLeft++-- | An implementation of rotate-left, using a barrel shifter like design. Only works when both+-- arguments are finite bit-vectors, and furthermore when the second argument is unsigned.+-- The first condition is enforced by the type, but the second is dynamically checked.+-- We provide this implementation as an alternative to `sRotateLeft` since SMTLib logic+-- does not support variable argument rotates (as opposed to shifts), and thus this+-- implementation can produce better code for verification compared to `sRotateLeft`.+sBarrelRotateLeft :: (SFiniteBits a, SFiniteBits b) => SBV a -> SBV b -> SBV a+sBarrelRotateLeft = liftViaSVal svBarrelRotateLeft++-- | Generalization of 'rotateR', when the shift-amount is symbolic. Since Haskell's+-- 'rotateR' only takes an 'Int' as the shift amount, it cannot be used when we have+-- a symbolic amount to shift with. The first argument should be a bounded quantity.+sRotateRight :: (SIntegral a, SIntegral b) => SBV a -> SBV b -> SBV a+sRotateRight = liftViaSVal svRotateRight++-- | An implementation of rotate-right, using a barrel shifter like design. See comments+-- for `sBarrelRotateLeft` for details.+sBarrelRotateRight :: (SFiniteBits a, SFiniteBits b) => SBV a -> SBV b -> SBV a+sBarrelRotateRight = liftViaSVal svBarrelRotateRight++-- | Capturing non-matching instances for better error messages, conversions from sized+type FromSizedErr (arg :: Type) =     'Text "fromSized: Cannot convert from type: " ':<>: 'ShowType arg+                                ':$$: 'Text "           Source type must be one of SInt N, SWord N, IntN N, WordN N"+                                ':$$: 'Text "           where N is 8, 16, 32, or 64."++-- | Capturing non-matching instances for better error messages, conversions to sized+type ToSizedErr (arg :: Type) =      'Text "toSized: Cannot convert from type: " ':<>: 'ShowType arg+                              ':$$: 'Text "          Source type must be one of Int8/16/32/64"+                              ':$$: 'Text "                                  OR Word8/16/32/64"+                              ':$$: 'Text "                                  OR their symbolic variants."++-- | Capture the correspondence between sized and fixed-sized BVs+type family FromSized (t :: Type) :: Type where+   FromSized (WordN  8) = Word8+   FromSized (WordN 16) = Word16+   FromSized (WordN 32) = Word32+   FromSized (WordN 64) = Word64+   FromSized (IntN   8) = Int8+   FromSized (IntN  16) = Int16+   FromSized (IntN  32) = Int32+   FromSized (IntN  64) = Int64+   FromSized (SWord  8) = SWord8+   FromSized (SWord 16) = SWord16+   FromSized (SWord 32) = SWord32+   FromSized (SWord 64) = SWord64+   FromSized (SInt   8) = SInt8+   FromSized (SInt  16) = SInt16+   FromSized (SInt  32) = SInt32+   FromSized (SInt  64) = SInt64++-- | Capture the correspondence, in terms of a constraint+type family FromSizedCstr (t :: Type) :: Constraint where+   FromSizedCstr (WordN  8) = ()+   FromSizedCstr (WordN 16) = ()+   FromSizedCstr (WordN 32) = ()+   FromSizedCstr (WordN 64) = ()+   FromSizedCstr (IntN   8) = ()+   FromSizedCstr (IntN  16) = ()+   FromSizedCstr (IntN  32) = ()+   FromSizedCstr (IntN  64) = ()+   FromSizedCstr (SWord  8) = ()+   FromSizedCstr (SWord 16) = ()+   FromSizedCstr (SWord 32) = ()+   FromSizedCstr (SWord 64) = ()+   FromSizedCstr (SInt   8) = ()+   FromSizedCstr (SInt  16) = ()+   FromSizedCstr (SInt  32) = ()+   FromSizedCstr (SInt  64) = ()+   FromSizedCstr arg        = TypeError (FromSizedErr arg)++-- | Conversion from a sized BV to a fixed-sized bit-vector.+class FromSizedBV a where+   -- | Convert a sized bit-vector to the corresponding fixed-sized bit-vector,+   -- for instance 'SWord 16' to 'SWord16'. See also 'toSized'.+   fromSized :: a -> FromSized a++   default fromSized :: (Num (FromSized a), Integral a) => a -> FromSized a+   fromSized = fromIntegral++instance {-# OVERLAPPING  #-} FromSizedBV (WordN   8)+instance {-# OVERLAPPING  #-} FromSizedBV (WordN  16)+instance {-# OVERLAPPING  #-} FromSizedBV (WordN  32)+instance {-# OVERLAPPING  #-} FromSizedBV (WordN  64)+instance {-# OVERLAPPING  #-} FromSizedBV (IntN    8)+instance {-# OVERLAPPING  #-} FromSizedBV (IntN   16)+instance {-# OVERLAPPING  #-} FromSizedBV (IntN   32)+instance {-# OVERLAPPING  #-} FromSizedBV (IntN   64)+instance {-# OVERLAPPING  #-} FromSizedBV (SWord   8) where fromSized = sFromIntegral+instance {-# OVERLAPPING  #-} FromSizedBV (SWord  16) where fromSized = sFromIntegral+instance {-# OVERLAPPING  #-} FromSizedBV (SWord  32) where fromSized = sFromIntegral+instance {-# OVERLAPPING  #-} FromSizedBV (SWord  64) where fromSized = sFromIntegral+instance {-# OVERLAPPING  #-} FromSizedBV (SInt    8) where fromSized = sFromIntegral+instance {-# OVERLAPPING  #-} FromSizedBV (SInt   16) where fromSized = sFromIntegral+instance {-# OVERLAPPING  #-} FromSizedBV (SInt   32) where fromSized = sFromIntegral+instance {-# OVERLAPPING  #-} FromSizedBV (SInt   64) where fromSized = sFromIntegral+instance {-# OVERLAPPABLE #-} FromSizedCstr arg => FromSizedBV arg where fromSized = error "unreachable"++-- | Capture the correspondence between fixed-sized and sized BVs+type family ToSized (t :: Type) :: Type where+   ToSized Word8   = WordN  8+   ToSized Word16  = WordN 16+   ToSized Word32  = WordN 32+   ToSized Word64  = WordN 64+   ToSized Int8    = IntN   8+   ToSized Int16   = IntN  16+   ToSized Int32   = IntN  32+   ToSized Int64   = IntN  64+   ToSized SWord8  = SWord  8+   ToSized SWord16 = SWord 16+   ToSized SWord32 = SWord 32+   ToSized SWord64 = SWord 64+   ToSized SInt8   = SInt   8+   ToSized SInt16  = SInt  16+   ToSized SInt32  = SInt  32+   ToSized SInt64  = SInt  64++-- | Capture the correspondence in terms of a constraint+type family ToSizedCstr (t :: Type) :: Constraint where+   ToSizedCstr Word8   = ()+   ToSizedCstr Word16  = ()+   ToSizedCstr Word32  = ()+   ToSizedCstr Word64  = ()+   ToSizedCstr Int8    = ()+   ToSizedCstr Int16   = ()+   ToSizedCstr Int32   = ()+   ToSizedCstr Int64   = ()+   ToSizedCstr SWord8  = ()+   ToSizedCstr SWord16 = ()+   ToSizedCstr SWord32 = ()+   ToSizedCstr SWord64 = ()+   ToSizedCstr SInt8   = ()+   ToSizedCstr SInt16  = ()+   ToSizedCstr SInt32  = ()+   ToSizedCstr SInt64  = ()+   ToSizedCstr arg     = TypeError (ToSizedErr arg)++-- | Conversion from a fixed-sized BV to a sized bit-vector.+class ToSizedBV a where+   -- | Convert a fixed-sized bit-vector to the corresponding sized bit-vector,+   -- for instance 'SWord16' to 'SWord 16'. See also 'fromSized'.+   toSized :: a -> ToSized a++   default toSized :: (Num (ToSized a), Integral a) => (a -> ToSized a)+   toSized = fromIntegral++instance {-# OVERLAPPING  #-} ToSizedBV Word8+instance {-# OVERLAPPING  #-} ToSizedBV Word16+instance {-# OVERLAPPING  #-} ToSizedBV Word32+instance {-# OVERLAPPING  #-} ToSizedBV Word64+instance {-# OVERLAPPING  #-} ToSizedBV Int8+instance {-# OVERLAPPING  #-} ToSizedBV Int16+instance {-# OVERLAPPING  #-} ToSizedBV Int32+instance {-# OVERLAPPING  #-} ToSizedBV Int64+instance {-# OVERLAPPING  #-} ToSizedBV SWord8  where toSized = sFromIntegral+instance {-# OVERLAPPING  #-} ToSizedBV SWord16 where toSized = sFromIntegral+instance {-# OVERLAPPING  #-} ToSizedBV SWord32 where toSized = sFromIntegral+instance {-# OVERLAPPING  #-} ToSizedBV SWord64 where toSized = sFromIntegral+instance {-# OVERLAPPING  #-} ToSizedBV SInt8   where toSized = sFromIntegral+instance {-# OVERLAPPING  #-} ToSizedBV SInt16  where toSized = sFromIntegral+instance {-# OVERLAPPING  #-} ToSizedBV SInt32  where toSized = sFromIntegral+instance {-# OVERLAPPING  #-} ToSizedBV SInt64  where toSized = sFromIntegral+instance {-# OVERLAPPABLE #-} ToSizedCstr arg => ToSizedBV arg where toSized = error "unreachable"++-- | The 'SDivisible' class captures the essence of division.+-- Unfortunately we cannot use Haskell's 'Integral' class since the 'Real'+-- and 'Enum' superclasses are not implementable for symbolic bit-vectors.+-- However, 'quotRem' and 'divMod' both make perfect sense, and the 'SDivisible' class captures+-- this operation. One issue is how division by 0 behaves. The verification+-- technology requires total functions, and there are several design choices+-- here. We follow Isabelle/HOL approach of assigning the value 0 for division+-- by 0. Therefore, we impose the following pair of laws:+--+-- @+--      x `sQuotRem` 0 = (0, x)+--      x `sDivMod`  0 = (0, x)+-- @+--+-- Note that our instances implement this law even when @x@ is @0@ itself.+--+-- NB. 'quot' truncates toward zero, while 'div' truncates toward negative infinity.+--+-- === C code generation of division operations+--+-- In the case of division or modulo of a minimal signed value (e.g. @-128@ for+-- 'SInt8') by @-1@, SMTLIB and Haskell agree on what the result should be.+-- Unfortunately the result in C code depends on CPU architecture and compiler+-- settings, as this is undefined behaviour in C.  **SBV does not guarantee**+-- what will happen in generated C code in this corner case.+class SDivisible a where+  sQuotRem :: a -> a -> (a, a)+  sDivMod  :: a -> a -> (a, a)+  sQuot    :: a -> a -> a+  sRem     :: a -> a -> a+  sDiv     :: a -> a -> a+  sMod     :: a -> a -> a++  {-# MINIMAL sQuotRem, sDivMod #-}++  x `sQuot` y = fst $ x `sQuotRem` y+  x `sRem`  y = snd $ x `sQuotRem` y+  x `sDiv`  y = fst $ x `sDivMod`  y+  x `sMod`  y = snd $ x `sDivMod`  y++instance SDivisible Word64 where+  sQuotRem x 0 = (0, x)+  sQuotRem x y = x `quotRem` y+  sDivMod  x 0 = (0, x)+  sDivMod  x y = x `divMod` y++instance SDivisible Int64 where+  sQuotRem x 0 = (0, x)+  sQuotRem x y = x `quotRem` y+  sDivMod  x 0 = (0, x)+  sDivMod  x y = x `divMod` y++instance SDivisible Word32 where+  sQuotRem x 0 = (0, x)+  sQuotRem x y = x `quotRem` y+  sDivMod  x 0 = (0, x)+  sDivMod  x y = x `divMod` y++instance SDivisible Int32 where+  sQuotRem x 0 = (0, x)+  sQuotRem x y = x `quotRem` y+  sDivMod  x 0 = (0, x)+  sDivMod  x y = x `divMod` y++instance SDivisible Word16 where+  sQuotRem x 0 = (0, x)+  sQuotRem x y = x `quotRem` y+  sDivMod  x 0 = (0, x)+  sDivMod  x y = x `divMod` y++instance SDivisible Int16 where+  sQuotRem x 0 = (0, x)+  sQuotRem x y = x `quotRem` y+  sDivMod  x 0 = (0, x)+  sDivMod  x y = x `divMod` y++instance SDivisible Word8 where+  sQuotRem x 0 = (0, x)+  sQuotRem x y = x `quotRem` y+  sDivMod  x 0 = (0, x)+  sDivMod  x y = x `divMod` y++instance SDivisible Int8 where+  sQuotRem x 0 = (0, x)+  sQuotRem x y = x `quotRem` y+  sDivMod  x 0 = (0, x)+  sDivMod  x y = x `divMod` y++instance SDivisible Integer where+  sQuotRem x 0 = (0, x)+  sQuotRem x y = x `quotRem` y+  sDivMod  x 0 = (0, x)+  sDivMod  x y = x `divMod` y++instance SDivisible CV where+  sQuotRem a b+    | CInteger x <- cvVal a, CInteger y <- cvVal b+    = let (r1, r2) = sQuotRem x y in (normCV a{ cvVal = CInteger r1 }, normCV b{ cvVal = CInteger r2 })+  sQuotRem a b = error $ "SBV.sQuotRem: impossible, unexpected args received: " ++ show (a, b)+  sDivMod a b+    | CInteger x <- cvVal a, CInteger y <- cvVal b+    = let (r1, r2) = sDivMod x y in (normCV a{ cvVal = CInteger r1 }, normCV b{ cvVal = CInteger r2 })+  sDivMod a b = error $ "SBV.sDivMod: impossible, unexpected args received: " ++ show (a, b)++instance SDivisible SWord64 where {sQuotRem = liftQRem; sDivMod  = liftDMod}+instance SDivisible SWord32 where {sQuotRem = liftQRem; sDivMod  = liftDMod}+instance SDivisible SWord16 where {sQuotRem = liftQRem; sDivMod  = liftDMod}+instance SDivisible SWord8  where {sQuotRem = liftQRem; sDivMod  = liftDMod}+instance SDivisible SInt64  where {sQuotRem = liftQRem; sDivMod  = liftDMod}+instance SDivisible SInt32  where {sQuotRem = liftQRem; sDivMod  = liftDMod}+instance SDivisible SInt16  where {sQuotRem = liftQRem; sDivMod  = liftDMod}+instance SDivisible SInt8   where {sQuotRem = liftQRem; sDivMod  = liftDMod}++-- | 'SDivisible' instance for 'WordN'+instance (KnownNat n, BVIsNonZero n) => SDivisible (WordN n) where+  sQuotRem x 0 = (0, x)+  sQuotRem x y = x `quotRem` y+  sDivMod  x 0 = (0, x)+  sDivMod  x y = x `divMod` y++-- | 'SDivisible' instance for 'IntN'+instance (KnownNat n, BVIsNonZero n) => SDivisible (IntN n) where+  sQuotRem x 0 = (0, x)+  sQuotRem x y = x `quotRem` y+  sDivMod  x 0 = (0, x)+  sDivMod  x y = x `divMod` y++-- | 'SDivisible' instance for 'SWord'+instance (KnownNat n, BVIsNonZero n) => SDivisible (SWord n) where+  sQuotRem = liftQRem+  sDivMod  = liftDMod++-- | 'SDivisible' instance for 'SInt'+instance (KnownNat n, BVIsNonZero n) => SDivisible (SInt n) where+  sQuotRem = liftQRem+  sDivMod  = liftDMod++-- | Does the concrete positive number n divide the given integer?+sDivides :: Integer -> SInteger -> SBool+sDivides n v+  | n < 0+  = error $ "svDivides: First argument must be a strictly positive integer. Received: " ++ show n+  | Just x <- unliteral v+  = if x `mod` n == 0 then sTrue else sFalse+  | True+  = SBV $ svDivides n (unSBV v)++-- | Lift 'quotRem' to symbolic words. Division by 0 is defined s.t. @x/0 = 0@; which+-- holds even when @x@ is @0@ itself.+liftQRem :: (Eq a, SymVal a) => SBV a -> SBV a -> (SBV a, SBV a)+liftQRem x y+  | isConcreteZero x+  = (x, x)+  | isConcreteOne y+  = (x, z)+{-------------------------------+ - N.B. The seemingly innocuous variant when y == -1 only holds if the type is signed;+ - and also is problematic around the minBound.. So, we refrain from that optimization+  | isConcreteOnes y+  = (-x, z)+--------------------------------}+  | True+  = ite (y .== z) (z, x) (qr x y)+  where qr (SBV (SVal sgnsz (Left a))) (SBV (SVal _ (Left b))) = let (q, r) = sQuotRem a b in (SBV (SVal sgnsz (Left q)), SBV (SVal sgnsz (Left r)))+        qr a@(SBV (SVal sgnsz _))      b                       = (SBV (SVal sgnsz (Right (cache (mk Quot)))), SBV (SVal sgnsz (Right (cache (mk Rem)))))+                where mk o st = do sw1 <- sbvToSV st a+                                   sw2 <- sbvToSV st b+                                   mkSymOp o st sgnsz sw1 sw2+        z = genLiteral (kindOf x) (0::Integer)++-- | Lift 'divMod' to symbolic words. Division by 0 is defined s.t. @x/0 = 0@; which+-- holds even when @x@ is @0@ itself. Essentially, this is conversion from quotRem+-- (truncate to 0) to divMod (truncate towards negative infinity)+liftDMod :: (Ord a, SymVal a, Num a, Num (SBV a), SDivisible (SBV a)) => SBV a -> SBV a -> (SBV a, SBV a)+liftDMod x y+  | isConcreteZero x+  = (x, x)+  | isConcreteOne y+  = (x, z)+{-------------------------------+ - N.B. The seemingly innocuous variant when y == -1 only holds if the type is signed;+ - and also is problematic around the minBound.. So, we refrain from that optimization+  | isConcreteOnes y+  = (-x, z)+--------------------------------}+  | True+  = ite (y .== z) (z, x) $ ite (signum r .== negate (signum y)) (q-i, r+y) qr+ where qr@(q, r) = x `sQuotRem` y+       z = genLiteral (kindOf x) (0::Integer)+       i = genLiteral (kindOf x) (1::Integer)++-- SInteger instance for quotRem/divMod are tricky!+-- SMT-Lib only has Euclidean operations, but Haskell+-- uses "truncate to 0" for quotRem, and "truncate to negative infinity" for divMod.+-- So, we cannot just use the above liftings directly.+instance SDivisible SInteger where+  sDivMod x y = ite (y .> 0) (sEDivMod x y) (liftDMod x y)+  sQuotRem x y+    | not (isSymbolic x || isSymbolic y)+    = liftQRem x y+    | True+    = ite (y .== 0) (0, x) (qE+i, rE-i*y)+    where (qE, rE) = liftQRem x y   -- for integers, this is euclidean due to SMTLib semantics+          i = ite (x .>= 0 .|| rE .== 0) 0+            $ ite (y .>  0)              1 (-1)++-- | Euclidian division and modulus.+sEDivMod :: SInteger -> SInteger -> (SInteger, SInteger)+sEDivMod a b = (a `sEDiv` b, a `sEMod` b)++-- | Euclidian division. Note that unlike regular division, Euclidian division by @0@+-- is unconstrained. i.e., it can take any value whatsoever.+sEDiv :: SInteger -> SInteger -> SInteger+sEDiv (SBV a) (SBV b) = SBV $ a `svQuot` b++-- | Euclidian modulus. Note that unlike regular modulus, Euclidian division by @0@+-- is unconstrained. i.e., it can take any value whatsoever.+sEMod :: SInteger -> SInteger -> SInteger+sEMod (SBV a) (SBV b) = SBV $ a `svRem` b++-- Quickcheck interface+instance (SymVal a, Arbitrary a) => Arbitrary (SBV a) where+  arbitrary = literal <$> arbitrary++-- |  Symbolic conditionals are modeled by the 'Mergeable' class, describing+-- how to merge the results of an if-then-else call with a symbolic test. SBV+-- provides all basic types as instances of this class, so users only need+-- to declare instances for custom data-types of their programs as needed.+--+-- A 'Mergeable' instance may be automatically derived for a custom data-type+-- with a single constructor where the type of each field is an instance of+-- 'Mergeable', such as a record of symbolic values. Users only need to add+-- 'G.Generic' and 'Mergeable' to the @deriving@ clause for the data-type. See+-- 'Documentation.SBV.Examples.Puzzles.U2Bridge.Status' for an example and an+-- illustration of what the instance would look like if written by hand.+--+-- The function 'select' is a total-indexing function out of a list of choices+-- with a default value, simulating array/list indexing. It's an n-way generalization+-- of the 'ite' function.+--+-- Minimal complete definition: None, if the type is instance of @Generic@. Otherwise+-- 'symbolicMerge'. Note that most types subject to merging are likely to be+-- trivial instances of @Generic@.+class Mergeable a where+   -- | Merge two values based on the condition. The first argument states+   -- whether we force the then-and-else branches before the merging, at the+   -- word level. This is an efficiency concern; one that we'd rather not+   -- make but unfortunately necessary for getting symbolic simulation+   -- working efficiently.+   symbolicMerge :: Bool -> SBool -> a -> a -> a++   -- | Total indexing operation. @select xs default index@ is intuitively+   -- the same as @xs !! index@, except it evaluates to @default@ if @index@+   -- underflows/overflows.+   select :: (Ord b, SymVal b, Num b, Num (SBV b), OrdSymbolic (SBV b)) => [a] -> a -> SBV b -> a++   -- NB. Earlier implementation of select used the binary-search trick+   -- on the index to chop down the search space. While that is a good trick+   -- in general, it doesn't work for SBV since we do not have any notion of+   -- "concrete" subwords: If an index is symbolic, then all its bits are+   -- symbolic as well. So, the binary search only pays off only if the indexed+   -- list is really humongous, which is not very common in general. (Also,+   -- for the case when the list is bit-vectors, we use SMT tables anyhow.)+   select xs err ind+    | isReal   ind = bad "real"+    | isFloat  ind = bad "float"+    | isDouble ind = bad "double"+    | hasSign  ind = ite (ind .< 0) err (walk xs ind err)+    | True         =                     walk xs ind err+    where bad w = error $ "SBV.select: unsupported " ++ w ++ " valued select/index expression"+          walk []     _ acc = acc+          walk (e:es) i acc = walk es (i-1) (ite (i .== 0) e acc)++   -- Default implementation for 'symbolicMerge' if the type is 'Generic'+   default symbolicMerge :: (G.Generic a, GMergeable (G.Rep a)) => Bool -> SBool -> a -> a -> a+   symbolicMerge = symbolicMergeDefault++-- | If-then-else. This is by definition 'symbolicMerge' with both+-- branches forced. This is typically the desired behavior, but also+-- see 'iteLazy' should you need more laziness.+ite :: Mergeable a => SBool -> a -> a -> a+ite t a b+  | Just r <- unliteral t = if r then a else b+  | True                  = symbolicMerge True t a b++-- | A Lazy version of ite, which does not force its arguments. This might+-- cause issues for symbolic simulation with large thunks around, so use with+-- care.+iteLazy :: Mergeable a => SBool -> a -> a -> a+iteLazy t a b+  | Just r <- unliteral t = if r then a else b+  | True                  = symbolicMerge False t a b++-- | Symbolic assert. Check that the given boolean condition is always 'sTrue' in the given path. The+-- optional first argument can be used to provide call-stack info via GHC's location facilities.+sAssert :: HasKind a => Maybe CallStack -> String -> SBool -> SBV a -> SBV a+sAssert cs msg cond x+   | Just mustHold <- unliteral cond+   = if mustHold+     then x+     else error $ show $ SafeResult (locInfo . getCallStack <$> cs, msg, Satisfiable defaultSMTCfg (SMTModel [] Nothing [] []))+   | True+   = SBV $ SVal k $ Right $ cache r+  where k     = kindOf x+        r st  = do xsv <- sbvToSV st x+                   let pc = getPathCondition st+                       -- We're checking if there are any cases where the path-condition holds, but not the condition+                       -- Any violations of this, should be signaled, i.e., whenever the following formula is satisfiable+                       mustNeverHappen = pc .&& sNot cond+                   cnd <- sbvToSV st mustNeverHappen+                   addAssertion st cs msg cnd+                   pure xsv++        locInfo ps = intercalate ",\n " (map loc ps)+          where loc (f, sl) = concat [srcLocFile sl, ":", show (srcLocStartLine sl), ":", show (srcLocStartCol sl), ":", f]++-- | Merge two symbolic values, at kind @k@, possibly @force@'ing the branches to make+-- sure they do not evaluate to the same result. This should only be used for internal purposes;+-- as default definitions provided should suffice in many cases. (i.e., End users should+-- only need to define 'symbolicMerge' when needed; which should be rare to start with.)+symbolicMergeWithKind :: Kind -> Bool -> SBool -> SBV a -> SBV a -> SBV a+symbolicMergeWithKind k force (SBV t) (SBV a) (SBV b) = SBV (svSymbolicMerge k force t a b)++instance SymVal a => Mergeable (SBV a) where+    symbolicMerge force t x y+    -- Carefully use the kindOf instance to avoid strictness issues.+       | force = symbolicMergeWithKind (kindOf x)          True  t x y+       | True  = symbolicMergeWithKind (kindOf (Proxy @a)) False t x y+    -- Custom version of select that translates to SMT-Lib tables at the base type of words+    select xs err ind+      | SBV (SVal _ (Left c)) <- ind = case cvVal c of+                                         CInteger i -> if i < 0 || i >= genericLength xs+                                                       then err+                                                       else xs `genericIndex` i+                                         _          -> error $ "SBV.select: unsupported " ++ show (kindOf ind) ++ " valued select/index expression"+    select xsOrig err ind = xs `seq` SBV (SVal kElt (Right (cache r)))+      where kInd = kindOf ind+            kElt = kindOf err+            -- Based on the index size, we need to limit the elements. For instance if the index is 8 bits, but there+            -- are 257 elements, that last element will never be used and we can chop it of..+            xs   = case kindOf ind of+                     KBounded False i -> genericTake ((2::Integer) ^ (fromIntegral i     :: Integer)) xsOrig+                     KBounded True  i -> genericTake ((2::Integer) ^ (fromIntegral (i-1) :: Integer)) xsOrig+                     KUnbounded       -> xsOrig+                     _                -> error $ "SBV.select: unsupported " ++ show (kindOf ind) ++ " valued select/index expression"+            r st  = do sws <- mapM (sbvToSV st) xs+                       swe <- sbvToSV st err+                       if all (== swe) sws  -- off-chance that all elts are the same. Note that this also correctly covers the case when list is empty.+                          then pure swe+                          else do idx <- getTableIndex st kInd kElt sws+                                  swi <- sbvToSV st ind+                                  let len = length xs+                                  -- NB. No need to worry here that the index might be < 0; as the SMTLib translation takes care of that automatically+                                  newExpr st kElt (SBVApp (LkUp (idx, kInd, kElt, len) swi swe) [])++-- | Construct a useful error message if we hit an unmergeable case.+cannotMerge :: String -> String -> String -> a+cannotMerge typ why hint = error $ unlines [ ""+                                           , "*** Data.SBV.Mergeable: Cannot merge instances of " ++ typ ++ "."+                                           , "*** While trying to do a symbolic if-then-else with incompatible branch results."+                                           , "***"+                                           , "*** " ++ why+                                           , "*** "+                                           , "*** Hint: " ++ hint+                                           ]++-- | Merge concrete values that can be checked for equality+concreteMerge :: Show a => String -> String -> (a -> a -> Bool) -> a -> a -> a+concreteMerge t st eq x y+  | x `eq` y = x+  | True     = cannotMerge t+                           ("Concrete values can only be merged when equal. Got: " ++ show x ++ " vs. " ++ show y)+                           ("Use an " ++ st ++ " field if the values can differ.")++-- Mergeable instances for List/Maybe/Either/Array are useful, but can+-- throw exceptions if there is no structural matching of the results+-- It's a question whether we should really keep them..++-- Lists+instance Mergeable a => Mergeable [a] where+  symbolicMerge f t xs ys+    | lxs == lys = zipWith (symbolicMerge f t) xs ys+    | True       = cannotMerge "lists"+                               ("Branches produce different sizes: " ++ show lxs ++ " vs " ++ show lys ++ ". Must have the same length.")+                               "Use the 'SList' type (and Data.SBV.List routines) to model fully symbolic lists."+    where (lxs, lys) = (length xs, length ys)++-- NonEmpty+instance Mergeable a => Mergeable (NonEmpty a) where+   symbolicMerge f t xs ys+     | lxs == lys = NE.zipWith (symbolicMerge f t) xs ys+     | True       = cannotMerge "non-empty lists"+                                ("Branches produce different sizes: " ++ show lxs ++ " vs " ++ show lys ++ ". Must have the same length.")+                                "Use the 'SList' type (and Data.SBV.List routines) to model fully symbolic lists."+     where (lxs, lys) = (length xs, length ys)++-- ZipList+instance Mergeable a => Mergeable (ZipList a) where+  symbolicMerge force test (ZipList xs) (ZipList ys)+    = ZipList (symbolicMerge force test xs ys)++-- Maybe+instance Mergeable a => Mergeable (Maybe a) where+  symbolicMerge _ _ Nothing  Nothing  = Nothing+  symbolicMerge f t (Just a) (Just b) = Just $ symbolicMerge f t a b+  symbolicMerge _ _ a b = cannotMerge "'Maybe' values"+                                      ("Branches produce different constructors: " ++ show (k a, k b))+                                      "Instead of an option type, try using a valid bit to indicate when a result is valid."+      where k :: Maybe a -> String+            k Nothing = "Nothing"+            k _       = "Just"++-- Either+instance (Mergeable a, Mergeable b) => Mergeable (Either a b) where+  symbolicMerge f t (Left a)  (Left b)  = Left  $ symbolicMerge f t a b+  symbolicMerge f t (Right a) (Right b) = Right $ symbolicMerge f t a b+  symbolicMerge _ _ a b = cannotMerge "'Either' values"+                                      ("Branches produce different constructors: " ++ show (k a, k b))+                                      "Consider using a product type by a tag instead."+     where k :: Either a b -> String+           k (Left _)  = "Left"+           k (Right _) = "Right"++-- Arrays+instance (Ix a, Mergeable b) => Mergeable (Array a b) where+  symbolicMerge f t a b+    | ba == bb = DA.listArray ba (zipWith (symbolicMerge f t) (elems a) (elems b))+    | True     = cannotMerge "'Array' values"+                             ("Branches produce different ranges: " ++ show (k ba, k bb))+                             "Consider using SBV's native 'SArray' abstraction."+    where ba = bounds a+          bb = bounds b+          k = rangeSize++-- Functions+instance Mergeable b => Mergeable (a -> b) where+  symbolicMerge f t g h x = symbolicMerge f t (g x) (h x)+  {- Following definition, while correct, is utterly inefficient. Since the+     application is delayed, this hangs on to the inner list and all the+     impending merges, even when ind is concrete. Thus, it's much better to+     simply use the default definition for the function case.+  -}+  -- select xs err ind = \x -> select (map ($ x) xs) (err x) ind++-- 2-Tuple+instance (Mergeable a, Mergeable b) => Mergeable (a, b) where+  symbolicMerge f t (i0, i1) (j0, j1) = ( symbolicMerge f t i0 j0+                                        , symbolicMerge f t i1 j1+                                        )++  select xs (err1, err2) ind = ( select as err1 ind+                               , select bs err2 ind+                               )+    where (as, bs) = unzip xs++-- 3-Tuple+instance (Mergeable a, Mergeable b, Mergeable c) => Mergeable (a, b, c) where+  symbolicMerge f t (i0, i1, i2) (j0, j1, j2) = ( symbolicMerge f t i0 j0+                                                , symbolicMerge f t i1 j1+                                                , symbolicMerge f t i2 j2+                                                )++  select xs (err1, err2, err3) ind = ( select as err1 ind+                                     , select bs err2 ind+                                     , select cs err3 ind+                                     )++    where (as, bs, cs) = unzip3 xs++-- 4-Tuple+instance (Mergeable a, Mergeable b, Mergeable c, Mergeable d) => Mergeable (a, b, c, d) where+  symbolicMerge f t (i0, i1, i2, i3) (j0, j1, j2, j3) = ( symbolicMerge f t i0 j0+                                                        , symbolicMerge f t i1 j1+                                                        , symbolicMerge f t i2 j2+                                                        , symbolicMerge f t i3 j3+                                                        )++  select xs (err1, err2, err3, err4) ind = ( select as err1 ind+                                           , select bs err2 ind+                                           , select cs err3 ind+                                           , select ds err4 ind+                                           )+    where (as, bs, cs, ds) = unzip4 xs++-- 5-Tuple+instance (Mergeable a, Mergeable b, Mergeable c, Mergeable d, Mergeable e) => Mergeable (a, b, c, d, e) where+  symbolicMerge f t (i0, i1, i2, i3, i4) (j0, j1, j2, j3, j4) = ( symbolicMerge f t i0 j0+                                                                , symbolicMerge f t i1 j1+                                                                , symbolicMerge f t i2 j2+                                                                , symbolicMerge f t i3 j3+                                                                , symbolicMerge f t i4 j4+                                                                )++  select xs (err1, err2, err3, err4, err5) ind = ( select as err1 ind+                                                 , select bs err2 ind+                                                 , select cs err3 ind+                                                 , select ds err4 ind+                                                 , select es err5 ind+                                                 )+    where (as, bs, cs, ds, es) = unzip5 xs++-- 6-Tuple+instance (Mergeable a, Mergeable b, Mergeable c, Mergeable d, Mergeable e, Mergeable f) => Mergeable (a, b, c, d, e, f) where+  symbolicMerge f t (i0, i1, i2, i3, i4, i5) (j0, j1, j2, j3, j4, j5) = ( symbolicMerge f t i0 j0+                                                                        , symbolicMerge f t i1 j1+                                                                        , symbolicMerge f t i2 j2+                                                                        , symbolicMerge f t i3 j3+                                                                        , symbolicMerge f t i4 j4+                                                                        , symbolicMerge f t i5 j5+                                                                        )++  select xs (err1, err2, err3, err4, err5, err6) ind = ( select as err1 ind+                                                       , select bs err2 ind+                                                       , select cs err3 ind+                                                       , select ds err4 ind+                                                       , select es err5 ind+                                                       , select fs err6 ind+                                                       )+    where (as, bs, cs, ds, es, fs) = unzip6 xs++-- 7-Tuple+instance (Mergeable a, Mergeable b, Mergeable c, Mergeable d, Mergeable e, Mergeable f, Mergeable g) => Mergeable (a, b, c, d, e, f, g) where+  symbolicMerge f t (i0, i1, i2, i3, i4, i5, i6) (j0, j1, j2, j3, j4, j5, j6) = ( symbolicMerge f t i0 j0+                                                                                , symbolicMerge f t i1 j1+                                                                                , symbolicMerge f t i2 j2+                                                                                , symbolicMerge f t i3 j3+                                                                                , symbolicMerge f t i4 j4+                                                                                , symbolicMerge f t i5 j5+                                                                                , symbolicMerge f t i6 j6+                                                                                )++  select xs (err1, err2, err3, err4, err5, err6, err7) ind = ( select as err1 ind+                                                             , select bs err2 ind+                                                             , select cs err3 ind+                                                             , select ds err4 ind+                                                             , select es err5 ind+                                                             , select fs err6 ind+                                                             , select gs err7 ind+                                                             )+    where (as, bs, cs, ds, es, fs, gs) = unzip7 xs++-- Base types are mergeable so long as they are equal+instance Mergeable ()      where symbolicMerge _ _ = concreteMerge "()"      "()"        (==)+instance Mergeable Integer where symbolicMerge _ _ = concreteMerge "Integer" "SInteger"  (==)+instance Mergeable Bool    where symbolicMerge _ _ = concreteMerge "Bool"    "SBool"     (==)+instance Mergeable Char    where symbolicMerge _ _ = concreteMerge "Char"    "SChar"     (==)+instance Mergeable Float   where symbolicMerge _ _ = concreteMerge "Float"   "SFloat"    fpIsEqualObjectH+instance Mergeable Double  where symbolicMerge _ _ = concreteMerge "Double"  "SDouble"   fpIsEqualObjectH+instance Mergeable Word8   where symbolicMerge _ _ = concreteMerge "Word8"   "SWord8"    (==)+instance Mergeable Word16  where symbolicMerge _ _ = concreteMerge "Word16"  "SWord16"   (==)+instance Mergeable Word32  where symbolicMerge _ _ = concreteMerge "Word32"  "SWord32"   (==)+instance Mergeable Word64  where symbolicMerge _ _ = concreteMerge "Word64"  "SWord64"   (==)+instance Mergeable Int8    where symbolicMerge _ _ = concreteMerge "Int8"    "SInt8"     (==)+instance Mergeable Int16   where symbolicMerge _ _ = concreteMerge "Int16"   "SInt16"    (==)+instance Mergeable Int32   where symbolicMerge _ _ = concreteMerge "Int32"   "SInt32"    (==)+instance Mergeable Int64   where symbolicMerge _ _ = concreteMerge "Int64"   "SInt64"    (==)++-- Arbitrary product types, using GHC.Generics+--+-- NB: Because of the way GHC.Generics works, the implementation of+-- symbolicMerge' is recursive. The derived instance for @data T a = T a a a a@+-- resembles that for (a, (a, (a, a))), not the flat 4-tuple (a, a, a, a). This+-- difference should have no effect in practice. Note also that, unlike the+-- hand-rolled tuple instances, the generic instance does not provide a custom+-- 'select' implementation, and so does not benefit from the SMT-table+-- implementation in the 'SBV a' instance.++-- | Not exported. Symbolic merge using the generic representation provided by+-- 'G.Generics'.+symbolicMergeDefault :: (G.Generic a, GMergeable (G.Rep a)) => Bool -> SBool -> a -> a -> a+symbolicMergeDefault force t x y = G.to $ symbolicMerge' force t (G.from x) (G.from y)++-- | Not exported. Used only in 'symbolicMergeDefault'. Instances are provided for+-- the generic representations of product types where each element is Mergeable.+class GMergeable f where+  symbolicMerge' :: Bool -> SBool -> f a -> f a -> f a++{-+ - N.B. A V1 instance like the below would be wrong!+ - Why? Because inSBV, we use empty data to mean "uninterpreted" sort; not+ - something that has no constructors. Perhaps that was a bad design+ - decision. So, do not allow merging of such values!+instance GMergeable V1 where+  symbolicMerge' _ _ x _ = x+-}++instance GMergeable U1 where+  symbolicMerge' _ _ _ _ = U1++instance (Mergeable c) => GMergeable (K1 i c) where+  symbolicMerge' force t (K1 x) (K1 y) = K1 $ symbolicMerge force t x y++instance (GMergeable f) => GMergeable (M1 i c f) where+  symbolicMerge' force t (M1 x) (M1 y) = M1 $ symbolicMerge' force t x y++instance (GMergeable f, GMergeable g) => GMergeable (f :*: g) where+  symbolicMerge' force t (x1 :*: y1) (x2 :*: y2) = symbolicMerge' force t x1 x2 :*: symbolicMerge' force t y1 y2++{- A mergeable instance for sum-types isn't possible. Why? It would something like:++instance (GMergeable f, GMergeable g) => GMergeable (f :+: g) where+  symbolicMerge' force t (L1 x) (L1 y) = L1 $ symbolicMerge' force t x y+  symbolicMerge' force t (R1 x) (R1 y) = R1 $ symbolicMerge' force t x y+  symbolicMerge' force t l r+    | Just tv <- unliteral t = if tv then l else r+    | True                   = ????++There's really no good code to put in ????. We have no way to ask the SMT solver to merge composite values that+have different constructors. Calling "error" here would pass the type-checker, but that simply postpones the problem+to run-time. If you need mergeable on sum-types, you better write one yourself, possibly using the SEither type yourself.+As we have it, you'll get a type-error; which can be hard to read, but is preferable.++NB. This isn't a problem with the generic version of symbolic equality; since we can simply return sFalse if we+see different constructors. Such isn't the case when merging.+-}++-- Bounded instances+instance {-# OVERLAPPABLE #-} (SymVal a, Bounded a) => Bounded (SBV a) where+  minBound = literal minBound+  maxBound = literal maxBound++-- Haskell and SMTLib differ in their default char ranges. In Haskell, maxbound is a lot larger.+-- But in SMTLib, we only go upto 0x2FFFF. So, we adopt the SMTLib variant here. This is hardly+-- an issue in practice, but the discrepancy is disconcerting.+instance {-# OVERLAPPING #-} Bounded SChar where+  minBound = literal (chr 0)+  maxBound = literal (chr 0x2FFFF)++-- | Choose a value that satisfies the given predicate. This is Hillbert's choice, essentially. Note that+-- if the predicate given is not satisfiable (for instance @const sFalse@), then the element returned will be arbitrary.+-- The only guarantee is that if there's at least one element that satisfies the predicate, then the returned+-- element will be one of those that do. The returned element is not guaranteed to be unique, least, greatest etc, unless+-- there happens to be exactly one satisfying element.+some :: forall a. (SymVal a, HasKind a) => String -> (SBV a -> SBool) -> SBV a+some inpName cond = mk f+  where mk = SBV . SVal k . Right . cache++        k = kindOf (Proxy @a)+++        f st = do ctr <- incrementFreshNameCounter st+                  let pre = atProxy (Proxy @a) inpName+                      nm  | ctr == 0 = pre+                          | True     = pre ++ "_" ++ show ctr+                  op <- newUninterpreted st (UIGiven nm) Nothing (SBVType [k]) (UINone False)+                  chosen <- newExpr st k $ SBVApp op []+                  let ifExists  = quantifiedBool $ \(Exists ex) -> cond ex+                  internalConstraint st False [] (unSBV (ifExists .=> cond (mk (pure (pure chosen)))))+                  pure chosen++-- | Find the final part of a kind that looks like an array+resKind :: Kind -> Kind+resKind (KArray _ k) = resKind k+resKind k            = k++-- | SMT definable constants and functions, which can also be uninterpreted.+-- This class captures functions that we can generate standalone-code for+-- in the SMT solver. Note that we also allow uninterpreted constants and+-- functions too. An uninterpreted constant is a value that is indexed by its name. The only+-- property the prover assumes -- about these values are that they are equivalent to themselves; i.e., (for+-- functions) they return the same results when applied to same arguments.+-- We support uninterpreted-functions as a general means of black-box'ing+-- operations that are /irrelevant/ for the purposes of the proof; i.e., when+-- the proofs can be performed without any knowledge about the function itself.+--+-- Minimal complete definition: 'sbvDefineValue'. However, most instances in+-- practice are already provided by SBV, so end-users should not need to define their+-- own instances.+class SMTDefinable a where+  -- | Generate the code for this value as an SMTLib function, instead of+  -- the usual unrolling semantics. This is useful for generating sub-functions+  -- in generated SMTLib problem, or handling recursive (and mutually-recursive)+  -- definitions that wouldn't terminate in an unrolling symbolic simulation context.+  --+  -- __IMPORTANT NOTE__ The string argument names this function. SBV identifies+  -- the function by this name: if you use this function twice (or use it recursively),+  -- it will simply assume this name uniquely identifies the function being defined.+  -- If two calls to 'smtFunction' (or its variants) use the same name but different+  -- bodies, SBV will raise an error at runtime.+  --+  -- Furthermore, if the call to 'smtFunction' happens in the scope of a parameter, you+  -- must make sure the string is chosen to keep it unique per parameter value. For instance,+  -- if you have:+  --+  -- @+  --   bar :: SInteger -> SInteger -> SInteger+  --   bar k = smtFunction "bar" (\x -> x+k)   -- Note the capture of k!+  -- @+  --+  -- and you call @bar 2@ and @bar 3@, SBV will detect that the two bodies differ and+  -- raise an error. You should use a concrete argument to make the name unique:+  --+  -- @+  --   bar :: String -> SInteger -> SInteger -> SInteger+  --   bar tag k = smtFunction ("bar_" ++ tag) (\x -> x+k)   -- Tag should make the name unique!+  -- @+  --+  -- Then, make sure you use @bar "two" 2@ and @bar "three" 3@ etc. to preserve the invariant.+  --+  -- Additionally, the function argument must not capture any non-constant variables in the context.+  -- You can also define higher-order functions, see 'smtHOFunction' for that purpose.+  smtFunctionDef :: (Typeable a, Lambda Symbolic a) => String -> Measure a -> a -> a++  -- | Register a function. This function is typically not needed as SBV will register functions used+  -- automatically upon first use. However, there are scenarios (in particular query contexts)+  -- where the definition isn't used before query-mode starts, and SBV (for historical reasons)+  -- requires functions to be known before query-mode starts executing. In such cases, use this function+  -- to register them with the system.+  registerFunction :: a -> Symbolic ()++  -- | Uninterpret a value, i.e., add this value as a completely undefined value/function that+  -- the solver is free to instantiate to satisfy other constraints.+  --+  -- __Known issues__+  --+  -- Usually using an uninterpret function will register itself to the solver, but sometimes the laziness+  -- of the evaluation might render this unreliable.+  --+  -- For example, when working with quantifiers and uninterpreted functions with the following code:+  --+  -- > runSMTWith z3 $ do+  -- >   let f = uninterpret "f" :: SInteger -> SInteger+  -- >   query $ do+  -- >     constrain $ \(Forall (b :: SInteger)) -> f b .== f b+  -- >     checkSat+  --+  -- The solver will complain about the unknown constant @f (Int)@.+  --+  -- A workaround of this is to explicit register them with 'Data.SBV.Control.registerUISMTFunction':+  --+  -- > runSMTWith z3 $ do+  -- >   let f = uninterpret "f" :: SInteger -> SInteger+  -- >   registerUISMTFunction f+  -- >   query $ do+  -- >     constrain $ \(Forall (b :: SInteger)) -> f b .== f b+  -- >     checkSat+  --+  -- See https://github.com/LeventErkok/sbv/issues/711 for more info.+  uninterpret :: String -> a++  -- | Uninterpret a value, with named arguments in case of functions. SBV will use these+  -- names when it shows the values for the arguments. If the given names are more than needed+  -- we ignore the excess. If not enough, we add from a stock set of variables.+  uninterpretWithArgs :: String -> [String] -> a++  -- | Uninterpret a value, only for the purposes of code-generation. For execution+  -- and verification the value is used as is. For code-generation, the alternate+  -- definition is used. This is useful when we want to take advantage of native+  -- libraries on the target languages.+  cgUninterpret :: String -> [String] -> a -> a++  -- | More generalized form of uninterpretation that wraps 'sbvDefineValueFun';+  -- this function should not be needed by end-user-code+  sbvDefineValue :: UIName -> Maybe [String] -> UIKind a -> a++  -- | The most generalized form of uninterpretation, that generates an+  -- uninterpreted function over a sequence of 'SBVs' values; this function is+  -- internal-only, and should not be needed by end-user-code+  sbvDefineValueFun :: UIName -> Maybe [String] -> SymValInsts as ->+                       UIKind (SBVs as -> a) -> SBVs as -> a++  -- | A synonym for 'uninterpret'. Allows us to create variables without+  -- having to call 'free' explicitly, i.e., without being in the symbolic monad.+  sym :: String -> a++  -- | Like 'sym', but appends the type's kind to the name, ensuring uniqueness across+  -- different type instantiations of the same polymorphic definition. Used internally by sCase.+  symWithKind :: String -> a+  symWithKind = sym++  -- | Render an uninterpreted value as an SMTLib definition+  sbv2smt :: ExtractIO m => a -> m String++  -- | Render an uninterpreted value function as an SMTLib definition+  sbvFun2smt :: (SymVals as, ExtractIO m) => (SBVs as -> a) -> m String++  -- | Make this name a constructor, coming from an ADT. Only used internally+  mkADTConstructor :: HasKind a => String -> a+  mkADTTester      :: HasKind a => String -> a+  mkADTAccessor    :: HasKind a => String -> a++  {-# MINIMAL sbvDefineValueFun, sbvFun2smt, registerFunction #-}++  -- defaults:+  uninterpret         nm        = sbvDefineValue (UIGiven nm) Nothing   $ UIFree True+  uninterpretWithArgs nm as     = sbvDefineValue (UIGiven nm) (Just as) $ UIFree True+  cgUninterpret       nm code v = sbvDefineValue (UIGiven nm) Nothing   $ UICodeC (v, code)+  sym                           = uninterpret+  sbv2smt             a         = sbvFun2smt (\(_ :: SBVs RNil) -> a)++  sbvDefineValue nm mbArgs k    =+    sbvDefineValueFun nm mbArgs SymValsNil (const <$> k) SBVsNil++  mkADTConstructor nm = let k = resKind (kindOf v); v = sbvDefineValue (UIADT (ADTConstructor (T.pack nm) k)) Nothing $ UIFree True in v+  mkADTTester      nm = let k = resKind (kindOf v); v = sbvDefineValue (UIADT (ADTTester      (T.pack nm) k)) Nothing $ UIFree True in v+  mkADTAccessor    nm = let k = resKind (kindOf v); v = sbvDefineValue (UIADT (ADTAccessor    (T.pack nm) k)) Nothing $ UIFree True in v++  smtFunctionDef nm msr v = sbvDefineValue (UIGiven (atProxy (Proxy @a) nm)) Nothing+                       $ UIFun (v, \st fk -> do+                          let funcNm = atProxy (Proxy @a) nm+                          (def, info) <- lambdaWithInfo st TopLevel fk v+                          -- Record LambdaInfo for SCC-aware mutual recursion checking+                          modifyIORef' (rFuncLambdaInfos st) (Map.insert funcNm info)+                          let barFuncNm    = barify funcNm+                              tBarFuncNm   = T.pack barFuncNm+                              isSelfRec    = any (\(_, SBVApp op _) -> case op of+                                                    Uninterpreted n -> n == tBarFuncNm+                                                    _               -> False)+                                                 (liAssignments info)+                              hasCrossRefs = any (\(_, SBVApp op _) -> case op of+                                                    Uninterpreted n -> n /= tBarFuncNm+                                                    _               -> False)+                                                 (liAssignments info)+                          case msr of+                            AutoMeasure -> do+                              when isSelfRec $+                                modifyIORef' (rMeasureChecks st)+                                             ((funcNm, False, \cfg -> autoGuessOrFail cfg funcNm info) :)+                              when hasCrossRefs $+                                modifyIORef' (rMeasureChecks st)+                                             ((funcNm, False, \cfg -> checkMutualFromState cfg funcNm st Nothing) :)+                              pure def++                            HasMeasure eval helpers -> do+                              when isSelfRec $+                                modifyIORef' (rMeasureChecks st)+                                             ((funcNm, False, \cfg -> verifyMeasure cfg funcNm info eval helpers) :)+                              when hasCrossRefs $+                                modifyIORef' (rMeasureChecks st)+                                             ((funcNm, False, \cfg -> checkMutualFromState cfg funcNm st (Just eval)) :)+                              pure def++                            HasContract eval ceval helpers -> do+                              when hasCrossRefs $+                                modifyIORef' (rMeasureChecks st)+                                             ((funcNm, False, \cfg -> rejectMutualContractFromState cfg funcNm st) :)+                              modifyIORef' (rMeasureChecks st)+                                           ((funcNm, False, \cfg -> verifyMeasureWithContract cfg funcNm info eval ceval helpers) :)+                              pure def++                            Productive -> do+                              when isSelfRec $+                                modifyIORef' (rMeasureChecks st)+                                             ((funcNm, True, \cfg -> verifyGuardedness cfg funcNm info) :)+                              when hasCrossRefs $+                                modifyIORef' (rMeasureChecks st)+                                             ((funcNm, True, \cfg -> checkMutualProductiveFromState cfg funcNm st) :)+                              pure def++                            Unverified -> do modifyIORef' (rNoTermCheckFunctions st) (Set.insert nm)+                                             debug (stCfg st) ["[MEASURE] " <> T.pack funcNm <> ": no termination check (smtFunctionNoTermination)"]+                                             pure def)+++-- | Define an SMT function. If the function is recursive, SBV will automatically try to+-- prove termination by guessing a measure based on argument types. If the guess fails,+-- use 'smtFunctionWithMeasure' to provide an explicit measure.+smtFunction :: (SMTDefinable a, Typeable a, Lambda Symbolic a) => String -> a -> a+smtFunction nm = smtFunctionDef nm AutoMeasure++-- | Define an SMT function with an explicit termination measure. Use this when 'smtFunction'+-- cannot automatically determine a suitable measure. The measure function takes the same+-- arguments as the original function but returns a value that must be non-negative and+-- strictly decrease at each recursive call.+--+-- The pair @(measure, helpers)@ provides the measure function and a list of auxiliary+-- t'MeasureHelper' properties needed to verify the measure. Each helper is first proven+-- (by running its TP proof), then asserted as an axiom in the measure verification session.+-- Use 'Data.SBV.TP.measureLemma' to create helpers from TP proofs. Pass @[]@ when no helpers are needed.+smtFunctionWithMeasure :: forall f r. (SMTDefinable f, Typeable f, Lambda Symbolic f, Zero r, OrdSymbolic (SBV r), SymVal r, ApplyMeasure f r)+                       => String -> (MeasureOf f r, [MeasureHelper]) -> f -> f+smtFunctionWithMeasure nm (mf, helpers) = smtFunctionDef nm (HasMeasure (MeasureEval (applyMeasure @f @r mf)) helpers)++-- | Define an SMT function with a termination measure and a contract (post-condition).+-- Use this for nested recursive functions (like McCarthy's 91 function) where the termination+-- argument depends on the function's return value at smaller inputs.+--+-- The triple @(measure, contract, helpers)@ provides:+--+--   * A measure function (same as 'smtFunctionWithMeasure')+--   * A contract: a predicate on the function's inputs and output that is proven simultaneously+--     with the measure decrease via well-founded induction. The inductive hypothesis provides+--     the contract for all inputs with strictly smaller measure.+--   * A list of auxiliary t'MeasureHelper' properties (pass @[]@ when none are needed)+--+-- For example, for McCarthy's 91 function:+--+-- @+-- mcCarthy91 = smtFunctionWithContract \"mcCarthy91\"+--     ( \\n -> 0 \`smax\` (101 - n)+--     , \\n r -> n .<= 100 .=> r .== 91+--     , []+--     )+--   $ \\n -> ite (n .> 100) (n - 10) (mcCarthy91 (mcCarthy91 (n + 11)))+-- @+--+-- Here the contract says \"for inputs ≤ 100, the result is 91\". This is needed because the outer+-- recursive call @mcCarthy91(mcCarthy91(n + 11))@ requires knowing what @mcCarthy91(n + 11)@ returns+-- in order to verify that the measure decreases.+smtFunctionWithContract :: forall f r. (SMTDefinable f, Typeable f, Lambda Symbolic f, Zero r, OrdSymbolic (SBV r), SymVal r, ApplyMeasure f r, ApplyContract f)+                        => String -> (MeasureOf f r, ContractOf f, [MeasureHelper]) -> f -> f+smtFunctionWithContract nm (mf, cf, helpers) = smtFunctionDef nm (HasContract (MeasureEval (applyMeasure @f @r mf))+                                                                              (ContractEval (applyContract @f cf))+                                                                              helpers)++-- | Define a productive (corecursive) SMT function. Use this for functions that intentionally+-- don't terminate but produce output incrementally, such as infinite list generators.+-- SBV verifies that every recursive call is guarded by a data constructor (list cons, ADT+-- constructor, etc.), ensuring the function is productive.+--+-- @+-- go = smtProductiveFunction \"go\" $ \\start delta -> start .: go (start + delta) delta+-- @+smtProductiveFunction :: (SMTDefinable a, Typeable a, Lambda Symbolic a) => String -> a -> a+smtProductiveFunction nm = smtFunctionDef nm Productive++-- | Define a recursive SMT function without any termination check. The function+-- is emitted as @define-fun-rec@ and the user takes responsibility for well-definedness.+-- Use this for functions where termination is believed but cannot be proven, such as+-- the Collatz function. See "Documentation.SBV.Examples.TP.Collatz" for an example use case.+smtFunctionNoTermination :: (SMTDefinable a, Typeable a, Lambda Symbolic a) => String -> a -> a+smtFunctionNoTermination nm = smtFunctionDef nm Unverified++-- | Kind of uninterpretation+data UIKind a = UIFree  Bool                            -- ^ completely uninterpreted. If Bool is true, then this is curried.+              | UIFun   (a, State -> Kind -> IO SMTDef) -- ^ has code for SMTLib, with final type of kind (note this is the result+                                                        -- , not the arguments), which can be generated by calling the function on the state.+              | UICodeC (a, [String])                   -- ^ has code for code-generation, i.e., C+              deriving Functor++-- Get the code associated with the UI, unless we've already did this once. (To support recursive defs.)+retrieveUICode :: UIName -> State -> Kind -> UIKind a -> IO UICodeKind+retrieveUICode _            _  _  (UIFree  c)      = pure $ UINone c+retrieveUICode (UIADT   _)  _  _  _                = pure $ UINone True+retrieveUICode (UIGiven nm) st fk (UIFun   (_, f)) = do+  compilingFuncs <- readIORef (rCompilingFuncs st)+  if nm `Set.member` compilingFuncs+    then -- This name is currently being compiled, so this is a recursive (or mutually recursive) self-call.+         -- Break the cycle by skipping code generation.+         pure $ UINone True+    else do userFuncs <- readIORef (rUserFuncs st)+            sn <- hashStableName <$> makeStableName f+            case Map.lookup nm userFuncs of+              Just (knownHashes, origLevel)+                | sn `Set.member` knownHashes+                -> -- Same closure we've seen before; skip immediately.+                   pure $ UINone True+                | True+                -> do -- New closure for an already-compiled name. Compile body in an isolated+                      -- throwaway state (to avoid side-effects like duplicate measure registrations+                      -- and context-dependent body differences), then compare with the existing definition.+                      -- We use the SAME lambda level as the original compilation so that SV names+                      -- in the body text match exactly; this avoids fragile string normalization.+                      throwaway <- mkNewState ((stCfg st) {verbose = False}) (LambdaGen origLevel)+                      modifyIORef' (rCompilingFuncs throwaway) (Set.insert nm)+                      -- If the body captures SVals from the live state's context, the throwaway+                      -- compilation will throw (e.g., context-mismatch). That is a definite conflict:+                      -- the body references different state-bound variables.+                      mbD <- C.try (f throwaway fk)+                      case mbD of+                        Left (_ :: C.SomeException)+                          -> conflictError nm+                        Right d+                          -> do defs <- readIORef (rDefns st)+                                case Map.lookup (barify nm) defs of+                                  Just (oldDef, _)+                                    | not (smtDefEq d oldDef)+                                    -> conflictError nm+                                  _ -> pure ()+                                -- Body matches; memoize this StableName hash so future calls+                                -- with the same closure skip instantly.+                                modifyState st rUserFuncs (Map.adjust (first (Set.insert sn)) nm) (pure ())+                      pure $ UINone True+              Nothing+                -> do -- First time seeing this name. Record lambda level for future comparison.+                      ll <- readIORef (rLambdaLevel st)+                      modifyState st rUserFuncs      (Map.insert nm (Set.singleton sn, ll)) (pure ())+                      modifyState st rCompilingFuncs (Set.insert nm) (pure ())+                      d <- UISMT <$> f st fk+                      modifyState st rCompilingFuncs (Set.delete nm) (pure ())+                      pure d+retrieveUICode _            _  _  (UICodeC (_, c)) = pure $ UICgC c++-- Get the constant value associated with the UI+retrieveConstCode :: UIKind a -> Maybe a+retrieveConstCode UIFree{}         = Nothing+retrieveConstCode (UIFun   (v, _)) = Just v+retrieveConstCode (UICodeC (v, _)) = Just v++instance SymVal a => SMTDefinable (SBV a) where+  sbvFun2smt (fn :: SBVs as -> SBV a)+    | SymValsNil <- symValInsts :: SymValInsts as+    , a <- fn SBVsNil+    = do st <- mkNewState defaultSMTCfg (LambdaGen (Just 0))+         s <- lambdaStr st TopLevel (kindOf a) a+         pure $ intercalate "\n" [ "; Automatically generated by SBV. Do not modify!"+                                 , "; Type: " ++ T.unpack (smtType (kindOf a))+                                 , show s+                                 ]+  sbvFun2smt fn = defs2smt (\args -> fn args .== fn args)++  sbvDefineValueFun nm mbArgs insts uiKind args+    | Just v <- retrieveConstCode uiKind+    , foldlSymSBVs (\r x -> r && isConcrete x) True insts args+    = v args+    | ka <- kindOf (Proxy @a)+    = SBV $ SVal ka $ Right $ cache $ \st ->+        do isSMT <- inSMTMode st+           case (isSMT, uiKind) of+             (True, UICodeC (v, _)) -> sbvToSV st (v args)+             _                      -> do let ks = symValKinds insts ++ [ka]+                                          ui <- retrieveUICode nm st ka uiKind+                                          op <- newUninterpreted st nm mbArgs (SBVType ks) ui+                                          svs <- rlist2list <$> mapMSBVs (sbvToSV st) args+                                          mapM_ forceSVArg svs+                                          newExpr st ka $ SBVApp op svs++  registerFunction x = constrain $ x .== x++  symWithKind nm = sym (nm ++ "_" ++ show (kindOf (Proxy @a)))+++instance (SymVal a, SMTDefinable b) => SMTDefinable (SBV a -> b) where+  sbvFun2smt (fn :: SBVs as -> SBV a -> b) =+    sbvFun2smt (\((SBVsCons as a) :: SBVs (as :> a)) -> fn as a)++  sbvDefineValueFun nm mbArgs insts uiKind args a =+    sbvDefineValueFun nm mbArgs (SymValsCons insts)+    ((\f (SBVsCons xs x) -> f xs x) <$> uiKind) (SBVsCons args a)++  registerFunction f = do let k = kindOf (Proxy @a)+                          st <- symbolicEnv+                          v <- liftIO $ newInternalVariable st k+                          let a = SBV $ SVal k $ Right $ cache (const (pure v))+                          registerFunction $ f a++-- Mark the UIKind as uncurried+mkUncurried :: UIKind a -> UIKind a+mkUncurried (UIFree  _) = UIFree  False+mkUncurried (UIFun   a) = UIFun   a+mkUncurried (UICodeC a) = UICodeC a+++uncurrySBVs2 :: (SBVs as -> (SBV c, SBV b) -> SBV a) ->+                (SBVs (as :> c :> b) -> SBV a)+uncurrySBVs2 fn (SBVsCons (SBVsCons as c) b) = fn as (c,b)++-- Uncurried functions of two arguments+instance (SymVal c, SymVal b, SymVal a, HasKind a) => SMTDefinable ((SBV c, SBV b) -> SBV a) where+  sbvFun2smt = sbvFun2smt . uncurrySBVs2++  registerFunction = registerFunction . curry2+  sbvDefineValueFun nm mbArgs insts uiKind = uncurry2 <$> sbvDefineValueFun nm mbArgs insts (fmap curry2 <$> mkUncurried uiKind)++-- Uncurried functions of three arguments+instance (SymVal d, SymVal c, SymVal b, SymVal a, HasKind a) => SMTDefinable ((SBV d, SBV c, SBV b) -> SBV a) where+  sbvFun2smt = sbvFun2smt . uncurrySBVs3+    where uncurrySBVs3 :: (SBVs as -> (SBV d, SBV c, SBV b) -> SBV a) -> (SBVs (as :> d :> c :> b) -> SBV a)+          uncurrySBVs3 fn (SBVsCons (SBVsCons (SBVsCons as d) c) b) = fn as (d,c,b)+  registerFunction = registerFunction . curry3+  sbvDefineValueFun nm mbArgs insts uiKind = uncurry3 <$> sbvDefineValueFun nm mbArgs insts (fmap curry3 <$> mkUncurried uiKind)++-- Uncurried functions of four arguments+instance (SymVal e, SymVal d, SymVal c, SymVal b, SymVal a, HasKind a) => SMTDefinable ((SBV e, SBV d, SBV c, SBV b) -> SBV a) where+  sbvFun2smt = sbvFun2smt . uncurrySBVs4+   where uncurrySBVs4 :: (SBVs as -> (SBV e, SBV d, SBV c, SBV b) -> SBV a) -> (SBVs (as :> e :> d :> c :> b) -> SBV a)+         uncurrySBVs4 fn (SBVsCons (SBVsCons (SBVsCons (SBVsCons as e) d) c) b) = fn as (e,d,c,b)+  registerFunction = registerFunction . curry4+  sbvDefineValueFun nm mbArgs insts uiKind = uncurry4 <$> sbvDefineValueFun nm mbArgs insts (fmap curry4 <$> mkUncurried uiKind)++-- Uncurried functions of five arguments+instance (SymVal f, SymVal e, SymVal d, SymVal c, SymVal b, SymVal a, HasKind a) => SMTDefinable ((SBV f, SBV e, SBV d, SBV c, SBV b) -> SBV a) where+  sbvFun2smt = sbvFun2smt . uncurrySBVs5+   where uncurrySBVs5 :: (SBVs as -> (SBV f, SBV e, SBV d, SBV c, SBV b) -> SBV a) -> (SBVs (as :> f :> e :> d :> c :> b) -> SBV a)+         uncurrySBVs5 fn (SBVsCons (SBVsCons (SBVsCons (SBVsCons (SBVsCons as f) e) d) c) b) = fn as (f,e,d,c,b)+  registerFunction = registerFunction . curry5+  sbvDefineValueFun nm mbArgs insts uiKind = uncurry5 <$> sbvDefineValueFun nm mbArgs insts (fmap curry5 <$> mkUncurried uiKind)++-- Uncurried functions of six arguments+instance (SymVal g, SymVal f, SymVal e, SymVal d, SymVal c, SymVal b, SymVal a, HasKind a) => SMTDefinable ((SBV g, SBV f, SBV e, SBV d, SBV c, SBV b) -> SBV a) where+  sbvFun2smt = sbvFun2smt . uncurrySBVs6+   where uncurrySBVs6 :: (SBVs as -> (SBV g, SBV f, SBV e, SBV d, SBV c, SBV b) -> SBV a) -> (SBVs (as :> g :> f :> e :> d :> c :> b) -> SBV a)+         uncurrySBVs6 fn (SBVsCons (SBVsCons (SBVsCons (SBVsCons (SBVsCons (SBVsCons as g) f) e) d) c) b) = fn as (g,f,e,d,c,b)++  registerFunction = registerFunction . curry6+  sbvDefineValueFun nm mbArgs insts uiKind = uncurry6 <$> sbvDefineValueFun nm mbArgs insts (fmap curry6 <$> mkUncurried uiKind)++-- Uncurried functions of seven arguments+instance (SymVal h, SymVal g, SymVal f, SymVal e, SymVal d, SymVal c, SymVal b, SymVal a, HasKind a) => SMTDefinable ((SBV h, SBV g, SBV f, SBV e, SBV d, SBV c, SBV b) -> SBV a) where+  sbvFun2smt = sbvFun2smt . uncurrySBVs7+   where uncurrySBVs7 :: (SBVs as -> (SBV h, SBV g, SBV f, SBV e, SBV d, SBV c, SBV b) -> SBV a) -> (SBVs (as :> h :> g :> f :> e :> d :> c :> b) -> SBV a)+         uncurrySBVs7 fn (SBVsCons (SBVsCons (SBVsCons (SBVsCons (SBVsCons (SBVsCons (SBVsCons as h) g) f) e) d) c) b) = fn as (h,g,f,e,d,c,b)+  registerFunction = registerFunction . curry7+  sbvDefineValueFun nm mbArgs insts uiKind = uncurry7 <$> sbvDefineValueFun nm mbArgs insts (fmap curry7 <$> mkUncurried uiKind)++-- Uncurried functions of eight arguments+instance (SymVal i, SymVal h, SymVal g, SymVal f, SymVal e, SymVal d, SymVal c, SymVal b, SymVal a, HasKind a) => SMTDefinable ((SBV i, SBV h, SBV g, SBV f, SBV e, SBV d, SBV c, SBV b) -> SBV a) where+  sbvFun2smt = sbvFun2smt . uncurrySBVs8+   where uncurrySBVs8 :: (SBVs as -> (SBV i, SBV h, SBV g, SBV f, SBV e, SBV d, SBV c, SBV b) -> SBV a) -> (SBVs (as :> i :> h :> g :> f :> e :> d :> c :> b) -> SBV a)+         uncurrySBVs8 fn (SBVsCons (SBVsCons (SBVsCons (SBVsCons (SBVsCons (SBVsCons (SBVsCons (SBVsCons as i) h) g) f) e) d) c) b) = fn as (i,h,g,f,e,d,c,b)+  registerFunction = registerFunction . curry8+  sbvDefineValueFun nm mbArgs insts uiKind = uncurry8 <$> sbvDefineValueFun nm mbArgs insts (fmap curry8 <$> mkUncurried uiKind)++-- Uncurried functions of nine arguments+instance (SymVal j, SymVal i, SymVal h, SymVal g, SymVal f, SymVal e, SymVal d, SymVal c, SymVal b, SymVal a, HasKind a) => SMTDefinable ((SBV j, SBV i, SBV h, SBV g, SBV f, SBV e, SBV d, SBV c, SBV b) -> SBV a) where+  sbvFun2smt = sbvFun2smt . uncurrySBVs9+   where uncurrySBVs9 :: (SBVs as -> (SBV j, SBV i, SBV h, SBV g, SBV f, SBV e, SBV d, SBV c, SBV b) -> SBV a) -> (SBVs (as :> j :> i :> h :> g :> f :> e :> d :> c :> b) -> SBV a)+         uncurrySBVs9 fn (SBVsCons (SBVsCons (SBVsCons (SBVsCons (SBVsCons (SBVsCons (SBVsCons (SBVsCons (SBVsCons as j) i) h) g) f) e) d) c) b) = fn as (j,i,h,g,f,e,d,c,b)+  registerFunction = registerFunction . curry9+  sbvDefineValueFun nm mbArgs insts uiKind = uncurry9 <$> sbvDefineValueFun nm mbArgs insts (fmap curry9 <$> mkUncurried uiKind)++-- Uncurried functions of ten arguments+instance (SymVal k, SymVal j, SymVal i, SymVal h, SymVal g, SymVal f, SymVal e, SymVal d, SymVal c, SymVal b, SymVal a, HasKind a) => SMTDefinable ((SBV k, SBV j, SBV i, SBV h, SBV g, SBV f, SBV e, SBV d, SBV c, SBV b) -> SBV a) where+  sbvFun2smt = sbvFun2smt . uncurrySBVs10+   where uncurrySBVs10 :: (SBVs as -> (SBV k, SBV j, SBV i, SBV h, SBV g, SBV f, SBV e, SBV d, SBV c, SBV b) -> SBV a) -> (SBVs (as :> k :> j :> i :> h :> g :> f :> e :> d :> c :> b) -> SBV a)+         uncurrySBVs10 fn (SBVsCons (SBVsCons (SBVsCons (SBVsCons (SBVsCons (SBVsCons (SBVsCons (SBVsCons (SBVsCons (SBVsCons as k) j) i) h) g) f) e) d) c) b) = fn as (k,j,i,h,g,f,e,d,c,b)+  registerFunction = registerFunction . curry10+  sbvDefineValueFun nm mbArgs insts uiKind = uncurry10 <$> sbvDefineValueFun nm mbArgs insts (fmap curry10 <$> mkUncurried uiKind)++-- Uncurried functions of eleven arguments+instance (SymVal l, SymVal k, SymVal j, SymVal i, SymVal h, SymVal g, SymVal f, SymVal e, SymVal d, SymVal c, SymVal b, SymVal a, HasKind a) => SMTDefinable ((SBV l, SBV k, SBV j, SBV i, SBV h, SBV g, SBV f, SBV e, SBV d, SBV c, SBV b) -> SBV a) where+  sbvFun2smt = sbvFun2smt . uncurrySBVs11+   where uncurrySBVs11 :: (SBVs as -> (SBV l, SBV k, SBV j, SBV i, SBV h, SBV g, SBV f, SBV e, SBV d, SBV c, SBV b) -> SBV a) -> (SBVs (as :> l :> k :> j :> i :> h :> g :> f :> e :> d :> c :> b) -> SBV a)+         uncurrySBVs11 fn (SBVsCons (SBVsCons (SBVsCons (SBVsCons (SBVsCons (SBVsCons (SBVsCons (SBVsCons (SBVsCons (SBVsCons (SBVsCons as l) k) j) i) h) g) f) e) d) c) b) = fn as (l,k,j,i,h,g,f,e,d,c,b)+  registerFunction = registerFunction . curry11+  sbvDefineValueFun nm mbArgs insts uiKind = uncurry11 <$> sbvDefineValueFun nm mbArgs insts (fmap curry11 <$> mkUncurried uiKind)++-- Uncurried functions of twelve arguments+instance (SymVal m, SymVal l, SymVal k, SymVal j, SymVal i, SymVal h, SymVal g, SymVal f, SymVal e, SymVal d, SymVal c, SymVal b, SymVal a, HasKind a) => SMTDefinable ((SBV m, SBV l, SBV k, SBV j, SBV i, SBV h, SBV g, SBV f, SBV e, SBV d, SBV c, SBV b) -> SBV a) where+  sbvFun2smt = sbvFun2smt . uncurrySBVs12+    where uncurrySBVs12 :: (SBVs as -> (SBV m, SBV l, SBV k, SBV j, SBV i, SBV h, SBV g, SBV f, SBV e, SBV d, SBV c, SBV b) -> SBV a) -> (SBVs (as :> m :> l :> k :> j :> i :> h :> g :> f :> e :> d :> c :> b) -> SBV a)+          uncurrySBVs12 fn (SBVsCons (SBVsCons (SBVsCons (SBVsCons (SBVsCons (SBVsCons (SBVsCons (SBVsCons (SBVsCons (SBVsCons (SBVsCons (SBVsCons as m) l) k) j) i) h) g) f) e) d) c) b) = fn as (m,l,k,j,i,h,g,f,e,d,c,b)+  registerFunction = registerFunction . curry12+  sbvDefineValueFun nm mbArgs insts uiKind = uncurry12 <$> sbvDefineValueFun nm mbArgs insts (fmap curry12 <$> mkUncurried uiKind)++-- | Symbolic computations provide a context for writing symbolic programs.+instance MonadIO m => SolverContext (SymbolicT m) where+   constrain                   = imposeConstraint False []               . unSBV . quantifiedBool+   softConstrain               = imposeConstraint True  []               . unSBV . quantifiedBool+   namedConstraint        nm   = imposeConstraint False [(":named", nm)] . unSBV . quantifiedBool+   constrainWithAttribute atts = imposeConstraint False atts             . unSBV . quantifiedBool++   contextState = symbolicEnv+   setOption o  = addNewSMTOption  o++   internalVariable k = contextState >>= \st -> liftIO $ do+                           sv <- newInternalVariable st k+                           pure $ SBV $ SVal k (Right (cache (const (pure sv))))++-- | Generalization of 'Data.SBV.assertWithPenalty'+assertWithPenalty :: MonadSymbolic m => String -> SBool -> Penalty -> m ()+assertWithPenalty nm o p = addSValOptGoal $ unSBV <$> AssertWithPenalty nm o p++-- | Class of metrics we can optimize for. Currently, booleans,+-- bounded signed/unsigned bit-vectors, unbounded integers,+-- algebraic reals and floats can be optimized. You can add+-- your instances, but bewared that the 'MetricSpace' should+-- map your type to something the backend solver understands, which+-- are limited to unsigned bit-vectors, reals, and unbounded integers+-- for z3.+--+-- A good reference on these features is given in the following paper:+-- <http://www.microsoft.com/en-us/research/wp-content/uploads/2016/02/nbjorner-scss2014.pdf>.+--+-- Minimal completion: None. However, if @MetricSpace@ is not identical to the type, you want+-- to define 'toMetricSpace'/'annotateForMS', and possibly 'minimize'/'maximize' to add extra constraints as necessary.+class Metric a where+  -- | The metric space we optimize the goal over. Usually the same as the type itself, but not always!+  -- For instance, signed bit-vectors are optimized over their unsigned counterparts, floats are+  -- optimized over their 'Word32' comparable counterparts, etc.+  type MetricSpace a :: Type+  type MetricSpace a = a++  -- | Compute the metric value to optimize.+  toMetricSpace   :: SBV a -> SBV (MetricSpace a)++  -- | Compute the value itself from the metric corresponding to it.+  fromMetricSpace :: SBV (MetricSpace a) -> SBV a++  -- | Annotate for the metric space, to clarify the new name. If this result is not identity,+  -- we will add an sObserve on the original.+  annotateForMS :: Proxy a -> String -> String++  -- | Minimizing a metric space+  msMinimize :: (MonadSymbolic m, SolverContext m) => String -> SBV a -> m ()+  msMinimize nm o = do let nm' = annotateForMS (Proxy @a) nm+                       when (nm' /= nm) $ sObserve nm (unSBV o)+                       addSValOptGoal $ unSBV <$> Minimize nm' (toMetricSpace o)++  -- | Maximizing a metric space+  msMaximize :: (MonadSymbolic m, SolverContext m) => String -> SBV a -> m ()+  msMaximize nm o = do let nm' = annotateForMS (Proxy @a) nm+                       when (nm' /= nm) $ sObserve nm (unSBV o)+                       addSValOptGoal $ unSBV <$> Maximize nm' (toMetricSpace o)++  -- if MetricSpace is the same, we can give a default definition+  default toMetricSpace :: (a ~ MetricSpace a) => SBV a -> SBV (MetricSpace a)+  toMetricSpace = id++  default fromMetricSpace :: (a ~ MetricSpace a) => SBV (MetricSpace a) -> SBV a+  fromMetricSpace = id++  -- Annotations to indicate if the metric space transition was needed+  default annotateForMS :: (a ~ MetricSpace a) => Proxy a -> String -> String+  annotateForMS _ s = s++-- Booleans assume True is greater than False+instance Metric Bool where+  type MetricSpace Bool = Word8+  toMetricSpace t   = ite t 1 0+  fromMetricSpace w = w ./= 0+  annotateForMS _ s = "toMetricSpace(" ++ s ++ ")"++-- | Generalization of 'Data.SBV.minimize'+minimize :: (Metric a, MonadSymbolic m, SolverContext m) => String -> SBV a -> m ()+minimize = msMinimize++-- | Generalization of 'Data.SBV.maximize'+maximize :: (Metric a, MonadSymbolic m, SolverContext m) => String -> SBV a -> m ()+maximize = msMaximize++-- Unsigned types, integers, and reals directly optimize+instance Metric Word8+instance Metric Word16+instance Metric Word32+instance Metric Word64+instance Metric Integer+instance Metric AlgReal++-- To optimize signed bounded values, we have to adjust to the range+instance Metric Int8 where+  type MetricSpace Int8 = Word8+  toMetricSpace   x = sFromIntegral x + 128  -- 2^7+  fromMetricSpace x = sFromIntegral x - 128+  annotateForMS _ s = "toMetricSpace(" ++ s ++ ")"++instance Metric Int16 where+  type MetricSpace Int16 = Word16+  toMetricSpace   x = sFromIntegral x + 32768  -- 2^15+  fromMetricSpace x = sFromIntegral x - 32768+  annotateForMS _ s = "toMetricSpace(" ++ s ++ ")"++instance Metric Int32 where+  type MetricSpace Int32 = Word32+  toMetricSpace   x = sFromIntegral x + 2147483648 -- 2^31+  fromMetricSpace x = sFromIntegral x - 2147483648+  annotateForMS _ s = "toMetricSpace(" ++ s ++ ")"++instance Metric Int64 where+  type MetricSpace Int64 = Word64+  toMetricSpace   x = sFromIntegral x + 9223372036854775808  -- 2^63+  fromMetricSpace x = sFromIntegral x - 9223372036854775808+  annotateForMS _ s = "toMetricSpace(" ++ s ++ ")"++-- | Optimizing 'WordN'+instance (KnownNat n, BVIsNonZero n) => Metric (WordN n)++-- | Optimizing 'IntN'+instance (KnownNat n, BVIsNonZero n) => Metric (IntN n) where+  type MetricSpace (IntN n) = WordN n+  toMetricSpace   x = sFromIntegral x + 2 ^ (intOfProxy (Proxy @n) - 1)+  fromMetricSpace x = sFromIntegral x - 2 ^ (intOfProxy (Proxy @n) - 1)+  annotateForMS _ s = "toMetricSpace(" ++ s ++ ")"++-- Quickcheck interface on symbolic-booleans..+instance Testable SBool where+  property (SBV (SVal _ (Left b))) = property (cvToBool b)+  property s                       = cantQuickCheck $ "Result did not evaluate to a concrete boolean: " ++ show s++instance Testable (Symbolic SBool) where+   property prop = QC.monadicIO $ do (cond, r, modelVals) <- QC.run test+                                     QC.pre cond+                                     unless (r || null modelVals) $ QC.monitor (QC.counterexample (complain modelVals))+                                     QC.assert r+     where test = do (r, Result{resTraces=tvals, resObservables=ovals, resConsts=(_, cs), resConstraints=cstrs, resUIConsts=unints}) <-+                                 C.catch (runSymbolic defaultSMTCfg (Concrete Nothing) prop)+                                         (\(e :: C.SomeException) -> cantQuickCheck (show e))+++                     let cval = fromMaybe (cantQuickCheck "A constraint did not evaluate to a concrete boolean") . (`lookup` cs)+                         cond = -- Only pick-up "hard" constraints, as indicated by False in the fist component+                                and [cvToBool (cval v) | (False, _, v) <- F.toList cstrs]++                         getObservable (nm, f, v) = case v `lookup` cs of+                                                      Just cv -> if f cv then Just (nm, cv) else Nothing+                                                      Nothing -> cantQuickCheck "An observable did not evaluate to a concrete value"++                     case map fst unints of+                       [] -> case unliteral r of+                               Nothing -> cantQuickCheck "The result did not evaluate to a concrete value"+                               Just b  -> pure (cond, b, tvals ++ mapMaybe getObservable ovals)+                       uis -> cantQuickCheck $ "Uninterpreted constants remain: " ++ unwords uis++           complain qcInfo = showModel defaultSMTCfg (SMTModel [] Nothing qcInfo [])++-- Complain if what we got isn't something we can quick-check+cantQuickCheck :: String -> a+cantQuickCheck why = error $ unlines [ "*** Data.SBV: Cannot quickcheck the given property."+                                     , "***"+                                     , "*** Certain SBV properties cannot be quick-checked. In particular,"+                                     , "*** SBV can't quick-check in the presence of:"+                                     , "***"+                                     , "***   - Uninterpreted constants."+                                     , "***   - Uninterpreted types."+                                     , "***   - Floating point operations with rounding modes other than RNE."+                                     , "***   - Floating point FMA operation, regardless of rounding mode."+                                     , "***   - Quantified booleans, i.e., uses of Forall/Exists/ExistsUnique."+                                     , "***   - Uses of quantifiedBool"+                                     , "***   - Calls to 'observe' (use 'sObserve' instead)"+                                     , "***"+                                     , "*** If you can't avoid the above features or run into an issue with"+                                     , "*** quickcheck even though you haven't used these features, please report this as a bug!"+                                     , "***"+                                     , "*** Origin:"+                                     , "***"+                                     , why+                                     ]++-- | Quick check an SBV property. Note that a regular @quickCheck@ call will work just as+-- well. Use this variant if you want to receive the boolean result.+sbvQuickCheck :: Symbolic SBool -> IO Bool+sbvQuickCheck prop = QC.isSuccess <$> QC.quickCheckResult prop++-- Quickcheck interface on dynamically-typed values. A run-time check+-- ensures that the value has boolean type.+instance Testable (Symbolic SVal) where+  property m = property $ do s <- m+                             when (kindOf s /= KBool) $ error "Cannot quickcheck non-boolean value"+                             pure (SBV s :: SBool)++-- | Explicit sharing combinator. The SBV library has internal caching/hash-consing mechanisms+-- built in, based on Andy Gill's type-safe observable sharing technique (see: <http://ku-fpg.github.io/files/Gill-09-TypeSafeReification.pdf>).+-- However, there might be times where being explicit on the sharing can help, especially in experimental code. The 'slet' combinator+-- ensures that its first argument is computed once and passed on to its continuation, explicitly indicating the intent of sharing. Most+-- use cases of the SBV library should simply use Haskell's @let@ construct for this purpose.+slet :: forall a b. (HasKind a, HasKind b) => SBV a -> (SBV a -> SBV b) -> SBV b+slet x f = SBV $ SVal k $ Right $ cache r+    where k    = kindOf (Proxy @b)+          r st = do xsv <- sbvToSV st x+                    let xsbv = SBV $ SVal (kindOf x) (Right (cache (const (pure xsv))))+                        res  = f xsbv+                    sbvToSV st res++-- | Class of things that we can logically reduce to a boolean, by saturating and then asserting equivalence to itself+class QSaturate m a where+  qSaturate :: a -> m ()++-- | Base case; simple variable in the symbolic monad+instance SolverContext m => QSaturate m SBool where+  qSaturate b = constrain $ b .== b++-- | Saturate over a universal quantifier+instance (HasKind a, Monad m, SolverContext m, QSaturate m r) => QSaturate m (Forall nm a -> r) where+  qSaturate f = qSaturate . f . Forall =<< internalVariable (kindOf (Proxy @a))++-- | Saturate over a pair of universal quantifiers+instance (HasKind a, HasKind b, Monad m, SolverContext m, QSaturate m r) => QSaturate m ((Forall na a, Forall nb b) -> r) where+  qSaturate = qSaturate . curry++-- | Saturate over a pair of existential quantifiers+instance (HasKind a, HasKind b, Monad m, SolverContext m, QSaturate m r) => QSaturate m ((Exists na a, Exists nb b) -> r) where+  qSaturate = qSaturate . curry++-- | Saturate over a number of universal quantifiers+instance (KnownNat n, HasKind a, Monad m, SolverContext m, QSaturate m r) => QSaturate m (ForallN n nm a -> r) where+  qSaturate f = qSaturate . f . ForallN =<< replicateM (intOfProxy (Proxy @n)) (internalVariable (kindOf (Proxy @a)))++-- | Saturate over an existential quantifier+instance (HasKind a, Monad m, SolverContext m, QSaturate m r) => QSaturate m (Exists nm a -> r) where+  qSaturate f = qSaturate . f . Exists =<< internalVariable (kindOf (Proxy @a))++-- | Saturate over an a number of existential quantifiers+instance (KnownNat n, HasKind a, Monad m, SolverContext m, QSaturate m r) => QSaturate m (ExistsN n nm a -> r) where+  qSaturate f = qSaturate . f . ExistsN =<< replicateM (intOfProxy (Proxy @n)) (internalVariable (kindOf (Proxy @a)))++-- | Saturate over a unique-exists variable+instance (HasKind a, Monad m, SolverContext m, QSaturate m r) => QSaturate m (ExistsUnique nm a -> r) where+  qSaturate f = qSaturate . f . ExistsUnique =<< internalVariable (kindOf (Proxy @a))++-- | Saturate a predicate, but save/restore observables so they're not messed up.+qSaturateSavingObservables :: (Monad m, MonadIO m, SolverContext m, QSaturate m a) => a -> m ()+qSaturateSavingObservables p = do State{rObservables} <- contextState+                                  curObservables <- liftIO $ readIORef rObservables+                                  qSaturate p+                                  liftIO $ writeIORef rObservables curObservables++-- | Equality as a proof method. Allows for+-- very concise construction of equivalence proofs, which is very typical in+-- bit-precise proofs.+infix 4 ===+class Equality a where+  (===) :: a -> a -> IO ThmResult++instance {-# OVERLAPPABLE #-} (SymVal a, EqSymbolic z) => Equality (SBV a -> z) where+  k === l = prove $ \a -> k a .== l a++instance {-# OVERLAPPABLE #-} (SymVal a, SymVal b, EqSymbolic z) => Equality (SBV a -> SBV b -> z) where+  k === l = prove $ \a b -> k a b .== l a b++instance {-# OVERLAPPABLE #-} (SymVal a, SymVal b, EqSymbolic z) => Equality ((SBV a, SBV b) -> z) where+  k === l = prove $ \a b -> k (a, b) .== l (a, b)++instance {-# OVERLAPPABLE #-} (SymVal a, SymVal b, SymVal c, EqSymbolic z) => Equality (SBV a -> SBV b -> SBV c -> z) where+  k === l = prove $ \a b c -> k a b c .== l a b c++instance {-# OVERLAPPABLE #-} (SymVal a, SymVal b, SymVal c, EqSymbolic z) => Equality ((SBV a, SBV b, SBV c) -> z) where+  k === l = prove $ \a b c -> k (a, b, c) .== l (a, b, c)++instance {-# OVERLAPPABLE #-} (SymVal a, SymVal b, SymVal c, SymVal d, EqSymbolic z) => Equality (SBV a -> SBV b -> SBV c -> SBV d -> z) where+  k === l = prove $ \a b c d -> k a b c d .== l a b c d++instance {-# OVERLAPPABLE #-} (SymVal a, SymVal b, SymVal c, SymVal d, EqSymbolic z) => Equality ((SBV a, SBV b, SBV c, SBV d) -> z) where+  k === l = prove $ \a b c d -> k (a, b, c, d) .== l (a, b, c, d)++instance {-# OVERLAPPABLE #-} (SymVal a, SymVal b, SymVal c, SymVal d, SymVal e, EqSymbolic z) => Equality (SBV a -> SBV b -> SBV c -> SBV d -> SBV e -> z) where+  k === l = prove $ \a b c d e -> k a b c d e .== l a b c d e++instance {-# OVERLAPPABLE #-} (SymVal a, SymVal b, SymVal c, SymVal d, SymVal e, EqSymbolic z) => Equality ((SBV a, SBV b, SBV c, SBV d, SBV e) -> z) where+  k === l = prove $ \a b c d e -> k (a, b, c, d, e) .== l (a, b, c, d, e)++instance {-# OVERLAPPABLE #-} (SymVal a, SymVal b, SymVal c, SymVal d, SymVal e, SymVal f, EqSymbolic z) => Equality (SBV a -> SBV b -> SBV c -> SBV d -> SBV e -> SBV f -> z) where+  k === l = prove $ \a b c d e f -> k a b c d e f .== l a b c d e f++instance {-# OVERLAPPABLE #-}+ (SymVal a, SymVal b, SymVal c, SymVal d, SymVal e, SymVal f, EqSymbolic z) => Equality ((SBV a, SBV b, SBV c, SBV d, SBV e, SBV f) -> z) where+  k === l = prove $ \a b c d e f -> k (a, b, c, d, e, f) .== l (a, b, c, d, e, f)++instance {-# OVERLAPPABLE #-}+ (SymVal a, SymVal b, SymVal c, SymVal d, SymVal e, SymVal f, SymVal g, EqSymbolic z) => Equality (SBV a -> SBV b -> SBV c -> SBV d -> SBV e -> SBV f -> SBV g -> z) where+  k === l = prove $ \a b c d e f g -> k a b c d e f g .== l a b c d e f g++instance {-# OVERLAPPABLE #-} (SymVal a, SymVal b, SymVal c, SymVal d, SymVal e, SymVal f, SymVal g, EqSymbolic z) => Equality ((SBV a, SBV b, SBV c, SBV d, SBV e, SBV f, SBV g) -> z) where+  k === l = prove $ \a b c d e f g -> k (a, b, c, d, e, f, g) .== l (a, b, c, d, e, f, g)++-- | Reading a value from an array.+readArray :: forall key val. (SymVal key, SymVal val, HasKind val) => SArray key val -> SBV key -> SBV val+readArray array key+   | eqCheckIsObjectEq ka, Just (ArrayModel tbl def) <- unliteral array, Just _ <- unliteral key, Just r <- locate (unSBV key) def tbl+   = r+   | True+   = symRes+   where symRes = SBV . SVal kb . Right $ cache g+         ka = kindOf (Proxy @key)+         kb = kindOf (Proxy @val)+         g st = do f <- sbvToSV st array+                   k <- sbvToSV st key+                   newExpr st kb (SBVApp ReadArray [f, k])++         -- return the first value, since we don't bother deleting previous writes. Note that this might+         -- fail if we don't have equality; but that's OK; in that case we'll go symbolic.+         locate skey def vals = go vals+            where go []              = Just $ literal def+                  go ((k, v) : rest) = case unliteral (SBV (svStrongEqual skey (unSBV (literal k)))) of+                                          Nothing    -> Nothing+                                          Just True  -> Just $ literal v+                                          Just False -> go rest++-- | Writing a value to an array. For the concrete case, we don't bother deleting earlier entries, we keep a history. The earlier a value is in the list, the "later" it happened; in a stack fashion.+writeArray :: forall key val. (HasKind key, SymVal key, SymVal val, HasKind val) => SArray key val -> SBV key -> SBV val -> SArray key val+writeArray array key value+   | Just (ArrayModel tbl def) <- unliteral array, Just keyVal <- unliteral key, Just val <- unliteral value+   = literal $ ArrayModel ((keyVal, val) : tbl) def  -- It's important that we "cons" the value here, since it takes precedence in a read+   | True+   = SBV . SVal k . Right $ cache g+   where k  = KArray (kindOf (Proxy @key)) (kindOf (Proxy @val))++         g st = do arr    <- sbvToSV st array+                   keyVal <- sbvToSV st key+                   val    <- sbvToSV st value+                   newExpr st k (SBVApp WriteArray [arr, keyVal, val])++-- | Create a constant array. This is a special case of 'lambdaArray', but it creates a+-- simpler expression in the case of constants.+constArray :: forall key val. (SymVal key, SymVal val) => SBV val -> SArray key val+constArray v+  | Just v' <- unliteral v+  = literal $ ArrayModel [] v'+  | True+  = SBV . SVal k . Right $ cache g+  where ka = kindOf (Proxy @key)+        kb = kindOf (Proxy @val)+        k  = KArray ka kb++        g st = do sv <- sbvToSV st v+                  newExpr st k (SBVApp (ArrayInit (Left (ka, kb))) [sv])++-- | Create a completely free array, with no constraints on it, as an expression.+-- Note that you can create an array in the symbolic context with the regular 'free'+-- calls. (Or 'sArray' if you prefer.) This variant creates it as an expression, i.e.,+-- without having to be in the monadic context. We take a name identifier here as an+-- argument which uniquely identifies this array. Note that this is necessary, as otherwise+-- there would be no way to distinguish two different calls in the pure context. If you+-- use the same name, then you'll get the same array, much like uninterpreted functions.+freeArray :: forall key val. (SymVal key, SymVal val) => String -> SArray key val+freeArray = lambdaArray . uninterpret++-- | Using a lambda as an array. We can turn a function into an array, relating indexes+-- to their values. (That is, passing @f@ would create an array where entry @i@+-- is initialized to value @f i@.) For the special case of initializing with a constant+-- value, either pass @const val@, or use 'constArray'.+--+-- __Arrays vs. uninterpreted functions:__ The basic array theory provides only+-- @select@ ('readArray'), @store@ ('writeArray'), and @const@ ('constArray'). These operations+-- can only construct arrays that differ from a constant in finitely many positions. For instance,+-- the identity array (where @a[i] = i@ for every @i@) cannot be built from 'constArray' plus+-- finitely many 'writeArray' calls. The @lambdaArray@ function goes beyond this: it uses the+-- solver's ability to identify arrays with function spaces, allowing the creation of arrays like+-- @lambdaArray id@ that correspond to arbitrary functions.+--+-- This identification has a model-theoretic consequence. The pure array theory (with only+-- @select@\/@store@\/@const@) is a weaker theory: it admits models where the array sort does+-- not contain all functions, only those reachable by finitely many stores on constants. This means+-- certain formulas are satisfiable in the pure theory (because the solver has more freedom in choosing+-- what arrays exist) that become unsatisfiable when arrays are identified with functions (because the+-- richer array sort can provide counterexamples). In practice, modern solvers use the stronger+-- identification, so @lambdaArray@, 'constArray', and 'writeArray' all operate in this richer setting.+lambdaArray :: forall a b. (SymVal a, HasKind b) => (SBV a -> SBV b) -> SArray a b+lambdaArray f = SBV . SVal k . Right $ cache g+  where k = KArray (kindOf (Proxy @a)) (kindOf (Proxy @b))++        g st = do def <- lambdaStr st TopLevel (kindOf (Proxy @b)) f+                  newExpr st k (SBVApp (ArrayInit (Right def)) [])++-- | Turn a constant association-list and a default into a symbolic array.+listArray :: (SymVal a, SymVal b) => [(a, b)] -> b -> SArray a b+listArray ascs def = literal $ ArrayModel ascs def++-- | Create a closure, wrapping the free variables together with the function. When using higher-order functions+-- in SBV (like map), the function passed must be closed, i.e., not have any free variables. If you need to call+-- such a function with a function capturing a free variable, you should create a closure instead.+data Closure env a = Closure { closureEnv :: env+                             , closureFun :: env -> a+                             }++-- | Define a higher-order function. Similar to 'smtFunction', but when we have a higher-order argument. Note that+-- the higher-order argument cannot have free variables. Also, if the function is recursive, you should call+-- the first argument of the defining function, which SBV uses to tie the recursive knot. (Note that recursive+-- functions defined via 'smtFunction' don't have this latter requirement as they can figure out the recursion+-- automatically. Higher-order functions, unfortunately, can't do this: They firstify their high-order argument,+-- giving the whole function a unique name; captured via the call to the recursive definition.)+smtHOFunction :: forall a b f.+                 ( SMTDefinable (a -> SBV b)+                 , Lambda Symbolic f+                 , Lambda Symbolic (a -> SBV b)+                 , HasKind b+                 , HasKind f+                 , Typeable a+                 , Typeable b+                 , Typeable f+                 ) => String       -- prefix to use+                   -> f            -- The higher-order argument. We're very generic here!+                   -> (a -> SBV b) -- The ho-function we're modeling+                   ->  a -> SBV b  -- The resulting function, that can be used as is, and will be rendered in SMTLib without unfolding+smtHOFunction nm f = smtHOFunctionGen nm f AutoMeasure++-- | Like 'smtHOFunction', but with an explicit termination measure. Use this when the+-- auto-guess measure doesn't work for a higher-order recursive function.+smtHOFunctionWithMeasure :: forall a b f r.+                 ( SMTDefinable (a -> SBV b)+                 , Lambda Symbolic f+                 , Lambda Symbolic (a -> SBV b)+                 , HasKind b+                 , HasKind f+                 , Typeable a+                 , Typeable b+                 , Typeable f+                 , Zero r, OrdSymbolic (SBV r), SymVal r+                 , ApplyMeasure (a -> SBV b) r+                 ) => String                      -- ^ prefix to use+                   -> f                           -- ^ The higher-order argument+                   -> MeasureOf (a -> SBV b) r    -- ^ Termination measure+                   -> (a -> SBV b)                -- ^ The ho-function we're modeling+                   ->  a -> SBV b                 -- ^ The resulting function+smtHOFunctionWithMeasure nm f msr = smtHOFunctionGen nm f (HasMeasure (MeasureEval (applyMeasure @(a -> SBV b) @r msr)) [])++-- | Common implementation for higher-order SMT function definitions.+smtHOFunctionGen :: forall a b f.+                 ( SMTDefinable (a -> SBV b)+                 , Lambda Symbolic f+                 , Lambda Symbolic (a -> SBV b)+                 , HasKind b+                 , HasKind f+                 , Typeable a+                 , Typeable b+                 , Typeable f+                 ) => String               -- ^ prefix to use+                   -> f                    -- ^ The higher-order argument+                   -> Measure (a -> SBV b) -- ^ Termination measure+                   -> (a -> SBV b)         -- ^ The ho-function we're modeling+                   ->  a -> SBV b          -- ^ The resulting function+smtHOFunctionGen nm f measure hof arg = SBV $ SVal (kindOf (Proxy @(SBV b))) $ Right $ cache r+  where r st = do SMTLambda lam <- lambdaStr st HigherOrderArg (arrayResultKind (kindOf (Proxy @f))) f+                  let uniq = lambdaFingerprint st (T.unpack lam)+                  sbvToSV st (smtFunctionDef (atProxy (Proxy @f) nm <> "_" <> uniq) measure hof arg)++-- | Chase through nested array kinds to find the final result kind. Higher-order+-- arguments are firstified into arrays, so we peel off the array wrappers.+arrayResultKind :: Kind -> Kind+arrayResultKind (KArray _ k) = arrayResultKind k+arrayResultKind k            = k++-- | Generate a short fingerprint from a lambda body string, used to give+-- unique names to firstified higher-order function instantiations.+lambdaFingerprint :: State -> String -> String+lambdaFingerprint st lam = take uniqLen (BC.unpack (B.encode (hash (BC.pack (unwords (words lam))))))+  where uniqLen = firstifyUniqueLen $ stCfg st++{- HLint ignore module "Reduce duplication"   -}+{- HLint ignore module "Eta reduce"           -}+{- HLint ignore module "Avoid NonEmpty.unzip" -}+{- HLint ignore module "Redundant id"         -}+{- HLint ignore module "Use second"           -}
Data/SBV/Core/Operations.hs view
@@ -12,6 +12,7 @@ {-# LANGUAGE BangPatterns        #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TupleSections       #-}+{-# LANGUAGE ViewPatterns        #-}  {-# OPTIONS_GHC -Wall -Werror #-} @@ -19,9 +20,12 @@   (   -- ** Basic constructors     svTrue, svFalse, svBool-  , svInteger, svFloat, svDouble, svFloatingPoint, svReal, svEnumFromThenTo, svString, svChar+  , svInteger, svFloat, svDouble, svFloatingPoint, svRoundingMode+  , svReal, svEnumFromThenTo, svString, svChar   -- ** Basic destructors-  , svAsBool, svAsInteger, svNumerator, svDenominator+  , svAsBool, svAsInteger+  , svAsFloat, svAsDouble, svAsFP, svAsRoundingMode, cvAsRoundingMode+  , svNumerator, svDenominator   -- ** Basic operations   , svPlus, svTimes, svMinus, svUNeg, svAbs, svSignum   , svDivide, svQuot, svRem, svQuotRem, svDivides@@ -34,6 +38,13 @@   , svSelect   , svSign, svUnsign, svSetBit, svWordFromBE, svWordFromLE   , svExp, svFromIntegral+  , svFPNaN, svFPInf, svFPZero+  , svFPFromIntegerLit, svFPFromRationalLit+  , svFPIsZero, svFPIsInfinite, svFPIsNegative, svFPIsPositive+  , svFPIsNaN, svFPIsNormal, svFPIsSubnormal+  , svFPAdd, svFPSub, svFPMul, svFPDiv, svFPRem, svFPMin, svFPMax+  , svFPFMA, svFPAbs, svFPNeg, svFPRoundToIntegral, svFPSqrt+  , svCastToFP, svCastFromFP   -- ** Overflows   , svMkOverflow1, svMkOverflow2   -- ** Derived operations@@ -43,6 +54,7 @@   , svBarrelRotateLeft, svBarrelRotateRight   , svBlastLE, svBlastBE   , svAddConstant, svIncrement, svDecrement+  , svSWord32AsFloat, svSWord64AsDouble, svSWordAsFloatingPoint   , svFloatAsSWord32, svDoubleAsSWord64, svFloatingPointAsSWord   -- Utils   , mkSymOp@@ -51,8 +63,10 @@  import Prelude hiding (Foldable(..)) import Data.Bits (Bits(..))-import Data.List (genericIndex, genericLength, genericTake, foldr, length, foldl', elem, nub, sort)+import Data.List (genericIndex, genericLength, genericTake, foldr, length, foldl', elem, nub, sort, null, elemIndex) +import Data.Maybe (isNothing)+ import Data.SBV.Core.AlgReals import Data.SBV.Core.Kind import Data.SBV.Core.Concrete@@ -61,7 +75,7 @@  import Data.Ratio -import Data.SBV.Utils.Numeric (fpIsEqualObjectH, floatToWord, doubleToWord)+import Data.SBV.Utils.Numeric (RoundingMode(..), {-fp2fp,-} fpIsEqualObjectH, fpIsNormalizedH, fpMaxH, fpMinH, fpRemH, fpRoundToIntegralH, floatToWord, doubleToWord, wordToFloat, wordToDouble)  import LibBF @@ -97,6 +111,10 @@ svFloatingPoint f@(FP eb sb _) = SVal k (Left $! CV k (CFP f))   where k  = KFP eb sb +-- | Convert from a rounding mode+svRoundingMode :: RoundingMode -> SVal+svRoundingMode s = SVal kRoundingMode $ Left $ CV kRoundingMode $ CADT (show s, [])+ -- | Convert from a String svString :: String -> SVal svString s = SVal KString (Left $! CV KString (CString s))@@ -122,6 +140,35 @@ svAsInteger (SVal _ (Left (CV _ (CInteger n)))) = Just n svAsInteger _                                   = Nothing +-- | Extract a float from a concrete value.+svAsFloat :: SVal -> Maybe Float+svAsFloat (SVal _ (Left (CV _ (CFloat f)))) = Just f+svAsFloat _ = Nothing++-- | Extract a double from a concrete value.+svAsDouble :: SVal -> Maybe Double+svAsDouble (SVal _ (Left (CV _ (CDouble d)))) = Just d+svAsDouble _ = Nothing++-- | Extract an t'FP' from a concrete value.+svAsFP :: SVal -> Maybe FP+svAsFP (SVal _ (Left (CV _ (CFP fp)))) = Just fp+svAsFP _ = Nothing++-- | Extract a rounding mode from an t'SVal'.+svAsRoundingMode :: SVal -> Maybe RoundingMode+svAsRoundingMode (SVal _ (Left cv)) = cvAsRoundingMode cv+svAsRoundingMode _ = Nothing++-- | Extract a rounding mode from a t'CV'.+cvAsRoundingMode :: CV -> Maybe RoundingMode+cvAsRoundingMode (CV k (CADT (s, [])))+  | k == kRoundingMode+  , mbMode <- s `lookup` [(show m, m) | m <- [minBound .. maxBound :: RoundingMode]]+  = mbMode+cvAsRoundingMode _+  = Nothing+ -- | Grab the numerator of an SReal, if available svNumerator :: SVal -> Maybe Integer svNumerator (SVal KReal (Left (CV KReal (CAlgReal (AlgRational True r))))) = Just $ numerator r@@ -281,7 +328,7 @@     isInteger = kindOf x == KUnbounded      quot' a b | isInteger = div a (abs b) * signum b-              | otherwise = quot a b+              | True      = quot a b  -- | Remainder: Overloaded operation whose meaning depends on the kind at which -- it is used: For unbounded integers, it corresponds to the SMT-Lib@@ -301,7 +348,7 @@     isInteger = kindOf x == KUnbounded      rem' a b | isInteger = mod a (abs b)-             | otherwise = rem a b+             | True      = rem a b  -- | Combination of quot and rem svQuotRem :: SVal -> SVal -> (SVal, SVal)@@ -492,29 +539,6 @@       (CAlgReal     a, CAlgReal  b) | isExactRational a && isExactRational b -> Just $ a `compare` b                                     | True                                   -> Nothing -      -- Structural cases-      (CMaybe       a, CMaybe    b) -> case (a, b) of-                                         (Nothing, Nothing) -> Just EQ-                                         (Nothing, Just{})  -> Just LT-                                         (Just{},  Nothing) -> Just GT-                                         (Just av, Just bv) -> case k of-                                                                 KMaybe ke -> cCompare ke op av bv-                                                                 _         -> error $ "Unexpected kind in cCompare for maybe's: " ++ show k--      (CEither      a, CEither   b) -> let (kl, kr) = case k of-                                                        KEither l r -> (l, r)-                                                        _           -> error $ "Unexpected kind in cCompare for either's: " ++ show k-                                       in case (a, b) of-                                            (Left{},   Right{})  -> Just LT-                                            (Right{},  Left{})   -> Just GT-                                            (Left av,  Left  bv) -> cCompare kl op av bv-                                            (Right av, Right bv) -> cCompare kr op av bv--      -- Uninterpreted sorts use the index-      (CUserSort    a, CUserSort b) -> case (a, b) of-                                         ((Just i, _), (Just j, _)) -> Just $ i `compare` j-                                         _                          -> error $ "cCompare: Impossible happened while trying to compare: " ++ show (op, a, b)-       -- Lists and tuples use lexicographic ordering       (CList        a, CList b) -> case k of                                      KList ke -> lexCmp (map (ke,) a) (map (ke,) b)@@ -532,9 +556,7 @@                            -> case svSetEqual ke a b of                                  Nothing    -> Nothing  -- We don't know                                  Just True  -> Just EQ  -- They're equal-                                 Just False -> Just $ if op `elem` [Equal True, Equal False]-                                                         then GT  -- Pick GT, So equality    test will fail-                                                         else EQ  -- Pick EQ, So in-equality test will fail+                                 Just False -> Just GT  -- Pick GT; so equality test will fail, inequality will pass                            | True                            -> error $ "cCompare: Received unexpected set comparison: " ++ show (op, k) @@ -543,16 +565,48 @@                            -> case svArrEqual k1 k2 a b of                                 Nothing    -> Nothing  -- We don't know                                 Just True  -> Just EQ  -- They're equal-                                Just False -> Just $ if op `elem` [Equal True, Equal False]-                                                        then GT  -- Pick GT, So equality    test will fail-                                                        else EQ  -- Pick EQ, So in-equality test will fail+                                Just False -> Just GT  -- Pick GT; so equality test will fail, inequality will pass                            | True                            -> error $ "cCompare: Received unexpected array comparison: " ++ show (op, k) ++      -- ADTs. Only equal/inequal on full ADTs. Compares on enumerations.+      (CADT (s, fks), CADT (s', fks'))+         -> case k of+              -- Enumerations. We do a straight comparison on the constructor index+              KADT _ _ cstrs | all (null . snd) cstrs+                             -> let cnms = map fst cstrs+                                in case (s `elemIndex` cnms, s' `elemIndex` cnms) of+                                     (Just i, Just j) -> Just (i `compare` j)+                                     r                -> error $ "cCompare: Unable to locate indexes for CADT: " ++ show (k, s, s', r)++              -- Arbitrary ADTs. Only allow equality/inequality+              _ | op `notElem` [Equal True, Equal False, NotEqual]+                -> error $ "cCompare: Received unexpected ADT comparison: " ++ show (op, k)++                -- Different constructor+                | s /= s'+                -> Just GT -- Pick GT; so equality test will fail, inequality will pass++                -- Same constructor+                | map fst fks /= map fst fks'+                -> error $ "cCompare: Mismatching ADT field kinds in comparison: " ++ show (op, k, map fst fks, map fst fks')+                | True+                -> let fmatch    = zipWith (\(fk, v1) (_, v2) -> cCompare fk op v1 v2) fks fks'+                       undecided = any isNothing fmatch   -- Field comparison undecided+                       allEq     = all (== Just EQ) fmatch -- All fields Equal+                   in if undecided+                      then Nothing+                      else if allEq+                           then Just EQ+                           else -- all compared fine, but not all equal+                                Just GT -- Pick GT; so equality test will fail, inequality will pass++      -- Shouldn't happen:       _ -> error $ unlines [ ""                            , "*** Data.SBV.cCompare: Bug in SBV: Unhandled rank in comparison fallthru"                            , "***"-                           , "***   Ranks Received: " ++ show (cvRank x, cvRank y)+                           , "***   Ranks Received: " ++ show (cvRank x, cvRank y, op)                            , "***"                            , "*** Please report this as a bug!"                            ]@@ -594,7 +648,7 @@                defsMatch = def1 == def2                 -- Check if keys cover everything. Clearly, we can't do this for all kinds; but only finite ones-               -- For the time being, we're retricting ourselves to bool only. Might want to extend this later.+               -- For the time being, we're restricting ourselves to bool only. Might want to extend this later.                complete  = case k1 of                              KBool -> let bools       = map cvVal [falseCV, trueCV]                                           covered asc = all (`elem` map fst asc) bools@@ -923,8 +977,8 @@                               -- merge, but simplify for certain boolean cases:                              case () of-                               () | swa == swb                      -> return swa                                     -- if t then a      else a     ==> a-                               () | swa == trueSV && swb == falseSV -> return swt                                     -- if t then true   else false ==> t+                               () | swa == swb                      -> pure swa                                       -- if t then a      else a     ==> a+                               () | swa == trueSV && swb == falseSV -> pure swt                                       -- if t then true   else false ==> t                                () | swa == falseSV && swb == trueSV -> newExpr st k (SBVApp Not [swt])                -- if t then false  else true  ==> not t                                () | swa == trueSV                   -> newExpr st k (SBVApp Or  [swt, swb])           -- if t then true   else b     ==> t OR b                                () | swa == falseSV                  -> do swt' <- newExpr st KBool (SBVApp Not [swt])@@ -960,7 +1014,7 @@     r st = do sws <- mapM (svToSV st) xs               swe <- svToSV st err               if all (== swe) sws  -- off-chance that all elts are the same-                 then return swe+                 then pure swe                  else do idx <- getTableIndex st kInd kElt sws                          swi <- svToSV st ind                          let len = length xs@@ -1002,6 +1056,260 @@         y st   = do xsw <- svToSV st x                     newExpr st kTo (SBVApp (KindCast kFrom kTo) [xsw]) +-- | Create a NaN floating-point value of the given kind.+svFPNaN :: Kind -> SVal+svFPNaN k = SVal k $ Left $ fpConstCV k nan nan fpNaN+  where+    nan :: forall a. Floating a => a+    nan = 0/0++-- | Create an infinite floating-point value of the given kind. If the 'Bool'+-- argument is 'True', then use negative infinity; otherwise, use positive+-- infinity.+svFPInf :: Kind -> Bool -> SVal+svFPInf k neg = SVal k $ Left $ fpConstCV k signedInfinity signedInfinity (fpInf neg)+  where+    infinity :: forall a. Floating a => a+    infinity = 1/0++    signedInfinity :: forall a. Floating a => a+    signedInfinity = if neg then -infinity else infinity++-- | Create a signed zero value of the given kind. If the 'Bool' argument is+-- 'True', then use negative zero; otherwise, use positive zero.+svFPZero :: Kind -> Bool -> SVal+svFPZero k neg = SVal k $ Left $ fpConstCV k signedZero signedZero (fpZero neg)+  where+    signedZero :: forall a. Num a => a+    signedZero = if neg then -0 else 0++-- | Create a float-point value of the given kind from an 'Integer' literal.+svFPFromIntegerLit :: Kind -> Integer -> SVal+svFPFromIntegerLit k r = SVal k $ Left $ fpConstCV k (fromInteger r) (fromInteger r) (\eb sb -> fpFromInteger eb sb r)++-- | Create a float-point value of the given kind from a 'Rational' literal.+svFPFromRationalLit :: Kind -> Rational -> SVal+svFPFromRationalLit k r = SVal k $ Left $ fpConstCV k (fromRational r) (fromRational r) (\eb sb -> fpFromRational eb sb r)++-- | Is the given floating-point value a zero value?+svFPIsZero :: SVal -> SVal+svFPIsZero = liftFPPred (mkSymOp1 (IEEEFP FP_IsZero)) isZero isZero fpIsZero+  where+    isZero :: forall a. RealFloat a => a -> Bool+    isZero x = x == 0++-- | Is the given floating-point value infinite?+svFPIsInfinite :: SVal -> SVal+svFPIsInfinite = liftFPPred (mkSymOp1 (IEEEFP FP_IsInfinite)) isInfinite isInfinite fpIsInf++-- | Is the given floating-point value negative?+svFPIsNegative :: SVal -> SVal+svFPIsNegative = liftFPPred (mkSymOp1 (IEEEFP FP_IsNegative)) isNegative isNegative fpIsNeg+  where+    isNegative :: forall a. RealFloat a => a -> Bool+    isNegative x = x < 0 || isNegativeZero x++-- | Is the given floating-point value positive?+svFPIsPositive :: SVal -> SVal+svFPIsPositive = liftFPPred (mkSymOp1 (IEEEFP FP_IsPositive)) isPositive isPositive fpIsPos+  where+    isPositive :: forall a. RealFloat a => a -> Bool+    isPositive x = x >= 0 && not (isNegativeZero x)++-- | Is the given floating-point value a NaN value?+svFPIsNaN :: SVal -> SVal+svFPIsNaN = liftFPPred (mkSymOp1 (IEEEFP FP_IsNaN)) isNaN isNaN fpIsNaN++-- | Is the given floating-point value \"normal\"? That is, is the value not+-- zero, infinite, NaN, or subnormal?+svFPIsNormal :: SVal -> SVal+svFPIsNormal = liftFPPred (mkSymOp1 (IEEEFP FP_IsNormal)) fpIsNormalizedH fpIsNormalizedH fpIsNormal++-- | Is the given floating-point value subnormal (i.e., denormalized)?+svFPIsSubnormal :: SVal -> SVal+svFPIsSubnormal = liftFPPred (mkSymOp1 (IEEEFP FP_IsSubnormal)) isDenormalized isDenormalized fpIsSubnormal++-- | Floating-point addition.+svFPAdd :: SVal -- ^ Rounding mode+        -> SVal -> SVal -> SVal+svFPAdd = liftFPSymRM2 "add" (mkSymOp3 (IEEEFP FP_Add)) (+) (+) fpAdd++-- | Floating-point subtraction.+svFPSub :: SVal -- ^ Rounding mode+        -> SVal -> SVal -> SVal+svFPSub = liftFPSymRM2 "sub" (mkSymOp3 (IEEEFP FP_Sub)) (-) (-) fpSub++-- | Floating-point multiplication.+svFPMul :: SVal -- ^ Rounding mode+        -> SVal -> SVal -> SVal+svFPMul = liftFPSymRM2 "mul" (mkSymOp3 (IEEEFP FP_Mul)) (*) (*) fpMul++-- | Floating-point division.+svFPDiv :: SVal -- ^ Rounding mode+        -> SVal -> SVal -> SVal+svFPDiv = liftFPSymRM2 "div" (mkSymOp3 (IEEEFP FP_Div)) (/) (/) fpDiv++-- | Floating-point remainder.+svFPRem :: SVal -> SVal -> SVal+svFPRem = liftFPSym2 "rem" (mkSymOp (IEEEFP FP_Rem)) fpRemH fpRemH (fpRem RoundNearestTiesToEven)++-- | Floating-point minimum.+svFPMin :: SVal -> SVal -> SVal+svFPMin = liftFPSym2 "min" (mkSymOp (IEEEFP FP_Min)) fpMinH fpMinH fpMin++-- | Floating-point maximum.+svFPMax :: SVal -> SVal -> SVal+svFPMax = liftFPSym2 "max" (mkSymOp (IEEEFP FP_Max)) fpMaxH fpMaxH fpMax++-- | Floating-point fused-multiply-add (FMA).++-- Note that this operation is defined somewhat unusually because Haskell lacks+-- a native FMA operation to use for concrete evaluation of 'Float's and+-- 'Double's. See https://github.com/LeventErkok/sbv/issues/777 for more+-- discussion. As such, concrete FMA evaluation is only supported for t'FP'+-- values.+svFPFMA :: SVal -- ^ Rounding mode+        -> SVal -> SVal -> SVal -> SVal+svFPFMA (svAsRoundingMode -> Just rm)+        (SVal k (Left (cvVal -> CFP a)))+        (SVal _ (Left (cvVal -> CFP b)))+        (SVal _ (Left (cvVal -> CFP c))) =+  SVal k $ Left $ CV k $ CFP $ fpFMA rm a b c+svFPFMA rm a@(SVal k _) b c = SVal k $ Right $ cache ca+   where ca st = do svrm <- svToSV st rm+                    sva <- svToSV st a+                    svb <- svToSV st b+                    svc <- svToSV st c+                    newExpr st k (SBVApp (IEEEFP FP_FMA) [svrm, sva, svb, svc])++-- | Floating-point absolute value.+svFPAbs :: SVal -> SVal+svFPAbs = liftFPSym1 "abs" (mkSymOp1 (IEEEFP FP_Abs)) abs abs fpAbs++-- | Floating-point negation.+svFPNeg :: SVal -> SVal+svFPNeg = liftFPSym1 "negate" (mkSymOp1 (IEEEFP FP_Neg)) negate negate fpNeg++-- | Round the given floating-point value to the nearest integer (represented+-- as a float with a zero decimal component) using the given rounding mode.+svFPRoundToIntegral :: SVal -- ^ Rounding mode+                    -> SVal -> SVal+svFPRoundToIntegral = liftFPSymRM1 "roundToIntegral" (mkSymOp (IEEEFP FP_RoundToIntegral)) fpRoundToIntegralH fpRoundToIntegralH fpRoundInt++-- | Floating-point square root.+svFPSqrt :: SVal -- ^ Rounding mode+         -> SVal -> SVal+svFPSqrt = liftFPSymRM1 "sqrt" (mkSymOp (IEEEFP FP_Sqrt)) sqrt sqrt fpSqrt++-- | Cast an t'FP' value to a t'CV' of the given floating-point 'Kind' using the+-- given 'RoundingMode'. This will error if given a non-floating-point 'Kind'.+cvCastFromFP :: Kind -> RoundingMode -> FP -> CV+cvCastFromFP kindTo rm fp =+  fpConstCV+    kindTo+    (fpToFloat rm (fpRoundFloat 8 24 rm fp))+    (fpToDouble rm (fpRoundFloat 11 53 rm fp))+    (\eb sb -> fpRoundFloat eb sb rm fp)++-- | Cast a 'Rational' value to a t'CV' of the given floating-point 'Kind'. This+-- will error if given a non-floating-point 'Kind'.+cvCastFromRational :: Kind -> Rational -> CV+cvCastFromRational kindTo r =+  fpConstCV+    kindTo+    (fromRational r)+    (fromRational r)+    (\eb sb -> fpFromRational eb sb r)++-- | Convert a 'CVal' to an t'FP' value of the appropriate size. This will error+-- if the 'CVal' is not a floating-point value.+cvalToFP :: CVal -> FP+cvalToFP (CFloat f) = fpFromFloat 8 24 f+cvalToFP (CDouble d) = fpFromDouble 11 53 d+cvalToFP (CFP fp) = fp+cvalToFP _ = error "cvalToFP: non-float value"++-- | Convert a value to a floating-point value. The type being converted from+-- must be one of 'KFloat', 'KDouble', 'KFP', 'KBounded', 'KUnbounded', or+-- 'KReal'.+--+-- Note that converting from a 'KBounded' value returns a float with the same+-- numeric value as the input bitvector. For a conversion that returns a float+-- with the same bit pattern as the input bitvector, see 'svSWord32AsFloat',+-- 'svSWord64AsDouble', and 'svSWordAsFloatingPoint'.+svCastToFP :: Kind -- ^ The kind to cast to. Must be a floating-point kind.+           -> SVal -- ^ Rounding mode+           -> SVal -- ^ The value to be casted.+           -> SVal+svCastToFP kindTo (svAsRoundingMode -> Just rm) x@(SVal kindFrom (Left (CV _ x')))+  | kindFrom == kindTo+  = x++  | KFloat {} <- kindFrom+  = fpCastFromFloat+  | KDouble {} <- kindFrom+  = fpCastFromFloat+  | KFP {} <- kindFrom+  = fpCastFromFloat++  | RoundNearestTiesToEven <- rm+  , KBounded {} <- kindFrom+  , CInteger w <- x'+  = fpCastFromIntegral w+  | RoundNearestTiesToEven <- rm+  , KUnbounded {} <- kindFrom+  , CInteger i <- x'+  = fpCastFromIntegral i++  | RoundNearestTiesToEven <- rm+  , CAlgReal r <- x'+  , isExactRational r+  = SVal kindTo $ Left $ cvCastFromRational kindTo $ toRational r+  where fpCastFromFloat :: SVal+        fpCastFromFloat = SVal kindTo $ Left $ cvCastFromFP kindTo rm $ cvalToFP x'++        fpCastFromIntegral :: forall a. Integral a => a -> SVal+        fpCastFromIntegral =+          SVal kindTo . Left . cvCastFromRational kindTo . fromIntegral+svCastToFP kindTo rm x@(SVal kindFrom _)+  = SVal kindTo $ Right $ cache y+  where y st = do svrm <- svToSV st rm+                  svx <- svToSV st x+                  mkSymOp (IEEEFP (FP_Cast kindFrom kindTo svrm)) st kindTo svrm svx++-- | Convert a floating-point value to a value of a different type. The type to+-- convert to must be one of 'KFloat', 'KDouble', 'KFP', 'KBounded',+-- 'KUnbounded', or 'KReal'.+--+-- Note that converting to 'KBounded' returns a bitvector with the same numeric+-- value as the input float (appropriately rounded). For a lossless conversion+-- that returns a bitvector with the same bit pattern as the input float, see+-- 'svFloatAsSWord32', 'svDoubleAsSWord64', and 'svFloatingPointAsSWord'.+svCastFromFP :: Kind -- ^ The kind to cast to.+             -> SVal -- ^ Rounding mode+             -> SVal -- ^ The value to be casted. Must be a floating-point value.+             -> SVal+svCastFromFP kindTo (svAsRoundingMode -> Just rm) x@(SVal kindFrom (Left (CV _ x')))+  | kindFrom == kindTo+  = x++  | KFloat {} <- kindTo+  = fpCastToFloat+  | KDouble {} <- kindTo+  = fpCastToFloat+  | KFP {} <- kindTo+  = fpCastToFloat+  -- No constant-folding for KBounded, KUnbounded, or KReal, as each of these+  -- conversions are partial. Rather than painstakingly check which inputs are+  -- valid, we simply defer to the underlying SMT-LIB operations.+  where fpCastToFloat :: SVal+        fpCastToFloat = SVal kindTo $ Left $ cvCastFromFP kindTo rm $ cvalToFP x'+svCastFromFP kindTo rm x@(SVal kindFrom _)+  = SVal kindTo $ Right $ cache y+  where y st = do svrm <- svToSV st rm+                  svx <- svToSV st x+                  mkSymOp (IEEEFP (FP_Cast kindFrom kindTo svrm)) st kindTo svrm svx+ -------------------------------------------------------------------------------- -- Derived operations @@ -1132,7 +1440,7 @@                                        | True   = Shr                                  adjustedShift <- if kx == ki-                                                 then return sw2+                                                 then pure sw2                                                  else newExpr st kx (SBVApp (KindCast ki kx) [sw2])                                  newExpr st kx (SBVApp op [sw1, adjustedShift])@@ -1358,20 +1666,119 @@ liftSym2 _   okCV opCR opCI opCF opCD opFP opRA (SVal k (Left a)) (SVal _ (Left b)) | and [f a b | f <- okCV] = SVal k . Left  $! mapCV2 opCR opCI opCF opCD opFP opRA a b liftSym2 opS _    _    _    _    _    _  _      a@(SVal k _)      b                                           = SVal k $ Right $  liftSV2 opS k a b +-- | Lift a unary floating-point operation that can work over 'Float',+-- 'Double', and t'FP' values.+liftFPSym1 :: String+           -> (State -> Kind -> SV -> IO SV)+           -> (Float -> Float)+           -> (Double -> Double)+           -> (FP -> FP)+           -> SVal -> SVal+liftFPSym1 o _ opCF opCD opFP (SVal k (Left a))+  = SVal k . Left  $! mapCV (noRealUnary o) (noIntUnary o) opCF opCD opFP (noRatUnary o) a+liftFPSym1 _ opS _ _ _ a@(SVal k _) = SVal k $ Right $ cache c+   where c st = do sva <- svToSV st a+                   opS st k sva++-- | Like 'liftFPSym1', but with an explicit rounding mode. Note that concrete+-- evaluation of 'Float's or 'Double's is only supported when the+-- 'RoundNearestTiesToEven' rounding mode is used (see the Haddocks for+-- 'floatDoubleRneCheck').+liftFPSymRM1 :: String+             -> (State -> Kind -> SV -> SV -> IO SV)+             -> (Float -> Float)+             -> (Double -> Double)+             -> (RoundingMode -> FP -> FP)+             -> SVal -> SVal -> SVal+liftFPSymRM1 o _ opCF opCD opFP rm (SVal k (Left a))+  | Just rm'@RoundNearestTiesToEven <- svAsRoundingMode rm+  , floatDoubleRneCheck rm' a+  = SVal k . Left $! mapCV (noRealUnary o) (noIntUnary o) opCF opCD (opFP rm') (noRatUnary o) a+liftFPSymRM1 _ opS _ _ _ rm a@(SVal k _) = SVal k $ Right $ cache c+   where c st = do svrm <- svToSV st rm+                   sva <- svToSV st a+                   opS st k svrm sva++-- | Lift a binary floating-point operation that can work over 'Float',+-- 'Double', and t'FP' values.+liftFPSym2 :: String+           -> (State -> Kind -> SV -> SV -> IO SV)+           -> (Float -> Float -> Float)+           -> (Double -> Double -> Double)+           -> (FP -> FP -> FP)+           -> SVal -> SVal -> SVal+liftFPSym2 o _ opCF opCD opFP (SVal k (Left a)) (SVal _ (Left b))+  = SVal k . Left $! mapCV2 (noReal o) (noInt o) opCF opCD opFP (noRat o) a b+liftFPSym2 _ opS _ _ _ a@(SVal k _) b = SVal k $ Right $ cache c+   where c st = do sva <- svToSV st a+                   svb <- svToSV st b+                   opS st k sva svb++-- | Like 'liftFPSym2', but with an explicit rounding mode. Note that concrete+-- evaluation of 'Float's or 'Double's is only supported when the+-- 'RoundNearestTiesToEven' rounding mode is used (see the Haddocks for+-- 'floatDoubleRneCheck').+liftFPSymRM2 :: String+             -> (State -> Kind -> SV -> SV -> SV -> IO SV)+             -> (Float -> Float -> Float)+             -> (Double -> Double -> Double)+             -> (RoundingMode -> FP -> FP -> FP)+             -> SVal -> SVal -> SVal -> SVal+liftFPSymRM2 o _ opCF opCD opFP rm (SVal k (Left a)) (SVal _ (Left b))+  | Just rm'@RoundNearestTiesToEven <- svAsRoundingMode rm+  , floatDoubleRneCheck rm' a+  = SVal k . Left $! mapCV2 (noReal o) (noInt o) opCF opCD (opFP rm') (noRat o) a b+liftFPSymRM2 _ opS _ _ _ rm a@(SVal k _) b = SVal k $ Right $ cache c+   where c st = do svrm <- svToSV st rm+                   sva <- svToSV st a+                   svb <- svToSV st b+                   opS st k svrm sva svb++-- | Lift a unary floating-point predicate that can work over 'Float',+-- 'Double', and t'FP' values.+liftFPPred :: (State -> Kind -> SV -> IO SV)+           -> (Float -> Bool)+           -> (Double -> Bool)+           -> (FP -> Bool)+           -> SVal -> SVal+liftFPPred _ opCF opCD opFP (SVal k (Left a)) =+  case cvVal a of+    CFloat f -> svBool $ opCF f+    CDouble d -> svBool $ opCD d+    CFP fp -> svBool $ opFP fp++    CAlgReal {} -> unexpected+    CInteger {} -> unexpected+    CRational {} -> unexpected+    CChar {} -> unexpected+    CString {} -> unexpected+    CList {} -> unexpected+    CSet {} -> unexpected+    CADT {} -> unexpected+    CTuple {} -> unexpected+    CArray {} -> unexpected+  where unexpected = error $ "Data.SBV.liftFPPred: Unexpected kind: " ++ show k+liftFPPred opS _ _ _ a = SVal KBool $ Right $ cache c+   where c st = do sva <- svToSV st a+                   opS st KBool sva+ -- | Create a symbolic two argument operation; with shortcut optimizations mkSymOpSC :: (SV -> SV -> Maybe SV) -> Op -> State -> Kind -> SV -> SV -> IO SV-mkSymOpSC shortCut op st k a b = maybe (newExpr st k (SBVApp op [a, b])) return (shortCut a b)+mkSymOpSC shortCut op st k a b = maybe (newExpr st k (SBVApp op [a, b])) pure (shortCut a b)  -- | Create a symbolic two argument operation; no shortcut optimizations mkSymOp :: Op -> State -> Kind -> SV -> SV -> IO SV mkSymOp = mkSymOpSC (const (const Nothing))  mkSymOp1SC :: (SV -> Maybe SV) -> Op -> State -> Kind -> SV -> IO SV-mkSymOp1SC shortCut op st k a = maybe (newExpr st k (SBVApp op [a])) return (shortCut a)+mkSymOp1SC shortCut op st k a = maybe (newExpr st k (SBVApp op [a])) pure (shortCut a)  mkSymOp1 :: Op -> State -> Kind -> SV -> IO SV mkSymOp1 = mkSymOp1SC (const Nothing) +mkSymOp3 :: Op -> State -> Kind -> SV -> SV -> SV -> IO SV+mkSymOp3 op st k a b c = newExpr st k (SBVApp op [a, b, c])+ -- | Predicate to check if a value is concrete isConcrete :: SVal -> Bool isConcrete (SVal _ Left{}) = True@@ -1434,6 +1841,26 @@ rationalSBVCheck (SVal KReal (Left a)) (SVal KReal (Left b)) = rationalCheck a b rationalSBVCheck _                     _                     = True +-- | Predicate to check if a concrete 'Float' or 'Double' value uses the+-- 'RoundNearestTiesToEven' rounding mode. This is necessary because we assume+-- this rounding mode when concretely evaluating 'Float's and 'Double's, so+-- concrete evaluation is not supported for other rounding modes.+--+-- Note that this check skips concrete t'FP' values, which support concrete+-- evaluation with any rounding mode.+floatDoubleRneCheck :: RoundingMode -> CV -> Bool+floatDoubleRneCheck rm cv =+  case cvKind cv of+    KFloat -> rmIsRne+    KDouble -> rmIsRne+    _ -> True+  where+    rmIsRne | RoundNearestTiesToEven <- rm = True+            | True                         = False++noInt :: String -> Integer -> Integer -> a+noInt o a b = error $ "SBV.Integer." ++ o ++ ": Unexpected arguments: " ++ show (a, b)+ noReal :: String -> AlgReal -> AlgReal -> a noReal o a b = error $ "SBV.AlgReal." ++ o ++ ": Unexpected arguments: " ++ show (a, b) @@ -1449,6 +1876,9 @@ noRat:: String -> Rational -> Rational -> a noRat o a b = error $ "SBV.Rational." ++ o ++ ": Unexpected arguments: " ++ show (a, b) +noIntUnary :: String -> Integer -> a+noIntUnary o a = error $ "SBV.Integer." ++ o ++ ": Unexpected argument: " ++ show a+ noRealUnary :: String -> AlgReal -> a noRealUnary o a = error $ "SBV.AlgReal." ++ o ++ ": Unexpected argument: " ++ show a @@ -1471,10 +1901,6 @@    = x `svLessThan` y    | KTuple{} <- kx    = tupleLT x y-   | KMaybe{}  <- kx-   = maybeLT x y-   | KEither{} <- kx-   = eitherLT x y    | True    = x `svLessThan` y    where kx = kindOf x@@ -1503,52 +1929,58 @@                      svToSV st $ walk $ zipWith chkElt [1..] ks --- | Structural less-than for maybes-maybeLT :: SVal -> SVal -> SVal-maybeLT x y = sMaybeCase (       sMaybeCase svFalse (const svTrue)    y)-                         (\jx -> sMaybeCase svFalse (jx `svStructuralLessThan`) y)-                         x-  where ka = case kindOf x of-               KMaybe k' -> k'-               k         -> error $ "Data.SBV: Impossible happened, maybeLT called with: " ++ show (k, x, y)--        sMaybeCase brNothing brJust s = SVal KBool $ Right $ cache res-           where res st = do sv <- svToSV st s--                             let justVal = SVal ka $ Right $ cache $ \_ -> newExpr st ka $ SBVApp MaybeAccess [sv]-                                 justRes = brJust justVal--                             br1 <- svToSV st brNothing-                             br2 <- svToSV st justRes--                             -- Do we have a value?-                             noVal <- newExpr st KBool $ SBVApp (MaybeIs ka False) [sv]-                             newExpr st KBool $ SBVApp Ite [noVal, br1, br2]---- | Structural less-than for either-eitherLT :: SVal -> SVal -> SVal-eitherLT x y = sEitherCase (\lx -> sEitherCase (lx `svStructuralLessThan`) (const svTrue)              y)-                           (\rx -> sEitherCase (const svFalse)             (rx `svStructuralLessThan`) y)-                           x-  where (ka, kb) = case kindOf x of-                     KEither k1 k2 -> (k1, k2)-                     k             -> error $ "Data.SBV: Impossible happened, eitherLT called with: " ++ show (k, x, y)--        sEitherCase brA brB sab = SVal KBool $ Right $ cache res-          where res st = do abv <- svToSV st sab--                            let leftVal  = SVal ka $ Right $ cache $ \_ -> newExpr st ka $ SBVApp (EitherAccess False) [abv]-                                rightVal = SVal kb $ Right $ cache $ \_ -> newExpr st kb $ SBVApp (EitherAccess True)  [abv]--                                leftRes  = brA leftVal-                                rightRes = brB rightVal+-- | Convert an 'Data.SBV.SWord32' to an 'Data.SBV.SFloat', preserving the+-- bit-correspondence. Note that since the representation for @NaN@s are not+-- unique, there are multiple word values for which this function will return a+-- single, distinguished @NaN@ value.+svSWord32AsFloat :: SVal -> SVal+svSWord32AsFloat w@(SVal kindFrom x)+  | KBounded _ 32 <- kindFrom+  = case x of+      Left (CV _ (CInteger w'))+        -> SVal kindTo $ Left $ CV kindTo $ CFloat $ wordToFloat $ fromInteger w'+      _ -> SVal kindTo $ Right $ cache y+  | True+  = error $ "svSWord32AsFloat: not a 32-bit word type: " ++ show kindFrom+  where kindTo = KFloat+        y st = do svw <- svToSV st w+                  mkSymOp1 (IEEEFP (FP_Reinterpret kindFrom kindTo)) st kindTo svw -                            br1 <- svToSV st leftRes-                            br2 <- svToSV st rightRes+-- | Convert an 'Data.SBV.SWord64' to an 'Data.SBV.SDouble', preserving the+-- bit-correspondence. Note that since the representation for @NaN@s are not+-- unique, there are multiple word values for which this function will return a+-- single, distinguished @NaN@ value.+svSWord64AsDouble :: SVal -> SVal+svSWord64AsDouble w@(SVal kindFrom x)+  | KBounded _ 64 <- kindFrom+  = case x of+      Left (CV _ (CInteger w'))+        -> SVal kindTo $ Left $ CV kindTo $ CDouble $ wordToDouble $ fromInteger w'+      _ -> SVal kindTo $ Right $ cache y+  | True+  = error $ "svSWord64AsDouble: not a 64-bit word type: " ++ show kindFrom+  where kindTo = KDouble+        y st = do svw <- svToSV st w+                  mkSymOp1 (IEEEFP (FP_Reinterpret kindFrom kindTo)) st kindTo svw -                            --  Which branch are we in? Return the appropriate value:-                            onLeft <- newExpr st KBool $ SBVApp (EitherIs ka kb False) [abv]-                            newExpr st KBool $ SBVApp Ite [onLeft, br1, br2]+-- | Convert a word to a float (using the given exponent and significand sizes)+-- containing the word's corresponding bit pattern. Note that since the+-- representation for @NaN@s are not unique, there are multiple word values for+-- which this function will return a single, distinguished @NaN@ value.+svSWordAsFloatingPoint :: Int -- ^ Exponent size+                       -> Int -- ^ Significand size+                       -> SVal -> SVal+svSWordAsFloatingPoint eb sb w@(SVal kindFrom x)+  | KBounded _ _ <- kindFrom+  = case x of+      Left (CV _ (CInteger w'))+        -> SVal kindTo $ Left $ CV kindTo $ CFP $ fpFromBits eb sb $ fromInteger w'+      _ -> SVal kindTo $ Right $ cache y+  | True+  = error $ "svSWordAsFloatingPoint: non-word type: " ++ show kindFrom+  where kindTo = KFP eb sb+        y st = do svw <- svToSV st w+                  mkSymOp1 (IEEEFP (FP_Reinterpret kindFrom kindTo)) st kindTo svw  -- | Convert an 'Data.SBV.SFloat' to an 'Data.SBV.SWord32', preserving the bit-correspondence. Note that since the -- representation for @NaN@s are not unique, this function will return a symbolic value when given a@@ -1572,8 +2004,8 @@                              newExpr st w32 (SBVApp (IEEEFP (FP_Reinterpret KFloat w32)) [f])                      else do n   <- newInternalVariable st w32                              ysw <- newExpr st KFloat (SBVApp (IEEEFP (FP_Reinterpret w32 KFloat)) [n])-                             internalConstraint st False [] $ fVal `svStrongEqual` SVal KFloat (Right (cache (\_ -> return ysw)))-                             return n+                             internalConstraint st False [] $ fVal `svStrongEqual` SVal KFloat (Right (cache (\_ -> pure ysw)))+                             pure n svFloatAsSWord32 (SVal k _) = error $ "svFloatAsSWord32: non-float type: " ++ show k  -- | Convert an 'Data.SBV.SDouble' to an 'Data.SBV.SWord64', preserving the bit-correspondence. Note that since the@@ -1598,8 +2030,8 @@                              newExpr st w64 (SBVApp (IEEEFP (FP_Reinterpret KDouble w64)) [f])                      else do n   <- newInternalVariable st w64                              ysw <- newExpr st KDouble (SBVApp (IEEEFP (FP_Reinterpret w64 KDouble)) [n])-                             internalConstraint st False [] $ fVal `svStrongEqual` SVal KDouble (Right (cache (\_ -> return ysw)))-                             return n+                             internalConstraint st False [] $ fVal `svStrongEqual` SVal KDouble (Right (cache (\_ -> pure ysw)))+                             pure n svDoubleAsSWord64 (SVal k _) = error $ "svDoubleAsSWord64: non-float type: " ++ show k  -- | Convert a float to the word containing the corresponding bit pattern@@ -1617,8 +2049,8 @@                              newExpr st kTo (SBVApp (IEEEFP (FP_Reinterpret kFrom kTo)) [f])                      else do n   <- newInternalVariable st kTo                              ysw <- newExpr st kFrom (SBVApp (IEEEFP (FP_Reinterpret kTo kFrom)) [n])-                             internalConstraint st False [] $ fVal `svStrongEqual` SVal kFrom (Right (cache (\_ -> return ysw)))-                             return n+                             internalConstraint st False [] $ fVal `svStrongEqual` SVal kFrom (Right (cache (\_ -> pure ysw)))+                             pure n svFloatingPointAsSWord (SVal k _) = error $ "svFloatingPointAsSWord: non-float type: " ++ show k  {- HLint ignore svIte     "Eta reduce"         -}
Data/SBV/Core/Sized.hs view
@@ -11,7 +11,6 @@ -----------------------------------------------------------------------------  {-# LANGUAGE DataKinds            #-}-{-# LANGUAGE FlexibleInstances    #-} {-# LANGUAGE ScopedTypeVariables  #-} {-# LANGUAGE TypeApplications     #-} {-# LANGUAGE TypeFamilies         #-}@@ -218,7 +217,7 @@  -- | Quickcheck instance for WordN instance KnownNat n => Arbitrary (WordN n) where-  arbitrary = (WordN . norm . abs) `fmap` arbitrary+  arbitrary = WordN . norm . abs <$> arbitrary     where sz = intOfProxy (Proxy @n)            norm v | sz == 0 = 0@@ -226,7 +225,7 @@  -- | Quickcheck instance for IntN instance KnownNat n => Arbitrary (IntN n) where-  arbitrary = (IntN . norm) `fmap` arbitrary+  arbitrary = IntN . norm <$> arbitrary     where sz = intOfProxy (Proxy @n)            norm v | sz == 0 = 0
Data/SBV/Core/SizedFloats.hs view
@@ -9,9 +9,8 @@ -- Type-level sized floats. ----------------------------------------------------------------------------- -{-# LANGUAGE DeriveDataTypeable   #-} {-# LANGUAGE DataKinds            #-}-{-# LANGUAGE FlexibleInstances    #-}+{-# LANGUAGE DeriveDataTypeable   #-} {-# LANGUAGE ScopedTypeVariables  #-} {-# LANGUAGE TypeApplications     #-} {-# LANGUAGE TypeFamilies         #-}@@ -24,13 +23,22 @@           FloatingPoint(..), FP(..), FPHalf, FPBFloat, FPSingle, FPDouble, FPQuad          -- * Constructing values-        , fpFromRawRep, fpFromBigFloat, fpNaN, fpInf, fpZero+        , fpFromRawRep, fpFromBigFloat, fpFromBits, fpNaN, fpInf, fpZero          -- * Operations-        , fpFromInteger, fpFromRational, fpFromFloat, fpFromDouble, fpEncodeFloat+        , fpFromInteger, fpFromRational, fpFromFloat, fpFromDouble+        , fpToFloat, fpToDouble+        , fpEncodeFloat+        , fpIsFinite, fpIsInf, fpIsZero, fpIsNaN+        , fpIsNormal, fpIsSubnormal, fpIsNeg, fpIsPos+        , fpNeg, fpAbs, fpSignum+        , fpAdd, fpSub, fpMul, fpDiv, fpPow, fpRem, fpSqrt, fpFMA+        , fpRoundFloat, fpRoundInt+        , fpMax, fpMin          -- * Internal operations        , arbFPIsEqualObjectH, arbFPCompareObjectH, fprToSMTLib2, mkBFOpts, bfToString, bfRemoveRedundantExp+       , roundingModeToRoundMode        ) where  import Data.Char (intToDigit)@@ -43,7 +51,7 @@ import Numeric  import Data.SBV.Core.Kind-import Data.SBV.Utils.Numeric (floatToWord)+import Data.SBV.Utils.Numeric (RoundingMode(..), floatToWord, fp2fp)  import LibBF (BigFloat, BFOpts, RoundMode, Status, BFRep(..), BFNum(..), bfToRep, Sign(Neg)) import qualified LibBF as BF@@ -101,7 +109,7 @@ -- | Abbreviation for IEEE double precision float, bit width 64 = 11 + 53. type FPDouble = FloatingPoint 11 53 --- | Abbreviation for IEEE quadruble precision float, bit width 128 = 15 + 113.+-- | Abbreviation for IEEE quadruple precision float, bit width 128 = 15 + 113. type FPQuad = FloatingPoint 15 113  -- | Show instance for Floats. By default we print in base 10, with standard scientific notation.@@ -114,8 +122,8 @@ -- then the total number of floats is 2^sb*(2^eb-1) + 3: All exponents except 11..11 -- is allowed. So we get, 2^eb-1, different combinations, each with a sign, giving -- us 2^sb*(2^eb-1) totals. Then we have two infinities, and one NaN, adding 3 more.-data FP = FP { fpExponentSize    :: Int-             , fpSignificandSize :: Int+data FP = FP { fpExponentSize    :: !Int+             , fpSignificandSize :: !Int              , fpValue           :: BigFloat              }              deriving (Eq, G.Data)@@ -134,7 +142,7 @@  -- Manually implemented instance as GHC generated a non-IEEE 754 compliant instance. -- Note that we cannot pack the values in a tuple and then compare them as that will--- also give non-IEEE 754 compilant results.+-- also give non-IEEE 754 compliant results. -- -- NB. Refrain from letting GHC derive @>@ and @>=@ and define -- it ourselves. Why? Because the default definition of @x > y@@@ -208,11 +216,15 @@ fpFromBigFloat :: Int -> Int -> BigFloat -> FP fpFromBigFloat eb sb r = FP eb sb $ fst $ BF.bfRoundFloat (mkBFOpts eb sb BF.NearEven) r +-- | Convert an integer to a big-float, preserving the bit-correspondence.+fpFromBits :: Int -> Int -> Integer -> FP+fpFromBits eb sb val = FP eb sb $ BF.bfFromBits (mkBFOpts eb sb BF.NearEven) val+ -- | Convert from an sign/exponent/mantissa representation to a float. The values are the integers -- representing the bit-patterns of these values, i.e., the raw representation. We assume that these -- integers fit into the ranges given, i.e., no overflow checking is done here. fpFromRawRep :: Bool -> (Integer, Int) -> (Integer, Int) -> FP-fpFromRawRep sign (e, eb) (s, sb) = FP eb sb $ BF.bfFromBits (mkBFOpts eb sb BF.NearEven) val+fpFromRawRep sign (e, eb) (s, sb) = fpFromBits eb sb val   where es, val :: Integer         es = (e `shiftL` (sb - 1)) .|. s         val | sign = (1 `shiftL` (eb + sb - 1)) .|. es@@ -294,23 +306,23 @@  -- | Num instance for big-floats instance Num FP where-  (+)           = lift2 BF.bfAdd-  (-)           = lift2 BF.bfSub-  (*)           = lift2 BF.bfMul-  abs           = lift1 BF.bfAbs-  signum        = lift1 bfSignum+  (+)           = fpAdd RoundNearestTiesToEven+  (-)           = fpSub RoundNearestTiesToEven+  (*)           = fpMul RoundNearestTiesToEven+  abs           = fpAbs+  signum        = fpSignum   fromInteger i = error $ "FP.fromInteger: Not supported for arbitrary floats. Use fpFromInteger instead, specifying the precision. Called on: " ++ show i-  negate        = lift1 BF.bfNeg+  negate        = fpNeg  -- | Fractional instance for big-floats instance Fractional FP where   fromRational = error "FP.fromRational: Not supported for arbitrary floats. Use fpFromRational instead, specifying the precision"-  (/)          = lift2 BF.bfDiv+  (/)          = fpDiv RoundNearestTiesToEven  -- | Floating instance for big-floats instance Floating FP where-  sqrt (FP eb sb a)      = FP eb sb $ fst $ BF.bfSqrt (mkBFOpts eb sb BF.NearEven) a-  FP eb sb a ** FP _ _ b = FP eb sb $ fst $ BF.bfPow  (mkBFOpts eb sb BF.NearEven) a b+  sqrt = fpSqrt RoundNearestTiesToEven+  (**) = fpPow RoundNearestTiesToEven    pi    = unsupported "Floating.FP.pi"   exp   = unsupported "Floating.FP.exp"@@ -336,11 +348,11 @@      where v :: Integer            v = 2 ^ ((fromIntegral eb :: Integer) - 1) -  isNaN          (FP _ _   r) = BF.bfIsNaN r-  isInfinite     (FP _ _   r) = BF.bfIsInf r-  isDenormalized (FP eb sb r) = BF.bfIsSubnormal (mkBFOpts eb sb BF.NearEven) r-  isNegativeZero (FP _  _  r) = BF.bfIsZero r && BF.bfIsNeg r-  isIEEE         _            = True+  isNaN            = fpIsNaN+  isInfinite       = fpIsInf+  isDenormalized   = fpIsSubnormal+  isNegativeZero f = fpIsZero f && fpIsNeg f+  isIEEE         _ = True    decodeFloat i@(FP _ _ r) = case BF.bfToRep r of                                BF.BFNaN     -> decodeFloat (0/0 :: Double)@@ -361,6 +373,123 @@     where n' :: Integer           n' = (2 :: Integer) ^ abs (fromIntegral n :: Integer) +-- | Is a big-float finite?+fpIsFinite :: FP -> Bool+fpIsFinite (FP _ _ r) = BF.bfIsFinite r++-- | Is a big-float infinite?+fpIsInf :: FP -> Bool+fpIsInf (FP _ _ r) = BF.bfIsInf r++-- | Is a big-float a zero value?+fpIsZero :: FP -> Bool+fpIsZero (FP _ _ r) = BF.bfIsZero r++-- | Is a big-float a NaN value?+fpIsNaN :: FP -> Bool+fpIsNaN (FP _ _ r) = BF.bfIsNaN r++-- | Is a big-float \"normal\"? That is, is the value not zero, infinite, NaN,+-- or subnormal?+fpIsNormal :: FP -> Bool+fpIsNormal (FP eb sb r) = BF.bfIsNormal (mkBFOpts eb sb BF.NearEven) r++-- | Is a big-float subnormal (i.e., denormalized)?+fpIsSubnormal :: FP -> Bool+fpIsSubnormal (FP eb sb r) = BF.bfIsSubnormal (mkBFOpts eb sb BF.NearEven) r++-- | Is a big-float negative?+fpIsNeg :: FP -> Bool+fpIsNeg (FP _ _ r) = BF.bfIsNeg r++-- | Is a big-float positive?+fpIsPos :: FP -> Bool+fpIsPos (FP _ _ r) = BF.bfIsPos r++-- | Big-float negation.+fpNeg :: FP -> FP+fpNeg = lift1 BF.bfNeg++-- | Big-float absolute value.+fpAbs :: FP -> FP+fpAbs = lift1 BF.bfAbs++-- | Big-float signum.+fpSignum :: FP -> FP+fpSignum = lift1 bfSignum++-- | Big-float addition.+fpAdd :: RoundingMode -> FP -> FP -> FP+fpAdd = liftRM2 BF.bfAdd++-- | Big-float subtraction.+fpSub :: RoundingMode -> FP -> FP -> FP+fpSub = liftRM2 BF.bfSub++-- | Big-float multiplication.+fpMul :: RoundingMode -> FP -> FP -> FP+fpMul = liftRM2 BF.bfMul++-- | Big-float division.+fpDiv :: RoundingMode -> FP -> FP -> FP+fpDiv = liftRM2 BF.bfDiv++-- | Big-float exponentiation.+fpPow :: RoundingMode -> FP -> FP -> FP+fpPow = liftRM2 BF.bfPow++-- | Big-float remainder.+fpRem :: RoundingMode -> FP -> FP -> FP+fpRem = liftRM2 BF.bfRem++-- | Big-float square root.+fpSqrt :: RoundingMode -> FP -> FP+fpSqrt = liftRM1 BF.bfSqrt++-- | Big-float fused-multiply-add (FMA).+fpFMA :: RoundingMode -> FP -> FP -> FP -> FP+fpFMA = liftRM3 BF.bfFMA++-- | Round a big-float to a float of the given exponent and significand sizes+-- using the given rounding mode.+fpRoundFloat :: Int -> Int -> RoundingMode -> FP -> FP+fpRoundFloat eb sb rm (FP _ _ r) = FP eb sb $ fst $ BF.bfRoundFloat (mkBFOpts eb sb (roundingModeToRoundMode rm)) r++-- | Round a big-float to the nearest integer (represented as a big-float with+-- a zero decimal component) using the given rounding mode.+fpRoundInt :: RoundingMode -> FP -> FP+fpRoundInt rm (FP eb sa a) = FP eb sa $ fst $ BF.bfRoundInt (roundingModeToRoundMode rm) a++-- | SMTLib compliant definition for 'Data.SBV.fpMax'. This is very nearly+-- identical to 'Data.SBV.Utils.Numeric.fpMaxH', except that this uses+-- 'fpIsZero' instead of checking for equality against a @0@ literal. (The+-- latter is not supported for t'FP' values as t'FP' does not implement+-- 'fromInteger'.)+fpMax :: FP -> FP -> FP+fpMax x y+   | isNaN x                                  = y+   | isNaN y                                  = x+   | (isN0 x && isP0 y) || (isN0 y && isP0 x) = error "fpMax: Called with alternating-sign 0's. Not supported"+   | x > y                                    = x+   | True                                     = y+   where isN0   = isNegativeZero+         isP0 a = fpIsZero a && not (isN0 a)++-- | SMTLib compliant definition for 'Data.SBV.fpMin'. This is very nearly+-- identical to 'Data.SBV.Utils.Numeric.fpMinH', except that this uses+-- 'fpIsZero' instead of checking for equality against a @0@ literal. (The+-- latter is not supported for t'FP' values as t'FP' does not implement+-- 'fromInteger'.)+fpMin :: FP -> FP -> FP+fpMin x y+   | isNaN x                                  = y+   | isNaN y                                  = x+   | (isN0 x && isP0 y) || (isN0 y && isP0 x) = error "fpMin: Called with alternating-sign 0's. Not supported"+   | x < y                                    = x+   | True                                     = y+   where isN0   = isNegativeZero+         isP0 a = fpIsZero a && not (isN0 a)+ -- | Real instance for big-floats. Beware, not that well tested! instance Real FP where   toRational i@@ -371,7 +500,7 @@ -- | Real-frac instance for big-floats. Beware, not that well tested! instance RealFrac FP where   properFraction (FP eb sb r) = (getInt r', FP eb sb r - FP eb sb r')-       where (r', _)  = BF.bfRoundInt BF.ToNegInf r+       where (r', _)  = BF.bfRoundInt BF.ToZero r              getInt x = case BF.bfToRep x of                           BF.BFNaN     -> error $ "Data.SBV.FloatingPoint.properFraction: Failed to convert: " ++ show (r, x)                           BF.BFRep s n -> case n of@@ -451,10 +580,18 @@ lift1 :: (BigFloat -> BigFloat) -> FP -> FP lift1 f (FP eb sb a) = fpFromBigFloat eb sb $ f a --- Lift a binary operation. Here we don't call fpFromBigFloat, because the result is correctly rounded.-lift2 :: (BFOpts -> BigFloat -> BigFloat -> (BigFloat, Status)) -> FP -> FP -> FP-lift2 f (FP eb sb a) (FP _ _ b) = FP eb sb $ fst $ f (mkBFOpts eb sb BF.NearEven) a b+-- | Lift a unary operation that returns a big-float and a status.+liftRM1 :: (BFOpts -> BigFloat -> (BigFloat, Status)) -> RoundingMode -> FP -> FP+liftRM1 f rm (FP eb sb a) = FP eb sb $ fst $ f (mkBFOpts eb sb (roundingModeToRoundMode rm)) a +-- | Lift a binary operation that returns a big-float and a status.+liftRM2 :: (BFOpts -> BigFloat -> BigFloat -> (BigFloat, Status)) -> RoundingMode -> FP -> FP -> FP+liftRM2 f rm (FP eb sb a) (FP _ _ b) = FP eb sb $ fst $ f (mkBFOpts eb sb (roundingModeToRoundMode rm)) a b++-- | Lift a trinary operation that returns a big-float and a status.+liftRM3 :: (BFOpts -> BigFloat -> BigFloat -> BigFloat -> (BigFloat, Status)) -> RoundingMode -> FP -> FP -> FP -> FP+liftRM3 f rm (FP eb sb a) (FP _ _ b) (FP _ _ c) = FP eb sb $ fst $ f (mkBFOpts eb sb (roundingModeToRoundMode rm)) a b c+ -- | Convert from a IEEE float. fpFromFloat :: Int -> Int -> Float -> FP fpFromFloat  8 24 f = let fw          = floatToWord f@@ -466,3 +603,19 @@ fpFromDouble :: Int -> Int -> Double -> FP fpFromDouble 11 53 d = FP 11 54 $ BF.bfFromDouble d fpFromDouble eb sb d = error $ "SBV.fpFromDouble: Unexpected input: " ++ show (eb, sb, d)++-- | Convert to a IEEE float using the given rounding mode.+fpToFloat :: RoundingMode -> FP -> Float+fpToFloat rm (FP _ _ r) = fp2fp $ fst $ BF.bfToDouble (roundingModeToRoundMode rm) r++-- | Convert to a IEEE double using the given rounding mode.+fpToDouble :: RoundingMode -> FP -> Double+fpToDouble rm (FP _ _ r) = fst $ BF.bfToDouble (roundingModeToRoundMode rm) r++-- | Map SBV's rounding modes to LibBF's.+roundingModeToRoundMode :: RoundingMode -> RoundMode+roundingModeToRoundMode RoundNearestTiesToEven = BF.NearEven+roundingModeToRoundMode RoundNearestTiesToAway = BF.NearAway+roundingModeToRoundMode RoundTowardPositive    = BF.ToPosInf+roundingModeToRoundMode RoundTowardNegative    = BF.ToNegInf+roundingModeToRoundMode RoundTowardZero        = BF.ToZero
Data/SBV/Core/Symbolic.hs view
@@ -10,7 +10,6 @@ -----------------------------------------------------------------------------  {-# LANGUAGE BangPatterns               #-}-{-# LANGUAGE CPP                        #-} {-# LANGUAGE DefaultSignatures          #-} {-# LANGUAGE DeriveAnyClass             #-} {-# LANGUAGE DeriveDataTypeable         #-}@@ -18,55 +17,51 @@ {-# LANGUAGE DeriveGeneric              #-} {-# LANGUAGE DerivingStrategies         #-} {-# LANGUAGE FlexibleInstances          #-}-{-# LANGUAGE GADTs                      #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase                 #-} {-# LANGUAGE MultiParamTypeClasses      #-} {-# LANGUAGE NamedFieldPuns             #-} {-# LANGUAGE OverloadedStrings          #-}-{-# LANGUAGE PatternGuards              #-}-{-# LANGUAGE Rank2Types                 #-}+{-# LANGUAGE RankNTypes                 #-} {-# LANGUAGE ScopedTypeVariables        #-} {-# LANGUAGE StandaloneDeriving         #-}-{-# LANGUAGE TypeFamilies               #-} {-# LANGUAGE TypeOperators              #-} {-# LANGUAGE UndecidableInstances       #-}-{-# LANGUAGE ViewPatterns               #-} -{-# OPTIONS_GHC -Wall -Werror -fno-warn-orphans #-}+{-# OPTIONS_GHC -Wall -Werror -Wno-orphans #-}  module Data.SBV.Core.Symbolic   ( NodeId(..)-  , SV(..), swKind, trueSV, falseSV, contextOfSV-  , Op(..), PBOp(..), OvOp(..), FPOp(..), NROp(..), StrOp(..), RegExOp(..), SeqOp(..), SetOp(..), SpecialRelOp(..)+  , SV(..), swKind, trueSV, falseSV+  , Op(..), PBOp(..), OvOp(..), FPOp(..), NROp(..), StrOp(..), RegExOp(..), SeqOp(..), SetOp(..), SpecialRelOp(..), ADTOp(..)   , RegExp(..), regExpToSMTString, SMTLambda(..)-  , Quantifier(..), needsExistentials, SBVContext(..), checkCompatibleContext, VarContext(..)-  , RoundingMode(..)-  , SBVType(..), svUninterpreted, svUninterpretedNamedArgs, newUninterpreted, prefixNameToUnique+  , Quantifier(..), needsExistentials, SBVContext(..), globalSBVContext, VarContext(..)+  , SBVType(..), svUninterpreted, svUninterpretedNamedArgs, newUninterpreted   , SVal(..)   , svMkSymVar, sWordN, sWordN_, sIntN, sIntN_   , svToSV, svToSymSV, forceSVArg   , SBVExpr(..), newExpr, isCodeGenMode, isSafetyCheckingIStage, isRunIStage, isSetupIStage   , Cached, cache, uncache, modifyState, modifyIncState-  , NamedSymVar(..), Name, UserInputs, Inputs(..), getSV, swNodeId, namedNodeId-  , addInternInput, addUserInput+  , NamedSymVar(..), Name, UserInputs, Inputs(..), getSV, swNodeId   , getUserName', getUserName   , lookupInput , getSValPathCondition, extendSValPathCondition   , getTableIndex, sObserve-  , SBVPgm(..), MonadSymbolic(..), SymbolicT, Symbolic, runSymbolic, mkNewState, runSymbolicInState, State(..), SMTDef(..), withNewIncState, IncState(..), incrementInternalCounter, incrementFreshNameCounter+  , SBVPgm(..), MonadSymbolic(..), SymbolicT, Symbolic, runSymbolic, mkNewState, runSymbolicInState, State(..), SMTDef(..), smtDefEq, conflictError, withNewIncState, IncState(..), incrementInternalCounter, incrementFreshNameCounter   , inSMTMode, SBVRunMode(..), IStage(..), Result(..), ResultInp(..), UICodeKind(..), UIName(..)   , registerKind, registerLabel, recordObservable   , addAssertion, addNewSMTOption, imposeConstraint, internalConstraint, newInternalVariable, lambdaVar, quantVar-  , SMTLibPgm(..), SMTLibVersion(..), smtLibVersionExtension+  , SMTLibPgm(..), SMTLibVersion(..), smtLibVersionExtension, smtLibPgmText   , SolverCapabilities(..)   , extractSymbolicSimulationState, CnstMap   , OptimizeStyle(..), Objective(..), Penalty(..), objectiveName, addSValOptGoal   , MonadQuery(..), QueryT(..), Query, QueryState(..), QueryContext(..)-  , SMTScript(..), Solver(..), SMTSolver(..), SMTResult(..), SMTModel(..), SMTConfig(..), TPOptions(..), SMTEngine, isEmptyModel+  , SMTScript(..), Solver(..), SMTSolver(..), SMTResult(..), SMTModel(..), SMTConfig(..), TPOptions(..), SMTEngine   , validationRequested, outputSVal, ProgInfo(..), mustIgnoreVar, getRootState+  , LambdaInfo(..), showNROp   ) where  import Control.DeepSeq             (NFData(..))-import Control.Monad               (when)+import Control.Monad               (when, unless) import Control.Monad.Except        (MonadError, ExceptT) import Control.Monad.Reader        (MonadReader(..), ReaderT, runReaderT,                                     mapReaderT)@@ -75,7 +70,7 @@ import Control.Monad.Trans.Maybe   (MaybeT) import Control.Monad.Writer.Strict (MonadWriter) import Data.IORef                  (IORef, newIORef, readIORef)-import Data.List                   (intercalate, sortBy, isPrefixOf)+import Data.List                   (intercalate, isPrefixOf) import Data.Maybe                  (fromMaybe) import Data.String                 (IsString(fromString)) @@ -96,11 +91,12 @@ import qualified Data.Generics               as G    (Data(..)) import qualified Data.Generics.Uniplate.Data as G import qualified Data.IntMap.Strict          as IMap (IntMap, empty, lookup, insertWith)-import qualified Data.Map.Strict             as Map  (Map, empty, toList, lookup, insert, size, notMember)-import qualified Data.Set                    as Set  (Set, empty, toList, insert, member)+import qualified Data.Map.Strict             as Map  (Map, empty, toList, lookup, insert, size, keysSet)+import qualified Data.Set                    as Set  (Set, empty, toList, insert, member, notMember) import qualified Data.Foldable               as F    (toList)-import qualified Data.Sequence               as S    (Seq, empty, (|>), (<|), lookup, elemIndexL)+import qualified Data.Sequence               as S    (Seq, empty, (|>), lookup, elemIndexL) import qualified Data.Text                   as T+import           Data.Text                   (Text)  import System.Mem.StableName import System.Random@@ -108,16 +104,14 @@ import Data.SBV.Core.Kind import Data.SBV.Core.Concrete import Data.SBV.SMT.SMTLibNames-import Data.SBV.Utils.TDiff (Timing)-import Data.SBV.Utils.Lib   (stringToQFS, checkObservableName, barify)+import Data.SBV.Utils.TDiff   (Timing)+import Data.SBV.Utils.Lib     (stringToQFS, checkObservableName, barify, mapToSortedList, showText)+import Data.SBV.Utils.Numeric (RoundingMode)  import Data.Containers.ListUtils (nubOrd)  import Data.SBV.Control.Types -#if MIN_VERSION_base(4,11,0)-import Control.Monad.Fail as Fail-#endif  -- | Context identifier. 0 is reserved global context newtype SBVContext = SBVContext Int64 deriving (Eq, Ord, G.Data, Show)@@ -155,10 +149,6 @@ data SV = SV !Kind !NodeId         deriving G.Data --- | Which context are we using this var at?-contextOfSV :: SV -> SBVContext-contextOfSV (SV _ (NodeId (c, _, _))) = c- -- | For equality, we merely use the lambda-level/node-id instance Eq SV where   SV _ n1 == SV _ n2 = n1 == n2@@ -189,10 +179,10 @@ swNodeId (SV _ nid) = nid  -- | Forcing an argument; this is a necessary evil to make sure all the arguments--- to an uninterpreted function are evaluated before called; the semantics of uinterpreted+-- to an uninterpreted function are evaluated before called; the semantics of uninterpreted -- functions is necessarily strict; deviating from Haskell's forceSVArg :: SV -> IO ()-forceSVArg (SV k n) = k `seq` n `seq` return ()+forceSVArg (SV k n) = k `seq` n `seq` pure ()  -- | Constant False as an t'SV'. Note that this value always occupies slot -2 and level 0. falseSV :: SV@@ -233,8 +223,8 @@         | SignExtend Int         | LkUp (Int, Kind, Kind, Int) !SV !SV   -- (table-index, arg-type, res-type, length of the table) index out-of-bounds-value         | KindCast Kind Kind-        | Uninterpreted String-        | QuantifiedBool String                 -- When we generate a forall/exists (nested etc.) boolean value. NB. This used to be "QuantifiedBool [Op] String", keeping track of Ops. That turned out to cause memory leaks. So avoid that.+        | Uninterpreted T.Text+        | QuantifiedBool T.Text                 -- When we generate a forall/exists (nested etc.) boolean value. NB. This used to be "QuantifiedBool [Op] String", keeping track of Ops. That turned out to cause memory leaks. So avoid that.         | SpecialRelOp Kind SpecialRelOp        -- Generate the equality to the internal operation         | Label String                          -- Essentially no-op; useful for code generation to emit comments.         | IEEEFP FPOp                           -- Floating-point ops, categorized separately@@ -247,18 +237,21 @@         | SetOp SetOp                           -- Set operations, categorized separately         | TupleConstructor Int                  -- Construct an n-tuple         | TupleAccess Int Int                   -- Access element i of an n-tuple; second argument is n-        | EitherConstructor Kind Kind Bool      -- Construct a sum; False: left, True: right-        | EitherIs Kind Kind Bool               -- Either branch tester; False: left, True: right-        | EitherAccess Bool                     -- Either branch access; False: left, True: right-        | RationalConstructor                   -- Construct a rational. Note that there's no access to numerator or denumerator, since we cannot store rationals in canonical form-        | MaybeConstructor Kind Bool            -- Construct a maybe value; False: Nothing, True: Just-        | MaybeIs Kind Bool                     -- Maybe tester; False: nothing, True: just-        | MaybeAccess                           -- Maybe branch access; grab the contents of the just-        | ArrayLambda SMTLambda                 -- An array value, created from a lambda-        | ReadArray                             -- Reading an array value-        | WriteArray                            -- Writing to an array+        | RationalConstructor                   -- Construct a rational. Note that there's no access to numerator or denominator, since we cannot store rationals in canonical form+        | ADTOp ADTOp                           -- ADT access/construction/testing++        -- Arrays+        | ArrayInit (Either (Kind, Kind) SMTLambda) -- An array value, created either from a lambda or a symbolic value. Kind is the+        | ReadArray                                 -- Reading an array value+        | WriteArray                                -- Writing to an array         deriving (Eq, Ord, Generic, G.Data, NFData) +-- | ADT operations+data ADTOp = ADTConstructor T.Text Kind    -- Construct an ADT. Kind is the kind of the resulting ADT+           | ADTTester      T.Text Kind    -- Check if top-level constructor matches. Kind is the kind of the argument+           | ADTAccessor    T.Text Kind    -- Extract a field from an ADT value. Kind is the kind of the argument+           deriving (Eq, Ord, Generic, G.Data, NFData)+ -- | Special relations supported by z3 data SpecialRelOp = IsPartialOrder         String                   | IsLinearOrder          String@@ -328,7 +321,8 @@    show FP_IsNegative        = "fp.isNegative"    show FP_IsPositive        = "fp.isPositive" --- | Non-linear operations+-- | Non-linear operations. We do *not* on purpose deriving Show here, nor give a show instance,+-- since different solvers call these functions with different names. data NROp = NR_Sin           | NR_Cos           | NR_Tan@@ -344,22 +338,31 @@           | NR_Pow           deriving (Eq, Ord, G.Data, NFData, Generic) --- | The show instance carefully arranges for these to be printed as it can be understood by dreal-instance Show NROp where-  show NR_Sin  = "sin"-  show NR_Cos  = "cos"-  show NR_Tan  = "tan"-  show NR_ASin = "asin"-  show NR_ACos = "acos"-  show NR_ATan = "atan"-  show NR_Sinh = "sinh"-  show NR_Cosh = "cosh"-  show NR_Tanh = "tanh"-  show NR_Sqrt = "sqrt"-  show NR_Exp  = "exp"-  show NR_Log  = "log"-  show NR_Pow  = "pow"+-- | Show a non-linear op. Unfortunately this can't be generically done since different+-- solvers use different names for some of these ops.+showNROp :: Solver -> NROp -> String+showNROp slvr = sh+  where sh NR_Sin  = "sin"+        sh NR_Cos  = "cos"+        sh NR_Tan  = "tan"+        sh NR_ASin = arc ++ "sin"+        sh NR_ACos = arc ++ "cos"+        sh NR_ATan = arc ++ "tan"+        sh NR_Sinh = "sinh"+        sh NR_Cosh = "cosh"+        sh NR_Tanh = "tanh"+        sh NR_Sqrt = "sqrt"+        sh NR_Exp  = "exp"+        sh NR_Log  = "log"+        sh NR_Pow  = "pow" +        -- DReal uses asin/acos etc. CVC5 uses arcsin. Other solvers probably+        -- don't even support these. But this isn't the right place to bail-out+        -- about it; so we just put "arc" following CVC5 here.+        arc = case slvr of+                DReal -> "a"+                _     -> "arc"+ -- | Pseudo-boolean operations data PBOp = PB_AtMost  Int        -- ^ At most k           | PB_AtLeast Int        -- ^ At least k@@ -455,37 +458,37 @@  -- | Convert a reg-exp to a Haskell-like string instance Show RegExp where-  show = regExpToString show+  show = T.unpack . regExpToText (T.pack . show)  -- | Convert a reg-exp to a SMT-lib acceptable representation-regExpToSMTString :: RegExp -> String-regExpToSMTString = regExpToString (\s -> '"' : stringToQFS s ++ "\"")+regExpToSMTString :: RegExp -> Text+regExpToSMTString = regExpToText (\s -> "\"" <> T.pack (stringToQFS s) <> "\"") --- | Convert a RegExp to a string, parameterized by how strings are converted-regExpToString :: (String -> String) -> RegExp -> String-regExpToString fs (Literal s)       = "(str.to.re " ++ fs s ++ ")"-regExpToString _  All               = "re.all"-regExpToString _  AllChar           = "re.allchar"-regExpToString _  None              = "re.nostr"-regExpToString fs (Range ch1 ch2)   = "(re.range " ++ fs [ch1] ++ " " ++ fs [ch2] ++ ")"-regExpToString _  (Conc [])         = show (1 :: Integer)-regExpToString fs (Conc [x])        = regExpToString fs x-regExpToString fs (Conc xs)         = "(re.++ " ++ unwords (map (regExpToString fs) xs) ++ ")"-regExpToString fs (KStar r)         = "(re.* " ++ regExpToString fs r ++ ")"-regExpToString fs (KPlus r)         = "(re.+ " ++ regExpToString fs r ++ ")"-regExpToString fs (Opt   r)         = "(re.opt " ++ regExpToString fs r ++ ")"-regExpToString fs (Comp  r)         = "(re.comp " ++ regExpToString fs r ++ ")"-regExpToString fs (Diff  r1 r2)     = "(re.diff " ++ regExpToString fs r1 ++ " " ++ regExpToString fs r2 ++ ")"-regExpToString fs (Loop  lo hi r)-   | lo >= 0, hi >= lo = "((_ re.loop " ++ show lo ++ " " ++ show hi ++ ") " ++ regExpToString fs r ++ ")"+-- | Convert a RegExp to text, parameterized by how strings are converted+regExpToText :: (String -> Text) -> RegExp -> Text+regExpToText fs (Literal s)       = "(str.to_re " <> fs s <> ")"+regExpToText _  All               = "re.all"+regExpToText _  AllChar           = "re.allchar"+regExpToText _  None              = "re.nostr"+regExpToText fs (Range ch1 ch2)   = "(re.range " <> fs [ch1] <> " " <> fs [ch2] <> ")"+regExpToText _  (Conc [])         = "1"+regExpToText fs (Conc [x])        = regExpToText fs x+regExpToText fs (Conc xs)         = "(re.++ " <> T.unwords (map (regExpToText fs) xs) <> ")"+regExpToText fs (KStar r)         = "(re.* " <> regExpToText fs r <> ")"+regExpToText fs (KPlus r)         = "(re.+ " <> regExpToText fs r <> ")"+regExpToText fs (Opt   r)         = "(re.opt " <> regExpToText fs r <> ")"+regExpToText fs (Comp  r)         = "(re.comp " <> regExpToText fs r <> ")"+regExpToText fs (Diff  r1 r2)     = "(re.diff " <> regExpToText fs r1 <> " " <> regExpToText fs r2 <> ")"+regExpToText fs (Loop  lo hi r)+   | lo >= 0, hi >= lo = "((_ re.loop " <> showText lo <> " " <> showText hi <> ") " <> regExpToText fs r <> ")"    | True              = error $ "Invalid regular-expression Loop with arguments: " ++ show (lo, hi)-regExpToString fs (Power n r)-   | n >= 0            = regExpToString fs (Loop n n r)+regExpToText fs (Power n r)+   | n >= 0            = regExpToText fs (Loop n n r)    | True              = error $ "Invalid regular-expression Power with arguments: " ++ show n-regExpToString fs (Inter r1 r2)     = "(re.inter " ++ regExpToString fs r1 ++ " " ++ regExpToString fs r2 ++ ")"-regExpToString _  (Union [])        = "re.nostr"-regExpToString fs (Union [x])       = regExpToString fs x-regExpToString fs (Union xs)        = "(re.union " ++ unwords (map (regExpToString fs) xs) ++ ")"+regExpToText fs (Inter r1 r2)     = "(re.inter " <> regExpToText fs r1 <> " " <> regExpToText fs r2 <> ")"+regExpToText _  (Union [])        = "re.nostr"+regExpToText fs (Union [x])       = regExpToText fs x+regExpToText fs (Union xs)        = "(re.union " <> T.unwords (map (regExpToText fs) xs) <> ")"  -- | Show instance for @StrOp@. Note that the mapping here is important to match the SMTLib equivalents. instance Show StrOp where@@ -494,22 +497,22 @@   show StrToCode   = "str.to_code"   show StrFromCode = "str.from_code"   -- Note the breakage here with respect to argument order. We fix this explicitly later.-  show (StrInRe s) = "str.in.re " ++ regExpToSMTString s+  show (StrInRe s) = "str.in_re " ++ T.unpack (regExpToSMTString s)  -- | Show instance for @RegExOp@. instance Show RegExOp where-  show (RegExEq  r1 r2) = "(= "        ++ regExpToSMTString r1 ++ " " ++ regExpToSMTString r2 ++ ")"-  show (RegExNEq r1 r2) = "(distinct " ++ regExpToSMTString r1 ++ " " ++ regExpToSMTString r2 ++ ")"+  show (RegExEq  r1 r2) = "(= "        ++ T.unpack (regExpToSMTString r1) ++ " " ++ T.unpack (regExpToSMTString r2) ++ ")"+  show (RegExNEq r1 r2) = "(distinct " ++ T.unpack (regExpToSMTString r1) ++ " " ++ T.unpack (regExpToSMTString r2) ++ ")"  -- | For now, we represent lambda functions in op with their SMTLib equivalent strings. -- This might change in the future.-newtype SMTLambda = SMTLambda String+newtype SMTLambda = SMTLambda T.Text                   deriving (Eq, Ord, G.Data, Generic)                   deriving newtype NFData  -- | Simple show instance for SMTLambda instance Show SMTLambda where-  show (SMTLambda s) = s+  show (SMTLambda s) = T.unpack s  -- | Sequence operations. Indexed by the element kind. data SeqOp = SeqLen      Kind@@ -583,14 +586,14 @@         where tinfo = "table" ++ show ti ++ "(" ++ show at ++ " -> " ++ show rt ++ ", " ++ show l ++ ")"    show (KindCast fr to)     = "cast_" ++ show fr ++ "_" ++ show to-  show (Uninterpreted i)    = "[uninterpreted] " ++ i-  show (QuantifiedBool i)   = "[quantified boolean] " ++ i+  show (Uninterpreted i)    = "[uninterpreted] " ++ T.unpack i+  show (QuantifiedBool i)   = "[quantified boolean] " ++ T.unpack i    show (Label s)            = "[label] " ++ s    show (IEEEFP w)           = show w -  show (NonLinear w)        = show w+  show (NonLinear w)        = showNROp DReal w -- Just use DReal here, only used for debugging    show (PseudoBoolean p)    = show p @@ -605,24 +608,12 @@   show (TupleConstructor   n) = "mkSBVTuple" ++ show n   show (TupleAccess      i n) = "proj_" ++ show i ++ "_SBVTuple" ++ show n -  -- Remember, while we try to maintain SMTLib compabitibility here, these output-  -- is merely for debugging purposes. For how we actually render these in SMTLib,-  -- look at the file SBV/SMT/SMTLib2.hs for these constructors.-  show (EitherConstructor k1 k2  False) = "(_ left_SBVEither "  ++ show (KEither k1 k2) ++ ")"-  show (EitherConstructor k1 k2  True ) = "(_ right_SBVEither " ++ show (KEither k1 k2) ++ ")"-  show (EitherIs          k1 k2  False) = "(_ is (left_SBVEither ("  ++ show k1 ++ ") " ++ show (KEither k1 k2) ++ "))"-  show (EitherIs          k1 k2  True ) = "(_ is (right_SBVEither (" ++ show k2 ++ ") " ++ show (KEither k1 k2) ++ "))"-  show (EitherAccess             False) = "get_left_SBVEither"-  show (EitherAccess             True ) = "get_right_SBVEither"-  show RationalConstructor              = "SBV.Rational"-  show (MaybeConstructor k False)       = "(_ nothing_SBVMaybe " ++ show (KMaybe k) ++ ")"-  show (MaybeConstructor k True)        = "(_ just_SBVMaybe "    ++ show (KMaybe k) ++ ")"-  show (MaybeIs          k False)       = "(_ is (nothing_SBVMaybe () "              ++ show (KMaybe k) ++ "))"-  show (MaybeIs          k True )       = "(_ is (just_SBVMaybe (" ++ show k ++ ") " ++ show (KMaybe k) ++ "))"-  show MaybeAccess                      = "get_just_SBVMaybe"-  show (ArrayLambda s)                  = show s-  show ReadArray                        = "select"-  show WriteArray                       = "store"+  show RationalConstructor    = "SBV.Rational"+  show (ArrayInit k)          = case k of+                                  Left (a, b) -> "const-array[" ++ show a ++ " -> " ++ show b ++ "]"+                                  Right s     -> show s+  show ReadArray              = "select"+  show WriteArray             = "store"    show op     | Just s <- op `lookup` syms = s@@ -715,18 +706,10 @@ instance Ord NamedSymVar where   compare (NamedSymVar l _) (NamedSymVar r _) = compare l r --- | Convert to a named symvar, from string-toNamedSV' :: SV -> String -> NamedSymVar-toNamedSV' s = NamedSymVar s . T.pack- -- | Convert to a named symvar, from text toNamedSV :: SV -> Name -> NamedSymVar toNamedSV = NamedSymVar --- | Get the node id from a named sym var-namedNodeId :: NamedSymVar -> NodeId-namedNodeId = swNodeId . getSV- -- | Get the SV from a named sym var getSV :: NamedSymVar -> SV getSV (NamedSymVar s _) = s@@ -770,13 +753,13 @@ objectiveName (AssertWithPenalty s _ _) = s  -- | The state we keep track of as we interact with the solver-data QueryState = QueryState { queryAsk                 :: Maybe Int -> String -> IO String-                             , querySend                :: Maybe Int -> String -> IO ()+data QueryState = QueryState { queryAsk                 :: Maybe Int -> Text -> IO String+                             , querySend                :: Maybe Int -> Text -> IO ()                              , queryRetrieveResponse    :: Maybe Int -> IO String                              , queryConfig              :: SMTConfig                              , queryTerminate           :: Maybe C.SomeException -> IO ()                              , queryTimeOutValue        :: Maybe Int-                             , queryAssertionStackDepth :: Int+                             , queryAssertionStackDepth :: !Int                              }  -- | Computations which support query operations.@@ -840,9 +823,9 @@    rnf (ResultLamInps xs) = rnf xs  -- | Several data about the program-data ProgInfo = ProgInfo { hasQuants         :: Bool-                         , progSpecialRels   :: [SpecialRelOp]-                         , progTransClosures :: [(String, String)]+data ProgInfo = ProgInfo { hasQuants         :: !Bool+                         , progSpecialRels   :: ![SpecialRelOp]+                         , progTransClosures :: ![(String, String)]                          }                          deriving G.Data @@ -857,7 +840,7 @@                      , reskinds       :: Set.Set Kind                                 -- ^ kinds used in the program                      , resTraces      :: [(String, CV)]                               -- ^ quick-check counter-example information (if any)                      , resObservables :: [(String, CV -> Bool, SV)]                   -- ^ observable expressions (part of the model)-                     , resUISegs      :: [(String, [String])]                         -- ^ uninterpeted code segments+                     , resUISegs      :: [(String, [String])]                         -- ^ uninterpreted code segments                      , resParams      :: ResultInp                                    -- ^ top-inputs or lambda params                      , resConsts      :: (CnstMap, [(SV, CV)])                        -- ^ constants                      , resTables      :: [((Int, Kind, Kind), [SV])]                  -- ^ tables (automatically constructed) (tableno, index-type, result-type) elts@@ -905,9 +888,7 @@     where sh2 :: Show a => [a] -> [String]           sh2 = map (("  "++) . show) -          usorts = [sh s t | KUserSort s t <- Set.toList kinds]-                   where sh s Nothing   = s-                         sh s (Just es) = s ++ " (" ++ intercalate ", " es ++ ")"+          usorts = [s | KADT s _ _ <- filter isUninterpreted (Set.toList kinds)]            shs sv = show sv ++ " :: " ++ show (swKind sv) @@ -921,10 +902,10 @@            shcg (s, ss) = ("Variable: " ++ s) : map ("  " ++) ss -          shn (NamedSymVar sv nm) = "  " <> ni <> " :: " ++ show (swKind sv) ++ alias+          shn (NamedSymVar sv nm) = "  " ++ ni ++ " :: " ++ show (swKind sv) ++ alias             where ni = show sv -                  alias | ni == T.unpack nm = ""+                  alias | T.pack ni == nm = ""                         | True              = ", aliasing " ++ show nm            shq (q, v) = shn v ++ ", " ++ if q == ALL then "universal" else "existential"@@ -939,11 +920,7 @@           soft False = ""            shAssert (nm, stk, p) = "  -- assertion: " ++ nm ++ " " ++ maybe "[No location]"-#if MIN_VERSION_base(4,9,0)                 prettyCallStack-#else-                showCallStack-#endif                 stk ++ ": " ++ show p  -- | Expression map, used for hash-consing@@ -1016,11 +993,11 @@ -- | Is this a CodeGen run? (i.e., generating code) isCodeGenMode :: State -> IO Bool isCodeGenMode State{runMode} = do rm <- readIORef runMode-                                  return $ case rm of-                                             Concrete{}  -> False-                                             SMTMode{}   -> False-                                             LambdaGen{} -> False-                                             CodeGen     -> True+                                  pure $ case rm of+                                           Concrete{}  -> False+                                           SMTMode{}   -> False+                                           LambdaGen{} -> False+                                           CodeGen     -> True  -- | The state in query mode, i.e., additional context data IncState = IncState { rNewInps        :: IORef [NamedSymVar]   -- always existential!@@ -1042,14 +1019,14 @@         ui    <- newIORef Map.empty         pgm   <- newIORef (SBVPgm S.empty)         cstrs <- newIORef S.empty-        return IncState { rNewInps        = is-                        , rNewKinds       = ks-                        , rNewConsts      = nc-                        , rNewTbls        = tm-                        , rNewUIs         = ui-                        , rNewAsgns       = pgm-                        , rNewConstraints = cstrs-                        }+        pure IncState { rNewInps        = is+                      , rNewKinds       = ks+                      , rNewConsts      = nc+                      , rNewTbls        = tm+                      , rNewUIs         = ui+                      , rNewAsgns       = pgm+                      , rNewConstraints = cstrs+                      }  -- | Get a new IncState withNewIncState :: State -> (State -> IO a) -> IO (IncState, a)@@ -1058,7 +1035,7 @@         R.modifyIORef' (rIncState st) (const is)         r  <- cont st         finalIncState <- readIORef (rIncState st)-        return (finalIncState, r)+        pure (finalIncState, r)  -- | User defined inputs type UserInputs = S.Seq NamedSymVar@@ -1111,7 +1088,7 @@ -- | Add a new user input addUserInput :: SV -> Name -> Inputs -> Inputs addUserInput sv nm = goAll . goUser-  where new    = toNamedSV sv nm+  where !new   = toNamedSV sv nm         goUser = onUserInputs (S.|> new)        -- add to the end of the sequence         goAll  = onAllInputs  (Set.insert nm) @@ -1123,7 +1100,7 @@    | True        = Nothing  -- l != Just 0, a lambda var, whether top-level or in a scope, so we ignore   where     (_, l, i) = getId (swNodeId sv)-    svs       = fmap f ns+    svs       = f <$> ns     res       = case S.lookup i ns of -- Nothing on negative Int or Int > length seq                   Nothing    -> secondLookup                   x@(Just e) -> if sv == f e then x else secondLookup@@ -1134,59 +1111,90 @@ -- | A defined function/value data SMTDef = SMTDef Kind             -- ^ Final kind of the definition (resulting kind, not the params)                      [String]         -- ^ other definitions it refers to-                     (Maybe String)   -- ^ parameter string-                     (Int -> String)  -- ^ Body, in SMTLib syntax, given the tab amount+                     (Maybe Text)     -- ^ parameter string+                     (Int -> Text)    -- ^ Body, in SMTLib syntax, given the tab amount             deriving G.Data  -- | For debug purposes instance Show SMTDef where   show (SMTDef fk frees p body) = unlines [ "-- User defined function:"-                                          , "-- Final return type    : " ++ show fk-                                          , "-- Refers to            : " ++ intercalate ", " frees-                                          , "-- Parameters           : " ++ fromMaybe "NONE" p-                                          , "-- Body                 : "-                                          , body 2-                                          ]+                                                      , "-- Final return type    : " ++ show fk+                                                      , "-- Refers to            : " ++ intercalate ", " frees+                                                      , "-- Parameters           : " ++ maybe "NONE" T.unpack p+                                                      , "-- Body                 : "+                                                      , T.unpack (body 2)+                                                      ]  -- | NFData instance for SMTDef instance NFData SMTDef where   rnf (SMTDef fk frees params body) = rnf fk `seq` rnf frees `seq` rnf params `seq` rnf body +-- | Compare two SMTDef values for semantic equality.+-- The body is @(Int -> Text)@ where @Int@ is indentation; we compare rendered output at indent 0.+smtDefEq :: SMTDef -> SMTDef -> Bool+smtDefEq (SMTDef k1 refs1 params1 body1) (SMTDef k2 refs2 params2 body2)+  = k1 == k2 && refs1 == refs2 && params1 == params2 && body1 0 == body2 0++-- | Error for conflicting smtFunction definitions with the same name.+conflictError :: String -> a+conflictError nm = error $ unlines [ ""+                                   , "*** Data.SBV: Function '" ++ nm ++ "' defined with conflicting bodies."+                                   , "***"+                                   , "*** Two calls to smtFunction (or related) used the name '" ++ nm ++ "'"+                                   , "*** but with different definitions. This would generate conflicting"+                                   , "*** SMTLib define-fun-rec declarations."+                                   , "***"+                                   , "*** Please use a unique name for each distinct function."+                                   ]++-- | Information about a compiled lambda body, used for measure verification.+data LambdaInfo = LambdaInfo+  { liAssignments :: S.Seq (SV, SBVExpr)  -- ^ The expression DAG+  , liParams      :: [(Quantifier, SV)]    -- ^ Formal parameters with quantifier+  , liOutput      :: SV                    -- ^ The output node+  , liConsts      :: [(SV, CV)]            -- ^ Constants used+  }+ -- | The state of the symbolic interpreter-data State  = State { sbvContext          :: SBVContext-                    , pathCond            :: SVal                             -- ^ kind KBool-                    , stCfg               :: SMTConfig-                    , startTime           :: UTCTime-                    , rProgInfo           :: IORef ProgInfo-                    , runMode             :: IORef SBVRunMode-                    , rIncState           :: IORef IncState-                    , rCInfo              :: IORef [(String, CV)]-                    , rObservables        :: IORef (S.Seq (Name, CV -> Bool, SV))-                    , rctr                :: IORef Int             -- Used for numbering SVs-                    , freshNameCtr        :: IORef Int             -- Used for calls to some-                    , rLambdaLevel        :: IORef (Maybe Int)     -- If Nothing, then top-level lambda-                    , rUsedKinds          :: IORef KindSet-                    , rUsedLbls           :: IORef (Set.Set String)-                    , rinps               :: IORef Inputs-                    , rlambdaInps         :: IORef LambdaInputs-                    , rConstraints        :: IORef (S.Seq (Bool, [(String, String)], SV))-                    , rPartitionVars      :: IORef [String]-                    , routs               :: IORef [SV]-                    , rtblMap             :: IORef TableMap-                    , spgm                :: IORef SBVPgm-                    , rconstMap           :: IORef CnstMap-                    , rexprMap            :: IORef ExprMap-                    , rUIMap              :: IORef UIMap-                    , rUserFuncs          :: IORef (Set.Set String) -- Functions that the user wanted explicit code generation for-                    , rCgMap              :: IORef CgMap-                    , rDefns              :: IORef [(String, (SMTDef, SBVType))]-                    , rSMTOptions         :: IORef [SMTOption]-                    , rOptGoals           :: IORef [Objective (SV, SV)]-                    , rAsserts            :: IORef [(String, Maybe CallStack, SV)]-                    , rOutstandingAsserts :: IORef Bool            -- Did we send an assert after the last check-sat call?-                    , rSVCache            :: IORef (Cache SV)-                    , rQueryState         :: IORef (Maybe QueryState)-                    , parentState         :: Maybe State  -- Pointer to our parent if we're in a sublevel+data State  = State { sbvContext            :: SBVContext+                    , pathCond              :: SVal                             -- ^ kind KBool+                    , stCfg                 :: SMTConfig+                    , startTime             :: UTCTime+                    , rProgInfo             :: IORef ProgInfo+                    , runMode               :: IORef SBVRunMode+                    , rIncState             :: IORef IncState+                    , rCInfo                :: IORef [(String, CV)]+                    , rObservables          :: IORef (S.Seq (Name, CV -> Bool, SV))+                    , rctr                  :: IORef Int             -- Used for numbering SVs+                    , freshNameCtr          :: IORef Int             -- Used for calls to some+                    , rLambdaLevel          :: IORef (Maybe Int)     -- If Nothing, then top-level lambda+                    , rUsedKinds            :: IORef KindSet+                    , rUsedLbls             :: IORef (Set.Set String)+                    , rinps                 :: IORef Inputs+                    , rlambdaInps           :: IORef LambdaInputs+                    , rConstraints          :: IORef (S.Seq (Bool, [(String, String)], SV))+                    , rPartitionVars        :: IORef [String]+                    , routs                 :: IORef [SV]+                    , rtblMap               :: IORef TableMap+                    , spgm                  :: IORef SBVPgm+                    , rconstMap             :: IORef CnstMap+                    , rexprMap              :: IORef ExprMap+                    , rUIMap                :: IORef UIMap+                    , rUserFuncs            :: IORef (Map.Map String (Set.Set Int, Maybe Int)) -- Functions with explicit code generation; maps name to (verified StableName hashes, lambda level at first compilation)+                    , rCompilingFuncs       :: IORef (Set.Set String)     -- Functions currently being compiled (used to detect recursive self-calls vs. genuine conflicts)+                    , rCgMap                :: IORef CgMap+                    , rDefns                :: IORef (Map.Map String (SMTDef, SBVType))+                    , rMeasureChecks        :: IORef [(String, Bool, SMTConfig -> IO ())]  -- Measure checks for recursive functions. Bool is True for productive (guarded), False for terminating.+                    , rFuncLambdaInfos      :: IORef (Map.Map String LambdaInfo)            -- LambdaInfo for all smtFunction definitions, used for mutual recursion checking+                    , rSkipMeasureChecks    :: IORef Bool                                   -- If True, skip measure checking (used by TP and checker itself)+                    , rNoTermCheckFunctions :: IORef (Set.Set String)                      -- Functions defined with smtFunctionNoTermination (no termination check)+                    , rSMTOptions           :: IORef [SMTOption]+                    , rOptGoals             :: IORef [Objective (SV, SV)]+                    , rAsserts              :: IORef [(String, Maybe CallStack, SV)]+                    , rOutstandingAsserts   :: IORef Bool            -- Did we send an assert after the last check-sat call?+                    , rSVCache              :: IORef (Cache SV)+                    , rQueryState           :: IORef (Maybe QueryState)+                    , parentState           :: Maybe State  -- Pointer to our parent if we're in a sublevel                     }  -- | Chase to the root state. No infinite chains!@@ -1208,11 +1216,11 @@ -- | Are we running in proof mode? inSMTMode :: State -> IO Bool inSMTMode State{runMode} = do rm <- readIORef runMode-                              return $ case rm of-                                         CodeGen     -> False-                                         LambdaGen{} -> False-                                         Concrete{}  -> False-                                         SMTMode{}   -> True+                              pure $ case rm of+                                       CodeGen     -> False+                                       LambdaGen{} -> False+                                       Concrete{}  -> False+                                       SMTMode{}   -> True  -- | The "Symbolic" value. Either a constant (@Left@) or a symbolic -- value (@Right Cached@). Note that caching is essential for making@@ -1255,7 +1263,7 @@         rm <- readIORef runMode         case rm of           SMTMode _ IRun _ _ -> interactiveUpdate-          _                  -> return ()+          _                  -> pure ()  -- | Modify the incremental state modifyIncState  :: State -> (IncState -> IORef a) -> (a -> a) -> IO ()@@ -1264,22 +1272,21 @@         R.modifyIORef' (field incState) update  -- | Add an observable--- notice that we cons like a list, we should build at the end of the seq, but cons to preserve semantics for now-recordObservable :: State -> String -> (CV -> Bool) -> SV -> IO ()-recordObservable st (T.pack -> nm) chk sv = modifyState st rObservables ((nm, chk, sv) S.<|) (return ())+recordObservable :: State -> Text -> (CV -> Bool) -> SV -> IO ()+recordObservable st nm chk sv = modifyState st rObservables (S.|> (nm, chk, sv)) (pure ())  -- | Increment the variable counter incrementInternalCounter :: State -> IO Int incrementInternalCounter st = do ctr <- readIORef (rctr st)-                                 modifyState st rctr (+1) (return ())-                                 return ctr+                                 modifyState st rctr (+1) (pure ())+                                 pure ctr {-# INLINE incrementInternalCounter #-}  -- | Increment the fresh-var counter incrementFreshNameCounter :: State -> IO Int incrementFreshNameCounter st = do ctr <- readIORef (freshNameCtr st)-                                  modifyState st freshNameCtr (+1) (return ())-                                  return ctr+                                  modifyState st freshNameCtr (+1) (pure ())+                                  pure ctr {-# INLINE incrementFreshNameCounter #-}  -- | Kind of code we have for uninterpretation@@ -1287,9 +1294,9 @@                 | UISMT  SMTDef   -- SMTLib, first argument are the free-variables in it                 | UICgC  [String] -- Code-gen, currently only C --- | A newtype wrapper for uninterpreted function names. This is in preparation--- for a possibility of having other alternatives here, which we haven't needed so far.-newtype UIName = UIGiven String -- ^ Full name+-- | A newtype wrapper for uninterpreted function names. We distinguish between user names and those of constructors+data UIName = UIGiven String -- ^ Full name+            | UIADT   ADTOp  -- ^ The name of an ADT operation based on the constructor  -- | Uninterpreted constants and functions. An uninterpreted constant is -- a value that is indexed by its name. The only property the prover assumes@@ -1307,35 +1314,28 @@ svUninterpretedGen :: Kind -> UIName -> UICodeKind -> [SVal] -> Maybe [String] -> SVal svUninterpretedGen k nm code args mbArgNames = SVal k $ Right $ cache result   where result st = do let ty = SBVType (map kindOf args ++ [k])-                       nm' <- newUninterpreted st nm mbArgNames ty code+                       op <- newUninterpreted st nm mbArgNames ty code                        sws <- mapM (svToSV st) args                        mapM_ forceSVArg sws-                       newExpr st k $ SBVApp (Uninterpreted nm') sws---- | Generate a unique name for the fiven function based on the object's stable name-prefixNameToUnique :: State -> String -> IO String-prefixNameToUnique st pre = do-   uiMap <- readIORef (rUIMap st)--   let suffix 0 = pre-       suffix i = pre ++ "_" ++ show i--   case [cand | i <- [0::Int ..], let cand = suffix i, cand `Map.notMember` uiMap] of-      (n:_) -> pure n-      []    -> error $ "genUniqueName: Can't generate a unique name for prefix: " ++ pre   -- can't happen+                       newExpr st k $ SBVApp op sws --- | Create a new uninterpreted symbol, possibly with user given code. This function might change+-- | Create a new value, possibly with user given code. This function might change -- the name given, putting bars around it if needed. That's the name returned.-newUninterpreted :: State -> UIName -> Maybe [String] -> SBVType -> UICodeKind -> IO String+newUninterpreted :: State -> UIName -> Maybe [String] -> SBVType -> UICodeKind -> IO Op newUninterpreted st uiName mbArgNames t uiCode = do -  candName <- case uiName of-                UIGiven n -> pure n+  let (adtOp, candName) = case uiName of+                            UIGiven n -> (False, n)+                            UIADT   o -> case o of+                                           ADTConstructor n _ -> (True, T.unpack n)+                                           ADTTester      n _ -> (True, T.unpack n)+                                           ADTAccessor    n _ -> (True, T.unpack n) -      -- determine the final name+  -- determine the final name. We leave constructors alone.   let nm = case () of-             () | "__internal_sbv_" `isPrefixOf` candName -> candName                -- internal names go thru-                | True                                    -> barify candName         -- surround with bars if not legitimate in SMTLib+             () | "__internal_sbv_" `isPrefixOf` candName -> candName        -- internal names go thru+                | adtOp                                   -> candName        -- ADT names go thru+                | True                                    -> barify candName -- surround with bars if not legitimate in SMTLib        extraComment = case uiName of                       UIGiven  n | nm /= n -> " (Given: " ++ n ++ ")"@@ -1351,7 +1351,14 @@    isCurried <- case uiCode of                  UINone c -> pure c-                 UISMT d  -> do modifyState st rDefns (\defs -> (nm, (d, t)) : filter (\(onm, _) -> onm /= nm) defs)+                 UISMT d  -> do -- Check for conflicting definitions with the same name+                                defs <- readIORef (rDefns st)+                                case Map.lookup nm defs of+                                  Just (oldDef, _)+                                    | not (smtDefEq d oldDef)+                                    -> conflictError nm+                                  _ -> pure ()+                                modifyState st rDefns (Map.insert nm (d, t))                                   $ noInteractive [ "Defined functions (smtFunction):"                                                   , "  Name: " ++ nm ++ extraComment                                                   , "  Type: " ++ show t@@ -1361,7 +1368,7 @@                                                   ]                                 pure True                  UICgC c  -> -- No need to record the code in interactive mode: CodeGen doesn't use interactive-                             do modifyState st rCgMap (Map.insert nm c) (return ())+                             do modifyState st rCgMap (Map.insert nm c) (pure ())                                 pure True    let checkType :: SBVType -> r -> r@@ -1371,16 +1378,23 @@                           ++ "      Previously used at: " ++ show t'         | True    = cont -  uiMap <- readIORef (rUIMap st)-  case nm `Map.lookup` uiMap of-    Just (_, _, t') -> checkType t' (return ())-    Nothing         -> modifyState st rUIMap (Map.insert nm (isCurried, mbArgNames, t))-                         $ modifyIncState st rNewUIs-                                            (\newUIs -> case nm `Map.lookup` newUIs of-                                                          Just (_, _, t') -> checkType t' newUIs-                                                          Nothing         -> Map.insert nm (isCurried, mbArgNames, t) newUIs)+  -- If we're not a constructor, register it:+  unless adtOp $ do+    uiMap <- readIORef (rUIMap st)+    case nm `Map.lookup` uiMap of+      Just (_, _, t') -> checkType t' (pure ())+      Nothing         -> modifyState st rUIMap (Map.insert nm (isCurried, mbArgNames, t))+                           $ modifyIncState st rNewUIs+                                              (\newUIs -> case nm `Map.lookup` newUIs of+                                                            Just (_, _, t') -> checkType t' newUIs+                                                            Nothing         -> Map.insert nm (isCurried, mbArgNames, t) newUIs) -  pure nm+  pure $ let tnm = T.pack nm+         in case uiName of+              UIGiven{}                  -> Uninterpreted tnm+              UIADT (ADTConstructor _ k) -> ADTOp (ADTConstructor tnm k)+              UIADT (ADTTester      _ k) -> ADTOp (ADTTester      tnm k)+              UIADT (ADTAccessor    _ k) -> ADTOp (ADTAccessor    tnm k)  -- | Add a new sAssert based constraint addAssertion :: State -> Maybe CallStack -> String -> SV -> IO ()@@ -1398,14 +1412,14 @@                               let n = "__internal_sbv_" <> nm                                   v = NamedSymVar sv n                               modifyState st rinps (addUserInput sv n) $ modifyIncState st rNewInps (v :)-                              return sv+                              pure sv {-# INLINE newInternalVariable #-}  -- | Create a variable to be used in a constraint-expression quantVar :: Quantifier -> State -> Kind -> IO SV quantVar q st k = do v@(NamedSymVar sv _) <- newSV st k-                     modifyState st rlambdaInps (S.|> (q, v)) (return ())-                     return sv+                     modifyState st rlambdaInps (S.|> (q, v)) (pure ())+                     pure sv {-# INLINE quantVar #-}  -- | Create a variable to be used in a lambda-expression@@ -1419,7 +1433,7 @@                 ll  <- readIORef (rLambdaLevel st)                 let sv = SV k (NodeId (sbvContext st, ll, ctr))                 registerKind st k-                return $ NamedSymVar sv $ T.pack (show sv)+                pure $ NamedSymVar sv $ showText sv {-# INLINE newSV #-}  -- | Register a new kind with the system, used for uninterpreted sorts.@@ -1433,7 +1447,7 @@ -- allow for this. registerKind :: State -> Kind -> IO () registerKind st k-  | KUserSort sortName _ <- k, isReserved sortName+  | KADT sortName _ _ <- k, isReserved sortName   = error $ "SBV: " ++ show sortName ++ " is a reserved sort; please use a different name."   | True   = do -- Adding a kind to the incState is tricky; we only need to add it@@ -1443,39 +1457,46 @@         existingKinds <- readIORef (rUsedKinds st) -       modifyState st rUsedKinds (Set.insert k) $ do+       -- For ADTs we need to make sure we haven't added it before+       let adtNameExists s = any (\case KADT s' _ _ -> s == s'; _ -> False) existingKinds -                          -- Why do we discriminate here? Because the incremental context is sensitive to the-                          -- order: In particular, if an uninterpreted kind is already in there, we don't-                          -- want to re-add because double-declaration would be wrong. See 'cvtInc' for details.-                          let needsAdding = case k of-                                              KUserSort{} -> k `notElem` existingKinds-                                              KList{}     -> k `notElem` existingKinds-                                              KTuple nks  -> length nks `notElem` [length oks | KTuple oks <- Set.toList existingKinds]-                                              KMaybe{}    -> k `notElem` existingKinds-                                              KEither{}   -> k `notElem` existingKinds-                                              _           -> False+           adtExists = case k of+                         KADT s _ _  -> adtNameExists s+                         _           -> False -                          when needsAdding $ modifyIncState st rNewKinds (Set.insert k)+       unless adtExists $+          modifyState st rUsedKinds (Set.insert k) $ do +              -- Why do we discriminate here? Because the incremental context is sensitive to the+              -- order: In particular, if an uninterpreted kind is already in there, we don't+              -- want to re-add because double-declaration would be wrong. See 'cvtInc' for details.+              let needsAdding = case k of+                                  KADT s _ _  -> not (adtNameExists s)+                                  KList{}     -> k `Set.notMember` existingKinds+                                  KTuple nks  -> not $ any (\case KTuple oks -> length nks == length oks; _ -> False) existingKinds+                                  _           -> False++              when needsAdding $ modifyIncState st rNewKinds (Set.insert k)+        -- Don't forget to register subkinds!        case k of-         KBool     {}    -> return ()-         KBounded  {}    -> return ()-         KUnbounded{}    -> return ()-         KReal     {}    -> return ()-         KUserSort {}    -> return ()-         KFloat    {}    -> return ()-         KDouble   {}    -> return ()-         KFP       {}    -> return ()-         KRational {}    -> return ()-         KChar     {}    -> return ()-         KString   {}    -> return ()+         KVar      {}    -> pure ()+         KBool     {}    -> pure ()+         KBounded  {}    -> pure ()+         KUnbounded{}    -> pure ()+         KReal     {}    -> pure ()+         KFloat    {}    -> pure ()+         KDouble   {}    -> pure ()+         KFP       {}    -> pure ()+         KRational {}    -> pure ()+         KChar     {}    -> pure ()+         KString   {}    -> pure ()++         KApp _ ks       -> mapM_ (registerKind st) ks+         KADT _ pks cks  -> mapM_ (registerKind st) (map snd pks ++ concatMap snd cks)          KList     ek    -> registerKind st ek          KSet      ek    -> registerKind st ek          KTuple    eks   -> mapM_ (registerKind st) eks-         KMaybe    ke    -> registerKind st ke-         KEither   k1 k2 -> mapM_ (registerKind st) [k1, k2]          KArray    k1 k2 -> mapM_ (registerKind st) [k1, k2]  -- | Register a new label with the system, making sure they are unique and have no '|'s in them@@ -1491,7 +1512,7 @@   = do old <- readIORef $ rUsedLbls st        if nm `Set.member` old           then err "is used multiple times. Please do not use duplicate names!"-          else modifyState st rUsedLbls (Set.insert nm) (return ())+          else modifyState st rUsedLbls (Set.insert nm) (pure ())    where err w = error $ "SBV (" ++ whence ++ "): " ++ show nm ++ " " ++ w @@ -1503,11 +1524,11 @@     -- NB. Unlike in 'newExpr', we don't have to make sure the returned sv     -- has the kind we asked for, because the constMap stores the full CV     -- which already has a kind field in it.-    Just sv -> return sv+    Just sv -> pure sv     Nothing -> do (NamedSymVar sv _) <- newSV st (kindOf c)                   let ins = Map.insert c sv                   modifyState st rconstMap ins $ modifyIncState st rNewConsts ins-                  return sv+                  pure sv {-# INLINE newConst #-}  -- | Create a new table; hash-cons as necessary@@ -1516,11 +1537,11 @@   let key = (at, rt, elts)   tblMap <- readIORef (rtblMap st)   case key `Map.lookup` tblMap of-    Just i -> return i+    Just i -> pure i     _      -> do let i   = Map.size tblMap                      upd = Map.insert key i                  modifyState st rtblMap upd $ modifyIncState st rNewTbls upd-                 return i+                 pure i  -- | Create a new expression; hash-cons as necessary newExpr :: State -> Kind -> SBVExpr -> IO SV@@ -1533,13 +1554,13 @@      -- at first, but `svSign` and `svUnsign` rely on this as we can      -- get the same expression but at a different type. See      -- <http://github.com/GaloisInc/cryptol/issues/566> as an example.-     Just sv | kindOf sv == k -> return sv+     Just sv | kindOf sv == k -> pure sv      _                        -> do (NamedSymVar sv _) <- newSV st k                                     checkConsistent sv e                                     let append (SBVPgm xs) = SBVPgm (xs S.|> (sv, e))                                     modifyState st spgm append $ modifyIncState st rNewAsgns append-                                    modifyState st rexprMap (Map.insert e sv) (return ())-                                    return sv+                                    modifyState st rexprMap (Map.insert e sv) (pure ())+                                    pure sv {-# INLINE newExpr #-}  -- | In rare cases, we can get a context mismatch; so make sure the expression is well-formed.@@ -1559,15 +1580,6 @@ compatibleContext c1 c2 = c1 == c2 || c1 == globalSBVContext || c2 == globalSBVContext {-# INLINE compatibleContext #-} --- | Same as checkConsistent above, except in an array context-checkCompatibleContext :: SBVContext -> SBVContext -> IO ()-checkCompatibleContext ctx1 ctx2-   | ctx1 `compatibleContext` ctx2-   = pure ()-   | True-   = contextMismatchError ctx1 ctx2-{-# INLINE checkCompatibleContext #-}- -- | Convert a symbolic value to an internal SV svToSV :: State -> SVal -> IO SV svToSV st (SVal _ (Left c))  = newConst st c@@ -1604,9 +1616,7 @@ newtype SymbolicT m a = SymbolicT { runSymbolicT :: ReaderT State m a }                    deriving newtype ( Applicative, Functor, Monad, MonadIO, MonadTrans                             , MonadError e, MonadState s, MonadWriter w-#if MIN_VERSION_base(4,11,0)-                            , Fail.MonadFail-#endif+                            , MonadFail                             )  -- | `MonadSymbolic` instance for `SymbolicT m`@@ -1662,6 +1672,8 @@ -- when used for @quickCheck@ or 'Data.SBV.Tools.GenTest.genTest' purposes. svMkSymVarGen :: Bool -> VarContext -> Kind -> Maybe String -> State -> IO SVal svMkSymVarGen isTracker varContext k mbNm st = do+        registerKind st k+         rm <- readIORef (runMode st)          let varInfo = case mbNm of@@ -1675,34 +1687,29 @@                                              , "*** In mode: " ++ show rm                                              ] -            noUI cont-              | isUserSort k  = disallow "User defined sorts"-              | True          = cont-             (isQueryVar, mbQ) = case varContext of                                   NonQueryVar mq -> (False, mq)                                   QueryVar       -> (True,  Just EX)              mkS q = do (NamedSymVar sv internalName) <- newSV st k-                       let nm = fromMaybe (T.unpack internalName) mbNm+                       let nm = maybe internalName T.pack mbNm                        introduceUserName st (isQueryVar, isTracker) nm k q sv -            mkC cv = do registerKind st k-                        modifyState st rCInfo ((fromMaybe "_" mbNm, cv):) (return ())-                        return $ SVal k (Left cv)+            mkC cv = do modifyState st rCInfo ((fromMaybe "_" mbNm, cv):) (pure ())+                        pure $ SVal k (Left cv)          case (mbQ, rm) of           (Just q,  SMTMode{}          ) -> mkS q           (Nothing, SMTMode _ _ isSAT _) -> mkS (if isSAT then EX else ALL)            (Just EX, CodeGen{})           -> disallow "Existentially quantified variables"-          (_      , CodeGen)             -> noUI $ mkS ALL  -- code generation, pick universal+          (_      , CodeGen)             -> mkS ALL  -- code generation, pick universal            (Just EX, Concrete Nothing)    -> disallow "Existentially quantified variables"-          (_      , Concrete Nothing)    -> noUI (randomCV k >>= mkC)+          (_      , Concrete Nothing)    -> randomCV k >>= mkC            (Just EX, LambdaGen{})         -> disallow "Existentially quantified variables"-          (_,       LambdaGen{})         -> noUI $ mkS ALL+          (_,       LambdaGen{})         -> mkS ALL            -- Model validation:           (_      , Concrete (Just (_isSat, env))) -> do@@ -1714,43 +1721,39 @@                                                            , "*** " ++ conc                                                            ] -                            cant   = "Validation engine is not capable of handling this case. Failed to validate."                             report = "Please report this as a bug in SBV!" -                        case () of-                          () | isUserSort k -> bad ("Cannot validate models in the presence of user defined kinds, saw: "             ++ show k) cant--                          _  -> do (NamedSymVar sv internalName) <- newSV st k+                        (NamedSymVar sv internalName) <- newSV st k -                                   let nm = fromMaybe (T.unpack internalName) mbNm-                                       nsv = toNamedSV' sv nm+                        let nm = maybe internalName T.pack mbNm+                            nsv = NamedSymVar sv nm -                                       -- Ignore the context equivalence check here. When validating, we are in a different-                                       -- context; so they won't match-                                       same (NamedSymVar (SV _ (NodeId (_, ll1, li1))) _)-                                            (NamedSymVar (SV _ (NodeId (_, ll2, li2))) _) = (ll1, li1) == (ll2, li2)+                            -- Ignore the context equivalence check here. When validating, we are in a different+                            -- context; so they won't match+                            same (NamedSymVar (SV _ (NodeId (_, ll1, li1))) _)+                                 (NamedSymVar (SV _ (NodeId (_, ll2, li2))) _) = (ll1, li1) == (ll2, li2) -                                       cv = case [v | (nsv', v) <- env, nsv `same` nsv'] of-                                              []    -> if isTracker-                                                       then  -- The sole purpose of a tracker variable is to send the optimization-                                                             -- directive to the solver, so we can name "expressions" that are minimized-                                                             -- or maximized. There will be no constraints on these when we are doing-                                                             -- the validation; in fact they will not even be used anywhere during a-                                                             -- validation run. So, simply push a zero value that inhabits all metrics.-                                                             mkConstCV k (0::Integer)-                                                       else bad ("Cannot locate variable: " ++ show (nsv, k)) report-                                              [c]  -> c-                                              r    -> bad (   "Found multiple matching values for variable: " ++ show nsv-                                                           ++ "\n*** " ++ show r) report+                            cv = case [v | (nsv', v) <- env, nsv `same` nsv'] of+                                   []    -> if isTracker+                                            then  -- The sole purpose of a tracker variable is to send the optimization+                                                  -- directive to the solver, so we can name "expressions" that are minimized+                                                  -- or maximized. There will be no constraints on these when we are doing+                                                  -- the validation; in fact they will not even be used anywhere during a+                                                  -- validation run. So, simply push a zero value that inhabits all metrics.+                                                  mkConstCV k (0::Integer)+                                            else bad ("Cannot locate variable: " ++ show (nsv, k)) report+                                   [c]  -> c+                                   r    -> bad (   "Found multiple matching values for variable: " ++ show nsv+                                                ++ "\n*** " ++ show r) report -                                   mkC cv+                        mkC cv  -- | Introduce a new user name. We simply append a suffix if we have seen this variable before.-introduceUserName :: State -> (Bool, Bool) -> String -> Kind -> Quantifier -> SV -> IO SVal+introduceUserName :: State -> (Bool, Bool) -> Text -> Kind -> Quantifier -> SV -> IO SVal introduceUserName st@State{runMode} (isQueryVar, isTracker) nmOrig k q sv = do         old <- allInputs <$> readIORef (rinps st) -        let nm  = mkUnique (T.pack nmOrig) old+        let nm  = mkUnique nmOrig old          -- If this is not a query variable and we're in a query, reject it.         -- See https://github.com/LeventErkok/sbv/issues/554 for the rationale.@@ -1782,13 +1785,13 @@                                      $ noInteractive ["Adding a new tracker variable in interactive mode: " ++ show nm]                       else modifyState st rinps (addUserInput sv nm)                                      $ modifyIncState st rNewInps newInp-                   return $ SVal k $ Right $ cache (const (return sv))+                   pure $ SVal k $ Right $ cache (const (pure sv))     where -- The following can be rather slow if we keep reusing the same prefix, but I doubt it'll be a problem in practice          -- Also, the following will fail if we span the range of integers without finding a match, but your computer would          -- die way ahead of that happening if that's the case!          mkUnique :: T.Text -> Set.Set Name -> T.Text-         mkUnique prefix names = case dropWhile (`Set.member` names) (prefix : [prefix <> "_" <> T.pack (show i) | i <- [(0::Int)..]]) of+         mkUnique prefix names = case dropWhile (`Set.member` names) (prefix : [prefix <> "_" <> showText i | i <- [(0::Int)..]]) of                                    h:_ -> h                                    _   -> error $ "mkUnique: Impossible happened! Couldn't get a unique name for " ++ show (prefix, names) @@ -1817,10 +1820,15 @@      lambdaInps         <- newIORef mempty      outs               <- newIORef []      tables             <- newIORef Map.empty-     userFuncs          <- newIORef Set.empty+     userFuncs          <- newIORef Map.empty+     compilingFuncs     <- newIORef Set.empty      uis                <- newIORef Map.empty      cgs                <- newIORef Map.empty-     defns              <- newIORef []+     defns              <- newIORef Map.empty+     measureChecks      <- newIORef []+     funcLambdaInfos    <- newIORef Map.empty+     skipMeasureChecks  <- newIORef False+     noTermCheckFuncs   <- newIORef Set.empty      swCache            <- newIORef IMap.empty      usedKinds          <- newIORef Set.empty      usedLbls           <- newIORef Set.empty@@ -1833,40 +1841,45 @@      istate             <- newIORef =<< newIncState      qstate             <- newIORef Nothing      ctx                <- genSBVContext-     pure $ State { sbvContext          = ctx-                  , runMode             = rm-                  , stCfg               = cfg-                  , startTime           = currTime-                  , rProgInfo           = progInfo-                  , pathCond            = SVal KBool (Left trueCV)-                  , rIncState           = istate-                  , rCInfo              = cInfo-                  , rObservables        = observes-                  , rctr                = ctr-                  , freshNameCtr        = fnctr-                  , rLambdaLevel        = lambda-                  , rUsedKinds          = usedKinds-                  , rUsedLbls           = usedLbls-                  , rinps               = inps-                  , rlambdaInps         = lambdaInps-                  , routs               = outs-                  , rtblMap             = tables-                  , spgm                = pgm-                  , rconstMap           = cmap-                  , rexprMap            = emap-                  , rUserFuncs          = userFuncs-                  , rUIMap              = uis-                  , rCgMap              = cgs-                  , rDefns              = defns-                  , rSVCache            = swCache-                  , rConstraints        = cstrs-                  , rPartitionVars      = pvs-                  , rSMTOptions         = smtOpts-                  , rOptGoals           = optGoals-                  , rAsserts            = asserts-                  , rOutstandingAsserts = outstandingAsserts-                  , rQueryState         = qstate-                  , parentState         = Nothing+     pure $ State { sbvContext            = ctx+                  , runMode               = rm+                  , stCfg                 = cfg+                  , startTime             = currTime+                  , rProgInfo             = progInfo+                  , pathCond              = SVal KBool (Left trueCV)+                  , rIncState             = istate+                  , rCInfo                = cInfo+                  , rObservables          = observes+                  , rctr                  = ctr+                  , freshNameCtr          = fnctr+                  , rLambdaLevel          = lambda+                  , rUsedKinds            = usedKinds+                  , rUsedLbls             = usedLbls+                  , rinps                 = inps+                  , rlambdaInps           = lambdaInps+                  , routs                 = outs+                  , rtblMap               = tables+                  , spgm                  = pgm+                  , rconstMap             = cmap+                  , rexprMap              = emap+                  , rUserFuncs            = userFuncs+                  , rCompilingFuncs       = compilingFuncs+                  , rUIMap                = uis+                  , rCgMap                = cgs+                  , rDefns                = defns+                  , rMeasureChecks        = measureChecks+                  , rFuncLambdaInfos      = funcLambdaInfos+                  , rSkipMeasureChecks    = skipMeasureChecks+                  , rNoTermCheckFunctions = noTermCheckFuncs+                  , rSVCache              = swCache+                  , rConstraints          = cstrs+                  , rPartitionVars        = pvs+                  , rSMTOptions           = smtOpts+                  , rOptGoals             = optGoals+                  , rAsserts              = asserts+                  , rOutstandingAsserts   = outstandingAsserts+                  , rQueryState           = qstate+                  , parentState           = Nothing                   }  -- | Generalization of 'Data.SBV.runSymbolic'@@ -1876,13 +1889,12 @@    runSymbolicInState st comp  -- | Catch the catastrophic case of context mismatch+-- NB. We're not printing _ctx1/_ctx2 here (hence the underscored variables).+-- The reason is that they can get different values; causing test-suite failures with no helpful info. contextMismatchError :: SBVContext -> SBVContext -> a-contextMismatchError ctx1 ctx2 = error $ unlines [+contextMismatchError _ctx1 _ctx2 = error $ unlines [                                "Data.SBV: Mismatched contexts detected."                              , "***"-                             , "***   Current context: " ++ show ctx1-                             , "***   Mixed with     : " ++ show ctx2-                             , "***"                              , "*** This happens if you call a proof-function (prove/sat/runSMT/isSatisfiable) etc."                              , "*** while another one is in execution, or use results from one such call in another."                              , "*** Please avoid such nested calls, all interactions should be from the same context."@@ -1905,7 +1917,7 @@     mapM_ check $ nubOrd $ G.universeBi res -   return (r, res)+   pure (r, res)  -- | Grab the program from a running symbolic simulation state. extractSymbolicSimulationState :: State -> IO Result@@ -1949,36 +1961,34 @@     outsO <- reverse <$> readIORef outs -   let swap  (a, b)              = (b, a)-       cmp   (a, _) (b, _)       = a `compare` b-       arrange (i, (at, rt, es)) = ((i, at, rt), es)+   let arrange (i, (at, rt, es)) = ((i, at, rt), es)     constMap <- readIORef (rconstMap st)-   let cnsts = sortBy cmp . map swap . Map.toList $ constMap+   let cnsts = mapToSortedList constMap -   tbls  <- map arrange . sortBy cmp . map swap . Map.toList <$> readIORef tables-   ds    <- reverse <$> readIORef defns+   tbls  <- map arrange . mapToSortedList <$> readIORef tables+   defnMap <- readIORef defns+   let ds         = Map.toList defnMap+       definedSet = Map.keysSet defnMap    unint <- do unints <- Map.toList <$> readIORef uis                -- drop those that has a definition associated with it-               let defineds = map fst ds-               pure [ui | ui@(nm, _) <- unints, nm `notElem` defineds]+               pure [ui | ui@(nm, _) <- unints, nm `Set.notMember` definedSet]    knds  <- readIORef usedKinds    cgMap <- Map.toList <$> readIORef cgs     traceVals   <- reverse <$> readIORef cInfo-   observables <- reverse . fmap (\(n,f,sv) -> (T.unpack n, f, sv)) . F.toList-                  <$> readIORef observes+   observables <- fmap (\(n,f,sv) -> (T.unpack n, f, sv)) . F.toList <$> readIORef observes    extraCstrs  <- readIORef cstrs    assertions  <- reverse <$> readIORef asserts     pinfo <- readIORef progInfo -   return $ Result pinfo knds traceVals observables cgMap inpsO (constMap, cnsts) tbls unint ds (SBVPgm rpgm) extraCstrs assertions outsO+   pure $ Result pinfo knds traceVals observables cgMap inpsO (constMap, cnsts) tbls unint ds (SBVPgm rpgm) extraCstrs assertions outsO  -- | Generalization of 'Data.SBV.addNewSMTOption' addNewSMTOption :: MonadSymbolic m => SMTOption -> m () addNewSMTOption o = do st <- symbolicEnv-                       liftIO $ modifyState st rSMTOptions (o:) (return ())+                       liftIO $ modifyState st rSMTOptions (o:) (pure ())  -- | Generalization of 'Data.SBV.imposeConstraint' imposeConstraint :: MonadSymbolic m => Bool -> [(String, String)] -> SVal -> m ()@@ -2022,7 +2032,7 @@                         let mkGoal nm orig = liftIO $ do origSV  <- svToSV st orig                                                          track   <- svMkTrackerVar (kindOf orig) nm st                                                          trackSV <- svToSV st track-                                                         return (origSV, trackSV)+                                                         pure (origSV, trackSV)                          let walk (Minimize          nm v)     = Minimize nm                     <$> mkGoal nm v                             walk (Maximize          nm v)     = Maximize nm                     <$> mkGoal nm v@@ -2042,18 +2052,18 @@   | True   = do st <- symbolicEnv        liftIO $ do xsv <- svToSV st x-                   recordObservable st m (const True) xsv+                   recordObservable st (T.pack m) (const True) xsv  -- | Generalization of 'Data.SBV.outputSVal' outputSVal :: MonadSymbolic m => SVal -> m () outputSVal (SVal _ (Left c)) = do   st <- symbolicEnv   sv <- liftIO $ newConst st c-  liftIO $ modifyState st routs (sv:) (return ())+  liftIO $ modifyState st routs (sv:) (pure ()) outputSVal (SVal _ (Right f)) = do   st <- symbolicEnv   sv <- liftIO $ uncache f st-  liftIO $ modifyState st routs (sv:) (return ())+  liftIO $ modifyState st routs (sv:) (pure ())  --------------------------------------------------------------------------------- -- * Cached values@@ -2089,10 +2099,10 @@         sn <- f `seq` makeStableName f         let h = hashStableName sn         case (h `IMap.lookup` stored) >>= (sn `lookup`) of-          Just r  -> return r+          Just r  -> pure r           Nothing -> do r <- f st-                        r `seq` R.modifyIORef' rCache (IMap.insertWith (++) h [(sn, r)])-                        return r+                        r `seq` R.modifyIORef' rCache (IMap.insertWith (\_ old -> (sn, r) : old) h [(sn, r)])+                        pure r  -- | Representation of SMTLib Program versions. As of June 2015, we're dropping support -- for SMTLib1, and supporting SMTLib2 only. We keep this data-type around in case@@ -2104,28 +2114,25 @@ smtLibVersionExtension :: SMTLibVersion -> String smtLibVersionExtension SMTLib2 = "smt2" --- | Representation of an SMT-Lib program. The second [String] are the function definitions,+-- | Representation of an SMT-Lib program. The second Text are the function definitions, -- which is *replicated* in the first one. There are cases where that we need the second part on its own.-data SMTLibPgm = SMTLibPgm SMTLibVersion [String] [String]+data SMTLibPgm = SMTLibPgm SMTLibVersion Text Text  instance NFData SMTLibVersion where rnf a                 = a `seq` () instance NFData SMTLibPgm     where rnf (SMTLibPgm v p d) = rnf v `seq` rnf p `seq` rnf d  instance Show SMTLibPgm where-  show (SMTLibPgm _ pgm _) = intercalate "\n" pgm+  show (SMTLibPgm _ pgm _) = T.unpack pgm +-- | Extract the program text from an SMTLibPgm without converting to String.+smtLibPgmText :: SMTLibPgm -> Text+smtLibPgmText (SMTLibPgm _ pgm _) = pgm+ -- Other Technicalities.. instance NFData GeneralizedCV where   rnf (ExtendedCV e) = e `seq` ()   rnf (RegularCV  c) = c `seq` () -#if MIN_VERSION_base(4,9,0)-#else--- Can't really force this, but not a big deal-instance NFData CallStack where-  rnf _ = ()-#endif- instance NFData NamedSymVar where   rnf (NamedSymVar s n) = rnf s `seq` rnf n @@ -2159,26 +2166,26 @@  -- | Translation tricks needed for specific capabilities afforded by each solver data SolverCapabilities = SolverCapabilities {-         supportsQuantifiers        :: Bool           -- ^ Supports SMT-Lib2 style quantifiers?-       , supportsDefineFun          :: Bool           -- ^ Supports define-fun construct?-       , supportsDistinct           :: Bool           -- ^ Supports calls to distinct?-       , supportsBitVectors         :: Bool           -- ^ Supports bit-vectors?-       , supportsUninterpretedSorts :: Bool           -- ^ Supports SMT-Lib2 style uninterpreted-sorts-       , supportsUnboundedInts      :: Bool           -- ^ Supports unbounded integers?-       , supportsReals              :: Bool           -- ^ Supports reals?-       , supportsApproxReals        :: Bool           -- ^ Supports printing of approximations of reals?-       , supportsDeltaSat           :: Maybe String   -- ^ Supports delta-satisfiability? (With given precision query)-       , supportsIEEE754            :: Bool           -- ^ Supports floating point numbers?-       , supportsSets               :: Bool           -- ^ Supports set operations?-       , supportsOptimization       :: Bool           -- ^ Supports optimization routines?-       , supportsPseudoBooleans     :: Bool           -- ^ Supports pseudo-boolean operations?-       , supportsCustomQueries      :: Bool           -- ^ Supports interactive queries per SMT-Lib?-       , supportsGlobalDecls        :: Bool           -- ^ Supports global declarations? (Needed for push-pop.)-       , supportsDataTypes          :: Bool           -- ^ Supports datatypes?-       , supportsLambdas            :: Bool           -- ^ Does it support lambdas?-       , supportsSpecialRels        :: Bool           -- ^ Does it support special relations (orders, transitive closure etc.)-       , supportsDirectAccessors    :: Bool           -- ^ Supports data-type accessors without full ascription?-       , supportsFlattenedModels    :: Maybe [String] -- ^ Supports flattened model output? (With given config lines.)+         supportsQuantifiers     :: Bool           -- ^ Supports SMT-Lib2 style quantifiers?+       , supportsDefineFun       :: Bool           -- ^ Supports define-fun construct?+       , supportsDistinct        :: Bool           -- ^ Supports calls to distinct?+       , supportsBitVectors      :: Bool           -- ^ Supports bit-vectors?+       , supportsADTs            :: Bool           -- ^ Supports SMT-Lib2 style uninterpreted-sorts and ADTs+       , supportsUnboundedInts   :: Bool           -- ^ Supports unbounded integers?+       , supportsReals           :: Bool           -- ^ Supports reals?+       , supportsApproxReals     :: Bool           -- ^ Supports printing of approximations of reals?+       , supportsDeltaSat        :: Maybe String   -- ^ Supports delta-satisfiability? (With given precision query)+       , supportsIEEE754         :: Bool           -- ^ Supports floating point numbers?+       , supportsSets            :: Bool           -- ^ Supports set operations?+       , supportsOptimization    :: Bool           -- ^ Supports optimization routines?+       , supportsPseudoBooleans  :: Bool           -- ^ Supports pseudo-boolean operations?+       , supportsCustomQueries   :: Bool           -- ^ Supports interactive queries per SMT-Lib?+       , supportsGlobalDecls     :: Bool           -- ^ Supports global declarations? (Needed for push-pop.)+       , supportsDataTypes       :: Bool           -- ^ Supports datatypes?+       , supportsLambdas         :: Bool           -- ^ Does it support lambdas?+       , supportsSpecialRels     :: Bool           -- ^ Does it support special relations (orders, transitive closure etc.)+       , supportsDirectTesters   :: Bool           -- ^ Supports data-type testers without full ascription?+       , supportsFlattenedModels :: Maybe [String] -- ^ Supports flattened model output? (With given config lines.)        }  -- | Solver configuration. See also 'Data.SBV.z3', 'Data.SBV.yices', 'Data.SBV.cvc4', 'Data.SBV.boolector', 'Data.SBV.mathSAT', etc.@@ -2220,7 +2227,7 @@        , dsatPrecision               :: Maybe Double        -- ^ Delta-sat precision        , solver                      :: SMTSolver           -- ^ The actual SMT solver.        , extraArgs                   :: [String]            -- ^ Extra command line arguments to pass to the solver.-       , roundingMode                :: RoundingMode        -- ^ Rounding mode to use for floating-point conversions+       , roundingMode                :: RoundingMode        -- ^ Rounding mode to use for floating-point calculations. Defaults to RNE.        , solverSetOptions            :: [SMTOption]         -- ^ Options to set as we start the solver        , ignoreExitCode              :: Bool                -- ^ If true, we shall ignore the exit code upon exit. Otherwise we require ExitSuccess.        , redirectVerbose             :: Maybe FilePath      -- ^ Redirect the verbose output to this file if given. If Nothing, stdout is implied.@@ -2230,18 +2237,17 @@  -- | Configuration for TP data TPOptions = TPOptions {-         ribbonLength :: Int  -- ^ Line length for TP proofs-       , quiet        :: Bool -- ^ No messages what-so-ever for successful steps. (Will print if something fails)-       , printAsms    :: Bool -- ^ Print assumptions as they are proven as separate steps.-       , printStats   :: Bool -- ^ Print time/statistics. If quiet is True, then measureTime is ignored.-       , cacheProofs  :: Bool -- ^ Treat lemma names as unique, and cache the results. Default: False. Note that this-                              -- feature is unsound unless you make sure (by some other mechanism) that your lemma names-                              -- are indeed unique.+         ribbonLength          :: Int            -- ^ Line length for TP proofs+       , quiet                 :: Bool           -- ^ No messages what-so-ever for successful steps. (Will print if something fails)+       , printAsms             :: Bool           -- ^ Print assumptions as they are proven as separate steps.+       , printStats            :: Bool           -- ^ Print time/statistics. If quiet is True, then measureTime is ignored.+       , measuresBeingVerified :: Set.Set String -- ^ Functions whose measures are currently being verified. Used to prevent infinite+                                                 -- recursion when a measureLemma proof uses the function whose measure is being checked.        }  -- | Ignore internal names and those the user told us to-mustIgnoreVar :: SMTConfig -> String -> Bool-mustIgnoreVar cfg s = "__internal_sbv" `isPrefixOf` s || isNonModelVar cfg s+mustIgnoreVar :: SMTConfig -> T.Text -> Bool+mustIgnoreVar cfg s = "__internal_sbv" `T.isPrefixOf` s || isNonModelVar cfg (T.unpack s)  -- | We show the name of the solver for the config. Arguably this is misleading, but better than nothing. instance Show SMTConfig where@@ -2267,10 +2273,6 @@      }      deriving Show --- | Is it the case that the model is really uninteresting? This is the case when there are no assocs nor ui's-isEmptyModel :: SMTModel -> Bool-isEmptyModel SMTModel{modelAssocs, modelUIFuns} = null modelAssocs && null modelUIFuns- -- | The result of an SMT solver call. Each constructor is tagged with -- the t'SMTConfig' that created it so that further tools can inspect it -- and build layers of results, if needed. For ordinary uses of the library,@@ -2293,7 +2295,7 @@ type SMTEngine =  forall res.                   SMTConfig         -- ^ current configuration                -> State             -- ^ the state in which to run the engine-               -> String            -- ^ program+               -> Text              -- ^ program                -> (State -> IO res) -- ^ continuation                -> IO res @@ -2314,7 +2316,7 @@ data SMTSolver = SMTSolver {          name           :: Solver                -- ^ The solver in use        , executable     :: String                -- ^ The path to its executable-       , preprocess     :: String -> String      -- ^ Each line sent to the solver will be passed through this function (typically id)+       , preprocess     :: Text -> Text          -- ^ Each line sent to the solver will be passed through this function (typically id)        , options        :: SMTConfig -> [String] -- ^ Options to provide to the solver        , engine         :: SMTEngine             -- ^ The solver engine, responsible for interpreting solver output        , capabilities   :: SolverCapabilities    -- ^ Various capabilities of the solver
+ Data/SBV/Core/TH.hs view
@@ -0,0 +1,142 @@+-----------------------------------------------------------------------------+-- |+-- Module    : Data.SBV.Core.TH+-- Copyright : (c) Levent Erkok+-- License   : BSD3+-- Maintainer: erkokl@gmail.com+-- Stability : experimental+--+-- Template Haskell utilities for extracting constructor information from+-- algebraic data types. Factored out to avoid circular dependencies.+-----------------------------------------------------------------------------++{-# LANGUAGE LambdaCase              #-}+{-# LANGUAGE PackageImports          #-}+{-# LANGUAGE ScopedTypeVariables     #-}+{-# LANGUAGE TemplateHaskellQuotes   #-}+{-# LANGUAGE TupleSections           #-}++{-# OPTIONS_GHC -Wall -Werror #-}++module Data.SBV.Core.TH (+         getConstructors+       , bad+       , report+       , sbvName+       ) where++import Data.Maybe (fromMaybe)++import qualified "template-haskell" Language.Haskell.TH        as TH+import           "template-haskell" Language.Haskell.TH.Syntax as THS (Name(..), OccName(..), NameFlavour(..), PkgName, ModName(..), NameSpace(..))++import Language.Haskell.TH.ExpandSyns as TH++import Data.SBV.Core.Kind (smtType)++-- | Construct a TH name for a value\/function in the @sbv@ package, given+-- the fully qualified module name and the unqualified identifier. This avoids+-- importing the target module (which would create import cycles) while still+-- producing exact 'NameG' names that resolve correctly in generated TH splices.+sbvName :: String -> String -> TH.Name+sbvName modNm fnNm = THS.Name (THS.OccName fnNm) (THS.NameG THS.VarName sbvPkg (THS.ModName modNm))+  where -- Extract the package key from a known cross-module name in the sbv package+        sbvPkg :: THS.PkgName+        sbvPkg = case 'smtType of+                   THS.Name _ (THS.NameG _ pkg _) -> pkg+                   _                              -> error "Data.SBV.Core.TH.sbvName: unexpected name flavour"++bad :: MonadFail m => String -> [String] -> m a+bad what extras = fail $ unlines $ ("mkSymbolic: " ++ what) : map ("      " ++) extras++report :: String+report = "Please report this as a feature request."++-- | Collect the constructors+getConstructors :: TH.Name -> TH.Q ([TH.Name], [(TH.Name, [(Maybe TH.Name, TH.Type)])])+getConstructors typeName = do res@(_, cstrs) <- getConstructorsFromType (TH.ConT typeName)++                              -- make sure accessors are unique+                              let noDup [] = pure ()+                                  noDup (n:ns)+                                    | n `elem` ns = bad "Unsupported field accessor definition."+                                                        [ "Multiply used: " ++ TH.nameBase n+                                                        , ""+                                                        , "SBV does not support cases where accessor fields are replicated."+                                                        , "Please use each accessor only once."+                                                        ]+                                    | True        = noDup ns+                              noDup [n | (_, fs) <- cstrs, (Just n, _) <- fs]++                              pure res++  where getConstructorsFromType :: TH.Type -> TH.Q ([TH.Name], [(TH.Name, [(Maybe TH.Name, TH.Type)])])+        getConstructorsFromType ty = do ty' <- expandSyns ty+                                        case headCon ty' of+                                          Just (n, args) -> reifyFromHead n args+                                          Nothing        -> bad "Not a type constructor"+                                                                [ "Name    : " ++ show typeName+                                                                , "Type    : " ++ show ty+                                                                , "Expanded: " ++ show ty'+                                                                ]++        headCon :: TH.Type -> Maybe (TH.Name, [TH.Type])+        headCon = go []+          where go args (TH.ConT n)    = Just (n, reverse args)+                go args (TH.AppT t a)  = go   (a:args) t+                go args (TH.SigT t _)  = go      args t+                go args (TH.ParensT t) = go      args t+                go _    _              = Nothing++        reifyFromHead :: TH.Name -> [TH.Type] -> TH.Q ([TH.Name], [(TH.Name, [(Maybe TH.Name, TH.Type)])])+        reifyFromHead n args = do info <- TH.reify n+                                  case info of+                                    TH.TyConI (TH.DataD    _ _ tvs _ cons _) -> (map tvName tvs,) <$> mapM (expandCon (mkSubst tvs args)) cons+                                    TH.TyConI (TH.NewtypeD _ _ tvs _ con  _) -> (map tvName tvs,) <$> mapM (expandCon (mkSubst tvs args)) [con]+                                    TH.TyConI (TH.TySynD _ tvs rhs)          -> getConstructorsFromType (applySubst (mkSubst tvs args) rhs)+                                    _ -> bad "Unsupported kind"+                                             [ "Type : " ++ show typeName+                                             , "Name : " ++ show n+                                             , "Kind : " ++ show info+                                             ]++        onSnd f (a, b) = (a,) <$> f b++        expandCon :: [(TH.Name, TH.Type)] -> TH.Con -> TH.Q (TH.Name, [(Maybe TH.Name, TH.Type)])+        expandCon sub (TH.NormalC  n fields)          = (n,) <$> mapM (onSnd (expandSyns . applySubst sub) . (\(   _,t) -> (Nothing, t))) fields+        expandCon sub (TH.RecC     n fields)          = (n,) <$> mapM (onSnd (expandSyns . applySubst sub) . (\(fn,_,t) -> (Just fn, t))) fields+        expandCon sub (TH.InfixC   (_, t1) n (_, t2)) = (n,) <$> mapM (onSnd (expandSyns . applySubst sub)) [(Nothing, t1), (Nothing, t2)]+        {- These don't have proper correspondences in SMTLib; so ignore.+        expandCon sub (TH.ForallC  _ _ c)             = expandCon sub c+        expandCon sub (TH.GadtC    [n] fields _)      = (n,) <$> mapM (onSnd (expandSyns . applySubst sub) . (\(   _,t) -> (Nothing, t))) fields+        expandCon sub (TH.RecGadtC [n] fields _)      = (n,) <$> mapM (onSnd (expandSyns . applySubst sub) . (\(fn,_,t) -> (Just fn, t))) fields+        -}+        expandCon _   c                               = bad "Unsupported constructor form: "+                                                            [ "Type       : " ++ show typeName+                                                            , "Constructor: " ++ show c+                                                            , ""+                                                            , report+                                                            ]++        tvName :: TH.TyVarBndr TH.BndrVis -> TH.Name+        tvName (TH.PlainTV  n _)   = n+        tvName (TH.KindedTV n _ _) = n++        -- | Make substitution from type variables to actual args+        mkSubst :: [TH.TyVarBndr TH.BndrVis] -> [TH.Type] -> [(TH.Name, TH.Type)]+        mkSubst tvs = zip (map tvName tvs)++        -- | Apply substitution to a Type+        applySubst :: [(TH.Name, TH.Type)] -> TH.Type -> TH.Type+        applySubst sub = go+          where go (TH.VarT    n)        = fromMaybe  (TH.VarT n) (n `lookup` sub)+                go (TH.AppT    t1 t2)    = TH.AppT    (go t1) (go t2)+                go (TH.SigT    t k)      = TH.SigT    (go t)  k+                go (TH.ParensT t)        = TH.ParensT (go t)+                go (TH.InfixT  t1 n t2)  = TH.InfixT  (go t1) n (go t2)+                go (TH.UInfixT t1 n t2)  = TH.UInfixT (go t1) n (go t2)+                go (TH.ForallT bs ctx t) = TH.ForallT bs (map goPred ctx) (go t)+                go t                     = t++                goPred (TH.AppT t1 t2) = TH.AppT (go t1) (go t2)+                goPred p               = p
Data/SBV/Dynamic.hs view
@@ -32,7 +32,9 @@   -- *** Integer literals   , svInteger, svAsInteger   -- *** Float literals-  , svFloat, svDouble, svFloatingPoint+  , svFloat, svDouble, svFloatingPoint, svAsFloat, svAsDouble, svAsFP+  -- *** Rounding mode literals+  , svRoundingMode, svAsRoundingMode   -- *** Algebraic reals (only from rationals)   , svReal, svNumerator, svDenominator   -- *** Symbolic equality@@ -63,6 +65,16 @@   , svBarrelRotateLeft, svBarrelRotateRight   , svWordFromBE, svWordFromLE   , svBlastLE, svBlastBE+  -- *** Floating-point operations+  , svFPNaN, svFPInf, svFPZero+  , svFPFromIntegerLit, svFPFromRationalLit+  , svFPIsZero, svFPIsInfinite, svFPIsNegative, svFPIsPositive+  , svFPIsNaN, svFPIsNormal, svFPIsSubnormal+  , svFPAdd, svFPSub, svFPMul, svFPDiv, svFPRem, svFPMin, svFPMax+  , svFPFMA, svFPAbs, svFPNeg, svFPRoundToIntegral, svFPSqrt+  , svCastToFP, svCastFromFP+  , svSWord32AsFloat, svSWord64AsDouble, svSWordAsFloatingPoint+  , svFloatAsSWord32, svDoubleAsSWord64, svFloatingPointAsSWord   -- ** Conditionals: Mergeable values   , svIte, svLazyIte, svSymbolicMerge   -- * Uninterpreted sorts, constants, and functions@@ -166,78 +178,78 @@  -- | Create SMT-Lib benchmark for a sat call generateSMTBenchmarkSat :: Symbolic SVal -> IO String-generateSMTBenchmarkSat s = SBV.generateSMTBenchmarkSat (fmap toSBool s)+generateSMTBenchmarkSat s = SBV.generateSMTBenchmarkSat (toSBool <$> s)  -- | Create SMT-Lib benchmark for a proof call generateSMTBenchmarkProof :: Symbolic SVal -> IO String-generateSMTBenchmarkProof s = SBV.generateSMTBenchmarkProof (fmap toSBool s)+generateSMTBenchmarkProof s = SBV.generateSMTBenchmarkProof (toSBool <$> s)  -- | Proves the predicate using the given SMT-solver proveWith :: SMTConfig -> Symbolic SVal -> IO ThmResult-proveWith cfg s = SBV.proveWith cfg (fmap toSBool s)+proveWith cfg s = SBV.proveWith cfg (toSBool <$> s)  -- | Find a satisfying assignment using the given SMT-solver satWith :: SMTConfig -> Symbolic SVal -> IO SatResult-satWith cfg s = SBV.satWith cfg (fmap toSBool s)+satWith cfg s = SBV.satWith cfg (toSBool <$> s)  -- | Check safety using the given SMT-solver safeWith :: SMTConfig -> Symbolic SVal -> IO [SafeResult]-safeWith cfg s = SBV.safeWith cfg (fmap toSBool s)+safeWith cfg s = SBV.safeWith cfg (toSBool <$> s)  -- | Find all satisfying assignments using the given SMT-solver allSatWith :: SMTConfig -> Symbolic SVal -> IO AllSatResult-allSatWith cfg s = SBV.allSatWith cfg (fmap toSBool s)+allSatWith cfg s = SBV.allSatWith cfg (toSBool <$> s)  -- | Prove a property with multiple solvers, running them in separate threads. The -- results will be returned in the order produced. proveWithAll :: [SMTConfig] -> Symbolic SVal -> IO [(Solver, NominalDiffTime, ThmResult)]-proveWithAll cfgs s = SBV.proveWithAll cfgs (fmap toSBool s)+proveWithAll cfgs s = SBV.proveWithAll cfgs (toSBool <$> s)  -- | Prove a property with multiple solvers, running them in separate -- threads. Only the result of the first one to finish will be -- returned, remaining threads will be killed. proveWithAny :: [SMTConfig] -> Symbolic SVal -> IO (Solver, NominalDiffTime, ThmResult)-proveWithAny cfgs s = SBV.proveWithAny cfgs (fmap toSBool s)+proveWithAny cfgs s = SBV.proveWithAny cfgs (toSBool <$> s)  -- | Prove a property with query mode using multiple threads. Each query -- computation will spawn a thread and a unique instance of your solver to run -- asynchronously. The 'Symbolic' t'SVal' is duplicated for each thread. This -- function will block until all child threads return. proveConcurrentWithAll :: SMTConfig -> Symbolic SVal -> [Query SVal] -> IO [(Solver, NominalDiffTime, ThmResult)]-proveConcurrentWithAll cfg s queries = SBV.proveConcurrentWithAll cfg queries (fmap toSBool s)+proveConcurrentWithAll cfg s queries = SBV.proveConcurrentWithAll cfg queries (toSBool <$> s)  -- | Prove a property with query mode using multiple threads. Each query -- computation will spawn a thread and a unique instance of your solver to run -- asynchronously. The 'Symbolic' t'SVal' is duplicated for each thread. This -- function will return the first query computation that completes, killing the others. proveConcurrentWithAny :: SMTConfig -> Symbolic SVal -> [Query SVal] -> IO (Solver, NominalDiffTime, ThmResult)-proveConcurrentWithAny cfg s queries = SBV.proveConcurrentWithAny cfg queries (fmap toSBool s)+proveConcurrentWithAny cfg s queries = SBV.proveConcurrentWithAny cfg queries (toSBool <$> s)  -- | Find a satisfying assignment to a property with multiple solvers, -- running them in separate threads. The results will be returned in -- the order produced. satWithAll :: [SMTConfig] -> Symbolic SVal -> IO [(Solver, NominalDiffTime, SatResult)]-satWithAll cfgs s = SBV.satWithAll cfgs (fmap toSBool s)+satWithAll cfgs s = SBV.satWithAll cfgs (toSBool <$> s)  -- | Find a satisfying assignment to a property with multiple solvers, -- running them in separate threads. Only the result of the first one -- to finish will be returned, remaining threads will be killed. satWithAny :: [SMTConfig] -> Symbolic SVal -> IO (Solver, NominalDiffTime, SatResult)-satWithAny cfgs s = SBV.satWithAny cfgs (fmap toSBool s)+satWithAny cfgs s = SBV.satWithAny cfgs (toSBool <$> s)  -- | Find a satisfying assignment to a property with multiple threads in query -- mode. The 'Symbolic' t'SVal' represents what is known to all child query threads. -- Each query thread will spawn a unique instance of the solver. Only the first -- one to finish will be returned and the other threads will be killed. satConcurrentWithAny :: SMTConfig -> [Query b] -> Symbolic SVal -> IO (Solver, NominalDiffTime, SatResult)-satConcurrentWithAny cfg qs s = SBV.satConcurrentWithAny cfg qs (fmap toSBool s)+satConcurrentWithAny cfg qs s = SBV.satConcurrentWithAny cfg qs (toSBool <$> s)  -- | Find a satisfying assignment to a property with multiple threads in query -- mode. The 'Symbolic' t'SVal' represents what is known to all child query threads. -- Each query thread will spawn a unique instance of the solver. This function -- will block until all child threads have completed. satConcurrentWithAll :: SMTConfig -> [Query b] -> Symbolic SVal -> IO [(Solver, NominalDiffTime, SatResult)]-satConcurrentWithAll cfg qs s = SBV.satConcurrentWithAll cfg qs (fmap toSBool s)+satConcurrentWithAll cfg qs s = SBV.satConcurrentWithAll cfg qs (toSBool <$> s)  -- | Extract a model, the result is a tuple where the first argument (if True) -- indicates whether the model was "probable". (i.e., if the solver returned unknown.)
Data/SBV/Either.hs view
@@ -11,30 +11,35 @@ -----------------------------------------------------------------------------  {-# LANGUAGE CPP                 #-}-{-# LANGUAGE Rank2Types          #-}+{-# LANGUAGE FlexibleContexts    #-}+{-# LANGUAGE FlexibleInstances   #-}+{-# LANGUAGE QuasiQuotes         #-} {-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TemplateHaskell     #-} {-# LANGUAGE TypeApplications    #-} -{-# OPTIONS_GHC -Wall -Werror #-}+{-# OPTIONS_GHC -Wall -Werror -Wno-orphans #-}  module Data.SBV.Either (     -- * Constructing sums-      sLeft, sRight, liftEither+      sLeft, sRight, liftEither, SEither, sEither, sEither_, sEithers     -- * Destructing sums     , either     -- * Mapping functions     , bimap, first, second     -- * Scrutinizing branches of a sum     , isLeft, isRight, fromLeft, fromRight+    -- * Case analysis (for sCase quasi-quoter)+    , sCaseEither, getLeft_1, getRight_1   ) where  import           Prelude hiding (either) import qualified Prelude -import Data.Proxy (Proxy(Proxy))-+import Data.SBV.Client import Data.SBV.Core.Data-import Data.SBV.Core.Model () -- instances only+import Data.SBV.Core.Model (OrdSymbolic(..))+import Data.SBV.SCase      (sCase)  #ifdef DOCTEST -- $setup@@ -42,64 +47,40 @@ -- >>> import Data.SBV #endif --- | Construct an @SEither a b@ from an @SBV a@+-- | Make 'Either' symbolic. -- -- >>> sLeft 3 :: SEither Integer Bool--- Left 3 :: SEither Integer Bool-sLeft :: forall a b. (SymVal a, SymVal b) => SBV a -> SEither a b-sLeft sa-  | Just a <- unliteral sa-  = literal (Left a)-  | True-  = SBV $ SVal k $ Right $ cache res-  where k1 = kindOf (Proxy @a)-        k2 = kindOf (Proxy @b)-        k  = KEither k1 k2--        res st = do asv <- sbvToSV st sa-                    newExpr st k $ SBVApp (EitherConstructor k1 k2 False) [asv]---- | Return 'sTrue' if the given symbolic value is 'Left', 'sFalse' otherwise---+-- Left 3 :: Either Integer Bool -- >>> isLeft (sLeft 3 :: SEither Integer Bool) -- True -- >>> isLeft (sRight sTrue :: SEither Integer Bool) -- False-isLeft :: (SymVal a, SymVal b) => SEither a b -> SBV Bool-isLeft = either (const sTrue) (const sFalse)---- | Construct an @SEither a b@ from an @SBV b@--- -- >>> sRight sFalse :: SEither Integer Bool--- Right False :: SEither Integer Bool-sRight :: forall a b. (SymVal a, SymVal b) => SBV b -> SEither a b-sRight sb-  | Just b <- unliteral sb-  = literal (Right b)-  | True-  = SBV $ SVal k $ Right $ cache res-  where k1 = kindOf (Proxy @a)-        k2 = kindOf (Proxy @b)-        k  = KEither k1 k2--        res st = do bsv <- sbvToSV st sb-                    newExpr st k $ SBVApp (EitherConstructor k1 k2 True) [bsv]---- | Return 'sTrue' if the given symbolic value is 'Right', 'sFalse' otherwise---+-- Right False :: Either Integer Bool -- >>> isRight (sLeft 3 :: SEither Integer Bool) -- False -- >>> isRight (sRight sTrue :: SEither Integer Bool) -- True-isRight :: (SymVal a, SymVal b) => SEither a b -> SBV Bool-isRight = either (const sFalse) (const sTrue)+mkSymbolic [''Either] +-- | Declare a symbolic either.+sEither :: (SymVal a, SymVal b) => String -> Symbolic (SEither a b)+sEither = free++-- | Declare a symbolic either, unnamed.+sEither_ :: (SymVal a, SymVal b) => Symbolic (SEither a b)+sEither_ = free_++-- | Declare a list of symbolic eithers.+sEithers :: (SymVal a, SymVal b) => [String] -> Symbolic [SEither a b]+sEithers = symbolics+ -- | Construct an @SEither a b@ from an @Either (SBV a) (SBV b)@ -- -- >>> liftEither (Left 3 :: Either SInteger SBool)--- Left 3 :: SEither Integer Bool+-- Left 3 :: Either Integer Bool -- >>> liftEither (Right sTrue :: Either SInteger SBool)--- Right True :: SEither Integer Bool+-- Right True :: Either Integer Bool liftEither :: (SymVal a, SymVal b) => Either (SBV a) (SBV b) -> SEither a b liftEither = Prelude.either sLeft sRight @@ -121,31 +102,10 @@        -> (SBV b -> SBV c)        -> SEither a b        -> SBV c-either brA brB sab-  | Just (Left  a) <- unliteral sab-  = brA $ literal a-  | Just (Right b) <- unliteral sab-  = brB $ literal b-  | True-  = SBV $ SVal kc $ Right $ cache res-  where ka = kindOf (Proxy @a)-        kb = kindOf (Proxy @b)-        kc = kindOf (Proxy @c)--        res st = do abv <- sbvToSV st sab--                    let leftVal  = SBV $ SVal ka $ Right $ cache $ \_ -> newExpr st ka $ SBVApp (EitherAccess False) [abv]-                        rightVal = SBV $ SVal kb $ Right $ cache $ \_ -> newExpr st kb $ SBVApp (EitherAccess True)  [abv]--                        leftRes  = brA leftVal-                        rightRes = brB rightVal--                    br1 <- sbvToSV st leftRes-                    br2 <- sbvToSV st rightRes--                    --  Which branch are we in? Return the appropriate value:-                    onLeft <- newExpr st KBool $ SBVApp (EitherIs ka kb False) [abv]-                    newExpr st kc $ SBVApp Ite [onLeft, br1, br2]+either brA brB sab = [sCase| sab of+                        Left x  -> brA x+                        Right x -> brB x+                     |]  -- | Map over both sides of a symbolic 'Either' at the same time --@@ -197,14 +157,7 @@ -- is unspecified, thus the SMT solver picks whatever satisfies the -- constraints, if there is one. fromLeft :: forall a b. (SymVal a, SymVal b) => SEither a b -> SBV a-fromLeft sab-  | Just (Left a) <- unliteral sab-  = literal a-  | True-  = SBV $ SVal ka $ Right $ cache res-  where ka      = kindOf (Proxy @a)-        res st = do ms <- sbvToSV st sab-                    newExpr st ka (SBVApp (EitherAccess False) [ms])+fromLeft = getLeft_1  -- | Return the value from the right component. The behavior is undefined if -- passed a left value, i.e., it can return any value.@@ -221,13 +174,12 @@ -- is unspecified, thus the SMT solver picks whatever satisfies the -- constraints, if there is one. fromRight :: forall a b. (SymVal a, SymVal b) => SEither a b -> SBV b-fromRight sab-  | Just (Right b) <- unliteral sab-  = literal b-  | True-  = SBV $ SVal kb $ Right $ cache res-  where kb      = kindOf (Proxy @b)-        res st = do ms <- sbvToSV st sab-                    newExpr st kb (SBVApp (EitherAccess True) [ms])+fromRight = getRight_1++-- | Custom 'OrdSymbolic' instance over 'SEither'.+instance (OrdSymbolic (SBV a), OrdSymbolic (SBV b), SymVal a, SymVal b) => OrdSymbolic (SBV (Either a b)) where+  eab .< ecd = either (\a -> either (a .<)         (const sTrue) ecd)+                      (\b -> either (const sFalse) (b .<)        ecd)+                      eab  {- HLint ignore module "Reduce duplication" -}
Data/SBV/Internals.hs view
@@ -19,7 +19,7 @@  {-# LANGUAGE CPP              #-} {-# LANGUAGE FlexibleContexts #-}-{-# LANGUAGE Rank2Types       #-}+{-# LANGUAGE RankNTypes       #-} {-# LANGUAGE TypeOperators    #-}  {-# OPTIONS_GHC -Wall -Werror #-}@@ -68,8 +68,11 @@   -- * Generalized floats   , svFloatingPointAsSWord -  -- * lambdas and axioms+  -- * Lambdas and axioms   , lambda, lambdaStr, constraint, constraintStr, Lambda(..), Constraint(..), LambdaScope(..)++  -- * TP induction extras+  , HasInductionSchema(..), internalAxiom   ) where  import Control.Monad.IO.Class (MonadIO)@@ -100,9 +103,12 @@ import GHC.TypeLits  import qualified Data.SBV.Control.Utils as Query+import qualified Data.Text              as T  import Data.SBV.Lambda +import Data.SBV.TP.Kernel+ #ifdef DOCTEST --- $setup --  >>> :set -XScopedTypeVariables@@ -113,7 +119,7 @@ -- Note that this is inherently dangerous as it can put the solver in an arbitrary -- state and confuse SBV. If you use this feature, you are on your own! sendStringToSolver :: (MonadIO m, MonadQuery m) => String -> m ()-sendStringToSolver = Query.send False+sendStringToSolver = Query.send False . T.pack  -- | Retrieve multiple responses from the solver, until it responds with a user given -- tag that we shall arrange for internally. The optional timeout is in milliseconds.@@ -127,7 +133,7 @@ -- Note that this is inherently dangerous as it can put the solver in an arbitrary -- state and confuse SBV. sendRequestToSolver :: (MonadIO m, MonadQuery m) => String -> m String-sendRequestToSolver = Query.ask+sendRequestToSolver = Query.ask . T.pack  {- $coordinateSolverInfo In rare cases it might be necessary to send an arbitrary string down to the solver. Needless to say, this
Data/SBV/Lambda.hs view
@@ -10,18 +10,18 @@ -- higher-order function support in SBV. ----------------------------------------------------------------------------- -{-# LANGUAGE FlexibleContexts      #-}-{-# LANGUAGE FlexibleInstances     #-}-{-# LANGUAGE MultiParamTypeClasses #-}-{-# LANGUAGE NamedFieldPuns        #-}-{-# LANGUAGE ScopedTypeVariables   #-}-{-# LANGUAGE TupleSections         #-}-{-# LANGUAGE UndecidableInstances  #-}+{-# LANGUAGE FlexibleContexts     #-}+{-# LANGUAGE FlexibleInstances    #-}+{-# LANGUAGE NamedFieldPuns       #-}+{-# LANGUAGE OverloadedStrings    #-}+{-# LANGUAGE TupleSections        #-}+{-# LANGUAGE UndecidableInstances #-} -{-# OPTIONS_GHC -Wall -Werror -fno-warn-orphans #-}+{-# OPTIONS_GHC -Wall -Werror -Wno-orphans #-}  module Data.SBV.Lambda (             lambda,      lambdaStr+          , lambdaWithInfo, LambdaInfo(..)           , constraint,  constraintStr           , LambdaScope(..)         ) where@@ -29,9 +29,12 @@ import Control.Monad       (join) import Control.Monad.Trans (liftIO, MonadIO) +import qualified Data.Text as T+ import Data.SBV.Core.Data import Data.SBV.Core.Kind import Data.SBV.SMT.SMTLib2+import Data.SBV.Utils.Lib       (showText) import Data.SBV.Utils.PrettyNum  import           Data.SBV.Core.Symbolic hiding   (mkNewState)@@ -40,6 +43,7 @@ import Data.IORef (readIORef, modifyIORef') import Data.List import Data.Maybe (fromMaybe)+import qualified Data.Map.Strict as Map  import qualified Data.Foldable as F import qualified Data.Set      as Set@@ -50,12 +54,14 @@ data LambdaScope = HigherOrderArg   -- This lambda will be firstified, hence can't have any free variables                  | TopLevel         -- This lambda is used to represent a quantified axiom, can have free vars +-- LambdaInfo is defined in Data.SBV.Core.Symbolic and re-exported from here for backwards compatibility.+ data Defn = Defn [String]                        -- The uninterpreted names referred to in the body                  [String]                        -- Free variables (i.e., not uninterpreted nor bound in the definition itself)-                 (Maybe [(Quantifier, String)])  -- Param declaration groups, if any-                 (Int -> String)                 -- Body, given the tab amount.+                 (Maybe [(Quantifier, T.Text)])  -- Param declaration groups, if any+                 (Int -> T.Text)                 -- Body, given the tab amount. --- | Maka a new substate from the incoming state, sharing parts as necessary+-- | Make a new substate from the incoming state, sharing parts as necessary inSubState :: MonadIO m => LambdaScope -> State -> (State -> m b) -> m b inSubState scope inState comp = do @@ -87,61 +93,66 @@         -- don't really impact anything.         comp State {                    -- These are not IORefs; so we share by copying  the value; changes won't be copied back-                     sbvContext          = share sbvContext-                   , pathCond            = share pathCond-                   , startTime           = share startTime+                     sbvContext = share sbvContext+                   , pathCond   = share pathCond+                   , startTime  = share startTime                     -- These are shared IORef's; and is shared, so they will be copied back to the parent state-                   , rProgInfo           = share rProgInfo-                   , rIncState           = share rIncState-                   , rCInfo              = share rCInfo-                   , rUsedKinds          = share rUsedKinds-                   , rUsedLbls           = share rUsedLbls-                   , rUIMap              = share rUIMap-                   , rUserFuncs          = share rUserFuncs-                   , rCgMap              = share rCgMap-                   , rDefns              = share rDefns-                   , rSMTOptions         = share rSMTOptions-                   , rOptGoals           = share rOptGoals-                   , rAsserts            = share rAsserts-                   , rOutstandingAsserts = share rOutstandingAsserts-                   , rPartitionVars      = share rPartitionVars+                   , rProgInfo             = share rProgInfo+                   , rIncState             = share rIncState+                   , rCInfo                = share rCInfo+                   , rUsedKinds            = share rUsedKinds+                   , rUsedLbls             = share rUsedLbls+                   , rUIMap                = share rUIMap+                   , rUserFuncs            = share rUserFuncs+                   , rCompilingFuncs       = share rCompilingFuncs+                   , rCgMap                = share rCgMap+                   , rDefns                = share rDefns+                   , rMeasureChecks        = share rMeasureChecks+                   , rFuncLambdaInfos      = share rFuncLambdaInfos+                   , rSkipMeasureChecks    = share rSkipMeasureChecks+                   , rNoTermCheckFunctions = share rNoTermCheckFunctions+                   , rSMTOptions           = share rSMTOptions+                   , rOptGoals             = share rOptGoals+                   , rAsserts              = share rAsserts+                   , rOutstandingAsserts   = share rOutstandingAsserts+                   , rPartitionVars        = share rPartitionVars                     -- Everything else is fresh in the substate; i.e., will not copy back-                   , stCfg               = fresh stCfg-                   , runMode             = fresh runMode-                   , rctr                = fresh rctr-                   , freshNameCtr        = fresh freshNameCtr-                   , rLambdaLevel        = fresh rLambdaLevel-                   , rtblMap             = fresh rtblMap-                   , rinps               = fresh rinps-                   , rlambdaInps         = fresh rlambdaInps-                   , rConstraints        = fresh rConstraints-                   , rObservables        = fresh rObservables-                   , routs               = fresh routs-                   , spgm                = fresh spgm-                   , rconstMap           = fresh rconstMap-                   , rexprMap            = fresh rexprMap-                   , rSVCache            = fresh rSVCache-                   , rQueryState         = fresh rQueryState+                   , stCfg        = fresh stCfg+                   , runMode      = fresh runMode+                   , rctr         = fresh rctr+                   , freshNameCtr = fresh freshNameCtr+                   , rLambdaLevel = fresh rLambdaLevel+                   , rtblMap      = fresh rtblMap+                   , rinps        = fresh rinps+                   , rlambdaInps  = fresh rlambdaInps+                   , rConstraints = fresh rConstraints+                   , rObservables = fresh rObservables+                   , routs        = fresh routs+                   , spgm         = fresh spgm+                   , rconstMap    = fresh rconstMap+                   , rexprMap     = fresh rexprMap+                   , rSVCache     = fresh rSVCache+                   , rQueryState  = fresh rQueryState                     -- keep track of our parent-                   , parentState         = Just inState+                   , parentState = Just inState                    }  -- In this case, we expect just one group of parameters, with universal quantification-extractAllUniversals :: [(Quantifier, String)] -> String+extractAllUniversals :: [(Quantifier, T.Text)] -> T.Text extractAllUniversals [(ALL, s)] = s extractAllUniversals other      = error $ unlines [ ""                                                   , "*** Data.SBV.Lambda: Impossible happened. Got existential quantifiers."                                                   , "***"-                                                  , "***  Params: " ++ show other+                                                  , "***  Params: " ++ show (map (\(q, t) -> (q, T.unpack t)) other)                                                   , "***"                                                   , "*** Please report this as a bug!"                                                   ]  --- | Generic creator for anonymous lamdas.+-- | Generic creator for anonymous lambdas. lambdaGen :: (MonadIO m, Lambda (SymbolicT m) a) => LambdaScope -> (Defn -> b) -> State -> Kind -> a -> m b lambdaGen scope trans inState fk f = inSubState scope inState $ \st -> handle <$> convert st fk (mkLambda st f)   where handle d@(Defn _ frees _ _)@@ -179,8 +190,8 @@                               , "*** touch for further possible enhancements."                               ] -        sh (Defn _unints _frees Nothing       body) = body 0-        sh (Defn _unints _frees (Just params) body) = "(lambda " ++ extractAllUniversals params ++ "\n" ++ body 2 ++ ")"+        sh (Defn _unints _frees Nothing       body) = T.unpack (body 0)+        sh (Defn _unints _frees (Just params) body) = "(lambda " ++ T.unpack (extractAllUniversals params) ++ "\n" ++ T.unpack (body 2) ++ ")"          shift []     = []         shift (x:xs) = intercalate "\n" (x : map tab xs)@@ -191,24 +202,56 @@ lambda inState scope fk = lambdaGen scope mkLam inState fk    where mkLam (Defn unints _frees params body) = SMTDef fk unints (extractAllUniversals <$> params) body +-- | Like 'lambda', but also returns the sub-state's DAG info for measure verification.+lambdaWithInfo :: (MonadIO m, Lambda (SymbolicT m) a) => State -> LambdaScope -> Kind -> a -> m (SMTDef, LambdaInfo)+lambdaWithInfo inState scope fk f = inSubState scope inState $ \st -> do+   defn <- handleDefn <$> convert st fk (mkLambda st f)+   info <- liftIO $ extractLambdaInfo st+   pure (defn, info)+   where handleDefn d@(Defn _ frees _ _)+            | null frees = mkLam d+            | True       = error $ unlines [ ""+                                           , "*** Data.SBV.Lambda: Detected free variables in a function with a measure."+                                           , "***  Free vars: " ++ unwords frees+                                           ]+         mkLam (Defn unints _frees params body) = SMTDef fk unints (extractAllUniversals <$> params) body++-- | Extract DAG information from a lambda sub-state.+extractLambdaInfo :: State -> IO LambdaInfo+extractLambdaInfo st = do+   SBVPgm asgns <- readIORef (spgm st)+   linps        <- readIORef (rlambdaInps st)+   outs         <- readIORef (routs st)+   cmap         <- readIORef (rconstMap st)+   let params = [(q, getSV nsv) | (q, nsv) <- F.toList linps]+       outSV  = case F.toList outs of+                  [o] -> o+                  os  -> error $ "Data.SBV.Lambda.extractLambdaInfo: expected exactly one output, got " ++ show (length os)+   pure LambdaInfo { liAssignments = asgns+                   , liParams      = params+                   , liOutput      = outSV+                   , liConsts      = map swap $ Map.toList cmap+                   }+   where swap (a, b) = (b, a)+ -- | Create an anonymous lambda, rendered as n SMTLib string. The kind passed is the kind of the final result. lambdaStr :: (MonadIO m, Lambda (SymbolicT m) a) => State -> LambdaScope -> Kind -> a -> m SMTLambda lambdaStr st scope k a = SMTLambda <$> lambdaGen scope mkLam st k a    where mkLam (Defn _unints _frees Nothing       body) = body 0-         mkLam (Defn _unints _frees (Just params) body) = "(lambda " ++ extractAllUniversals params ++ "\n" ++ body 2 ++ ")"+         mkLam (Defn _unints _frees (Just params) body) = "(lambda " <> extractAllUniversals params <> "\n" <> body 2 <> ")"  -- | Generic constraint generator.-constraintGen :: (MonadIO m, Constraint (SymbolicT m) a) => LambdaScope -> ([String] -> (Int -> String) -> b) -> State -> a -> m b+constraintGen :: (MonadIO m, Constraint (SymbolicT m) a) => LambdaScope -> ([String] -> (Int -> T.Text) -> b) -> State -> a -> m b constraintGen scope trans inState@State{rProgInfo} f = do    -- indicate we have quantifiers    liftIO $ modifyIORef' rProgInfo (\u -> u{hasQuants = True})     let mkDef (Defn deps _frees Nothing       body) = trans deps body-       mkDef (Defn deps _frees (Just params) body) = trans deps $ \i -> unwords (map mkGroup params) ++ "\n"-                                                                     ++ body (i + 2)-                                                                     ++ replicate (length params) ')'-       mkGroup (ALL, s) = "(forall " ++ s-       mkGroup (EX,  s) = "(exists " ++ s+       mkDef (Defn deps _frees (Just params) body) = trans deps $ \i -> T.unwords (map mkGroup params) <> "\n"+                                                                     <> body (i + 2)+                                                                     <> T.replicate (length params) ")"+       mkGroup (ALL, s) = "(forall " <> s+       mkGroup (EX,  s) = "(exists " <> s     inSubState scope inState $ \st -> mkDef <$> convert st KBool (mkConstraint st f >>= output >> pure ()) @@ -227,9 +270,9 @@ -- We allow free variables here (first arg of constraintGen). This might prove to be not kosher! constraintStr :: (MonadIO m, Constraint (SymbolicT m) a) => State -> a -> m String constraintStr = constraintGen TopLevel toStr-   where toStr deps body = intercalate "\n" [ "; user defined axiom: " ++ depInfo deps-                                            , "(assert " ++ body 2 ++ ")"-                                            ]+   where toStr deps body = T.unpack $ T.intercalate "\n" [ "; user defined axiom: " <> T.pack (depInfo deps)+                                                          , "(assert " <> body 2 <> ")"+                                                          ]           depInfo [] = ""          depInfo ds = "[Refers to: " ++ intercalate ", " ds ++ "]"@@ -269,7 +312,7 @@                    tbls          -- Tables -                  _uis          -- Uninterpeted constants: nothing to do with them+                  _uis          -- Uninterpreted constants: nothing to do with them                   _axs          -- Axioms definitions    : nothing to do with them                    pgm           -- Assignments@@ -303,7 +346,7 @@                ]          | True          = res-         where res = Defn (nub [nm | Uninterpreted nm <- G.universeBi allOps])+         where res = Defn (nub [T.unpack nm | Uninterpreted nm <- G.universeBi allOps])                           frees                           mbParam                           body@@ -320,9 +363,9 @@                 frees = map show badFrees                  where (defs, uses) = unzip [(d, u) | (d, SBVApp _ u) <- F.toList asgnsSeq]-                       allDefs      = defs ++ map snd params ++ map fst constants-                       allUses      = concat uses-                       allFrees     = nub allUses \\ nub allDefs+                       defSet       = Set.fromList (defs ++ map snd params ++ map fst constants)+                       useSet       = Set.fromList (concat uses)+                       allFrees     = Set.toList (useSet `Set.difference` defSet)                        badFrees     = filter (not . global . getId . swNodeId) allFrees                         -- is this a global?@@ -333,29 +376,29 @@                  | null params = Nothing                  | True        = Just [(q, paramList (map snd l)) | l@((q, _) : _)  <- pGroups]                  where pGroups = groupBy (\(q1, _) (q2, _) -> q1 == q2) params-                       paramList ps = '(' : unwords (map (\p -> '(' : show p ++ " " ++ smtType (kindOf p) ++ ")")  ps) ++ ")"+                       paramList ps = "(" <> T.unwords (map (\p -> "(" <> showText p <> " " <> smtType (kindOf p) <> ")")  ps) <> ")"                 body tabAmnt                  | null constTables                  , null nonConstTables                  , Just e <- simpleBody (map (, Nothing) constBindings ++ svBindings) out-                 = tab ++ e+                 = tab <> e                  | True-                 = intercalate "\n" $ map (tab ++) $  [mkLet sv  | sv <- constBindings]-                                                   ++ [mkTable t | t  <- constTables]-                                                   ++ walk svBindings nonConstTables-                                                   ++ [shift ++ show out ++ replicate totalClose ')']+                 = T.intercalate "\n" $ map (tab <>)  $  [mkLet sv  | sv <- constBindings]+                                                       ++ [mkTable t | t  <- constTables]+                                                       ++ walk svBindings nonConstTables+                                                       ++ [shift <> showText out <> T.replicate totalClose ")"] -                 where tab  = replicate tabAmnt ' '+                 where tab  = T.replicate tabAmnt " " -                       mkBind l r   = shift ++ "(let ((" ++ l ++ " " ++ r ++ "))"-                       mkLet (s, v) = mkBind (show s) v+                       mkBind l r   = shift <> "(let ((" <> l <> " " <> r <> "))"+                       mkLet (s, v) = mkBind (showText s) v                         -- Align according to level.-                       shift = replicate (24 + 16 * (fromMaybe 0 level - 1)) ' '+                       shift = T.replicate (24 + 16 * (fromMaybe 0 level - 1)) " " -                       mkTable (((i, ak, rk), elts), _) = mkBind nm (lambdaTable (map (const ' ') nm) ak rk elts)-                          where nm = "table" ++ show i+                       mkTable (((i, ak, rk), elts), _) = mkBind nm (lambdaTable (T.map (const ' ') nm) ak rk elts)+                          where nm = "table" <> showText i                         totalClose = length constBindings                                   + length svBindings@@ -369,7 +412,7 @@                                                                       ++ walk rest notReady                           where (ready, notReady) = partition (\(need, _) -> need < getLLI nd) remaining                                 mkLocalBind (b, Nothing) = mkLet b-                                mkLocalBind (b, Just l)  = mkLet b ++ " ; " ++ l+                                mkLocalBind (b, Just l)  = mkLet b <> " ; " <> T.pack l                 getLLI :: NodeId -> (Int, Int)                getLLI (NodeId (_, mbl, i)) = (fromMaybe 0 mbl, i)@@ -379,20 +422,20 @@                -- (see https://github.com/LeventErkok/sbv/issues/733), so only do it if we're being verbose for debugging purposes.                mkPretty = verbose cfg -               simpleBody :: [((SV, String), Maybe String)] -> SV -> Maybe String-               simpleBody [((v, e), Nothing)] o | v == o, not mkPretty || '\n' `notElem` e = Just e-               simpleBody _                   _                                            = Nothing+               simpleBody :: [((SV, T.Text), Maybe String)] -> SV -> Maybe T.Text+               simpleBody [((v, e), Nothing)] o | v == o, not mkPretty || not (T.any (== '\n') e) = Just e+               simpleBody _                   _                                                   = Nothing                 assignments = F.toList (pgmAssignments pgm)                 constants = filter ((`notElem` [falseSV, trueSV]) . fst) consts -               constBindings :: [(SV, String)]+               constBindings :: [(SV, T.Text)]                constBindings = map mkConst constants-                 where mkConst :: (SV, CV) -> (SV, String)-                       mkConst (sv, cv) = (sv, cvToSMTLib (roundingMode cfg) cv)+                 where mkConst :: (SV, CV) -> (SV, T.Text)+                       mkConst (sv, cv) = (sv, cvToSMTLib cv) -               svBindings :: [((SV, String), Maybe String)]+               svBindings :: [((SV, T.Text), Maybe String)]                svBindings = map mkAsgn assignments                  where mkAsgn (sv, e@(SBVApp (Label l) _)) = ((sv, converter e), Just l)                        mkAsgn (sv, e)                      = ((sv, converter e), Nothing)@@ -412,15 +455,15 @@                -- NB. The following is dead-code, since we ensure tbls is empty                -- We used to support this, but there are issues, so dropping support                -- See, for instance, https://github.com/LeventErkok/sbv/issues/664-               (tableMap, constTables, nonConstTablesUnindexed) = constructTables rm consts tbls+               (tableMap, constTables, nonConstTablesUnindexed) = constructTables consts tbls                 -- Index each non-const table with the largest index of SV it needs                nonConstTables = [ (maximum ((0, 0) : [getLLI n | SV _ n <- elts]), nct)                                 | nct@((_, elts), _) <- nonConstTablesUnindexed] -               lambdaTable :: String -> Kind -> Kind -> [SV] -> String-               lambdaTable extraSpace ak rk elts = "(lambda ((" ++ lv ++ " " ++ smtType ak ++ "))" ++ space ++ chain 0 elts ++ ")"-                 where cnst k i = cvtCV rm (mkConstCV k (i::Integer))+               lambdaTable :: T.Text -> Kind -> Kind -> [SV] -> T.Text+               lambdaTable extraSpace ak rk elts = "(lambda ((" <> lv <> " " <> smtType ak <> "))" <> space <> chain 0 elts <> ")"+                 where cnst k i = cvtCV (mkConstCV k (i::Integer))                         lv = "idx" @@ -428,15 +471,15 @@                        long = not (null (drop 5 elts))                        space                          | long-                         = "\n                  " ++ extraSpace+                         = "\n                  " <> extraSpace                          | True                          = " "                         chain _ []     = cnst rk 0-                       chain _ [x]    = show x-                       chain i (x:xs) = "(ite (= " ++ lv ++ " " ++ cnst ak i ++ ") "-                                           ++ show x ++ space-                                           ++ chain (i+1) xs-                                           ++ ")"+                       chain _ [x]    = showText x+                       chain i (x:xs) = "(ite (= " <> lv <> " " <> cnst ak i <> ") "+                                           <> showText x <> space+                                           <> chain (i+1) xs+                                           <> ")"  {- HLint ignore module "Use second" -}
Data/SBV/List.hs view
@@ -22,13 +22,13 @@ {-# LANGUAGE FunctionalDependencies #-} {-# LANGUAGE NamedFieldPuns         #-} {-# LANGUAGE OverloadedLists        #-}-{-# LANGUAGE Rank2Types             #-}+{-# LANGUAGE QuasiQuotes            #-} {-# LANGUAGE ScopedTypeVariables    #-} {-# LANGUAGE TypeApplications       #-} {-# LANGUAGE TypeFamilies           #-} {-# LANGUAGE UndecidableInstances   #-} -{-# OPTIONS_GHC -Wall -Werror -fno-warn-orphans #-}+{-# OPTIONS_GHC -Wall -Werror -Wno-orphans #-}  module Data.SBV.List (         -- * Length, emptiness@@ -37,6 +37,9 @@         -- * Deconstructing/Reconstructing         , nil, (.:), snoc, head, tail, uncons, init, last, singleton, listToListAt, elemAt, (!!), implode, concat, (++) +        -- * Case analysis (for sCase quasi-quoter)+        , list+         -- * Containment         , elem, notElem, isInfixOf, isSuffixOf, isPrefixOf @@ -76,6 +79,9 @@         -- * Sum and product         , sum, product +        -- * Minimum and maximum of a list+        , minimum, maximum+         -- * Conversion between strings and naturals         , strToNat, natToStr @@ -86,7 +92,7 @@ import Prelude hiding (head, tail, init, last, length, take, drop, splitAt, concat, null, elem,                        notElem, reverse, (++), (!!), map, concatMap, foldl, foldr, zip, zipWith, filter,                        all, any, and, or, replicate, fst, snd, sum, product, Enum(..), lookup,-                       takeWhile, dropWhile)+                       takeWhile, dropWhile, minimum, maximum, uncurry) import qualified Prelude as P  import Data.SBV.Core.Kind@@ -94,7 +100,7 @@ import Data.SBV.Core.Model import Data.SBV.Core.SizedFloats import Data.SBV.Core.Floating-+import Data.SBV.SCase (sCase) import Data.SBV.Tuple  import Data.Maybe (isNothing, catMaybes)@@ -105,11 +111,9 @@  import Data.Proxy -import GHC.Exts (IsList(..))- #ifdef DOCTEST -- $setup--- >>> import Prelude hiding (head, tail, init, last, length, take, drop, concat, null, elem, notElem, reverse, (++), (!!), map, foldl, foldr, zip, zipWith, filter, all, any, replicate, lookup, splitAt, concatMap, and, or, sum, product, takeWhile, dropWhile)+-- >>> import Prelude hiding (head, tail, init, last, length, take, drop, concat, null, elem, notElem, reverse, (++), (!!), map, foldl, foldr, zip, zipWith, filter, all, any, replicate, lookup, splitAt, concatMap, and, or, sum, product, takeWhile, dropWhile, minimum, maximum) -- >>> import qualified Prelude as P(map) -- >>> import Data.SBV -- >>> :set -XDataKinds@@ -120,15 +124,6 @@ -- >>> :set -XQuasiQuotes #endif --- | IsList instance allows list literals to be written compactly.-instance SymVal a => IsList (SList a) where-  type Item (SList a) = SBV a--  fromList = P.foldr (.:) nil -- Don't use [] here for nil, as this is the very definition of doing overloaded lists-  toList x = case unliteral x of-               Nothing -> error "IsList.toList used in a symbolic context"-               Just xs -> P.map literal xs- -- | Length of a list. -- -- >>> sat $ \(l :: SList Word16) -> length l .== 2@@ -206,6 +201,21 @@ uncons :: SymVal a => SList a -> (SBV a, SList a) uncons l = (head l, tail l) +-- | Case analysis on a symbolic list. If the list is empty, return the first argument.+-- Otherwise, apply the second argument to the head and tail of the list.+--+-- >>> list (0 :: SInteger) (\h _ -> h) ([] :: SList Integer)+-- 0 :: SInteger+-- >>> list (0 :: SInteger) (\h _ -> h) ([3, 4, 5] :: SList Integer)+-- 3 :: SInteger+-- >>> prove $ \(l :: SList Integer) -> null l .|| list sFalse (\_ _ -> sTrue) l+-- Q.E.D.+list :: (SymVal a, SymVal b) => SBV b -> (SBV a -> SList a -> SBV b) -> SList a -> SBV b+list nilCase consCase xs = [sCase| xs of+                              []   -> nilCase+                              h:ts -> consCase h ts+                           |]+ -- | @`init`@ returns all but the last element of the list. Unspecified if the list is empty. -- -- >>> prove $ \(h :: SInteger) t -> init (t ++ [h]) .== t@@ -282,14 +292,6 @@ implode :: SymVal a => [SBV a] -> SList a implode = P.foldr ((++) . \x -> [x]) (literal []) --- | Prepend an element, the traditional @cons@.------ >>> 1 .: 2 .: 3 .: [4, 5, 6 :: SInteger]--- [1,2,3,4,5,6] :: [SInteger]-infixr 5 .:-(.:) :: SymVal a => SBV a -> SList a -> SList a-a .: as = singleton a ++ as  -- NB. Don't do "[a] ++ as" here. That type-checks but is recursive due to how overloaded-lists work.- -- | Append an element -- -- >>> [1, 2, 3 :: SInteger] `snoc` 4 `snoc` 5 `snoc` 6@@ -297,15 +299,7 @@ snoc :: SymVal a => SList a -> SBV a -> SList a as `snoc` a = as ++ [a] --- | Empty list. This value has the property that it's the only list with length 0. If you use @OverloadedLists@ extension,--- you can write it as the familiar `[]`.------ >>> prove $ \(l :: SList Integer) -> length l .== 0 .<=> l .== []--- Q.E.D.--- >>> prove $ \(l :: SString) -> length l .== 0 .<=> l .== []--- Q.E.D.-nil :: SymVal a => SList a-nil = literal []+-- nil is defined in Data.SBV.Core.Data and re-exported here.  -- | Append two lists. --@@ -376,10 +370,19 @@ -- | @listEq@ is a variant of equality that you can use for lists of floats. It respects @NaN /= NaN@. The reason -- we do not do this automatically is that it complicates proof objectives usually, as it does not simply resolve to -- the native equality check.+--+-- NB. We case-split on @x@ only and use a guard for @y@ being empty, rather than case-splitting on the+-- tuple @(x, y)@. A 4-way tuple match produces a larger and\/or\/not SMTLib tree that z3 struggles with. listEq :: forall a. SymVal a => SList a -> SList a -> SBool listEq   | containsFloats (kindOf (Proxy @a))-  = smtFunction "listEq" $ \xs ys -> ite (null xs) (null ys) (head xs .== head ys .&& listEq (tail xs) (tail ys))+  = smtFunction "listEq"+  $ \x y -> [sCase| x of+                []   -> null y+                a:xs -> case y of+                          []     -> sFalse+                          b : ys -> a .== b .&& xs `listEq` ys+            |]   | True   = (.==) @@ -473,7 +476,7 @@   | True                                     -- either symbolic, or something is out-of-bounds   = lift3 False (SeqSubseq (kindOf (Proxy @a))) Nothing l offset len --- | @`replace` l src dst@. Replace the first occurrence of @src@ by @dst@ in @s@+-- | @`replace` l src dst@. Replace the first occurrence of @src@ by @dst@ in @l@ -- -- >>> prove $ \l -> replace [sEnum|1..5|] l [sEnum|6..10|] .== [sEnum|6..10|] .=> l .== [sEnum|1..5::SWord8|] -- Q.E.D.@@ -563,7 +566,11 @@   = literal (P.reverse l')   | True   = def l-  where def = smtFunction "sbv.reverse" $ \xs -> ite (null xs) [] (let (h, t) = uncons xs in def t ++ [h])+  where def = smtFunction "sbv.reverse"+            $ \xs -> [sCase| xs of+                        []   -> []+                        h:ts -> def ts ++ [h]+                      |]  -- | A class of mappable functions. In SBV, we make a distinction between closures and regular functions, and -- we instantiate this class appropriately so it can handle both cases.@@ -605,7 +612,11 @@     = literal concResult     | True     = sbvMap l-    where sbvMap = smtHOFunction "sbv.map" f $ \xs -> ite (null xs) [] (let (h, t) = uncons xs in f h .: sbvMap t)+    where sbvMap = smtHOFunction "sbv.map" f+                 $ \xs -> [sCase| xs of+                             []    -> []+                             h : t -> f h .: sbvMap t+                          |]  -- | Mapping symbolic closures. instance (SymVal env, SymVal a, SymVal b) => SMap (Closure (SBV env) (SBV a -> SBV b)) a b where@@ -615,9 +626,10 @@     | True     = sbvMap (tuple (closureEnv, l))     where sbvMap = smtHOFunction "sbv.closureMap" closureFun-                 $ \envxs -> let (cEnv, xs) = untuple envxs-                                 (h, t)     = uncons xs-                             in ite (null xs) [] (closureFun cEnv h .: sbvMap (tuple (cEnv, t)))+                 $ \envxs -> [sCase| envxs of+                                (_,    [])    -> []+                                (cEnv, h : t) -> closureFun cEnv h .: sbvMap (tuple (cEnv, t))+                            |]  -- | @concatMap f xs@ maps f over elements and concats the result. --@@ -638,7 +650,7 @@   -- >>> foldl (\soFar elt -> [elt] ++ soFar) ([] :: SList Integer) [sEnum|1 .. 5|]   -- [5,4,3,2,1] :: [SInteger]   ---  -- Again, we can use 'Data.SBV.List.foldl' in the reverse too:+  -- Again, we can use 'sbv.foldl' in the reverse too:   --   -- >>> sat $ \l -> foldl (\soFar elt -> [elt] ++ soFar) ([] :: SList Integer) l .== [5, 4, 3, 2, 1 :: SInteger]   -- Satisfiable. Model:@@ -665,12 +677,11 @@     = literal concResult     | True     = sbvFoldl $ tuple (base, l)-    where sbvFoldl = smtHOFunction "sbv.foldl" (uncurry f . untuple)-                   $ \exs -> let (e, xs) = untuple exs-                                 (h, t)  = uncons xs-                             in ite (null xs)-                                    e-                                    (sbvFoldl (tuple (e `f` h, t)))+    where sbvFoldl = smtHOFunction "sbv.foldl" (uncurry f)+                   $ \exs -> [sCase| exs of+                                (e, [])    -> e+                                (e, h : t) -> sbvFoldl (tuple (e `f` h, t))+                             |]  -- | Folding left with symbolic closures. instance (SymVal env, SymVal a, SymVal b) => SFoldL (Closure (SBV env) (SBV b -> SBV a -> SBV b)) a b where@@ -680,11 +691,10 @@     | True     = sbvFoldl $ tuple (closureEnv, base, l)     where sbvFoldl = smtHOFunction "sbv.closureFoldl" closureFun-                   $ \envxs -> let (cEnv, e, xs) = untuple envxs-                                   (h, t)        = uncons xs-                               in ite (null xs)-                                      e-                                      (sbvFoldl (tuple (cEnv, closureFun closureEnv e h, t)))+                   $ \envxs -> [sCase| envxs of+                                  (_,    e, [])    -> e+                                  (cEnv, e, h : t) -> sbvFoldl (tuple (cEnv, closureFun closureEnv e h, t))+                               |]  -- | A class of right foldable functions. In SBV, we make a distinction between closures and regular functions, and -- we instantiate this class appropriately so it can handle both cases.@@ -699,7 +709,7 @@   -- [5,4,3,2,1] :: [SInteger]   foldr :: func -> SBV b -> SList a -> SBV b -  -- | Handle the concrete case for folding left. Used internally only.+  -- | Handle the concrete case for folding right. Used internally only.   concreteFoldr :: func -> (SBV a -> SBV b -> SBV b) -> SBV b -> SList a -> Maybe b   concreteFoldr _ f sb sas      | Just b <- unliteral sb, Just as <- unliteral sas@@ -719,12 +729,11 @@     = literal concResult     | True     = sbvFoldr $ tuple (base, l)-    where sbvFoldr = smtHOFunction "sbv.foldr" (uncurry f . untuple)-                   $ \exs -> let (e, xs) = untuple exs-                                 (h, t)  = uncons xs-                             in ite (null xs)-                                    e-                                    (h `f` sbvFoldr (tuple (e, t)))+    where sbvFoldr = smtHOFunction "sbv.foldr" (uncurry f)+                   $ \exs -> [sCase| exs of+                                (e, [])    -> e+                                (e, h : t) -> h `f` sbvFoldr (tuple (e, t))+                             |]  -- | Folding right with symbolic closures. instance (SymVal env, SymVal a, SymVal b) => SFoldR (Closure (SBV env) (SBV a -> SBV b -> SBV b)) a b where@@ -734,14 +743,13 @@     | True     = sbvFoldr $ tuple (closureEnv, base, l)     where sbvFoldr = smtHOFunction "sbv.closureFoldr" closureFun-                   $ \envxs -> let (cEnv, e, xs) = untuple envxs-                                   (h, t)        = uncons xs-                               in ite (null xs)-                                      e-                                      (closureFun closureEnv h (sbvFoldr (tuple (cEnv, e, t))))+                   $ \envxs -> [sCase| envxs of+                                  (_,    e, [])    -> e+                                  (cEnv, e, h : t) -> closureFun closureEnv h (sbvFoldr (tuple (cEnv, e, t)))+                               |]  -- | @`zip` xs ys@ zips the lists to give a list of pairs. The length of the final list is--- the minumum of the lengths of the given lists.+-- the minimum of the lengths of the given lists. -- -- >>> zip [sEnum|1..10 :: SInteger|] [sEnum|11..20 :: SInteger|] -- [(1,11),(2,12),(3,13),(4,14),(5,15),(6,16),(7,17),(8,18),(9,19),(10,20)] :: [(SInteger, SInteger)]@@ -754,13 +762,18 @@  = literal $ P.zip xs' ys'  | True  = def xs ys- where def = smtFunction "sbv.zip" $ \as bs -> ite (null as .|| null bs) [] (tuple (head as, head bs) .: def (tail as) (tail bs))+ where def = smtFunction "sbv.zip"+           $ \x y -> [sCase| tuple (x, y) of+                         ([],   _   ) -> []+                         (_,    []  ) -> []+                         (a:as, b:bs) -> tuple (a, b) .: def as bs+                     |]  -- | A class of function that we can zip-with. In SBV, we make a distinction between closures and regular -- functions, and we instantiate this class appropriately so it can handle both cases. class (SymVal a, SymVal b, SymVal c) => SZipWith func a b c | func -> a b c where   -- | @`zipWith` f xs ys@ zips the lists to give a list of pairs, applying the function to each pair of elements.-  -- The length of the final list is the minumum of the lengths of the given lists.+  -- The length of the final list is the minimum of the lengths of the given lists.    --    -- >>> zipWith ((+) @SInteger) ([sEnum|1..10::SInteger|]) ([sEnum|11..20::SInteger|])    -- [12,14,16,18,20,22,24,26,28,30] :: [SInteger]@@ -787,11 +800,12 @@     = literal concResult     | True     = sbvZipWith $ tuple (xs, ys)-    where sbvZipWith = smtHOFunction "sbv.zipWith" (uncurry f . untuple)-                     $ \asbs -> let (as, bs) = untuple asbs-                                in ite (null as .|| null bs)-                                       []-                                       (f (head as) (head bs) .: sbvZipWith (tuple (tail as, tail bs)))+    where sbvZipWith = smtHOFunction "sbv.zipWith" (uncurry f)+                     $ \asbs -> [sCase| asbs of+                                   ([],   _   ) -> []+                                   (_,    []  ) -> []+                                   (a:as, b:bs) -> f a b .: sbvZipWith (tuple (as, bs))+                                |]  -- | Zipping with closures. instance (SymVal env, SymVal a, SymVal b, SymVal c) => SZipWith (Closure (SBV env) (SBV a -> SBV b -> SBV c)) a b c where@@ -801,10 +815,11 @@     | True     = sbvZipWith $ tuple (closureEnv, xs, ys)     where sbvZipWith = smtHOFunction "sbv.closureZipWith" closureFun-                     $ \envasbs -> let (cEnv, as, bs) = untuple envasbs-                                   in ite (null as .|| null bs)-                                          []-                                          (closureFun cEnv (head as) (head bs) .: sbvZipWith (tuple (cEnv, tail as, tail bs)))+                     $ \envasbs -> [sCase| envasbs of+                                      (_,    [],   _   ) -> []+                                      (_,    _,    []  ) -> []+                                      (cEnv, a:as, b:bs) -> closureFun cEnv a b .: sbvZipWith (tuple (cEnv, as, bs))+                                   |]  -- | Concatenate list of lists. --@@ -863,7 +878,11 @@  = literal (genericReplicate c' e')  | True  = def c e- where def = smtFunction "sbv.replicate" $ \count elt -> ite (count .<= 0) [] (elt .: def (count - 1) elt)+ where def = smtFunction "sbv.replicate"+           $ \count elt -> [sCase| count of+                               _ | count .<= 0 -> []+                               _               -> elt .: def (count - 1) elt+                           |]  -- | inits of a list. --@@ -877,7 +896,11 @@  = literal (L.inits xs')  | True  = def xs- where def = smtFunction "sbv.inits" $ \l -> ite (null l) [[]] (def (init l) ++ [l])+ where def = smtFunction "sbv.inits"+           $ \l -> [sCase| l of+                      []    -> [[]]+                      _ : _ -> def (init l) ++ [l]+                   |]  -- | tails of a list. --@@ -891,8 +914,42 @@  = literal (L.tails xs')  | True  = def xs- where def = smtFunction "sbv.tails" $ \l -> ite (null l) [[]] (l .: def (tail l))+ where def = smtFunction "sbv.tails"+           $ \l -> [sCase| l of+                      []      -> [[]]+                      _ : tl  -> l .: def tl+                   |] +-- | Minimum of a list that has symbolic-ordering. If the list is empty, then+-- the result is underspecified, i.e., it is an arbitrary element of the element type.+--+-- >>> minimum ([1,2,3] :: SList Integer)+-- 1 :: SInteger+-- >>> sat $ 512 .== minimum (literal [] :: SList Integer)+-- Satisfiable. Model:+--   SList.minimum @Integer = 512 :: Integer+minimum :: forall a. (SymVal a, Ord a, OrdSymbolic (SBV a)) => SList a -> SBV a+minimum xs+  | Just lxs@(_:_) <- unliteral xs+  = literal (P.minimum lxs)+  | True+  = foldr (smin @(SBV a)) (some "SList.minimum" (const sTrue)) xs++-- | Maximum of a list that has symbolic-ordering. If the list is empty, then+-- the result is underspecified, i.e., it is an arbitrary element of the element type.+--+-- >>> maximum ([1,2,3] :: SList Integer)+-- 3 :: SInteger+-- >>> sat $ 512 .== maximum (literal [] :: SList Integer)+-- Satisfiable. Model:+--   SList.maximum @Integer = 512 :: Integer+maximum :: forall a. (SymVal a, Ord a, OrdSymbolic (SBV a)) => SList a -> SBV a+maximum xs+  | Just lxs@(_:_) <- unliteral xs+  = literal (P.maximum lxs)+  | True+  = foldr (smax @(SBV a)) (some "SList.maximum" (const sTrue)) xs+ -- | Difference. -- -- >>> [1, 2] \\ [3, 4 :: SInteger]@@ -905,11 +962,12 @@  = literal (xs' L.\\ ys')  | True  = def xs ys- where def = smtFunction "sbv.diff" $ \x y -> ite (null x)-                                                  []-                                                  (let (h, t) = uncons x-                                                       r      = def t y-                                                   in ite (h `elem` y) r (h .: r))+ where def = smtFunction "sbv.diff"+           $ \x y -> [sCase| x of+                        []    -> []+                        h : t -> let r = def t y+                                 in ite (h `elem` y) r (h .: r)+                     |] infix 5 \\  -- CPP: do not eat the final newline  -- | A class of filtering-like functions. In SBV, we make a distinction between closures and regular functions,@@ -975,7 +1033,7 @@   -- [2,3,4,5,6,7,8,9,10] :: [SInteger]   dropWhile :: func -> SList a -> SList a -  -- | Handle the concrete case of take-while. Used internally only.+  -- | Handle the concrete case of drop-while. Used internally only.   concreteDropWhile :: func -> (SBV a -> SBool) -> SList a -> Maybe [a]   concreteDropWhile _ f sas    | Just as <- unliteral sas@@ -993,11 +1051,12 @@     = literal concResult     | True     = sbvFilter l-    where sbvFilter = smtHOFunction "sbv.filter" f $ \xs -> ite (null xs)-                                                                []-                                                                (let (h, t) = uncons xs-                                                                     r      = sbvFilter t-                                                                 in ite (f h) (h .: r) r)+    where sbvFilter = smtHOFunction "sbv.filter" f+                    $ \xs -> [sCase| xs of+                                []    -> []+                                h : t -> let r = sbvFilter t+                                         in ite (f h) (h .: r) r+                             |]    -- | @partition f xs@ splits the list into two and returns those that satisfy the predicate in the   -- first element, and those that don't in the second.@@ -1006,13 +1065,13 @@     = literal concResult     | True     = sbvPartition l-    where sbvPartition = smtHOFunction "sbv.partition" f $ \xs -> ite (null xs)-                                                                      (tuple ([], []))-                                                                      (let (h, t)   = uncons xs-                                                                           (as, bs) = untuple $ sbvPartition t-                                                                       in ite (f h)-                                                                              (tuple (h .: as, bs))-                                                                              (tuple (as, h .: bs)))+    where sbvPartition = smtHOFunction "sbv.partition" f+                       $ \xs -> [sCase| xs of+                                   []    -> tuple ([], [])+                                   h : t -> case sbvPartition t of+                                              (as, bs) | f h  -> tuple (h .: as, bs)+                                                       | True -> tuple (as, h .: bs)+                                |]    -- | @takeWhile f xs@ takes the prefix of @xs@ that satisfy the predicate.   takeWhile f l@@ -1020,10 +1079,12 @@     = literal concResult     | True     = sbvTakeWhile l-    where sbvTakeWhile = smtHOFunction "sbv.takeWhile" f $ \xs -> ite (null xs)-                                                                      []-                                                                      (let (h, t) = uncons xs-                                                                       in ite (f h) (h .: sbvTakeWhile t) [])+    where sbvTakeWhile = smtHOFunction "sbv.takeWhile" f+                       $ \xs -> [sCase| xs of+                                   []           -> []+                                   h : t | f h  -> h .: sbvTakeWhile t+                                         | True -> []+                                |]    -- | @dropWhile f xs@ drops the prefix of @xs@ that satisfy the predicate.   dropWhile f l@@ -1031,10 +1092,12 @@     = literal concResult     | True     = sbvDropWhile l-    where sbvDropWhile = smtHOFunction "sbv.dropWhile" f $ \xs -> ite (null xs)-                                                                      []-                                                                      (let (h, t) = uncons xs-                                                                       in ite (f h) (sbvDropWhile t) xs)+    where sbvDropWhile = smtHOFunction "sbv.dropWhile" f+                       $ \xs -> [sCase| xs of+                                   []           -> []+                                   h : t | f h  -> sbvDropWhile t+                                         | True -> xs+                                |]  -- | Filtering with closures. instance (SymVal env, SymVal a) => SFilter (Closure (SBV env) (SBV a -> SBool)) a where@@ -1044,10 +1107,11 @@     | True     = sbvFilter (tuple (closureEnv, l))     where sbvFilter = smtHOFunction "sbv.closureFilter" closureFun-                    $ \envxs -> let (cEnv, xs) = untuple envxs-                                    (h, t)     = uncons xs-                                    r          = sbvFilter (tuple (cEnv, t))-                                in ite (closureFun cEnv h) (h .: r) r+                    $ \envxs -> [sCase| envxs of+                                   (_,    [])    -> []+                                   (cEnv, h : t) -> let r = sbvFilter (tuple (cEnv, t))+                                                    in ite (closureFun cEnv h) (h .: r) r+                                |]    partition cls@Closure{closureEnv, closureFun} l     | Just concResult <- concretePartition cls (closureFun closureEnv) l@@ -1055,12 +1119,12 @@     | True     = sbvPartition (tuple (closureEnv, l))     where sbvPartition = smtHOFunction "sbv.closurePartition" closureFun-                       $ \envxs -> let (cEnv, xs) = untuple envxs-                                       (h,    t)  = uncons xs-                                       (as,   bs) = untuple $ sbvPartition (tuple (cEnv, t))-                                   in ite (closureFun cEnv h)-                                          (tuple (h .: as, bs))-                                          (tuple (as, h .: bs))+                       $ \envxs -> [sCase| envxs of+                                      (_, [])       -> tuple ([], [])+                                      (cEnv, h : t) -> case sbvPartition (tuple (cEnv, t)) of+                                                          (as, bs) | closureFun cEnv h -> tuple (h .: as, bs)+                                                                   | True              -> tuple (as, h .: bs)+                                   |]    takeWhile cls@Closure{closureEnv, closureFun} l     | Just concResult <- concreteTakeWhile cls (closureFun closureEnv) l@@ -1068,9 +1132,11 @@     | True     = sbvTakeWhile (tuple (closureEnv, l))     where sbvTakeWhile = smtHOFunction "sbv.closureTakeWhile" closureFun-                       $ \envxs -> let (cEnv, xs) = untuple envxs-                                       (h, t)     = uncons xs-                                in ite (closureFun cEnv h) (h .: sbvTakeWhile (tuple (cEnv, t))) []+                       $ \envxs -> [sCase| envxs of+                                      (_,    [])                        -> []+                                      (cEnv, h : t) | closureFun cEnv h -> h .: sbvTakeWhile (tuple (cEnv, t))+                                                    | True              -> []+                                   |]    dropWhile cls@Closure{closureEnv, closureFun} l     | Just concResult <- concreteDropWhile cls (closureFun closureEnv) l@@ -1078,9 +1144,11 @@     | True     = sbvDropWhile (tuple (closureEnv, l))     where sbvDropWhile = smtHOFunction "sbv.closureDropWhile" closureFun-                       $ \envxs -> let (cEnv, xs) = untuple envxs-                                       (h, t)     = uncons xs-                                in ite (closureFun cEnv h) (sbvDropWhile (tuple (cEnv, t))) xs+                       $ \envxs -> [sCase| envxs of+                                      (_,    [])                              -> []+                                      (cEnv, lst@(h : t)) | closureFun cEnv h -> sbvDropWhile (tuple (cEnv, t))+                                                          | True              -> lst+                                   |]  -- | @`sum` s@. Sum the given sequence. --@@ -1132,6 +1200,16 @@    -- | @`enumFromThenTo` m n@. Symbolic version of @[m, m' .. n]@    enumFromThenTo :: SymVal a => SBV a -> SBV a -> SBV a -> SList a +   -- | @`enumFromThenTo`@ with an optionally statically-known integer step. The sEnum quasiquoter+   -- supplies @`Just` d@ for @[m, m' .. n]@ when @m'@ is @m@ shifted by a compile-time integer+   -- constant (e.g. @[m, m-1 .. n]@ gives @-1@); otherwise it supplies `Nothing`. Instances with+   -- exact arithmetic (integers, reals) use the hint to constant-fold the step, so the @step == 0@+   -- infinite-list branch (and its productive helper) drops out; every other instance ignores the+   -- hint and falls back to 'enumFromThenTo', preserving its exact semantics. Not meant to be called+   -- directly; the default is correct for any instance.+   enumFromThenToH :: SymVal a => SBV a -> SBV a -> SBV a -> Maybe Integer -> SList a+   enumFromThenToH from thn to _ = enumFromThenTo from thn to+ -- | 'EnumSymbolic' instance for words instance {-# OVERLAPPABLE #-} (SymVal a, Bounded a, Integral a, Num a, Num (SBV a)) => EnumSymbolic a where   succ = smtFunction "EnumSymbolic.succ" (\x -> ite (x .== maxBound) (some "EnumSymbolic.succ.maxBound" (const sTrue)) (x+1))@@ -1164,19 +1242,34 @@    toEnum   = id    fromEnum = id -   enumFrom   n = enumFromThen   n (n+1)-   enumFromTo n = enumFromThenTo n (n+1)+   enumFrom   n   = enumFromThen          n (n+1)+   enumFromTo n m = enumFromThenToInteger n m 1     enumFromThen x y = go x (y-x)-     where go = smtFunction "EnumSymbolic.Integer.enumFromThen" $ \start delta -> start .: go (start+delta) delta+     where go = smtProductiveFunction "EnumSymbolic.Integer.enumFromThen" $ \start delta -> start .: go (start+delta) delta -   enumFromThenTo x y z = ite (delta .>= 0) (up x delta z) (down x delta z)-     where delta = y - x+   enumFromThenTo x y z = enumFromThenToInteger x z (y - x) -           up, down :: SInteger -> SInteger -> SInteger -> SList Integer-           up    = smtFunction "EnumSymbolic.Integer.enumFromThenTo.up"   $ \start d end -> ite (start .> end) [] (start .: up   (start + d) d end)-           down  = smtFunction "EnumSymbolic.Integer.enumFromThenTo.down" $ \start d end -> ite (start .< end) [] (start .: down (start + d) d end)+   enumFromThenToH x y z mStep = enumFromThenToInteger x z (maybe (y - x) fromIntegral mStep) +-- When the step is 0 (i.e., y == x), Haskell produces an infinite list of x's+-- if x <= z, and the empty list otherwise. We mirror that here.+enumFromThenToInteger :: SInteger -> SInteger -> SInteger -> SList Integer+enumFromThenToInteger x z delta = ite (delta .== 0)+                                      (ite (x .<= z) (enumFromThen x x) [])+                                $ ite (delta .>  0) (up x delta z) (down x delta z)+  where -- The d==0 case is handled: 'up'/'down' are only *called* with d>0/d<0 (the d==0 case+        -- is routed to the infinite-list branch above), and the guard's @d .<= 0@/@d .>= 0@ test+        -- puts @d>0@/@d<0@ into the reaching condition, so measure verification never sees d==0.+        -- (The integer measure does not divide by d, so there's no zero-denominator to worry about.)+        up, down :: SInteger -> SInteger -> SInteger -> SList Integer+        up    = smtFunctionWithMeasure "EnumSymbolic.Integer.enumFromThenTo.up"+                                       (\start _d end -> 0 `smax` (end - start + 1), [])+              $ \start d end -> ite (start .> end .|| d .<= 0) [] (start .: up   (start + d) d end)+        down  = smtFunctionWithMeasure "EnumSymbolic.Integer.enumFromThenTo.down"+                                       (\start _d end -> 0 `smax` (start - end + 1), [])+              $ \start d end -> ite (start .< end .|| d .>= 0) [] (start .: down (start + d) d end)+ -- | 'EnumSymbolic instance for 'Float'. Note that the termination requirement as defined by the Haskell standard for floats state: --      > For Float and Double, the semantics of the enumFrom family is given by the rules for Int above, --      > except that the list terminates when the elements become greater than @e3 + i/2@ for positive increment @i@,@@ -1188,21 +1281,39 @@    toEnum   = sFromIntegral    fromEnum = fromSFloat sRTZ -   enumFrom   n = enumFromThen   n (n+1)-   enumFromTo n = enumFromThenTo n (n+1)+   enumFrom   n   = enumFromThen        n (n+1)+   enumFromTo n m = enumFromThenToFloat n m 1     enumFromThen x y = go 0 x (y-x)-     where go = smtFunction "EnumSymbolic.Float.enumFromThen" $ \k n d -> (n + k * d) .: go (k+1) n d+     where go = smtProductiveFunction "EnumSymbolic.Float.enumFromThen" $ \k n d -> (n + k * d) .: go (k+1) n d -   enumFromThenTo x y zIn = ite (delta .>= 0) (up 0 x delta z) (down 0 x delta z)-     where delta, z :: SFloat-           delta = y - x-           z     = zIn + delta / 2+   enumFromThenTo x y zIn = enumFromThenToFloat x zIn (y - x) -           up, down :: SFloat -> SFloat -> SFloat -> SFloat -> SList Float-           up    = smtFunction "EnumSymbolic.Float.enumFromThenTo.up"   $ \k n d end -> let c = n + k * d in ite (c .> end) [] (c .: up   (k+1) n d end)-           down  = smtFunction "EnumSymbolic.Float.enumFromThenTo.down" $ \k n d end -> let c = n + k * d in ite (c .< end) [] (c .: down (k+1) n d end)+-- When the step is 0 (i.e., y == x), Haskell produces an infinite list of x's+-- if x <= z, and the empty list otherwise. We mirror that here.+enumFromThenToFloat :: SFloat -> SFloat -> SFloat -> SList Float+enumFromThenToFloat x zIn delta = ite (delta .== 0)+                                      (ite (x .<= z) (enumFromThen x x) [])+                                $ ite (delta .>  0) (up 0 x delta z) (down 0 x delta z)+  where z :: SFloat+        z = zIn + delta / 2 +        -- Unlike the Integer/AlgReal instances, these are NOT given a termination measure:+        -- floating-point enumeration is genuinely partial. The step @k * d@ can saturate (once+        -- @k * d@ falls below the ULP of @n@, or once the float @k@ itself stops incrementing),+        -- so for some inputs @n + k * d@ never exceeds @end@ and the recursion does not terminate+        -- -- exactly as Haskell's own float enumeration diverges in those cases. A termination+        -- measure would therefore be unsound: no measure can certify termination of a function+        -- that does not always terminate. Instead we mark these productive -- each recursive call+        -- is guarded by a cons, so the definition is well-formed corecursion (finite when the+        -- enumeration terminates, infinite when it saturates). The d==0 case never reaches here:+        -- it is routed to the infinite-list branch above.+        up, down :: SFloat -> SFloat -> SFloat -> SFloat -> SList Float+        up   = smtProductiveFunction "EnumSymbolic.Float.enumFromThenTo.up"+             $ \k n d end -> let c = n + k * d in ite (c .> end) [] (c .: up   (k+1) n d end)+        down = smtProductiveFunction "EnumSymbolic.Float.enumFromThenTo.down"+             $ \k n d end -> let c = n + k * d in ite (c .< end) [] (c .: down (k+1) n d end)+ -- | 'EnumSymbolic instance for 'Double' instance {-# OVERLAPPING #-} EnumSymbolic Double where    succ x = x + 1@@ -1211,21 +1322,33 @@    toEnum   = sFromIntegral    fromEnum = fromSDouble sRTZ -   enumFrom   n = enumFromThen   n (n+1)-   enumFromTo n = enumFromThenTo n (n+1)+   enumFrom   n   = enumFromThen         n (n+1)+   enumFromTo n m = enumFromThenToDouble n m 1     enumFromThen x y = go 0 x (y-x)-     where go = smtFunction "EnumSymbolic.Double.enumFromThen" $ \k n d -> (n + k * d) .: go (k+1) n d+     where go = smtProductiveFunction "EnumSymbolic.Double.enumFromThen" $ \k n d -> (n + k * d) .: go (k+1) n d -   enumFromThenTo x y zIn = ite (delta .>= 0) (up 0 x delta z) (down 0 x delta z)-     where delta, z :: SDouble-           delta = y - x-           z     = zIn + delta / 2+   enumFromThenTo x y zIn = enumFromThenToDouble x zIn (y - x) -           up, down :: SDouble -> SDouble -> SDouble -> SDouble -> SList Double-           up    = smtFunction "EnumSymbolic.Double.enumFromThenTo.up"   $ \k n d end -> let c = n + k * d in ite (c .> end) [] (c .: up   (k+1) n d end)-           down  = smtFunction "EnumSymbolic.Double.enumFromThenTo.down" $ \k n d end -> let c = n + k * d in ite (c .< end) [] (c .: down (k+1) n d end)+-- When the step is 0 (i.e., y == x), Haskell produces an infinite list of x's+-- if x <= z, and the empty list otherwise. We mirror that here.+enumFromThenToDouble :: SDouble -> SDouble -> SDouble -> SList Double+enumFromThenToDouble x zIn delta = ite (delta .== 0)+                                       (ite (x .<= z) (enumFromThen x x) [])+                                 $ ite (delta .>  0) (up 0 x delta z) (down 0 x delta z)+  where z :: SDouble+        z = zIn + delta / 2 +        -- See the Float instance for why these are productive rather than measured:+        -- floating-point enumeration is genuinely partial (the @k * d@ step can saturate), so a+        -- termination measure would be unsound. Each recursive call is guarded by a cons, so the+        -- definition is well-formed corecursion. The d==0 case is routed to the branch above.+        up, down :: SDouble -> SDouble -> SDouble -> SDouble -> SList Double+        up   = smtProductiveFunction "EnumSymbolic.Double.enumFromThenTo.up"+             $ \k n d end -> let c = n + k * d in ite (c .> end) [] (c .: up   (k+1) n d end)+        down = smtProductiveFunction "EnumSymbolic.Double.enumFromThenTo.down"+             $ \k n d end -> let c = n + k * d in ite (c .< end) [] (c .: down (k+1) n d end)+ -- | 'EnumSymbolic instance for arbitrary floats instance {-# OVERLAPPING #-} ValidFloat eb sb => EnumSymbolic (FloatingPoint eb sb) where    succ x = x + 1@@ -1234,21 +1357,33 @@    toEnum   = sFromIntegral    fromEnum = fromSFloatingPoint sRTZ -   enumFrom   n = enumFromThen   n (n+1)-   enumFromTo n = enumFromThenTo n (n+1)+   enumFrom   n   = enumFromThen                 n (n+1)+   enumFromTo n m = enumFromThenToFloatingPoint  n m 1     enumFromThen x y = go 0 x (y-x)-     where go = smtFunction "EnumSymbolic.FloatingPoint.enumFromThen" $ \k n d -> (n + k * d) .: go (k+1) n d+     where go = smtProductiveFunction "EnumSymbolic.FloatingPoint.enumFromThen" $ \k n d -> (n + k * d) .: go (k+1) n d -   enumFromThenTo x y zIn = ite (delta .>= 0) (up 0 x delta z) (down 0 x delta z)-     where delta, z :: SFloatingPoint eb sb-           delta = y - x-           z     = zIn + delta / 2+   enumFromThenTo x y zIn = enumFromThenToFloatingPoint x zIn (y - x) -           up, down :: SFloatingPoint eb sb -> SFloatingPoint eb sb -> SFloatingPoint eb sb -> SFloatingPoint eb sb -> SList (FloatingPoint eb sb)-           up    = smtFunction "EnumSymbolic.FloatingPoint.enumFromThenTo.up"   $ \k n d end -> let c = n + k * d in ite (c .> end) [] (c .: up   (k+1) n d end)-           down  = smtFunction "EnumSymbolic.FloatingPoint.enumFromThenTo.down" $ \k n d end -> let c = n + k * d in ite (c .< end) [] (c .: down (k+1) n d end)+-- When the step is 0 (i.e., y == x), Haskell produces an infinite list of x's+-- if x <= z, and the empty list otherwise. We mirror that here.+enumFromThenToFloatingPoint :: forall eb sb. ValidFloat eb sb => SFloatingPoint eb sb -> SFloatingPoint eb sb -> SFloatingPoint eb sb -> SList (FloatingPoint eb sb)+enumFromThenToFloatingPoint x zIn delta = ite (delta .== 0)+                                              (ite (x .<= z) (enumFromThen x x) [])+                                        $ ite (delta .>  0) (up 0 x delta z) (down 0 x delta z)+  where z :: SFloatingPoint eb sb+        z = zIn + delta / 2 +        -- See the Float instance for why these are productive rather than measured:+        -- floating-point enumeration is genuinely partial (the @k * d@ step can saturate), so a+        -- termination measure would be unsound. Each recursive call is guarded by a cons, so the+        -- definition is well-formed corecursion. The d==0 case is routed to the branch above.+        up, down :: SFloatingPoint eb sb -> SFloatingPoint eb sb -> SFloatingPoint eb sb -> SFloatingPoint eb sb -> SList (FloatingPoint eb sb)+        up   = smtProductiveFunction "EnumSymbolic.FloatingPoint.enumFromThenTo.up"+             $ \k n d end -> let c = n + k * d in ite (c .> end) [] (c .: up   (k+1) n d end)+        down = smtProductiveFunction "EnumSymbolic.FloatingPoint.enumFromThenTo.down"+             $ \k n d end -> let c = n + k * d in ite (c .< end) [] (c .: down (k+1) n d end)+ -- | 'EnumSymbolic instance for arbitrary AlgReal. We don't have to use the multiplicative trick here -- since alg-reals are precise. But, following rational in Haskell, we do use the stopping point of @z + delta / 2@. instance {-# OVERLAPPING #-} EnumSymbolic AlgReal where@@ -1258,34 +1393,58 @@    toEnum   = sFromIntegral    fromEnum = sRealToSIntegerTruncate -   enumFrom   n = enumFromThen   n (n+1)-   enumFromTo n = enumFromThenTo n (n+1)+   enumFrom   n   = enumFromThen          n (n+1)+   enumFromTo n m = enumFromThenToAlgReal n m 1     enumFromThen x y = go x (y-x)-     where go = smtFunction "EnumSymbolic.AlgReal.enumFromThen" $ \start delta -> start .: go (start+delta) delta+     where go = smtProductiveFunction "EnumSymbolic.AlgReal.enumFromThen" $ \start delta -> start .: go (start+delta) delta -   enumFromThenTo x y zIn = ite (delta .>= 0) (up x delta z) (down x delta z)-     where delta, z :: SReal-           delta = y - x-           z     = zIn + delta / 2+   enumFromThenTo x y zIn = enumFromThenToAlgReal x zIn (y - x) -           up, down :: SReal -> SReal -> SReal -> SList AlgReal-           up    = smtFunction "EnumSymbolic.AlgReal.enumFromThenTo.up"   $ \start d end -> ite (start .> end) [] (start .: up   (start + d) d end)-           down  = smtFunction "EnumSymbolic.AlgReal.enumFromThenTo.down" $ \start d end -> ite (start .< end) [] (start .: down (start + d) d end)+   enumFromThenToH x y zIn mStep = enumFromThenToAlgReal x zIn (maybe (y - x) fromIntegral mStep) +-- When the step is 0 (i.e., y == x), Haskell produces an infinite list of x's+-- if x <= z, and the empty list otherwise. We mirror that here.+enumFromThenToAlgReal :: SReal -> SReal -> SReal -> SList AlgReal+enumFromThenToAlgReal x zIn delta = ite (delta .== 0)+                                        (ite (x .<= z) (enumFromThen x x) [])+                                  $ ite (delta .>  0) (up x delta z) (down x delta z)+  where z :: SReal+        z = zIn + delta / 2++        -- The measure is the number of remaining recursive steps, which is an INTEGER:+        -- @floor ((end - start) / d) + 1@ (clamped at 0). A real-valued measure would be+        -- unsound here, since the reals are not well-ordered (an infinite descending chain+        -- like 1, 1/2, 1/4, ... never reaches a minimum). 'sRealToSInteger' is @floor@, and+        -- @(end - start) / d@ is non-negative in both the up (d>0) and down (d<0) regimes, so+        -- the same expression serves both.+        --+        -- The d==0 case is handled: 'up'/'down' are only *called* with d>0/d<0 (the d==0 case is+        -- routed to the infinite-list branch above), and for measure *verification* the guard's+        -- @d .<= 0@/@d .>= 0@ test puts @d>0@/@d<0@ into the reaching condition, so the decrease+        -- obligation never sees d==0; the @0 `smax`@ keeps non-negativity vacuously true even for+        -- the unreachable zero-denominator value of @(end - start) / d@.+        up, down :: SReal -> SReal -> SReal -> SList AlgReal+        up   = smtFunctionWithMeasure "EnumSymbolic.AlgReal.enumFromThenTo.up"   (\start d end -> 0 `smax` (sRealToSInteger ((end - start) / d) + 1), [])+             $ \start d end -> ite (start .> end .|| d .<= 0) [] (start .: up   (start + d) d end)+        down = smtFunctionWithMeasure "EnumSymbolic.AlgReal.enumFromThenTo.down" (\start d end -> 0 `smax` (sRealToSInteger ((end - start) / d) + 1), [])+             $ \start d end -> ite (start .< end .|| d .>= 0) [] (start .: down (start + d) d end)+ -- | Lookup. If we can't find, then the result is unspecified. -- -- >>> lookup (4 :: SInteger) (literal [(5, 12), (4, 3), (2, 6 :: Integer)]) -- 3 :: SInteger -- >>> prove  $ \(x :: SInteger) -> x .== lookup 9 (literal [(5, 12), (4, 3), (2, 6 :: Integer)]) -- Falsifiable. Counter-example:---   Data.SBV.List.lookup_notFound @Integer = 0 :: Integer---   s0                                     = 1 :: Integer+--   sbv.lookup_notFound @Integer = 0 :: Integer+--   s0                           = 1 :: Integer lookup :: (SymVal k, SymVal v) => SBV k -> SList (k, v) -> SBV v-lookup = smtFunction "Data.SBV.List.lookup" $ \k lst -> ite (null lst)-                                                            (some "Data.SBV.List.lookup_notFound" (const sTrue))-                                                            (let (k', v) = untuple (head lst)-                                                             in ite (k .== k') v (lookup k (tail lst)))+lookup = smtFunction "sbv.lookup"+       $ \k lst -> [sCase| lst of+                       []                        -> some "sbv.lookup_notFound" (const sTrue)+                       (k', v) : rest | k .== k' -> v+                                      | True     -> lookup k rest+                   |]  -- | @`strToNat` s@. Retrieve integer encoded by string @s@ (ground rewriting only). -- Note that by definition this function only works when @s@ only contains digits,@@ -1385,4 +1544,5 @@         r st = do sva <- sbvToSV st a                   newExpr st k (SBVApp (StrOp w) [sva]) -{- HLint ignore implode "Use :" -}+{- HLint ignore implode   "Use :" -}+{- HLint ignore replicate "Use const" -}
Data/SBV/Maybe.hs view
@@ -13,30 +13,37 @@ {-# LANGUAGE CPP                 #-} {-# LANGUAGE FlexibleContexts    #-} {-# LANGUAGE FlexibleInstances   #-}-{-# LANGUAGE Rank2Types          #-}+{-# LANGUAGE QuasiQuotes         #-} {-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TemplateHaskell     #-} {-# LANGUAGE TypeApplications    #-} -{-# OPTIONS_GHC -Wall -Werror -fno-warn-orphans #-}+{-# OPTIONS_GHC -Wall -Werror -Wno-orphans #-}  module Data.SBV.Maybe (   -- * Constructing optional values-    sJust, sNothing, liftMaybe+    sJust, sNothing, liftMaybe, SMaybe, sMaybe, sMaybe_, sMaybes+   -- * Destructing optionals   , maybe+   -- * Mapping functions   , map, map2+   -- * Scrutinizing the branches of an option   , isNothing, isJust, fromMaybe, fromJust++  -- * Case analysis (for sCase quasi-quoter)+  , sCaseMaybe, getJust_1   ) where  import           Prelude hiding (maybe, map) import qualified Prelude -import Data.Proxy (Proxy(Proxy))-+import Data.SBV.Client import Data.SBV.Core.Data-import Data.SBV.Core.Model (ite)+import Data.SBV.Core.Model (ite, OrdSymbolic(..))+import Data.SBV.SCase      (sCase)  #ifdef DOCTEST -- $setup@@ -44,56 +51,43 @@ -- >>> import Data.SBV #endif --- | The symbolic 'Nothing'.+-- | Make 'Maybe' symbolic. -- -- >>> sNothing :: SMaybe Integer--- Nothing :: SMaybe Integer-sNothing :: forall a. SymVal a => SMaybe a-sNothing = SBV $ SVal k $ Left $ CV k $ CMaybe Nothing-  where k = kindOf (Proxy @(Maybe a))---- | Check if the symbolic value is nothing.---+-- Nothing :: Maybe Integer -- >>> isNothing (sNothing :: SMaybe Integer) -- True -- >>> isNothing (sJust (literal "nope")) -- False-isNothing :: SymVal a => SMaybe a -> SBool-isNothing = maybe sTrue (const sFalse)---- | Construct an @SMaybe a@ from an @SBV a@.--- -- >>> sJust (3 :: SInteger)--- Just 3 :: SMaybe Integer-sJust :: forall a. SymVal a => SBV a -> SMaybe a-sJust sa-  | Just a <- unliteral sa-  = literal (Just a)-  | True-  = SBV $ SVal kMaybe $ Right $ cache res-  where ka     = kindOf (Proxy @a)-        kMaybe = KMaybe ka--        res st = do asv <- sbvToSV st sa-                    newExpr st kMaybe $ SBVApp (MaybeConstructor ka True) [asv]---- | Check if the symbolic value is not nothing.---+-- Just 3 :: Maybe Integer -- >>> isJust (sNothing :: SMaybe Integer) -- False -- >>> isJust (sJust (literal "yep")) -- True -- >>> prove $ \x -> isJust (sJust (x :: SInteger)) -- Q.E.D.-isJust :: SymVal a => SMaybe a -> SBool-isJust = maybe sFalse (const sTrue)+mkSymbolic [''Maybe] +-- | Declare a symbolic maybe.+sMaybe :: SymVal a => String -> Symbolic (SMaybe a)+sMaybe = free++-- | Declare a symbolic maybe, unnamed.+sMaybe_ :: SymVal a => Symbolic (SMaybe a)+sMaybe_ = free_++-- | Declare a list of symbolic maybes.+sMaybes :: SymVal a => [String] -> Symbolic [SMaybe a]+sMaybes = symbolics+ -- | Return the value of an optional value. The default is returned if Nothing. Compare to 'fromJust'. -- -- >>> fromMaybe 2 (sNothing :: SMaybe Integer) -- 2 :: SInteger--- >>> fromMaybe 2 (sJust 5 :: SMaybe Integer)--- 5 :: SInteger+-- >>> sat $ \x -> fromMaybe 2 (sJust 5 :: SMaybe Integer) .== x+-- Satisfiable. Model:+--   s0 = 5 :: Integer -- >>> prove $ \x -> fromMaybe x (sNothing :: SMaybe Integer) .== x -- Q.E.D. -- >>> prove $ \x -> fromMaybe (x+1) (sJust x :: SMaybe Integer) .== x@@ -104,8 +98,9 @@ -- | Return the value of an optional value. The behavior is undefined if -- passed Nothing, i.e., it can return any value. Compare to 'fromMaybe'. ----- >>> fromJust (sJust (literal 'a'))--- 'a' :: SChar+-- >>> sat $ \x -> fromJust (sJust (literal 'a')) .== x+-- Satisfiable. Model:+--   s0 = 'a' :: Char -- >>> prove $ \x -> fromJust (sJust x) .== (x :: SChar) -- Q.E.D. -- >>> sat $ \x -> x .== (fromJust sNothing :: SChar)@@ -116,21 +111,14 @@ -- is unspecified, thus the SMT solver picks whatever satisfies the -- constraints, if there is one. fromJust :: forall a. SymVal a => SMaybe a -> SBV a-fromJust ma-  | Just (Just x) <- unliteral ma-  = literal x-  | True-  = SBV $ SVal ka $ Right $ cache res-  where ka     = kindOf (Proxy @a)-        res st = do ms <- sbvToSV st ma-                    newExpr st ka (SBVApp MaybeAccess [ms])+fromJust = getJust_1  -- | Construct an @SMaybe a@ from a @Maybe (SBV a)@. -- -- >>> liftMaybe (Just (3 :: SInteger))--- Just 3 :: SMaybe Integer+-- Just 3 :: Maybe Integer -- >>> liftMaybe (Nothing :: Maybe SInteger)--- Nothing :: SMaybe Integer+-- Nothing :: Maybe Integer liftMaybe :: SymVal a => Maybe (SBV a) -> SMaybe a liftMaybe = Prelude.maybe (literal Nothing) sJust @@ -158,10 +146,12 @@ -- | Case analysis for symbolic 'Maybe's. If the value 'isNothing', return the -- default value; if it 'isJust', apply the function. ----- >>> maybe 0 (`sMod` 2) (sJust (3 :: SInteger))--- 1 :: SInteger--- >>> maybe 0 (`sMod` 2) (sNothing :: SMaybe Integer)--- 0 :: SInteger+-- >>> sat $ \x -> x .== maybe 0 (`sMod` 2) (sJust (3 :: SInteger))+-- Satisfiable. Model:+--   s0 = 1 :: Integer+-- >>> sat $ \x -> x .== maybe 0 (`sMod` 2) (sNothing :: SMaybe Integer)+-- Satisfiable. Model:+--   s0 = 0 :: Integer -- >>> let f = uninterpret "f" :: SInteger -> SBool -- >>> prove $ \x d -> maybe d f (sJust x) .== f x -- Q.E.D.@@ -172,28 +162,10 @@       -> (SBV a -> SBV b)       -> SMaybe a       -> SBV b-maybe brNothing brJust ma-  | Just (Just a) <- unliteral ma-  = brJust (literal a)-  | Just Nothing  <- unliteral ma-  = brNothing-  | True-  = SBV $ SVal kb $ Right $ cache res-  where ka = kindOf (Proxy @a)-        kb = kindOf (Proxy @b)--        res st = do mav <- sbvToSV st ma--                    let justVal = SBV $ SVal ka $ Right $ cache $ \_ -> newExpr st ka $ SBVApp MaybeAccess [mav]--                        justRes = brJust justVal--                    br1 <- sbvToSV st brNothing-                    br2 <- sbvToSV st justRes--                    -- Do we have a value?-                    noVal <- newExpr st KBool $ SBVApp (MaybeIs ka False) [mav]-                    newExpr st kb $ SBVApp Ite [noVal, br1, br2]+maybe brNothing brJust ma = [sCase| ma of+                               Nothing -> brNothing+                               Just x  -> brJust x+                            |]  -- | Custom 'Num' instance over 'SMaybe' instance (Ord a, SymVal a, Num a, Num (SBV a)) => Num (SBV (Maybe a)) where@@ -203,3 +175,7 @@   abs         = map  abs   signum      = map  signum   fromInteger = sJust . fromInteger++-- | Custom 'OrdSymbolic' instance over 'SMaybe'.+instance (OrdSymbolic (SBV a), SymVal a) => OrdSymbolic (SBV (Maybe a)) where+  ma .< mb = maybe sFalse (\b -> maybe sTrue (.< b) ma) mb
Data/SBV/Provers/ABC.hs view
@@ -29,25 +29,25 @@          , options      = const ["-S", "%blast; &sweep -C 5000; &syn4; &cec -s -m -C 2000"]          , engine       = standardEngine "SBV_ABC" "SBV_ABC_OPTIONS"          , capabilities = SolverCapabilities {-                                supportsQuantifiers        = False-                              , supportsDefineFun          = True-                              , supportsDistinct           = True-                              , supportsBitVectors         = True-                              , supportsUninterpretedSorts = False-                              , supportsUnboundedInts      = False-                              , supportsReals              = False-                              , supportsApproxReals        = False-                              , supportsDeltaSat           = Nothing-                              , supportsIEEE754            = False-                              , supportsSets               = False-                              , supportsOptimization       = False-                              , supportsPseudoBooleans     = False-                              , supportsCustomQueries      = False-                              , supportsGlobalDecls        = False-                              , supportsDataTypes          = False-                              , supportsLambdas            = False-                              , supportsSpecialRels        = False-                              , supportsDirectAccessors    = False-                              , supportsFlattenedModels    = Nothing+                                supportsQuantifiers     = False+                              , supportsDefineFun       = True+                              , supportsDistinct        = True+                              , supportsBitVectors      = True+                              , supportsADTs            = False+                              , supportsUnboundedInts   = False+                              , supportsReals           = False+                              , supportsApproxReals     = False+                              , supportsDeltaSat        = Nothing+                              , supportsIEEE754         = False+                              , supportsSets            = False+                              , supportsOptimization    = False+                              , supportsPseudoBooleans  = False+                              , supportsCustomQueries   = False+                              , supportsGlobalDecls     = False+                              , supportsDataTypes       = False+                              , supportsLambdas         = False+                              , supportsSpecialRels     = False+                              , supportsDirectTesters   = False+                              , supportsFlattenedModels = Nothing                               }          }
Data/SBV/Provers/Bitwuzla.hs view
@@ -27,25 +27,25 @@          , options      = const ["--produce-models"]          , engine       = standardEngine "SBV_BITWUZLA" "SBV_BITWUZLA_OPTIONS"          , capabilities = SolverCapabilities {-                                supportsQuantifiers        = False-                              , supportsDefineFun          = True-                              , supportsDistinct           = True-                              , supportsBitVectors         = True-                              , supportsUninterpretedSorts = True-                              , supportsUnboundedInts      = False-                              , supportsReals              = False-                              , supportsApproxReals        = False-                              , supportsDeltaSat           = Nothing-                              , supportsIEEE754            = True-                              , supportsSets               = False-                              , supportsOptimization       = False-                              , supportsPseudoBooleans     = False-                              , supportsCustomQueries      = True-                              , supportsGlobalDecls        = True-                              , supportsDataTypes          = False-                              , supportsLambdas            = False-                              , supportsSpecialRels        = False-                              , supportsDirectAccessors    = False-                              , supportsFlattenedModels    = Nothing+                                supportsQuantifiers     = False+                              , supportsDefineFun       = True+                              , supportsDistinct        = True+                              , supportsBitVectors      = True+                              , supportsADTs            = True+                              , supportsUnboundedInts   = False+                              , supportsReals           = False+                              , supportsApproxReals     = False+                              , supportsDeltaSat        = Nothing+                              , supportsIEEE754         = True+                              , supportsSets            = False+                              , supportsOptimization    = False+                              , supportsPseudoBooleans  = False+                              , supportsCustomQueries   = True+                              , supportsGlobalDecls     = True+                              , supportsDataTypes       = False+                              , supportsLambdas         = False+                              , supportsSpecialRels     = False+                              , supportsDirectTesters   = False+                              , supportsFlattenedModels = Nothing                               }          }
Data/SBV/Provers/Boolector.hs view
@@ -27,25 +27,25 @@          , options      = const ["--smt2", "-m", "--output-format=smt2", "--no-exit-codes", "--incremental"]          , engine       = standardEngine "SBV_BOOLECTOR" "SBV_BOOLECTOR_OPTIONS"          , capabilities = SolverCapabilities {-                                supportsQuantifiers        = False-                              , supportsDefineFun          = True-                              , supportsDistinct           = True-                              , supportsBitVectors         = True-                              , supportsUninterpretedSorts = False-                              , supportsUnboundedInts      = False-                              , supportsReals              = False-                              , supportsApproxReals        = False-                              , supportsDeltaSat           = Nothing-                              , supportsIEEE754            = False-                              , supportsSets               = False-                              , supportsOptimization       = False-                              , supportsPseudoBooleans     = False-                              , supportsCustomQueries      = True-                              , supportsGlobalDecls        = True-                              , supportsDataTypes          = False-                              , supportsLambdas            = False-                              , supportsSpecialRels        = False-                              , supportsDirectAccessors    = False-                              , supportsFlattenedModels    = Nothing+                                supportsQuantifiers     = False+                              , supportsDefineFun       = True+                              , supportsDistinct        = True+                              , supportsBitVectors      = True+                              , supportsADTs            = False+                              , supportsUnboundedInts   = False+                              , supportsReals           = False+                              , supportsApproxReals     = False+                              , supportsDeltaSat        = Nothing+                              , supportsIEEE754         = False+                              , supportsSets            = False+                              , supportsOptimization    = False+                              , supportsPseudoBooleans  = False+                              , supportsCustomQueries   = True+                              , supportsGlobalDecls     = True+                              , supportsDataTypes       = False+                              , supportsLambdas         = False+                              , supportsSpecialRels     = False+                              , supportsDirectTesters   = False+                              , supportsFlattenedModels = Nothing                               }          }
Data/SBV/Provers/CVC4.hs view
@@ -9,7 +9,7 @@ -- The connection to the CVC4 SMT solver ----------------------------------------------------------------------------- -{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE OverloadedStrings #-}  {-# OPTIONS_GHC -Wall -Werror #-} @@ -17,6 +17,8 @@  import Data.Char (isSpace) +import qualified Data.Text as T+ import Data.SBV.Core.Data import Data.SBV.SMT.SMT @@ -31,34 +33,37 @@          , options      = const ["--lang", "smt", "--incremental", "--interactive", "--no-interactive-prompt", "--model-witness-value"]          , engine       = standardEngine "SBV_CVC4" "SBV_CVC4_OPTIONS"          , capabilities = SolverCapabilities {-                                supportsQuantifiers        = True-                              , supportsDefineFun          = True-                              , supportsDistinct           = True-                              , supportsBitVectors         = True-                              , supportsUninterpretedSorts = True-                              , supportsUnboundedInts      = True-                              , supportsReals              = True  -- Not quite the same capability as Z3; but works more or less..-                              , supportsApproxReals        = False-                              , supportsDeltaSat           = Nothing-                              , supportsIEEE754            = True-                              , supportsSets               = False-                              , supportsOptimization       = False-                              , supportsPseudoBooleans     = False-                              , supportsCustomQueries      = True-                              , supportsGlobalDecls        = True-                              , supportsDataTypes          = True-                              , supportsLambdas            = False-                              , supportsSpecialRels        = False-                              , supportsDirectAccessors    = True-                              , supportsFlattenedModels    = Nothing+                                supportsQuantifiers     = True+                              , supportsDefineFun       = True+                              , supportsDistinct        = True+                              , supportsBitVectors      = True+                              , supportsADTs            = True+                              , supportsUnboundedInts   = True+                              , supportsReals           = True  -- Not quite the same capability as Z3; but works more or less..+                              , supportsApproxReals     = False+                              , supportsDeltaSat        = Nothing+                              , supportsIEEE754         = True+                              , supportsSets            = False+                              , supportsOptimization    = False+                              , supportsPseudoBooleans  = False+                              , supportsCustomQueries   = True+                              , supportsGlobalDecls     = True+                              , supportsDataTypes       = True+                              , supportsLambdas         = False+                              , supportsSpecialRels     = False+                              , supportsDirectTesters   = True+                              , supportsFlattenedModels = Nothing                               }          }   where -- CVC4 wants all input on one line-        clean = map simpleSpace . noComment+        clean = T.map simpleSpace . noComment -        noComment ""       = ""-        noComment (';':cs) = noComment $ dropWhile (/= '\n') cs-        noComment (c:cs)   = c : noComment cs+        noComment t+          | T.null t  = T.empty+          | True      = case T.break (== ';') t of+                          (before, rest)+                            | T.null rest -> before+                            | True        -> before <> noComment (T.dropWhile (/= '\n') (T.tail rest))          simpleSpace c           | isSpace c = ' '
Data/SBV/Provers/CVC5.hs view
@@ -9,7 +9,7 @@ -- The connection to the CVC5 SMT solver ----------------------------------------------------------------------------- -{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE OverloadedStrings #-}  {-# OPTIONS_GHC -Wall -Werror #-} @@ -17,6 +17,8 @@  import Data.Char (isSpace) +import qualified Data.Text as T+ import Data.SBV.Core.Data import Data.SBV.SMT.SMT @@ -31,34 +33,37 @@          , options      = const ["--lang", "smt", "--incremental", "--nl-cov"]          , engine       = standardEngine "SBV_CVC5" "SBV_CVC5_OPTIONS"          , capabilities = SolverCapabilities {-                                supportsQuantifiers        = True-                              , supportsDefineFun          = True-                              , supportsDistinct           = True-                              , supportsBitVectors         = True-                              , supportsUninterpretedSorts = True-                              , supportsUnboundedInts      = True-                              , supportsReals              = True  -- Not quite the same capability as Z3; but works more or less..-                              , supportsApproxReals        = False-                              , supportsDeltaSat           = Nothing-                              , supportsIEEE754            = True-                              , supportsSets               = False-                              , supportsOptimization       = False-                              , supportsPseudoBooleans     = False-                              , supportsCustomQueries      = True-                              , supportsGlobalDecls        = True-                              , supportsDataTypes          = True-                              , supportsLambdas            = True-                              , supportsSpecialRels        = False-                              , supportsDirectAccessors    = True-                              , supportsFlattenedModels    = Nothing+                                supportsQuantifiers     = True+                              , supportsDefineFun       = True+                              , supportsDistinct        = True+                              , supportsBitVectors      = True+                              , supportsADTs            = True+                              , supportsUnboundedInts   = True+                              , supportsReals           = True  -- Not quite the same capability as Z3; but works more or less..+                              , supportsApproxReals     = False+                              , supportsDeltaSat        = Nothing+                              , supportsIEEE754         = True+                              , supportsSets            = False+                              , supportsOptimization    = False+                              , supportsPseudoBooleans  = False+                              , supportsCustomQueries   = True+                              , supportsGlobalDecls     = True+                              , supportsDataTypes       = True+                              , supportsLambdas         = True+                              , supportsSpecialRels     = False+                              , supportsDirectTesters   = True+                              , supportsFlattenedModels = Nothing                               }          }   where -- CVC5 wants all input on one line-        clean = map simpleSpace . noComment+        clean = T.map simpleSpace . noComment -        noComment ""       = ""-        noComment (';':cs) = noComment $ dropWhile (/= '\n') cs-        noComment (c:cs)   = c : noComment cs+        noComment t+          | T.null t  = T.empty+          | True      = case T.break (== ';') t of+                          (before, rest)+                            | T.null rest -> before+                            | True        -> before <> noComment (T.dropWhile (/= '\n') (T.tail rest))          simpleSpace c           | isSpace c = ' '
Data/SBV/Provers/DReal.hs view
@@ -9,8 +9,6 @@ -- The connection to the dReal SMT solver ----------------------------------------------------------------------------- -{-# LANGUAGE ScopedTypeVariables #-}- {-# OPTIONS_GHC -Wall -Werror #-}  module Data.SBV.Provers.DReal(dReal) where@@ -31,26 +29,26 @@          , options      = modConfig ["--in", "--format", "smt2"]          , engine       = standardEngine "SBV_DREAL" "SBV_DREAL_OPTIONS"          , capabilities = SolverCapabilities {-                                supportsQuantifiers        = False-                              , supportsDefineFun          = True-                              , supportsDistinct           = False-                              , supportsBitVectors         = False-                              , supportsUninterpretedSorts = False-                              , supportsUnboundedInts      = True-                              , supportsReals              = True-                              , supportsApproxReals        = False-                              , supportsDeltaSat           = Just "(get-option :precision)"-                              , supportsIEEE754            = False-                              , supportsSets               = False-                              , supportsOptimization       = False-                              , supportsPseudoBooleans     = False-                              , supportsCustomQueries      = False-                              , supportsGlobalDecls        = False-                              , supportsDataTypes          = False-                              , supportsLambdas            = False-                              , supportsSpecialRels        = False-                              , supportsDirectAccessors    = False-                              , supportsFlattenedModels    = Nothing+                                supportsQuantifiers     = False+                              , supportsDefineFun       = True+                              , supportsDistinct        = False+                              , supportsBitVectors      = False+                              , supportsADTs            = False+                              , supportsUnboundedInts   = True+                              , supportsReals           = True+                              , supportsApproxReals     = False+                              , supportsDeltaSat        = Just "(get-option :precision)"+                              , supportsIEEE754         = False+                              , supportsSets            = False+                              , supportsOptimization    = False+                              , supportsPseudoBooleans  = False+                              , supportsCustomQueries   = False+                              , supportsGlobalDecls     = False+                              , supportsDataTypes       = False+                              , supportsLambdas         = False+                              , supportsSpecialRels     = False+                              , supportsDirectTesters   = False+                              , supportsFlattenedModels = Nothing                               }          }   where -- If dsat precision is given, pass that as an argument
Data/SBV/Provers/MathSAT.hs view
@@ -9,8 +9,6 @@ -- The connection to the MathSAT SMT solver ----------------------------------------------------------------------------- -{-# LANGUAGE ScopedTypeVariables #-}- {-# OPTIONS_GHC -Wall -Werror #-}  module Data.SBV.Provers.MathSAT(mathSAT) where@@ -31,26 +29,26 @@          , options      = modConfig ["-input=smt2", "-theory.fp.minmax_zero_mode=4"]          , engine       = standardEngine "SBV_MATHSAT" "SBV_MATHSAT_OPTIONS"          , capabilities = SolverCapabilities {-                                supportsQuantifiers        = True-                              , supportsDefineFun          = True-                              , supportsDistinct           = True-                              , supportsBitVectors         = True-                              , supportsUninterpretedSorts = True-                              , supportsUnboundedInts      = True-                              , supportsReals              = True-                              , supportsApproxReals        = False-                              , supportsDeltaSat           = Nothing-                              , supportsIEEE754            = True-                              , supportsSets               = False-                              , supportsOptimization       = False-                              , supportsPseudoBooleans     = False-                              , supportsCustomQueries      = True-                              , supportsGlobalDecls        = True-                              , supportsDataTypes          = True-                              , supportsLambdas            = False-                              , supportsSpecialRels        = False-                              , supportsDirectAccessors    = True-                              , supportsFlattenedModels    = Nothing+                                supportsQuantifiers     = True+                              , supportsDefineFun       = True+                              , supportsDistinct        = True+                              , supportsBitVectors      = True+                              , supportsADTs            = True+                              , supportsUnboundedInts   = True+                              , supportsReals           = True+                              , supportsApproxReals     = False+                              , supportsDeltaSat        = Nothing+                              , supportsIEEE754         = True+                              , supportsSets            = False+                              , supportsOptimization    = False+                              , supportsPseudoBooleans  = False+                              , supportsCustomQueries   = True+                              , supportsGlobalDecls     = True+                              , supportsDataTypes       = True+                              , supportsLambdas         = False+                              , supportsSpecialRels     = False+                              , supportsDirectTesters   = True+                              , supportsFlattenedModels = Nothing                               }          } 
Data/SBV/Provers/OpenSMT.hs view
@@ -27,26 +27,26 @@          , options      = modConfig []          , engine       = standardEngine "SBV_OpenSMT" "SBV_OpenSMT_OPTIONS"          , capabilities = SolverCapabilities {-                                supportsQuantifiers        = False-                              , supportsDefineFun          = True-                              , supportsDistinct           = True-                              , supportsBitVectors         = False-                              , supportsUninterpretedSorts = True-                              , supportsUnboundedInts      = True-                              , supportsReals              = True-                              , supportsApproxReals        = False-                              , supportsDeltaSat           = Nothing-                              , supportsIEEE754            = False-                              , supportsSets               = False-                              , supportsOptimization       = False-                              , supportsPseudoBooleans     = False-                              , supportsCustomQueries      = True-                              , supportsGlobalDecls        = True-                              , supportsDataTypes          = False-                              , supportsLambdas            = False-                              , supportsSpecialRels        = False-                              , supportsDirectAccessors    = False-                              , supportsFlattenedModels    = Nothing+                                supportsQuantifiers     = False+                              , supportsDefineFun       = True+                              , supportsDistinct        = True+                              , supportsBitVectors      = False+                              , supportsADTs            = True+                              , supportsUnboundedInts   = True+                              , supportsReals           = True+                              , supportsApproxReals     = False+                              , supportsDeltaSat        = Nothing+                              , supportsIEEE754         = False+                              , supportsSets            = False+                              , supportsOptimization    = False+                              , supportsPseudoBooleans  = False+                              , supportsCustomQueries   = True+                              , supportsGlobalDecls     = True+                              , supportsDataTypes       = False+                              , supportsLambdas         = False+                              , supportsSpecialRels     = False+                              , supportsDirectTesters   = False+                              , supportsFlattenedModels = Nothing                               }          } 
Data/SBV/Provers/Prover.hs view
@@ -9,15 +9,15 @@ -- Provable abstraction and the connection to SMT solvers ----------------------------------------------------------------------------- -{-# LANGUAGE CPP                   #-} {-# LANGUAGE ConstraintKinds       #-} {-# LANGUAGE FlexibleContexts      #-} {-# LANGUAGE FlexibleInstances     #-}+{-# LANGUAGE GADTs                 #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE NamedFieldPuns        #-}+{-# LANGUAGE OverloadedStrings     #-} {-# LANGUAGE ScopedTypeVariables   #-} {-# LANGUAGE TupleSections         #-}-{-# LANGUAGE UndecidableInstances  #-}  {-# OPTIONS_GHC -Wall -Werror #-} @@ -29,14 +29,14 @@        , SExecutable(..), isSafe        , runSMT, runSMTWith        , SatModel(..), Modelable(..), displayModels, extractModels-       , getModelDictionaries, getModelValues, getModelUninterpretedValues+       , getModelDictionaries, getModelValues        , abc, boolector, bitwuzla, cvc4, cvc5, dReal, mathSAT, yices, z3, openSMT, defaultSMTCfg, defaultDeltaSMTCfg        , proveWithAny, proveWithAll, proveConcurrentWithAny, proveConcurrentWithAll        , satWithAny,   satWithAll,   satConcurrentWithAny,   satConcurrentWithAll        ) where  -import Control.Monad          (when, unless)+import Control.Monad          (unless) import Control.Monad.IO.Class (MonadIO, liftIO) import Control.DeepSeq        (rnf, NFData(..)) @@ -52,6 +52,8 @@  import Data.Maybe (mapMaybe, listToMaybe) +import qualified Data.Set as Set (empty)+ import qualified Data.Foldable   as S (toList) import qualified Data.Text       as T @@ -60,6 +62,7 @@ import Data.SBV.SMT.SMT import Data.SBV.SMT.Utils (debug, alignPlain) import Data.SBV.Utils.ExtractIO+import Data.SBV.Utils.Lib    (showText) import Data.SBV.Utils.TDiff  import Data.SBV.Lambda () -- instances only@@ -107,11 +110,11 @@                                             , ignoreExitCode              = False                                             , redirectVerbose             = Nothing                                             , firstifyUniqueLen           = 10-                                            , tpOptions                   = TPOptions { ribbonLength = 40-                                                                                      , quiet        = False-                                                                                      , printAsms    = False-                                                                                      , printStats   = False-                                                                                      , cacheProofs  = False+                                            , tpOptions                   = TPOptions { ribbonLength          = 40+                                                                                      , quiet                 = False+                                                                                      , printAsms             = False+                                                                                      , printStats            = False+                                                                                      , measuresBeingVerified = Set.empty                                                                                       }                                             } @@ -208,7 +211,7 @@   satWith cfg a = do r <- runWithQuery satArgReduce True (checkNoOptimizations >> Control.getSMTResult) cfg a                      SatResult <$> if validationRequested cfg                                    then validate satArgReduce True cfg a r-                                   else return r+                                   else pure r    -- | Generalization of 'Data.SBV.sat'   dsat :: a -> m SatResult@@ -219,7 +222,7 @@   dsatWith cfg a = do r <- runWithQuery satArgReduce True (checkNoOptimizations >> Control.getSMTResult) cfg a                       SatResult <$> if validationRequested cfg                                     then validate satArgReduce True cfg a r-                                    else return r+                                    else pure r    -- | Generalization of 'Data.SBV.allSat'   allSat :: a -> m AllSatResult@@ -230,8 +233,8 @@   allSatWith cfg a = do asr <- runWithQuery satArgReduce True (checkNoOptimizations >> Control.getAllSatResult) cfg a                         if validationRequested cfg                            then do rs' <- mapM (validate satArgReduce True cfg a) (allSatResults asr)-                                   return asr{allSatResults = rs'}-                           else return asr+                                   pure asr{allSatResults = rs'}+                           else pure asr    -- | Generalization of 'Data.SBV.isSatisfiable'   isSatisfiable :: a -> m Bool@@ -241,8 +244,8 @@   isSatisfiableWith :: SMTConfig -> a -> m Bool   isSatisfiableWith cfg p = do r <- satWith cfg p                                case r of-                                 SatResult Satisfiable{}   -> return True-                                 SatResult Unsatisfiable{} -> return False+                                 SatResult Satisfiable{}   -> pure True+                                 SatResult Unsatisfiable{} -> pure False                                  _                         -> error $ "SBV.isSatisfiable: Received: " ++ show r    -- | Generalization of 'Data.SBV.optimize'@@ -254,67 +257,30 @@   optimizeWith config style optGoal = do                    res <- runWithQuery satArgReduce True opt config optGoal                    if not (optimizeValidateConstraints config)-                      then return res+                      then pure res                       else let v :: SMTResult -> m SMTResult                                v = validate satArgReduce True config optGoal                            in case res of                                 LexicographicResult m -> LexicographicResult <$> v m-                                IndependentResult xs  -> let w []            sofar = return (reverse sofar)+                                IndependentResult xs  -> let w []            sofar = pure (reverse sofar)                                                              w ((n, m):rest) sofar = v m >>= \m' -> w rest ((n, m') : sofar)                                                          in IndependentResult <$> w xs []                                 ParetoResult (b, rs)  -> ParetoResult . (b, ) <$> mapM v rs -    where opt = do objectives <- Control.getObjectives--                   when (null objectives) $-                          error $ unlines [ ""-                                          , "*** Data.SBV: Unsupported call to optimize when no objectives are present."-                                          , "*** Use \"sat\" for plain satisfaction"-                                          ]--                   unless (supportsOptimization (capabilities (solver config))) $-                          error $ unlines [ ""-                                          , "*** Data.SBV: The backend solver " ++ show (name (solver config)) ++ "does not support optimization goals."-                                          , "*** Please use a solver that has support, such as z3"-                                          ]--                   when (validateModel config && not (optimizeValidateConstraints config)) $-                          error $ unlines [ ""-                                          , "*** Data.SBV: Model validation is not supported in optimization calls."-                                          , "***"-                                          , "*** Instead, use `cfg{optimizeValidateConstraints = True}`"-                                          , "***"-                                          , "*** which checks that the results satisfy the constraints but does"-                                          , "*** NOT ensure that they are optimal."-                                          ]---                   let optimizerDirectives = concatMap minmax objectives ++ priority style-                         where mkEq (x, y) = "(assert (= " ++ show x ++ " " ++ show y ++ "))"--                               minmax (Minimize          _  xy@(_, v))     = [mkEq xy, "(minimize "    ++ show v                 ++ ")"]-                               minmax (Maximize          _  xy@(_, v))     = [mkEq xy, "(maximize "    ++ show v                 ++ ")"]-                               minmax (AssertWithPenalty nm xy@(_, v) mbp) = [mkEq xy, "(assert-soft " ++ show v ++ penalize mbp ++ ")"]-                                 where penalize DefaultPenalty    = ""-                                       penalize (Penalty w mbGrp)-                                          | w <= 0         = error $ unlines [ "SBV.AssertWithPenalty: Goal " ++ show nm ++ " is assigned a non-positive penalty: " ++ shw-                                                                             , "All soft goals must have > 0 penalties associated."-                                                                             ]-                                          | True           = " :weight " ++ shw ++ maybe "" group mbGrp-                                          where shw = show (fromRational w :: Double)--                                       group g = " :id " ++ g--                               priority Lexicographic = [] -- default, no option needed-                               priority Independent   = ["(set-option :opt.priority box)"]-                               priority (Pareto _)    = ["(set-option :opt.priority pareto)"]+    where opt = do mbDirs <- Control.startOptimizer config style -                   mapM_ (Control.send True) optimizerDirectives+                   case mbDirs of+                     Nothing   -> error $ unlines [ ""+                                                  , "*** Data.SBV: Unsupported call to optimize when no objectives are present."+                                                  , "*** Use \"sat\" for plain satisfaction"+                                                  ]+                     Just (objectives, optimizerDirectives) -> do+                       mapM_ (Control.send True . T.pack) optimizerDirectives -                   case style of-                     Lexicographic -> LexicographicResult <$> Control.getLexicographicOptResults-                     Independent   -> IndependentResult   <$> Control.getIndependentOptResults (map objectiveName objectives)-                     Pareto mbN    -> ParetoResult        <$> Control.getParetoOptResults mbN+                       case style of+                         Lexicographic -> LexicographicResult <$> Control.getLexicographicOptResults+                         Independent   -> IndependentResult   <$> Control.getIndependentOptResults (map objectiveName objectives)+                         Pareto mbN    -> ParetoResult        <$> Control.getParetoOptResults mbN  -- | Find a satisfying assignment to a property with multiple solvers, running them in separate threads. The -- results will be returned in the order produced.@@ -338,7 +304,7 @@ -- performance benefit. satConcurrentWithAny :: Satisfiable a => SMTConfig -> [Query b] -> a -> IO (Solver, NominalDiffTime, SatResult) satConcurrentWithAny solver qs a = do (slvr,time,result) <- sbvConcurrentWithAny solver go qs a-                                      return (slvr, time, SatResult result)+                                      pure (slvr, time, SatResult result)   where go cfg a' q = runWithQuery satArgReduce True (do _ <- q; checkNoOptimizations >> Control.getSMTResult) cfg a'  -- | Find a satisfying assignment to a property using a single solver, but run@@ -346,7 +312,7 @@ -- finish. See 'satConcurrentWithAny' for more details. satConcurrentWithAll :: Satisfiable a => SMTConfig -> [Query b] -> a -> IO [(Solver, NominalDiffTime, SatResult)] satConcurrentWithAll solver qs a = do results <- sbvConcurrentWithAll solver go qs a-                                      return $ (\(a',b,c) -> (a',b,SatResult c)) <$> results+                                      pure $ (\(a',b,c) -> (a',b,SatResult c)) <$> results   where go cfg a' q = runWithQuery satArgReduce True (do _ <- q; checkNoOptimizations >> Control.getSMTResult) cfg a'  -- | A type @a@ is provable if we can turn it into a predicate, i.e., it has to return a boolean.@@ -364,7 +330,7 @@   proveWith cfg a = do r <- runWithQuery proofArgReduce False (checkNoOptimizations >> Control.getSMTResult) cfg a                        ThmResult <$> if validationRequested cfg                                      then validate proofArgReduce False cfg a r-                                     else return r+                                     else pure r    -- | Generalization of 'Data.SBV.dprove'   dprove :: a -> m ThmResult@@ -375,7 +341,7 @@   dproveWith cfg a = do r <- runWithQuery proofArgReduce False (checkNoOptimizations >> Control.getSMTResult) cfg a                         ThmResult <$> if validationRequested cfg                                       then validate proofArgReduce False cfg a r-                                      else return r+                                      else pure r    -- | Generalization of 'Data.SBV.isVacuousProof'   isVacuousProof :: a -> m Bool@@ -388,9 +354,9 @@      where        check = do cs <- Control.checkSat                   case cs of-                    Control.Unsat  -> return True-                    Control.Sat    -> return False-                    Control.DSat{} -> return False+                    Control.Unsat  -> pure True+                    Control.Sat    -> pure False+                    Control.DSat{} -> pure False                     Control.Unk    -> error "SBV: isVacuous: Solver returned unknown!"    -- | Generalization of 'Data.SBV.isTheorem'@@ -402,10 +368,10 @@   isTheoremWith cfg p = do r <- proveWith cfg p                            let bad = error $ "SBV.isTheorem: Received:\n" ++ show r                            case r of-                             ThmResult Unsatisfiable{} -> return True-                             ThmResult Satisfiable{}   -> return False-                             ThmResult DeltaSat{}      -> return False-                             ThmResult SatExtField{}   -> return False+                             ThmResult Unsatisfiable{} -> pure True+                             ThmResult Satisfiable{}   -> pure False+                             ThmResult DeltaSat{}      -> pure False+                             ThmResult SatExtField{}   -> pure False                              ThmResult Unknown{}       -> bad                              ThmResult ProofError{}    -> bad @@ -426,21 +392,21 @@ -- concurrently and return the first that finishes, killing the others proveConcurrentWithAny :: Provable a => SMTConfig -> [Query b] -> a -> IO (Solver, NominalDiffTime, ThmResult) proveConcurrentWithAny solver qs a = do (slvr,time,result) <- sbvConcurrentWithAny solver go qs a-                                        return (slvr, time, ThmResult result)+                                        pure (slvr, time, ThmResult result)   where go cfg a' q = runWithQuery proofArgReduce False (do _ <- q;  checkNoOptimizations >> Control.getSMTResult) cfg a'  -- | Prove a property by running many queries each isolated to their own thread -- concurrently and wait for each to finish returning all results proveConcurrentWithAll :: Provable a => SMTConfig -> [Query b] -> a -> IO [(Solver, NominalDiffTime, ThmResult)] proveConcurrentWithAll solver qs a = do results <- sbvConcurrentWithAll solver go qs a-                                        return $ (\(a',b,c) -> (a',b,ThmResult c)) <$> results+                                        pure $ (\(a',b,c) -> (a',b,ThmResult c)) <$> results   where go cfg a' q = runWithQuery proofArgReduce False (do _ <- q; checkNoOptimizations >> Control.getSMTResult) cfg a'  -- | Validate a model obtained from the solver validate :: MonadIO m => (a -> SymbolicT m SBool) -> Bool -> SMTConfig -> a -> SMTResult -> m SMTResult validate reducer isSAT cfg p res =      case res of-       Unsatisfiable{} -> return res+       Unsatisfiable{} -> pure res        Satisfiable _ m -> case modelBindings m of                             Nothing  -> error "Data.SBV.validate: Impossible happened; no bindings generated during model validation."                             Just env -> check env@@ -455,10 +421,10 @@                                , "To turn validation off, use `cfg{optimizeValidateConstraints = False}`"                                ] -       Unknown{}       -> return res-       ProofError{}    -> return res+       Unknown{}       -> pure res+       ProofError{}    -> pure res -  where cant msg = return $ ProofError cfg (msg ++ [ ""+  where cant msg = pure $ ProofError cfg (msg ++ [ ""                                                    , "Unable to validate the produced model."                                                    ]) (Just res) @@ -466,8 +432,8 @@                               where modelBinds = [(T.unpack n, RegularCV v) | (NamedSymVar _ n, v) <- env]                             notify s-                             | not (verbose cfg) = return ()-                             | True              = debug cfg ["[VALIDATE] " `alignPlain` s]+                             | not (verbose cfg) = pure ()+                             | True              = debug cfg ["[VALIDATE] " `alignPlain` T.pack s]                         notify $ "Validating the model. " ++ if null env then "There are no assignments." else "Assignment:"                        mapM_ notify ["    " ++ l | l <- lines envShown]@@ -481,7 +447,7 @@                                    ++ [ "    " ++ l | l <- lines envShown]                                    ++ [ "" ] -                           wrap tag extras = return $ ProofError cfg (tag : explain ++ extras) (Just res)+                           wrap tag extras = pure $ ProofError cfg (tag : explain ++ extras) (Just res)                             giveUp   s     = wrap ("Data.SBV: Cannot validate the model: " ++ s)                                                  [ "SBV's model validator is incomplete, and cannot handle this particular case."@@ -513,11 +479,13 @@                                       why s = case s `lookup` S.toList (pgmAssignments (resAsgns result)) of                                                 Nothing            -> Nothing                                                 Just (SBVApp o as) -> case o of-                                                                        Uninterpreted v  -> Just $ "The value depends on the uninterpreted constant " ++ show v ++ "."                                                                         QuantifiedBool{} -> Just "The value depends on a quantified variable."                                                                         IEEEFP FP_FMA    -> Just "Floating point FMA operation is not supported concretely."                                                                         IEEEFP _         -> Just "Not all floating point operations are supported concretely."                                                                         OverflowOp _     -> Just "Overflow-checking is not done concretely."+                                                                        Uninterpreted v+                                                                          | any isADT as -> Just "Models containing ADTs are currently only partially supported."+                                                                          | True         -> Just $ "The value depends on the uninterpreted constant " ++ T.unpack v ++ "."                                                                         _                -> listToMaybe $ mapMaybe why as                             cstrs = S.toList $ resConstraints result@@ -541,7 +509,7 @@                            -- SAT: All outputs must be true                            satLoop []                              = do notify "All outputs are satisfied. Validation complete."-                                  return res+                                  pure res                            satLoop (sv:svs)                              | kindOf sv /= KBool                              = giveUp $ "Output tied to " ++ show sv ++ " is non-boolean."@@ -555,7 +523,7 @@                            -- Proof: At least one output must be false                            proveLoop [] somethingFailed                              | somethingFailed = do notify "Counterexample is validated."-                                                    return res+                                                    pure res                              | True            = do notify "Counterexample violates none of the outputs."                                                     badModel "Counter-example violates no constraints."                            proveLoop (sv:svs) somethingFailed@@ -586,7 +554,7 @@ -- | Given a satisfiability problem, extract the function definitions in it defs2smt :: SatisfiableM m a => a -> m String defs2smt = generateSMTBenchMarkGen True satArgReduce defs-  where defs (SMTLibPgm _ _ ds) = intercalate "\n" ds+  where defs (SMTLibPgm _ _ ds) = T.unpack ds  -- | Create an SMT-Lib2 benchmark, for a SAT query. generateSMTBenchmarkSat :: SatisfiableM m a => a -> m String@@ -608,7 +576,7 @@        let SMTProblem{smtLibPgm} = Control.runProofOn (SMTMode QueryInternal IRun isSat cfg) QueryInternal comments res -      return $ render (smtLibPgm cfg)+      pure $ render (smtLibPgm cfg)  checkNoOptimizations :: MonadIO m => QueryT m () checkNoOptimizations = do objectives <- Control.getObjectives@@ -625,8 +593,8 @@ instance ExtractIO m => SatisfiableM m (SymbolicT m SBool) where satArgReduce   = id instance ExtractIO m => ProvableM    m (SymbolicT m SBool) where proofArgReduce = id -instance ExtractIO m => SatisfiableM m SBool where satArgReduce   = return-instance ExtractIO m => ProvableM    m SBool where proofArgReduce = return+instance ExtractIO m => SatisfiableM m SBool where satArgReduce   = pure+instance ExtractIO m => ProvableM    m SBool where proofArgReduce = pure  instance {-# OVERLAPPABLE #-} (ExtractIO m, SatisfiableM m a) => SatisfiableM m (SymbolicT m a) where satArgReduce   a = a >>= satArgReduce instance {-# OVERLAPPABLE #-} (ExtractIO m, ProvableM    m a) => ProvableM    m (SymbolicT m a) where proofArgReduce a = a >>= proofArgReduce@@ -665,7 +633,7 @@ -- The following is a possible definition, but it lets us write properties that -- are not useful.. Such as: prove $ \x y -> (x::SInt8) == y -- Running that will throw an exception since Haskell's equality is not be supported by symbolic things. (Needs .==).--- So, we avoid these insteances.+-- So, we avoid these instances. instance ExtractIO m => ProvableM m Bool where   proofArgReduce x  = proofArgReduce (if x then sTrue else sFalse :: SBool) @@ -684,6 +652,18 @@ instance (SymVal a, ProvableM m p) => ProvableM m (SBV a -> p) where   proofArgReduce fn = mkArg >>= \a -> proofArgReduce $ fn a +-- | Create an 'SBVs' sequence of arguments+mkArgs :: MonadSymbolic m => SymValInsts as -> m (SBVs as)+mkArgs SymValsNil = pure SBVsNil+mkArgs (SymValsCons insts) = SBVsCons <$> mkArgs insts <*> mkArg++-- Multi-arity Functions+instance (SymVals as, SatisfiableM m p) => SatisfiableM m (SBVs as -> p) where+  satArgReduce fn = mkArgs symValInsts >>= \args -> satArgReduce $ fn args++instance (SymVals as, ProvableM m p) => ProvableM m (SBVs as -> p) where+  proofArgReduce fn = mkArgs symValInsts >>= \args -> proofArgReduce $ fn args+ -- 2 Tuple instance (SymVal a, SymVal b, SatisfiableM m p) => SatisfiableM m ((SBV a, SBV b) -> p) where   satArgReduce fn = mkArg >>= \a -> satArgReduce $ \b -> fn (a, b)@@ -790,14 +770,14 @@ runInThread beginTime action config = async $ do                 result  <- action config                 endTime <- rnf result `seq` getCurrentTime-                return (name (solver config), endTime `diffUTCTime` beginTime, result)+                pure (name (solver config), endTime `diffUTCTime` beginTime, result)  -- | Perform action for all given configs, return the first one that wins. Note that we do -- not wait for the other asyncs to terminate; hopefully they'll do so quickly. sbvWithAny :: NFData b => [SMTConfig] -> (SMTConfig -> a -> IO b) -> a -> IO (Solver, NominalDiffTime, b) sbvWithAny []      _    _ = error "SBV.withAny: No solvers given!" sbvWithAny solvers what a = do beginTime <- getCurrentTime-                               snd `fmap` (mapM (runInThread beginTime (`what` a)) solvers >>= waitAnyFastCancel)+                               snd <$> (mapM (runInThread beginTime (`what` a)) solvers >>= waitAnyFastCancel)    where -- Async's `waitAnyCancel` nicely blocks; so we use this variant to ignore the          -- wait part for killed threads.          waitAnyFastCancel asyncs = waitAny asyncs `finally` mapM_ cancelFast asyncs@@ -805,7 +785,7 @@   sbvConcurrentWithAny :: NFData c => SMTConfig -> (SMTConfig -> a -> QueryT m b -> IO c) -> [QueryT m b] -> a -> IO (Solver, NominalDiffTime, c)-sbvConcurrentWithAny solver what queries a = snd `fmap` (mapM runQueryInThread queries >>= waitAnyFastCancel)+sbvConcurrentWithAny solver what queries a = snd <$> (mapM runQueryInThread queries >>= waitAnyFastCancel)   where  -- Async's `waitAnyCancel` nicely blocks; so we use this variant to ignore the          -- wait part for killed threads.          waitAnyFastCancel asyncs = waitAny asyncs `finally` mapM_ cancelFast asyncs@@ -819,7 +799,7 @@   where  runQueryInThread q = do beginTime <- getCurrentTime                                  runInThread beginTime (\cfg -> what cfg a q) solver -         go []  = return []+         go []  = pure []          go as  = do (d, r) <- waitAny as                      -- The following filter works because the Eq instance on Async                      -- checks the thread-id; so we know that we're removing the@@ -827,13 +807,13 @@                      -- running the same-solver (with different options), since                      -- they will get different thread-ids.                      rs <- unsafeInterleaveIO $ go (filter (/= d) as)-                     return (r : rs)+                     pure (r : rs)  -- | Perform action for all given configs, return all the results. sbvWithAll :: NFData b => [SMTConfig] -> (SMTConfig -> a -> IO b) -> a -> IO [(Solver, NominalDiffTime, b)] sbvWithAll solvers what a = do beginTime <- getCurrentTime                                mapM (runInThread beginTime (`what` a)) solvers >>= (unsafeInterleaveIO . go)-   where go []  = return []+   where go []  = pure []          go as  = do (d, r) <- waitAny as                      -- The following filter works because the Eq instance on Async                      -- checks the thread-id; so we know that we're removing the@@ -841,7 +821,7 @@                      -- running the same-solver (with different options), since                      -- they will get different thread-ids.                      rs <- unsafeInterleaveIO $ go (filter (/= d) as)-                     return (r : rs)+                     pure (r : rs)  -- | Symbolically executable program fragments. This class is mainly used for 'safe' calls, and is sufficiently populated internally to cover most use -- cases. Users can extend it as they wish to allow 'safe' checks for SBV programs that return/take types that are user-defined.@@ -869,18 +849,18 @@            verify mkRelative (msg, cs, cond) = do                    let locInfo ps = let loc (f, sl) = concat [mkRelative (srcLocFile sl), ":", show (srcLocStartLine sl), ":", show (srcLocStartCol sl), ":", f]                                     in intercalate ",\n " (map loc ps)-                       location   = (locInfo . getCallStack) `fmap` cs+                       location   = locInfo . getCallStack <$> cs                     result <- do Control.push 1-                                Control.send True $ "(assert " ++ show cond ++ ")"+                                Control.send True $ "(assert " <> showText cond <> ")"                                 r <- Control.getSMTResult                                 Control.pop 1-                                return r+                                pure r -                   return $ SafeResult (location, msg, result)+                   pure $ SafeResult (location, msg, result)  instance (ExtractIO m, NFData a) => SExecutable m (SymbolicT m a) where-   sName a = a >>= \r -> rnf r `seq` return ()+   sName a = a >>= \r -> rnf r `seq` pure ()  instance ExtractIO m => SExecutable m (SBV a) where    sName v = sName (output v :: SymbolicT m (SBV a))
Data/SBV/Provers/Yices.hs view
@@ -9,8 +9,6 @@ -- The connection to the Yices SMT solver ----------------------------------------------------------------------------- -{-# LANGUAGE ScopedTypeVariables #-}- {-# OPTIONS_GHC -Wall -Werror #-}  module Data.SBV.Provers.Yices(yices) where@@ -29,25 +27,25 @@          , options      = const ["--incremental"]          , engine       = standardEngine "SBV_YICES" "SBV_YICES_OPTIONS"          , capabilities = SolverCapabilities {-                                supportsQuantifiers        = False-                              , supportsDefineFun          = True-                              , supportsDistinct           = True-                              , supportsBitVectors         = True-                              , supportsUninterpretedSorts = True-                              , supportsUnboundedInts      = True-                              , supportsReals              = True-                              , supportsApproxReals        = False-                              , supportsDeltaSat           = Nothing-                              , supportsIEEE754            = False-                              , supportsSets               = False-                              , supportsOptimization       = False-                              , supportsPseudoBooleans     = False-                              , supportsCustomQueries      = True-                              , supportsGlobalDecls        = True-                              , supportsDataTypes          = False-                              , supportsLambdas            = False-                              , supportsSpecialRels        = False-                              , supportsDirectAccessors    = False-                              , supportsFlattenedModels    = Nothing+                                supportsQuantifiers     = False+                              , supportsDefineFun       = True+                              , supportsDistinct        = True+                              , supportsBitVectors      = True+                              , supportsADTs            = True+                              , supportsUnboundedInts   = True+                              , supportsReals           = True+                              , supportsApproxReals     = False+                              , supportsDeltaSat        = Nothing+                              , supportsIEEE754         = False+                              , supportsSets            = False+                              , supportsOptimization    = False+                              , supportsPseudoBooleans  = False+                              , supportsCustomQueries   = True+                              , supportsGlobalDecls     = True+                              , supportsDataTypes       = False+                              , supportsLambdas         = False+                              , supportsSpecialRels     = False+                              , supportsDirectTesters   = False+                              , supportsFlattenedModels = Nothing                               }          }
Data/SBV/Provers/Z3.hs view
@@ -9,8 +9,6 @@ -- The connection to the Z3 SMT solver ----------------------------------------------------------------------------- -{-# LANGUAGE ScopedTypeVariables #-}- {-# OPTIONS_GHC -Wall -Werror #-}  module Data.SBV.Provers.Z3(z3) where@@ -29,29 +27,29 @@          , options      = modConfig ["-nw", "-in", "-smt2"]          , engine       = standardEngine "SBV_Z3" "SBV_Z3_OPTIONS"          , capabilities = SolverCapabilities {-                                supportsQuantifiers        = True-                              , supportsDefineFun          = True-                              , supportsDistinct           = True-                              , supportsBitVectors         = True-                              , supportsUninterpretedSorts = True-                              , supportsUnboundedInts      = True-                              , supportsReals              = True-                              , supportsApproxReals        = True-                              , supportsDeltaSat           = Nothing-                              , supportsIEEE754            = True-                              , supportsSets               = True-                              , supportsOptimization       = True-                              , supportsPseudoBooleans     = True-                              , supportsCustomQueries      = True-                              , supportsGlobalDecls        = True-                              , supportsDataTypes          = True-                              , supportsLambdas            = True-                              , supportsSpecialRels        = True-                              , supportsDirectAccessors    = False -- Needs ascriptions. (See the CVC4 version of this)-                              , supportsFlattenedModels    = Just [ "(set-option :pp.max_depth      4294967295)"-                                                                  , "(set-option :pp.min_alias_size 4294967295)"-                                                                  , "(set-option :model.inline_def  true      )"-                                                                  ]+                                supportsQuantifiers     = True+                              , supportsDefineFun       = True+                              , supportsDistinct        = True+                              , supportsBitVectors      = True+                              , supportsADTs            = True+                              , supportsUnboundedInts   = True+                              , supportsReals           = True+                              , supportsApproxReals     = True+                              , supportsDeltaSat        = Nothing+                              , supportsIEEE754         = True+                              , supportsSets            = True+                              , supportsOptimization    = True+                              , supportsPseudoBooleans  = True+                              , supportsCustomQueries   = True+                              , supportsGlobalDecls     = True+                              , supportsDataTypes       = True+                              , supportsLambdas         = True+                              , supportsSpecialRels     = True+                              , supportsDirectTesters   = False -- Needs ascriptions. (See the CVC4 version of this)+                              , supportsFlattenedModels = Just [ "(set-option :pp.max_depth      4294967295)"+                                                               , "(set-option :pp.min_alias_size 4294967295)"+                                                               , "(set-option :model.inline_def  true      )"+                                                               ]                               }          } 
Data/SBV/Rational.hs view
@@ -10,6 +10,7 @@ -----------------------------------------------------------------------------  {-# LANGUAGE FlexibleInstances #-}+{-# LANGUAGE OverloadedStrings #-}  {-# OPTIONS_GHC -Wall -Werror -Wno-orphans #-} 
Data/SBV/RegExp.hs view
@@ -17,7 +17,6 @@ {-# LANGUAGE CPP                 #-} {-# LANGUAGE FlexibleInstances   #-} {-# LANGUAGE OverloadedStrings   #-}-{-# LANGUAGE Rank2Types          #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TypeApplications    #-} @@ -89,7 +88,7 @@ -- >>> let phone = pre * "-" * post -- >>> sat $ \(s :: SString) -> s `match` phone -- Satisfiable. Model:---   s0 = "800-8000" :: String+--   s0 = "422-2222" :: String class RegExpMatchable a where    -- | @`match` s r@ checks whether @s@ is in the language generated by @r@.    match :: a -> RegExp -> SBool@@ -167,7 +166,7 @@ -- | Recognize a newline. Also includes carriage-return and form-feed. -- -- >>> newline--- (re.union (str.to.re "\n") (str.to.re "\r") (str.to.re "\f"))+-- (re.union (str.to_re "\n") (str.to_re "\r") (str.to_re "\f")) -- >>> prove $ \c -> c `match` newline .=> isSpaceL1 c -- Q.E.D. newline :: RegExp@@ -176,7 +175,7 @@ -- | Recognize a tab. -- -- >>> tab--- (str.to.re "\t")+-- (str.to_re "\t") -- >>> prove $ \c -> c `match` tab .=> c .== literal '\t' -- Q.E.D. tab :: RegExp@@ -282,7 +281,7 @@ -- | Recognize an octal number. Must have a prefix of the form @0o@\/@0O@. -- -- >>> octal--- (re.++ (re.union (str.to.re "0o") (str.to.re "0O")) (re.+ (re.range "0" "7")))+-- (re.++ (re.union (str.to_re "0o") (str.to_re "0O")) (re.+ (re.range "0" "7"))) -- >>> prove $ \(s :: SString) -> s `match` octal .=> sAny (.== take 2 s) ["0o", "0O"] -- Q.E.D. octal :: RegExp@@ -291,7 +290,7 @@ -- | Recognize a hexadecimal number. Must have a prefix of the form @0x@\/@0X@. -- -- >>> hexadecimal--- (re.++ (re.union (str.to.re "0x") (str.to.re "0X")) (re.+ (re.union (re.range "0" "9") (re.range "a" "f") (re.range "A" "F"))))+-- (re.++ (re.union (str.to_re "0x") (str.to_re "0X")) (re.+ (re.union (re.range "0" "9") (re.range "a" "f") (re.range "A" "F")))) -- >>> prove $ \(s :: SString) -> s `match` hexadecimal .=> sAny (.== take 2 s) ["0x", "0X"] -- Q.E.D. hexadecimal :: RegExp
+ Data/SBV/SCase.hs view
@@ -0,0 +1,1409 @@+-----------------------------------------------------------------------------+-- |+-- Module    : Data.SBV.SCase+-- Copyright : (c) Levent Erkok+-- License   : BSD3+-- Maintainer: erkokl@gmail.com+-- Stability : experimental+--+-- Add support for symbolic case expressions. Constructed with the help of ChatGPT,+-- which was remarkably good at giving me the basic structure.+--+-- Provides a quasiquoter  `[sCase| expr of ... |]` for symbolic cases+-- where @Expr@ is the underlying type. Plain @case@ expressions inside+-- @sCase@ are automatically treated as symbolic case-splits, enabling+-- nested symbolic pattern matching.+--+-- Also provides `[pCase| expr of ... |]` for proof case-splits. Plain+-- @case@ expressions inside @pCase@ are automatically treated as nested+-- proof case-splits (generating @cases [...]@ calls).+-----------------------------------------------------------------------------++{-# LANGUAGE LambdaCase            #-}+{-# LANGUAGE TemplateHaskellQuotes #-}++{-# OPTIONS_GHC -Wall -Werror #-}++module Data.SBV.SCase (sCase, pCase) where++import Language.Haskell.TH+import Language.Haskell.TH.Quote+import qualified Language.Haskell.Meta.Parse            as Meta+import qualified Language.Haskell.Meta.Syntax.Translate as Meta++import qualified Language.Haskell.Exts as E++import Control.Monad (unless, when, zipWithM)++import Data.SBV.Core.TH    (getConstructors, sbvName)+import Data.SBV.Core.Model (ite, symWithKind)+import Data.SBV.Core.Data  (sTrue, sNot, (.&&), (.||), (.==), (.===), (.:), literal)++import Data.Char  (isDigit)+import Data.List  (intercalate, stripPrefix)+import Data.Maybe (isJust, fromMaybe, catMaybes)++import Prelude hiding (fail)+import qualified Prelude as P(fail)++import Data.Generics (everywhereM, mkM)+import qualified Data.Map.Strict as Map+import qualified Data.Set as Set+import Data.Set (Set)++import System.FilePath++-- | Conjoin a list of TH boolean expressions with (.&&), filtering out trivially true guards.+sAndAll :: [Exp] -> Exp+sAndAll = go . filter (not . isTriviallyTrue)+  where go []  = VarE 'sTrue+        go [g] = g+        go gs  = foldr1 (\a b -> foldl1 AppE [VarE '(.&&), a, b]) gs++        isTriviallyTrue (VarE nm) = nameBase nm == nameBase 'sTrue+        isTriviallyTrue (ConE nm) = nameBase nm == "True"+        isTriviallyTrue _         = False++-- | TH parse trees don't have location. Let's have a simple mechanism to keep track of them for our use case+data Offset = Unknown | OffBy Int Int Int+ deriving Show++-- | Better fail method, keeping track of offsets+fail :: Offset -> String -> Q a+fail Unknown     s = P.fail s+fail off@OffBy{} s = do loc <- location+                        P.fail (fmtLoc loc off ++ ": " ++  s)++-- | Format a given location by the offset+fmtLoc :: Loc -> Offset -> String+fmtLoc loc@Loc{loc_start = (sl, _)} off = takeFileName (loc_filename newLoc) ++ ":" ++ sh (loc_start newLoc) (loc_end newLoc)+  where sh ab@(a, b) cd@(c, d) | a == c = show a ++ ":" ++ show b ++ if b == d then "" else '-' : show d+                               | True   = show ab ++ "-" ++ show cd++        newLoc = case off of+                   Unknown       -> loc+                   OffBy lo co w -> loc {loc_start = (sl + lo, co + 1), loc_end = (sl + lo, co + w)}++-- | Built-in types recognized by sCase/pCase. Maybe and Either do have mkSymbolic-generated+-- infrastructure, but we treat them as built-in so that the generated code uses TH-quoted names+-- (which resolve at SCase.hs compile time) instead of mkName-based references (which would+-- require the user to have the testers/accessors in scope at the splice site).+data BuiltinType = BTBool | BTMaybe | BTEither | BTList | BTTuple Int+  deriving Show++-- | Compare two Names by their base (unqualified) name. This is needed because+-- built-in constructor names (created with mkName) won't match the fully-qualified+-- names that GHC resolves patterns to (e.g., mkName "Nothing" vs GHC.Internal.Maybe.Nothing).+-- Since constructor names are unique within a type, comparing by nameBase is safe.+sameBase :: Name -> Name -> Bool+sameBase a b = nameBase a == nameBase b++-- | Lookup by nameBase instead of Name equality.+lookupBase :: Name -> [(Name, a)] -> Maybe a+lookupBase _  []          = Nothing+lookupBase nm ((k,v):kvs)+  | sameBase nm k = Just v+  | True          = lookupBase nm kvs++-- | Recognize built-in type names.+recognizeBuiltin :: String -> Maybe BuiltinType+recognizeBuiltin "Bool"   = Just BTBool+recognizeBuiltin "Maybe"  = Just BTMaybe+recognizeBuiltin "Either" = Just BTEither+recognizeBuiltin "List"   = Just BTList+recognizeBuiltin s+  | Just n <- stripPrefix "Tuple" s, not (null n), all isDigit n, let k = read n, k >= 2, k <= 8+  = Just (BTTuple k)+recognizeBuiltin _ = Nothing++-- | Recognize a constructor name as belonging to a built-in type. Used in flattenPat+-- to generate TH-quoted tester/accessor references for nested built-in constructors.+recognizeBuiltinCon :: String -> Maybe BuiltinType+recognizeBuiltinCon "True"    = Just BTBool+recognizeBuiltinCon "False"   = Just BTBool+recognizeBuiltinCon "Nothing" = Just BTMaybe+recognizeBuiltinCon "Just"    = Just BTMaybe+recognizeBuiltinCon "Left"    = Just BTEither+recognizeBuiltinCon "Right"   = Just BTEither+recognizeBuiltinCon "[]"      = Just BTList+recognizeBuiltinCon ":"       = Just BTList+recognizeBuiltinCon _         = Nothing++-- | Infer the type from the constructor names used in the pattern matches.+-- Examines top-level patterns to find the first informative one (i.e., not a wildcard),+-- then resolves the constructor via TH to determine the parent type.+-- Returns 'Nothing' if all branches use wildcards (wildcard-only mode).+inferType :: String -> [Match] -> Q (Maybe (String, Maybe BuiltinType))+inferType label matches = case firstInfo matches of+    Just (Left n)            -> pure $ Just ("Tuple" ++ show n, Just (BTTuple n))+    Just (Right Nothing)     -> pure $ Just ("List", Just BTList)+    Just (Right (Just name)) -> Just <$> resolveConType name+    Nothing                  -> pure Nothing+  where+    -- Left n = tuple of arity n, Right Nothing = list, Right (Just name) = constructor name+    firstInfo [] = Nothing+    firstInfo (Match pat _ _ : rest) = case patInfo pat of+                                         Just info -> Just info+                                         Nothing   -> firstInfo rest++    patInfo (ConP n _ _)                              = Just (Right (Just n))+    patInfo (RecP n _)                                = Just (Right (Just n))+    patInfo (InfixP _ n _)  | nameBase n == ":"       = Just (Right Nothing)+    patInfo (UInfixP _ n _) | nameBase n == ":"       = Just (Right Nothing)+    patInfo (TupP ps)                                 = Just (Left (length ps))+    patInfo (ListP _)                                 = Just (Right Nothing)+    patInfo (ParensP p)                               = patInfo p+    patInfo (AsP _ p)                                 = patInfo p+    patInfo _                                         = Nothing++    -- Resolve a constructor name to its parent type via TH+    resolveConType conName = do+      let base = nameBase conName+      -- Check if it's a known built-in constructor first (for cases where lookupValueName+      -- might not resolve, e.g., "[]" as a value name)+      case recognizeBuiltinCon base of+        Just bt -> pure (builtinTypeName bt, Just bt)+        Nothing -> do+          mbResolved <- lookupValueName base+          case mbResolved of+            Nothing -> fail Unknown $ unlines [ label ++ ": Unknown constructor: " ++ base+                                              , ""+                                              , "        Cannot find this constructor in scope."+                                              , "        Make sure the type is declared and mkSymbolic is called."+                                              ]+            Just resolved -> do+              info <- reify resolved+              case info of+                DataConI _ _ parentName -> let typName = nameBase parentName+                                           in pure (typName, recognizeBuiltin typName)+                _ -> fail Unknown $ label ++ ": " ++ base ++ " is not a data constructor."++    builtinTypeName BTBool      = "Bool"+    builtinTypeName BTMaybe     = "Maybe"+    builtinTypeName BTEither    = "Either"+    builtinTypeName BTList      = "List"+    builtinTypeName (BTTuple n) = "Tuple" ++ show n++-- | Constructor info for a built-in type: (name, arity).+builtinConstructors :: BuiltinType -> [(Name, Int)]+builtinConstructors BTBool        = [(mkName "True", 0), (mkName "False", 0)]+builtinConstructors BTMaybe       = [(mkName "Nothing", 0), (mkName "Just", 1)]+builtinConstructors BTEither      = [(mkName "Left", 1), (mkName "Right", 1)]+builtinConstructors BTList        = [(mkName "[]", 0), (mkName ":", 2)]+builtinConstructors (BTTuple n)   = [(tupleDataName n, n)]++-- | Generate a tester expression for a built-in type constructor.+builtinTester :: BuiltinType -> Name -> Exp -> Exp+builtinTester BTBool nm scrut+  | nameBase nm == "True"  = scrut+  | nameBase nm == "False" = AppE (VarE 'sNot) scrut+builtinTester BTMaybe nm scrut+  | nameBase nm == "Nothing" = AppE (VarE (sbvName "Data.SBV.Maybe" "isNothing")) scrut+  | nameBase nm == "Just"    = AppE (VarE (sbvName "Data.SBV.Maybe" "isJust"))    scrut+builtinTester BTEither nm scrut+  | nameBase nm == "Left"  = AppE (VarE (sbvName "Data.SBV.Either" "isLeft"))  scrut+  | nameBase nm == "Right" = AppE (VarE (sbvName "Data.SBV.Either" "isRight")) scrut+builtinTester BTList nm scrut+  | nameBase nm == "[]" = AppE (VarE (sbvName "Data.SBV.List" "null")) scrut+  | nameBase nm == ":"  = AppE (VarE 'sNot) (AppE (VarE (sbvName "Data.SBV.List" "null")) scrut)+builtinTester (BTTuple _) _ _ = VarE 'sTrue+builtinTester bt nm _ = error $ "sCase: builtinTester: unexpected constructor " ++ nameBase nm ++ " for " ++ show bt++-- | Generate an accessor expression for a built-in type constructor field.+builtinAccessor :: BuiltinType -> Name -> Int -> Exp -> Exp+builtinAccessor BTBool nm _ _ = error $ "sCase: builtinAccessor: Bool constructor " ++ nameBase nm ++ " has no fields"+builtinAccessor BTMaybe nm i scrut+  | nameBase nm == "Just", i == 1 = AppE (VarE (sbvName "Data.SBV.Maybe" "getJust_1")) scrut+builtinAccessor BTEither nm i scrut+  | nameBase nm == "Left",  i == 1 = AppE (VarE (sbvName "Data.SBV.Either" "getLeft_1"))  scrut+  | nameBase nm == "Right", i == 1 = AppE (VarE (sbvName "Data.SBV.Either" "getRight_1")) scrut+builtinAccessor BTList nm i scrut+  | nameBase nm == ":", i == 1 = AppE (VarE (sbvName "Data.SBV.List" "head")) scrut+  | nameBase nm == ":", i == 2 = AppE (VarE (sbvName "Data.SBV.List" "tail")) scrut+builtinAccessor (BTTuple _) _ i scrut+  -- Simplify _i (tuple (a, b, ...)) to just the i-th component+  | AppE (VarE f) (TupE components) <- scrut+  , nameBase f == "tuple"+  , let cs = catMaybes components+  , i >= 1, i <= length cs+  = cs !! (i - 1)+  | True+  = AppE (VarE (tupleAccessorName i)) scrut+  where tupleAccessorName 1 = sbvName "Data.SBV.Tuple" "_1"+        tupleAccessorName 2 = sbvName "Data.SBV.Tuple" "_2"+        tupleAccessorName 3 = sbvName "Data.SBV.Tuple" "_3"+        tupleAccessorName 4 = sbvName "Data.SBV.Tuple" "_4"+        tupleAccessorName 5 = sbvName "Data.SBV.Tuple" "_5"+        tupleAccessorName 6 = sbvName "Data.SBV.Tuple" "_6"+        tupleAccessorName 7 = sbvName "Data.SBV.Tuple" "_7"+        tupleAccessorName 8 = sbvName "Data.SBV.Tuple" "_8"+        tupleAccessorName n = error $ "sCase: tupleAccessorName: unsupported index " ++ show n+builtinAccessor bt nm i _ = error $ "sCase: builtinAccessor: unexpected constructor " ++ nameBase nm ++ " field " ++ show i ++ " for " ++ show bt++-- | Generate a tester expression for a constructor, dispatching to builtinTester for+-- recognized built-in constructors or falling back to @is\<Con\>@ for user ADTs.+mkTester :: Name -> Exp -> Exp+mkTester nm scrut = case recognizeBuiltinCon (nameBase nm) of+    Just bt -> builtinTester bt nm scrut+    Nothing -> AppE (VarE (mkName ("is" ++ nameBase nm))) scrut++-- | Generate an accessor expression for a constructor field, dispatching to builtinAccessor for+-- recognized built-in constructors or falling back to @get\<Con\>_i@ for user ADTs.+mkAccessor :: Name -> Int -> Exp -> Exp+mkAccessor nm i scrut = case recognizeBuiltinCon (nameBase nm) of+    Just bt -> builtinAccessor bt nm i scrut+    Nothing -> AppE (VarE (mkName ("get" ++ nameBase nm ++ "_" ++ show i))) scrut++-- | Like 'mkTester', but when the built-in type is already known from the scrutinee type.+-- Used in top-level sCase/pCase code generation.+mkTesterFor :: Maybe BuiltinType -> Name -> Exp -> Exp+mkTesterFor (Just bt) nm scrut = builtinTester bt nm scrut+mkTesterFor Nothing   nm scrut = AppE (VarE (mkName ("is" ++ nameBase nm))) scrut++-- | Like 'mkAccessor', but when the built-in type is already known from the scrutinee type.+mkAccessorFor :: Maybe BuiltinType -> Name -> Int -> Exp -> Exp+mkAccessorFor (Just bt) nm i scrut = builtinAccessor bt nm i scrut+mkAccessorFor Nothing   nm i scrut = AppE (VarE (mkName ("get" ++ nameBase nm ++ "_" ++ show i))) scrut++-- | What kind of case-match are we given. In each case, the last maybe exp is the possible guard.+data Case = CMatch Offset          -- regular match+                   Name            -- name of the constructor+                   (Maybe [Pat])   -- [a, b, c] in C a b c. Or Nothing if C{}+                   (Maybe Exp)     -- guard+                   Exp             -- rhs+                   (Set Name)      -- All variables used all RHSs and All guards+          | CWild  Offset          -- wild card+                   (Maybe Exp)     -- guard+                   Exp             -- rhs++-- | What's the offset?+caseOffset :: Case -> Offset+caseOffset (CMatch o _ _ _ _ _) = o+caseOffset (CWild  o       _ _) = o++-- | Show a case nicely+showCase :: Case -> String+showCase = showCaseGen Nothing++-- | Show a case nicely, with location+showCaseGen :: Maybe Loc -> Case -> String+showCaseGen mbLoc sc = case sc of+                         CMatch _ c (Just ps) mbG _ _ -> loc ++ unwords (nameBase c : map pprint ps ++ shGuard mbG)+                         CMatch _ c Nothing   mbG _ _ -> loc ++ unwords (nameBase c : "{}"           : shGuard mbG)+                         CWild  _             mbG _   -> loc ++ unwords ("_"                         : shGuard mbG)+ where shGuard Nothing  = []+       shGuard (Just e) = ["|", pprint e]++       loc = case mbLoc of+               Nothing -> ""+               Just l  -> fmtLoc l (caseOffset sc) ++ ": "++-- | Get the name of the constructor, if any+getCaseConstructor :: Case -> Maybe Name+getCaseConstructor (CMatch _ nm _ _ _ _) = Just nm+getCaseConstructor CWild{}               = Nothing++-- | Get the guard, if any+getCaseGuard :: Case -> Maybe Exp+getCaseGuard (CMatch _ _ _ mbg _ _) = mbg+getCaseGuard (CWild  _     mbg _  ) = mbg++-- | Is there a guard?+isGuarded :: Case -> Bool+isGuarded = isJust . getCaseGuard++-- | Find offset of each successive match. This isn't perfect, but it does the job+findOffsets :: String -> [Offset]+findOffsets s = analyze $ E.parseExpWithMode E.defaultParseMode $ "case ()" ++ tab ++ rest+  where rest = relevant s+        -- there's a chance the replication below might yield a negative value, which can make our+        -- offset calculation slightly off. But this should be exceedingly rare because it'd have to be that+        -- matches are on the same line and the "Type expr" part of the original must be shorter than 7 chars.+        -- Let's ignore that possibility.+        tab  = replicate (length s - length rest - 7) ' '+        relevant r@(' ':'o':'f':_) = r+        relevant ""                = ""+        relevant (_:cs)            = relevant cs++        analyze E.ParseFailed{} = [] -- Just ignore+        analyze (E.ParseOk e)   = case e of+                                   E.Case _ _ alts -> map getOff alts+                                   _               -> []+          where getOff (E.Alt l p _ _) = OffBy (E.srcSpanStartLine as - 1) (E.srcSpanStartColumn as - 1) w+                   where as = E.srcInfoSpan l+                         cs = E.srcInfoSpan (E.ann p)+                         w  = E.srcSpanEndColumn cs - E.srcSpanStartColumn cs++-- * Shared parsing infrastructure++-- | Parse a Haskell expression using haskell-src-exts+metaParse :: String -> Either String Exp+metaParse = fmap Meta.toExp . Meta.parseResultToEither . E.parseExpWithMode pm+  where pm = E.defaultParseMode { E.parseFilename = []+                                , E.baseLanguage  = E.Haskell2010+                                , E.extensions = map E.EnableExtension (exts ++ extras)+                                }+        exts = [ E.PostfixOperators+               , E.QuasiQuotes+               , E.UnicodeSyntax+               , E.PatternSignatures+               , E.MagicHash+               , E.ForeignFunctionInterface+               , E.TemplateHaskell+               , E.RankNTypes+               , E.MultiParamTypeClasses+               , E.RecursiveDo+               , E.TypeApplications+               ]++        -- The above just mimics the defaults. These our extras.+        extras = [E.DataKinds]++-- | Handle a metaParse error by mapping the parse-error column back to the source file.+-- metaParse operates on @"case " <> src@ (5 extra chars), so we subtract 5 from its column.+-- For line 1 errors, we also add the quasi-quote content's starting column since the first+-- line of src is offset from the start of the source line. For subsequent lines, the columns+-- in the quasi-quote content already correspond to source file columns.+handleParseError :: String -> String -> Q a+handleParseError label err = do+    loc <- location+    let qqCol = snd (loc_start loc) -- 1-based column where quasi-quote content starts+    case lines err of+      (_:locLine:res) | ["SrcLoc", _, l, c] <- words locLine, all isDigit l, all isDigit c+         -> let mc    = read c+                line  = read l+                -- Line 1: column is relative to "case " <> src, need to add quasi-quote offset+                -- Lines 2+: column is already a source file column (verbatim from source)+                col = if line == 1 then qqCol + mc - 7 else mc - 1+            in fail (OffBy (line - 1) col 1) (unlines res)+      _  -> fail Unknown $ label ++ " parse error: " <> err+++-- | Extract guards from a match body+getGuards :: Body -> [Dec] -> Q [(Maybe Exp, Exp)]+getGuards (NormalB  rhs)  locals = pure [(Nothing, addLocals locals rhs)]+getGuards (GuardedB exps) locals = mapM get exps+  where get (NormalG e,  rhs)+          | isSTrue e+          = pure (Nothing, addLocals locals rhs)+          | True+          = pure (Just e, addLocals locals rhs)+        get (PatG stmts, rhs)+          | all isNoBindS stmts+          = let guards = [e | NoBindS e <- stmts]+                conj   = sAndAll guards+            in pure (if isSTrue conj then Nothing else Just conj, addLocals locals rhs)+          | True+          = fail Unknown $ unlines $  "sCase/pCase: Pattern guards are not supported: "+                                   : ["        " ++ pprint s | s <- stmts]+          where isNoBindS (NoBindS _) = True+                isNoBindS _           = False++        -- Is this literally sTrue (or True)? This is a bit dangerous since+        -- we just look at the base-name, but good enough+        isSTrue (VarE  nm) = nameBase nm == nameBase 'sTrue+        isSTrue (ConE  nm) = nameBase nm == "True"+        isSTrue _          = False++-- | Turn where clause into simple let+addLocals :: [Dec] -> Exp -> Exp+addLocals [] e = e+addLocals ds e = LetE ds e++-- | Given an occurrence of a name, find what it refers to+getReference :: Offset -> Name -> Q Name+getReference off refName = do mbN <- lookupValueName (nameBase refName)+                              case mbN of+                                Nothing -> fail off $ "sCase/pCase: Not in scope: data constructor: " <> pprint refName+                                Just n  -> pure n++-- | Convert a match into a list of cases+matchToPair :: Exp -> Offset -> Match -> Q [Case]+matchToPair scrut off (Match pat grhs locals) = do+  rhss <- getGuards grhs locals+  let allUsed = Set.unions (map (\(mbG, e) -> maybe Set.empty freeVars mbG `Set.union` freeVars e) rhss)++      -- Common logic for constructor-like patterns: flatten sub-patterns, merge synthetic guards+      flattenAndMerge :: Name -> (Int -> Exp) -> [Pat] -> Q [Case]+      flattenAndMerge con accessor subpats = do+          flatResults <- zipWithM (flattenPat off . accessor) [(1::Int)..] subpats+          let ps      = map fstOf3 flatResults+              subGrds = concatMap sndOf3 flatResults+              subDecs = concatMap thdOf3 flatResults++              merge (mbG, rhs) =+                let usedInRhs  = freeVars rhs+                    usedInGrd  = maybe Set.empty freeVars mbG+                    decsFor s  = [ d | d@(ValD (VarP v) _ _) <- subDecs, v `Set.member` s ]+                    rhs' = addLocals (decsFor usedInRhs) rhs+                    mbG' = case (subGrds, mbG) of+                              ([], Nothing) -> Nothing+                              ([], Just g ) -> Just (addLocals (decsFor usedInGrd) g)+                              (gs, Nothing) -> Just (sAndAll gs)+                              (gs, Just g ) -> Just (sAndAll (gs ++ [addLocals (decsFor usedInGrd) g]))+                in (mbG', rhs')++          pure [CMatch off con (Just ps) mbG rhs allUsed | (mbG, rhs) <- map merge rhss]++  case pat of+    ConP conName _ subpats -> do+      con <- getReference off conName+      flattenAndMerge con (\i -> mkAccessor con i scrut) subpats++    RecP conName []        -> do con <- getReference off conName+                                 pure [CMatch off con Nothing   mbG rhs allUsed | (mbG, rhs) <- rhss]++    WildP                  ->    pure [CWild  off               mbG rhs         | (mbG, rhs) <- rhss]++    -- List cons pattern: y : ys  (InfixP or UInfixP from the parser)+    InfixP p1 conName p2+      | nameBase conName == ":" -> let con = mkName ":" in flattenAndMerge con (\i -> mkAccessorFor (Just BTList) con i scrut) [p1, p2]+    UInfixP p1 conName p2+      | nameBase conName == ":" -> let con = mkName ":" in flattenAndMerge con (\i -> mkAccessorFor (Just BTList) con i scrut) [p1, p2]++    -- Tuple pattern: (a, b, ...)+    TupP subpats -> do+          let n   = length subpats+              con = tupleDataName n+          flattenAndMerge con (\i -> mkAccessorFor (Just (BTTuple n)) con i scrut) subpats++    -- List nil pattern: []+    ListP [] ->        pure [CMatch off (mkName "[]") (Just []) mbG rhs allUsed | (mbG, rhs) <- rhss]++    -- List pattern with elements: [a], [a, b], etc. Desugar to nested cons: a : (b : [])+    ListP ps -> let desugar []     = ListP []+                    desugar (p:rest) = InfixP p (mkName ":") (desugar rest)+                in matchToPair scrut off (Match (desugar ps) grhs locals)++    -- Parenthesized pattern: unwrap and recurse+    ParensP p -> matchToPair scrut off (Match p grhs locals)++    -- Literal pattern at top level: 0, 1, "hello", etc.+    -- Treated as a wildcard with a guard: scrut .== literal+    LitP lit -> do eq <- litToEq off scrut lit+                   pure [CWild off (Just (maybe eq (\g -> sAndAll [eq, g]) mbG)) rhs | (mbG, rhs) <- rhss]++    -- Variable pattern at top level: binds the scrutinee (only when used)+    VarP v   -> let bindScrut e | v `Set.member` freeVars e = LetE [ValD (VarP v) (NormalB scrut) []] e+                                | True                      = e+                in pure [CWild off (bindScrut <$> mbG) (bindScrut rhs) | (mbG, rhs) <- rhss]++    -- As-pattern at top level: name@subpat — bind name to scrutinee, then process inner pattern+    AsP name subpat -> do+        cases <- matchToPair scrut off (Match subpat grhs locals)+        let bindAs e | name `Set.member` freeVars e = LetE [ValD (VarP name) (NormalB scrut) []] e+                     | True                         = e+            addBind (CMatch o cn ps mbG' rhs' used) = CMatch o cn ps (bindAs <$> mbG') (bindAs rhs') used+            addBind (CWild  o        mbG' rhs')     = CWild  o        (bindAs <$> mbG') (bindAs rhs')+        pure (map addBind cases)++    _ -> fail Unknown $ unlines [ "sCase/pCase: Unsupported pattern:"+                                , "            Saw: " <> pprint pat+                                , ""+                                , "        Supported patterns: constructors (Cstr a b _ d),"+                                , "        empty records (Cstr{}), wildcards (_), variables,"+                                , "        as-patterns (x@pat), and integer/string literals."+                                ]++-- | Flatten a sub-pattern against a given accessor expression.+-- Returns: a simple VarP/WildP for the flat pattern list, a list of+-- synthetic isCstr guard expressions, and let-bindings that bring+-- nested-pattern variables into scope.+flattenPat :: Offset -> Exp -> Pat -> Q (Pat, [Exp], [Dec])+flattenPat _   _   WildP                    = pure (WildP, [], [])+flattenPat _   _   p@(VarP _)               = pure (p,     [], [])+flattenPat off arg (ParensP p)              = flattenPat off arg p+flattenPat off arg (ConP conName _ subpats) = do+  con   <- getReference off conName+  -- Arity check: reify the constructor to find its actual field count+  DataConI _ conType parentName <- reify con+  let arity = countArgs conType+  unless (arity == length subpats) $+    fail off $ unlines [ "sCase/pCase: Arity mismatch in nested pattern."+                       , "        Constructor: " ++ nameBase con+                       , "        Expected   : " ++ show arity+                       , "        Given      : " ++ show (length subpats)+                       ]+  -- Check if the parent type has only one constructor; if so, the tester is trivially true+  singleCon <- isSingleConstructorType parentName+  let tester      = mkTester con arg+      accessor i  = mkAccessor con i arg+  subResults <- zipWithM (flattenPat off . accessor) [(1::Int)..] subpats+  let subGrds = concatMap sndOf3 subResults+      subDecs = concatMap thdOf3 subResults+      subPats = map fstOf3 subResults+      patDecs = [ ValD (VarP v) (NormalB (accessor i)) []+                | (i, VarP v) <- zip [(1::Int)..] subPats ]+      -- Skip the tester guard for single-constructor types (it's always true)+      guards  = (if singleCon then id else (tester :)) subGrds+  pure (WildP, guards, patDecs ++ subDecs)+flattenPat off arg (LitP lit) = do+  eq <- litToEq off arg lit+  pure (WildP, [eq], [])+-- Nested list cons pattern: x : xs (InfixP or UInfixP from the parser)+flattenPat off arg (InfixP p1 conName p2)+  | nameBase conName == ":" = flattenCons off arg p1 p2+flattenPat off arg (UInfixP p1 conName p2)+  | nameBase conName == ":" = flattenCons off arg p1 p2+-- Nested empty list pattern: []+flattenPat _   arg (ListP []) =+  pure (WildP, [AppE (VarE (sbvName "Data.SBV.List" "null")) arg], [])+-- Nested list pattern with elements: [a], [a, b], etc. Desugar to nested cons.+flattenPat off arg (ListP (p:ps)) =+  flattenPat off arg (InfixP p (mkName ":") (ListP ps))+-- Nested tuple pattern: (a, b, ...)+flattenPat off arg (TupP pats) = do+  let n = length pats+      accessor i = mkAccessorFor (Just (BTTuple n)) (tupleDataName n) i arg+  subResults <- zipWithM (flattenPat off . accessor) [(1::Int)..] pats+  let subGrds = concatMap sndOf3 subResults+      subDecs = concatMap thdOf3 subResults+      patDecs = [ ValD (VarP v) (NormalB (accessor i)) []+                | (i, VarP v) <- zip [(1::Int)..] (map fstOf3 subResults) ]+  pure (WildP, subGrds, patDecs ++ subDecs)+-- Nested as-pattern: name@subpat — bind name to accessor, then process inner pattern+flattenPat off arg (AsP name subpat) = do+    (pat', guards, decs) <- flattenPat off arg subpat+    let asDec = ValD (VarP name) (NormalB arg) []+    pure (pat', guards, asDec : decs)+-- Nested empty record pattern: Cstr{} — equivalent to Cstr with all wildcards+flattenPat off arg (RecP conName []) = do+    con <- getReference off conName+    DataConI _ conType _ <- reify con+    let arity = countArgs conType+    flattenPat off arg (ConP con [] (replicate arity WildP))+flattenPat o _ p = fail o $ unlines [ "sCase/pCase: Unsupported complex pattern match."+                                    , "        Saw: " <> pprint p+                                    , ""+                                    , "      Only variables, wildcards, as-patterns, nested constructors, and integer/string literals are supported."+                                    ]++-- | Flatten a nested list cons pattern (x : xs) against an accessor expression.+-- We include a destructuring equality (arg .=== head arg .: tail arg) because lists use+-- SMT Seq, not declare-datatypes, so the solver doesn't automatically know this relationship.+-- This is critical for pCase proof progress; harmless for sCase (redundant guard in ite-chain).+-- NB. For top-level list cons patterns in pCase, the same equality is added by processProofCases.+flattenCons :: Offset -> Exp -> Pat -> Pat -> Q (Pat, [Exp], [Dec])+flattenCons off arg p1 p2 = do+    let headExpr = mkAccessorFor (Just BTList) (mkName ":") 1 arg+        tailExpr = mkAccessorFor (Just BTList) (mkName ":") 2 arg+        tester   = mkTesterFor (Just BTList) (mkName ":") arg+        destruct = foldl1 AppE [VarE '(.===), arg, InfixE (Just headExpr) (VarE '(.:)) (Just tailExpr)]+    sub1 <- flattenPat off headExpr p1+    sub2 <- flattenPat off tailExpr p2+    let subGrds = sndOf3 sub1 ++ sndOf3 sub2+        subDecs = thdOf3 sub1 ++ thdOf3 sub2+        patDecs = [ ValD (VarP v) (NormalB headExpr) [] | VarP v <- [fstOf3 sub1] ]+               ++ [ ValD (VarP v) (NormalB tailExpr) [] | VarP v <- [fstOf3 sub2] ]+    pure (WildP, tester : destruct : subGrds, patDecs ++ subDecs)++-- | Check if a type has only one constructor. Used to skip trivially-true tester guards+-- in nested patterns (e.g., @Just (Pocket n3 n5)@ where @Pocket@ is the sole constructor).+isSingleConstructorType :: Name -> Q Bool+isSingleConstructorType tyName = do+  info <- reify tyName+  pure $ case info of+    TyConI (DataD    _ _ _ _ [_] _) -> True+    TyConI (NewtypeD {})            -> True+    _                               -> False++fstOf3 :: (a, b, c) -> a+fstOf3 (a, _, _) = a++sndOf3 :: (a, b, c) -> b+sndOf3 (_, b, _) = b++thdOf3 :: (a, b, c) -> c+thdOf3 (_, _, c) = c++-- | Get the constructor list for a type. For built-in types, return synthetic entries;+-- for user ADTs, reify via getConstructors.+getCstrs :: Maybe BuiltinType -> String -> Q [(Name, [Type])]+getCstrs (Just bt) _   = pure [(nm, replicate ar WildCardT) | (nm, ar) <- builtinConstructors bt]+getCstrs Nothing   typ = let dropFieldNames (c, nts) = (c, map snd nts)+                          in map dropFieldNames . snd <$> getConstructors (mkName typ)++-- | Validate wildcard placement: unguarded wildcard must be last.+checkWildcard :: String -> Loc -> [Case] -> Q ()+checkWildcard label loc cs = do go cs; checkExhaustive cs+  where go []                         = pure ()+        go (CMatch{}          : rest) = go rest+        go (CWild _ Just{}  _ : rest) = go rest+        go (CWild o Nothing _ : rest) =+              case rest of+                []  -> pure ()+                red -> fail o $ unlines $ (label ++ ": Wildcard makes the remaining matches redundant:")+                                         : ["        " ++ showCaseGen (Just loc) r | r <- red]++        -- If all cases are wildcards (no CMatch), then we need an unguarded wildcard+        -- as a catch-all. Otherwise, guarded-only wildcards on an infinite domain+        -- (Integer, String, etc.) silently produce a free variable for unmatched cases.+        checkExhaustive cases+          | any isCMatch cases           = pure ()  -- Has constructor patterns; exhaustiveness checked elsewhere+          | any isUnguardedWild cases    = pure ()  -- Has an unguarded catch-all+          | True                         = fail (headOffset cases) $ unlines+              [ label ++ ": Non-exhaustive pattern match."+              , "        All branches are guarded; add an unguarded wildcard or variable"+              , "        as the last branch to ensure all cases are covered."+              ]++        isCMatch CMatch{} = True+        isCMatch _        = False++        isUnguardedWild (CWild _ Nothing _) = True+        isUnguardedWild _                   = False++        headOffset (c:_) = caseOffset c+        headOffset []    = Unknown++-- | Validate that each constructor exists and has the right arity.+checkArities :: String -> String -> [(Name, [Type])] -> [Case] -> Q ()+checkArities label typ cstrs = mapM_ chk1+  where chk1 c = case c of+                    CMatch o nm ps _ _ _ -> isSafe o nm (length <$> ps)+                    CWild  {}            -> pure ()+        isSafe o nm mbLen+          | Just ts <- lookupBase nm cstrs+          = case mbLen of+               Nothing  -> pure ()+               Just cnt -> unless (length ts == cnt)+                                $ fail o $ unlines [ label ++ ": Arity mismatch."+                                                   , "        Type       : " ++ typ+                                                   , "        Constructor: " ++ nameBase nm+                                                   , "        Expected   : " ++ show (length ts)+                                                   , "        Given      : " ++ show cnt+                                                   ]+          | True+          = fail o $ unlines [ label ++ ": Unknown constructor:"+                             , "        Type          : " ++ typ+                             , "        Saw           : " ++ pprint nm+                             , "        Must be one of: " ++ intercalate ", " (map (pprint . fst) cstrs)+                             ]++-- * sCase++-- | Quasi-quoter for symbolic case expressions.+sCase :: QuasiQuoter+sCase = QuasiQuoter+  { quoteExp  = extract+  , quotePat  = bad "pattern"+  , quoteType = bad "type"+  , quoteDec  = bad "declaration"+  }+  where+    bad ctx _ = fail Unknown $ "sCase: not usable in " <> ctx <> " context"++    extract :: String -> ExpQ+    extract src = do+      let fullCase = "case " <> src+          offsets  = findOffsets src+      case metaParse fullCase of+        Right (CaseE scrut matches) -> processCaseExp offsets scrut matches+        Right _  -> fail Unknown "sCase: Parse error, cannot extract a case-expression."+        Left err -> handleParseError "sCase" err++-- | Core sCase pipeline: given a scrutinee and matches (already in TH AST form),+-- run type inference, match conversion, validation, and code generation.+-- Factored out of 'sCase' so that 'transformNestedCases' can call it for+-- inner @case@ expressions.+processCaseExp :: [Offset] -> Exp -> [Match] -> Q Exp+processCaseExp offsets scrut0 matches0 = do+    -- Transform any nested case expressions in the RHS/guards of each match.+    -- This ensures inner cases become symbolic before the outer case processes them.+    matches <- transformMatches matches0+    scrut   <- transformNestedCases scrut0+    mbTypeInfo <- inferType "sCase" matches+    case mbTypeInfo of+      Nothing -> do+        -- Wildcard-only: no type needed, generate ite-chain directly+        allCases <- concat <$> zipWithM (matchToPair scrut) (offsets ++ repeat Unknown) matches+        loc <- location+        checkWildcard "sCase" loc allCases+        let wilds = [(mbG, rhs) | CWild _ mbG rhs <- allCases]+            -- An unguarded wildcard is the base case (no ite wrapper needed).+            -- checkWildcard guarantees an unguarded wildcard is last if present.+            iteChain []                       = do uniq <- newName "u"+                                                   let suffix = drop 2 (show uniq)+                                                   pure $ AppE (VarE 'symWithKind) (LitE (StringL ("unmatched_sCase_wildcard_" ++ suffix)))+            iteChain ((Nothing, rhs) : _)     = pure rhs+            iteChain ((Just g,  rhs) : rest)  = do r <- iteChain rest+                                                   pure $ foldl AppE (VarE 'ite) [g, rhs, r]+        iteChain wilds+      Just (typ, mbt) -> do+        mbFnName <- case mbt of+          Just BTBool      -> pure Nothing+          Just BTList      -> pure Nothing  -- Strategy B; see noAnalyzer comment above+          Just BTMaybe     -> pure (Just (VarE (sbvName "Data.SBV.Maybe"  "sCaseMaybe")))+          Just BTEither    -> pure (Just (VarE (sbvName "Data.SBV.Either" "sCaseEither")))+          Just (BTTuple _) -> pure Nothing+          Nothing -> let fnTok = "sCase" <> typ+                     in lookupValueName fnTok >>= \case+                          Just n  -> pure (Just (VarE n))+                          Nothing -> fail Unknown $ unlines [ "sCase: Unknown symbolic ADT: " <> typ+                                                            , ""+                                                            , "        To use a symbolic case expression, declare your ADT, and then:"+                                                            , "             mkSymbolic [''" <> typ <> "]"+                                                            , "        In a template-haskell context."+                                                            ]+        let anyUserGuards = any (\(Match _ grhs _) -> case grhs of { GuardedB{} -> True; _ -> False }) matches+        cases <- zipWithM (matchToPair scrut) (offsets ++ repeat Unknown) matches >>= checkCase scrut typ mbt anyUserGuards . concat+        buildCase typ mbFnName scrut cases+  where+    buildCase :: String -> Maybe Exp -> Exp -> Either [Exp] [(Exp, Exp)] -> ExpQ+    buildCase _    (Just caseFunc) s (Left  cases) = pure $ AppE (foldl AppE caseFunc cases) s+    buildCase _    Nothing         _     (Left  _)     = error "sCase: impossible: Strategy A without case function"+    buildCase typ  _               _scrut (Right cases) = do+        uniq <- newName "u"+        let suffix = drop 2 (show uniq)+            fallback  = AppE (VarE 'symWithKind) (LitE (StringL ("unmatched_sCase_" ++ typ ++ "_" ++ suffix)))++            iteChain []              = pure fallback+            iteChain ((t, e) : rest)+              -- Last branch with a trivially-true guard (e.g., unguarded wildcard, or the last+              -- constructor in a complete match): use its rhs directly as the default,+              -- avoiding an unreachable fallback variable.+              | null rest, isTriviallyTrue t = pure e+              | True                         = do r <- iteChain rest+                                                  pure $ foldl AppE (VarE 'ite) [t, e, r]++            isTriviallyTrue (VarE nm) = nameBase nm == nameBase 'sTrue+            isTriviallyTrue (ConE nm) = nameBase nm == "True"+            isTriviallyTrue _         = False+        iteChain cases++    -- Make sure things are in good-shape and decide if we have guards+    checkCase :: Exp -> String -> Maybe BuiltinType -> Bool -> [Case] -> Q (Either [Exp] [(Exp, Exp)])+    checkCase s typ mbt anyUserGuards cases = do+        loc   <- location+        cstrs <- getCstrs mbt typ++        -- Is there a catch all clause?+        let hasCatchAll = or [True | CWild _ Nothing _ <- cases]++        checkWildcard "sCase" loc cases+        checkArities  "sCase" typ cstrs cases++        -- Step 2: Make sure constructor matches are not overlapping+        let problem w extras x = fail (caseOffset x) $ unlines $ [ "sCase: " ++ w ++ ":"+                                                                 , "        Type       : " ++ typ+                                                                 , "        Constructor: " ++ showCase x+                                                                 ]+                                                              ++ [ "      " ++ e | e <- extras]++            overlap x xs = problem "Overlapping case constructors" extras x+              where extras = "Overlaps with:" : ["  " ++ p | p <- map (showCaseGen (Just loc)) xs]++            unmatched x+             | isGuarded x = problem "Non-exhaustive match" ["NB. Guarded match might fail."] x+             | True        = problem "Non-exhaustive match" []                                x++            nonExhaustive o cstr = fail o $ unlines [ "sCase: Pattern match(es) are non-exhaustive."+                                                    , "        Not matched     : " ++ nameBase cstr+                                                    , "        Patterns of type: " ++ typ+                                                    , "        Must match each : " ++ intercalate ", " (map (nameBase . fst) cstrs)+                                                    , ""+                                                    , "      You can use a '_' to match multiple cases."+                                                    ]+            -- We're done+            chk2 _ [] = pure ()++            -- If we have a non-guarded match, then there must be no matches for this constructor later on. If so, they're redundant.+            chk2 seen (c@(CMatch _ nm _ Nothing _ _) : rest)+              = case filter (maybe False (sameBase nm) . getCaseConstructor) rest of+                  [] -> chk2 (Set.insert (nameBase nm) seen) rest+                  os -> overlap (last os) (c : init os)++            -- If we have a guarded match, then this guard can fail. So either there must be a match+            -- for it later on, or there must be a catch-all. We also accept it if the same constructor+            -- was seen earlier (e.g., multiple nested-pattern alternatives like Left (x:_) / Left []).+            chk2 seen (c@(CMatch _ nm _ Just{} _ _) : rest)+              | hasCatchAll || any (maybe False (sameBase nm) . getCaseConstructor) rest || nameBase nm `Set.member` seen+              = chk2 (Set.insert (nameBase nm) seen) rest+              | True+              = unmatched c++            -- If there's a guarded wildcard, must make sure there's a catch all afterwards+            chk2 seen (c@(CWild _ Just{} _) : rest)+              | hasCatchAll+              = chk2 seen rest+              | True+              = unmatched c++            -- No need to worry about anything following catch-all, since we already covered that before+            chk2 seen (CWild _ Nothing _ : rest) = chk2 seen rest++        chk2 Set.empty cases++        -- At this point, we either have a simple case with no guards, in which case+        -- we translate this to an sCase for that type. So find all alternatives.+        -- Otherwise, this will become an ite-chain.+        -- Bool, List, and Tuple use the ite-chain path (Strategy B) directly.+        -- List is excluded from Strategy A because the case-analysis combinator 'list' is itself+        -- a candidate for sCase rewriting; calling it here would create a circular dependency.+        -- Maybe, Either, and user ADTs can use Strategy A (calling sCaseMaybe/sCaseEither/sCaseADT).+        let hasGuards    = any isGuarded cases+            noAnalyzer   = case mbt of { Just BTBool -> True; Just BTList -> True; Just (BTTuple _) -> True; _ -> False }+            useIteChain  = hasGuards || noAnalyzer++        if not useIteChain+           then do defaultCase <- case [((e, mbg), c) | c@(CWild _ mbg e) <- cases] of+                                    []                  -> pure Nothing+                                    [((e, Nothing), c)] -> pure $ Just (caseOffset c, e)+                                    cs@((_, c):_)       -> fail (caseOffset c)+                                                         $ unlines $   "sCase: Impossible happened; found unexpected cases:"+                                                                   :  [ "        " ++ showCase curc | curc <- map snd cs]+                                                                   ++ [ ""+                                                                      , "      Please report this as a bug."+                                                                      ]+                   let find _ []     = Nothing+                       find w (c:cs)+                         | mtches = Just c+                         | True   = find w cs+                         where mtches = case c of+                                          CMatch _ nm _ _ _ _ -> sameBase nm w+                                          CWild  {}           -> False++                       case2rhs :: Case -> [Type] -> (Maybe Exp, Exp)+                       case2rhs cs ts = (LamE pats <$> mbGuard, LamE pats e)+                         where (mbGuard, e, pats) = case cs of+                                                      CMatch _ _ (Just ps) mbG rhs _ -> (mbG, rhs, ps)+                                                      CMatch _ _ Nothing   mbG rhs _ -> (mbG, rhs, map (const WildP) ts)+                                                      CWild  _             mbG rhs   -> (mbG, rhs, map (const WildP) ts)++                       collect (cstr, ts)+                         | Just e <- find cstr cases+                         = pure $ case2rhs e ts+                         | True+                         = case defaultCase of+                             Nothing -> nonExhaustive Unknown cstr+                             Just (_, de) -> do let ps = map (const WildP) ts+                                                pure (Nothing, LamE ps de)++                   res <- mapM collect cstrs++                   -- If we reached here, all is well; except we might have an extra wildcard that we did not use+                   when (length cases > length cstrs) $+                     case defaultCase of+                       Nothing     -> pure ()+                       Just (o, _) -> fail o "sCase: Wildcard match is redundant"++                   -- Double check that we had no guards and return the cases+                   case [r | (Just{}, r) <- res] of+                     [] -> pure $ Left $ map snd res+                     rs -> fail Unknown $ unlines $    "sCase: Impossible happened; found a guard in no-guard case."+                                                  :  [ "        " ++ pprint r | r <- rs]+                                                  ++ [ ""+                                                    , "      Please report this as a bug."+                                                    ]++           else do -- We have guards.+                   defaultCase <- case [(c, e) | c@(CWild _ Nothing e) <- cases] of+                                    []         -> pure Nothing+                                    ((c, e):_) -> pure $ Just (caseOffset c, e)++                   -- Collect, for each constructor, the corresponding cases:+                   let cstrMatches :: [(Name, ([Type], [Case]))]+                       cstrMatches = map (\(cstr, ts) -> (cstr, (ts, concatMap (mtches cstr) cases))) cstrs+                         where mtches cstr c | Just n <- getCaseConstructor c, sameBase n cstr = [c]+                                             | True                                            = []++                   -- Make sure we have a match for every constructor or a catch-all+                   unless hasCatchAll $ case [nm | (nm, (_, [])) <- cstrMatches] of+                                          []    -> pure ()+                                          (x:_) -> nonExhaustive Unknown x++                   -- If every constructor have a full match, then catch-all, if exists, is redundant:+                   case defaultCase of+                     Nothing     -> pure ()+                     Just (o, _)+                       | map fst cstrs == [nm | (nm, (_, cs)) <- cstrMatches, not (all isGuarded cs)]+                       -> fail o "sCase: Wildcard match is redundant"+                       | True+                       -> pure ()++                   let collect :: Case -> Q (Exp, Exp)+                       collect (CWild  _        mbG rhs        ) = pure (fromMaybe (VarE 'sTrue) mbG, rhs)+                       collect (CMatch o nm mbp mbG rhs allUsed) = do+                           case lookupBase nm cstrs of+                             Nothing -> fail o $ unlines [ "sCase: Impossible happened."+                                                         , "        Unable to determine params for: " <> pprint nm+                                                         ]+                             Just ts -> do let pats = fromMaybe (map (const WildP) ts) mbp+                                               args = [mkAccessorFor mbt nm i s | (i, _) <- zip [(1 :: Int) ..] ts]+                                               testerExpr = mkTesterFor mbt nm s++                                               -- What are the free variables in the guard and the rhs that we bind?+                                               used    = Set.fromList [n | VarP n <- pats] `Set.intersection` allUsed+                                               close e = foldr1 (AppE . AppE (VarE 'const)) (e:extras)+                                                 where extras = map VarE $ Set.toList (used Set.\\ freeVars e)++                                               mkApp f | null pats = f+                                                       | True      = foldl AppE (LamE pats f) args++                                               grd :: Exp+                                               grd = case mbG of+                                                       Nothing -> testerExpr+                                                       Just g  -> sAndAll [testerExpr, mkApp (close g)]++                                           pure (grd, mkApp (close rhs))++                   pairs <- mapM collect cases++                   -- When every constructor has at least one unguarded match, the pattern+                   -- is exhaustive. The last entry's tester is then redundant — replace it+                   -- with sTrue so buildCase uses it as the default, avoiding an unreachable+                   -- fallback variable.+                   -- For single-constructor types (tuples), all branches match the sole+                   -- constructor, with guards from nested patterns only. When there are no+                   -- user-provided guards, the nested patterns partition the space and the+                   -- last branch is the default.+                   let allCovered = all hasUnguarded cstrs+                                 || (length cstrs == 1 && not anyUserGuards)+                       hasUnguarded (cstr, _) = any (\case CMatch _ nm _ Nothing _ _ -> sameBase nm cstr; _ -> False) cases+                       optimize ps | allCovered, not (null ps)+                                   = init ps ++ [(VarE 'sTrue, snd (last ps))]+                                   | True      = ps++                   pure $ Right (optimize pairs)++-- | Transform nested @case@ expressions inside a TH 'Exp' into symbolic case expressions.+-- Walks the expression bottom-up: inner cases are transformed before outer ones.+-- This is what enables @case@ expressions inside @[sCase| ... |]@ to work as symbolic cases.+transformNestedCases :: Exp -> Q Exp+transformNestedCases = everywhereM (mkM go)+  where go :: Exp -> Q Exp+        go (CaseE s ms) = processCaseExp (repeat Unknown) s ms+        go e            = pure e++-- | Transform nested @case@ expressions inside a TH 'Exp' into proof case-splits.+-- Like 'transformNestedCases', but generates @cases [cond ==> rhs, ...]@ instead of+-- @ite@ chains. This is what enables @case@ expressions inside @[pCase| ... |]@ to work+-- as nested proof case-splits.+transformNestedCasesProof :: Exp -> Q Exp+transformNestedCasesProof = everywhereM (mkM go)+  where go :: Exp -> Q Exp+        go (CaseE s ms) = processProofCaseExp s ms+        go e            = pure e++-- | Transform the matches of an outer sCase expression, resolving any nested+-- @case@ expressions in the RHS and guards before the outer case processes them.+transformMatches :: [Match] -> Q [Match]+transformMatches = transformMatchesWith transformNestedCases++-- | Transform the matches of an outer pCase expression, resolving any nested+-- @case@ expressions in the RHS and guards as proof case-splits.+transformMatchesProof :: [Match] -> Q [Match]+transformMatchesProof = transformMatchesWith transformNestedCasesProof++-- | Generic match transformer parameterized by the nested-case handler.+transformMatchesWith :: (Exp -> Q Exp) -> [Match] -> Q [Match]+transformMatchesWith xform = mapM transformMatch+  where transformMatch (Match pat body locals) = do+          body'   <- transformBody body+          locals' <- mapM transformDec locals+          pure (Match pat body' locals')++        transformBody (NormalB e)    = NormalB <$> xform e+        transformBody (GuardedB gs)  = GuardedB <$> mapM transformGuarded gs++        transformGuarded (g, e) = do g' <- transformGuard g+                                     e' <- xform e+                                     pure (g', e')++        transformGuard (NormalG e) = NormalG <$> xform e+        transformGuard (PatG ss)   = PatG <$> mapM transformStmt ss++        transformStmt (NoBindS e)  = NoBindS <$> xform e+        transformStmt s            = pure s++        transformDec (ValD p b ls) = do b'  <- transformBody b+                                        ls' <- mapM transformDec ls+                                        pure (ValD p b' ls')+        transformDec (FunD n cs)   = FunD n <$> mapM transformClause cs+        transformDec d             = pure d++        transformClause (Clause ps b ls) = do b'  <- transformBody b+                                              ls' <- mapM transformDec ls+                                              pure (Clause ps b' ls')++-- | Core proof-case pipeline: given a scrutinee and matches (in TH AST form),+-- generate @cases [cond ==> rhs, ...]@. This is the proof-level counterpart of+-- 'processCaseExp', used by 'transformNestedCasesProof' to handle inner @case@+-- expressions inside @[pCase| ... |]@.+processProofCaseExp :: Exp -> [Match] -> Q Exp+processProofCaseExp scrut0 matches0 = do+    -- Recursively transform any nested case expressions as proof case-splits.+    matches <- transformMatchesProof matches0+    scrut   <- transformNestedCasesProof scrut0+    mbTypeInfo <- inferType "pCase" matches+    let offsets = repeat Unknown+    case mbTypeInfo of+      Nothing -> do+        allCases <- concat <$> zipWithM (matchToPair scrut) (offsets ++ repeat Unknown) matches+        loc <- location+        checkWildcard "pCase" loc allCases+        allPairs <- processProofCases scrut [] Nothing [] allCases+        let casesName   = mkName "cases"+            impliesName = mkName "==>"+            mkPair (g, r) = InfixE (Just g) (VarE impliesName) (Just r)+        pure $ AppE (VarE casesName) (ListE (map mkPair allPairs))+      Just (typ, mbt) -> do+        cs <- zipWithM (matchToPair scrut) (offsets ++ repeat Unknown) matches+        let cases = concat cs+        loc <- location+        cstrs <- getCstrs mbt typ+        checkWildcard "pCase" loc cases+        checkArities  "pCase" typ cstrs cases+        allPairs <- processProofCases scrut cstrs mbt [] cases+        let casesName   = mkName "cases"+            impliesName = mkName "==>"+            mkPair (g, r) = InfixE (Just g) (VarE impliesName) (Just r)+        pure $ AppE (VarE casesName) (ListE (map mkPair allPairs))++-- * pCase++-- | Quasi-quoter for proof case-splits.+--+-- Like 'sCase', but generates @cases [cond ==> proof, ...]@ instead of+-- @ite@ chains. Wildcards are allowed as the last scrutinee (with or+-- without guards), and exhaustiveness is checked at proof time by the+-- @cases@ combinator rather than at compile time.+--+-- Guards within the same constructor accumulate negations: a second guard+-- implicitly assumes the first guard failed. A wildcard guard is the+-- negation of the disjunction of all prior guards (De Morgan).+pCase :: QuasiQuoter+pCase = QuasiQuoter+  { quoteExp  = extractProof+  , quotePat  = bad "pattern"+  , quoteType = bad "type"+  , quoteDec  = bad "declaration"+  }+  where+    bad ctx _ = fail Unknown $ "pCase: not usable in " <> ctx <> " context"++    extractProof :: String -> ExpQ+    extractProof src = do+      let fullCase = "case " <> src+          offsets  = findOffsets src+      case metaParse fullCase of+        Right (CaseE scrut0 matches0) -> do+          -- Transform any nested case expressions in the RHS/guards of each match.+          -- Inner case expressions become proof case-splits (cases [...]),+          -- just like inner cases in sCase become symbolic ite-chains.+          matches <- transformMatchesProof matches0+          scrut   <- transformNestedCasesProof scrut0+          mbTypeInfo <- inferType "pCase" matches+          case mbTypeInfo of+            Nothing -> do+              -- Wildcard-only: no type needed, build proof cases directly+              allCases <- concat <$> zipWithM (matchToPair scrut) (offsets ++ repeat Unknown) matches+              loc <- location+              checkWildcard "pCase" loc allCases+              allPairs <- processProofCases scrut [] Nothing [] allCases+              let casesName   = mkName "cases"+                  impliesName = mkName "==>"+                  mkPair (g, r) = InfixE (Just g) (VarE impliesName) (Just r)+              pure $ AppE (VarE casesName) (ListE (map mkPair allPairs))+            Just (typ, mbt) -> do+              cs <- zipWithM (matchToPair scrut) (offsets ++ repeat Unknown) matches+              validated <- checkProofCase typ mbt (concat cs)+              buildProofCase scrut typ mbt validated+        Right _  -> fail Unknown "pCase: Parse error, cannot extract a case-expression."+        Left err -> handleParseError "pCase" err++    -- | Validate cases for proof context+    checkProofCase :: String -> Maybe BuiltinType -> [Case] -> Q [Case]+    checkProofCase typ mbt cases = do+        loc <- location+        cstrs <- getCstrs mbt typ++        checkWildcard "pCase" loc cases+        checkArities  "pCase" typ cstrs cases++        -- Wildcards must come after all explicit constructor matches+        let checkWildBeforeCstr [] = pure ()+            checkWildBeforeCstr (CWild o _ _ : rest)+              | any (\case CMatch{} -> True; _ -> False) rest+              = fail o $ unlines $ "pCase: Wildcard must come after all constructor matches:"+                                 : ["        " ++ showCaseGen (Just loc) r | r <- filter (\case CMatch{} -> True; _ -> False) rest]+            checkWildBeforeCstr (_ : rest) = checkWildBeforeCstr rest+        checkWildBeforeCstr cases++        -- Check overlap: unguarded constructor match followed by same constructor+        let chk2 [] = pure ()+            chk2 (c@(CMatch _ nm _ Nothing _ _) : rest)+              = case filter (maybe False (sameBase nm) . getCaseConstructor) rest of+                  [] -> chk2 rest+                  os -> overlap loc (last os) (c : init os)+            chk2 (_ : rest) = chk2 rest++        chk2 cases++        -- If every constructor has an unguarded match, any wildcard is redundant+        let fullyCovered = [ cstr | (cstr, _) <- cstrs+                                  , any (\c -> maybe False (sameBase cstr) (getCaseConstructor c) && not (isGuarded c)) cases+                                  ]+        case [c | c@CWild{} <- cases] of+          []    -> pure ()+          (c:_) | length fullyCovered == length cstrs+                -> fail (caseOffset c) "pCase: Wildcard match is redundant"+                | True+                -> pure ()++        -- No exhaustiveness check: the `cases` combinator checks completeness at proof time.+        pure cases++    overlap loc x xs = fail (caseOffset x) $ unlines $ [ "pCase: Overlapping case constructors:"+                                                        , "        Constructor: " ++ showCase x+                                                        ]+                                                     ++ [ "      Overlaps with:" ]+                                                     ++ [ "        " ++ showCaseGen (Just loc) p | p <- xs]++    -- | Build the proof case expression+    buildProofCase :: Exp -> String -> Maybe BuiltinType -> [Case] -> ExpQ+    buildProofCase scrut typ mbt cases = do+        cstrs <- getCstrs mbt typ+        allPairs <- processProofCases scrut cstrs mbt [] cases+        let casesName   = mkName "cases"+            impliesName = mkName "==>"+            mkPair (g, r) = InfixE (Just g) (VarE impliesName) (Just r)+        pure $ AppE (VarE casesName) (ListE (map mkPair allPairs))++-- * Proof case processing++-- | Process all proof cases linearly, accumulating prior guards.+-- Shared between the top-level @pCase@ quasi-quoter and 'processProofCaseExp'+-- (which handles nested @case@ expressions inside @[pCase| ... |]@).+--+-- Prior guards are tagged with their constructor name (Nothing for wildcards).+-- Each entry stores (constructor, fullGuard, userGuardOnly):+--+--   * fullGuard    = the complete guard expression (used for wildcard De Morgan negation)+--   * userGuardOnly = Just the user guard part (used for same-constructor negation),+--                     Nothing if unguarded (same-constructor arms don't negate unguarded matches)+processProofCases :: Exp -> [(Name, [Type])] -> Maybe BuiltinType -> [(Maybe Name, Exp, Maybe Exp)] -> [Case] -> Q [(Exp, Exp)]+processProofCases scrut cstrs mbt priorGuards0 cases0 = go priorGuards0 cases0+  where+    -- Aggregate, per constructor, the variables used in any guard or RHS across all arms with that constructor.+    -- A pattern var used in *some* same-constructor arm but not in *this* arm's RHS is dropped from the+    -- RHS bindings (the guard handles its own bindings via 'grdBindings'), avoiding false unused-binding+    -- warnings. A pattern var truly unused everywhere is kept so GHC can flag the user oversight.+    cstrUsedVars :: Map.Map Name (Set Name)+    cstrUsedVars = Map.fromListWith Set.union+                     [ (nm, allUsed) | CMatch _ nm _ _ _ allUsed <- cases0 ]++    go _           []         = pure []+    go priorGuards (c:rest) = case c of+      CWild _ mbG rhs -> do+        -- Wildcard: negate the disjunction of ALL prior full guards (De Morgan)+        let allGuards  = [g | (_, g, _) <- priorGuards]+            baseGuard  = negateAllGuards allGuards+            finalGuard = case mbG of+                           Nothing -> baseGuard+                           Just g  -> sAndAll [baseGuard, g]+        rest' <- go (priorGuards ++ [(Nothing, finalGuard, Nothing)]) rest+        pure $ (finalGuard, rhs) : rest'++      CMatch _o nm mbp mbG rhs _allUsed -> do+        let ts   = case lookupBase nm cstrs of+                     Just t  -> t+                     Nothing -> error $ "pCase: impossible: unknown constructor " ++ nameBase nm+            pats = fromMaybe (map (const WildP) ts) mbp++            -- Build let-bindings for pattern variables+            args    = [(i, mkAccessorFor mbt nm i scrut) | (i, _) <- zip [(1 :: Int) ..] ts]+            bindings = [ ValD (VarP v) (NormalB acc) []+                       | (i, acc) <- args, VarP v <- [pats !! (i - 1)] ]++            testerGuard = mkTesterFor mbt nm scrut++            -- For list cons patterns in pCase, add a destructuring equality:+            --   scrut .=== head scrut .: tail scrut+            -- Lists use SMT Seq (not declare-datatypes), so the solver doesn't automatically+            -- know that xs = head xs .: tail xs from sNot (null xs). We must add an explicit+            -- equality to give the solver this information, mirroring what 'split' does.+            -- All other types (ADTs, Maybe, Either, Tuple) use declare-datatypes and get+            -- these axioms for free.+            -- NB. For nested list cons patterns, the same equality is added by 'flattenCons'.+            destructEq+              | Just BTList <- mbt, nameBase nm == ":"+              = let hd = AppE (VarE (sbvName "Data.SBV.List" "head")) scrut+                    tl = AppE (VarE (sbvName "Data.SBV.List" "tail")) scrut+                in [foldl1 AppE [VarE '(.===), scrut, InfixE (Just hd) (VarE '(.:)) (Just tl)]]+              | True+              = []++            -- Only negate prior USER guards for the SAME constructor (others are mutually exclusive)+            sameUserGuards = [ ug | (Just cn, _, Just ug) <- priorGuards, sameBase cn nm ]+            negPriors      = map (AppE (VarE 'sNot)) sameUserGuards++            -- Build the final guard (wrap user guard in bindings so pattern vars are in scope)+            grdVars     = maybe Set.empty freeVars mbG+            grdBindings = filter (\case+                                     ValD (VarP v) _ _ -> v `Set.member` grdVars+                                     _                 -> True) bindings+            guardParts  = [testerGuard] ++ destructEq ++ negPriors ++ maybe [] (pure . addLocals grdBindings) mbG+            finalGuard  = sAndAll guardParts++            -- Wrap RHS with let-bindings. Keep a binding when the variable is used in this RHS, OR when+            -- it isn't used in any same-constructor arm (so GHC can warn about a truly unused pattern var).+            -- Drop it when used in some same-constructor arm but not here, to avoid spurious warnings.+            cstrUsed = Map.findWithDefault Set.empty nm cstrUsedVars+            rhsVars  = freeVars rhs+            rhs'     = addLocals (filter (\case+                                             ValD (VarP v) _ _ -> v `Set.member` rhsVars+                                                               || not (v `Set.member` cstrUsed)+                                             _                 -> True) bindings) rhs++            -- Track: full guard for wildcard negation, user guard for same-constructor negation+            userGuardOnly = case mbG of+                              Just g  -> Just (addLocals grdBindings g)+                              Nothing -> Nothing+            priorGuards' = priorGuards ++ [(Just nm, finalGuard, userGuardOnly)]++        rest' <- go priorGuards' rest+        pure $ (finalGuard, rhs') : rest'++-- | Negate the disjunction of all given guards using De Morgan: sNot (g1 .|| g2 .|| ...)+negateAllGuards :: [Exp] -> Exp+negateAllGuards [] = VarE 'sTrue+negateAllGuards gs = AppE (VarE 'sNot) (foldl1 (\a b -> foldl1 AppE [VarE '(.||), a, b]) gs)++-- * Standalone helpers++-- | Free variables of an expression, respecting lexical scope.+-- A variable is free if it is used (VarE) and not bound by any enclosing+-- LetE, LamE, or CaseE at its use site.+freeVars :: Exp -> Set Name+freeVars = go Set.empty+ where+   go :: Set Name -> Exp -> Set Name+   go bound = \case+     VarE n          -> if n `Set.member` bound then Set.empty else Set.singleton n+     ConE {}         -> Set.empty+     LitE {}         -> Set.empty+     AppE f x        -> go bound f <> go bound x+     AppTypeE e _    -> go bound e+     InfixE ml o mr  -> maybe Set.empty (go bound) ml <> go bound o <> maybe Set.empty (go bound) mr+     UInfixE l o r   -> go bound l <> go bound o <> go bound r+     ParensE e       -> go bound e+     CondE c t f     -> go bound c <> go bound t <> go bound f+     TupE mes        -> foldMap (maybe Set.empty (go bound)) mes+     UnboxedTupE mes -> foldMap (maybe Set.empty (go bound)) mes+     ListE es        -> foldMap (go bound) es+     SigE e _        -> go bound e+     RecConE _ fes   -> foldMap (go bound . snd) fes+     RecUpdE e fes   -> go bound e <> foldMap (go bound . snd) fes+     -- Binding forms: extend the bound set in the appropriate scope+     LamE ps body    -> go (bound <> patsNames ps) body+     LetE ds body    -> let bound' = bound <> decsNames ds+                        in foldMap (goDec bound') ds <> go bound' body+     CaseE scr ms    -> go bound scr <> foldMap (goMatch bound) ms+     -- Fallback for other expression forms: conservatively report all+     -- VarE names minus known bound (may over-report, never under-report)+     other           -> allVarE other Set.\\ bound++   goMatch :: Set Name -> Match -> Set Name+   goMatch bound (Match pat body ds) =+     let bound' = bound <> patNames pat <> decsNames ds+     in goBody bound' body <> foldMap (goDec bound') ds++   goBody :: Set Name -> Body -> Set Name+   goBody bound (NormalB e)   = go bound e+   goBody bound (GuardedB gs) = foldMap (\(g, e) -> goGuard bound g <> go bound e) gs++   goGuard :: Set Name -> Guard -> Set Name+   goGuard bound (NormalG e) = go bound e+   goGuard _     _           = Set.empty++   goDec :: Set Name -> Dec -> Set Name+   goDec bound (ValD _ body ds)       = goBody bound body <> foldMap (goDec bound) ds+   goDec bound (FunD _ cs)            = foldMap (goClause bound) cs+   goDec _     _                      = Set.empty++   goClause :: Set Name -> Clause -> Set Name+   goClause bound (Clause ps body ds) =+     let bound' = bound <> patsNames ps <> decsNames ds+     in goBody bound' body <> foldMap (goDec bound') ds++   -- Extract bound names from patterns+   patNames :: Pat -> Set Name+   patNames (VarP n)          = Set.singleton n+   patNames (AsP n p)         = Set.singleton n <> patNames p+   patNames (ConP _ _ ps)     = patsNames ps+   patNames (InfixP p1 _ p2)  = patNames p1 <> patNames p2+   patNames (UInfixP p1 _ p2) = patNames p1 <> patNames p2+   patNames (TupP ps)         = patsNames ps+   patNames (UnboxedTupP ps)  = patsNames ps+   patNames (ListP ps)        = patsNames ps+   patNames (SigP p _)        = patNames p+   patNames (ParensP p)       = patNames p+   patNames (TildeP p)        = patNames p+   patNames (BangP p)         = patNames p+   patNames (ViewP _ p)       = patNames p+   patNames WildP             = Set.empty+   patNames (LitP _)          = Set.empty+   patNames _                 = Set.empty++   patsNames :: [Pat] -> Set Name+   patsNames = foldMap patNames++   -- Extract bound names from declarations+   decsNames :: [Dec] -> Set Name+   decsNames ds = Set.fromList $ [n | ValD (VarP n) _ _ <- ds] ++ [n | FunD n _ <- ds]++   -- Collect all VarE names in an expression (scope-unaware, for fallback only)+   allVarE :: Exp -> Set Name+   allVarE = \case+     VarE n          -> Set.singleton n+     AppE f x        -> allVarE f <> allVarE x+     AppTypeE e _    -> allVarE e+     InfixE ml o mr  -> maybe Set.empty allVarE ml <> allVarE o <> maybe Set.empty allVarE mr+     UInfixE l o r   -> allVarE l <> allVarE o <> allVarE r+     ParensE e       -> allVarE e+     CondE c t f     -> allVarE c <> allVarE t <> allVarE f+     TupE mes        -> foldMap (maybe Set.empty allVarE) mes+     UnboxedTupE mes -> foldMap (maybe Set.empty allVarE) mes+     ListE es        -> foldMap allVarE es+     SigE e _        -> allVarE e+     RecConE _ fes   -> foldMap (allVarE . snd) fes+     RecUpdE e fes   -> allVarE e <> foldMap (allVarE . snd) fes+     LamE _ body     -> allVarE body+     LetE ds body    -> foldMap allVarEDec ds <> allVarE body+     CaseE scr ms    -> allVarE scr <> foldMap allVarEMatch ms+     _               -> Set.empty++   allVarEMatch :: Match -> Set Name+   allVarEMatch (Match _ body ds) = allVarEBody body <> foldMap allVarEDec ds++   allVarEBody :: Body -> Set Name+   allVarEBody (NormalB e)   = allVarE e+   allVarEBody (GuardedB gs) = foldMap (\(_, e) -> allVarE e) gs++   allVarEDec :: Dec -> Set Name+   allVarEDec (ValD _ body ds) = allVarEBody body <> foldMap allVarEDec ds+   allVarEDec (FunD _ cs)      = foldMap (\(Clause _ body ds) -> allVarEBody body <> foldMap allVarEDec ds) cs+   allVarEDec _                = Set.empty++-- | Count the number of arguments in a constructor type by counting arrows.+-- e.g., @Integer -> String -> Bool@ has 2 arguments.+-- Handles both plain ArrowT and multiplicity-annotated arrows (MulArrowT).+countArgs :: Type -> Int+countArgs (AppT (AppT ArrowT _) rest)            = 1 + countArgs rest+countArgs (AppT (AppT (AppT MulArrowT _) _) rest) = 1 + countArgs rest+countArgs (ForallT _ _ t)                         = countArgs t+countArgs _                                       = 0++-- | Generate a symbolic equality guard for a literal pattern.+-- @litToEq off arg lit@ produces the expression @arg .== litVal@.+-- For integers, the literal is used directly (relying on @fromInteger@).+-- For characters and strings, the literal is wrapped with @literal@.+litToEq :: Offset -> Exp -> Lit -> Q Exp+litToEq _   arg (IntegerL n) = pure $ foldl1 AppE [VarE '(.==), arg, LitE (IntegerL n)]+litToEq _   arg (CharL    c) = pure $ foldl1 AppE [VarE '(.==), arg, AppE (VarE 'literal) (LitE (CharL c))]+litToEq _   arg (StringL  s) = pure $ foldl1 AppE [VarE '(.==), arg, AppE (VarE 'literal) (LitE (StringL s))]+litToEq off _   lit          = fail off $ unlines+  [ "sCase/pCase: Unsupported literal in pattern: " ++ show lit+  , "       Only integer, character, and string literals are supported."+  ]
Data/SBV/SEnum.hs view
@@ -39,7 +39,7 @@ import Data.Char (isSpace)  import Prelude hiding (enumFrom, enumFromThen, enumFromTo, enumFromThenTo)-import Data.SBV.List  (enumFrom, enumFromThen, enumFromTo, enumFromThenTo)+import Data.SBV.List  (enumFrom, enumFromThen, enumFromTo, enumFromThenToH)  import Control.Monad (unless) import Data.List (isInfixOf, intercalate)@@ -108,7 +108,13 @@     ([a],    Nothing) -> varE 'enumFrom       `appE` parseHaskellExpr loc a     ([a, b], Nothing) -> varE 'enumFromThen   `appE` parseHaskellExpr loc a `appE` parseHaskellExpr loc b     ([a],    Just c)  -> varE 'enumFromTo     `appE` parseHaskellExpr loc a `appE`                               parseHaskellExpr loc c-    ([a, b], Just c)  -> varE 'enumFromThenTo `appE` parseHaskellExpr loc a `appE` parseHaskellExpr loc b `appE` parseHaskellExpr loc c+    ([a, b], Just c)  -> do ea <- parseHaskellExpr loc a+                            eb <- parseHaskellExpr loc b+                            ec <- parseHaskellExpr loc c+                            -- Pass the from/then step as a hint when it's a statically-known integer+                            -- (e.g. @[m, m-1 .. n]@ => @-1@). Exact-arithmetic instances fold it; the+                            -- rest ignore it. See 'constStep'.+                            varE 'enumFromThenToH `appE` pure ea `appE` pure eb `appE` pure ec `appE` liftMStep (constStep ea eb)      _ -> errorWithLoc loc $ unlines [ "Data.SBV.Enum: Invalid format. Use one of:"                                     , ""@@ -117,6 +123,50 @@                                     , "  [sEnum| a    .. c |]"                                     , "  [sEnum| a, b .. c |]"                                     ]++-- | Read a parsed expression as @base + offset@: a single opaque atom plus an integer constant.+-- @Nothing@ base means the whole thing is a pure integer constant. We only look through @+@ and @-@+-- of integer literals; anything else is treated as an atom. This is intentionally a single-base+-- peel, not a general linear normalizer -- it's exactly enough to recognize @m@, @m-1@, @m+k@, etc.+peel :: Exp -> (Maybe Exp, Integer)+peel (LitE (IntegerL n)) = (Nothing, n)+peel (ParensE e)         = peel e+peel (SigE e _)          = peel e+peel (InfixE  (Just l)               (VarE op) (Just (LitE (IntegerL n)))) = shift op l n+peel (UInfixE l                      (VarE op)       (LitE (IntegerL n)))   = shift op l n+peel (InfixE  (Just (LitE (IntegerL n))) (VarE op) (Just r)) | base op == "+" = add (peel r) n+peel (UInfixE (LitE (IntegerL n))        (VarE op)       r)  | base op == "+" = add (peel r) n+peel e                   = (Just e, 0)++-- | Helper for 'peel': fold a @base <op> lit@ where @op@ is @+@ or @-@.+shift :: Name -> Exp -> Integer -> (Maybe Exp, Integer)+shift op l n = case base op of+                 "+" -> add (peel l) n+                 "-" -> add (peel l) (negate n)+                 _   -> (Just (UInfixE l (VarE op) (LitE (IntegerL n))), 0)++-- | Add a constant to a peeled @(base, offset)@.+add :: (Maybe Exp, Integer) -> Integer -> (Maybe Exp, Integer)+add (b, k) n = (b, k + n)++-- | Unqualified name of an operator (haskell-src-meta may leave it unqualified, so compare by base).+base :: Name -> String+base = nameBase++-- | The from->then step @then - from@, when it's a statically-known integer (same atom on both+-- sides, so the atoms cancel). Returns @Nothing@ for genuinely-symbolic steps (distinct atoms),+-- in which case the quasiquoter falls back to the ordinary, hint-free behavior.+constStep :: Exp -> Exp -> Maybe Integer+constStep from thn+  | bf == bt  = Just (kt - kf)+  | True      = Nothing+  where (bf, kf) = peel from+        (bt, kt) = peel thn++-- | Splice a @`Maybe` `Integer`@ step hint into the generated call.+liftMStep :: Maybe Integer -> Q Exp+liftMStep Nothing  = conE 'Nothing+liftMStep (Just n) = conE 'Just `appE` litE (integerL n)  -- | Parses a string into a Haskell TH Exp using haskell-src-meta parseHaskellExpr :: Loc -> String -> Q Exp
Data/SBV/SMT/SMT.hs view
@@ -9,12 +9,13 @@ -- Abstraction of SMT solvers ----------------------------------------------------------------------------- -{-# LANGUAGE DefaultSignatures          #-}+{-# LANGUAGE BangPatterns               #-} {-# LANGUAGE FlexibleInstances          #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE NamedFieldPuns             #-}+{-# LANGUAGE NumericUnderscores         #-} {-# LANGUAGE OverloadedStrings          #-}-{-# LANGUAGE Rank2Types                 #-}+{-# LANGUAGE RankNTypes                 #-} {-# LANGUAGE ScopedTypeVariables        #-} {-# LANGUAGE TypeApplications           #-} {-# LANGUAGE UndecidableInstances       #-}@@ -27,7 +28,7 @@          Modelable(..)        , SatModel(..), genParse        , extractModels, getModelValues-       , getModelDictionaries, getModelUninterpretedValues+       , getModelDictionaries        , displayModels, showModel, shCV, showModelDictionary         -- * Standard prover engine@@ -61,13 +62,14 @@ import Data.Either (rights)  import System.Directory   (findExecutable)-import System.Environment (getEnv)+import System.Environment (getEnv, lookupEnv) import System.Exit        (ExitCode(..))-import System.IO          (hClose, hFlush, hPutStrLn, hGetContents, hGetLine, hReady, hGetChar)+import System.IO          (hClose, hFlush, hGetContents, hGetLine, hReady, hGetChar) import System.Process     (runInteractiveProcess, waitForProcess, terminateProcess)  import qualified Data.Map.Strict as M import qualified Data.Text       as T+import qualified Data.Text.IO    as TIO import Text.Read (readMaybe)  import Data.SBV.Core.AlgReals@@ -83,7 +85,7 @@                               )  import Data.SBV.Utils.PrettyNum-import Data.SBV.Utils.Lib       (joinArgs, splitArgs, needsBars)+import Data.SBV.Utils.Lib       (joinArgs, splitArgs, needsBars, showText, unQuote) import Data.SBV.Utils.SExpr     (parenDeficit, nameSupply)  import qualified System.Timeout as Timeout (timeout)@@ -111,10 +113,10 @@                   deriving NFData  -- | An 'Data.SBV.allSat' call results in a t'AllSatResult'-data AllSatResult = AllSatResult { allSatMaxModelCountReached  :: Bool          -- ^ Did we reach the user given model count limit?-                                 , allSatSolverReturnedUnknown :: Bool          -- ^ Did the solver report unknown at the end?-                                 , allSatSolverReturnedDSat    :: Bool          -- ^ Did the solver report delta-satisfiable at the end?-                                 , allSatResults               :: [SMTResult]   -- ^ All satisfying models+data AllSatResult = AllSatResult { allSatMaxModelCountReached  :: !Bool          -- ^ Did we reach the user given model count limit?+                                 , allSatSolverReturnedUnknown :: !Bool          -- ^ Did the solver report unknown at the end?+                                 , allSatSolverReturnedDSat    :: !Bool          -- ^ Did the solver report delta-satisfiable at the end?+                                 , allSatResults               :: ![SMTResult]   -- ^ All satisfying models                                  }  -- | A 'Data.SBV.safe' call results in a t'SafeResult'@@ -144,7 +146,7 @@                                      "Falsifiable in an extension field:\n"                                      r --- User friendly way of printing satisfiablity results+-- User friendly way of printing satisfiability results instance Show SatResult where   show (SatResult r) = showSMTResult "Unsatisfiable"                                      "Unknown"@@ -233,15 +235,14 @@   -- | Given a sequence of constant-words, extract one instance of the type @a@, returning   -- the remaining elements untouched. If the next element is not what's expected for this   -- type you should return 'Nothing'-  parseCVs  :: [CV] -> Maybe (a, [CV])+  parseCVs :: [CV] -> Maybe (a, [CV])+   -- | Given a parsed model instance, transform it using @f@, and return the result.   -- The default definition for this method should be sufficient in most use cases.-  cvtModel  :: (a -> Maybe b) -> Maybe (a, [CV]) -> Maybe (b, [CV])-  cvtModel f x = x >>= \(a, r) -> f a >>= \b -> return (b, r)+  cvtModel :: (a -> Maybe b) -> Maybe (a, [CV]) -> Maybe (b, [CV])+  cvtModel f x = x >>= \(a, r) -> f a >>= \b -> pure (b, r) -  default parseCVs :: Read a => [CV] -> Maybe (a, [CV])-  parseCVs (CV _ (CUserSort (_, s)) : r) = Just (read s, r)-  parseCVs _                             = Nothing+  {-# MINIMAL parseCVs #-}  -- | Parse a signed/sized value from a sequence of CVs genParse :: Integral a => Kind -> [CV] -> Maybe (a, [CV])@@ -250,12 +251,12 @@  -- | Base case for 'SatModel' at unit type. Comes in handy if there are no real variables. instance SatModel () where-  parseCVs xs = return ((), xs)+  parseCVs xs = pure ((), xs)  -- | 'Bool' as extracted from a model instance SatModel Bool where   parseCVs xs = do (x, r) <- genParse KBool xs-                   return ((x :: Integer) /= 0, r)+                   pure ((x :: Integer) /= 0, r)  -- | 'Word8' as extracted from a model instance SatModel Word8 where@@ -322,13 +323,30 @@ instance (KnownNat n, BVIsNonZero n) => SatModel (IntN n) where   parseCVs = genParse (kindOf (undefined :: IntN n)) +-- | Constructing models for t'ArrayModel'+instance (SatModel k, SatModel v) => SatModel (ArrayModel k v) where+  parseCVs (CV (KArray kk kv) (CArray (ArrayModel tbl def)) : r)+    | Just (def', _) <- parseCVs @v [CV kv def]+    , let convert (k, v) = do+            (k', _) <- parseCVs @k [CV kk k]+            (v', _) <- parseCVs @v [CV kv v]+            pure (k', v')+    , Just tbl' <- traverse convert tbl+    = Just (ArrayModel tbl' def', r)+  parseCVs _ = Nothing+ -- | @CV@ as extracted from a model; trivial definition instance SatModel CV where   parseCVs (cv : r) = Just (cv, r)   parseCVs []       = Nothing  -- | A rounding mode, extracted from a model. (Default definition suffices)-instance SatModel RoundingMode+instance SatModel RoundingMode where+  parseCVs (CV k (CADT (s, [])) : r)+    | isRoundingMode k+    , Just mode <- s `lookup` [(show m, m) | m <- [minBound .. maxBound :: RoundingMode]]+    = Just (mode, r)+  parseCVs _ = Nothing  -- | 'String' as extracted from a model instance {-# OVERLAPS #-} SatModel [Char] where@@ -355,37 +373,37 @@ instance (SatModel a, SatModel b) => SatModel (a, b) where   parseCVs as = do (a, bs) <- parseCVs as                    (b, cs) <- parseCVs bs-                   return ((a, b), cs)+                   pure ((a, b), cs)  -- | 3-Tuples extracted from a model instance (SatModel a, SatModel b, SatModel c) => SatModel (a, b, c) where   parseCVs as = do (a,      bs) <- parseCVs as                    ((b, c), ds) <- parseCVs bs-                   return ((a, b, c), ds)+                   pure ((a, b, c), ds)  -- | 4-Tuples extracted from a model instance (SatModel a, SatModel b, SatModel c, SatModel d) => SatModel (a, b, c, d) where   parseCVs as = do (a,         bs) <- parseCVs as                    ((b, c, d), es) <- parseCVs bs-                   return ((a, b, c, d), es)+                   pure ((a, b, c, d), es)  -- | 5-Tuples extracted from a model instance (SatModel a, SatModel b, SatModel c, SatModel d, SatModel e) => SatModel (a, b, c, d, e) where   parseCVs as = do (a, bs)            <- parseCVs as                    ((b, c, d, e), fs) <- parseCVs bs-                   return ((a, b, c, d, e), fs)+                   pure ((a, b, c, d, e), fs)  -- | 6-Tuples extracted from a model instance (SatModel a, SatModel b, SatModel c, SatModel d, SatModel e, SatModel f) => SatModel (a, b, c, d, e, f) where   parseCVs as = do (a, bs)               <- parseCVs as                    ((b, c, d, e, f), gs) <- parseCVs bs-                   return ((a, b, c, d, e, f), gs)+                   pure ((a, b, c, d, e, f), gs)  -- | 7-Tuples extracted from a model instance (SatModel a, SatModel b, SatModel c, SatModel d, SatModel e, SatModel f, SatModel g) => SatModel (a, b, c, d, e, f, g) where   parseCVs as = do (a, bs)                  <- parseCVs as                    ((b, c, d, e, f, g), hs) <- parseCVs bs-                   return ((a, b, c, d, e, f, g), hs)+                   pure ((a, b, c, d, e, f, g), hs)  -- | Various SMT results that we can extract models out of. class Modelable a where@@ -402,15 +420,7 @@    -- | Extract a model value for a given element. Also see `getModelValues`.   getModelValue :: SymVal b => String -> a -> Maybe b-  getModelValue v r = fromCV `fmap` (v `M.lookup` getModelDictionary r)--  -- | Extract a representative name for the model value of an uninterpreted kind.-  -- This is supposed to correspond to the value as computed internally by the-  -- SMT solver; and is unportable from solver to solver. Also see `getModelUninterpretedValues`.-  getModelUninterpretedValue :: String -> a -> Maybe String-  getModelUninterpretedValue v r = case v `M.lookup` getModelDictionary r of-                                     Just (CV _ (CUserSort (_, s))) -> Just s-                                     _                              -> Nothing+  getModelValue v r = fromCV <$> (v `M.lookup` getModelDictionary r)    -- | A simpler variant of 'getModelAssignment' to get a model out without the fuss.   extractModel :: SatModel b => a -> Maybe b@@ -445,10 +455,6 @@ getModelValues :: SymVal b => String -> AllSatResult -> [Maybe b] getModelValues s AllSatResult{allSatResults = xs} =  map (s `getModelValue`) xs --- | Extract value of an uninterpreted variable from an all-sat call. Similar to `getModelUninterpretedValue`.-getModelUninterpretedValues :: String -> AllSatResult -> [Maybe String]-getModelUninterpretedValues s AllSatResult{allSatResults = xs} =  map (s `getModelUninterpretedValue`) xs- -- | t'ThmResult' as a generic model provider instance Modelable ThmResult where   getModelAssignment (ThmResult r) = getModelAssignment r@@ -515,8 +521,8 @@ displayModels arrange disp AllSatResult{allSatResults = ms} = do     let models = rights (map (getModelAssignment . SatResult) ms)     inds <- zipWithM display (arrange models) [(1::Int)..]-    return $ last (0:inds)-  where display r i = disp i r >> return i+    pure $ last (0:inds)+  where display r i = disp i r >> pure i  -- | Show an SMTResult; generic version showSMTResult :: String -> String -> String -> String -> (Maybe String -> String) -> String -> SMTResult -> String@@ -526,7 +532,7 @@   Satisfiable _   m                  -> satMsgModel    ++ showModel cfg m   DeltaSat    _ p m                  -> dSatMsgModel p ++ showModel cfg m   SatExtField _ (SMTModel b _ _ _)   -> satExtMsg   ++ showModelDictionary True False cfg b-  Unknown     _ r                    -> unkMsg ++ ".\n" ++ "  Reason: " `alignPlain` show r+  Unknown     _ r                    -> unkMsg ++ ".\n" ++ T.unpack ("  Reason: " `alignPlain` showText r)   ProofError  _ [] Nothing           -> "*** An error occurred. No additional information available. Try running in verbose mode."   ProofError  _ ls Nothing           -> "*** An error occurred.\n" ++ intercalate "\n" (map ("***  " ++) ls)   ProofError  _ ls (Just r)          -> intercalate "\n" $  [ "*** " ++ l | l <- ls]@@ -567,7 +573,7 @@         relevantVars  = filter (not . ignore) allVars         ignore (T.pack -> s, _)           | includeEverything = False-          | True              = mustIgnoreVar cfg (T.unpack s)+          | True              = mustIgnoreVar cfg s          shM (s, RegularCV v) = let vs = shCV cfg s v in ((length s, s), (vlength vs, vs))         shM (s, other)       = let vs = show other   in ((length s, s), (vlength vs, vs))@@ -599,7 +605,7 @@          trim = reverse . dropWhile isSpace . reverse -        (ats, rt) = case map showBaseKind ts of+        (ats, rt) = case map (T.unpack . showBaseKind) ts of                      []  -> error $ "showModelUI: Unexpected type: " ++ show (SBVType ts)                      tss -> (init tss, last tss) @@ -636,9 +642,9 @@         -- NB. We'll ignore crackNum here. Seems to be overkill while displaying an         -- uninterpreted function.         scv = sh (printBase cfg)-          where sh 2  = binP+          where sh 2  = T.unpack . binP                 sh 10 = showCV False-                sh 16 = hexP+                sh 16 = T.unpack . hexP                 sh _  = show          -- NB. If we have a float NaN/Infinity/+0/-0 etc. these will@@ -658,9 +664,9 @@ -- | Show a constant value, in the user-specified base shCV :: SMTConfig -> String -> CV -> String shCV SMTConfig{printBase, crackNum, verbose, crackNumSurfaceVals} nm cv = cracked (sh printBase cv)-  where sh 2  = binS+  where sh 2  = T.unpack . binS         sh 10 = show-        sh 16 = hexS+        sh 16 = T.unpack . hexS         sh n  = \w -> show w ++ " -- Ignoring unsupported printBase " ++ show n ++ ", use 2, 10, or 16."          cracked def@@ -670,7 +676,7 @@                              Just cs -> def ++ "\n" ++ cs  -- | Helper function to spin off to an SMT solver.-pipeProcess :: SMTConfig -> State -> String -> [String] -> String -> (State -> IO a) -> IO a+pipeProcess :: SMTConfig -> State -> String -> [String] -> T.Text -> (State -> IO a) -> IO a pipeProcess cfg ctx execName opts pgm continuation = do     mbExecPath <- findExecutable execName     case mbExecPath of@@ -688,14 +694,42 @@                                                                                                 ])                         ] +-- Communication-level timeouts (microseconds). These are NOT solver timeouts+-- (i.e., how long check-sat takes); they govern how long SBV waits for the+-- solver process to respond to individual IPC commands.+--+-- Adjust via the @SBV_COMM_TIMEOUT_FACTOR@ environment variable (default: 1).+-- For instance, setting it to 2 doubles all communication timeouts.++-- | Timeout for @set-option@ commands (expected to be fast).+setCommandTimeOut :: Int+setCommandTimeOut = 2_000_000   -- 2 seconds++-- | Timeout for subsequent response lines once the solver starts responding,+--   and for heartbeat\/sync-point reads.+defaultLineTimeOut :: Int+defaultLineTimeOut = 5_000_000  -- 5 seconds++-- | Read @SBV_COMM_TIMEOUT_FACTOR@ and return a function that scales timeout values.+-- If the variable is unset, the identity function is returned. If set to an invalid+-- value (not a positive number), an error is raised.+commTimeOutScaler :: IO (Int -> Int)+commTimeOutScaler = do+   mbFactor <- lookupEnv "SBV_COMM_TIMEOUT_FACTOR"+   case mbFactor of+     Nothing -> pure id+     Just s  -> case reads s of+                  [(f, "")] | f > (0 :: Double) -> pure (round . (f *) . fromIntegral)+                  _                              -> error $ "SBV_COMM_TIMEOUT_FACTOR: invalid value " ++ show s ++ ". Must be a positive number."+ -- | A standard engine interface. Most solvers follow-suit here in how we "chat" to them.. standardEngine :: String                -> String                -> SMTEngine standardEngine envName envOptName cfg ctx pgm continuation = do -    execName <-                    getEnv envName     `C.catch` (\(e :: C.SomeException) -> handleAsync e (return (executable (solver cfg))))-    execOpts <- (splitArgs `fmap`  getEnv envOptName) `C.catch` (\(e :: C.SomeException) -> handleAsync e (return (options (solver cfg) cfg)))+    execName <-                    getEnv envName     `C.catch` (\(e :: C.SomeException) -> handleAsync e (pure (executable (solver cfg))))+    execOpts <- (splitArgs <$> getEnv envOptName) `C.catch` (\(e :: C.SomeException) -> handleAsync e (pure (options (solver cfg) cfg)))      let cfg' = cfg {solver = (solver cfg) {executable = execName, options = const execOpts}} @@ -705,15 +739,15 @@ -- communicating with it. standardSolver :: SMTConfig       -- ^ The current configuration                -> State           -- ^ Context in which we are running-               -> String          -- ^ The program+               -> T.Text          -- ^ The program                -> (State -> IO a) -- ^ The continuation                -> IO a standardSolver config ctx pgm continuation = do-    let msg s    = debug config ["** " ++ s]+    let msg s    = debug config ["** " <> s]         smtSolver= solver config         exec     = executable smtSolver         opts     = options smtSolver config ++ extraArgs config-    msg $ "Calling: "  ++ (exec ++ (if null opts then "" else " ") ++ joinArgs opts)+    msg $ "Calling: "  <> T.pack (exec ++ (if null opts then "" else " ") ++ joinArgs opts)     rnf pgm `seq` pipeProcess config ctx exec opts pgm continuation  -- | An internal type to track of solver interactions@@ -722,21 +756,48 @@                 | SolverException String -- ^ Something else went wrong  -- | A variant of @readProcessWithExitCode@; except it deals with SBV continuations-runSolver :: SMTConfig -> State -> FilePath -> [String] -> String -> (State -> IO a) -> IO a+runSolver :: SMTConfig -> State -> FilePath -> [String] -> T.Text -> (State -> IO a) -> IO a runSolver cfg ctx execPath opts pgm continuation- = do let nm  = show (name (solver cfg))-          msg = debug cfg . map ("*** " ++)+ = do scaler <- commTimeOutScaler +      let nm  = show (name (solver cfg))+          msg = debug cfg . map ("*** " <>)+           clean = preprocess (solver cfg)            -- the very first command we send           heartbeat = "(set-option :print-success true)" +          -- Scaled communication timeouts+          setCommandTO  = Just (scaler setCommandTimeOut)+          defaultLineTO = Just (scaler defaultLineTimeOut)++          -- Default SBVException with solver config baked in; callers override fields as needed+          solverException desc =+             let (errOut, description)+                    | "(error" `isPrefixOf` desc+                    = ( Just $ unQuote (dropWhile isSpace (dropWhile (not . isSpace) (init desc)))+                      , "Unexpected solver error"+                      )+                    | True+                    = (Nothing, desc)+             in SBVException { sbvExceptionDescription = description+                             , sbvExceptionSent        = Nothing+                             , sbvExceptionExpected    = Nothing+                             , sbvExceptionReceived    = Nothing+                             , sbvExceptionStdOut      = Nothing+                             , sbvExceptionStdErr      = errOut+                             , sbvExceptionExitCode    = Nothing+                             , sbvExceptionConfig      = cfg { solver = (solver cfg) { executable = execPath } }+                             , sbvExceptionReason      = Nothing+                             , sbvExceptionHint        = Nothing+                             }+       (send, ask, getResponseFromSolver, terminateSolver, cleanUp, pid) <- do                 (inh, outh, errh, pid) <- runInteractiveProcess execPath opts Nothing Nothing -                let send :: Maybe Int -> String -> IO ()-                    send mbTimeOut command = do hPutStrLn inh (clean command)+                let send :: Maybe Int -> T.Text -> IO ()+                    send mbTimeOut command = do TIO.hPutStrLn inh (clean command)                                                 hFlush inh                                                 recordTranscript (transcript cfg) $ SentMsg command mbTimeOut @@ -745,40 +806,34 @@                       where chk cmd = cmd /= heartbeat && "(set-option :" `isPrefixOf` cmd                      -- Send a line, get a whole s-expr. We ignore the pathetic case that there might be a string with an unbalanced parentheses in it in a response.-                    ask :: Maybe Int -> String -> IO String-                    ask mbTimeOutGiven command =-                                  let -- If the command is a set-option call, make sure there's a timeout on it-                                      -- This ensures that if we try to set an option before diagnostic-output-                                      -- is redirected to stdout and the solver chokes, then we can catch it-                                      mbTimeOut | isSetCommand (Just command) = Just 1000000-                                                | True                        = mbTimeOutGiven--                                      -- solvers don't respond to empty lines or comments; we just pass back+                    ask :: Maybe Int -> T.Text -> IO String+                    ask mbTimeOut command =+                                  let -- solvers don't respond to empty lines or comments; we just pass back                                       -- success in these cases to keep the illusion of everything has a response-                                      cmd = dropWhile isSpace command+                                      cmd = T.dropWhile isSpace command -                                  in if null cmd || ";" `isPrefixOf` cmd-                                     then return "success"+                                  in if T.null cmd || ";" `T.isPrefixOf` cmd+                                     then pure "success"                                      else do send mbTimeOut command-                                             getResponseFromSolver (Just command) mbTimeOut+                                             getResponseFromSolver (Just (T.unpack command)) mbTimeOut                      -- Get a response from the solver, with an optional time-out on how long-                    -- to wait. Note that there's *always* a time-out of 5 seconds once we get the-                    -- first line of response, as while the solver might take it's time to respond,+                    -- to wait. Note that there's *always* a time-out once we get the+                    -- first line of response, as while the solver might take its time to respond,                     -- once it starts responding successive lines should come quickly.                     getResponseFromSolver :: Maybe String -> Maybe Int -> IO String                     getResponseFromSolver mbCommand mbTimeOut = do                                 response <- go True 0 []                                 let collated = intercalate "\n" $ reverse response                                 recordTranscript (transcript cfg) $ RecvMsg collated-                                return collated+                                pure collated                        where safeGetLine isFirst h =-                                         let timeOutToUse | isSetCommand mbCommand = Just 2000000+                                         let timeOutToUse | isSetCommand mbCommand = setCommandTO                                                           | isFirst                = mbTimeOut-                                                          | True                   = Just 5000000-                                             timeOutMsg t | isFirst = "User specified timeout of " ++ showTimeoutValue t ++ " exceeded"-                                                          | True    = "A multiline complete response wasn't received before " ++ showTimeoutValue t ++ " exceeded"+                                                          | True                   = defaultLineTO+                                             timeOutMsg t | isFirst = "User specified timeout of " ++ T.unpack (showTimeoutValue t) ++ " exceeded"+                                                          | True    = "A multiline complete response wasn't received before " ++ T.unpack (showTimeoutValue t) ++ " exceeded"                                               -- Like hGetLine, except it keeps getting lines if inside a string.                                              getFullLine :: IO String@@ -795,7 +850,7 @@                                                                                    if stillInside                                                                                      then collect True sofar'-                                                                                     else return sofar'+                                                                                     else pure sofar'                                               -- Carefully grab things as they are ready. But don't block!                                              collectH handle = reverse <$> coll ""@@ -809,10 +864,14 @@                                                               pure $ dropWhile isSpace <$> mbCts                                           in case timeOutToUse of-                                              Nothing -> SolverRegular <$> getFullLine+                                              Nothing -> do l <- getFullLine+                                                            -- If we see the line starting with error, we're about to die, so give up:+                                                            pure $ if "(error" `isPrefixOf` l+                                                                      then SolverException l+                                                                      else SolverRegular   l                                               Just t  -> do r <- Timeout.timeout t getFullLine                                                             case r of-                                                              Just l  -> return $ SolverRegular l+                                                              Just l  -> pure $ SolverRegular l                                                               Nothing -> do out <- grab outh                                                                             err <- grab errh                                                                             -- in this case, if we have something on out/err pass that back as regular@@ -821,104 +880,87 @@                                                                               _                     -> pure $ SolverTimeout (timeOutMsg t)                              go isFirst i sofar = do-                                            errln <- safeGetLine isFirst outh `C.catch` (\(e :: C.SomeException) -> handleAsync e (return (SolverException (show e))))+                                            errln <- safeGetLine isFirst outh `C.catch` (\(e :: C.SomeException) -> handleAsync e (pure (SolverException (show e))))                                             case errln of-                                              SolverRegular ln -> let need  = i + parenDeficit ln+                                              SolverRegular ln -> let !need = i + parenDeficit ln                                                                       -- make sure we get *something*                                                                       empty = case dropWhile isSpace ln of                                                                                 []      -> True                                                                                 (';':_) -> True   -- yes this does happen! I've seen z3 print out comments on stderr.                                                                                 _       -> False                                                                   in case (empty, need <= 0) of-                                                                        (True, _)      -> do debug cfg ["[SKIP] " `alignPlain` ln]+                                                                        (True, _)      -> do debug cfg ["[SKIP] " `alignPlain` T.pack ln]                                                                                              go isFirst need sofar                                                                         (False, False) -> go False   need (ln:sofar)-                                                                        (False, True)  -> return (ln:sofar)+                                                                        (False, True)  -> pure (ln:sofar)                                                SolverException e -> do terminateProcess pid-                                                                      C.throwIO SBVException { sbvExceptionDescription = e-                                                                                             , sbvExceptionSent        = mbCommand-                                                                                             , sbvExceptionExpected    = Nothing-                                                                                             , sbvExceptionReceived    = Just $ unlines (reverse sofar)-                                                                                             , sbvExceptionStdOut      = Nothing-                                                                                             , sbvExceptionStdErr      = Nothing-                                                                                             , sbvExceptionExitCode    = Nothing-                                                                                             , sbvExceptionConfig      = cfg { solver = (solver cfg) { executable = execPath } }-                                                                                             , sbvExceptionReason      = Nothing-                                                                                             , sbvExceptionHint        = if "hGetLine: end of file" `isInfixOf` e-                                                                                                                         then Just [ "Solver process prematurely ended communication."-                                                                                                                                   , ""-                                                                                                                                   , "It is likely it was terminated because of a seg-fault."-                                                                                                                                   , "Run with 'transcript=Just \"bad.smt2\"' option, and feed"-                                                                                                                                   , "the generated \"bad.smt2\" file directly to the solver"-                                                                                                                                   , "outside of SBV for further information."-                                                                                                                                   ]-                                                                                                                         else Nothing-                                                                                             }+                                                                      C.throwIO (solverException e)+                                                                                { sbvExceptionSent     = mbCommand+                                                                                , sbvExceptionReceived = Just $ unlines (reverse sofar)+                                                                                , sbvExceptionHint     = if "hGetLine: end of file" `isInfixOf` e+                                                                                                         then Just [ "Solver process prematurely ended communication."+                                                                                                                   , ""+                                                                                                                   , "It is likely it was terminated because of a seg-fault."+                                                                                                                   , "Run with 'transcript=Just \"bad.smt2\"' option, and feed"+                                                                                                                   , "the generated \"bad.smt2\" file directly to the solver"+                                                                                                                   , "outside of SBV for further information."+                                                                                                                   ]+                                                                                                         else Nothing+                                                                                }                                                SolverTimeout e -> do terminateProcess pid -- NB. Do not *wait* for the process, just quit. -                                                                    C.throwIO SBVException { sbvExceptionDescription = "Timeout! " ++ e-                                                                                           , sbvExceptionSent        = mbCommand-                                                                                           , sbvExceptionExpected    = Nothing-                                                                                           , sbvExceptionReceived    = Just $ unlines (reverse sofar)-                                                                                           , sbvExceptionStdOut      = Nothing-                                                                                           , sbvExceptionStdErr      = Nothing-                                                                                           , sbvExceptionExitCode    = Nothing-                                                                                           , sbvExceptionConfig      = cfg { solver = (solver cfg) { executable = execPath } }-                                                                                           , sbvExceptionReason      = Nothing-                                                                                           , sbvExceptionHint        = if not (verbose cfg)-                                                                                                                       then Just ["Run with 'verbose=True' for further information"]-                                                                                                                       else Nothing-                                                                                           }+                                                                    C.throwIO (solverException ("Timeout! " ++ e))+                                                                              { sbvExceptionSent     = mbCommand+                                                                              , sbvExceptionReceived = Just $ unlines (reverse sofar)+                                                                              , sbvExceptionHint     = if not (verbose cfg)+                                                                                                       then Just ["Run with 'verbose=True' for further information"]+                                                                                                       else Nothing+                                                                              }                      terminateSolver = do hClose inh                                          outMVar <- newEmptyMVar-                                         out <- hGetContents outh `C.catch`  (\(e :: C.SomeException) -> handleAsync e (return (show e)))+                                         out <- hGetContents outh `C.catch`  (\(e :: C.SomeException) -> handleAsync e (pure (show e)))                                          _ <- forkIO $ C.evaluate (length out) >> putMVar outMVar ()-                                         err <- hGetContents errh `C.catch`  (\(e :: C.SomeException) -> handleAsync e (return (show e)))+                                         err <- hGetContents errh `C.catch`  (\(e :: C.SomeException) -> handleAsync e (pure (show e)))                                          _ <- forkIO $ C.evaluate (length err) >> putMVar outMVar ()                                          takeMVar outMVar                                          takeMVar outMVar-                                         hClose outh `C.catch`  (\(e :: C.SomeException) -> handleAsync e (return ()))-                                         hClose errh `C.catch`  (\(e :: C.SomeException) -> handleAsync e (return ()))-                                         ex <- waitForProcess pid `C.catch` (\(e :: C.SomeException) -> handleAsync e (return (ExitFailure (-999))))-                                         return (out, err, ex)+                                         hClose outh `C.catch`  (\(e :: C.SomeException) -> handleAsync e (pure ()))+                                         hClose errh `C.catch`  (\(e :: C.SomeException) -> handleAsync e (pure ()))+                                         ex <- waitForProcess pid `C.catch` (\(e :: C.SomeException) -> handleAsync e (pure (ExitFailure (-999))))+                                         pure (out, err, ex)                      cleanUp maybeForwardedException                       = do (out, err, ex) <- terminateSolver -                           msg $   [ "Solver   : " ++ nm-                                   , "Exit code: " ++ show ex+                           msg $   [ "Solver   : " <> T.pack nm+                                   , "Exit code: " <> showText ex                                    ]-                                ++ [ "Std-out  : " ++ intercalate "\n           " (lines out) | not (null out)]-                                ++ [ "Std-err  : " ++ intercalate "\n           " (lines err) | not (null err)]+                                <> [ "Std-out  : " <> T.pack (intercalate "\n           " (lines out)) | not (null out)]+                                <> [ "Std-err  : " <> T.pack (intercalate "\n           " (lines err)) | not (null err)]                             finalizeTranscript (transcript cfg) ex                            recordEndTime cfg ctx                             case (ex, maybeForwardedException) of                              (_,           Just forwardedException) -> C.throwIO forwardedException-                             (ExitSuccess, _)                       -> return ()+                             (ExitSuccess, _)                       -> pure ()                              _                                      -> if ignoreExitCode cfg-                                                                          then msg ["Ignoring non-zero exit code of " ++ show ex ++ " per user request!"]-                                                                          else C.throwIO SBVException { sbvExceptionDescription = "Failed to complete the call to " ++ nm-                                                                                                      , sbvExceptionSent        = Nothing-                                                                                                      , sbvExceptionExpected    = Nothing-                                                                                                      , sbvExceptionReceived    = Nothing-                                                                                                      , sbvExceptionStdOut      = Just out-                                                                                                      , sbvExceptionStdErr      = Just err-                                                                                                      , sbvExceptionExitCode    = Just ex-                                                                                                      , sbvExceptionConfig      = cfg { solver = (solver cfg) { executable = execPath } }-                                                                                                      , sbvExceptionReason      = Nothing-                                                                                                      , sbvExceptionHint        = if not (verbose cfg)-                                                                                                                                  then Just ["Run with 'verbose=True' for further information"]-                                                                                                                                  else Nothing+                                                                          then msg ["Ignoring non-zero exit code of " <> showText ex <> " per user request!"]+                                                                          else C.throwIO (solverException ("Failed to complete the call to " ++ nm))+                                                                                                      { sbvExceptionStdOut    = Just out+                                                                                                      , sbvExceptionStdErr    = Just err+                                                                                                      , sbvExceptionExitCode  = Just ex+                                                                                                      , sbvExceptionHint      = if not (verbose cfg)+                                                                                                                                then Just ["Run with 'verbose=True' for further information"]+                                                                                                                                else Nothing                                                                                                       } -                return (send, ask, getResponseFromSolver, terminateSolver, cleanUp, pid)+                pure (send, ask, getResponseFromSolver, terminateSolver, cleanUp, pid) -      let executeSolver = do let sendAndGetSuccess :: Maybe Int -> String -> IO ()+      let executeSolver = do let sendAndGetSuccess :: Maybe Int -> T.Text -> IO ()                                  sendAndGetSuccess mbTimeOut l                                    -- The pathetic case when the solver doesn't support queries, so we pretend it responded "success"                                    -- Currently ABC is the only such solver.@@ -931,7 +973,7 @@                                           ["success"] -> debug cfg ["[GOOD] " `alignPlain` l]                                           _           -> do debug cfg ["[FAIL] " `alignPlain` l] -                                                            let isOption = "(set-option" `isPrefixOf` dropWhile isSpace l+                                                            let isOption = T.isPrefixOf "(set-option" (T.dropWhile isSpace l)                                                                  reason | isOption = [ "Backend solver reports it does not support this option."                                                                                     , "Check the spelling, and if correct please report this as a"@@ -942,8 +984,8 @@                                                                                     ]                                                              -- put a sync point here before we die so we consume everything-                                                            mbExtras <- (Right <$> getResponseFromSolver Nothing (Just 5000000))-                                                                        `C.catch` (\(e :: C.SomeException) -> handleAsync e (return (Left (show e))))+                                                            mbExtras <- (Right <$> getResponseFromSolver Nothing defaultLineTO)+                                                                        `C.catch` (\(e :: C.SomeException) -> handleAsync e (pure (Left (show e))))                                                              -- Ignore any exceptions from last sync, pointless.                                                             let extras = case mbExtras of@@ -954,16 +996,14 @@                                                             let out = intercalate "\n" . lines $ outOrig                                                                 err = intercalate "\n" . lines $ errOrig -                                                                exc = SBVException { sbvExceptionDescription = "Unexpected non-success response from " ++ nm-                                                                                   , sbvExceptionSent        = Just l-                                                                                   , sbvExceptionExpected    = Just "success"-                                                                                   , sbvExceptionReceived    = Just $ r ++ "\n" ++ extras-                                                                                   , sbvExceptionStdOut      = Just out-                                                                                   , sbvExceptionStdErr      = Just err-                                                                                   , sbvExceptionExitCode    = Just ex-                                                                                   , sbvExceptionConfig      = cfg { solver = (solver cfg) {executable = execPath } }-                                                                                   , sbvExceptionReason      = Just reason-                                                                                   , sbvExceptionHint        = Nothing+                                                                exc = (solverException ("Unexpected non-success response from " ++ nm))+                                                                                   { sbvExceptionSent     = Just (T.unpack l)+                                                                                   , sbvExceptionExpected = Just "success"+                                                                                   , sbvExceptionReceived = Just $ r ++ "\n" ++ extras+                                                                                   , sbvExceptionStdOut   = Just out+                                                                                   , sbvExceptionStdErr   = Just err+                                                                                   , sbvExceptionExitCode = Just ex+                                                                                   , sbvExceptionReason   = Just reason                                                                                    }                                                              C.throwIO exc@@ -974,10 +1014,10 @@                              -- First check that the solver supports :print-success                              let backend = name $ solver cfg                              if not (supportsCustomQueries (capabilities (solver cfg)))-                                then debug cfg ["** Skipping heart-beat for the solver " ++ show backend]-                                else do r <- ask (Just 5000000) heartbeat  -- Give the solver 5s to respond, this should be plenty enough!+                                then debug cfg ["** Skipping heart-beat for the solver " <> showText backend]+                                else do r <- ask defaultLineTO (T.pack heartbeat)                                         case words r of-                                          ["success"]     -> debug cfg ["[GOOD] " ++ heartbeat]+                                          ["success"]     -> debug cfg ["[GOOD] " <> T.pack heartbeat]                                           ["unsupported"] -> error $ unlines [ ""                                                                              , "*** Backend solver (" ++  show backend ++ ") does not support the command:"                                                                              , "***"@@ -999,13 +1039,13 @@                              -- For push/pop support, we require :global-declarations to be true. But not all solvers                              -- support this. Issue it if supported. (If not, we'll reject pop calls.)                              if not (supportsGlobalDecls (capabilities (solver cfg)))-                                then debug cfg [ "** Backend solver " ++ show backend ++ " does not support global decls."+                                then debug cfg [ "** Backend solver " <> showText backend <> " does not support global decls."                                                , "** Some incremental calls, such as pop, will be limited."                                                ]                                 else sendAndGetSuccess Nothing "(set-option :global-declarations true)"                               -- Now dump the program!-                             mapM_ (sendAndGetSuccess Nothing) (mergeSExpr (lines pgm))+                             mapM_ (sendAndGetSuccess Nothing) (mergeSExpr (T.lines pgm))                               -- Prepare the query context and ship it off                              let qs = QueryState { queryAsk                 = ask
Data/SBV/SMT/SMTLib.hs view
@@ -23,6 +23,7 @@  import Data.SBV.SMT.Utils import qualified Data.SBV.SMT.SMTLib2 as SMT2+import           Data.Text            (Text)  -- | Convert to SMT-Lib, in a full program context. toSMTLib :: SMTConfig -> SMTLibConverter SMTLibPgm@@ -30,7 +31,7 @@                                       SMTLib2 -> toSMTLib2  -- | Convert to SMT-Lib, in an incremental query context.-toIncSMTLib :: SMTConfig -> SMTLibIncConverter [String]+toIncSMTLib :: SMTConfig -> SMTLibIncConverter [Text] toIncSMTLib SMTConfig{smtLibVersion} = case smtLibVersion of                                          SMTLib2 -> toIncSMTLib2 -- | Convert to SMTLib-2 format@@ -42,6 +43,6 @@                (pgm, defs) = converter ctx progInfo kindInfo isSat comments qinps consts tbls uis axs asgnsSeq cstrs out config  -- | Convert to SMTLib-2 format-toIncSMTLib2 :: SMTLibIncConverter [String]+toIncSMTLib2 :: SMTLibIncConverter [Text] toIncSMTLib2 = cvt SMTLib2   where cvt SMTLib2 = SMT2.cvtInc
Data/SBV/SMT/SMTLib2.hs view
@@ -10,7 +10,7 @@ -----------------------------------------------------------------------------  {-# LANGUAGE NamedFieldPuns      #-}-{-# LANGUAGE PatternGuards       #-}+{-# LANGUAGE OverloadedStrings   #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE ViewPatterns        #-} @@ -26,26 +26,79 @@ import qualified Data.IntMap.Strict   as IM import           Data.Set             (Set) import qualified Data.Set             as Set+import qualified Data.Text            as T+import           Data.Text            (Text)  import Data.SBV.Core.Data-import Data.SBV.Core.Kind (smtType, needsFlattening, expandKinds)+import Data.SBV.Core.Kind (smtType, needsFlattening, expandKinds, substituteADTVars) import Data.SBV.Control.Types  import Data.SBV.SMT.Utils -import Data.SBV.Core.Symbolic ( QueryContext(..), SetOp(..), getUserName', getSV, regExpToSMTString, NROp(..)-                              , SMTDef(..), ResultInp(..), ProgInfo(..), SpecialRelOp(..)+import Data.SBV.Core.Symbolic ( QueryContext(..), SetOp(..), getUserName, getUserName', getSV, regExpToSMTString, NROp(..), showNROp+                              , SMTDef(..), SMTLambda(..), ResultInp(..), ProgInfo(..), SpecialRelOp(..), ADTOp(..)                               )  import Data.SBV.Utils.PrettyNum (smtRoundingMode, cvToSMTLib)+import Data.SBV.Utils.Lib       (showText)  import qualified Data.Generics.Uniplate.Data as G  import qualified Data.Graph as DG ++-- Check that all ADT subkinds are registered. If not, tell the user to do so+-- NB. This should not be the case as we "automatically" register the subkinds+-- as we encounter them. But this is mostly a if-something-goes-wrong check.+checkKinds :: [Kind] -> Maybe String+checkKinds ks = case [m | m@(n, _) <- apps, n `notElem` defs] of+                  []       -> Nothing+                  xs@(f:_) -> let (h, cnt) = case [p | p@(_, i) <- xs, i > 0] of+                                               (p:_) -> p+                                               _     -> f+                                  plu | length xs > 1 = "s are"+                                      | True          = " is"+                                  msg = T.unlines $ [+                                      "Data.SBV.mkSymbolic: Impossible happened! Unregistered subkinds."+                                    , "***"+                                    , "*** The following kind" <> plu <> " not registered: " <> T.unwords (map (T.pack . fst) xs)+                                    , "***"+                                    , "*** Please report this as a bug."+                                    , "***"+                                    , "*** As a workaround, you can try registering each ADT subfield, using: "+                                    , "***"+                                    , "***    {-# LANGUAGE TypeApplications #-}"+                                    , "***"+                                    , "***    import Data.Proxy"+                                    , "***    registerType (Proxy @" <> mkProxy h cnt <> ")"+                                    ]+                                    ++ extras cnt+                                    ++ [ "***"+                                       , "*** Even if the workaround does the trick for you, it should not"+                                       , "*** be needed. Please report this as a bug!"+                                       ]+                              in Just $ T.unpack msg+++  where apps = nub [(n, length as) | KApp n as <- concatMap expandKinds ks]+        defs = nub [n | KADT n _ _ <- ks]+        mkProxy h 0 = T.pack h+        mkProxy h n = "(" <> T.unwords (T.pack h : replicate n "Integer") <> ")"++        extras 0 = []+        extras _ = [ "***"+                   , "*** NB. You can use any base type as arguments, not just 'Integer'."+                   , "*** It does not need to match the actual use cases, just one instance"+                   , "*** at some base type is sufficent."+                   ]+ -- | Translate a problem into an SMTLib2 script-cvt :: SMTLibConverter ([String], [String])-cvt ctx curProgInfo kindInfo isSat comments allInputs (_, consts) tbls uis defs (SBVPgm asgnsSeq) cstrs out cfg = (pgm, exportedDefs)+cvt :: SMTLibConverter (Text, Text)+cvt ctx curProgInfo kindInfo isSat comments allInputs (_, consts) tbls uis defs (SBVPgm asgnsSeq) cstrs out cfg+   | Just s <- checkKinds allKinds+   = error s+   | True+   = (T.intercalate "\n" pgm, T.intercalate "\n" exportedDefs)   where allKinds       = Set.toList kindInfo          -- Below can simply be defined as: nub (sort (G.universeBi asgnsSeq))@@ -62,20 +115,17 @@         hasString      = KString     `Set.member` kindInfo         hasRegExp      = (not . null) [() | (_ :: RegExOp) <- G.universeBi allTopOps]         hasChar        = KChar      `Set.member` kindInfo-        hasRounding    = not $ null [s | (s, _) <- usorts, s == "RoundingMode"]+        hasRounding    = any isRoundingMode allKinds         hasBVs         = not (null [() | KBounded{} <- allKinds])-        usorts         = [(s, dt) | KUserSort s dt <- allKinds]-        trueUSorts     = [s | (s, _) <- usorts, s /= "RoundingMode"]+        adtsNoRM       = [(s, ps, cs) | k@(KADT s ps cs) <- allKinds, not (isRoundingMode k)]         tupleArities   = findTupleArities kindInfo         hasOverflows   = (not . null) [() | (_ :: OvOp) <- G.universeBi allTopOps]         hasQuantBools  = (not . null) [() | QuantifiedBool{} <- G.universeBi allTopOps]         hasList        = any isList kindInfo         hasSets        = any isSet kindInfo         hasTuples      = not . null $ tupleArities-        hasEither      = any isEither kindInfo-        hasMaybe       = any isMaybe  kindInfo         hasRational    = any isRational kindInfo-        rm             = roundingMode cfg+        hasADTs        = not . null $ adtsNoRM         solverCaps     = capabilities (solver cfg)          (needsQuantifiers, needsSpecialRels) = case curProgInfo of@@ -84,7 +134,7 @@         -- Is there a reason why we can't handle this problem?         -- NB. There's probably a lot more checking we can do here, but this is a start:         doesntHandle = listToMaybe [nope w | (w, have, need) <- checks, need && not (have solverCaps)]-           where checks = [ ("data types",             supportsDataTypes,          hasTuples || hasEither || hasMaybe)+           where checks = [ ("data types",             supportsDataTypes,          hasTuples || hasADTs)                           , ("set operations",         supportsSets,               hasSets)                           , ("bit vectors",            supportsBitVectors,         hasBVs)                           , ("special relations",      supportsSpecialRels,        needsSpecialRels)@@ -92,48 +142,42 @@                           , ("unbounded integers",     supportsUnboundedInts,      hasInteger)                           , ("algebraic reals",        supportsReals,              hasReal)                           , ("floating-point numbers", supportsIEEE754,            hasFP)-                          , ("uninterpreted sorts",    supportsUninterpretedSorts, not (null trueUSorts))+                          , ("has data-types/sorts",   supportsADTs,               not (null adtsNoRM))                           ] -                 nope w = [ "***     Given problem requires support for " ++ w-                          , "***     But the chosen solver (" ++ show (name (solver cfg)) ++ ") doesn't support this feature."+                 nope w = [ "***     Given problem requires support for " <> T.pack w+                          , "***     But the chosen solver (" <> showText (name (solver cfg)) <> ") doesn't support this feature."                           ]          -- Some cases require all, some require none.-        setAll reason = ["(set-logic " ++ showLogic Logic_ALL ++ ") ; "  ++ reason ++ ", using catch-all."]--        isCVC5 = case name (solver cfg) of-                   CVC5 -> True-                   _    -> False--        -- If ALL is selected, use HO_ALL for CVC5 to get support for higher-order features. Yet another discrepancy.-        showLogic Logic_ALL | isCVC5 = "HO_ALL"-        showLogic l                  = show l+        setAll reason = [logicString cfg Logic_ALL <> " ; "  <> T.pack reason <> ", using catch-all."]          -- Determining the logic is surprisingly tricky!+        logic :: [Text]         logic            -- user told us what to do: so just take it:            | Just l <- case [l | SetLogic l <- solverSetOptions cfg] of                          []  -> Nothing                          [l] -> Just l-                         ls  -> error $ unlines [ ""-                                                , "*** Only one setOption call to 'setLogic' is allowed, found: " ++ show (length ls)-                                                , "***  " ++ unwords (map show ls)-                                                ]+                         ls  -> error $ T.unpack $ T.unlines [ ""+                                                             , "*** Only one setOption call to 'setLogic' is allowed, found: " <> showText (length ls)+                                                             , "***  " <> T.unwords (map showText ls)+                                                             ]            = case l of                Logic_NONE -> ["; NB. Not setting the logic per user request of Logic_NONE"]-               _          -> ["(set-logic " ++ showLogic l ++ ") ; NB. User specified."]+               _          -> [logicString cfg l <> " ; NB. User specified."]             -- There's a reason why we can't handle this problem:            | Just cantDo <- doesntHandle-           = error $ unlines $   [ ""+           = let msg = T.unlines $   [ ""                                  , "*** SBV is unable to choose a proper solver configuration:"                                  , "***"                                  ]-                             ++ cantDo-                             ++ [ "***"+                             <> cantDo+                             <> [ "***"                                 , "*** Please report this as a feature request, either for SBV or the backend solver."                                 ]+             in error $ T.unpack msg             -- Otherwise, we try to determine the most suitable logic.            -- NB. This isn't really fool proof!@@ -146,11 +190,9 @@            | hasInteger            = setAll "has unbounded values"            | hasRational           = setAll "has rational values"            | hasReal               = setAll "has algebraic reals"-           | not (null trueUSorts) = setAll "has user-defined sorts"+           | hasADTs               = setAll "has user-defined data-types"            | hasNonBVArrays        = setAll "has non-bitvector arrays"            | hasTuples             = setAll "has tuples"-           | hasEither             = setAll "has either type"-           | hasMaybe              = setAll "has maybe type"            | hasSets               = setAll "has sets"            | hasList               = setAll "has lists"            | hasChar               = setAll "has chars"@@ -161,30 +203,30 @@             | hasFP || hasRounding            = if needsQuantifiers-             then ["(set-logic ALL)"]-             else if hasBVs-                  then ["(set-logic QF_FPBV)"]-                  else ["(set-logic QF_FP)"]+             then [logicString cfg Logic_ALL]+             else [logicString cfg (if hasBVs then QF_FPBV else QF_FP)]             -- If we're in a user query context, we'll pick ALL, otherwise            -- we'll stick to some bit-vector logic based on what we see in the problem.            -- This is controversial, but seems to work well in practice.            | True            = case ctx of-               QueryExternal -> ["(set-logic ALL) ; external query, using all logics."]+               QueryExternal -> [logicString cfg Logic_ALL <> " ; external query, using all logics."]                QueryInternal -> if supportsBitVectors solverCaps-                                then ["(set-logic " ++ qs ++ as ++ ufs ++ "BV)"]-                                else ["(set-logic ALL)"] -- fall-thru-          where qs  | not needsQuantifiers  = "QF_"-                    | True                  = ""-                as  | not hasArrays         = ""-                    | True                  = "A"-                ufs | null uis && null tbls = ""     -- we represent tables as UFs-                    | True                  = "UF"+                                then [logicString cfg picked]+                                else [logicString cfg Logic_ALL] -- fall-thru+          where picked+                  | needsQuantifiers = Logic_ALL+                  | True             = case (hasArrays, null uis && null tbls) of+                                         (False, False) -> QF_UFBV+                                         (False, True)  -> QF_BV+                                         (True,  False) -> QF_AUFBV+                                         (True,  True)  -> QF_ABV          -- SBV always requires the production of models!+        getModels :: [Text]         getModels   = "(set-option :produce-models true)"-                    : concat [flattenConfig | any needsFlattening kindInfo, Just flattenConfig <- [supportsFlattenedModels solverCaps]]+                    : concat [map T.pack flattenConfig | any needsFlattening kindInfo, Just flattenConfig <- [supportsFlattenedModels solverCaps]]          -- process all other settings we're given. If an option cannot be repeated, we only take the last one.         userSettings = map (setSMTOption cfg) $ filter (not . isLogic) $ foldr comb [] $ solverSetOptions cfg@@ -202,8 +244,8 @@                    | True                                    = o : rest          settings =  userSettings        -- NB. Make sure this comes first!-                 ++ getModels-                 ++ logic+                 <> getModels+                 <> logic          (inputs, trackerVars)             = case allInputs of@@ -214,36 +256,34 @@                                                       , "*** Saw: " ++ show ps                                                       ] -        pgm  =  map ("; " ++) comments-             ++ settings-             ++ [ "; --- uninterpreted sorts ---" ]-             ++ concatMap declSort usorts-             ++ [ "; --- tuples ---" ]-             ++ concatMap declTuple tupleArities-             ++ [ "; --- sums ---" ]-             ++ (if containsSum       kindInfo then declSum       else [])-             ++ (if containsMaybe     kindInfo then declMaybe     else [])-             ++ (if containsRationals kindInfo then declRationals else [])-             ++ [ "; --- literal constants ---" ]-             ++ concatMap (declConst cfg) consts-             ++ [ "; --- top level inputs ---"]-             ++ concat [declareFun s (SBVType [kindOf s]) (userName s) | var <- inputs, let s = getSV var]-             ++ [ "; --- optimization tracker variables ---" | not (null trackerVars) ]-             ++ concat [declareFun s (SBVType [kindOf s]) (Just ("tracks " <> nm)) | var <- trackerVars, let s = getSV var, let nm = getUserName' var]-             ++ [ "; --- constant tables ---" ]-             ++ concatMap (uncurry (:) . mkTable) constTables-             ++ [ "; --- non-constant tables ---" ]-             ++ map nonConstTable nonConstTables-             ++ [ "; --- uninterpreted constants ---" ]-             ++ concatMap (declUI curProgInfo) uis-             ++ [ "; --- user defined functions ---"]-             ++ userDefs-             ++ [ "; --- assignments ---" ]-             ++ concatMap (declDef curProgInfo cfg tableMap) asgns-             ++ [ "; --- delayedEqualities ---" ]-             ++ map (\s -> "(assert " ++ s ++ ")") delayedEqualities-             ++ [ "; --- formula ---" ]-             ++ finalAssert+        pgm  =  map (T.pack . ("; " <>)) comments+             <> settings+             <> [ "; --- tuples ---" ]+             <> concatMap declTuple tupleArities+             <> [ "; --- sums ---" ]+             <> (if containsRationals kindInfo then declRationals else [])+             <> [ "; --- ADTs  --- " | not (null adtsNoRM)]+             <> declADT adtsNoRM+             <> [ "; --- literal constants ---" ]+             <> concatMap (declConst cfg) consts+             <> [ "; --- top level inputs ---"]+             <> concat [declareFun s (SBVType [kindOf s]) (userName s) | var <- inputs, let s = getSV var]+             <> [ "; --- optimization tracker variables ---" | not (null trackerVars) ]+             <> concat [declareFun s (SBVType [kindOf s]) (Just ("tracks " <> getUserName var)) | var <- trackerVars, let s = getSV var]+             <> [ "; --- constant tables ---" ]+             <> concatMap (uncurry (:) . mkTable) constTables+             <> [ "; --- non-constant tables ---" ]+             <> map nonConstTable nonConstTables+             <> [ "; --- uninterpreted constants ---" ]+             <> concatMap (declUI curProgInfo) uis+             <> [ "; --- user defined functions ---"]+             <> userDefs+             <> [ "; --- assignments ---" ]+             <> concatMap (declDef curProgInfo cfg tableMap) asgns+             <> [ "; --- delayedEqualities ---" ]+             <> map (\s -> "(assert " <> s <> ")") delayedEqualities+             <> [ "; --- formula ---" ]+             <> finalAssert          userDefs = declUserFuns defs         exportedDefs@@ -253,16 +293,16 @@           = "; Automatically generated by SBV. Do not modify!" : userDefs  -        (tableMap, constTables, nonConstTables) = constructTables rm consts tbls+        (tableMap, constTables, nonConstTables) = constructTables consts tbls          delayedEqualities = concatMap snd nonConstTables          finalAssert           | noConstraints = []-          | True          =    map (\(attr, v) -> "(assert "      ++ addAnnotations attr (mkLiteral v) ++ ")") hardAsserts-                            ++ map (\(attr, v) -> "(assert-soft " ++ addAnnotations attr (mkLiteral v) ++ ")") softAsserts+          | True          =    map (\(attr, v) -> "(assert "      <> addAnnotations attr (mkLiteral v) <> ")") hardAsserts+                            <> map (\(attr, v) -> "(assert-soft " <> addAnnotations attr (mkLiteral v) <> ")") softAsserts           where mkLiteral (Left  v) =            cvtSV v-                mkLiteral (Right v) = "(not " ++ cvtSV v ++ ")"+                mkLiteral (Right v) = "(not " <> cvtSV v <> ")"                  (noConstraints, assertions) = finalAssertions @@ -296,24 +336,52 @@          userNameMap = M.fromList $ map (\nSymVar -> (getSV nSymVar, getUserName' nSymVar)) inputs         userName s = case M.lookup s userNameMap of-                        Just u  | show s /= u -> Just $ "tracks user variable " ++ show u+                        Just u  | show s /= u -> Just $ "tracks user variable " <> showText u                         _                     -> Nothing --- | Declare new sorts-declSort :: (String, Maybe [String]) -> [String]-declSort (s, _)-  | s == "RoundingMode" -- built-in-sort; so don't declare.-  = []-declSort (s, Nothing) = [ "(declare-sort " ++ s ++ " 0)  ; N.B. Uninterpreted sort."-                        , "(declare-fun " ++ witnessName s ++ " () " ++ s ++ ")"-                        ]-declSort (s, Just fs) = [ "(declare-datatypes ((" ++ s ++ " 0)) ((" ++ unwords (map (\c -> "(" ++ c ++ ")") fs) ++ ")))"-                        , "(define-fun " ++ s ++ "_constrIndex ((x " ++ s ++ ")) Int"-                        ] ++ ["   " ++ body fs (0::Int)] ++ [")"]-        where body []     _ = ""-              body [_]    i = show i-              body (c:cs) i = "(ite (= x " ++ c ++ ") " ++ show i ++ " " ++ body cs (i+1) ++ ")"+-- | Declare ADTs+declADT :: [(String, [(String, Kind)], [(String, [Kind])])] -> [Text]+declADT = concatMap declGroup . DG.stronglyConnComp . map mkNode+  where mkNode adt@(n, pks, cstrs) = (adt, n, [s | KApp s _ <- concatMap expandKinds (map snd pks ++ concatMap snd cstrs)]) +        declGroup (DG.AcyclicSCC d )  = singleADT d+        declGroup (DG.CyclicSCC  ds)+            = case ds of+                []  -> error "Data.SBV.declADT: Impossible happened: an empty cyclic group was returned!"+                [d] -> singleADT d+                _   -> multiADT ds++        parParens :: [(String, Kind)] -> (Text, Text)+        parParens [] = ("", "")+        parParens ps = (" (par (" <> T.unwords (map (T.pack . fst) ps) <> ")", ")")++        mkC (nm, []) = T.pack nm+        mkC (nm, ts) = T.pack nm <> " " <> T.unwords ['(' `T.cons` mkF (nm <> "_" <> show i) t <> ")" | (i, t) <- zip [(1::Int)..] ts]+          where mkF a t  = "get" <> T.pack a <> " " <> smtType t++        singleADT :: (String, [(String, Kind)], [(String, [Kind])]) -> [Text]+        singleADT (tName, [], []) = ["(declare-sort " <> T.pack tName <> " 0) ; N.B. Uninterpreted sort."]+        singleADT (tName, pks, cstrs) = ("; User defined ADT: " <> T.pack tName) : decl+          where decl =  ("(declare-datatype " <> T.pack tName <> parOpen <> " (")+                     :  ["    (" <> mkC c <> ")" | c <- cstrs]+                     <> ["))" <> parClose]++                (parOpen, parClose) = parParens pks++        multiADT :: [(String, [(String, Kind)], [(String, [Kind])])] -> [Text]+        multiADT adts = ("; User defined mutually-recursive ADTs: " <> T.intercalate ", " (map (\(a, _, _) -> T.pack a) adts)) : decl+          where decl = ("(declare-datatypes (" <> typeDecls <> ") (")+                     : concatMap adtBody adts+                    <> ["))"]++                typeDecls = T.unwords ['(' `T.cons` T.pack name <> " " <> showText (length pks) <> ")" | (name, pks, _) <- adts]++                adtBody (_, pks, cstrs) = body+                  where (parOpen, parClose) = parParens pks+                        body =  ("    " <> parOpen <> " (")+                             :  ["        (" <> mkC c <> ")" | c <- cstrs]+                             <> ["     )" <> parClose]+ -- | Declare tuple datatypes -- -- eg:@@ -323,24 +391,24 @@ --                                     ((mkSBVTuple2 (proj_1_SBVTuple2 T1) --                                                   (proj_2_SBVTuple2 T2)))))) -- @-declTuple :: Int -> [String]+declTuple :: Int -> [Text] declTuple arity   | arity == 0 = ["(declare-datatypes ((SBVTuple0 0)) (((mkSBVTuple0))))"]   | arity == 1 = error "Data.SBV.declTuple: Unexpected one-tuple"-  | True       =    (l1 ++ "(par (" ++ unwords [param i | i <- [1..arity]] ++ ")")-                 :  [pre i ++ proj i ++ post i    | i <- [1..arity]]-  where l1     = "(declare-datatypes ((SBVTuple" ++ show arity ++ " " ++ show arity ++ ")) ("-        l2     = replicate (length l1) ' ' ++ "((mkSBVTuple" ++ show arity ++ " "-        tab    = replicate (length l2) ' '+  | True       =    (l1 <> "(par (" <> T.unwords [param i | i <- [1..arity]] <> ")")+                 :  [pre i <> proj i <> post i    | i <- [1..arity]]+  where l1     = "(declare-datatypes ((SBVTuple" <> showText arity <> " " <> showText arity <> ")) ("+        l2     = T.replicate (T.length l1) " " <> "((mkSBVTuple" <> showText arity <> " "+        tab    = T.replicate (T.length l2) " "          pre 1  = l2         pre _  = tab -        proj i = "(proj_" ++ show i ++ "_SBVTuple" ++ show arity ++ " " ++ param i ++ ")"+        proj i = "(proj_" <> showText i <> "_SBVTuple" <> showText arity <> " " <> param i <> ")"          post i = if i == arity then ")))))" else "" -        param i = "T" ++ show i+        param i = "T" <> showText i  -- | Find the set of tuple sizes to declare, eg (2-tuple, 5-tuple). -- NB. We do *not* need to recursively go into list/tuple kinds here,@@ -351,33 +419,13 @@                     $ Set.map length                     $ Set.fromList [ tupKs | KTuple tupKs <- Set.toList ks ] --- | Is @Either@ being used?-containsSum :: Set Kind -> Bool-containsSum = not . Set.null . Set.filter isEither---- | Is @Maybe@ being used?-containsMaybe :: Set Kind -> Bool-containsMaybe = not . Set.null . Set.filter isMaybe- -- | Is @Rational@ being used? containsRationals :: Set Kind -> Bool containsRationals = not . Set.null . Set.filter isRational -declSum :: [String]-declSum = [ "(declare-datatypes ((SBVEither 2)) ((par (T1 T2)"-          , "                                    ((left_SBVEither  (get_left_SBVEither  T1))"-          , "                                     (right_SBVEither (get_right_SBVEither T2))))))"-          ]--declMaybe :: [String]-declMaybe = [ "(declare-datatypes ((SBVMaybe 1)) ((par (T)"-            , "                                    ((nothing_SBVMaybe)"-            , "                                     (just_SBVMaybe (get_just_SBVMaybe T))))))"-            ]- -- Internally, we do *not* keep the rationals in reduced form! So, the boolean operators explicitly do the math -- to make sure equivalent values are treated correctly.-declRationals :: [String]+declRationals :: [Text] declRationals = [ "(declare-datatype SBVRational ((SBV.Rational (sbv.rat.numerator Int) (sbv.rat.denominator Int))))"                 , ""                 , "(define-fun sbv.rat.eq ((x SBVRational) (y SBVRational)) Bool"@@ -395,107 +443,102 @@ -- to do as an extra in the incremental context. See `Data.SBV.Core.Symbolic.registerKind` -- for a list of what we include, in case something doesn't show up -- and you need it!-cvtInc :: SMTLibIncConverter [String]+cvtInc :: SMTLibIncConverter [Text] cvtInc curProgInfo inps newKs (_, consts) tbls uis (SBVPgm asgnsSeq) cstrs cfg =             -- any new settings?                settings             -- sorts-            ++ concatMap declSort [(s, dt) | KUserSort s dt <- newKinds]+            <> declADT [(s, pks, cs) | k@(KADT s pks cs) <- newKinds, not (isRoundingMode k)]             -- tuples. NB. Only declare the new sizes, old sizes persist.-            ++ concatMap declTuple (findTupleArities newKs)-            -- sums-            ++ (if containsSum   newKs then declSum   else [])-            ++ (if containsMaybe newKs then declMaybe else [])+            <> concatMap declTuple (findTupleArities newKs)             -- constants-            ++ concatMap (declConst cfg) consts+            <> concatMap (declConst cfg) consts             -- inputs-            ++ concatMap declInp inps+            <> concatMap declInp inps             -- uninterpreteds-            ++ concatMap (declUI curProgInfo) uis+            <> concatMap (declUI curProgInfo) uis             -- table declarations-            ++ tableDecls+            <> tableDecls             -- expressions-            ++ concatMap (declDef curProgInfo cfg tableMap) asgnsSeq+            <> concatMap (declDef curProgInfo cfg tableMap) asgnsSeq             -- table setups-            ++ concat tableAssigns+            <> concat tableAssigns             -- extra constraints-            ++ map (\(isSoft, attr, v) -> "(assert" ++ (if isSoft then "-soft " else " ") ++ addAnnotations attr (cvtSV v) ++ ")") (F.toList cstrs)-  where rm = roundingMode cfg--        newKinds = Set.toList newKs+            <> map (\(isSoft, attr, v) -> "(assert" <> (if isSoft then "-soft " else " ") <> addAnnotations attr (cvtSV v) <> ")") (F.toList cstrs)+  where newKinds = Set.toList newKs          declInp (getSV -> s) = declareFun s (SBVType [kindOf s]) Nothing -        (tableMap, allTables) = (tm, ct ++ nct)-            where (tm, ct, nct) = constructTables rm consts tbls+        (tableMap, allTables) = (tm, ct <> nct)+            where (tm, ct, nct) = constructTables consts tbls          (tableDecls, tableAssigns) = unzip $ map mkTable allTables          -- If we need flattening in models, do emit the required lines if preset         settings           | any needsFlattening newKinds-          = concat (catMaybes [supportsFlattenedModels solverCaps])+          = concat (catMaybes [map T.pack <$> supportsFlattenedModels solverCaps])           | True           = []           where solverCaps = capabilities (solver cfg) -declDef :: ProgInfo -> SMTConfig -> TableMap -> (SV, SBVExpr) -> [String]+declDef :: ProgInfo -> SMTConfig -> TableMap -> (SV, SBVExpr) -> [Text] declDef curProgInfo cfg tableMap (s, expr) =         case expr of-          SBVApp  (Label m) [e] -> defineFun cfg (s, cvtSV                                   e) (Just m)+          SBVApp  (Label m) [e] -> defineFun cfg (s, cvtSV                                   e) (Just $ T.pack m)           e                     -> defineFun cfg (s, cvtExp cfg curProgInfo caps rm tableMap e) Nothing   where caps = capabilities (solver cfg)         rm   = roundingMode cfg -defineFun :: SMTConfig -> (SV, String) -> Maybe String -> [String]+defineFun :: SMTConfig -> (SV, Text) -> Maybe Text -> [Text] defineFun cfg (s, def) mbComment-   | hasDefFun = ["(define-fun "  ++ varT ++ " " ++ def ++ ")" ++ cmnt]-   | True      = [ "(declare-fun " ++ varT ++ ")" ++ cmnt-                 , "(assert (= " ++ var ++ " " ++ def ++ "))"+   | hasDefFun = ["(define-fun "  <> varT <> " " <> def <> ")" <> cmnt]+   | True      = [ "(declare-fun " <> varT <> ")" <> cmnt+                 , "(assert (= " <> var <> " " <> def <> "))"                  ]-  where var  = show s-        varT = var ++ " " ++ svFunType [] s-        cmnt = maybe "" (" ; " ++) mbComment+  where var  = showText s+        varT = var <> " " <> svFunType [] s+        cmnt = maybe "" (" ; " <>) mbComment          hasDefFun = supportsDefineFun $ capabilities (solver cfg)  -- Declare constants. NB. We don't declare true/false; but just inline those as necessary-declConst :: SMTConfig -> (SV, CV) -> [String]+declConst :: SMTConfig -> (SV, CV) -> [Text] declConst cfg (s, c)   | s == falseSV || s == trueSV   = []   | True-  = defineFun cfg (s, cvtCV (roundingMode cfg) c) Nothing+  = defineFun cfg (s, cvtCV c) Nothing  -- Make a function equality of nm against the internal function fun-mkRelEq :: String -> (String, String) -> Kind -> String+mkRelEq :: Text -> (Text, Text) -> Kind -> Text mkRelEq nm (fun, order) ak = res-   where lhs = "(" ++ nm ++ " x y)"-         rhs = "((_ " ++ fun ++ " " ++ order ++ ") x y)"+   where lhs = "(" <> nm <> " x y)"+         rhs = "((_ " <> fun <> " " <> order <> ") x y)"          tk  = smtType ak-         res = "(forall ((x " ++ tk ++ ") (y " ++ tk ++ ")) (= " ++ lhs ++ " " ++ rhs ++ "))"+         res = "(forall ((x " <> tk <> ") (y " <> tk <> ")) (= " <> lhs <> " " <> rhs <> "))" -declUI :: ProgInfo -> (String, (Bool, Maybe [String], SBVType)) -> [String]-declUI ProgInfo{progTransClosures} (i, (_, _, t)) = declareName i t Nothing ++ declClosure+declUI :: ProgInfo -> (String, (Bool, Maybe [String], SBVType)) -> [Text]+declUI ProgInfo{progTransClosures} (i, (_, _, t)) = declareName (T.pack i) t Nothing <> declClosure   where declClosure | Just external <- lookup i progTransClosures-                    =  declareName external t Nothing-                    ++ ["(assert " ++ mkRelEq external ("transitive-closure", i) (argKind t) ++ ")"]+                    =  declareName (T.pack external) t Nothing+                    <> ["(assert " <> mkRelEq (T.pack external) ("transitive-closure", T.pack i) (argKind t) <> ")"]                     | True                     = []          argKind (SBVType [ka, _, KBool]) = ka-        argKind _                        = error $ "declUI: Unexpected type for name: " ++ show (i, t)+        argKind _                        = error $ "declUI: Unexpected type for name: " <> show (i, t)  -- Note that even though we get all user defined-functions here (i.e., lambda and axiom), we can only have defined-functions -- and axioms. We spit axioms as is; and topologically sort the definitions.-declUserFuns :: [(String, (SMTDef, SBVType))] -> [String]+declUserFuns :: [(String, (SMTDef, SBVType))] -> [Text] declUserFuns ds = map declGroup sorted   where mkNode d = (d, fst d, getDeps d)          getDeps (_, (SMTDef _ d _ _, _)) = d -        mkDecl Nothing  rt = "() "    ++ rt-        mkDecl (Just p) rt = p ++ " " ++ rt+        mkDecl Nothing  rt = "() " <> rt+        mkDecl (Just p) rt = p <> " " <> rt          sorted = DG.stronglyConnComp (map mkNode ds) @@ -505,124 +548,125 @@                                          [x] -> declUserDef True x                                          xs  -> declUserDefMulti xs -        declUserDef isRec (nm, (SMTDef fk deps param body, ty)) = ("; " ++ nm ++ " :: " ++ show ty ++ recursive ++ frees ++ "\n") ++ s+        declUserDef isRec (nm, (SMTDef fk deps param body, ty)) =+          "; " <> T.pack nm <> " :: " <> showText ty <> recursive <> frees <> "\n" <> s            where (recursive, definer) | isRec = (" [Recursive]", "define-fun-rec")                                       | True  = ("",             "define-fun")                   otherDeps = filter (/= nm) deps                  frees | null otherDeps = ""-                       | True           = " [Refers to: " ++ intercalate ", " otherDeps ++ "]"+                       | True           = " [Refers to: " <> T.intercalate ", " (map T.pack otherDeps) <> "]"                   decl = mkDecl param (smtType fk) -                 s = "(" ++ definer ++ " " ++ nm ++ " " ++ decl ++ "\n" ++ body 2 ++ ")"+                 s = "(" <> definer <> " " <> T.pack nm <> " " <> decl <> "\n" <> body 2 <> ")"          -- declare a bunch of mutually-recursive functions         declUserDefMulti bs = render $ map collect bs-          where collect (nm, (SMTDef fk deps param body, ty)) = (deps, nm, ty, '(' : nm ++ " " ++  decl ++ ")", body 3)+          where collect (nm, (SMTDef fk deps param body, ty)) = (deps, nm, ty, "(" <> T.pack nm <> " " <> decl <> ")", body 3)                   where decl = mkDecl param (smtType fk) -                render defs = intercalate "\n" $-                                  [ "; " ++ intercalate ", " [n ++ " :: " ++ show ty | (_, n, ty, _, _) <- defs]+                render defs = T.intercalate "\n" $+                                  [ "; " <> T.intercalate ", " [T.pack n <> " :: " <> showText ty | (_, n, ty, _, _) <- defs]                                   , "(define-funs-rec"                                   ]-                               ++ [ open i ++ param d ++ close1 i | (i, d) <- zip [1..] defs]-                               ++ [ open i ++ dump  d ++ close2 i | (i, d) <- zip [1..] defs]+                               <> [ open i <> param d <> close1 i | (i, d) <- zip [1..] defs]+                               <> [ open i <> dump  d <> close2 i | (i, d) <- zip [1..] defs]                      where open 1 = "  ("                            open _ = "   "                             param (_deps, _nm, _ty, p, _body) = p -                           dump (deps, nm, ty, _, body) = "; Definition of: " ++ nm ++ " :: " ++ show ty ++ ". [Refers to: " ++ intercalate ", " deps ++ "]"-                                                        ++ "\n" ++ body+                           dump (deps, nm, ty, _, body) = "; Definition of: " <> T.pack nm <> " :: " <> showText ty <> ". [Refers to: " <> T.intercalate ", " (map T.pack deps) <> "]"+                                                        <> "\n" <> body                             ld = length defs                             close1 n = if n == ld then ")"  else ""                            close2 n = if n == ld then "))" else "" -mkTable :: (((Int, Kind, Kind), [SV]), [String]) -> (String, [String])-mkTable (((i, ak, rk), _elts), is) = (decl, zipWith wrap [(0::Int)..] is ++ setup)-  where t       = "table" ++ show i-        decl    = "(declare-fun " ++ t ++ " (" ++ smtType ak ++ ") " ++ smtType rk ++ ")"+mkTable :: (((Int, Kind, Kind), [SV]), [Text]) -> (Text, [Text])+mkTable (((i, ak, rk), _elts), is) = (decl, zipWith wrap [(0::Int)..] is <> setup)+  where t       = "table" <> showText i+        decl    = "(declare-fun " <> t <> " (" <> smtType ak <> ") " <> smtType rk <> ")"          -- Arrange for initializers-        mkInit idx   = "table" ++ show i ++ "_initializer_" ++ show (idx :: Int)-        initializer  = "table" ++ show i ++ "_initializer"+        mkInit idx   = "table" <> showText i <> "_initializer_" <> showText (idx :: Int)+        initializer  = "table" <> showText i <> "_initializer" -        wrap index s = "(define-fun " ++ mkInit index ++ " () Bool " ++ s ++ ")"+        wrap index s = "(define-fun " <> mkInit index <> " () Bool " <> s <> ")"          lis  = length is          setup-          | lis == 0       = [ "(define-fun " ++ initializer ++ " () Bool true) ; no initialization needed"+          | lis == 0       = [ "(define-fun " <> initializer <> " () Bool true) ; no initialization needed"                              ]-          | lis == 1       = [ "(define-fun " ++ initializer ++ " () Bool " ++ mkInit 0 ++ ")"-                             , "(assert " ++ initializer ++ ")"+          | lis == 1       = [ "(define-fun " <> initializer <> " () Bool " <> mkInit 0 <> ")"+                             , "(assert " <> initializer <> ")"                              ]-          | True           = [ "(define-fun " ++ initializer ++ " () Bool (and " ++ unwords (map mkInit [0..lis - 1]) ++ "))"-                             , "(assert " ++ initializer ++ ")"+          | True           = [ "(define-fun " <> initializer <> " () Bool (and " <> T.unwords (map mkInit [0..lis - 1]) <> "))"+                             , "(assert " <> initializer <> ")"                              ]-nonConstTable :: (((Int, Kind, Kind), [SV]), [String]) -> String+nonConstTable :: (((Int, Kind, Kind), [SV]), [Text]) -> Text nonConstTable (((i, ak, rk), _elts), _) = decl-  where t    = "table" ++ show i-        decl = "(declare-fun " ++ t ++ " (" ++ smtType ak ++ ") " ++ smtType rk ++ ")"+  where t    = "table" <> showText i+        decl = "(declare-fun " <> t <> " (" <> smtType ak <> ") " <> smtType rk <> ")" -constructTables :: RoundingMode -> [(SV, CV)] -> [((Int, Kind, Kind), [SV])]-                -> ( IM.IntMap String                            -- table enumeration-                   , [(((Int, Kind, Kind), [SV]), [String])]     -- constant tables-                   , [(((Int, Kind, Kind), [SV]), [String])]     -- non-constant tables+constructTables :: [(SV, CV)] -> [((Int, Kind, Kind), [SV])]+                -> ( IM.IntMap Text                              -- table enumeration+                   , [(((Int, Kind, Kind), [SV]), [Text])]       -- constant tables+                   , [(((Int, Kind, Kind), [SV]), [Text])]       -- non-constant tables                    )-constructTables rm consts tbls = (tableMap, constTables, nonConstTables)- where allTables      = [(t, genTableData rm (map fst consts) t) | t <- tbls]+constructTables consts tbls = (tableMap, constTables, nonConstTables)+ where allTables      = [(t, genTableData (map fst consts) t) | t <- tbls]        constTables    = [(t, d) | (t, Left  d) <- allTables]        nonConstTables = [(t, d) | (t, Right d) <- allTables]        tableMap       = IM.fromList $ map grab allTables -       grab (((t, _, _), _), _) = (t, "table" ++ show t)+       grab (((t, _, _), _), _) = (t, "table" <> showText t)  -- Left if all constants, Right if otherwise-genTableData :: RoundingMode -> [SV] -> ((Int, Kind, Kind), [SV]) -> Either [String] [String]-genTableData rm consts ((i, aknd, _), elts)+genTableData :: [SV] -> ((Int, Kind, Kind), [SV]) -> Either [Text] [Text]+genTableData consts ((i, aknd, _), elts)   | null post = Left  (map (mkEntry . snd) pre)   | True      = Right (map (mkEntry . snd) (pre ++ post))   where (pre, post) = partition fst (zipWith mkElt elts [(0::Int)..])-        t           = "table" ++ show i+        t           = "table" <> showText i          mkElt x k   = (isReady, (idx, cvtSV x))-          where idx = cvtCV rm (mkConstCV aknd k)+          where idx = cvtCV (mkConstCV aknd k)                 isReady = x `Set.member` constsSet -        mkEntry (idx, v) = "(= (" ++ t ++ " " ++ idx ++ ") " ++ v ++ ")"+        mkEntry (idx, v) = "(= (" <> t <> " " <> idx <> ") " <> v <> ")"          constsSet = Set.fromList consts -svType :: SV -> String+svType :: SV -> Text svType s = smtType (kindOf s) -svFunType :: [SV] -> SV -> String-svFunType ss s = "(" ++ unwords (map svType ss) ++ ") " ++ svType s+svFunType :: [SV] -> SV -> Text+svFunType ss s = "(" <> T.unwords (map svType ss) <> ") " <> svType s -cvtType :: SBVType -> String+cvtType :: SBVType -> Text cvtType (SBVType []) = error "SBV.SMT.SMTLib2.cvtType: internal: received an empty type!"-cvtType (SBVType xs) = "(" ++ unwords (map smtType body) ++ ") " ++ smtType ret+cvtType (SBVType xs) = "(" <> T.unwords (map smtType body) <> ") " <> smtType ret   where (body, ret) = (init xs, last xs) -type TableMap = IM.IntMap String+type TableMap = IM.IntMap Text  -- Present an SV, simply show-cvtSV :: SV -> String-cvtSV = show+cvtSV :: SV -> Text+cvtSV = showText -cvtCV :: RoundingMode -> CV -> String+cvtCV :: CV -> Text cvtCV = cvToSMTLib -getTable :: TableMap -> Int -> String+getTable :: TableMap -> Int -> Text getTable m i   | Just tn <- i `IM.lookup` m = tn-  | True                       = "table" ++ show i  -- constant tables are always named this way+  | True                       = "table" <> showText i -cvtExp :: SMTConfig -> ProgInfo -> SolverCapabilities -> RoundingMode -> TableMap -> SBVExpr -> String+cvtExp :: SMTConfig -> ProgInfo -> SolverCapabilities -> RoundingMode -> TableMap -> SBVExpr -> Text cvtExp cfg curProgInfo caps rm tableMap expr@(SBVApp _ arguments) = sh expr   where hasPB       = supportsPseudoBooleans caps         hasDistinct = supportsDistinct       caps@@ -635,7 +679,7 @@         fpOp     = any (\a -> isDouble a || isFloat a || isFP a) arguments         boolOp   = all isBoolean   arguments         charOp   = any isChar      arguments-        stringOp = any isString    arguments+        stringOp   = any isString    arguments         listOp   = any isList      arguments          bad | intOp = error $ "SBV.SMTLib2: Unsupported operation on unbounded integers: " ++ show expr@@ -644,7 +688,7 @@         ensureBVOrBool = bvOp || boolOp || bad         ensureBV       = bvOp || bad -        addRM s = s ++ " " ++ smtRoundingMode rm+        addRM s = s <> " " <> smtRoundingMode rm          isZ3 = case name (solver cfg) of                  Z3 -> True@@ -658,11 +702,11 @@         hd w []    = error $ "Impossible: " ++ w ++ ": Received empty list of args!"          -- lift a binary op-        lift2  o _ [x, y] = "(" ++ o ++ " " ++ x ++ " " ++ y ++ ")"-        lift2  o _ sbvs   = error $ "SBV.SMTLib2.sh.lift2: Unexpected arguments: "   ++ show (o, sbvs)+        lift2  o _ [x, y] = "(" <> o <> " " <> x <> " " <> y <> ")"+        lift2  o _ sbvs   = error $ "SBV.SMTLib2.sh.lift2: Unexpected arguments: " ++ show (o, sbvs)          -- lift an arbitrary arity operator-        liftN o _ xs = "(" ++ o ++ " " ++ unwords xs ++ ")"+        liftN o _ xs = "(" <> o <> " " <> T.unwords xs <> ")"          -- lift a binary operation with rounding-mode added; used for floating-point arithmetic         lift2WM o fo | fpOp = lift2 (addRM fo)@@ -677,10 +721,10 @@                            | bvOp        = fArg                            | True        = mkAbs fArg "<"     "-"           where fArg = hd "liftAbs" args-                mkAbs x cmp neg = "(ite " ++ ltz ++ " " ++ nx ++ " " ++ x ++ ")"-                  where ltz = "(" ++ cmp ++ " " ++ x ++ " " ++ z ++ ")"-                        nx  = "(" ++ neg ++ " " ++ x ++ ")"-                        z   = cvtCV rm (mkConstCV (kindOf (hd "liftAbs.arguments" arguments)) (0::Integer))+                mkAbs x cmp neg = "(ite " <> ltz <> " " <> nx <> " " <> x <> ")"+                  where ltz = "(" <> cmp <> " " <> x <> " " <> z <> ")"+                        nx  = "(" <> neg <> " " <> x <> ")"+                        z   = cvtCV (mkConstCV (kindOf (hd "liftAbs.arguments" arguments)) (0::Integer))          lift2B bOp vOp           | boolOp = lift2 bOp@@ -698,15 +742,15 @@           | True = lift2 "="     sgn sbvs          -- Do not use distinct on floats; because +0/-0, and NaNs mess-        -- up the meaning. Just go with reqular equals.+        -- up the meaning. Just go with regular equals.         notEqual sgn sbvs           | fpOp || not hasDistinct = liftP sbvs           | True                    = liftN "distinct" sgn sbvs-          where liftP xs@[_, _] = "(not " ++ equal sgn xs ++ ")"-                liftP args      = "(and " ++ unwords (walk args) ++ ")"+          where liftP xs@[_, _] = "(not " <> equal sgn xs <> ")"+                liftP args      = "(and " <> T.unwords (walk args) <> ")"                  walk []     = []-                walk (e:es) = map (\e' -> liftP [e, e']) es ++ walk es+                walk (e:es) = map (\e' -> liftP [e, e']) es <> walk es          lift2S oU oS sgn = lift2 (if sgn then oS else oU) sgn         liftNS oU oS sgn = liftN (if sgn then oS else oU) sgn@@ -714,11 +758,6 @@         lift2Cmp o fo | fpOp = lift2 fo                       | True = lift2 o -        unintComp o [a, b]-          | KUserSort s (Just _) <- kindOf (hd "unintComp" arguments)-          = let idx v = "(" ++ s ++ "_constrIndex " ++ v ++ ")" in "(" ++ o ++ " " ++ idx a ++ " " ++ idx b ++ ")"-        unintComp o sbvs = error $ "SBV.SMT.SMTLib2.sh.unintComp: Unexpected arguments: "   ++ show (o, sbvs, map kindOf arguments)-         stringOrChar KString = True         stringOrChar KChar   = True         stringOrChar _       = False@@ -726,7 +765,7 @@           | stringOrChar (kindOf (hd "stringCmp" arguments))           = let (a1, a2) | swap = (b, a)                          | True = (a, b)-            in "(" ++ o ++ " " ++ a1 ++ " " ++ a2 ++ ")"+            in "(" <> o <> " " <> a1 <> " " <> a2 <> ")"         stringCmp _ o sbvs = error $ "SBV.SMT.SMTLib2.sh.stringCmp: Unexpected arguments: " ++ show (o, sbvs)          -- NB. Likewise for sequences@@ -734,63 +773,45 @@           | KList{} <- kindOf (hd "seqCmp" arguments)           = let (a1, a2) | swap = (b, a)                          | True = (a, b)-            in "(" ++ o ++ " " ++ a1 ++ " " ++ a2 ++ ")"+            in "(" <> o <> " " <> a1 <> " " <> a2 <> ")"         seqCmp _ o sbvs = error $ "SBV.SMT.SMTLib2.sh.seqCmp: Unexpected arguments: " ++ show (o, sbvs) -        lift1  o _ [x]    = "(" ++ o ++ " " ++ x ++ ")"-        lift1  o _ sbvs   = error $ "SBV.SMT.SMTLib2.sh.lift1: Unexpected arguments: "   ++ show (o, sbvs)--        -- We fully qualify the constructor with their types to work around type checking issues-        -- Note that this is rather bizarre, as we're tagging the constructor with its *result* type,-        -- not its full function type as one would expect. But this is per the spec: Pg. 27 of SMTLib 2.6 spec-        -- says:-        ---        --    To simplify sort checking, a function symbol in a term can be annotated with one of its result sorts sigma.-        ---        -- I wish it was the full type here not just the result, but we go with the spec. Also see: <http://github.com/Z3Prover/z3/issues/2135>-        -- and in particular <http://github.com/Z3Prover/z3/issues/2135#issuecomment-477636435>-        dtConstructor fld args res = "((as " ++ fld ++ " " ++ smtType res ++ ") " ++ unwords (map cvtSV args) ++ ")"--        -- Similarly, we fully qualify the accessors with their types to work around type checking issues-        -- Unfortunately, z3 and CVC4 are behaving differently, so we tie this ascription to a solver capability.-        dtAccessor fld params res-           | supportsDirectAccessors caps = dResult-           | True                         = aResult-          where dResult = "(_ is " ++ fld ++ ")"-                ps      = " (" ++ unwords (map smtType params) ++ ") "-                aResult = "(_ is (" ++ fld ++ ps ++ smtType res ++ "))"+        lift1  o _ [x]    = "(" <> o <> " " <> x <> ")"+        lift1  o _ sbvs   = error $ "SBV.SMTLib2.sh.lift1: Unexpected arguments: " ++ show (o, sbvs) -        sh (SBVApp Ite [a, b, c]) = "(ite " ++ cvtSV a ++ " " ++ cvtSV b ++ " " ++ cvtSV c ++ ")"+        sh (SBVApp Ite [a, b, c]) = "(ite " <> cvtSV a <> " " <> cvtSV b <> " " <> cvtSV c <> ")"          sh (SBVApp (LkUp (t, aKnd, _, l) i e) [])-          | needsCheck = "(ite " ++ cond ++ cvtSV e ++ " " ++ lkUp ++ ")"+          | needsCheck = "(ite " <> cond <> cvtSV e <> " " <> lkUp <> ")"           | True       = lkUp-          where needsCheck = case aKnd of+          where unexpected = error $ "SBV.SMT.SMTLib2.cvtExp: Unexpected: " ++ show aKnd+                needsCheck = case aKnd of+                              KVar{}        -> unexpected                               KBool         -> (2::Integer) > fromIntegral l                               KBounded _ n  -> (2::Integer)^n > fromIntegral l                               KUnbounded    -> True-                              KUserSort s _ -> error $ "SBV.SMT.SMTLib2.cvtExp: unexpected uninterpreted valued index: " ++ s-                              KReal         -> error "SBV.SMT.SMTLib2.cvtExp: unexpected real valued index"-                              KFloat        -> error "SBV.SMT.SMTLib2.cvtExp: unexpected float valued index"-                              KDouble       -> error "SBV.SMT.SMTLib2.cvtExp: unexpected double valued index"-                              KFP{}         -> error "SBV.SMT.SMTLib2.cvtExp: unexpected arbitrary float valued index"-                              KRational{}   -> error "SBV.SMT.SMTLib2.cvtExp: unexpected rational valued index"-                              KChar         -> error "SBV.SMT.SMTLib2.cvtExp: unexpected char valued index"-                              KString       -> error "SBV.SMT.SMTLib2.cvtExp: unexpected string valued index"-                              KList k       -> error $ "SBV.SMT.SMTLib2.cvtExp: unexpected list valued: " ++ show k-                              KSet  k       -> error $ "SBV.SMT.SMTLib2.cvtExp: unexpected set valued: " ++ show k-                              KTuple k      -> error $ "SBV.SMT.SMTLib2.cvtExp: unexpected tuple valued: " ++ show k-                              KMaybe k      -> error $ "SBV.SMT.SMTLib2.cvtExp: unexpected maybe valued: " ++ show k-                              KEither k1 k2 -> error $ "SBV.SMT.SMTLib2.cvtExp: unexpected sum valued: " ++ show (k1, k2)-                              KArray  k1 k2 -> error $ "SBV.SMT.SMTLib2.cvtExp: unexpected array valued: " ++ show (k1, k2)+                              KApp _ _      -> unexpected+                              KADT _ _ _    -> unexpected+                              KReal         -> unexpected+                              KFloat        -> unexpected+                              KDouble       -> unexpected+                              KFP _ _       -> unexpected+                              KRational     -> unexpected+                              KChar         -> unexpected+                              KString       -> unexpected+                              KList _       -> unexpected+                              KSet  _       -> unexpected+                              KTuple _      -> unexpected+                              KArray  _ _   -> unexpected -                lkUp = "(" ++ getTable tableMap t ++ " " ++ cvtSV i ++ ")"+                lkUp = "(" <> getTable tableMap t <> " " <> cvtSV i <> ")"                  cond-                 | hasSign i = "(or " ++ le0 ++ " " ++ gtl ++ ") "-                 | True      = gtl ++ " "+                 | hasSign i = "(or " <> le0 <> " " <> gtl <> ") "+                 | True      = gtl <> " "                  (less, leq) = case aKnd of+                                KVar{}        -> error "SBV.SMT.SMTLib2.cvtExp: unexpected variable index"                                 KBool         -> error "SBV.SMT.SMTLib2.cvtExp: unexpected boolean valued index"                                 KBounded{}    -> if hasSign i then ("bvslt", "bvsle") else ("bvult", "bvule")                                 KUnbounded    -> ("<", "<=")@@ -801,29 +822,31 @@                                 KFP{}         -> ("fp.lt", "fp.leq")                                 KChar         -> error "SBV.SMT.SMTLib2.cvtExp: unexpected string valued index"                                 KString       -> error "SBV.SMT.SMTLib2.cvtExp: unexpected string valued index"-                                KUserSort s _ -> error $ "SBV.SMT.SMTLib2.cvtExp: unexpected uninterpreted valued index: " ++ s+                                KApp  s _     -> error $ "SBV.SMT.SMTLib2.cvtExp: unexpected ADT applied index: " ++ s+                                KADT  s _ _   -> error $ "SBV.SMT.SMTLib2.cvtExp: unexpected ADT valued index: " ++ s                                 KList k       -> error $ "SBV.SMT.SMTLib2.cvtExp: unexpected sequence valued index: " ++ show k                                 KSet  k       -> error $ "SBV.SMT.SMTLib2.cvtExp: unexpected set valued index: " ++ show k                                 KTuple k      -> error $ "SBV.SMT.SMTLib2.cvtExp: unexpected tuple valued index: " ++ show k-                                KMaybe k      -> error $ "SBV.SMT.SMTLib2.cvtExp: unexpected maybe valued index: " ++ show k-                                KEither k1 k2 -> error $ "SBV.SMT.SMTLib2.cvtExp: unexpected sum valued index: " ++ show (k1, k2)                                 KArray  k1 k2 -> error $ "SBV.SMT.SMTLib2.cvtExp: unexpected array valued index: " ++ show (k1, k2) -                mkCnst = cvtCV rm . mkConstCV (kindOf i)-                le0  = "(" ++ less ++ " " ++ cvtSV i ++ " " ++ mkCnst 0 ++ ")"-                gtl  = "(" ++ leq  ++ " " ++ mkCnst l ++ " " ++ cvtSV i ++ ")"+                mkCnst = cvtCV . mkConstCV (kindOf i)+                le0  = "(" <> less <> " " <> cvtSV i <> " " <> mkCnst 0 <> ")"+                gtl  = "(" <> leq  <> " " <> mkCnst l <> " " <> cvtSV i <> ")"          sh (SBVApp (KindCast f t) [a]) = handleKindCast f t (cvtSV a) -        sh (SBVApp (ArrayLambda s) [])        = show s-        sh (SBVApp ReadArray       [a, i])    = "(select " ++ cvtSV a ++ " " ++ cvtSV i ++ ")"-        sh (SBVApp WriteArray      [a, i, e]) = "(store "  ++ cvtSV a ++ " " ++ cvtSV i ++ " " ++ cvtSV e ++ ")"+        sh (SBVApp (ArrayInit (Left (f, t))) [a])        = "((as const (Array " <> smtType f <> " " <> smtType t <> ")) " <> cvtSV a <> ")"+        sh (SBVApp (ArrayInit (Right (SMTLambda s))) []) = s+        sh (SBVApp ReadArray             [a, i])         = "(select " <> cvtSV a <> " " <> cvtSV i <> ")"+        sh (SBVApp WriteArray            [a, i, e])      = "(store "  <> cvtSV a <> " " <> cvtSV i <> " " <> cvtSV e <> ")"          sh (SBVApp (Uninterpreted nm) [])   = nm-        sh (SBVApp (Uninterpreted nm) args) = "(" ++ nm ++ " " ++ unwords (map cvtSV args) ++ ")"+        sh (SBVApp (Uninterpreted nm) args) = "(" <> nm <> " " <> T.unwords (map cvtSV args) <> ")" +        sh (SBVApp (ADTOp aop) args) = handleADT caps aop args+         sh (SBVApp (QuantifiedBool i) [])   = i-        sh (SBVApp (QuantifiedBool i) args) = error $ "SBV.SMT.SMTLib2.cvtExp: unexpected arguments to quantified boolean: " ++ show (i, args)+        sh (SBVApp (QuantifiedBool i) args) = error $ "SBV.SMT.SMTLib2.cvtExp: unexpected arguments to quantified boolean: " ++ show (T.unpack i, args)          sh a@(SBVApp (SpecialRelOp k o) args)           | not (null args)@@ -834,16 +857,16 @@                           Nothing -> error $ unlines [ "SBV.SMT.SMTLib2.cvtExp: Cannot find " ++ show o ++ " in the special-relations list."                                                      , "Known relations: " ++ intercalate ", " (map show specialRels)                                                      ]-                asrt nm fun = mkRelEq nm (fun, show order) k+                asrt nm fun = mkRelEq (T.pack nm) (T.pack fun, showText order) k             in case o of                  IsPartialOrder         nm -> asrt nm "partial-order"                  IsLinearOrder          nm -> asrt nm "linear-order"                  IsTreeOrder            nm -> asrt nm "tree-order"                  IsPiecewiseLinearOrder nm -> asrt nm "piecewise-linear-order" -        sh (SBVApp (Divides n) [a]) = "((_ divisible " ++ show n ++ ") " ++ cvtSV a ++ ")"+        sh (SBVApp (Divides n) [a]) = "((_ divisible " <> showText n <> ") " <> cvtSV a <> ")" -        sh (SBVApp (Extract i j) [a]) | ensureBV = "((_ extract " ++ show i ++ " " ++ show j ++ ") " ++ cvtSV a ++ ")"+        sh (SBVApp (Extract i j) [a]) | ensureBV = "((_ extract " <> showText i <> " " <> showText j <> ") " <> cvtSV a <> ")"          sh (SBVApp (Rol i) [a])            | bvOp  = rot "rotate_left"  i a@@ -862,11 +885,11 @@            | True  = bad          sh (SBVApp (ZeroExtend i) [a])-          | bvOp = "((_ zero_extend " ++ show i ++ ") " ++ cvtSV a ++ ")"+          | bvOp = "((_ zero_extend " <> showText i <> ") " <> cvtSV a <> ")"           | True = bad          sh (SBVApp (SignExtend i) [a])-          | bvOp = "((_ sign_extend " ++ show i ++ ") " ++ cvtSV a ++ ")"+          | bvOp = "((_ sign_extend " <> showText i <> ") " <> cvtSV a <> ")"           | True = bad          sh (SBVApp op args)@@ -884,67 +907,55 @@          sh (SBVApp (Label _) [a]) = cvtSV a  -- This won't be reached; but just in case! -        sh (SBVApp (IEEEFP (FP_Cast kFrom kTo m)) args) = handleFPCast kFrom kTo (cvtSV m) (unwords (map cvtSV args))-        sh (SBVApp (IEEEFP w                    ) args) = "(" ++ show w ++ " " ++ unwords (map cvtSV args) ++ ")"+        sh (SBVApp (IEEEFP (FP_Cast kFrom kTo m)) args) = handleFPCast kFrom kTo (cvtSV m) (T.unwords (map cvtSV args))+        sh (SBVApp (IEEEFP w                    ) args) = "(" <> showText w <> " " <> T.unwords (map cvtSV args) <> ")"          -- Some non-linear operators are supported by z3/CVC5 specifically, so do the custom translation Otherwise         -- we pass them along.-        sh (SBVApp (NonLinear NR_Sqrt) [a])    | isZ3   = "(^ "    ++ cvtSV a ++ " 0.5)"-                                               | isCVC5 = "(sqrt " ++ cvtSV a ++     ")"+        sh (SBVApp (NonLinear NR_Sqrt) [a])    | isZ3   = "(^ "    <> cvtSV a <> " 0.5)"+                                               | isCVC5 = "(sqrt " <> cvtSV a <>     ")" -        sh (SBVApp (NonLinear NR_Pow)  [a, b]) | isZ3 || isCVC5  = "(^  " ++ cvtSV a ++ " " ++ cvtSV b ++ ")"+        sh (SBVApp (NonLinear NR_Pow)  [a, b]) | isZ3 || isCVC5  = "(^  " <> cvtSV a <> " " <> cvtSV b <> ")" -        sh (SBVApp (NonLinear w) args) = "(" ++ show w ++ " " ++ unwords (map cvtSV args) ++ ")"+        sh (SBVApp (NonLinear w) [])   =        T.pack (showNROp (name (solver cfg)) w)+        sh (SBVApp (NonLinear w) args) = "(" <> T.pack (showNROp (name (solver cfg)) w) <> " " <> T.unwords (map cvtSV args) <> ")"          sh (SBVApp (PseudoBoolean pb) args)           | hasPB = handlePB pb args'           | True  = reducePB pb args'           where args' = map cvtSV args -        sh (SBVApp (OverflowOp op) args) = "(" ++ show op ++ " " ++ unwords (map cvtSV args) ++ ")"+        sh (SBVApp (OverflowOp op) args) = "(" <> showText op <> " " <> T.unwords (map cvtSV args) <> ")"          -- Note the unfortunate reversal in StrInRe..-        sh (SBVApp (StrOp (StrInRe r)) args) = "(str.in.re " ++ unwords (map cvtSV args) ++ " " ++ regExpToSMTString r ++ ")"-        sh (SBVApp (StrOp op)          args) = "(" ++ show op ++ " " ++ unwords (map cvtSV args) ++ ")"+        sh (SBVApp (StrOp (StrInRe r)) args) = "(str.in_re " <> T.unwords (map cvtSV args) <> " " <> regExpToSMTString r <> ")"+        sh (SBVApp (StrOp op)          args) = "(" <> showText op <> " " <> T.unwords (map cvtSV args) <> ")" -        sh (SBVApp (RegExOp o@RegExEq{})  []) = show o-        sh (SBVApp (RegExOp o@RegExNEq{}) []) = show o+        sh (SBVApp (RegExOp o@RegExEq{})  []) = showText o+        sh (SBVApp (RegExOp o@RegExNEq{}) []) = showText o          -- Sequences. The only interesting thing here is that unit over KChar is a no-op since SMTLib doesn't distinguish         -- Strings and Characters, but SBV does.         sh (SBVApp (SeqOp (SeqUnit KChar)) [a]) = cvtSV a-        sh (SBVApp (SeqOp op)             args) = "(" ++ show op ++ " " ++ unwords (map cvtSV args) ++ ")"+        sh (SBVApp (SeqOp op)             args) = "(" <> showText op <> " " <> T.unwords (map cvtSV args) <> ")" -        sh (SBVApp (SetOp SetEqual)      args)   = "(= "      ++ unwords (map cvtSV args) ++ ")"-        sh (SBVApp (SetOp SetMember)     [e, s]) = "(select " ++ cvtSV s ++ " " ++ cvtSV e ++ ")"-        sh (SBVApp (SetOp SetInsert)     [e, s]) = "(store "  ++ cvtSV s ++ " " ++ cvtSV e ++ " true)"-        sh (SBVApp (SetOp SetDelete)     [e, s]) = "(store "  ++ cvtSV s ++ " " ++ cvtSV e ++ " false)"-        sh (SBVApp (SetOp SetIntersect)  args)   = "(intersection " ++ unwords (map cvtSV args) ++ ")"-        sh (SBVApp (SetOp SetUnion)      args)   = "(union "        ++ unwords (map cvtSV args) ++ ")"-        sh (SBVApp (SetOp SetSubset)     args)   = "(subset "       ++ unwords (map cvtSV args) ++ ")"-        sh (SBVApp (SetOp SetDifference) args)   = "(setminus "     ++ unwords (map cvtSV args) ++ ")"-        sh (SBVApp (SetOp SetComplement) args)   = "(complement "   ++ unwords (map cvtSV args) ++ ")"+        sh (SBVApp (SetOp SetEqual)      args)   = "(= "      <> T.unwords (map cvtSV args) <> ")"+        sh (SBVApp (SetOp SetMember)     [e, s]) = "(select " <> cvtSV s <> " " <> cvtSV e <> ")"+        sh (SBVApp (SetOp SetInsert)     [e, s]) = "(store "  <> cvtSV s <> " " <> cvtSV e <> " true)"+        sh (SBVApp (SetOp SetDelete)     [e, s]) = "(store "  <> cvtSV s <> " " <> cvtSV e <> " false)"+        sh (SBVApp (SetOp SetIntersect)  args)   = "(intersection " <> T.unwords (map cvtSV args) <> ")"+        sh (SBVApp (SetOp SetUnion)      args)   = "(union "        <> T.unwords (map cvtSV args) <> ")"+        sh (SBVApp (SetOp SetSubset)     args)   = "(subset "       <> T.unwords (map cvtSV args) <> ")"+        sh (SBVApp (SetOp SetDifference) args)   = "(setminus "     <> T.unwords (map cvtSV args) <> ")"+        sh (SBVApp (SetOp SetComplement) args)   = "(complement "   <> T.unwords (map cvtSV args) <> ")"          sh (SBVApp (TupleConstructor 0)   [])    = "mkSBVTuple0"-        sh (SBVApp (TupleConstructor n)   args)  = "((as mkSBVTuple" ++ show n ++ " " ++ smtType (KTuple (map kindOf args)) ++ ") " ++ unwords (map cvtSV args) ++ ")"-        sh (SBVApp (TupleAccess      i n) [tup]) = "(proj_" ++ show i ++ "_SBVTuple" ++ show n ++ " " ++ cvtSV tup ++ ")"--        sh (SBVApp (EitherConstructor k1 k2 False) [arg]) =       dtConstructor "left_SBVEither"  [arg] (KEither k1 k2)-        sh (SBVApp (EitherConstructor k1 k2 True ) [arg]) =       dtConstructor "right_SBVEither" [arg] (KEither k1 k2)-        sh (SBVApp (EitherIs          k1 k2 False) [arg]) = '(' : dtAccessor    "left_SBVEither"  [k1]  (KEither k1 k2) ++ " " ++ cvtSV arg ++ ")"-        sh (SBVApp (EitherIs          k1 k2 True ) [arg]) = '(' : dtAccessor    "right_SBVEither" [k2]  (KEither k1 k2) ++ " " ++ cvtSV arg ++ ")"-        sh (SBVApp (EitherAccess            False) [arg]) = "(get_left_SBVEither "  ++ cvtSV arg ++ ")"-        sh (SBVApp (EitherAccess            True ) [arg]) = "(get_right_SBVEither " ++ cvtSV arg ++ ")"--        sh (SBVApp  RationalConstructor    [t, b]) = "(SBV.Rational " ++ cvtSV t ++ " " ++ cvtSV b ++ ")"+        sh (SBVApp (TupleConstructor n)   args)  = "((as mkSBVTuple" <> showText n <> " " <> smtType (KTuple (map kindOf args)) <> ") " <> T.unwords (map cvtSV args) <> ")"+        sh (SBVApp (TupleAccess      i n) [tup]) = "(proj_" <> showText i <> "_SBVTuple" <> showText n <> " " <> cvtSV tup <> ")" -        sh (SBVApp (MaybeConstructor k False) [])    =       dtConstructor "nothing_SBVMaybe" []    (KMaybe k)-        sh (SBVApp (MaybeConstructor k True)  [arg]) =       dtConstructor "just_SBVMaybe"    [arg] (KMaybe k)-        sh (SBVApp (MaybeIs          k False) [arg]) = '(' : dtAccessor    "nothing_SBVMaybe" []    (KMaybe k) ++ " " ++ cvtSV arg ++ ")"-        sh (SBVApp (MaybeIs          k True ) [arg]) = '(' : dtAccessor    "just_SBVMaybe"    [k]   (KMaybe k) ++ " " ++ cvtSV arg ++ ")"-        sh (SBVApp MaybeAccess                [arg]) = "(get_just_SBVMaybe " ++ cvtSV arg ++ ")"+        sh (SBVApp  RationalConstructor    [t, b]) = "(SBV.Rational " <> cvtSV t <> " " <> cvtSV b <> ")" -        sh (SBVApp Implies [a, b]) = "(=> " ++ cvtSV a ++ " " ++ cvtSV b ++ ")"+        sh (SBVApp Implies [a, b]) = "(=> " <> cvtSV a <> " " <> cvtSV b <> ")"          sh inp@(SBVApp op args)           | intOp, Just f <- lookup op smtOpIntTable@@ -966,25 +977,16 @@           | Just f <- lookup op uninterpretedTable           = f (map cvtSV args)           | True-          = if not (null args) && isUserSort (hd "isUserSort" args)-            then error $ unlines [ ""-                                 , "*** Cannot translate operator        : " ++ show op-                                 , "*** When applied to arguments of kind: " ++ intercalate ", " (nub (map (show . kindOf) args))-                                 , "*** Found as part of the expression  : " ++ show inp-                                 , "***"-                                 , "*** Note that uninterpreted kinds only support equality."-                                 , "*** If you believe this is in error, please report!"-                                 ]-            else error $ unlines [ ""-                                 , "*** SBV.SMT.SMTLib2.cvtExp.sh: impossible happened; can't translate: " ++ show inp-                                 , "***"-                                 , "*** Applied to arguments of type: " ++ intercalate ", " (nub (map (show . kindOf) args))-                                 , "***"-                                 , "*** This can happen if the Num instance isn't properly defined for a lifted kind."-                                 , "*** (See https://github.com/LeventErkok/sbv/issues/698 for a discussion.)"-                                 , "***"-                                 , "*** If you believe this is in error, please report!"-                                 ]+          = error $ unlines [ ""+                            , "*** SBV.SMT.SMTLib2.cvtExp.sh: impossible happened; can't translate: " ++ show inp+                            , "***"+                            , "*** Applied to arguments of type: " ++ intercalate ", " (nub (map (show . kindOf) args))+                            , "***"+                            , "*** This can happen if the Num instance isn't properly defined for a lifted kind."+                            , "*** (See https://github.com/LeventErkok/sbv/issues/698 for a discussion.)"+                            , "***"+                            , "*** If you believe this is in error, please report!"+                            ]           where smtOpBVTable  = [ (Plus,          lift2   "bvadd")                                 , (Minus,         lift2   "bvsub")                                 , (Times,         lift2   "bvmul")@@ -1007,9 +1009,9 @@                                  , (LessEq,        blq)                                  , (GreaterEq,     blq . swp)                                  ]-                               where blt [x, y] = "(and (not " ++ x ++ ") " ++ y ++ ")"+                               where blt [x, y] = "(and (not " <> x <> ") " <> y <> ")"                                      blt xs     = error $ "SBV.SMT.SMTLib2.boolComps.blt: Impossible happened, incorrect arity (expected 2): " ++ show xs-                                     blq [x, y] = "(or (not " ++ x ++ ") " ++ y ++ ")"+                                     blq [x, y] = "(or (not " <> x <> ") " <> y <> ")"                                      blq xs     = error $ "SBV.SMT.SMTLib2.boolComps.blq: Impossible happened, incorrect arity (expected 2): " ++ show xs                                      swp [x, y] = [y, x]                                      swp xs     = error $ "SBV.SMT.SMTLib2.boolComps.swp: Impossible happened, incorrect arity (expected 2): " ++ show xs@@ -1044,17 +1046,13 @@                              , (Equal False, lift2Rat "sbv.rat.eq")                              , (NotEqual,    lift2Rat "sbv.rat.notEq")                              ]-                        where lift2Rat o [x, y] = "(" ++ o ++ " " ++ x ++ " " ++ y ++ ")"-                              lift2Rat o sbvs   = error $ "SBV.SMTLib2.sh.lift2Rat: Unexpected arguments: "   ++ show (o, sbvs)+                        where lift2Rat o [x, y] = "(" <> o <> " " <> x <> " " <> y <> ")"+                              lift2Rat o sbvs   = error $ "SBV.SMTLib2.sh.lift2Rat: Unexpected arguments: " ++ show (o, sbvs)                  -- equality and comparisons are the only thing that works on uninterpreted sorts and pretty much everything else                 uninterpretedTable = [ (Equal True,  lift2S "="        "="        True)                                      , (Equal False, lift2S "="        "="        True)                                      , (NotEqual,    liftNS "distinct" "distinct" True)-                                     , (LessThan,    unintComp "<")-                                     , (GreaterThan, unintComp ">")-                                     , (LessEq,      unintComp "<=")-                                     , (GreaterEq,   unintComp ">=")                                      ]                  -- For strings, equality and comparisons are the only operators@@ -1077,18 +1075,18 @@                                , (GreaterEq,   seqCmp True  "seq.<=")                                ] -declareFun :: SV -> SBVType -> Maybe String -> [String]-declareFun = declareName . show+declareFun :: SV -> SBVType -> Maybe Text -> [Text]+declareFun sv = declareName (showText sv)  -- If we have a char, we have to make sure it's and SMTLib string of length exactly one -- If we have a rational, we have to make sure the denominator is > 0 -- Otherwise, we just declare the name-declareName :: String -> SBVType -> Maybe String -> [String]+declareName :: Text -> SBVType -> Maybe Text -> [Text] declareName s t@(SBVType inputKS) mbCmnt = decl : restrict-  where decl        = "(declare-fun " ++ s ++ " " ++ cvtType t ++ ")" ++ maybe "" (" ; " ++) mbCmnt+  where decl = "(declare-fun " <> s <> " " <> cvtType t <> ")" <> maybe "" (" ; " <>) mbCmnt          (args, result) = case inputKS of-                          [] -> error $ "SBV.declareName: Unexpected empty type for: " ++ show s+                          [] -> error $ "SBV.declareName: Unexpected empty type for: " ++ T.unpack s                           _  -> (init inputKS, last inputKS)          -- Does the kind KChar and KRational *not* occur in the kind anywhere?@@ -1103,43 +1101,44 @@         resultVar | needsQuant = "result"                   | True       = s -        argList   = ["a" ++ show i | (i, _) <- zip [1::Int ..] args]-        argTList  = ["(" ++ a ++ " " ++ smtType k ++ ")" | (a, k) <- zip argList args]-        resultExp = "(" ++ s ++ " " ++ unwords argList ++ ")"+        argList   = ["a" <> showText i | (i, _) <- zip [1::Int ..] args]+        argTList  = ["(" <> a <> " " <> smtType k <> ")" | (a, k) <- zip argList args]+        resultExp = "(" <> s <> " " <> T.unwords argList <> ")"          restrict | noCharOrRat = []-                 | needsQuant  =    [               "(assert (forall (" ++ unwords argTList ++ ")"-                                    ,               "                (let ((" ++ resultVar ++ " " ++ resultExp ++ "))"+                 | needsQuant  =    [               "(assert (forall (" <> T.unwords argTList <> ")"+                                    ,               "                (let ((" <> resultVar <> " " <> resultExp <> "))"                                     ]-                                 ++ (case constraints of+                                 <> (case constraints of                                        []     ->  [ "                     true"]-                                       [x]    ->  [ "                     " ++ x]-                                       (x:xs) ->  ( "                     (and " ++ x)-                                               :  [ "                          " ++ c | c <- xs]-                                               ++ [ "                     )"])-                                 ++ [        "                )))"]+                                       [x]    ->  [ "                     " <> x]+                                       (x:xs) ->  ( "                     (and " <> x)+                                               :  [ "                          " <> c | c <- xs]+                                               <> [ "                     )"])+                                 <> [        "                )))"]                  | True        = case constraints of                                   []     -> []-                                  [x]    -> ["(assert " ++ x ++ ")"]-                                  (x:xs) -> ( "(assert (and " ++ x)-                                         :  [ "             " ++ c | c <- xs]-                                         ++ [ "        ))"]+                                  [x]    -> ["(assert " <> x <> ")"]+                                  (x:xs) -> ( "(assert (and " <> x)+                                         :  [ "             " <> c | c <- xs]+                                         <> [ "        ))"]          constraints = walk 0 resultVar cstr result-          where cstr KChar     nm = ["(= 1 (str.len " ++ nm ++ "))"]-                cstr KRational nm = ["(< 0 (sbv.rat.denominator " ++ nm ++ "))"]+          where cstr KChar     nm = ["(= 1 (str.len " <> nm <> "))"]+                cstr KRational nm = ["(< 0 (sbv.rat.denominator " <> nm <> "))"]                 cstr _         _  = []          mkAnd [] _context = []         mkAnd [c] context = context c-        mkAnd cs  context = context $ "(and " ++ unwords cs ++ ")"+        mkAnd cs  context = context $ "(and " <> T.unwords cs <> ")" -        walk :: Int -> String -> (Kind -> String -> [String]) -> Kind -> [String]+        walk :: Int -> Text -> (Kind -> Text -> [Text]) -> Kind -> [Text]+        walk _d nm f k@KVar      {}         = f k nm         walk _d nm f k@KBool     {}         = f k nm         walk _d nm f k@KBounded  {}         = f k nm         walk _d nm f k@KUnbounded{}         = f k nm         walk _d nm f k@KReal     {}         = f k nm-        walk _d nm f k@KUserSort {}         = f k nm+        walk _d nm f k@KApp      {}         = f k nm         walk _d nm f k@KFloat    {}         = f k nm         walk _d nm f k@KDouble   {}         = f k nm         walk _d nm f k@KRational {}         = f k nm@@ -1148,30 +1147,26 @@         walk _d nm f k@KString   {}         = f k nm         walk  d nm f  (KList k)           | charRatFree k                 = []-          | True                          = let fnm   = "seq" ++ show d-                                                cstrs = walk (d+1) ("(seq.nth " ++ nm ++ " " ++ fnm ++ ")") f k-                                            in mkAnd cstrs $ \hole -> ["(forall ((" ++ fnm ++ " " ++ smtType KUnbounded ++ ")) (=> (and (>= " ++ fnm ++ " 0) (< " ++ fnm ++ " (seq.len " ++ nm ++ "))) " ++ hole ++ "))"]+          | True                          = let fnm   = "seq" <> showText d+                                                cstrs = walk (d+1) ("(seq.nth " <> nm <> " " <> fnm <> ")") f k+                                            in mkAnd cstrs $ \hole -> ["(forall ((" <> fnm <> " " <> smtType KUnbounded <> ")) (=> (and (>= " <> fnm <> " 0) (< " <> fnm <> " (seq.len " <> nm <> "))) " <> hole <> "))"]         walk  d  nm f (KSet k)           | charRatFree k                 = []-          | True                          = let fnm    = "set" ++ show d-                                                cstrs  = walk (d+1) nm (\sk snm -> ["(=> (select " ++ snm ++ " " ++ fnm ++ ") " ++ c ++ ")" | c <- f sk fnm]) k-                                            in mkAnd cstrs $ \hole -> ["(forall ((" ++ fnm ++ " " ++ smtType k ++ ")) " ++ hole ++ ")"]-        walk  d  nm  f (KTuple ks)        = let tt        = "SBVTuple" ++ show (length ks)-                                                project i = "(proj_" ++ show i ++ "_" ++ tt ++ " " ++ nm ++ ")"+          | True                          = let fnm    = "set" <> showText d+                                                cstrs  = walk (d+1) nm (\sk snm -> ["(=> (select " <> snm <> " " <> fnm <> ") " <> c <> ")" | c <- f sk fnm]) k+                                            in mkAnd cstrs $ \hole -> ["(forall ((" <> fnm <> " " <> smtType k <> ")) " <> hole <> ")"]+        walk  d  nm  f (KTuple ks)        = let tt        = "SBVTuple" <> showText (length ks)+                                                project i = "(proj_" <> showText i <> "_" <> tt <> " " <> nm <> ")"                                                 nmks      = [(project i, k) | (i, k) <- zip [1::Int ..] ks]                                             in concatMap (\(n, k) -> walk (d+1) n f k) nmks-        walk  d  nm  f km@(KMaybe k)      = let n = "(get_just_SBVMaybe " ++ nm ++ ")"-                                            in  ["(=> " ++ "((_ is (just_SBVMaybe (" ++ smtType k ++ ") " ++ smtType km ++ ")) " ++ nm ++ ") " ++ c ++ ")" | c <- walk (d+1) n f k]-        walk  d  nm  f ke@(KEither k1 k2) = let n1 = "(get_left_SBVEither "  ++ nm ++ ")"-                                                n2 = "(get_right_SBVEither " ++ nm ++ ")"-                                                c1 = ["(=> " ++ "((_ is (left_SBVEither ("  ++ smtType k1 ++ ") " ++ smtType ke ++ ")) " ++ nm ++ ") " ++ c ++ ")" | c <- walk (d+1) n1 f k1]-                                                c2 = ["(=> " ++ "((_ is (right_SBVEither (" ++ smtType k2 ++ ") " ++ smtType ke ++ ")) " ++ nm ++ ") " ++ c ++ ")" | c <- walk (d+1) n2 f k2]-                                            in c1 ++ c2         walk d  nm f  (KArray k1 k2)           | all charRatFree [k1, k2]      = []-          | True                          = let fnm   = "array" ++ show d-                                                cstrs = walk (d+1) ("(select " ++ nm ++ " " ++ fnm ++ ")") f k2-                                            in mkAnd cstrs $ \hole -> ["(forall ((" ++ fnm ++ " " ++ smtType k1 ++ ")) " ++ hole ++ ")"]+          | True                          = let fnm   = "array" <> showText d+                                                cstrs = walk (d+1) ("(select " <> nm <> " " <> fnm <> ")") f k2+                                            in mkAnd cstrs $ \hole -> ["(forall ((" <> fnm <> " " <> smtType k1 <> ")) " <> hole <> ")"]+        walk d nm f (KADT ty dict pureFS) = let fs = [(c, map (substituteADTVars ty dict) ks) | (c, ks) <- pureFS]+                                                nmks  = [("(get" <> T.pack c <> "_" <> showText i <> " " <> nm <> ")", k) | (c, ks) <- fs, (i, k) <- zip [(1::Int)..] ks]+                                            in concatMap (\(n, k) -> walk (d+1) n f k) nmks  ----------------------------------------------------------------------------------------------- -- Casts supported by SMTLib. (From: <https://smt-lib.org/theories-FloatingPoint.shtml>)@@ -1197,13 +1192,13 @@ --   (fp.to_real (_ FloatingPoint eb sb) Real) ----------------------------------------------------------------------------------------------- -handleFPCast :: Kind -> Kind -> String -> String -> String+handleFPCast :: Kind -> Kind -> Text -> Text -> Text handleFPCast kFromIn kToIn rm input   | kFrom == kTo   = input   | True-  = "(" ++ cast kFrom kTo input ++ ")"-  where addRM a s = s ++ " " ++ rm ++ " " ++ a+  = "(" <> cast kFrom kTo input <> ")"+  where addRM a s = s <> " " <> rm <> " " <> a          kFrom = simplify kFromIn         kTo   = simplify kToIn@@ -1212,37 +1207,51 @@         simplify KDouble = KFP  11 53         simplify k       = k -        size (eb, sb) = show eb ++ " " ++ show sb+        size (eb, sb) = showText eb <> " " <> showText sb          -- To go and back from Ints, we detour through reals-        cast KUnbounded (KFP eb sb) a = "(_ to_fp " ++ size (eb, sb) ++ ") "  ++ rm ++ " (to_real " ++ a ++ ")"-        cast KFP{}      KUnbounded  a = "to_int (fp.to_real " ++ a ++ ")"+        cast KUnbounded (KFP eb sb) a = "(_ to_fp " <> size (eb, sb) <> ") "  <> rm <> " (to_real " <> a <> ")"+        cast KFP{}      KUnbounded  a = "to_int (fp.to_real (fp.roundToIntegral " <> rm <> " " <> a <> "))"          -- To floats-        cast (KBounded False _) (KFP eb sb) a = addRM a $ "(_ to_fp_unsigned " ++ size (eb, sb) ++ ")"-        cast (KBounded True  _) (KFP eb sb) a = addRM a $ "(_ to_fp "          ++ size (eb, sb) ++ ")"-        cast KReal              (KFP eb sb) a = addRM a $ "(_ to_fp "          ++ size (eb, sb) ++ ")"-        cast KFP{}              (KFP eb sb) a = addRM a $ "(_ to_fp "          ++ size (eb, sb) ++ ")"+        cast (KBounded False _) (KFP eb sb) a = addRM a $ "(_ to_fp_unsigned " <> size (eb, sb) <> ")"+        cast (KBounded True  _) (KFP eb sb) a = addRM a $ "(_ to_fp "          <> size (eb, sb) <> ")"+        cast KReal              (KFP eb sb) a = addRM a $ "(_ to_fp "          <> size (eb, sb) <> ")"+        cast KFP{}              (KFP eb sb) a = addRM a $ "(_ to_fp "          <> size (eb, sb) <> ")"          -- From float/double-        cast KFP{} (KBounded False m) a = addRM a $ "(_ fp.to_ubv " ++ show m ++ ")"-        cast KFP{} (KBounded True  m) a = addRM a $ "(_ fp.to_sbv " ++ show m ++ ")"+        cast KFP{} (KBounded False m) a = addRM a $ "(_ fp.to_ubv " <> showText m <> ")"+        cast KFP{} (KBounded True  m) a = addRM a $ "(_ fp.to_sbv " <> showText m <> ")"          -- To real-        cast KFP{} KReal a = "fp.to_real" ++ " " ++ a+        cast KFP{} KReal a = "fp.to_real" <> " " <> a          -- Nothing else should come up:         cast f  d  _ = error $ "SBV.SMTLib2: Unexpected FPCast from: " ++ show f ++ " to " ++ show d -rot :: String -> Int -> SV -> String-rot o c x = "((_ " ++ o ++ " " ++ show c ++ ") " ++ cvtSV x ++ ")"+rot :: Text -> Int -> SV -> Text+rot o c x = "((_ " <> o <> " " <> showText c <> ") " <> cvtSV x <> ")" -shft :: String -> String -> SV -> SV -> String-shft oW oS x c = "(" ++ o ++ " " ++ cvtSV x ++ " " ++ cvtSV c ++ ")"+shft :: Text -> Text -> SV -> SV -> Text+shft oW oS x c = "(" <> o <> " " <> cvtSV x <> " " <> cvtSV c <> ")"    where o = if hasSign x then oS else oW +-- ADT operations+handleADT :: SolverCapabilities -> ADTOp -> [SV] -> Text+handleADT caps op args = case args of+                          [] -> f+                          _  -> "(" <> f <> " " <> T.unwords (map cvtSV args) <> ")"+  where f = case op of+              ADTConstructor nm k -> ascribe nm k+              ADTTester      nm k -> if supportsDirectTesters caps+                                     then nm+                                     else ascribe nm k+              ADTAccessor    nm _ -> nm++        ascribe nm k = "(as " <> nm <> " " <> smtType k <> ")"+ -- Various casts-handleKindCast :: Kind -> Kind -> String -> String+handleKindCast :: Kind -> Kind -> Text -> Text handleKindCast kFrom kTo a   | kFrom == kTo   = a@@ -1250,17 +1259,17 @@   = case kFrom of       KBounded s m -> case kTo of                         KBounded _ n -> fromBV (if s then signExtend else zeroExtend) m n-                        KUnbounded   -> if s then "(sbv_to_int " ++ a ++ ")"-                                             else "(ubv_to_int " ++ a ++ ")"+                        KUnbounded   -> if s then "(sbv_to_int " <> a <> ")"+                                             else "(ubv_to_int " <> a <> ")"                         _            -> tryFPCast        KUnbounded   -> case kTo of-                        KReal        -> "(to_real " ++ a ++ ")"-                        KBounded _ n -> "((_ int_to_bv " ++ show n ++ ") " ++ a ++ ")"+                        KReal        -> "(to_real " <> a <> ")"+                        KBounded _ n -> "((_ int_to_bv " <> showText n <> ") " <> a <> ")"                         _            -> tryFPCast        KReal        -> case kTo of-                        KUnbounded   -> "(to_int " ++ a ++ ")"+                        KUnbounded   -> "(to_int " <> a <> ")"                         _            -> tryFPCast        _            -> tryFPCast@@ -1278,36 +1287,36 @@          | m == n = a          | True   = extract (n - 1) -        signExtend i = "((_ sign_extend " ++ show i ++  ") "  ++ a ++ ")"-        zeroExtend i = "((_ zero_extend " ++ show i ++  ") "  ++ a ++ ")"-        extract    i = "((_ extract "     ++ show i ++ " 0) " ++ a ++ ")"+        signExtend i = "((_ sign_extend " <> showText i <> ") "   <> a <> ")"+        zeroExtend i = "((_ zero_extend " <> showText i <> ") "   <> a <> ")"+        extract    i = "((_ extract "     <> showText i <> " 0) " <> a <> ")"  -- Translation of pseudo-booleans, in case the solver supports them-handlePB :: PBOp -> [String] -> String-handlePB (PB_AtMost  k) args = "((_ at-most "  ++ show k                                             ++ ") " ++ unwords args ++ ")"-handlePB (PB_AtLeast k) args = "((_ at-least " ++ show k                                             ++ ") " ++ unwords args ++ ")"-handlePB (PB_Exactly k) args = "((_ pbeq "     ++ unwords (map show (k : replicate (length args) 1)) ++ ") " ++ unwords args ++ ")"-handlePB (PB_Eq cs   k) args = "((_ pbeq "     ++ unwords (map show (k : cs))                        ++ ") " ++ unwords args ++ ")"-handlePB (PB_Le cs   k) args = "((_ pble "     ++ unwords (map show (k : cs))                        ++ ") " ++ unwords args ++ ")"-handlePB (PB_Ge cs   k) args = "((_ pbge "     ++ unwords (map show (k : cs))                        ++ ") " ++ unwords args ++ ")"+handlePB :: PBOp -> [Text] -> Text+handlePB (PB_AtMost  k) args = "((_ at-most "  <> showText k                                               <> ") " <> T.unwords args <> ")"+handlePB (PB_AtLeast k) args = "((_ at-least " <> showText k                                               <> ") " <> T.unwords args <> ")"+handlePB (PB_Exactly k) args = "((_ pbeq "     <> T.unwords (map showText (k : replicate (length args) 1)) <> ") " <> T.unwords args <> ")"+handlePB (PB_Eq cs   k) args = "((_ pbeq "     <> T.unwords (map showText (k : cs))                        <> ") " <> T.unwords args <> ")"+handlePB (PB_Le cs   k) args = "((_ pble "     <> T.unwords (map showText (k : cs))                        <> ") " <> T.unwords args <> ")"+handlePB (PB_Ge cs   k) args = "((_ pbge "     <> T.unwords (map showText (k : cs))                        <> ") " <> T.unwords args <> ")"  -- Translation of pseudo-booleans, in case the solver does *not* support them-reducePB :: PBOp -> [String] -> String+reducePB :: PBOp -> [Text] -> Text reducePB op args = case op of-                     PB_AtMost  k -> "(<= " ++ addIf (repeat 1) ++ " " ++ show k ++ ")"-                     PB_AtLeast k -> "(>= " ++ addIf (repeat 1) ++ " " ++ show k ++ ")"-                     PB_Exactly k -> "(=  " ++ addIf (repeat 1) ++ " " ++ show k ++ ")"-                     PB_Le cs   k -> "(<= " ++ addIf cs         ++ " " ++ show k ++ ")"-                     PB_Ge cs   k -> "(>= " ++ addIf cs         ++ " " ++ show k ++ ")"-                     PB_Eq cs   k -> "(=  " ++ addIf cs         ++ " " ++ show k ++ ")"+                     PB_AtMost  k -> "(<= " <> addIf (repeat 1) <> " " <> showText k <> ")"+                     PB_AtLeast k -> "(>= " <> addIf (repeat 1) <> " " <> showText k <> ")"+                     PB_Exactly k -> "(=  " <> addIf (repeat 1) <> " " <> showText k <> ")"+                     PB_Le cs   k -> "(<= " <> addIf cs         <> " " <> showText k <> ")"+                     PB_Ge cs   k -> "(>= " <> addIf cs         <> " " <> showText k <> ")"+                     PB_Eq cs   k -> "(=  " <> addIf cs         <> " " <> showText k <> ")" -  where addIf :: [Int] -> String-        addIf cs = "(+ " ++ unwords ["(ite " ++ a ++ " " ++ show c ++ " 0)" | (a, c) <- zip args cs] ++ ")"+  where addIf :: [Int] -> Text+        addIf cs = "(+ " <> T.unwords ["(ite " <> a <> " " <> showText c <> " 0)" | (a, c) <- zip args cs] <> ")"  -- | Translate an option setting to SMTLib. Note the SetLogic/SetInfo discrepancy.-setSMTOption :: SMTConfig -> SMTOption -> String+setSMTOption :: SMTConfig -> SMTOption -> Text setSMTOption cfg = set-  where set (DiagnosticOutputChannel   f) = opt   [":diagnostic-output-channel",   show f]+  where set (DiagnosticOutputChannel   f) = opt   [":diagnostic-output-channel",   showText f]         set (ProduceAssertions         b) = opt   [":produce-assertions",          smtBool b]         set (ProduceAssignments        b) = opt   [":produce-assignments",         smtBool b]         set (ProduceProofs             b) = opt   [":produce-proofs",              smtBool b]@@ -1315,28 +1324,47 @@         set (ProduceUnsatAssumptions   b) = opt   [":produce-unsat-assumptions",   smtBool b]         set (ProduceUnsatCores         b) = opt   [":produce-unsat-cores",         smtBool b]         set (ProduceAbducts            b) = opt   [":produce-abducts",             smtBool b]-        set (RandomSeed                i) = opt   [":random-seed",                 show i]-        set (ReproducibleResourceLimit i) = opt   [":reproducible-resource-limit", show i]-        set (SMTVerbosity              i) = opt   [":verbosity",                   show i]-        set (OptionKeyword          k as) = opt   (k : as)-        set (SetLogic                  l) = logic l-        set (SetInfo                k as) = info  (k : as)+        set (RandomSeed                i) = opt   [":random-seed",                 showText i]+        set (ReproducibleResourceLimit i) = opt   [":reproducible-resource-limit", showText i]+        set (SMTVerbosity              i) = opt   [":verbosity",                   showText i]+        set (OptionKeyword          k as) = opt   (T.pack k : map T.pack as)+        set (SetLogic                  l) = logicString cfg l+        set (SetInfo                k as) = info  (T.pack k : map T.pack as)         set (SetTimeOut                i) = opt   $ timeOut i -        opt   xs = "(set-option " ++ unwords xs ++ ")"-        info  xs = "(set-info "   ++ unwords xs ++ ")"--        logic Logic_NONE = "; NB. not setting the logic per user request of Logic_NONE"-        logic l          = "(set-logic " ++ show l ++ ")"+        opt   xs = "(set-option " <> T.unwords xs <> ")"+        info  xs = "(set-info "   <> T.unwords xs <> ")"          -- timeout is not standard. We distinguish between CVC/Z3. All else follows z3         -- The value is in milliseconds, which is how z3/CVC interpret it         timeOut i = case name (solver cfg) of-                     CVC4 -> [":tlimit-per", show i]-                     CVC5 -> [":tlimit-per", show i]-                     _    -> [":timeout",    show i]+                     CVC4 -> [":tlimit-per", showText i]+                     CVC5 -> [":tlimit-per", showText i]+                     _    -> [":timeout",    showText i]          -- SMTLib's True/False is spelled differently than Haskell's.-        smtBool :: Bool -> String+        smtBool :: Bool -> Text         smtBool True  = "true"         smtBool False = "false"++-- | Set the logic, accounting for solver inconsistencies.+logicString :: SMTConfig -> Logic -> Text+logicString cfg = pick+  where+    slvr = name (solver cfg)++    -- This is more or less showText, but with exceptions:+    --+    --    Logic_ALL : HO_ALL for CVC5 to get support for higher-order features.+    --    QF_FPBV   : Bitwuzla calls it QF_BVFP. See: https://github.com/LeventErkok/sbv/issues/774+    --    Logic_NONE: Sets nothing, just sets a comment+    pick Logic_ALL | CVC5     <- slvr = wrap "HO_ALL"+    pick QF_FPBV   | Bitwuzla <- slvr = wrap "QF_BVFP"+    pick Logic_NONE                   = "; NB. not setting the logic per user request of Logic_NONE"++    -- Fall thru+    pick l = wrap (showText l)++    wrap l = "(set-logic " <> l <> ")"++{- HLint ignore module "Use record patterns" -}
Data/SBV/SMT/Utils.hs view
@@ -9,17 +9,16 @@ -- A few internally used types/routines ----------------------------------------------------------------------------- -{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE NamedFieldPuns      #-}+{-# LANGUAGE OverloadedStrings   #-}  {-# OPTIONS_GHC -Wall -Werror #-}  module Data.SBV.SMT.Utils (           SMTLibConverter         , SMTLibIncConverter-        , witnessName         , addAnnotations         , showTimeoutValue-        , alignDiagnostic         , alignPlain         , debug         , mergeSExpr@@ -35,13 +34,12 @@  import qualified Control.Exception as C -import Control.Monad (zipWithM_) import Control.Monad.Trans (MonadIO, liftIO)  import Data.SBV.Core.Data import Data.SBV.Core.Symbolic (QueryContext, CnstMap, SMTDef, ResultInp(..), ProgInfo(..), startTime) -import Data.SBV.Utils.Lib   (joinArgs)+import Data.SBV.Utils.Lib   (joinArgs, showText) import Data.SBV.Utils.TDiff (Timing(..), showTDiff)  import Data.IORef (writeIORef)@@ -49,11 +47,14 @@  import Data.Char  (isSpace) import Data.Maybe (fromMaybe)-import Data.List  (intercalate)  import qualified Data.Set      as Set (Set) import qualified Data.Sequence as S   (Seq) +import qualified Data.Text    as T+import qualified Data.Text.IO as TIO+import           Data.Text (Text)+ import System.Directory (findExecutable) import System.Exit      (ExitCode(..)) @@ -86,78 +87,77 @@                           -> SMTConfig                                   -- ^ configuration                           -> a --- | The name of a witness for a type. We should make sure this doesn't conflict any reserved names, but I think the chances of that is--- pretty low anyhow.-witnessName :: String -> String-witnessName = (++ "_witness")- -- | Create an annotated term-addAnnotations :: [(String, String)] -> String -> String+addAnnotations :: [(String, String)] -> Text -> Text addAnnotations []   x = x-addAnnotations atts x = "(! " ++ x ++ " " ++ unwords (map mkAttr atts) ++ ")"+addAnnotations atts x = "(! " <> x <> " " <> T.unwords (map (T.pack . mkAttr) atts) <> ")"   where mkAttr (a, v) = a ++ " |" ++ concatMap sanitize v ++ "|"         sanitize '|'  = "_bar_"         sanitize '\\' = "_backslash_"         sanitize c    = [c]  -- | Show a millisecond time-out value somewhat nicely-showTimeoutValue :: Int -> String+showTimeoutValue :: Int -> Text showTimeoutValue i = case (i `quotRem` 1000000, i `quotRem` 500000) of-                       ((s, 0), _)  -> shows s                              "s"-                       (_, (hs, 0)) -> shows (fromIntegral hs / (2::Float)) "s"-                       _            -> shows i "ms"+                       ((s, 0), _)  -> showText s                              <> "s"+                       (_, (hs, 0)) -> showText (fromIntegral hs / (2::Float)) <> "s"+                       _            -> showText i <> "ms"  -- | Nicely align a potentially multi-line message with some tag, but prefix with three stars-alignDiagnostic :: String -> String -> String+alignDiagnostic :: Text -> Text -> Text alignDiagnostic = alignWithPrefix "*** "  -- | Nicely align a potentially multi-line message with some tag, no prefix.-alignPlain :: String -> String -> String+alignPlain :: Text -> Text -> Text alignPlain = alignWithPrefix ""  -- | Align with some given prefix-alignWithPrefix :: String -> String -> String -> String-alignWithPrefix pre tag multi = intercalate "\n" $ zipWith (++) (tag : repeat (pre ++ replicate (length tag - length pre) ' ')) (filter (not . null) (lines multi))+alignWithPrefix :: Text -> Text -> Text -> Text+alignWithPrefix pre tag multi = T.intercalate "\n" $ zipWith (<>) (tag : repeat (pre <> T.replicate (T.length tag - T.length pre) " ")) (filter (not . T.null) (T.lines multi))  -- | Diagnostic message when verbose-debug :: MonadIO m => SMTConfig -> [String] -> m ()+debug :: MonadIO m => SMTConfig -> [Text] -> m () debug cfg-  | not (verbose cfg)             = const (return ())-  | Just f <- redirectVerbose cfg = liftIO . mapM_ (appendFile f . (++ "\n"))-  | True                          = liftIO . mapM_ putStrLn+  | not (verbose cfg)             = const (pure ())+  | Just f <- redirectVerbose cfg = liftIO . mapM_ (\t -> TIO.appendFile f (t <> "\n"))+  | True                          = liftIO . mapM_ TIO.putStrLn  -- | In case the SMT-Lib solver returns a response over multiple lines, compress them so we have -- each S-Expression spanning only a single line.-mergeSExpr :: [String] -> [String]+mergeSExpr :: [Text] -> [Text] mergeSExpr []       = [] mergeSExpr (x:xs)  | d == 0 = x : mergeSExpr xs- | True   = let (f, r) = grab d xs in unlines (x:f) : mergeSExpr r+ | True   = let (f, r) = grab d xs in T.unlines (x:f) : mergeSExpr r  where d = parenDiff x -       parenDiff :: String -> Int+       parenDiff :: Text -> Int        parenDiff = go 0-         where go i ""       = i-               go i ('(':cs) = let i'= i+1 in i' `seq` go i' cs-               go i (')':cs) = let i'= i-1 in i' `seq` go i' cs-               go i ('"':cs) = go i (skipString cs)-               go i ('|':cs) = go i (skipBar cs)-               go i (';':cs) = go i (drop 1 (dropWhile (/= '\n') cs))-               go i (_  :cs) = go i cs+         where go i t = case T.uncons t of+                 Nothing       -> i+                 Just ('(', r) -> let i' = i+1 in i' `seq` go i' r+                 Just (')', r) -> let i' = i-1 in i' `seq` go i' r+                 Just ('"', r) -> go i (skipString r)+                 Just ('|', r) -> go i (skipBar r)+                 Just (';', r) -> go i (T.drop 1 (T.dropWhile (/= '\n') r))+                 Just (_,   r) -> go i r         grab i ls          | i <= 0    = ([], ls)        grab _ []     = ([], [])        grab i (l:ls) = let (a, b) = grab (i+parenDiff l) ls in (l:a, b) -       skipString ('"':'"':cs)   = skipString cs-       skipString ('"':cs)       = cs-       skipString (_:cs)         = skipString cs-       skipString []             = []             -- Oh dear, line finished, but the string didn't. We're in trouble. Ignore!+       skipString t = case T.uncons t of+         Nothing       -> T.empty             -- Oh dear, line finished, but the string didn't. We're in trouble. Ignore!+         Just ('"', r) -> case T.uncons r of+           Just ('"', r') -> skipString r'    -- escaped quote+           _              -> r                -- end of string+         Just (_,   r) -> skipString r -       skipBar ('|':cs) = cs-       skipBar (_:cs)   = skipBar cs-       skipBar []       = []                     -- Oh dear, line finished, but the string didn't. We're in trouble. Ignore!+       skipBar t = case T.uncons t of+         Nothing       -> T.empty             -- Oh dear, line finished, but the bar didn't. We're in trouble. Ignore!+         Just ('|', r) -> r+         Just (_,   r) -> skipBar r  -- | An exception thrown from SBV. If the solver ever responds with a non-success value for a command, -- SBV will throw an t'SBVException', it so the user can process it as required. The provided 'Show' instance@@ -195,42 +195,42 @@                    }           = let grp1 = [ ""-                      , "*** Data.SBV: " ++ sbvExceptionDescription ++ ":"+                      , "*** Data.SBV: " <> T.pack sbvExceptionDescription <> ":"                       ] -               grp2 =  ["***    Sent      : " `alignDiagnostic` snt     | Just snt  <- [sbvExceptionSent],     not $ null snt ]-                    ++ ["***    Expected  : " `alignDiagnostic` excp    | Just excp <- [sbvExceptionExpected], not $ null excp]-                    ++ ["***    Received  : " `alignDiagnostic` rcvd    | Just rcvd <- [sbvExceptionReceived], not $ null rcvd]+               grp2 =  ["***    Sent      : " `alignDiagnostic` T.pack snt  | Just snt  <- [sbvExceptionSent],     not $ null snt ]+                    <> ["***    Expected  : " `alignDiagnostic` T.pack excp | Just excp <- [sbvExceptionExpected], not $ null excp]+                    <> ["***    Received  : " `alignDiagnostic` T.pack rcvd | Just rcvd <- [sbvExceptionReceived], not $ null rcvd] -               grp3 =  ["***    Stdout    : " `alignDiagnostic` out     | Just out  <- [sbvExceptionStdOut],   not $ null out ]-                    ++ ["***    Stderr    : " `alignDiagnostic` err     | Just err  <- [sbvExceptionStdErr],   not $ null err ]-                    ++ ["***    Exit code : " `alignDiagnostic` show ec | Just ec   <- [sbvExceptionExitCode]                 ]-                    ++ ["***    Executable: " `alignDiagnostic` executable (solver sbvExceptionConfig)                                   ]-                    ++ ["***    Options   : " `alignDiagnostic` joinArgs (options (solver sbvExceptionConfig) sbvExceptionConfig)        ]+               grp3 =  ["***    Stdout    : " `alignDiagnostic` T.pack out  | Just out  <- [sbvExceptionStdOut],   not $ null out ]+                    <> ["***    Stderr    : " `alignDiagnostic` T.pack err  | Just err  <- [sbvExceptionStdErr],   not $ null err ]+                    <> ["***    Exit code : " `alignDiagnostic` showText ec | Just ec   <- [sbvExceptionExitCode]                 ]+                    <> ["***    Executable: " `alignDiagnostic` T.pack (executable (solver sbvExceptionConfig))                           ]+                    <> ["***    Options   : " `alignDiagnostic` T.pack (joinArgs (options (solver sbvExceptionConfig) sbvExceptionConfig))] -               grp4 =  ["***    Reason    : " `alignDiagnostic` unlines rsn | Just rsn <- [sbvExceptionReason]]-                    ++ ["***    Hint      : " `alignDiagnostic` unlines hnt | Just hnt <- [sbvExceptionHint  ]]+               grp4 =  ["***    Reason    : " `alignDiagnostic` T.pack (unlines rsn) | Just rsn <- [sbvExceptionReason]]+                    <> ["***    Hint      : " `alignDiagnostic` T.pack (unlines hnt) | Just hnt <- [sbvExceptionHint  ]]                 join []     = []                join [x]    = x                join (g:gs) = case join gs of                                []    -> g-                               rest  -> g ++ ["***"] ++ rest+                               rest  -> g <> ["***"] <> rest -          in unlines $ join [grp1, grp2, grp3, grp4]+          in T.unpack $ T.unlines $ join [grp1, grp2, grp3, grp4]  -- | Compute and report the end time recordEndTime :: SMTConfig -> State -> IO () recordEndTime SMTConfig{timing} state = case timing of-                                           NoTiming        -> return ()+                                           NoTiming        -> pure ()                                            PrintTiming     -> do e <- elapsed                                                                  putStrLn $ "*** SBV: Elapsed time: " ++ showTDiff e                                            SaveTiming here -> writeIORef here =<< elapsed-  where elapsed = getCurrentTime >>= \end -> return $ diffUTCTime end (startTime state)+  where elapsed = getCurrentTime >>= \end -> pure $ diffUTCTime end (startTime state)  -- | Start a transcript file, if requested. startTranscript :: Maybe FilePath -> SMTConfig -> IO ()-startTranscript Nothing  _   = return ()+startTranscript Nothing  _   = pure () startTranscript (Just f) cfg = do ts <- show <$> getZonedTime                                   mbExecPath <- findExecutable (executable (solver cfg))                                   writeFile f $ start ts mbExecPath@@ -249,7 +249,7 @@  -- | Finish up the transcript file. finalizeTranscript :: Maybe FilePath -> ExitCode -> IO ()-finalizeTranscript Nothing  _  = return ()+finalizeTranscript Nothing  _  = pure () finalizeTranscript (Just f) ec = do ts <- show <$> getZonedTime                                     appendFile f $ end ts   where end ts = unlines [ ""@@ -263,31 +263,31 @@                          ]  -- Kind of things we can record-data TranscriptMsg = SentMsg  String (Maybe Int) -- ^ Message sent, and time-out if any+data TranscriptMsg = SentMsg  Text   (Maybe Int) -- ^ Message sent, and time-out if any                    | RecvMsg  String             -- ^ Message received-                   | DebugMsg String             -- ^ A debug message; neither sent nor received+                   | DebugMsg Text               -- ^ A debug message; neither sent nor received  -- If requested, record in the transcript file recordTranscript :: Maybe FilePath -> TranscriptMsg -> IO ()-recordTranscript Nothing  _ = return ()+recordTranscript Nothing  _ = pure () recordTranscript (Just f) m = do tsPre <- formatTime defaultTimeLocale "; [%T%Q" <$> getZonedTime                                  let ts = take 15 $ tsPre ++ repeat '0'                                  case m of-                                   SentMsg sent mbTimeOut  -> appendFile f $ unlines $ (ts ++ "] " ++ to mbTimeOut ++ "Sending:") : lines sent+                                   SentMsg sent mbTimeOut  -> TIO.appendFile f $ T.unlines $ (T.pack ts <> "] " <> to mbTimeOut <> "Sending:") : T.lines sent                                    RecvMsg recv            -> appendFile f $ unlines $ case lines (dropWhile isSpace recv) of                                                                                         []  -> [ts ++ "] Received: <NO RESPONSE>"]  -- can't really happen.                                                                                         [x] -> [ts ++ "] Received: " ++ x]                                                                                         xs  -> (ts ++ "] Received: ") : map (";   " ++) xs-                                   DebugMsg msg            -> let tag = ts ++ "] "-                                                                  emp = ';' : drop 1 (map (const ' ') tag)-                                                              in zipWithM_ (\t l -> appendFile f (t ++ l ++ "\n")) (tag : repeat emp) (lines msg)+                                   DebugMsg msg            -> let tag = T.pack ts <> "] "+                                                                  emp = T.cons ';' (T.replicate (T.length tag - 1) " ")+                                                              in TIO.appendFile f $ T.unlines $ zipWith (<>) (tag : repeat emp) (T.lines msg)         where to Nothing  = ""-              to (Just i) = "[Timeout: " ++ showTimeoutValue i ++ "] "+              to (Just i) = "[Timeout: " <> showTimeoutValue i <> "] " {-# INLINE recordTranscript #-}  -- Record the exception recordException :: Maybe FilePath -> String -> IO ()-recordException Nothing  _ = return ()+recordException Nothing  _ = pure () recordException (Just f) m = do ts <- show <$> getZonedTime                                 appendFile f $ exc ts   where exc ts = unlines $ [ ""
Data/SBV/Set.hs view
@@ -22,7 +22,7 @@ -----------------------------------------------------------------------------  {-# LANGUAGE CPP                 #-}-{-# LANGUAGE Rank2Types          #-}+{-# LANGUAGE RankNTypes          #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TypeApplications    #-} @@ -62,6 +62,7 @@ -- >>> -- For doctest purposes only: -- >>> import Prelude hiding(null) -- >>> import Data.SBV hiding(complement)+-- >>> import Data.SBV.Maybe -- >>> :set -XScopedTypeVariables #endif @@ -293,8 +294,8 @@ -- -- >>> prove $ \x -> isFull (observe "set" (x `delete` (full :: SSet Integer))) -- Falsifiable. Counter-example:---   s0  =       2 :: Integer---   set = U - {2} :: {Integer}+--   s0  =       0 :: Integer+--   set = U - {0} :: {Integer} -- -- >>> isFull (full :: SSet Integer) -- True@@ -514,7 +515,7 @@ False >>> sat $ \(x::SSet (Maybe Integer)) y z -> distinct [x, y, z] Satisfiable. Model:-  s0 = {Just 3} :: {Maybe Integer}+  s0 = {Just 2} :: {Maybe Integer}   s1 =       {} :: {Maybe Integer}   s2 =        U :: {Maybe Integer} 
Data/SBV/TP.hs view
@@ -29,13 +29,16 @@        -- * Basic proofs        , lemma, lemmaWith +       -- * Basic proofs, with induction schema+       , inductiveLemma, inductiveLemmaWith+        -- * Reasoning via calculation        , calc, calcWith -       -- * Reasoning via regular induction+       -- * Reasoning via explicit regular induction        , induct, inductWith -       -- * Reasoning via measure-based strong induction+       -- * Reasoning via explicit measure-based strong induction        , sInduct, sInductWith         -- * Creating instances of proofs@@ -45,8 +48,14 @@        , sorry         -- * Running TP proofs-       , TP, runTP, runTPWith, tpQuiet, tpRibbon, tpStats, tpAsms, tpCache+       , TP, runTP, runTPWith, tpQuiet, tpStats, tpAsms +       -- * Dry run guards+       , whenDryRun, unlessDryRun++       -- * Measure helpers for smtFunctionWithMeasure+       , measureLemma, measureLemmaWith+        -- * Starting a calculation proof        , (|-), (⊢), (|->) @@ -68,8 +77,8 @@        -- * Displaying intermediate values of expressions        , disp -       -- * Recall an old proof, quietly proving it-       , recall+       -- * Recall an old proof, using the cache+       , recall, recallWith        ) where  import Data.SBV.TP.TP
Data/SBV/TP/Kernel.hs view
@@ -9,25 +9,28 @@ -- Kernel of the TP prover API. ----------------------------------------------------------------------------- -{-# LANGUAGE ConstraintKinds      #-}-{-# LANGUAGE DataKinds            #-}-{-# LANGUAGE FlexibleContexts     #-}-{-# LANGUAGE FlexibleInstances    #-}-{-# LANGUAGE NamedFieldPuns       #-}-{-# LANGUAGE ScopedTypeVariables  #-}-{-# LANGUAGE TypeAbstractions     #-}+{-# LANGUAGE ConstraintKinds     #-}+{-# LANGUAGE FlexibleContexts    #-}+{-# LANGUAGE FlexibleInstances   #-}+{-# LANGUAGE NamedFieldPuns      #-}+{-# LANGUAGE OverloadedLists     #-}+{-# LANGUAGE OverloadedStrings   #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeApplications    #-}  {-# OPTIONS_GHC -Wall -Werror #-}  module Data.SBV.TP.Kernel (          Proposition,  Proof(..)        , axiom-       , lemma-       , lemmaWith+       , lemma,          lemmaWith+       , inductiveLemma, inductiveLemmaWith        , internalAxiom-       , TPProofContext (..), smtProofStep+       , TPProofContext (..), smtProofStep, HasInductionSchema(..)+       , tpMergeCfg, checkNewMeasures        ) where +import Control.Monad        (unless) import Control.Monad.Trans  (liftIO, MonadIO)  import Data.List  (intercalate)@@ -35,11 +38,12 @@  import Data.SBV.Core.Data     hiding (None) import Data.SBV.Trans.Control hiding (getProof)-import Data.SBV.Core.Symbolic (MonadSymbolic)+import Data.SBV.Core.Symbolic (MonadSymbolic(..), rSkipMeasureChecks, rMeasureChecks, rNoTermCheckFunctions)  import Data.SBV.SMT.SMT import Data.SBV.Core.Model import Data.SBV.Provers.Prover+import Data.SBV.Utils.Lib     (showText)  import Data.SBV.TP.Utils @@ -47,7 +51,11 @@ import Data.SBV.Utils.TDiff  import Data.Dynamic+import Data.IORef (readIORef, writeIORef, modifyIORef')+import qualified Data.Set as Set +import Type.Reflection (typeRep)+ -- | A proposition is something SBV is capable of proving/disproving in TP. type Proposition a = ( QNot a                      , QuantifiedBool a@@ -58,7 +66,110 @@                      , Typeable a                      ) --- | Accept the given definition as a fact. Usually used to introduce definitial axioms,+-- | An inductive proposition is a proposition that has an induction scheme associated with it.+type Inductive a = (HasInductionSchema a, Proposition a)++-- | A class of values that has an associated induction schema. SBV manages this internally.+class HasInductionSchema a where+  inductionSchema :: a -> ProofObj++-- | Induction schema for integers. Note that this is good for proving properties over naturals really.+-- There are other instances that would apply to all integers, but this one is really the most useful+-- in practice.+instance HasInductionSchema (Forall nm Integer -> SBool) where+   inductionSchema p = proofOf $ internalAxiom "inductInteger" ax+     where pf = p . Forall+           ax =   sAnd [pf 0, quantifiedBool (\(Forall i) -> (i .>= 0 .=> pf i) .=> pf (i + 1))]+              .=> quantifiedBool (\(Forall i) -> pf i)++-- | Induction schema for integers with one extra argument+instance SymVal at => HasInductionSchema (Forall nm Integer -> Forall an at -> SBool) where+   inductionSchema p = proofOf $ internalAxiom "inductInteger1" ax+     where pf i a = p (Forall i) (Forall a)+           ax     = sAnd [ quantifiedBool (\           (Forall a) -> pf 0 a)+                         , quantifiedBool (\(Forall i) (Forall a) -> (i .>= 0 .=> pf i a) .=> pf (i + 1) a)]+                    .=>    quantifiedBool (\(Forall i) (Forall a) -> pf i a)++-- | Induction schema for integers with two extra arguments+instance (SymVal at, SymVal bt) => HasInductionSchema (Forall nm Integer -> Forall an at -> Forall bn bt -> SBool) where+   inductionSchema p = proofOf $ internalAxiom "inductInteger2" ax+     where pf i a b = p (Forall i) (Forall a) (Forall b)+           ax       = sAnd [ quantifiedBool (\           (Forall a) (Forall b) -> pf 0 a b)+                           , quantifiedBool (\(Forall i) (Forall a) (Forall b) -> (i .>= 0 .=> pf i a b) .=> pf (i + 1) a b)]+                      .=>    quantifiedBool (\(Forall i) (Forall a) (Forall b) -> pf i a b)++-- | Induction schema for integers with three extra arguments+instance (SymVal at, SymVal bt, SymVal ct) => HasInductionSchema (Forall nm Integer -> Forall an at -> Forall bn bt -> Forall cn ct -> SBool) where+   inductionSchema p = proofOf $ internalAxiom "inductInteger3" ax+     where pf i a b c = p (Forall i) (Forall a) (Forall b) (Forall c)+           ax         = sAnd [ quantifiedBool (\           (Forall a) (Forall b) (Forall c) -> pf 0 a b c)+                             , quantifiedBool (\(Forall i) (Forall a) (Forall b) (Forall c) -> (i .>= 0 .=> pf i a b c) .=> pf (i + 1) a b c)]+                        .=>    quantifiedBool (\(Forall i) (Forall a) (Forall b) (Forall c) -> pf i a b c)++-- | Induction schema for integers with four extra arguments+instance (SymVal at, SymVal bt, SymVal ct, SymVal dt) => HasInductionSchema (Forall nm Integer -> Forall an at -> Forall bn bt -> Forall cn ct -> Forall dn dt -> SBool) where+   inductionSchema p = proofOf $ internalAxiom "inductInteger4" ax+     where pf i a b c d = p (Forall i) (Forall a) (Forall b) (Forall c) (Forall d)+           ax           = sAnd [ quantifiedBool (\           (Forall a) (Forall b) (Forall c) (Forall d) -> pf 0 a b c d)+                               , quantifiedBool (\(Forall i) (Forall a) (Forall b) (Forall c) (Forall d) -> (i .>= 0 .=> pf i a b c d) .=> pf (i + 1) a b c d)]+                          .=>    quantifiedBool (\(Forall i) (Forall a) (Forall b) (Forall c) (Forall d) -> pf i a b c d)++-- | Induction schema for integers with five extra arguments+instance (SymVal at, SymVal bt, SymVal ct, SymVal dt, SymVal et) => HasInductionSchema (Forall nm Integer -> Forall an at -> Forall bn bt -> Forall cn ct -> Forall dn dt -> Forall en et -> SBool) where+   inductionSchema p = proofOf $ internalAxiom "inductInteger5" ax+     where pf i a b c d e = p (Forall i) (Forall a) (Forall b) (Forall c) (Forall d) (Forall e)+           ax             = sAnd [ quantifiedBool (\           (Forall a) (Forall b) (Forall c) (Forall d) (Forall e) -> pf 0 a b c d e)+                                 , quantifiedBool (\(Forall i) (Forall a) (Forall b) (Forall c) (Forall d) (Forall e) -> (i .>= 0 .=> pf i a b c d e) .=> pf (i + 1) a b c d e)]+                            .=>    quantifiedBool (\(Forall i) (Forall a) (Forall b) (Forall c) (Forall d) (Forall e) -> pf i a b c d e)++-- | Induction schema for lists.+instance SymVal x => HasInductionSchema (Forall nm [x] -> SBool) where+   inductionSchema p = proofOf $ internalAxiom ("induct" ++ show (typeRep @[x])) ax+     where pf = p . Forall+           ax =   sAnd [pf [], quantifiedBool (\(Forall x) (Forall xs) -> pf xs .=> pf (x .: xs))]+              .=> quantifiedBool (\(Forall xs) -> pf xs)++-- | Induction schema for lists with one extra argument+instance (SymVal x, SymVal at) => HasInductionSchema (Forall nm [x] -> Forall an at -> SBool) where+   inductionSchema p = proofOf $ internalAxiom ("induct" ++ show (typeRep @[x]) ++ "1") ax+     where pf xs a = p (Forall xs) (Forall a)+           ax      = sAnd [ quantifiedBool (\                       (Forall a) -> pf [] a)+                          , quantifiedBool (\(Forall x) (Forall xs) (Forall a) -> pf xs a .=> pf (x .: xs) a)]+                     .=>    quantifiedBool (\(Forall xs) (Forall a) -> pf xs a)++-- | Induction schema for lists with two extra arguments+instance (SymVal x, SymVal at, SymVal bt) => HasInductionSchema (Forall nm [x] -> Forall an at -> Forall bn bt -> SBool) where+   inductionSchema p = proofOf $ internalAxiom ("induct" ++ show (typeRep @[x]) ++ "2") ax+     where pf xs a b = p (Forall xs) (Forall a) (Forall b)+           ax        = sAnd [ quantifiedBool (\                       (Forall a) (Forall b) -> pf [] a b)+                            , quantifiedBool (\(Forall x) (Forall xs) (Forall a) (Forall b) -> pf xs a b .=> pf (x .: xs) a b)]+                       .=>    quantifiedBool (\(Forall xs) (Forall a) (Forall b) -> pf xs a b)++-- | Induction schema for lists with three extra arguments+instance (SymVal x, SymVal at, SymVal bt, SymVal ct) => HasInductionSchema (Forall nm [x] -> Forall an at -> Forall bn bt -> Forall cn ct -> SBool) where+   inductionSchema p = proofOf $ internalAxiom ("induct" ++ show (typeRep @[x]) ++ "3") ax+     where pf xs a b c = p (Forall xs) (Forall a) (Forall b) (Forall c)+           ax          = sAnd [ quantifiedBool (\                       (Forall a) (Forall b) (Forall c) -> pf [] a b c)+                              , quantifiedBool (\(Forall x) (Forall xs) (Forall a) (Forall b) (Forall c) -> pf xs a b c .=> pf (x .: xs) a b c)]+                         .=>    quantifiedBool (\(Forall xs) (Forall a) (Forall b) (Forall c) -> pf xs a b c)++-- | Induction schema for lists with four extra arguments+instance (SymVal x, SymVal at, SymVal bt, SymVal ct, SymVal dt) => HasInductionSchema (Forall nm [x] -> Forall an at -> Forall bn bt -> Forall cn ct -> Forall dn dt -> SBool) where+   inductionSchema p = proofOf $ internalAxiom ("induct" ++ show (typeRep @[x]) ++ "4") ax+     where pf xs a b c d = p (Forall xs) (Forall a) (Forall b) (Forall c) (Forall d)+           ax            = sAnd [ quantifiedBool (\                       (Forall a) (Forall b) (Forall c) (Forall d) -> pf [] a b c d)+                                , quantifiedBool (\(Forall x) (Forall xs) (Forall a) (Forall b) (Forall c) (Forall d) -> pf xs a b c d .=> pf (x .: xs) a b c d)]+                           .=>    quantifiedBool (\(Forall xs) (Forall a) (Forall b) (Forall c) (Forall d) -> pf xs a b c d)++-- | Induction schema for lists with five extra arguments+instance (SymVal x, SymVal at, SymVal bt, SymVal ct, SymVal dt, SymVal et) => HasInductionSchema (Forall nm [x] -> Forall an at -> Forall bn bt -> Forall cn ct -> Forall dn dt -> Forall en et -> SBool) where+   inductionSchema p = proofOf $ internalAxiom ("induct" ++ show (typeRep @[x]) ++ "5") ax+     where pf xs a b c d e = p (Forall xs) (Forall a) (Forall b) (Forall c) (Forall d) (Forall e)+           ax              = sAnd [ quantifiedBool (\                       (Forall a) (Forall b) (Forall c) (Forall d) (Forall e) -> pf [] a b c d e)+                                  , quantifiedBool (\(Forall x) (Forall xs) (Forall a) (Forall b) (Forall c) (Forall d) (Forall e) -> pf xs a b c d e .=> pf (x .: xs) a b c d e)]+                             .=>    quantifiedBool (\(Forall xs) (Forall a) (Forall b) (Forall c) (Forall d) (Forall e) -> pf xs a b c d e)++-- | Accept the given definition as a fact. Usually used to introduce definitional axioms, -- giving meaning to uninterpreted symbols. Note that we perform no checks on these propositions, -- if you assert nonsense, then you get nonsense back. So, calls to 'axiom' should be limited to -- definitions, or basic axioms (like commutativity, associativity) of uninterpreted function symbols.@@ -77,36 +188,110 @@                                       , getProp      = toDyn p                                       , proofName    = nm                                       , uniqId       = TPInternal-                                      , isCached     = False+                                      , aliases      = []+                                      , wasCached    = False                                       } --- | Prove a lemma, using the given configuration-lemmaWith :: Proposition a => SMTConfig -> String -> a -> [ProofObj] -> TP (Proof a)-lemmaWith cfg@SMTConfig{tpOptions = TPOptions{printStats}} nm inputProp by = withProofCache nm $ do-                 tpSt <- getTPState-                 u    <- tpGetNextUnique-                 liftIO $ getTimeStampIf printStats >>= runSMTWith cfg . go tpSt u-  where go tpSt u mbStartTime = do qSaturateSavingObservables inputProp-                                   mapM_ (constrain . getObjProof) by-                                   query $ smtProofStep cfg tpSt "Lemma" 0 (TPProofOneShot nm by) Nothing inputProp [] (good mbStartTime u)--        -- What to do if all goes well-        good mbStart u d = do mbElapsed <- getElapsedTime mbStart-                              liftIO $ finishTP cfg ("Q.E.D." ++ concludeModulo by) d $ catMaybes [mbElapsed]-                              pure $ Proof $ ProofObj { dependencies = by-                                                      , isUserAxiom  = False-                                                      , getObjProof  = label nm (quantifiedBool inputProp)-                                                      , getProp      = toDyn inputProp-                                                      , proofName    = nm-                                                      , uniqId       = u-                                                      , isCached     = False-                                                      }+-- | Propagate the settings for ribbon/timing from top to current. Because in any subsequent configuration+-- in a lemmaWith, inductWith etc., we just want to change the solver, not the actual settings for TP.+tpMergeCfg :: SMTConfig -> SMTConfig -> SMTConfig+tpMergeCfg cur top = cur{verbose = verbose top, tpOptions = tpOptions top}  -- | Prove a given statement, using auxiliaries as helpers. Using the default solver. lemma :: Proposition a => String -> a -> [ProofObj] -> TP (Proof a) lemma nm f by = do cfg <- getTPConfig                    lemmaWith cfg nm f by +-- | Prove a lemma, using the given configuration.+lemmaWith :: Proposition a => SMTConfig -> String -> a -> [ProofObj] -> TP (Proof a)+lemmaWith cfgIn nm inputProp by = do+                 cached <- lookupProofCache inputProp+                 topCfg <- getTPConfig+                 case cached of+                   Just prf -> do let cfg = cfgIn `tpMergeCfg` topCfg+                                  returnCachedProof cfg nm prf+                   Nothing  -> do let cfg@SMTConfig{tpOptions = TPOptions{printStats}} = cfgIn `tpMergeCfg` topCfg+                                  tpSt <- getTPState+                                  u    <- tpGetNextUnique+                                  result <- liftIO $ getTimeStampIf printStats >>= runSMTWith cfg . go tpSt cfg u+                                  addToProofCache inputProp (proofOf result)+                                  pure result+  where go tpSt cfg u mbStartTime = do st <- symbolicEnv+                                       -- Skip measure checks in the normal runWithQuery path; we handle them here+                                       liftIO $ writeIORef (rSkipMeasureChecks st) True+                                       qSaturateSavingObservables inputProp+                                       mapM_ (constrain . getObjProof) by++                                       -- Run measure checks for any newly encountered recursive functions+                                       liftIO $ checkNewMeasures cfg st tpSt++                                       -- Read no-term-check functions from this proof's State (not TPState, which accumulates)+                                       noTermFns <- liftIO $ readIORef (rNoTermCheckFunctions st)++                                       query $ smtProofStep cfg tpSt "Lemma" 0 (TPProofOneShot nm by) Nothing inputProp [] (good noTermFns cfg mbStartTime u)++        -- What to do if all goes well+        good noTermFns cfg mbStart u d = do+                                       mbElapsed <- getElapsedTime mbStart+                                       let ntcDeps = map noTermCheckProof (Set.toList noTermFns)+                                           allBy   = by ++ ntcDeps+                                       liftIO $ finishTP cfg ("Q.E.D." ++ concludeModulo allBy) d $ catMaybes [mbElapsed]+                                       pure $ Proof $ ProofObj { dependencies = allBy+                                                               , isUserAxiom  = False+                                                               , getObjProof  = label nm (quantifiedBool inputProp)+                                                               , getProp      = toDyn inputProp+                                                               , proofName    = nm+                                                               , uniqId       = u+                                                               , aliases      = []+                                                               , wasCached    = False+                                                               }++-- | Prove a given statement, using the induction schema for the proposition. Using the default solver.+inductiveLemma :: Inductive a => String -> a -> [ProofObj] -> TP (Proof a)+inductiveLemma nm f by = do cfg <- getTPConfig+                            inductiveLemmaWith cfg nm f by++-- | Prove a given statement, using the induction schema for the proposition. Using the default solver.+inductiveLemmaWith :: Inductive a => SMTConfig -> String -> a -> [ProofObj] -> TP (Proof a)+inductiveLemmaWith cfg nm f by = lemmaWith cfg nm f (inductionSchema f : by)++-- | Check any newly encountered recursive function measures. This reads deferred checks+-- from 'rMeasureChecks', runs those not yet verified, and records them as verified.+-- Skips functions in 'measuresBeingVerified' to prevent infinite recursion when a+-- measureLemma proof uses the function whose measure is currently being checked.+checkNewMeasures :: SMTConfig -> State -> TPState -> IO ()+checkNewMeasures cfg@SMTConfig{tpOptions = TPOptions{measuresBeingVerified}} st tpSt = do+   isDry <- readIORef (dryRun tpSt)+   unless isDry $ do+     checks     <- readIORef (rMeasureChecks st)+     verified   <- readIORef (measuresVerified tpSt)+     productive <- readIORef (productiveVerified tpSt)+     let allVerified = verified `Set.union` productive+         allNames    = Set.fromList (map (\(n, _, _) -> n) checks)+         new         = [(n, p, c) | (n, p, c) <- checks, n `Set.notMember` allVerified, n `Set.notMember` measuresBeingVerified]+         skipped     = [n | (n, _, _) <- checks, n `Set.notMember` allVerified, n `Set.member` measuresBeingVerified]++         msg s | not (verbose cfg)+               = pure ()+               | Just f <- redirectVerbose cfg+               = appendFile f (s ++ "\n")+               | True+               = putStrLn s++     unless (null new && null skipped) $+        msg $ "[MEASURE] checkNewMeasures: " ++ show (length new) ++ " to verify"+              ++ (if null skipped then "" else ", " ++ show (length skipped) ++ " skipped (being verified): " ++ show skipped)++     modifyIORef' (measuresEncountered tpSt) (Set.union allNames)+     let verify (n, isProductive, c) = do+           msg $ "[MEASURE] checkNewMeasures: verifying " ++ n+           () <- c cfg+           msg $ "[MEASURE] checkNewMeasures: " ++ n ++ " verified"+           if isProductive+              then modifyIORef' (productiveVerified tpSt) (Set.insert n)+              else modifyIORef' (measuresVerified   tpSt) (Set.insert n)+     mapM_ verify new+ -- | Capture the general flow of a proof-step. Note that this is the only point where we call the backend solver -- in a TP proof. smtProofStep :: (SolverContext m, MonadIO m, MonadQuery m, MonadSymbolic m, Proposition a)@@ -122,12 +307,18 @@    -> m r smtProofStep cfg@SMTConfig{verbose, tpOptions = TPOptions{printStats}} tpState tag level ctx mbAssumptions prop disps unsat = do -        case mbAssumptions of-           Nothing  -> do queryDebug ["; smtProofStep: No context value to push."]-                          check-           Just asm -> do queryDebug ["; smtProofStep: Pushing in the context: " ++ show asm]-                          inNewAssertionStack $ do constrain asm-                                                   check+        isDry <- liftIO $ readIORef (dryRun tpState)+        if isDry+           then do -- Dry run: record width, skip solver, report success+                   tab <- liftIO $ startTP cfg verbose tag level ctx+                   liftIO $ modifyIORef' (maxRibbon tpState) (max tab)+                   liftIO $ unsat (tab, Nothing)+           else case mbAssumptions of+                   Nothing  -> do queryDebug ["; smtProofStep: No context value to push."]+                                  check+                   Just asm -> do queryDebug ["; smtProofStep: Pushing in the context: " <> showText asm]+                                  inNewAssertionStack $ do constrain asm+                                                           check   where check = do            tab <- liftIO $ startTP cfg verbose tag level ctx@@ -158,13 +349,13 @@                   TPProofStep    False s _ ss ->                       intercalate "." (s : ss)         unknown = do r <- getUnknownReason-                    liftIO $ do putStrLn $ "\n*** Failed to prove " ++ fullNm ++ "."-                                putStrLn $ "\n*** Solver reported: " ++ show r+                    liftIO $ do message cfg $ "\n*** Failed to prove " ++ fullNm ++ ".\n"+                                message cfg $ "\n*** Solver reported: " ++ show r ++ "\n"                                 die         -- What to do if the proof fails        cex = do-         liftIO $ putStrLn $ "\n*** Failed to prove " ++ fullNm ++ "."+         liftIO $ message cfg $ "\n*** Failed to prove " ++ fullNm ++ ".\n"           res <- case ctx of                   TPProofStep{} -> do mapM_ (uncurry sObserve) disps@@ -183,6 +374,6 @@                                            pure $ skolemize (qNot prop)                         pure res -         liftIO $ print $ ThmResult res+         liftIO $ message cfg $ show (ThmResult res) ++ "\n"           die
− Data/SBV/TP/List.hs
@@ -1,1948 +0,0 @@--------------------------------------------------------------------------------- |--- Module    : Data.SBV.TP.List--- Copyright : (c) Levent Erkok--- License   : BSD3--- Maintainer: erkokl@gmail.com--- Stability : experimental------ A variety of TP proofs on list processing functions. Note that--- these proofs only hold for finite lists. SMT-solvers do not model infinite--- lists, and hence all claims are for finite (but arbitrary-length) lists.--------------------------------------------------------------------------------{-# LANGUAGE CPP                 #-}-{-# LANGUAGE DataKinds           #-}-{-# LANGUAGE OverloadedLists     #-}-{-# LANGUAGE ScopedTypeVariables #-}-{-# LANGUAGE QuasiQuotes         #-}-{-# LANGUAGE TypeAbstractions    #-}-{-# LANGUAGE TypeApplications    #-}--{-# OPTIONS_GHC -Wall -Werror #-}--module Data.SBV.TP.List (-     -- * Append-     appendNull, consApp, appendAssoc, initsLength, tailsLength, tailsAppend--     -- * Reverse-   , revLen, revApp, revCons, revSnoc, revRev, enumLen, revNM--     -- * Length-   , lengthTail, lenAppend, lenAppend2--     -- * Replicate-   , replicateLength--     -- * All and any-   , allAny--     -- * Map-   , mapEquiv, mapAppend, mapReverse, mapCompose--     -- * Foldr and foldl-   , foldrMapFusion, foldrFusion, foldrOverAppend, foldlOverAppend, foldrFoldlDuality, foldrFoldlDualityGeneralized, foldrFoldl-   , bookKeeping--     -- * Filter-   , filterAppend, filterConcat, takeDropWhile--     -- * Stutter removal-   , destutter, destutterIdempotent--     -- * Difference-   , appendDiff, diffAppend, diffDiff--     -- * Partition-   , partition1, partition2--    -- * Take and drop-   , take_take, drop_drop, take_drop, take_cons, take_map, drop_cons, drop_map, length_take, length_drop, take_all, drop_all-   , take_append, drop_append--   -- * Zip-   , map_fst_zip-   , map_snd_zip-   , map_fst_zip_take-   , map_snd_zip_take--   -- * Counting elements-   , count, countAppend, takeDropCount, countNonNeg, countElem, elemCount--   -- * Disjointness-   , disjoint, disjointDiff--   -- * Interleaving-   , interleave, uninterleave, interleaveLen, interleaveRoundTrip- ) where--import Prelude (Integer, Bool, Eq, ($), Num(..), id, (.), flip)--import Data.SBV-import Data.SBV.List-import Data.SBV.Tuple-import Data.SBV.TP--#ifdef DOCTEST--- $setup--- >>> :set -XScopedTypeVariables--- >>> :set -XTypeApplications--- >>> import Data.SBV--- >>> import Data.SBV.TP--- >>> import Control.Exception-#endif---- | @xs ++ [] == xs@------ >>> runTP $ appendNull @Integer--- Lemma: appendNull                       Q.E.D.--- [Proven] appendNull :: Ɐxs ∷ [Integer] → Bool-appendNull :: forall a. SymVal a => TP (Proof (Forall "xs" [a] -> SBool))-appendNull = lemma "appendNull"-                   (\(Forall xs) -> xs ++ nil .== xs)-                   []---- | @(x : xs) ++ ys == x : (xs ++ ys)@------ >>> runTP $ consApp @Integer--- Lemma: consApp                          Q.E.D.--- [Proven] consApp :: Ɐx ∷ Integer → Ɐxs ∷ [Integer] → Ɐys ∷ [Integer] → Bool-consApp :: forall a. SymVal a => TP (Proof (Forall "x" a -> Forall "xs" [a] -> Forall "ys" [a] -> SBool))-consApp = lemma "consApp"-                (\(Forall x) (Forall xs) (Forall ys) -> (x .: xs) ++ ys .== x .: (xs ++ ys))-                []---- | @(xs ++ ys) ++ zs == xs ++ (ys ++ zs)@------ >>> runTP $ appendAssoc @Integer--- Lemma: appendAssoc                      Q.E.D.--- [Proven] appendAssoc :: Ɐxs ∷ [Integer] → Ɐys ∷ [Integer] → Ɐzs ∷ [Integer] → Bool------ Surprisingly, z3 can prove this without any induction. (Since SBV's append translates directly to--- the concatenation of sequences in SMTLib, it must trigger an internal heuristic in z3--- that proves it right out-of-the-box!)-appendAssoc :: forall a. SymVal a => TP (Proof (Forall "xs" [a] -> Forall "ys" [a] -> Forall "zs" [a] -> SBool))-appendAssoc =-   lemma "appendAssoc"-         (\(Forall xs) (Forall ys) (Forall zs) -> xs ++ (ys ++ zs) .== (xs ++ ys) ++ zs)-         []---- | @length (inits xs) == 1 + length xs@------ >>> runTP $ initsLength @Integer--- Inductive lemma (strong): initsLength---   Step: Measure is non-negative         Q.E.D.---   Step: 1                               Q.E.D.---   Result:                               Q.E.D.--- [Proven] initsLength :: Ɐxs ∷ [Integer] → Bool-initsLength :: forall a. SymVal a => TP (Proof (Forall "xs" [a] -> SBool))-initsLength =-   sInduct "initsLength"-           (\(Forall xs) -> length (inits xs) .== 1 + length xs)-           (length @a) $-           \ih xs -> [] |- length (inits xs)-                        ?? ih-                        =: 1 + length xs-                        =: qed---- | @length (tails xs) == 1 + length xs@------ >>> runTP $ tailsLength @Integer--- Inductive lemma: tailsLength---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4                               Q.E.D.---   Result:                               Q.E.D.--- [Proven] tailsLength :: Ɐxs ∷ [Integer] → Bool-tailsLength :: forall a. SymVal a => TP (Proof (Forall "xs" [a] -> SBool))-tailsLength =-   induct "tailsLength"-          (\(Forall xs) -> length (tails xs) .== 1 + length xs) $-          \ih (x, xs) -> [] |- length (tails (x .: xs))-                            =: length (tails xs ++ [x .: xs])-                            =: length (tails xs) + 1-                            ?? ih-                            =: 1 + length xs + 1-                            =: 1 + length (x .: xs)-                            =: qed---- | @tails (xs ++ ys) == map (++ ys) (tails xs) ++ tail (tails ys)@------ This property comes from Richard Bird's "Pearls of functional Algorithm Design" book, chapter 2.--- Note that it is not exactly as stated there, as the definition of @tail@ Bird uses is different--- than the standard Haskell function @tails@: Bird's version does not return the empty list as the--- tail. So, we slightly modify it to fit the standard definition. (NB. z3 is finicky on this--- problem, while cvc5 works much better.)------ >>> runTPWith cvc5 $ tailsAppend @Integer--- Inductive lemma: base case---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Result:                               Q.E.D.--- Lemma: helper---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Result:                               Q.E.D.--- Inductive lemma: tailsAppend---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4                               Q.E.D.---   Result:                               Q.E.D.--- [Proven] tailsAppend :: Ɐxs ∷ [Integer] → Ɐys ∷ [Integer] → Bool-tailsAppend :: forall a. SymVal a => TP (Proof (Forall "xs" [a] -> Forall "ys" [a] -> SBool))-tailsAppend = do--   let -- Ideally, we would like to define appendEach like this:-       ---       --       appendEach xs ys = map (++ ys) xs-       ---       -- But capture of ys is not allowed when we use the higher-order-       -- function map in SBV. So, we create a closure instead.-       appendEach :: SList a -> SList [a] -> SList [a]-       appendEach ys = map $ Closure { closureEnv = ys-                                     , closureFun = \env xs -> xs ++ env-                                     }--   -- Even proving the base case of induction is hard due to recursive definition. So we first prove the base case by induction.-   bc <- induct "base case"-                (\(Forall @"ys" (ys :: SList a)) -> tails ys .== [ys] ++ tail (tails ys)) $-                \ih (y, ys) -> [] |- tails (y .: ys)-                                  =: [y .: ys] ++ tails ys-                                  ?? ih-                                  =: [y .: ys] ++ [ys] ++ tail (tails ys)-                                  =: [y .: ys] ++ tail (tails (y .: ys))-                                  =: qed--   -- Also need a helper to relate how appendEach and tails work together-   helper <- calc "helper"-                   (\(Forall @"xs" xs) (Forall @"ys" ys) (Forall @"x" x) ->-                        appendEach ys (tails (x .: xs)) .== [(x .: xs) ++ ys] ++ appendEach ys (tails xs)) $-                   \xs ys x -> [] |- appendEach ys (tails (x .: xs))-                                  =: appendEach ys ([x .: xs] ++ tails xs)-                                  =: [(x .: xs) ++ ys] ++ appendEach ys (tails xs)-                                  =: qed--   induct "tailsAppend"-          (\(Forall xs) (Forall ys) -> tails (xs ++ ys) .== appendEach ys (tails xs) ++ tail (tails ys)) $-          \ih (x, xs) ys -> [assumptionFromProof bc]-                         |- tails ((x .: xs) ++ ys)-                         =: tails (x .: (xs ++ ys))-                         =: [x .: (xs ++ ys)] ++ tails (xs ++ ys)-                         ?? ih-                         =: [(x .: xs) ++ ys] ++ appendEach ys (tails xs) ++ tail (tails ys)-                         ?? helper-                         =: appendEach ys (tails (x .: xs)) ++ tail (tails ys)-                         =: qed---- | @length xs == length (reverse xs)@------ >>> runTP $ revLen @Integer--- Inductive lemma: revLen---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4                               Q.E.D.---   Result:                               Q.E.D.--- [Proven] revLen :: Ɐxs ∷ [Integer] → Bool-revLen :: forall a. SymVal a => TP (Proof (Forall "xs" [a] -> SBool))-revLen = induct "revLen"-                (\(Forall xs) -> length (reverse xs) .== length xs) $-                \ih (x, xs) -> [] |- length (reverse (x .: xs))-                                  =: length (reverse xs ++ [x])-                                  =: length (reverse xs) + length [x]-                                  ?? ih-                                  =: length xs + 1-                                  =: length (x .: xs)-                                  =: qed---- | @reverse (xs ++ ys) .== reverse ys ++ reverse xs@------ >>> runTP $ revApp @Integer--- Inductive lemma: revApp---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4                               Q.E.D.---   Step: 5                               Q.E.D.---   Result:                               Q.E.D.--- [Proven] revApp :: Ɐxs ∷ [Integer] → Ɐys ∷ [Integer] → Bool-revApp :: forall a. SymVal a => TP (Proof (Forall "xs" [a] -> Forall "ys" [a] -> SBool))-revApp = induct "revApp"-                 (\(Forall xs) (Forall ys) -> reverse (xs ++ ys) .== reverse ys ++ reverse xs) $-                 \ih (x, xs) ys -> [] |- reverse ((x .: xs) ++ ys)-                                      =: reverse (x .: (xs ++ ys))-                                      =: reverse (xs ++ ys) ++ [x]-                                      ?? ih-                                      =: (reverse ys ++ reverse xs) ++ [x]-                                      =: reverse ys ++ (reverse xs ++ [x])-                                      =: reverse ys ++ reverse (x .: xs)-                                      =: qed---- | @reverse (x:xs) == reverse xs ++ [x]@------ >>> runTP $ revCons @Integer--- Lemma: revCons                          Q.E.D.--- [Proven] revCons :: Ɐx ∷ Integer → Ɐxs ∷ [Integer] → Bool-revCons :: forall a. SymVal a => TP (Proof (Forall "x" a -> Forall "xs" [a] -> SBool))-revCons = lemma "revCons"-                (\(Forall x) (Forall xs) -> reverse (x .: xs) .== reverse xs ++ [x])-                []---- | @reverse (xs ++ [x]) == x : reverse xs@------ >>> runTP $ revSnoc @Integer--- Inductive lemma: revApp---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4                               Q.E.D.---   Step: 5                               Q.E.D.---   Result:                               Q.E.D.--- Lemma: revSnoc                          Q.E.D.--- [Proven] revSnoc :: Ɐx ∷ Integer → Ɐxs ∷ [Integer] → Bool-revSnoc :: forall a. SymVal a => TP (Proof (Forall "x" a -> Forall "xs" [a] -> SBool))-revSnoc = do-   ra <- revApp @a--   lemma "revSnoc"-         (\(Forall x) (Forall xs) -> reverse (xs ++ [x]) .== x .: reverse xs)-         [proofOf ra]---- | @reverse (reverse xs) == xs@------ >>> runTP $ revRev @Integer--- Inductive lemma: revApp---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4                               Q.E.D.---   Step: 5                               Q.E.D.---   Result:                               Q.E.D.--- Inductive lemma: revRev---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4                               Q.E.D.---   Result:                               Q.E.D.--- [Proven] revRev :: Ɐxs ∷ [Integer] → Bool-revRev :: forall a. SymVal a => TP (Proof (Forall "xs" [a] -> SBool))-revRev = do--   ra <- revApp @a--   induct "revRev"-          (\(Forall xs) -> reverse (reverse xs) .== xs) $-          \ih (x, xs) -> [] |- reverse (reverse (x .: xs))-                            =: reverse (reverse xs ++ [x])-                            ?? ra-                            =: reverse [x] ++ reverse (reverse xs)-                            ?? ih-                            =: [x] ++ xs-                            =: x .: xs-                            =: qed---- | \(\text{length } [n \dots m] = \max(0,\; m - n + 1)\)------ The proof uses the metric @|m-n|@.------ >>> runTP enumLen--- Inductive lemma (strong): enumLen---   Step: Measure is non-negative         Q.E.D.---   Step: 1 (2 way case split)---     Step: 1.1                           Q.E.D.---     Step: 1.2.1                         Q.E.D.---     Step: 1.2.2                         Q.E.D.---     Step: 1.2.3                         Q.E.D.---     Step: 1.2.4                         Q.E.D.---     Step: 1.Completeness                Q.E.D.---   Result:                               Q.E.D.--- [Proven] enumLen :: Ɐn ∷ Integer → Ɐm ∷ Integer → Bool-enumLen :: TP (Proof (Forall "n" Integer -> Forall "m" Integer -> SBool))-enumLen =-  sInduct "enumLen"-          (\(Forall n) (Forall m) -> length [sEnum|n .. m|] .== 0 `smax` (m - n + 1))-          (\n m -> abs (m - n)) $-          \ih n m -> [] |- length [sEnum|n+1 .. m|]-                        =: cases [ n+1 .>  m ==> trivial-                                 , n+1 .<= m ==> length (n+1 .: [sEnum|n+2 .. m|])-                                              =: 1 + length [sEnum|n+2 .. m|]-                                              ?? ih-                                              =: 1 + (0 `smax` (m - (n+2) + 1))-                                              =: 0 `smax` (m - (n+1) + 1)-                                              =: qed-                                 ]---- | @reverse [n .. m] == [m, m-1 .. n]@------ The proof uses the metric @|m-n|@.------ >>> runTP $ revNM--- Inductive lemma (strong): helper---   Step: Measure is non-negative         Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Result:                               Q.E.D.--- Inductive lemma (strong): revNM---   Step: Measure is non-negative         Q.E.D.---   Step: 1 (2 way case split)---     Step: 1.1                           Q.E.D.---     Step: 1.2.1                         Q.E.D.---     Step: 1.2.2                         Q.E.D.---     Step: 1.2.3                         Q.E.D.---     Step: 1.2.4                         Q.E.D.---     Step: 1.Completeness                Q.E.D.---   Result:                               Q.E.D.--- [Proven] revNM :: Ɐn ∷ Integer → Ɐm ∷ Integer → Bool-revNM :: TP (Proof (Forall "n" Integer -> Forall "m" Integer -> SBool))-revNM = do--  helper <- sInduct "helper"-                    (\(Forall @"m" (m :: SInteger)) (Forall @"n" n) ->-                          n .< m .=> [sEnum|m, m-1 .. n+1|] ++ [n] .== [sEnum|m, m-1 .. n|])-                    (\m n -> abs (m - n)) $-                    \ih m n -> [n .< m] |- [sEnum|m, m-1 .. n+1|] ++ [n]-                                        =: m .: [sEnum|m-1, m-2 .. n+1|] ++ [n]-                                        ?? ih-                                        =: m .: [sEnum|m-1, m-2 .. n|]-                                        =: [sEnum|m, m-1 .. n|]-                                        =: qed--  sInduct "revNM"-          (\(Forall n) (Forall m) -> reverse [sEnum|n .. m|] .== [sEnum|m, m-1 .. n|])-          (\n m -> abs (m - n)) $-          \ih n m -> [] |- reverse [sEnum|n .. m|]-                        =: cases [ n .>  m ==> trivial-                                 , n .<= m ==> reverse (n .: [sEnum|(n+1) .. m|])-                                            =: reverse [sEnum|(n+1) .. m|] ++ [n]-                                            ?? ih-                                            =: [sEnum|m, m-1 .. n+1|] ++ [n]-                                            ?? helper-                                            =: [sEnum|m, m-1 .. n|]-                                            =: qed-                                 ]---- | @length (x : xs) == 1 + length xs@------ >>> runTP $ lengthTail @Integer--- Lemma: lengthTail                       Q.E.D.--- [Proven] lengthTail :: Ɐx ∷ Integer → Ɐxs ∷ [Integer] → Bool-lengthTail :: forall a. SymVal a => TP (Proof (Forall "x" a -> Forall "xs" [a] -> SBool))-lengthTail = lemma "lengthTail"-                   (\(Forall x) (Forall xs) -> length (x .: xs) .== 1 + length xs)-                   []---- | @length (xs ++ ys) == length xs + length ys@------ >>> runTP $ lenAppend @Integer--- Lemma: lenAppend                        Q.E.D.--- [Proven] lenAppend :: Ɐxs ∷ [Integer] → Ɐys ∷ [Integer] → Bool-lenAppend :: forall a. SymVal a => TP (Proof (Forall "xs" [a] -> Forall "ys" [a] -> SBool))-lenAppend = lemma "lenAppend"-                  (\(Forall xs) (Forall ys) -> length (xs ++ ys) .== length xs + length ys)-                  []---- | @length xs == length ys -> length (xs ++ ys) == 2 * length xs@------ >>> runTP $ lenAppend2 @Integer--- Lemma: lenAppend2                       Q.E.D.--- [Proven] lenAppend2 :: Ɐxs ∷ [Integer] → Ɐys ∷ [Integer] → Bool-lenAppend2 :: forall a. SymVal a => TP (Proof (Forall "xs" [a] -> Forall "ys" [a] -> SBool))-lenAppend2 = lemma "lenAppend2"-                   (\(Forall xs) (Forall ys) -> length xs .== length ys .=> length (xs ++ ys) .== 2 * length xs)-                   []---- | @length (replicate k x) == max (0, k)@------ >>> runTP $ replicateLength @Integer--- Inductive lemma: replicateLength---   Step: Base                            Q.E.D.---   Step: 1 (2 way case split)---     Step: 1.1                           Q.E.D.---     Step: 1.2.1                         Q.E.D.---     Step: 1.2.2                         Q.E.D.---     Step: 1.2.3                         Q.E.D.---     Step: 1.2.4                         Q.E.D.---     Step: 1.Completeness                Q.E.D.---   Result:                               Q.E.D.--- [Proven] replicateLength :: Ɐk ∷ Integer → Ɐx ∷ Integer → Bool-replicateLength :: forall a. SymVal a => TP (Proof (Forall "k" Integer -> Forall "x" a -> SBool))-replicateLength = induct "replicateLength"-                         (\(Forall k) (Forall x) -> length (replicate k x) .== 0 `smax` k) $-                         \ih k x -> [] |- length (replicate (k+1) x)-                                       =: cases [ k .< 0  ==> trivial-                                                , k .>= 0 ==> length (x .: replicate k x)-                                                           =: 1 + length (replicate k x)-                                                           ?? ih-                                                           =: 1 + 0 `smax` k-                                                           =: 0 `smax` (k+1)-                                                           =: qed-                                                ]---- | @not (all id xs) == any not xs@------ A list of booleans is not all true, if any of them is false.------ >>> runTP allAny--- Inductive lemma: allAny---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4                               Q.E.D.---   Result:                               Q.E.D.--- [Proven] allAny :: Ɐxs ∷ [Bool] → Bool-allAny :: TP (Proof (Forall "xs" [Bool] -> SBool))-allAny = induct "allAny"-                (\(Forall xs) -> sNot (all id xs) .== any sNot xs) $-                \ih (x, xs) -> [] |- sNot (all id (x .: xs))-                                  =: sNot (x .&& all id xs)-                                  =: (sNot x .|| sNot (all id xs))-                                  ?? ih-                                  =: sNot x .|| any sNot xs-                                  =: any sNot (x .: xs)-                                  =: qed---- | @f == g ==> map f xs == map g xs@------ >>> runTP $ mapEquiv @Integer @Integer (uninterpret "f") (uninterpret "g")--- Inductive lemma: mapEquiv---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4                               Q.E.D.---   Result:                               Q.E.D.--- [Proven] mapEquiv :: Ɐxs ∷ [Integer] → Bool-mapEquiv :: forall a b. (SymVal a, SymVal b) => (SBV a -> SBV b) -> (SBV a -> SBV b) -> TP (Proof (Forall "xs" [a] -> SBool))-mapEquiv f g = do-   let f'eq'g :: SBool-       f'eq'g = quantifiedBool $ \(Forall x) -> f x .== g x--   induct "mapEquiv"-          (\(Forall xs) -> f'eq'g .=> map f xs .== map g xs) $-          \ih (x, xs) -> [f'eq'g] |- map f (x .: xs) .== map g (x .: xs)-                                  =: f x .: map f xs .== g x .: map g xs-                                  =: f x .: map f xs .== f x .: map g xs-                                  ?? ih-                                  =: f x .: map f xs .== f x .: map f xs-                                  =: map f (x .: xs) .== map f (x .: xs)-                                  =: qed---- | @map f (xs ++ ys) == map f xs ++ map f ys@------ >>> runTP $ mapAppend @Integer @Integer (uninterpret "f")--- Inductive lemma: mapAppend---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4                               Q.E.D.---   Step: 5                               Q.E.D.---   Result:                               Q.E.D.--- [Proven] mapAppend :: Ɐxs ∷ [Integer] → Ɐys ∷ [Integer] → Bool-mapAppend :: forall a b. (SymVal a, SymVal b) => (SBV a -> SBV b) -> TP (Proof (Forall "xs" [a] -> Forall "ys" [a] -> SBool))-mapAppend f =-   induct "mapAppend"-          (\(Forall xs) (Forall ys) -> map f (xs ++ ys) .== map f xs ++ map f ys) $-          \ih (x, xs) ys -> [] |- map f ((x .: xs) ++ ys)-                               =: map f (x .: (xs ++ ys))-                             =: f x .: map f (xs ++ ys)-                             ?? ih-                             =: f x .: (map f xs  ++ map f ys)-                             =: (f x .: map f xs) ++ map f ys-                             =: map f (x .: xs) ++ map f ys-                             =: qed---- | @map f . reverse == reverse . map f@------ >>> runTP $ mapReverse @Integer @String (uninterpret "f")--- Inductive lemma: mapAppend---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4                               Q.E.D.---   Step: 5                               Q.E.D.---   Result:                               Q.E.D.--- Inductive lemma: mapReverse---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4                               Q.E.D.---   Step: 5                               Q.E.D.---   Step: 6                               Q.E.D.---   Result:                               Q.E.D.--- [Proven] mapReverse :: Ɐxs ∷ [Integer] → Bool-mapReverse :: forall a b. (SymVal a, SymVal b) => (SBV a -> SBV b) -> TP (Proof (Forall "xs" [a] -> SBool))-mapReverse f = do-     mApp <- mapAppend f--     induct "mapReverse"-            (\(Forall xs) -> reverse (map f xs) .== map f (reverse xs)) $-            \ih (x, xs) -> [] |- reverse (map f (x .: xs))-                              =: reverse (f x .: map f xs)-                              =: reverse (map f xs) ++ [f x]-                              ?? ih-                              =: map f (reverse xs) ++ [f x]-                              =: map f (reverse xs) ++ map f [x]-                              ?? mApp-                              =: map f (reverse xs ++ [x])-                              =: map f (reverse (x .: xs))-                              =: qed---- | @map f . map g == map (f . g)@------ >>> runTP $ mapCompose @Integer @Bool @String (uninterpret "f") (uninterpret "g")--- Inductive lemma: mapCompose---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4                               Q.E.D.---   Step: 5                               Q.E.D.---   Result:                               Q.E.D.--- [Proven] mapCompose :: Ɐxs ∷ [Integer] → Bool-mapCompose :: forall a b c. (SymVal a, SymVal b, SymVal c) => (SBV a -> SBV b) -> (SBV b -> SBV c) -> TP (Proof (Forall "xs" [a] -> SBool))-mapCompose f g =-  induct "mapCompose"-         (\(Forall xs) -> map g (map f xs) .== map (g . f) xs) $-         \ih (x, xs) -> [] |- map g (map f (x .: xs))-                           =: map g (f x .: map f xs)-                           =: g (f x) .: map g (map f xs)-                           ?? ih-                           =: g (f x) .: map (g . f) xs-                           =: (g . f) x .: map (g . f) xs-                           =: map (g . f) (x .: xs)-                           =: qed---- | @foldr f a . map g == foldr (f . g) a@------ >>> runTP $ foldrMapFusion @String @Bool @Integer (uninterpret "a") (uninterpret "b") (uninterpret "c")--- Inductive lemma: foldrMapFusion---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4                               Q.E.D.---   Result:                               Q.E.D.--- [Proven] foldrMapFusion :: Ɐxs ∷ [[Char]] → Bool-foldrMapFusion :: forall a b c. (SymVal a, SymVal b, SymVal c) => SBV c -> (SBV a -> SBV b) -> (SBV b -> SBV c -> SBV c) -> TP (Proof (Forall "xs" [a] -> SBool))-foldrMapFusion a g f =-  induct "foldrMapFusion"-         (\(Forall xs) -> foldr f a (map g xs) .== foldr (f . g) a xs) $-         \ih (x, xs) -> [] |- foldr f a (map g (x .: xs))-                           =: foldr f a (g x .: map g xs)-                           =: g x `f` foldr f a (map g xs)-                           ?? ih-                           =: g x `f` foldr (f . g) a xs-                           =: foldr (f . g) a (x .: xs)-                           =: qed---- |------ @---   f . foldr g a == foldr h b---   provided, f a = b and for all x and y, f (g x y) == h x (f y).--- @------ >>> runTP $ foldrFusion @String @Bool @Integer (uninterpret "a") (uninterpret "b") (uninterpret "f") (uninterpret "g") (uninterpret "h")--- Inductive lemma: foldrFusion---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4                               Q.E.D.---   Result:                               Q.E.D.--- [Proven] foldrFusion :: Ɐxs ∷ [[Char]] → Bool-foldrFusion :: forall a b c. (SymVal a, SymVal b, SymVal c) => SBV c -> SBV b -> (SBV c -> SBV b) -> (SBV a -> SBV c -> SBV c) -> (SBV a -> SBV b -> SBV b) -> TP (Proof (Forall "xs" [a] -> SBool))-foldrFusion a b f g h = do-   let -- Assumptions under which the equality holds-       h1 = f a .== b-       h2 = quantifiedBool $ \(Forall x) (Forall y) -> f (g x y) .== h x (f y)--   induct "foldrFusion"-          (\(Forall xs) -> h1 .&& h2 .=> f (foldr g a xs) .== foldr h b xs) $-          \ih (x, xs) -> [h1, h2] |- f (foldr g a (x .: xs))-                                  =: f (g x (foldr g a xs))-                                  =: h x (f (foldr g a xs))-                                  ?? ih-                                  =: h x (foldr h b xs)-                                  =: foldr h b (x .: xs)-                                  =: qed---- | @foldr f a (xs ++ ys) == foldr f (foldr f a ys) xs@------ >>> runTP $ foldrOverAppend @Integer (uninterpret "a") (uninterpret "f")--- Inductive lemma: foldrOverAppend---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4                               Q.E.D.---   Result:                               Q.E.D.--- [Proven] foldrOverAppend :: Ɐxs ∷ [Integer] → Ɐys ∷ [Integer] → Bool-foldrOverAppend :: forall a. SymVal a => SBV a -> (SBV a -> SBV a -> SBV a) -> TP (Proof (Forall "xs" [a] -> Forall "ys" [a] -> SBool))-foldrOverAppend a f =-   induct "foldrOverAppend"-          (\(Forall xs) (Forall ys) -> foldr f a (xs ++ ys) .== foldr f (foldr f a ys) xs) $-          \ih (x, xs) ys -> [] |- foldr f a ((x .: xs) ++ ys)-                               =: foldr f a (x .: (xs ++ ys))-                               =: x `f` foldr f a (xs ++ ys)-                               ?? ih-                               =: x `f` foldr f (foldr f a ys) xs-                               =: foldr f (foldr f a ys) (x .: xs)-                               =: qed---- | @foldl f e (xs ++ ys) == foldl f (foldl f e xs) ys@------ >>> runTP $ foldlOverAppend @Integer @Bool (uninterpret "f")--- Inductive lemma: foldlOverAppend---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Result:                               Q.E.D.--- [Proven] foldlOverAppend :: Ɐxs ∷ [Integer] → Ɐys ∷ [Integer] → Ɐe ∷ Bool → Bool-foldlOverAppend :: forall a b. (SymVal a, SymVal b) => (SBV b -> SBV a -> SBV b) -> TP (Proof (Forall "xs" [a] -> Forall "ys" [a] -> Forall "e" b -> SBool))-foldlOverAppend f =-   induct "foldlOverAppend"-          (\(Forall xs) (Forall ys) (Forall a) -> foldl f a (xs ++ ys) .== foldl f (foldl f a xs) ys) $-          \ih (x, xs) ys a -> [] |- foldl f a ((x .: xs) ++ ys)-                                 =: foldl f a (x .: (xs ++ ys))-                                 =: foldl f (a `f` x) (xs ++ ys)-                                 -- z3 is smart enough to instantiate the IH correctly below, but we're-                                 -- using an explicit instantiation to be clear about the use of @a@ at a different value-                                 ?? ih `at` (Inst @"ys" ys, Inst @"e" (a `f` x))-                                 =: foldl f (foldl f (a `f` x) xs) ys-                                 =: qed---- | @foldr f e xs == foldl (flip f) e (reverse xs)@------ >>> runTP $ foldrFoldlDuality @Integer @String (uninterpret "f")--- Inductive lemma: foldlOverAppend---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Result:                               Q.E.D.--- Inductive lemma: foldrFoldlDuality---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4                               Q.E.D.---   Step: 5                               Q.E.D.---   Step: 6                               Q.E.D.---   Result:                               Q.E.D.--- [Proven] foldrFoldlDuality :: Ɐxs ∷ [Integer] → Ɐe ∷ [Char] → Bool-foldrFoldlDuality :: forall a b. (SymVal a, SymVal b) => (SBV a -> SBV b -> SBV b) -> TP (Proof (Forall "xs" [a] -> Forall "e" b -> SBool))-foldrFoldlDuality f = do-   foa <- foldlOverAppend (flip f)--   induct "foldrFoldlDuality"-          (\(Forall xs) (Forall e) -> foldr f e xs .== foldl (flip f) e (reverse xs)) $-          \ih (x, xs) e -> [] |- let ff  = flip f-                                     rxs = reverse xs-                                 in foldr f e (x .: xs)-                                 =: x `f` foldr f e xs-                                 ?? ih-                                 =: x `f` foldl ff e rxs-                                 =: foldl ff e rxs `ff` x-                                 =: foldl ff (foldl ff e rxs) [x]-                                 ?? foa-                                 =: foldl ff e (rxs ++ [x])-                                 =: foldl ff e (reverse (x .: xs))-                                 =: qed---- | Given:------ @---     x \@ (y \@ z) = (x \@ y) \@ z     (associativity of @)--- and e \@ x = x                     (left unit)--- and x \@ e = x                     (right unit)--- @------ Proves:------ @---     foldr (\@) e xs == foldl (\@) e xs--- @------ >>> runTP $ foldrFoldlDualityGeneralized @Integer (uninterpret "e") (uninterpret "|@|")--- Inductive lemma: helper---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4                               Q.E.D.---   Result:                               Q.E.D.--- Inductive lemma: foldrFoldlDuality---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4                               Q.E.D.---   Step: 5                               Q.E.D.---   Step: 6                               Q.E.D.---   Result:                               Q.E.D.--- [Proven] foldrFoldlDuality :: Ɐxs ∷ [Integer] → Bool-foldrFoldlDualityGeneralized :: forall a. SymVal a => SBV a -> (SBV a -> SBV a -> SBV a) -> TP (Proof (Forall "xs" [a] -> SBool))-foldrFoldlDualityGeneralized e (@) = do-   -- Assumptions under which the equality holds-   let assoc = quantifiedBool $ \(Forall x) (Forall y) (Forall z) -> x @ (y @ z) .== (x @ y) @ z-       lunit = quantifiedBool $ \(Forall x) -> e @ x .== x-       runit = quantifiedBool $ \(Forall x) -> x @ e .== x--   -- Helper: foldl (@) (y @ z) xs = y @ foldl (@) z xs-   -- Note the instantiation of the IH at a different value for z. It turns out-   -- we don't have to actually specify this since z3 can figure it out by itself, but we're being explicit.-   helper <- induct "helper"-                    (\(Forall @"xs" xs) (Forall @"y" y) (Forall @"z" z) -> assoc .=> foldl (@) (y @ z) xs .== y @ foldl (@) z xs) $-                    \ih (x, xs) y z -> [assoc] |- foldl (@) (y @ z) (x .: xs)-                                               =: foldl (@) ((y @ z) @ x) xs-                                               ?? assoc-                                               =: foldl (@) (y @ (z @ x)) xs-                                               ?? ih `at` (Inst @"y" y, Inst @"z" (z @ x))-                                               =: y @ foldl (@) (z @ x) xs-                                               =: y @ foldl (@) z (x .: xs)-                                               =: qed--   induct "foldrFoldlDuality"-          (\(Forall xs) -> assoc .&& lunit .&& runit .=> foldr (@) e xs .== foldl (@) e xs) $-          \ih (x, xs) -> [assoc, lunit, runit] |- foldr (@) e (x .: xs)-                                               =: x @ foldr (@) e xs-                                               ?? ih-                                               =: x @ foldl (@) e xs-                                               ?? helper-                                               =: foldl (@) (x @ e) xs-                                               ?? runit-                                               =: foldl (@) x xs-                                               ?? lunit-                                               =: foldl (@) (e @ x) xs-                                               =: foldl (@) e (x .: xs)-                                               =: qed---- | Given:------ @---        (x \<+> y) \<*> z = x \<+> (y \<*> z)---   and  x \<+> e = e \<*> x--- @------ Proves:------ @---    foldr (\<+>) e xs = foldl (\<*>) e xs--- @------ In Bird's Introduction to Functional Programming book (2nd edition) this is called the second duality theorem:------ >>> runTP $ foldrFoldl @Integer @String (uninterpret "<+>") (uninterpret "<*>") (uninterpret "e")--- Inductive lemma: foldl over <*>/<+>---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4                               Q.E.D.---   Result:                               Q.E.D.--- Inductive lemma: foldrFoldl---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4                               Q.E.D.---   Step: 5                               Q.E.D.---   Result:                               Q.E.D.--- [Proven] foldrFoldl :: Ɐxs ∷ [Integer] → Bool-foldrFoldl :: forall a b. (SymVal a, SymVal b) => (SBV a -> SBV b -> SBV b) -> (SBV b -> SBV a -> SBV b) -> SBV b -> TP (Proof (Forall "xs" [a] -> SBool))-foldrFoldl (<+>) (<*>) e = do-   -- Assumptions about the operators-   let -- (x <+> y) <*> z == x <+> (y <*> z)-       assoc = quantifiedBool $ \(Forall x) (Forall y) (Forall z) -> (x <+> y) <*> z .== x <+> (y <*> z)--       -- x <+> e == e <*> x-       unit  = quantifiedBool $ \(Forall x) -> x <+> e .== e <*> x--   -- Helper: x <+> foldl (<*>) y xs == foldl (<*>) (x <+> y) xs-   helper <--      induct "foldl over <*>/<+>"-             (\(Forall @"xs" xs) (Forall @"x" x) (Forall @"y" y) -> assoc .=> x <+> foldl (<*>) y xs .== foldl (<*>) (x <+> y) xs) $--             -- Using z to avoid confusion with the variable x already present, following Bird.-             -- z3 can figure out the proper instantiation of ih so the at call is unnecessary, but being explicit is helpful.-             \ih (z, xs) x y -> [assoc] |- x <+> foldl (<*>) y (z .: xs)-                                        =: x <+> foldl (<*>) (y <*> z) xs-                                        ?? ih `at` (Inst @"x" x, Inst @"y" (y <*> z))-                                        =: foldl (<*>) (x <+> (y <*> z)) xs-                                        ?? assoc-                                        =: foldl (<*>) ((x <+> y) <*> z) xs-                                        =: foldl (<*>) (x <+> y) (z .: xs)-                                        =: qed--   -- Final proof:-   induct "foldrFoldl"-          (\(Forall xs) -> assoc .&& unit .=> foldr (<+>) e xs .== foldl (<*>) e xs) $-          \ih (x, xs) -> [assoc, unit] |- foldr (<+>) e (x .: xs)-                                       =: x <+> foldr (<+>) e xs-                                       ?? ih-                                       =: x <+> foldl (<*>) e xs-                                       ?? helper-                                       =: foldl (<*>) (x <+> e) xs-                                       =: foldl (<*>) (e <*> x) xs-                                       =: foldl (<*>) e (x .: xs)-                                       =: qed---- | Provided @f@ is associative and @a@ is its both left and right-unit:------ @foldr f a . concat == foldr f a . map (foldr f a)@------ >>> runTP $ bookKeeping @Integer (uninterpret "a") (uninterpret "f")--- Inductive lemma: foldBase---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4                               Q.E.D.---   Result:                               Q.E.D.--- Inductive lemma: foldrOverAppend---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4                               Q.E.D.---   Result:                               Q.E.D.--- Inductive lemma: bookKeeping---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4                               Q.E.D.---   Step: 5                               Q.E.D.---   Step: 6                               Q.E.D.---   Result:                               Q.E.D.--- [Proven] bookKeeping :: Ɐxss ∷ [[Integer]] → Bool------ NB. This theorem does not hold if @f@ does not have a left-unit! Consider the input @[[], [x]]@. Left hand side reduces to--- @x@, while the right hand side reduces to: @f a x@. And unless @f@ is commutative or @a@ is not also a left-unit,--- then one can find a counter-example. (Aside: if both left and right units exist for a binary operator, then they--- are necessarily the same element, since @l = f l r = r@. So, an equivalent statement could simply say @f@ has--- both left and right units.) A concrete counter-example is:------ @---   data T = A | B | C------   f :: T -> T -> T---   f C A = A---   f C B = A---   f x _ = x--- @------ You can verify @f@ is associative. Also note that @C@ is the right-unit for @f@, but it isn't the left-unit.--- In fact, @f@ has no-left unit by the above argument. In this case, the bookkeeping law produces @B@ for--- the left-hand-side, and @A@ for the right-hand-side for the input @[[], [B]]@.-bookKeeping :: forall a. SymVal a => SBV a -> (SBV a -> SBV a -> SBV a) -> TP (Proof (Forall "xss" [[a]] -> SBool))-bookKeeping a f = do--   -- Assumptions about f-   let assoc = quantifiedBool $ \(Forall x) (Forall y) (Forall z) -> x `f` (y `f` z) .== (x `f` y) `f` z-       rUnit = quantifiedBool $ \(Forall x) -> x `f` a .== x-       lUnit = quantifiedBool $ \(Forall x) -> a `f` x .== x--   -- Helper: @foldr f y xs = foldr f a xs `f` y@-   helper <- induct "foldBase"-                    (\(Forall xs) (Forall y) -> lUnit .&& assoc .=> foldr f y xs .== foldr f a xs `f` y) $-                    \ih (x, xs) y -> [lUnit, assoc] |- foldr f y (x .: xs)-                                                    =: x `f` foldr f y xs-                                                    ?? ih-                                                    =: x `f` (foldr f a xs `f` y)-                                                    =: (x `f` foldr f a xs) `f` y-                                                    =: foldr f a (x .: xs) `f` y-                                                    =: qed--   foa <- foldrOverAppend a f--   induct "bookKeeping"-          (\(Forall xss) -> assoc .&& rUnit .&& lUnit .=> foldr f a (concat xss) .== foldr f a (map (foldr f a) xss)) $-          \ih (xs, xss) -> [assoc, rUnit, lUnit] |- foldr f a (concat (xs .: xss))-                                                 =: foldr f a (xs ++ concat xss)-                                                 ?? foa-                                                 =: foldr f (foldr f a (concat xss)) xs-                                                 ?? ih-                                                 =: foldr f (foldr f a (map (foldr f a) xss)) xs-                                                 ?? helper `at` (Inst @"xs" xs, Inst @"y" (foldr f a (map (foldr f a) xss)))-                                                 =: foldr f a xs `f` foldr f a (map (foldr f a) xss)-                                                 =: foldr f a (foldr f a xs .: map (foldr f a) xss)-                                                 =: foldr f a (map (foldr f a) (xs .: xss))-                                                 =: qed---- | @filter p (xs ++ ys) == filter p xs ++ filter p ys@------ >>> runTP $ filterAppend @Integer (uninterpret "p")--- Inductive lemma: filterAppend---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4                               Q.E.D.---   Step: 5                               Q.E.D.---   Result:                               Q.E.D.--- [Proven] filterAppend :: Ɐxs ∷ [Integer] → Ɐys ∷ [Integer] → Bool-filterAppend :: forall a. SymVal a => (SBV a -> SBool) -> TP (Proof (Forall "xs" [a] -> Forall "ys" [a] -> SBool))-filterAppend p =-   induct "filterAppend"-          (\(Forall xs) (Forall ys) -> filter p xs ++ filter p ys .== filter p (xs ++ ys)) $-          \ih (x, xs) ys -> [] |- filter p (x .: xs) ++ filter p ys-                               =: ite (p x) (x .: filter p xs) (filter p xs) ++ filter p ys-                               =: ite (p x) (x .: filter p xs ++ filter p ys) (filter p xs ++ filter p ys)-                               ?? ih-                               =: ite (p x) (x .: filter p (xs ++ ys)) (filter p (xs ++ ys))-                               =: filter p (x .: (xs ++ ys))-                               =: filter p ((x .: xs) ++ ys)-                               =: qed---- | @filter p (concat xss) == concatMap (filter p xss)@------ >>> runTP $ filterConcat @Integer (uninterpret "f")--- Inductive lemma: filterAppend---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4                               Q.E.D.---   Step: 5                               Q.E.D.---   Result:                               Q.E.D.--- Inductive lemma: filterConcat---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Result:                               Q.E.D.--- [Proven] filterConcat :: Ɐxss ∷ [[Integer]] → Bool-filterConcat :: forall a. SymVal a => (SBV a -> SBool) -> TP (Proof (Forall "xss" [[a]] -> SBool))-filterConcat p = do-  fa <- filterAppend p--  inductWith cvc5 "filterConcat"-         (\(Forall xss) -> filter p (concat xss) .== concatMap (filter p) xss) $-         \ih (xs, xss) -> [] |- filter p (concat (xs .: xss))-                             =: filter p (xs ++ concat xss)-                             ?? fa-                             =: filter p xs ++ filter p (concat xss)-                             ?? ih-                             =: concatMap (filter p) (xs .: xss)-                             =: qed---- | @takeWhile f xs ++ dropWhile f xs == xs@------ >>> runTP $ takeDropWhile @Integer (uninterpret "f")--- Inductive lemma: takeDropWhile---   Step: Base                            Q.E.D.---   Step: 1 (2 way case split)---     Step: 1.1.1                         Q.E.D.---     Step: 1.1.2                         Q.E.D.---     Step: 1.2.1                         Q.E.D.---     Step: 1.2.2                         Q.E.D.---     Step: 1.Completeness                Q.E.D.---   Result:                               Q.E.D.--- [Proven] takeDropWhile :: Ɐxs ∷ [Integer] → Bool-takeDropWhile :: forall a. SymVal a => (SBV a -> SBool) -> TP (Proof (Forall "xs" [a] -> SBool))-takeDropWhile f =-   induct "takeDropWhile"-          (\(Forall xs) -> takeWhile f xs ++ dropWhile f xs .== xs) $-          \ih (x, xs) -> [] |- takeWhile f (x .: xs) ++ dropWhile f (x .: xs)-                            =: cases [ f x        ==> x .: takeWhile f xs ++ dropWhile f xs-                                                   ?? ih-                                                   =: x .: xs-                                                   =: qed-                                     , sNot (f x) ==> [] ++ x .: xs-                                                   =: x .: xs-                                                   =: qed-                                     ]--- | Remove adjacent duplicates.-destutter :: SymVal a => SList a -> SList a-destutter = smtFunction "destutter" $ \xs -> ite (null xs .|| null (tail xs))-                                                 xs-                                                 (let (a, as) = uncons xs-                                                      r       = destutter as-                                                  in ite (a .== head as) r (a .: r))---- | @destutter (destutter xs) == destutter xs@------ >>> runTP $ destutterIdempotent @Integer--- Inductive lemma: helper1---   Step: Base                            Q.E.D.---   Step: 1 (2 way case split)---     Step: 1.1                           Q.E.D.---     Step: 1.2.1                         Q.E.D.---     Step: 1.2.2                         Q.E.D.---     Step: 1.Completeness                Q.E.D.---   Result:                               Q.E.D.--- Inductive lemma: helper2---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Result:                               Q.E.D.--- Inductive lemma (strong): helper3---   Step: Measure is non-negative         Q.E.D.---   Step: 1 (2 way full case split)---     Step: 1.1                           Q.E.D.---     Step: 1.2 (2 way full case split)---       Step: 1.2.1                       Q.E.D.---       Step: 1.2.2.1                     Q.E.D.---       Step: 1.2.2.2 (2 way case split)---         Step: 1.2.2.2.1.1               Q.E.D.---         Step: 1.2.2.2.1.2               Q.E.D.---         Step: 1.2.2.2.2.1               Q.E.D.---         Step: 1.2.2.2.2.2               Q.E.D.---         Step: 1.2.2.2.Completeness      Q.E.D.---   Result:                               Q.E.D.--- Lemma: destutterIdempotent              Q.E.D.--- [Proven] destutterIdempotent :: Ɐxs ∷ [Integer] → Bool-destutterIdempotent :: forall a. SymVal a => TP (Proof (Forall "xs" [a] -> SBool))-destutterIdempotent = do--   -- No adjacent duplicates-   let noAdd = smtFunction "noAdd" $ \xs -> null xs .|| null (tail xs) .|| (head xs ./= head (tail xs) .&& noAdd (tail xs))--   -- Helper: The head of a destuttered non-empty list does not change-   helper1 <- induct "helper1"-                     (\(Forall @"xs" (xs :: SList a)) (Forall @"h" h) -> head (destutter (h .: xs)) .== h) $-                     \ih (x, xs) h -> []-                                   |- head (destutter (h .: x .: xs))-                                   =: cases [ h ./= x ==> trivial-                                            , h .== x ==> head (destutter (x .: xs))-                                                       ?? ih-                                                       =: x-                                                       =: qed-                                            ]--   -- Helper: show that if a list has no adjacent duplicates, then destutter leaves it unchanged:-   helper2 <- induct "helper2"-                     (\(Forall @"xs" (xs :: SList a)) -> noAdd xs .=> destutter xs .== xs) $-                     \ih (x, xs) -> [noAdd (x .: xs)]-                                 |- destutter (x .: xs)-                                 ?? ih-                                 =: x .: xs-                                 =: qed--   -- Helper: prove that noAdd is true for the result of destutter-   helper3 <- sInductWith cvc5 "helper3"-                  (\(Forall @"xs" (xs :: SList a)) -> noAdd (destutter xs))-                  length $-                  \ih xs -> []-                         |- noAdd (destutter xs)-                         =: split xs-                                  trivial-                                  (\a as -> split as-                                                  trivial-                                                  (\b bs -> noAdd (destutter (a .: b .: bs))-                                                         =: cases [a .== b  ==> noAdd (destutter (b .: bs))-                                                                             ?? ih-                                                                             =: sTrue-                                                                             =: qed-                                                                  , a ./= b ==> noAdd (a .: destutter (b .: bs))-                                                                             ?? helper1 `at` (Inst @"xs" bs, Inst @"h" b)-                                                                             ?? ih-                                                                             =: sTrue-                                                                             =: qed-                                                                  ]))--   -- Now we can prove idempotency easily:-   lemma "destutterIdempotent"-          (\(Forall xs) -> destutter (destutter xs) .== destutter xs)-          [proofOf helper2, proofOf helper3]---- | @(as ++ bs) \\ cs == (as \\ cs) ++ (bs \\ cs)@------ >>> runTP $ appendDiff @Integer--- Inductive lemma: appendDiff---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Result:                               Q.E.D.--- [Proven] appendDiff :: Ɐas ∷ [Integer] → Ɐbs ∷ [Integer] → Ɐcs ∷ [Integer] → Bool-appendDiff :: forall a. (Eq a, SymVal a) => TP (Proof (Forall "as" [a] -> Forall "bs" [a] -> Forall "cs" [a] -> SBool))-appendDiff = induct "appendDiff"-                    (\(Forall as) (Forall bs) (Forall cs) -> (as ++ bs) \\ cs .== (as \\ cs) ++ (bs \\ cs)) $-                    \ih (a, as) bs cs -> [] |- (a .: as ++ bs) \\ cs-                                            =: (a .: (as ++ bs)) \\ cs-                                            =: ite (a `elem` cs) ((as ++ bs) \\ cs) (a .: ((as ++ bs) \\ cs))-                                            ?? ih-                                            =: ((a .: as) \\ cs) ++ (bs \\ cs)-                                            =: qed---- | @as \\ (bs ++ cs) == (as \\ bs) \\ cs@------ >>> runTP $ diffAppend @Integer--- Inductive lemma: diffAppend---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4                               Q.E.D.---   Result:                               Q.E.D.--- [Proven] diffAppend :: Ɐas ∷ [Integer] → Ɐbs ∷ [Integer] → Ɐcs ∷ [Integer] → Bool-diffAppend :: forall a. (Eq a, SymVal a) => TP (Proof (Forall "as" [a] -> Forall "bs" [a] -> Forall "cs" [a] -> SBool))-diffAppend = induct "diffAppend"-                    (\(Forall as) (Forall bs) (Forall cs) -> as \\ (bs ++ cs) .== (as \\ bs) \\ cs) $-                    \ih (a, as) bs cs -> [] |- (a .: as) \\ (bs ++ cs)-                                            =: ite (a `elem` (bs ++ cs)) (as \\ (bs ++ cs)) (a .: (as \\ (bs ++ cs)))-                                            ?? ih `at` (Inst @"bs" bs, Inst @"cs" cs)-                                            =: ite (a `elem` (bs ++ cs)) ((as \\ bs) \\ cs) (a .: (as \\ (bs ++ cs)))-                                            ?? ih `at` (Inst @"bs" bs, Inst @"cs" cs)-                                            =: ite (a `elem` (bs ++ cs)) ((as \\ bs) \\ cs) (a .: ((as \\ bs) \\ cs))-                                            =: ((a .: as) \\ bs) \\ cs-                                            =: qed---- | @(as \\ bs) \\ cs == (as \\ cs) \\ bs@------ >>> runTP $ diffDiff @Integer--- Inductive lemma: diffDiff---   Step: Base                            Q.E.D.---   Step: 1 (2 way case split)---     Step: 1.1.1                         Q.E.D.---     Step: 1.1.2                         Q.E.D.---     Step: 1.1.3 (2 way case split)---       Step: 1.1.3.1                     Q.E.D.---       Step: 1.1.3.2.1                   Q.E.D.---       Step: 1.1.3.2.2 (a ∉ cs)          Q.E.D.---       Step: 1.1.3.Completeness          Q.E.D.---     Step: 1.2.1                         Q.E.D.---     Step: 1.2.2 (2 way case split)---       Step: 1.2.2.1.1                   Q.E.D.---       Step: 1.2.2.1.2                   Q.E.D.---       Step: 1.2.2.1.3 (a ∈ cs)          Q.E.D.---       Step: 1.2.2.2.1                   Q.E.D.---       Step: 1.2.2.2.2                   Q.E.D.---       Step: 1.2.2.2.3 (a ∉ bs)          Q.E.D.---       Step: 1.2.2.2.4 (a ∉ cs)          Q.E.D.---       Step: 1.2.2.Completeness          Q.E.D.---     Step: 1.Completeness                Q.E.D.---   Result:                               Q.E.D.--- [Proven] diffDiff :: Ɐas ∷ [Integer] → Ɐbs ∷ [Integer] → Ɐcs ∷ [Integer] → Bool-diffDiff :: forall a. (Eq a, SymVal a) => TP (Proof (Forall "as" [a] -> Forall "bs" [a] -> Forall "cs" [a] -> SBool))-diffDiff = induct "diffDiff"-                  (\(Forall as) (Forall bs) (Forall cs) -> (as \\ bs) \\ cs .== (as \\ cs) \\ bs) $-                  \ih (a, as) bs cs ->-                      [] |- ((a .: as) \\ bs) \\ cs-                         =: cases [ a `elem`    bs ==> (as \\ bs) \\ cs-                                                    ?? ih-                                                    =: (as \\ cs) \\ bs-                                                    =: cases [ a `elem`    cs ==> ((a .: as) \\ cs) \\ bs-                                                                               =: qed-                                                             , a `notElem` cs ==> (a .: (as \\ cs)) \\ bs-                                                                               ?? "a ∉ cs"-                                                                               =: ((a .: as) \\ cs) \\ bs-                                                                               =: qed-                                                             ]-                                  , a `notElem` bs ==> (a .: (as \\ bs)) \\ cs-                                                    =: cases [ a `elem`    cs ==> (as \\ bs) \\ cs-                                                                               ?? ih-                                                                               =: (as \\ cs) \\ bs-                                                                               ?? "a ∈ cs"-                                                                               =: ((a .: as) \\ cs) \\ bs-                                                                               =: qed-                                                             , a `notElem` cs ==> a .: ((as \\ bs) \\ cs)-                                                                               ?? ih-                                                                               =: a .: ((as \\ cs) \\ bs)-                                                                               ?? "a ∉ bs"-                                                                               =: (a .: (as \\ cs)) \\ bs-                                                                               ?? "a ∉ cs"-                                                                               =: ((a .: as) \\ cs) \\ bs-                                                                               =: qed-                                                             ]-                                  ]---- | Are the two lists disjoint?-disjoint :: (Eq a, SymVal a) => SList a -> SList a -> SBool-disjoint = smtFunction "disjoint" $ \xs ys -> null xs .|| head xs `notElem` ys .&& disjoint (tail xs) ys---- | @disjoint as bs .=> as \\ bs == as@------ >>> runTP $ disjointDiff @Integer--- Inductive lemma: disjointDiff---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Result:                               Q.E.D.--- [Proven] disjointDiff :: Ɐas ∷ [Integer] → Ɐbs ∷ [Integer] → Bool-disjointDiff :: forall a. (Eq a, SymVal a) => TP (Proof (Forall "as" [a] -> Forall "bs" [a] -> SBool))-disjointDiff = induct "disjointDiff"-                      (\(Forall as) (Forall bs) -> disjoint as bs .=> as \\ bs .== as) $-                      \ih (a, as) bs -> [disjoint (a .: as) bs]-                                     |- (a .: as) \\ bs-                                     =: a .: (as \\ bs)-                                     ?? ih-                                     =: a .: as-                                     =: qed---- | @fst (partition f xs) == filter f xs@------ >>> runTP $ partition1 @Integer (uninterpret "f")--- Inductive lemma: partition1---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4                               Q.E.D.---   Result:                               Q.E.D.--- [Proven] partition1 :: Ɐxs ∷ [Integer] → Bool-partition1 :: forall a. SymVal a => (SBV a -> SBool) -> TP (Proof (Forall "xs" [a] -> SBool))-partition1 f =-   induct "partition1"-          (\(Forall xs) -> fst (partition f xs) .== filter f xs) $-          \ih (x, xs) -> [] |- fst (partition f (x .: xs))-                            =: fst (let res = partition f xs-                                    in ite (f x)-                                           (tuple (x .: fst res, snd res))-                                           (tuple (fst res, x .: snd res)))-                            =: ite (f x) (x .: fst (partition f xs)) (fst (partition f xs))-                            ?? ih-                            =: ite (f x) (x .: filter f xs) (filter f xs)-                            =: filter f (x .: xs)-                            =: qed---- | @snd (partition f xs) == filter (not . f) xs@------ >>> runTP $ partition2 @Integer (uninterpret "f")--- Inductive lemma: partition2---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4                               Q.E.D.---   Result:                               Q.E.D.--- [Proven] partition2 :: Ɐxs ∷ [Integer] → Bool-partition2 :: forall a. SymVal a => (SBV a -> SBool) -> TP (Proof (Forall "xs" [a] -> SBool))-partition2 f =-   induct "partition2"-          (\(Forall xs) -> snd (partition f xs) .== filter (sNot . f) xs) $-          \ih (x, xs) -> [] |- snd (partition f (x .: xs))-                            =: snd (let res = partition f xs-                                    in ite (f x)-                                           (tuple (x .: fst res, snd res))-                                           (tuple (fst res, x .: snd res)))-                            =: ite (f x) (snd (partition f xs)) (x .: snd (partition f xs))-                            ?? ih-                            =: ite (f x) (filter (sNot . f) xs) (x .: filter (sNot . f) xs)-                            =: filter (sNot . f) (x .: xs)-                            =: qed---- | @take n (take m xs) == take (n `smin` m) xs@------ >>> runTP $ take_take @Integer--- Lemma: take_take                        Q.E.D.--- [Proven] take_take :: Ɐm ∷ Integer → Ɐn ∷ Integer → Ɐxs ∷ [Integer] → Bool-take_take :: forall a. SymVal a => TP (Proof (Forall "m" Integer -> Forall "n" Integer -> Forall "xs" [a] -> SBool))-take_take = lemma "take_take"-                  (\(Forall m) (Forall n) (Forall xs) -> take n (take m xs) .== take (n `smin` m) xs)-                  []---- | @n >= 0 && m >= 0 ==> drop n (drop m xs) == drop (n + m) xs@------ >>> runTP $ drop_drop @Integer--- Lemma: drop_drop                        Q.E.D.--- [Proven] drop_drop :: Ɐm ∷ Integer → Ɐn ∷ Integer → Ɐxs ∷ [Integer] → Bool-drop_drop :: forall a. SymVal a => TP (Proof (Forall "m" Integer -> Forall "n" Integer -> Forall "xs" [a] -> SBool))-drop_drop = lemma "drop_drop"-                  (\(Forall m) (Forall n) (Forall xs) -> n .>= 0 .&& m .>= 0 .=> drop n (drop m xs) .== drop (n + m) xs)-                  []---- | @take n xs ++ drop n xs == xs@------ >>> runTP $ take_drop @Integer--- Lemma: take_drop                        Q.E.D.--- [Proven] take_drop :: Ɐn ∷ Integer → Ɐxs ∷ [Integer] → Bool-take_drop :: forall a. SymVal a => TP (Proof (Forall "n" Integer -> Forall "xs" [a] -> SBool))-take_drop = lemma "take_drop"-                  (\(Forall n) (Forall xs) -> take n xs ++ drop n xs .== xs)-                  []---- | @n .> 0 ==> take n (x .: xs) == x .: take (n - 1) xs@------ >>> runTP $ take_cons @Integer--- Lemma: take_cons                        Q.E.D.--- [Proven] take_cons :: Ɐn ∷ Integer → Ɐx ∷ Integer → Ɐxs ∷ [Integer] → Bool-take_cons :: forall a. SymVal a => TP (Proof (Forall "n" Integer -> Forall "x" a -> Forall "xs" [a] -> SBool))-take_cons = lemma "take_cons"-                  (\(Forall n) (Forall x) (Forall xs) -> n .> 0 .=> take n (x .: xs) .== x .: take (n - 1) xs)-                  []---- | @take n (map f xs) == map f (take n xs)@------ >>> runTP $ take_map @Integer @Integer (uninterpret "f")--- Lemma: take_cons                        Q.E.D.--- Lemma: map1                             Q.E.D.--- Lemma: take_map.n <= 0                  Q.E.D.--- Inductive lemma: take_map.n > 0---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4                               Q.E.D.---   Step: 5                               Q.E.D.---   Result:                               Q.E.D.--- Lemma: take_map---   Step: 1                               Q.E.D.---   Result:                               Q.E.D.--- [Proven] take_map :: Ɐn ∷ Integer → Ɐxs ∷ [Integer] → Bool-take_map :: forall a b. (SymVal a, SymVal b) => (SBV a -> SBV b) -> TP (Proof (Forall "n" Integer -> Forall "xs" [a] -> SBool))-take_map f = do-    tc   <- take_cons @a--    map1 <- lemma "map1"-                  (\(Forall x) (Forall xs) -> map f (x .: xs) .== f x .: map f xs)-                  []--    h1 <- lemma "take_map.n <= 0"-                 (\(Forall @"xs" xs) (Forall @"n" n) -> n .<= 0 .=> take n (map f xs) .== map f (take n xs))-                 []--    h2 <- induct "take_map.n > 0"-                 (\(Forall @"xs" xs) (Forall @"n" n) -> n .> 0 .=> take n (map f xs) .== map f (take n xs)) $-                 \ih (x, xs) n -> [n .> 0] |- take n (map f (x .: xs))-                                           =: take n (f x .: map f xs)-                                           =: f x .: take (n - 1) (map f xs)-                                           ?? ih `at` Inst @"n" (n-1)-                                           =: f x .: map f (take (n - 1) xs)-                                           ?? map1 `at` (Inst @"x" x, Inst @"xs" (take (n - 1) xs))-                                           =: map f (x .: take (n - 1) xs)-                                           ?? tc-                                           =: map f (take n (x .: xs))-                                           =: qed--    calc "take_map"-         (\(Forall n) (Forall xs) -> take n (map f xs) .== map f (take n xs)) $-         \n xs -> [] |- take n (map f xs)-                     ?? h1-                     ?? h2-                     =: map f (take n xs)-                     =: qed---- | @n .> 0 ==> drop n (x .: xs) == drop (n - 1) xs@------ >>> runTP $ drop_cons @Integer--- Lemma: drop_cons                        Q.E.D.--- [Proven] drop_cons :: Ɐn ∷ Integer → Ɐx ∷ Integer → Ɐxs ∷ [Integer] → Bool-drop_cons :: forall a. SymVal a => TP (Proof (Forall "n" Integer -> Forall "x" a -> Forall "xs" [a] -> SBool))-drop_cons = lemma "drop_cons"-                  (\(Forall n) (Forall x) (Forall xs) -> n .> 0 .=> drop n (x .: xs) .== drop (n - 1) xs)-                  []---- | @drop n (map f xs) == map f (drop n xs)@------ >>> runTP $ drop_map @Integer @String (uninterpret "f")--- Lemma: drop_cons                        Q.E.D.--- Lemma: drop_cons                        Q.E.D.--- Lemma: drop_map.n <= 0                  Q.E.D.--- Inductive lemma: drop_map.n > 0---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4                               Q.E.D.---   Result:                               Q.E.D.--- Lemma: drop_map---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4                               Q.E.D.---   Result:                               Q.E.D.--- [Proven] drop_map :: Ɐn ∷ Integer → Ɐxs ∷ [Integer] → Bool-drop_map :: forall a b. (SymVal a, SymVal b) => (SBV a -> SBV b) -> TP (Proof (Forall "n" Integer -> Forall "xs" [a] -> SBool))-drop_map f = do-   dcA <- drop_cons @a-   dcB <- drop_cons @b--   h1 <- lemma "drop_map.n <= 0"-               (\(Forall @"xs" xs) (Forall @"n" n) -> n .<= 0 .=> drop n (map f xs) .== map f (drop n xs))-               []--   h2 <- induct "drop_map.n > 0"-                (\(Forall @"xs" xs) (Forall @"n" n) -> n .> 0 .=> drop n (map f xs) .== map f (drop n xs)) $-                \ih (x, xs) n -> [n .> 0] |- drop n (map f (x .: xs))-                                          =: drop n (f x .: map f xs)-                                          ?? dcB `at` (Inst @"n" n, Inst @"x" (f x), Inst @"xs" (map f xs))-                                          =: drop (n - 1) (map f xs)-                                          ?? ih `at` Inst @"n" (n-1)-                                          =: map f (drop (n - 1) xs)-                                          ?? dcA `at` (Inst @"n" n, Inst @"x" x, Inst @"xs" xs)-                                          =: map f (drop n (x .: xs))-                                          =: qed--   -- I'm a bit surprised that z3 can't deduce the following with a simple-lemma, which is essentially a simple case-split.-   -- But the good thing about calc is that it lets us direct the tool in precise ways that we'd like.-   calc "drop_map"-        (\(Forall n) (Forall xs) -> drop n (map f xs) .== map f (drop n xs)) $-        \n xs -> [] |- let result = drop n (map f xs) .== map f (drop n xs)-                       in result-                       =: ite (n .<= 0) (n .<= 0 .=> result) (n .> 0 .=> result)-                       ?? h1-                       =: ite (n .<= 0) sTrue (n .> 0 .=> result)-                       ?? h2-                       =: ite (n .<= 0) sTrue sTrue-                       =: sTrue-                       =: qed---- | @n >= 0 ==> length (take n xs) == length xs \`min\` n@------ >>> runTP $ length_take @Integer--- Lemma: length_take                      Q.E.D.--- [Proven] length_take :: Ɐn ∷ Integer → Ɐxs ∷ [Integer] → Bool-length_take :: forall a. SymVal a => TP (Proof (Forall "n" Integer -> Forall "xs" [a] -> SBool))-length_take = lemma "length_take"-                    (\(Forall n) (Forall xs) -> n .>= 0 .=> length (take n xs) .== length xs `smin` n)-                    []---- | @n >= 0 ==> length (drop n xs) == (length xs - n) \`max\` 0@------ >>> runTP $ length_drop @Integer--- Lemma: length_drop                      Q.E.D.--- [Proven] length_drop :: Ɐn ∷ Integer → Ɐxs ∷ [Integer] → Bool-length_drop :: forall a. SymVal a => TP (Proof (Forall "n" Integer -> Forall "xs" [a] -> SBool))-length_drop = lemma "length_drop"-                    (\(Forall n) (Forall xs) -> n .>= 0 .=> length (drop n xs) .== (length xs - n) `smax` 0)-                    []---- | @length xs \<= n ==\> take n xs == xs@------ >>> runTP $ take_all @Integer--- Lemma: take_all                         Q.E.D.--- [Proven] take_all :: Ɐn ∷ Integer → Ɐxs ∷ [Integer] → Bool-take_all :: forall a. SymVal a => TP (Proof (Forall "n" Integer -> Forall "xs" [a] -> SBool))-take_all = lemma "take_all"-                 (\(Forall n) (Forall xs) -> length xs .<= n .=> take n xs .== xs)-                 []---- | @length xs \<= n ==\> drop n xs == nil@------ >>> runTP $ drop_all @Integer--- Lemma: drop_all                         Q.E.D.--- [Proven] drop_all :: Ɐn ∷ Integer → Ɐxs ∷ [Integer] → Bool-drop_all :: forall a. SymVal a => TP (Proof (Forall "n" Integer -> Forall "xs" [a] -> SBool))-drop_all = lemma "drop_all"-                 (\(Forall n) (Forall xs) -> length xs .<= n .=> drop n xs .== nil)-                 []---- | @take n (xs ++ ys) == (take n xs ++ take (n - length xs) ys)@------ >>> runTP $ take_append @Integer--- Lemma: take_append                      Q.E.D.--- [Proven] take_append :: Ɐn ∷ Integer → Ɐxs ∷ [Integer] → Ɐys ∷ [Integer] → Bool-take_append :: forall a. SymVal a => TP (Proof (Forall "n" Integer -> Forall "xs" [a] -> Forall "ys" [a] -> SBool))-take_append = lemmaWith cvc5 "take_append"-                        (\(Forall n) (Forall xs) (Forall ys) -> take n (xs ++ ys) .== take n xs ++ take (n - length xs) ys)-                        []---- | @drop n (xs ++ ys) == drop n xs ++ drop (n - length xs) ys@------ NB. As of Feb 2025, z3 struggles to prove this, but cvc5 gets it out-of-the-box.------ >>> runTP $ drop_append @Integer--- Lemma: drop_append                      Q.E.D.--- [Proven] drop_append :: Ɐn ∷ Integer → Ɐxs ∷ [Integer] → Ɐys ∷ [Integer] → Bool-drop_append :: forall a. SymVal a => TP (Proof (Forall "n" Integer -> Forall "xs" [a] -> Forall "ys" [a] -> SBool))-drop_append = lemmaWith cvc5 "drop_append"-                        (\(Forall n) (Forall xs) (Forall ys) -> drop n (xs ++ ys) .== drop n xs ++ drop (n - length xs) ys)-                        []---- | @length xs == length ys ==> map fst (zip xs ys) = xs@------ >>> runTP $ map_fst_zip @Integer @Integer--- Inductive lemma: map_fst_zip---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4                               Q.E.D.---   Result:                               Q.E.D.--- [Proven] map_fst_zip :: (Ɐxs ∷ [Integer], Ɐys ∷ [Integer]) → Bool-map_fst_zip :: forall a b. (SymVal a, SymVal b) => TP (Proof ((Forall "xs" [a], Forall "ys" [b]) -> SBool))-map_fst_zip = induct "map_fst_zip"-                     (\(Forall xs, Forall ys) -> length xs .== length ys .=> map fst (zip xs ys) .== xs) $-                     \ih (x, xs, y, ys) -> [length (x .: xs) .== length (y .: ys)]-                                        |- map fst (zip (x .: xs) (y .: ys))-                                        =: map fst (tuple (x, y) .: zip xs ys)-                                        =: fst (tuple (x, y)) .: map fst (zip xs ys)-                                        =: x .: map fst (zip xs ys)-                                        ?? ih-                                        =: x .: xs-                                        =: qed---- | @length xs == length ys ==> map snd (zip xs ys) = xs@------ >>> runTP $ map_snd_zip @Integer @Integer--- Inductive lemma: map_snd_zip---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4                               Q.E.D.---   Result:                               Q.E.D.--- [Proven] map_snd_zip :: (Ɐxs ∷ [Integer], Ɐys ∷ [Integer]) → Bool-map_snd_zip :: forall a b. (SymVal a, SymVal b) => TP (Proof ((Forall "xs" [a], Forall "ys" [b]) -> SBool))-map_snd_zip = induct "map_snd_zip"-                     (\(Forall xs, Forall ys) -> length xs .== length ys .=> map snd (zip xs ys) .== ys) $-                     \ih (x, xs, y, ys) -> [length (x .: xs) .== length (y .: ys)]-                                        |- map snd (zip (x .: xs) (y .: ys))-                                        =: map snd (tuple (x, y) .: zip xs ys)-                                        =: snd (tuple (x, y)) .: map snd (zip xs ys)-                                        =: y .: map snd (zip xs ys)-                                        ?? ih-                                        =: y .: ys-                                        =: qed---- | @map fst (zip xs ys) == take (min (length xs) (length ys)) xs@------ >>> runTP $ map_fst_zip_take @Integer @Integer--- Lemma: take_cons                        Q.E.D.--- Inductive lemma: map_fst_zip_take---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4                               Q.E.D.---   Step: 5                               Q.E.D.---   Result:                               Q.E.D.--- [Proven] map_fst_zip_take :: (Ɐxs ∷ [Integer], Ɐys ∷ [Integer]) → Bool-map_fst_zip_take :: forall a b. (SymVal a, SymVal b) => TP (Proof ((Forall "xs" [a], Forall "ys" [b]) -> SBool))-map_fst_zip_take = do-   tc <- take_cons @a--   induct "map_fst_zip_take"-          (\(Forall xs, Forall ys) -> map fst (zip xs ys) .== take (length xs `smin` length ys) xs) $-          \ih (x, xs, y, ys) -> [] |- map fst (zip (x .: xs) (y .: ys))-                                   =: map fst (tuple (x, y) .: zip xs ys)-                                   =: x .: map fst (zip xs ys)-                                   ?? ih-                                   =: x .: take (length xs `smin` length ys) xs-                                   ?? tc-                                   =: take (1 + (length xs `smin` length ys)) (x .: xs)-                                   =: take (length (x .: xs) `smin` length (y .: ys)) (x .: xs)-                                   =: qed---- | @map snd (zip xs ys) == take (min (length xs) (length ys)) xs@------ >>> runTP $ map_snd_zip_take @Integer @Integer--- Lemma: take_cons                        Q.E.D.--- Inductive lemma: map_snd_zip_take---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4                               Q.E.D.---   Step: 5                               Q.E.D.---   Result:                               Q.E.D.--- [Proven] map_snd_zip_take :: (Ɐxs ∷ [Integer], Ɐys ∷ [Integer]) → Bool-map_snd_zip_take :: forall a b. (SymVal a, SymVal b) => TP (Proof ((Forall "xs" [a], Forall "ys" [b]) -> SBool))-map_snd_zip_take = do-   tc <- take_cons @a--   induct "map_snd_zip_take"-          (\(Forall xs, Forall ys) -> map snd (zip xs ys) .== take (length xs `smin` length ys) ys) $-          \ih (x, xs, y, ys) -> [] |- map snd (zip (x .: xs) (y .: ys))-                                   =: map snd (tuple (x, y) .: zip xs ys)-                                   =: y .: map snd (zip xs ys)-                                   ?? ih-                                   =: y .: take (length xs `smin` length ys) ys-                                   ?? tc-                                   =: take (1 + (length xs `smin` length ys)) (y .: ys)-                                   =: take (length (x .: xs) `smin` length (y .: ys)) (y .: ys)-                                   =: qed---- | Count the number of occurrences of an element in a list-count :: SymVal a => SBV a -> SList a -> SInteger-count = smtFunction "count" $ \e l -> ite (null l)-                                          0-                                          (let (x, xs) = uncons l-                                               cxs     = count e xs-                                           in ite (e .== x) (1 + cxs) cxs)---- | Interleave the elements of two lists. If one ends, we take the rest from the other.-interleave :: SymVal a => SList a -> SList a -> SList a-interleave = smtFunction "interleave" (\xs ys -> ite (null  xs) ys (head xs .: interleave ys (tail xs)))---- | Prove that interleave preserves total length.------ The induction here is on the total length of the lists, and hence--- we use the generalized induction principle. We have:------ >>> runTP $ interleaveLen @Integer--- Inductive lemma (strong): interleaveLen---   Step: Measure is non-negative         Q.E.D.---   Step: 1 (2 way full case split)---     Step: 1.1                           Q.E.D.---     Step: 1.2.1                         Q.E.D.---     Step: 1.2.2                         Q.E.D.---     Step: 1.2.3                         Q.E.D.---   Result:                               Q.E.D.--- [Proven] interleaveLen :: Ɐxs ∷ [Integer] → Ɐys ∷ [Integer] → Bool-interleaveLen :: forall a. SymVal a => TP (Proof (Forall "xs" [a] -> Forall "ys" [a] -> SBool))-interleaveLen = sInduct "interleaveLen"-                        (\(Forall xs) (Forall ys) -> length xs + length ys .== length (interleave xs ys))-                        (\xs ys -> length xs + length ys) $-                        \ih xs ys -> [] |- length xs + length ys .== length (interleave xs ys)-                                        =: split xs-                                                 trivial-                                                 (\a as -> length (a .: as) + length ys .== length (interleave (a .: as) ys)-                                                        =: 1 + length as + length ys .== 1 + length (interleave ys as)-                                                        ?? ih `at` (Inst @"xs" ys, Inst @"ys" as)-                                                        =: sTrue-                                                        =: qed)---- | Uninterleave the elements of two lists. We roughly split it into two, of alternating elements.-uninterleave :: SymVal a => SList a -> STuple [a] [a]-uninterleave lst = uninterleaveGen lst (tuple (nil, nil))---- | Generalized form of uninterleave with the auxilary lists made explicit.-uninterleaveGen :: SymVal a => SList a -> STuple [a] [a] -> STuple [a] [a]-uninterleaveGen = smtFunction "uninterleave" (\xs alts -> let (es, os) = untuple alts-                                                          in ite (null xs)-                                                                 (tuple (reverse es, reverse os))-                                                                 (uninterleaveGen (tail xs) (tuple (os, head xs .: es))))---- | The functions 'uninterleave' and 'interleave' are inverses so long as the inputs are of the same length. (The equality--- would even hold if the first argument has one extra element, but we keep things simple here.)------ We have:------ >>> runTP $ interleaveRoundTrip @Integer--- Lemma: revCons                          Q.E.D.--- Inductive lemma (strong): roundTripGen---   Step: Measure is non-negative         Q.E.D.---   Step: 1 (4 way full case split)---     Step: 1.1                           Q.E.D.---     Step: 1.2                           Q.E.D.---     Step: 1.3                           Q.E.D.---     Step: 1.4.1                         Q.E.D.---     Step: 1.4.2                         Q.E.D.---     Step: 1.4.3                         Q.E.D.---     Step: 1.4.4                         Q.E.D.---     Step: 1.4.5                         Q.E.D.---     Step: 1.4.6                         Q.E.D.---     Step: 1.4.7                         Q.E.D.---     Step: 1.4.8                         Q.E.D.---   Result:                               Q.E.D.--- Lemma: interleaveRoundTrip---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Result:                               Q.E.D.--- [Proven] interleaveRoundTrip :: Ɐxs ∷ [Integer] → Ɐys ∷ [Integer] → Bool-interleaveRoundTrip :: forall a. SymVal a => TP (Proof (Forall "xs" [a] -> Forall "ys" [a] -> SBool))-interleaveRoundTrip = do--   revHelper <- lemma "revCons" (\(Forall a) (Forall as) (Forall bs) -> reverse @a (a .: as) ++ bs .== reverse as ++ (a .: bs)) []--   -- Generalize the theorem first to take the helper lists explicitly-   roundTripGen <- sInductWith cvc5-         "roundTripGen"-         (\(Forall @"xs" xs) (Forall @"ys" ys) (Forall @"alts" alts) ->-               length xs .== length ys .=> let (es, os) = untuple alts-                                           in uninterleaveGen (interleave xs ys) alts .== tuple (reverse es ++ xs, reverse os ++ ys))-         (\xs ys _alts -> length xs + length ys) $-         \ih xs ys alts -> [length xs .== length ys]-                        |- let (es, os) = untuple alts-                        in uninterleaveGen (interleave xs ys) alts-                        =: split2 (xs, ys)-                                  trivial-                                  trivial-                                  trivial-                                  (\(a, as) (b, bs) -> uninterleaveGen (interleave (a .: as) (b .: bs)) alts-                                                    =: uninterleaveGen (a .: interleave (b .: bs) as) alts-                                                    =: uninterleaveGen (a .: b .: interleave as bs) alts-                                                    =: uninterleaveGen (interleave as bs) (tuple (a .: es, b .: os))-                                                    ?? ih `at` (Inst @"xs" as, Inst @"ys" bs, Inst @"alts" (tuple (a .: es, b .: os)))-                                                    =: tuple (reverse (a .: es) ++ as, reverse (b .: os) ++ bs)-                                                    ?? revHelper `at` (Inst @"a" a, Inst @"as" es, Inst @"bs" as)-                                                    =: tuple (reverse es ++ (a .: as), reverse (b .: os) ++ bs)-                                                    ?? revHelper `at` (Inst @"a" b, Inst @"as" os, Inst @"bs" bs)-                                                    =: tuple (reverse es ++ (a .: as), reverse os ++ (b .: bs))-                                                    =: tuple (reverse es ++ xs, reverse os ++ ys)-                                                    =: qed)--   -- Round-trip theorem:-   calc "interleaveRoundTrip"-           (\(Forall xs) (Forall ys) -> length xs .== length ys .=> uninterleave (interleave xs ys) .== tuple (xs, ys)) $-           \xs ys -> [length xs .== length ys]-                  |- uninterleave (interleave xs ys)-                  =: uninterleaveGen (interleave xs ys) (tuple (nil, nil))-                  ?? roundTripGen `at` (Inst @"xs" xs, Inst @"ys" ys, Inst @"alts" (tuple (nil, nil)))-                  =: tuple (reverse nil ++ xs, reverse nil ++ ys)-                  =: qed---- | @count e (xs ++ ys) == count e xs + count e ys@------ >>> runTP $ countAppend @Integer--- Inductive lemma: countAppend---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2 (unfold count)                Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4 (simplify)                    Q.E.D.---   Result:                               Q.E.D.--- [Proven] countAppend :: Ɐxs ∷ [Integer] → Ɐys ∷ [Integer] → Ɐe ∷ Integer → Bool-countAppend :: forall a. SymVal a => TP (Proof (Forall "xs" [a] -> Forall "ys" [a] -> Forall "e" a -> SBool))-countAppend =-   induct "countAppend"-          (\(Forall xs) (Forall ys) (Forall e) -> count e (xs ++ ys) .== count e xs + count e ys) $-          \ih (x, xs) ys e -> [] |- count e ((x .: xs) ++ ys)-                                 =: count e (x .: (xs ++ ys))-                                 ?? "unfold count"-                                 =: (let r = count e (xs ++ ys) in ite (e .== x) (1+r) r)-                                 ?? ih `at` (Inst @"ys" ys, Inst @"e" e)-                                 =: (let r = count e xs + count e ys in ite (e .== x) (1+r) r)-                                 ?? "simplify"-                                 =: count e (x .: xs) + count e ys-                                 =: qed---- | @count e (take n xs) + count e (drop n xs) == count e xs@------ >>> runTP $ takeDropCount @Integer--- Inductive lemma: countAppend---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2 (unfold count)                Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4 (simplify)                    Q.E.D.---   Result:                               Q.E.D.--- Lemma: take_drop                        Q.E.D.--- Lemma: takeDropCount---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Result:                               Q.E.D.--- [Proven] takeDropCount :: Ɐxs ∷ [Integer] → Ɐn ∷ Integer → Ɐe ∷ Integer → Bool-takeDropCount :: forall a. SymVal a => TP (Proof (Forall "xs" [a] -> Forall "n" Integer -> Forall "e" a -> SBool))-takeDropCount = do-       capp     <- countAppend @a-       takeDrop <- take_drop   @a--       calc "takeDropCount"-            (\(Forall xs) (Forall n) (Forall e) -> count e (take n xs) + count e (drop n xs) .== count e xs) $-            \xs n e -> [] |- count e (take n xs) + count e (drop n xs)-                          ?? capp `at` (Inst @"xs" (take n xs), Inst @"ys" (drop n xs), Inst @"e" e)-                          =: count e (take n xs ++ drop n xs)-                          ?? takeDrop-                          =: count e xs-                          =: qed---- | @count e xs >= 0@------ >>> runTP $ countNonNeg @Integer--- Inductive lemma: countNonNeg---   Step: Base                            Q.E.D.---   Step: 1 (2 way case split)---     Step: 1.1.1                         Q.E.D.---     Step: 1.1.2                         Q.E.D.---     Step: 1.2.1                         Q.E.D.---     Step: 1.2.2                         Q.E.D.---     Step: 1.Completeness                Q.E.D.---   Result:                               Q.E.D.--- [Proven] countNonNeg :: Ɐxs ∷ [Integer] → Ɐe ∷ Integer → Bool-countNonNeg :: forall a. SymVal a => TP (Proof (Forall "xs" [a] -> Forall "e" a -> SBool))-countNonNeg =-   induct "countNonNeg"-          (\(Forall xs) (Forall e) -> count e xs .>= 0) $-          \ih (x, xs) e -> [] |- count e (x .: xs) .>= 0-                              =: cases [ e .== x ==> 1 + count e xs .>= 0-                                                  ?? ih-                                                  =: sTrue-                                                  =: qed-                                       , e ./= x ==> count e xs .>= 0-                                                  ?? ih-                                                  =: sTrue-                                                  =: qed-                                       ]---- | @e \`elem\` xs ==> count e xs .> 0@------ >>> runTP $ countElem @Integer--- Inductive lemma: countNonNeg---   Step: Base                            Q.E.D.---   Step: 1 (2 way case split)---     Step: 1.1.1                         Q.E.D.---     Step: 1.1.2                         Q.E.D.---     Step: 1.2.1                         Q.E.D.---     Step: 1.2.2                         Q.E.D.---     Step: 1.Completeness                Q.E.D.---   Result:                               Q.E.D.--- Inductive lemma: countElem---   Step: Base                            Q.E.D.---   Step: 1 (2 way case split)---     Step: 1.1.1                         Q.E.D.---     Step: 1.1.2                         Q.E.D.---     Step: 1.2.1                         Q.E.D.---     Step: 1.2.2                         Q.E.D.---     Step: 1.Completeness                Q.E.D.---   Result:                               Q.E.D.--- [Proven] countElem :: Ɐxs ∷ [Integer] → Ɐe ∷ Integer → Bool-countElem :: forall a. (Eq a, SymVal a) => TP (Proof (Forall "xs" [a] -> Forall "e" a -> SBool))-countElem = do--    cnn <- countNonNeg @a--    induct "countElem"-           (\(Forall xs) (Forall e) -> e `elem` xs .=> count e xs .> 0) $-           \ih (x, xs) e -> [e `elem` (x .: xs)]-                         |- count e (x .: xs) .> 0-                         =: cases [ e .== x ==> 1 + count e xs .> 0-                                             ?? cnn-                                             =: sTrue-                                             =: qed-                                  , e ./= x ==> count e xs .> 0-                                             ?? ih-                                             =: sTrue-                                             =: qed-                                  ]---- | @count e xs .> 0 .=> e \`elem\` xs@------ >>> runTP $ elemCount @Integer--- Inductive lemma: elemCount---   Step: Base                            Q.E.D.---   Step: 1 (2 way case split)---     Step: 1.1                           Q.E.D.---     Step: 1.2.1                         Q.E.D.---     Step: 1.2.2                         Q.E.D.---     Step: 1.Completeness                Q.E.D.---   Result:                               Q.E.D.--- [Proven] elemCount :: Ɐxs ∷ [Integer] → Ɐe ∷ Integer → Bool-elemCount :: forall a. (Eq a, SymVal a) => TP (Proof (Forall "xs" [a] -> Forall "e" a -> SBool))-elemCount =-    induct "elemCount"-           (\(Forall xs) (Forall e) -> count e xs .> 0 .=> e `elem` xs) $-           \ih (x, xs) e -> [count e xs .> 0]-                         |- e `elem` (x .: xs)-                         =: cases [ e .== x ==> trivial-                                  , e ./= x ==> e `elem` xs-                                             ?? ih-                                             =: sTrue-                                             =: qed-                                  ]--{- HLint ignore revRev         "Redundant reverse" -}-{- HLint ignore allAny         "Use and"           -}-{- HLint ignore bookKeeping    "Fuse foldr/map"    -}-{- HLint ignore foldrMapFusion "Fuse foldr/map"    -}-{- HLint ignore filterConcat   "Move filter"       -}-{- HLint ignore module         "Use camelCase"     -}-{- HLint ignore module         "Use first"         -}-{- HLint ignore module         "Use second"        -}-{- HLint ignore module         "Use zipWith"       -}-{- HLint ignore mapCompose     "Use map once"      -}-{- HLint ignore tailsAppend    "Avoid lambda"      -}-{- HLint ignore tailsAppend    "Use :"             -}-{- HLint ignore mapReverse     "Evaluate"          -}-{- HLint ignore takeDropWhile  "Evaluate"          -}
Data/SBV/TP/TP.hs view
@@ -7,19 +7,18 @@ -- Stability : experimental ----------------------------------------------------------------------------- -{-# LANGUAGE ConstraintKinds            #-}-{-# LANGUAGE DataKinds                  #-}-{-# LANGUAGE DerivingStrategies         #-}-{-# LANGUAGE FlexibleContexts           #-}-{-# LANGUAGE FlexibleInstances          #-}-{-# LANGUAGE MultiParamTypeClasses      #-}-{-# LANGUAGE NamedFieldPuns             #-}-{-# LANGUAGE ScopedTypeVariables        #-}-{-# LANGUAGE TupleSections              #-}-{-# LANGUAGE TypeAbstractions           #-}-{-# LANGUAGE TypeApplications           #-}-{-# LANGUAGE TypeFamilyDependencies     #-}-{-# LANGUAGE TypeOperators              #-}+{-# LANGUAGE DataKinds              #-}+{-# LANGUAGE FlexibleContexts       #-}+{-# LANGUAGE FlexibleInstances      #-}+{-# LANGUAGE MultiParamTypeClasses  #-}+{-# LANGUAGE NamedFieldPuns         #-}+{-# LANGUAGE OverloadedLists        #-}+{-# LANGUAGE OverloadedStrings      #-}+{-# LANGUAGE ScopedTypeVariables    #-}+{-# LANGUAGE TupleSections          #-}+{-# LANGUAGE TypeApplications       #-}+{-# LANGUAGE TypeFamilyDependencies #-}+{-# LANGUAGE TypeOperators          #-}  {-# OPTIONS_GHC -Wall -Werror #-} @@ -27,16 +26,19 @@          Proposition, Proof, proofOf, assumptionFromProof, Instantiatable(..), Inst(..)        , rootOfTrust, RootOfTrust(..), ProofTree(..), showProofTree, showProofTreeHTML        ,   axiom-       ,   lemma,   lemmaWith-       ,    calc,    calcWith-       ,  induct,  inductWith-       , sInduct, sInductWith+       ,            lemma,          lemmaWith+       ,   inductiveLemma, inductiveLemmaWith+       ,             calc,           calcWith+       ,           induct,         inductWith+       ,          sInduct,        sInductWith        , sorry-       , TP, runTP, runTPWith, tpQuiet, tpRibbon, tpStats, tpAsms, tpCache+       , TP, runTP, runTPWith, tpQuiet, tpStats, tpAsms+       , whenDryRun, unlessDryRun+       , measureLemma, measureLemmaWith        , (|-), (|->), (⊢), (=:), (≡), (??), (∵), split, split2, cases, (==>), (⟹), qed, trivial, contradiction        , qc, qcWith        , disp-       , recall+       , recall, recallWith        ) where  import Data.SBV@@ -44,6 +46,9 @@ import Data.SBV.Core.Data  (SBV(..), SVal(..)) import qualified Data.SBV.Core.Symbolic as S (sObserve) +import qualified Data.Text as T++import Data.SBV.Core.Symbolic (rSkipMeasureChecks, rNoTermCheckFunctions) import Data.SBV.Core.Operations (svEqual) import Data.SBV.Control hiding (getProof, (|->)) @@ -52,9 +57,13 @@  import qualified Data.SBV.List as SL +import Control.Exception (SomeException) import Control.Monad (when) import Control.Monad.Trans (liftIO)+import Data.IORef (readIORef, writeIORef, modifyIORef') +import qualified Data.Set as Set+ import Data.Char  (isSpace) import Data.List  (intercalate, isPrefixOf, isSuffixOf) import Data.Maybe (catMaybes, maybeToList)@@ -70,7 +79,7 @@ import qualified Test.QuickCheck as QC import Test.QuickCheck (quickCheckWithResult) --- | Captures the steps for a calculationa proof+-- | Captures the steps for a calculational proof data CalcStrategy = CalcStrategy { calcIntros     :: SBool                                  , calcProofTree  :: TPProof                                  , calcQCInstance :: [Int] -> Symbolic SBool@@ -93,11 +102,6 @@ getCalcStrategySaturatables :: CalcStrategy -> [SBool] getCalcStrategySaturatables (CalcStrategy calcIntros calcProofTree _calcQCInstance) = calcIntros : proofTreeSaturatables calcProofTree --- | Propagate the settings for ribbon/timing from top to current. Because in any subsequent configuration--- in a lemmaWith, inductWith etc., we just want to change the solver, not the actual settings for TP.-tpMergeCfg :: SMTConfig -> SMTConfig -> SMTConfig-tpMergeCfg cur top = cur{tpOptions = tpOptions top}- -- | Use an injective type family to allow for curried use of calc and strong induction steps. type family StepArgs a t = result | result -> t where   StepArgs                                                                             SBool  t =                                               (SBool, TPProofRaw (SBV t))@@ -162,29 +166,44 @@   {-# MINIMAL calcSteps #-}   calcSteps :: (SymVal t, EqSymbolic (SBV t)) => a -> StepArgs a t -> Symbolic (SBool, CalcStrategy) -  calc         nm p steps = getTPConfig >>= \cfg  -> calcWith          cfg                   nm p steps-  calcWith cfg nm p steps = getTPConfig >>= \cfg' -> calcGeneric False (tpMergeCfg cfg cfg') nm p steps+  calc         nm p steps = getTPConfig >>= \cfg  -> calcWith    cfg                   nm p steps+  calcWith cfg nm p steps = getTPConfig >>= \cfg' -> calcGeneric (tpMergeCfg cfg cfg') nm p steps -  calcGeneric :: (SymVal t, EqSymbolic (SBV t), Proposition a) => Bool -> SMTConfig -> String -> a -> StepArgs a t -> TP (Proof a)-  calcGeneric tagTheorem cfg nm result steps = withProofCache nm $ do-      tpSt <- getTPState-      u    <- tpGetNextUnique+  calcGeneric :: (SymVal t, EqSymbolic (SBV t), Proposition a) => SMTConfig -> String -> a -> StepArgs a t -> TP (Proof a)+  calcGeneric cfg nm result steps = do+      cached <- lookupProofCache result+      case cached of+        Just prf -> returnCachedProof cfg nm prf+        Nothing  -> do+          tpSt <- getTPState+          u    <- tpGetNextUnique -      (_, CalcStrategy {calcQCInstance}) <- liftIO $ runSMTWith cfg (calcSteps result steps)+          (_, CalcStrategy {calcQCInstance}) <- liftIO $ runSMTWith cfg (calcSteps result steps) -      liftIO $ runSMTWith cfg $ do+          proof <- liftIO $ runSMTWith cfg $ do -         qSaturateSavingObservables result -- make sure we saturate the result, i.e., get all it's UI's, types etc. pop out+             qSaturateSavingObservables result -- make sure we saturate the result, i.e., get all it's UI's, types etc. pop out -         message cfg $ (if tagTheorem then "Theorem" else "Lemma") ++ ": " ++ nm ++ "\n"+             let header = "Lemma: " ++ nm+             message cfg $ header ++ "\n"+             liftIO $ do isDry <- readIORef (dryRun tpSt)+                         when isDry $ modifyIORef' (maxRibbon tpSt) (max (length header)) -         (calcGoal, strategy@CalcStrategy {calcIntros, calcProofTree}) <- calcSteps result steps+             (calcGoal, strategy@CalcStrategy {calcIntros, calcProofTree}) <- calcSteps result steps -         -- Collect all subterms and saturate them-         mapM_ qSaturateSavingObservables $ getCalcStrategySaturatables strategy+             -- Collect all subterms and saturate them+             mapM_ qSaturateSavingObservables $ getCalcStrategySaturatables strategy -         query $ proveProofTree cfg tpSt nm (result, calcGoal) calcIntros calcProofTree u calcQCInstance+             -- Run measure checks for any newly encountered recursive functions+             st <- symbolicEnv+             liftIO $ do writeIORef (rSkipMeasureChecks st) True+                         checkNewMeasures cfg st tpSt +             query $ proveProofTree cfg tpSt nm (result, calcGoal) calcIntros calcProofTree u calcQCInstance++          addToProofCache result (proofOf proof)+          pure proof+ -- | In the proof tree, what's the next node label? nextProofStep :: [Int] -> [Int] nextProofStep bs = case reverse bs of@@ -223,24 +242,29 @@ proveProofTree cfg tpSt nm (result, resultBool) initialHypotheses calcProofTree uniq quickCheckInstance = do     results <- walk initialHypotheses 1 ([1], calcProofTree) -    queryDebug [nm ++ ": Proof end: proving the result:"]+    queryDebug [T.pack nm <> ": Proof end: proving the result:"]      mbStartTime <- getTimeStampIf printStats+    st <- symbolicEnv+    noTermFns <- liftIO $ readIORef (rNoTermCheckFunctions st)+    let ntcDeps = map noTermCheckProof (Set.toList noTermFns)     smtProofStep cfg tpSt "Result" 1                  (TPProofStep False nm [] [""])                  (Just (initialHypotheses .=> sAnd results))                  resultBool [] $ \d ->                    do mbElapsed <- getElapsedTime mbStartTime-                      let modulo = concludeModulo (concatMap getHelperProofs (getAllHelpers calcProofTree))+                      let allDeps  = getDependencies calcProofTree ++ ntcDeps+                          modulo   = concludeModulo (concatMap getHelperProofs (getAllHelpers calcProofTree) ++ ntcDeps)                       finishTP cfg ("Q.E.D." ++ modulo) d (catMaybes [mbElapsed]) -                      pure $ Proof $ ProofObj { dependencies = getDependencies calcProofTree+                      pure $ Proof $ ProofObj { dependencies = allDeps                                               , isUserAxiom  = False                                               , getObjProof  = label nm (quantifiedBool result)                                               , getProp      = toDyn result                                               , proofName    = nm                                               , uniqId       = uniq-                                              , isCached     = False+                                              , aliases      = []+                                              , wasCached    = False                                               }    where SMTConfig{tpOptions = TPOptions{printStats, printAsms}} = cfg@@ -354,6 +378,8 @@                         liftIO $ do                             tab <- startTP cfg (verbose cfg) "Step" level (TPProofStep False nm (getHelperText hs') stepName)+                           isDry <- readIORef (dryRun tpSt)+                           when isDry $ modifyIORef' (maxRibbon tpSt) (max tab)                             (mbT, r) <- timeIf printStats $ quickCheckWithResult qcArg{QC.chatty = verbose cfg} $ quickCheckInstance bn @@ -501,7 +527,7 @@  -- | Captures the schema for an inductive proof. Base case might be nothing, to cover strong induction. data InductionStrategy = InductionStrategy { inductionIntros     :: SBool-                                           , inductionMeasure    :: Maybe SBool+                                           , inductionMeasure    :: Maybe (SBool, [ProofObj])                                            , inductionBaseCase   :: Maybe SBool                                            , inductionProofTree  :: TPProof                                            , inductiveStep       :: SBool@@ -518,7 +544,15 @@                                                     inductionProofSteps                                                     inductiveStep                                                     _inductiveQCInstance)-  = inductionIntros : inductiveStep : proofTreeSaturatables inductionProofSteps ++ maybeToList inductionBaseCase ++ maybeToList inductionMeasure+  = inductionIntros+  : inductiveStep+  : proofTreeSaturatables inductionProofSteps+  ++ measureDs+  ++ maybeToList inductionBaseCase+  where objDeps p = getObjProof p : concatMap objDeps (dependencies p)+        measureDs = case inductionMeasure of+                      Nothing      -> []+                      Just (a, ps) -> a : concatMap objDeps ps  -- | A class for doing regular inductive proofs. class Inductive a where@@ -535,106 +569,98 @@    -- partial correctness is guaranteed if non-terminating functions are involved.    inductWith :: (Proposition a, SymVal t, EqSymbolic (SBV t)) => SMTConfig -> String -> a -> (Proof (IHType a) -> IHArg a -> IStepArgs a t) -> TP (Proof a) -   induct         nm p steps = getTPConfig >>= \cfg  -> inductWith                             cfg                   nm p steps-   inductWith cfg nm p steps = getTPConfig >>= \cfg' -> inductionEngine RegularInduction False (tpMergeCfg cfg cfg') nm p (inductionStrategy p steps)+   induct         nm p steps = getTPConfig >>= \cfg  -> inductWith                       cfg                   nm p steps+   inductWith cfg nm p steps = getTPConfig >>= \cfg' -> inductionEngine RegularInduction (tpMergeCfg cfg cfg') nm p (inductionStrategy p steps)     -- | Internal, shouldn't be needed outside the library    {-# MINIMAL inductionStrategy #-}    inductionStrategy :: (Proposition a, SymVal t, EqSymbolic (SBV t)) => a -> (Proof (IHType a) -> IHArg a -> IStepArgs a t) -> Symbolic InductionStrategy --- | A class of values, capturing the zero of a measure value-class OrdSymbolic (SBV a) => Zero a where-  zero :: SBV a---- | An integer as a measure-instance Zero Integer where-   zero = literal 0---- | A tuple of integers as a measure-instance Zero (Integer, Integer) where-  zero = literal (0, 0)---- | A triple of integers as a measure-instance Zero (Integer, Integer, Integer) where-  zero = literal (0, 0, 0)---- | A quadruple of integers as a measure-instance Zero (Integer, Integer, Integer, Integer) where-  zero = literal (0, 0, 0, 0)--instance Zero (Integer, Integer, Integer, Integer, Integer) where-  zero = literal (0, 0, 0, 0, 0)- -- | A class for doing generalized measure based strong inductive proofs. class SInductive a where    -- | Inductively prove a lemma, using measure based induction, using the default config.    -- Inductive proofs over lists only hold for finite lists. We also assume that all functions involved are terminating. SBV does not prove termination, so only    -- partial correctness is guaranteed if non-terminating functions are involved.-   sInduct :: (Proposition a, Zero m, SymVal t, EqSymbolic (SBV t)) => String -> a -> MeasureArgs a m -> (Proof a -> StepArgs a t) -> TP (Proof a)+   sInduct :: (Proposition a, Zero m, SymVal t, EqSymbolic (SBV t)) => String -> a -> (MeasureArgs a m, [ProofObj]) -> (Proof a -> StepArgs a t) -> TP (Proof a)     -- | Same as 'sInduct', but with the given solver configuration.    -- Inductive proofs over lists only hold for finite lists. We also assume that all functions involved are terminating. SBV does not prove termination, so only    -- partial correctness is guaranteed if non-terminating functions are involved.-   sInductWith :: (Proposition a, Zero m, SymVal t, EqSymbolic (SBV t)) => SMTConfig -> String -> a -> MeasureArgs a m -> (Proof a -> StepArgs a t) -> TP (Proof a)+   sInductWith :: (Proposition a, Zero m, SymVal t, EqSymbolic (SBV t)) => SMTConfig -> String -> a -> (MeasureArgs a m, [ProofObj]) -> (Proof a -> StepArgs a t) -> TP (Proof a) -   sInduct         nm p m steps = getTPConfig >>= \cfg  -> sInductWith                            cfg                   nm p m steps-   sInductWith cfg nm p m steps = getTPConfig >>= \cfg' -> inductionEngine GeneralInduction False (tpMergeCfg cfg cfg') nm p (sInductionStrategy p m steps)+   sInduct         nm p mhs steps = getTPConfig >>= \cfg  -> sInductWith                      cfg                   nm p mhs steps+   sInductWith cfg nm p mhs steps = getTPConfig >>= \cfg' -> inductionEngine GeneralInduction (tpMergeCfg cfg cfg') nm p (sInductionStrategy p mhs steps)     -- | Internal, shouldn't be needed outside the library    {-# MINIMAL sInductionStrategy #-}-   sInductionStrategy :: (Proposition a, Zero m, SymVal t, EqSymbolic (SBV t)) => a -> MeasureArgs a m -> (Proof a -> StepArgs a t) -> Symbolic InductionStrategy+   sInductionStrategy :: (Proposition a, Zero m, SymVal t, EqSymbolic (SBV t)) => a -> (MeasureArgs a m, [ProofObj]) -> (Proof a -> StepArgs a t) -> Symbolic InductionStrategy  -- | Do an inductive proof, based on the given strategy-inductionEngine :: Proposition a => InductionStyle -> Bool -> SMTConfig -> String -> a -> Symbolic InductionStrategy -> TP (Proof a)-inductionEngine style tagTheorem cfg nm result getStrategy = withProofCache nm $ do-   tpSt <- getTPState-   u    <- tpGetNextUnique+inductionEngine :: Proposition a => InductionStyle -> SMTConfig -> String -> a -> Symbolic InductionStrategy -> TP (Proof a)+inductionEngine style cfg nm result getStrategy = do+   cached <- lookupProofCache result+   case cached of+     Just prf -> returnCachedProof cfg nm prf+     Nothing -> do+       tpSt <- getTPState+       u    <- tpGetNextUnique -   liftIO $ runSMTWith cfg $ do+       proof <- liftIO $ runSMTWith cfg $ do -      qSaturateSavingObservables result -- make sure we saturate the result, i.e., get all it's UI's, types etc. pop out+          qSaturateSavingObservables result -- make sure we saturate the result, i.e., get all it's UI's, types etc. pop out -      let qual = case style of-                   RegularInduction -> ""-                   GeneralInduction  -> " (strong)"+          let qual = case style of+                       RegularInduction -> ""+                       GeneralInduction  -> " (strong)" -      message cfg $ "Inductive " ++ (if tagTheorem then "theorem" else "lemma") ++ qual ++ ": " ++ nm ++ "\n"+          let header = "Inductive lemma" ++ qual ++ ": " ++ nm+          message cfg $ header ++ "\n"+          liftIO $ do isDry <- readIORef (dryRun tpSt)+                      when isDry $ modifyIORef' (maxRibbon tpSt) (max (length header)) -      strategy@InductionStrategy { inductionIntros-                                 , inductionMeasure-                                 , inductionBaseCase-                                 , inductionProofTree-                                 , inductiveStep-                                 , inductiveQCInstance-                                 } <- getStrategy+          strategy@InductionStrategy { inductionIntros+                                     , inductionMeasure+                                     , inductionBaseCase+                                     , inductionProofTree+                                     , inductiveStep+                                     , inductiveQCInstance+                                     } <- getStrategy -      mapM_ qSaturateSavingObservables $ getInductionStrategySaturatables strategy+          mapM_ qSaturateSavingObservables $ getInductionStrategySaturatables strategy -      query $ do+          -- Run measure checks for any newly encountered recursive functions+          st <- symbolicEnv+          liftIO $ do writeIORef (rSkipMeasureChecks st) True+                      checkNewMeasures cfg st tpSt -       case inductionMeasure of-          Nothing -> queryDebug [nm ++ ": Induction" ++ qual ++ ", there is no custom measure to show non-negativeness."]-          Just ms -> do queryDebug [nm ++ ": Induction, proving measure is always non-negative:"]-                        smtProofStep cfg tpSt "Step" 1-                                              (TPProofStep False nm [] ["Measure is non-negative"])-                                              (Just inductionIntros)-                                              ms-                                              []-                                              (\d -> finishTP cfg "Q.E.D." d [])-       case inductionBaseCase of-          Nothing -> queryDebug [nm ++ ": Induction" ++ qual ++ ", there is no base case to prove."]-          Just bc -> do queryDebug [nm ++ ": Induction, proving base case:"]-                        smtProofStep cfg tpSt "Step" 1-                                              (TPProofStep False nm [] ["Base"])-                                              (Just inductionIntros)-                                              bc-                                              []-                                              (\d -> finishTP cfg "Q.E.D." d [])+          query $ do -       proveProofTree cfg tpSt nm (result, inductiveStep) inductionIntros inductionProofTree u inductiveQCInstance+           case inductionMeasure of+              Nothing      -> queryDebug [T.pack nm <> ": Induction" <> T.pack qual <> ", there is no custom measure to show non-negativeness."]+              Just (m, hs) -> do queryDebug [T.pack nm <> ": Induction, proving measure is always non-negative:"]+                                 smtProofStep cfg tpSt "Step" 1+                                                       (TPProofStep False nm [] ["Measure is non-negative"])+                                                       (Just (sAnd (inductionIntros : map getObjProof hs)))+                                                       m+                                                       []+                                                       (\d -> finishTP cfg "Q.E.D." d [])+           case inductionBaseCase of+              Nothing -> queryDebug [T.pack nm <> ": Induction" <> T.pack qual <> ", there is no base case to prove."]+              Just bc -> do queryDebug [T.pack nm <> ": Induction, proving base case:"]+                            smtProofStep cfg tpSt "Step" 1+                                                  (TPProofStep False nm [] ["Base"])+                                                  (Just inductionIntros)+                                                  bc+                                                  []+                                                  (\d -> finishTP cfg "Q.E.D." d []) +           proveProofTree cfg tpSt nm (result, inductiveStep) inductionIntros inductionProofTree u inductiveQCInstance++       addToProofCache result (proofOf proof)+       pure proof+ -- Induction strategy helper-mkIndStrategy :: (SymVal a, EqSymbolic (SBV a)) => Maybe SBool -> Maybe SBool -> (SBool, TPProofRaw (SBV a)) -> SBool -> ([Int] -> Symbolic SBool) -> Symbolic InductionStrategy+mkIndStrategy :: (SymVal a, EqSymbolic (SBV a)) => Maybe (SBool, [ProofObj]) -> Maybe SBool -> (SBool, TPProofRaw (SBV a)) -> SBool -> ([Int] -> Symbolic SBool) -> Symbolic InductionStrategy mkIndStrategy mbMeasure mbBaseCase indSteps step indQCInstance = do         CalcStrategy { calcIntros, calcProofTree, calcQCInstance } <- mkCalcSteps indSteps indQCInstance         pure $ InductionStrategy { inductionIntros     = calcIntros@@ -797,7 +823,7 @@   inductionStrategy result steps = do        (x, xs, nx, nxs, nxxs) <- mkLVar (Proxy @nxs) -       let bc = result (Forall SL.nil)+       let bc = result (Forall [])            ih = internalAxiom "IH" (result (Forall xs))         mkIndStrategy Nothing@@ -815,7 +841,7 @@        (x, xs, nx, nxs, nxxs) <- mkLVar (Proxy @nxs)        (a, na)                <- mkVar  (Proxy @na) -       let bc = result (Forall SL.nil) (Forall a)+       let bc = result (Forall []) (Forall a)            ih = internalAxiom "IH" (\(Forall a' :: Forall na a) -> result (Forall xs) (Forall a'))         mkIndStrategy Nothing@@ -834,7 +860,7 @@        (a, na)                <- mkVar  (Proxy @na)        (b, nb)                <- mkVar  (Proxy @nb) -       let bc = result (Forall SL.nil) (Forall a) (Forall b)+       let bc = result (Forall []) (Forall a) (Forall b)            ih = internalAxiom "IH" (\(Forall a' :: Forall na a) (Forall b' :: Forall nb b) -> result (Forall xs) (Forall a') (Forall b'))         mkIndStrategy Nothing@@ -854,7 +880,7 @@        (b, nb)                <- mkVar  (Proxy @nb)        (c, nc)                <- mkVar  (Proxy @nc) -       let bc = result (Forall SL.nil) (Forall a) (Forall b) (Forall c)+       let bc = result (Forall []) (Forall a) (Forall b) (Forall c)            ih = internalAxiom "IH" (\(Forall a' :: Forall na a) (Forall b' :: Forall nb b) (Forall c' :: Forall nc c) -> result (Forall xs) (Forall a') (Forall b') (Forall c'))         mkIndStrategy Nothing@@ -875,7 +901,7 @@        (c, nc)                <- mkVar  (Proxy @nc)        (d, nd)                <- mkVar  (Proxy @nd) -       let bc = result (Forall SL.nil) (Forall a) (Forall b) (Forall c) (Forall d)+       let bc = result (Forall []) (Forall a) (Forall b) (Forall c) (Forall d)            ih = internalAxiom "IH" (\(Forall a' :: Forall na a) (Forall b' :: Forall nb b) (Forall c' :: Forall nc c) (Forall d' :: Forall nd d) -> result (Forall xs) (Forall a') (Forall b') (Forall c') (Forall d'))         mkIndStrategy Nothing@@ -897,7 +923,7 @@        (d, nd)                <- mkVar  (Proxy @nd)        (e, ne)                <- mkVar  (Proxy @ne) -       let bc = result (Forall SL.nil) (Forall a) (Forall b) (Forall c) (Forall d) (Forall e)+       let bc = result (Forall []) (Forall a) (Forall b) (Forall c) (Forall d) (Forall e)            ih = internalAxiom "IH" (\(Forall a' :: Forall na a) (Forall b' :: Forall nb b) (Forall c' :: Forall nc c) (Forall d' :: Forall nd d) (Forall e' :: Forall ne e) -> result (Forall xs) (Forall a') (Forall b') (Forall c') (Forall d') (Forall e'))         mkIndStrategy Nothing@@ -915,7 +941,7 @@        (x, xs, nx, nxs, nxxs) <- mkLVar (Proxy @nxs)        (y, ys, ny, nys, nyys) <- mkLVar (Proxy @nys) -       let bc = result (Forall SL.nil, Forall SL.nil) .&& result (Forall SL.nil, Forall (y SL..: ys)) .&& result (Forall (x SL..: xs), Forall SL.nil)+       let bc = result (Forall [], Forall []) .&& result (Forall [], Forall (y SL..: ys)) .&& result (Forall (x SL..: xs), Forall [])            ih = internalAxiom "IH" (result (Forall xs, Forall ys))         mkIndStrategy Nothing@@ -934,7 +960,7 @@        (y, ys, ny, nys, nyys) <- mkLVar (Proxy @nys)        (a, na)                <- mkVar  (Proxy @na) -       let bc = result (Forall SL.nil, Forall SL.nil) (Forall a) .&& result (Forall SL.nil, Forall (y SL..: ys)) (Forall a) .&& result (Forall (x SL..: xs), Forall SL.nil) (Forall a)+       let bc = result (Forall [], Forall []) (Forall a) .&& result (Forall [], Forall (y SL..: ys)) (Forall a) .&& result (Forall (x SL..: xs), Forall []) (Forall a)            ih = internalAxiom "IH" (\(Forall a' :: Forall na a) -> result (Forall xs, Forall ys) (Forall a'))         mkIndStrategy Nothing@@ -954,7 +980,7 @@        (a, na)                <- mkVar  (Proxy @na)        (b, nb)                <- mkVar  (Proxy @nb) -       let bc = result (Forall SL.nil, Forall SL.nil) (Forall a) (Forall b) .&& result (Forall SL.nil, Forall (y SL..: ys)) (Forall a) (Forall b) .&& result (Forall (x SL..: xs), Forall SL.nil) (Forall a) (Forall b)+       let bc = result (Forall [], Forall []) (Forall a) (Forall b) .&& result (Forall [], Forall (y SL..: ys)) (Forall a) (Forall b) .&& result (Forall (x SL..: xs), Forall []) (Forall a) (Forall b)            ih = internalAxiom "IH" (\(Forall a' :: Forall na a) (Forall b' :: Forall nb b) -> result (Forall xs, Forall ys) (Forall a') (Forall b'))         mkIndStrategy Nothing@@ -975,7 +1001,7 @@        (b, nb)                <- mkVar  (Proxy @nb)        (c, nc)                <- mkVar  (Proxy @nc) -       let bc = result (Forall SL.nil, Forall SL.nil) (Forall a) (Forall b) (Forall c) .&& result (Forall SL.nil, Forall (y SL..: ys)) (Forall a) (Forall b) (Forall c) .&& result (Forall (x SL..: xs), Forall SL.nil) (Forall a) (Forall b) (Forall c)+       let bc = result (Forall [], Forall []) (Forall a) (Forall b) (Forall c) .&& result (Forall [], Forall (y SL..: ys)) (Forall a) (Forall b) (Forall c) .&& result (Forall (x SL..: xs), Forall []) (Forall a) (Forall b) (Forall c)            ih = internalAxiom "IH" (\(Forall a' :: Forall na a) (Forall b' :: Forall nb b) (Forall c' :: Forall nc c) -> result (Forall xs, Forall ys) (Forall a') (Forall b') (Forall c'))         mkIndStrategy Nothing@@ -997,7 +1023,7 @@        (c, nc)                <- mkVar  (Proxy @nc)        (d, nd)                <- mkVar  (Proxy @nd) -       let bc = result (Forall SL.nil, Forall SL.nil) (Forall a) (Forall b) (Forall c) (Forall d) .&& result (Forall SL.nil, Forall (y SL..: ys)) (Forall a) (Forall b) (Forall c) (Forall d) .&& result (Forall (x SL..: xs), Forall SL.nil) (Forall a) (Forall b) (Forall c) (Forall d)+       let bc = result (Forall [], Forall []) (Forall a) (Forall b) (Forall c) (Forall d) .&& result (Forall [], Forall (y SL..: ys)) (Forall a) (Forall b) (Forall c) (Forall d) .&& result (Forall (x SL..: xs), Forall []) (Forall a) (Forall b) (Forall c) (Forall d)            ih = internalAxiom "IH" (\(Forall a' :: Forall na a) (Forall b' :: Forall nb b) (Forall c' :: Forall nc c) (Forall d' :: Forall nd d) -> result (Forall xs, Forall ys) (Forall a') (Forall b') (Forall c') (Forall d'))         mkIndStrategy Nothing@@ -1020,7 +1046,7 @@        (d, nd)                <- mkVar  (Proxy @nd)        (e, ne)                <- mkVar  (Proxy @ne) -       let bc = result (Forall SL.nil, Forall SL.nil) (Forall a) (Forall b) (Forall c) (Forall d) (Forall e) .&& result (Forall SL.nil, Forall (y SL..: ys)) (Forall a) (Forall b) (Forall c) (Forall d) (Forall e) .&& result (Forall (x SL..: xs), Forall SL.nil) (Forall a) (Forall b) (Forall c) (Forall d) (Forall e)+       let bc = result (Forall [], Forall []) (Forall a) (Forall b) (Forall c) (Forall d) (Forall e) .&& result (Forall [], Forall (y SL..: ys)) (Forall a) (Forall b) (Forall c) (Forall d) (Forall e) .&& result (Forall (x SL..: xs), Forall []) (Forall a) (Forall b) (Forall c) (Forall d) (Forall e)            ih = internalAxiom "IH" (\(Forall a' :: Forall na a) (Forall b' :: Forall nb b) (Forall c' :: Forall nc c) (Forall d' :: Forall nd d) (Forall e' :: Forall ne e) -> result (Forall xs, Forall ys) (Forall a') (Forall b') (Forall c') (Forall d') (Forall e'))         mkIndStrategy Nothing@@ -1031,13 +1057,13 @@  -- | Generalized induction with one parameter instance (KnownSymbol na, SymVal a) => SInductive (Forall na a -> SBool) where-  sInductionStrategy result measure steps = do+  sInductionStrategy result (measure, helpers) steps = do       (a, na) <- mkVar (Proxy @na)        let ih   = internalAxiom "IH" (\(Forall a' :: Forall na a) -> measure a' .< measure a .=> result (Forall a'))           conc = result (Forall a) -      mkIndStrategy (Just (measure a .>= zero))+      mkIndStrategy (Just (nonNeg (measure a), helpers))                     Nothing                     (steps ih a)                     (indResult [na] conc)@@ -1045,14 +1071,14 @@  -- | Generalized induction with two parameters instance (KnownSymbol na, SymVal a, KnownSymbol nb, SymVal b) => SInductive (Forall na a -> Forall nb b -> SBool) where-  sInductionStrategy result measure steps = do+  sInductionStrategy result (measure, helpers) steps = do       (a, na) <- mkVar (Proxy @na)       (b, nb) <- mkVar (Proxy @nb)        let ih   = internalAxiom "IH" (\(Forall a' :: Forall na a) (Forall b' :: Forall nb b) -> measure a' b' .< measure a b .=> result (Forall a') (Forall b'))           conc = result (Forall a) (Forall b) -      mkIndStrategy (Just (measure a b .>= zero))+      mkIndStrategy (Just (nonNeg (measure a b), helpers))                     Nothing                     (steps ih a b)                     (indResult [na, nb] conc)@@ -1060,7 +1086,7 @@  -- | Generalized induction with three parameters instance (KnownSymbol na, SymVal a, KnownSymbol nb, SymVal b, KnownSymbol nc, SymVal c) => SInductive (Forall na a -> Forall nb b -> Forall nc c -> SBool) where-  sInductionStrategy result measure steps = do+  sInductionStrategy result (measure, helpers) steps = do       (a, na) <- mkVar (Proxy @na)       (b, nb) <- mkVar (Proxy @nb)       (c, nc) <- mkVar (Proxy @nc)@@ -1068,7 +1094,7 @@       let ih   = internalAxiom "IH" (\(Forall a' :: Forall na a) (Forall b' :: Forall nb b) (Forall c' :: Forall nc c) -> measure a' b' c' .< measure a b c .=> result (Forall a') (Forall b') (Forall c'))           conc = result (Forall a) (Forall b) (Forall c) -      mkIndStrategy (Just (measure a b c .>= zero))+      mkIndStrategy (Just (nonNeg (measure a b c), helpers))                     Nothing                     (steps ih a b c)                     (indResult [na, nb, nc] conc)@@ -1076,7 +1102,7 @@  -- | Generalized induction with four parameters instance (KnownSymbol na, SymVal a, KnownSymbol nb, SymVal b, KnownSymbol nc, SymVal c, KnownSymbol nd, SymVal d) => SInductive (Forall na a -> Forall nb b -> Forall nc c -> Forall nd d -> SBool) where-  sInductionStrategy result measure steps = do+  sInductionStrategy result (measure, helpers) steps = do       (a, na) <- mkVar (Proxy @na)       (b, nb) <- mkVar (Proxy @nb)       (c, nc) <- mkVar (Proxy @nc)@@ -1085,7 +1111,7 @@       let ih   = internalAxiom "IH" (\(Forall a' :: Forall na a) (Forall b' :: Forall nb b) (Forall c' :: Forall nc c) (Forall d' :: Forall nd d) -> measure a' b' c' d' .< measure a b c d .=> result (Forall a') (Forall b') (Forall c') (Forall d'))           conc = result (Forall a) (Forall b) (Forall c) (Forall d) -      mkIndStrategy (Just (measure a b c d .>= zero))+      mkIndStrategy (Just (nonNeg (measure a b c d), helpers))                     Nothing                     (steps ih a b c d)                     (indResult [na, nb, nc, nd] conc)@@ -1093,7 +1119,7 @@  -- | Generalized induction with five parameters instance (KnownSymbol na, SymVal a, KnownSymbol nb, SymVal b, KnownSymbol nc, SymVal c, KnownSymbol nd, SymVal d, KnownSymbol ne, SymVal e) => SInductive (Forall na a -> Forall nb b -> Forall nc c -> Forall nd d -> Forall ne e -> SBool) where-  sInductionStrategy result measure steps = do+  sInductionStrategy result (measure, helpers) steps = do       (a, na) <- mkVar (Proxy @na)       (b, nb) <- mkVar (Proxy @nb)       (c, nc) <- mkVar (Proxy @nc)@@ -1103,7 +1129,7 @@       let ih   = internalAxiom "IH" (\(Forall a' :: Forall na a) (Forall b' :: Forall nb b) (Forall c' :: Forall nc c) (Forall d' :: Forall nd d) (Forall e' :: Forall ne e) -> measure a' b' c' d' e' .< measure a b c d e .=> result (Forall a') (Forall b') (Forall c') (Forall d') (Forall e'))           conc = result (Forall a) (Forall b) (Forall c) (Forall d) (Forall e) -      mkIndStrategy (Just (measure a b c d e .>= zero))+      mkIndStrategy (Just (nonNeg (measure a b c d e), helpers))                     Nothing                     (steps ih a b c d e)                     (indResult [na, nb, nc, nd, ne] conc)@@ -1516,18 +1542,42 @@ (⟹) = (==>) infix 0 ⟹ --- | Recalling a proof. This essentially sets the verbose output off during this proof. Note that--- if we're doing stats, we ignore this as the whole point of doing stats is to see steps in detail.-recall :: String -> TP (Proof a) -> TP (Proof a)-recall nm prf = do-  cfg <- getTPConfig-  if printStats (tpOptions cfg)-     then prf-     else do tab <- liftIO $ startTP cfg (verbose cfg) "Lemma" 0 (TPProofOneShot nm [])-             setTPConfig cfg{tpOptions = (tpOptions cfg) {quiet = True}}-             r@Proof{proofOf = ProofObj{dependencies}} <- prf-             setTPConfig cfg-             liftIO $ finishTP cfg ("Q.E.D." ++ concludeModulo dependencies) (tab, Nothing) []-             pure r+-- | Recalling a proof. If the proposition was previously proved and cached, the cached result+-- is returned without re-proving. The output is kept brief: a single "Q.E.D." line.+-- If stats mode is on, we show the full proof steps as the point of stats is to see detail.+recall :: TP (Proof a) -> TP (Proof a)+recall prf = getTPConfig >>= \cfg -> recallWith cfg prf -{- HLint ignore module "Eta reduce" -}+-- | Recalling a proof, using a given config. Sets the recall context flag so that+-- proof engines check the cache before proving.+recallWith :: SMTConfig -> TP (Proof a) -> TP (Proof a)+recallWith cfgIn prf = do+  topCfg <- getTPConfig+  tpSt   <- getTPState+  let cfg@SMTConfig{tpOptions = TPOptions{printStats}} = cfgIn `tpMergeCfg` topCfg+  -- Set recall context so proof engines check the cache+  liftIO $ modifyIORef' (inRecallContext tpSt) (+1)+  let cleanup = liftIO $ modifyIORef' (inRecallContext tpSt) (subtract 1)+  if printStats+     then restoring cfg topCfg $ do r <- prf+                                    cleanup+                                    pure r+     else do let new = cfg{tpOptions = (tpOptions cfg) {quiet = True}}+             restoring new topCfg $ do+                 res <- tryTP prf+                 cleanup+                 case res of+                   Left (_ :: SomeException) ->+                     -- Re-run with original config so failure details are visible+                     restoring cfg topCfg prf >> pure (error "unreachable")+                   Right r@Proof{proofOf = po@ProofObj{dependencies, aliases = aka, wasCached = cached}} -> do+                     let nm = proofName po+                     liftIO $ printLemmaResult cfg (verbose cfg) nm dependencies cached aka+                     pure r+ where restoring new old act = do setTPConfig new+                                  res <- act+                                  setTPConfig old+                                  pure res++{- HLint ignore module "Eta reduce"         -}+{- HLint ignore module "Reduce duplication" -}
Data/SBV/TP/Utils.hs view
@@ -23,17 +23,22 @@ {-# OPTIONS_GHC -Wall -Werror #-}  module Data.SBV.TP.Utils (-         TP, runTP, runTPWith, Proof(..), ProofObj(..), assumptionFromProof, sorry, quickCheckProof+         TP, runTP, runTPWith, tryTP, whenDryRun, unlessDryRun, Proof(..), ProofObj(..), assumptionFromProof, sorry, quickCheckProof, noTermCheckProof        , startTP, finishTP, getTPState, getTPConfig, setTPConfig, tpGetNextUnique, TPState(..), TPStats(..), RootOfTrust(..)-       , TPProofContext(..), message, updStats, rootOfTrust, concludeModulo-       , ProofTree(..), TPUnique(..), showProofTree, showProofTreeHTML, shortProofName-       , withProofCache-       , tpQuiet, tpRibbon, tpAsms, tpStats, tpCache+       , TPProofContext(..), message, updStats, rootOfTrust, concludeModulo, printLemmaResult+       , ProofTree(..), TPUnique(..), showProofTree, showProofTreeHTML+       , addToProofCache, lookupProofCache, returnCachedProof+       , tpQuiet, tpAsms, tpStats+       , measureLemma, measureLemmaWith        ) where -import Control.Monad.Reader (ReaderT, runReaderT, MonadReader, ask, liftIO)+import Control.Exception    (Exception, try)+import Control.Monad        (unless, when)+import Control.Monad.Reader (ReaderT(..), runReaderT, MonadReader, ask, liftIO) import Control.Monad.Trans  (MonadIO) +import Data.Generics (everywhere, mkT)+ import Data.Time (NominalDiffTime)  import Data.Tree@@ -43,7 +48,7 @@ import Data.Typeable (typeOf, TypeRep)  import Data.Char (isSpace)-import Data.List (intercalate, isPrefixOf, isSuffixOf, isInfixOf, nubBy, partition, sort)+import Data.List (intercalate, isPrefixOf, isSuffixOf, isInfixOf, nub, sort, dropWhileEnd) import Data.Int  (Int64)  import Data.SBV.Utils.Lib (unQuote)@@ -51,57 +56,137 @@ import System.IO     (hFlush, stdout) import System.Random (randomIO) -import Data.SBV.Core.Data      (SBool, Forall(..), quantifiedBool)-import Data.SBV.Core.Model     (label)-import Data.SBV.Core.Symbolic  (SMTConfig, TPOptions(..))+import Data.SBV.Core.Data      (SBool, sTrue, Forall(..), QuantifiedBool, quantifiedBool, SBV(..), SV(..), NodeId(..), SBVExpr(..), SBVPgm(..), Op(..), CV(..))+import Data.SBV.Core.Model     (label, MeasureHelper(..))+import Data.SBV.Core.Symbolic  (SMTConfig, TPOptions(..), State(..), mkNewState, svToSV, SBVRunMode(..), globalSBVContext) import Data.SBV.Provers.Prover (defaultSMTCfg, SMTConfig(..))  import Data.SBV.Utils.TDiff (showTDiff, timeIf) import Control.DeepSeq (NFData(rnf)) +import Data.Foldable (toList) import Data.IORef  import GHC.Generics import Data.Dynamic -import qualified Data.Map as Map-import Data.Map (Map)+import qualified Data.Map.Strict as Map +import qualified Data.Set as Set+import Data.Set (Set)+ -- | Various statistics we collect-data TPStats = TPStats { noOfCheckSats :: Int-                       , solverElapsed :: NominalDiffTime-                       , qcElapsed     :: NominalDiffTime+data TPStats = TPStats { noOfCheckSats :: !Int+                       , solverElapsed :: !NominalDiffTime+                       , qcElapsed     :: !NominalDiffTime                        }  -- | Extra state we carry in a TP context-data TPState = TPState { stats      :: IORef TPStats-                       , proofCache :: IORef (Map (String, TypeRep) ProofObj)-                       , config     :: IORef SMTConfig+data TPState = TPState { stats               :: IORef TPStats+                       , proofCache          :: IORef (Map.Map (PropFingerprint, TypeRep) [ProofObj])+                       , config              :: IORef SMTConfig+                       , inRecallContext     :: IORef Int+                       , measuresVerified    :: IORef (Set String)+                       , productiveVerified  :: IORef (Set String)+                       , measuresEncountered :: IORef (Set String)+                       , dryRun              :: IORef Bool    -- ^ If True, collecting ribbon widths (no proving)+                       , maxRibbon           :: IORef Int     -- ^ Session-wide maximum ribbon length                        }  -- | Monad for running TP proofs in. newtype TP a = TP (ReaderT TPState IO a)             deriving newtype (Applicative, Functor, Monad, MonadIO, MonadReader TPState, MonadFail) --- | If caches are enabled, see if we cached this proof and return it; otherwise generate it, cache it, and return it-withProofCache :: forall a. Typeable a => String -> TP (Proof a) -> TP (Proof a)-withProofCache nm genProof = do-  TPState{proofCache, config} <- getTPState-  cfg@SMTConfig {tpOptions = TPOptions {cacheProofs}} <- liftIO $ readIORef config+-- | Run a TP action, catching exceptions.+tryTP :: Exception e => TP a -> TP (Either e a)+tryTP (TP act) = TP $ ReaderT $ \st -> try (runReaderT act st) -  let key = (nm, typeOf (Proxy @a))+-- | Run an action only during the dry-run pass.+whenDryRun :: TP () -> TP ()+whenDryRun act = do st <- ask+                    isDry <- liftIO $ readIORef (dryRun st)+                    when isDry act -  if not cacheProofs-     then genProof-     else do cache <- liftIO $ readIORef proofCache-             case key `Map.lookup` cache of-               Just prf -> do liftIO $ do tab <- startTP cfg False "Cached" 0 (TPProofOneShot nm [])-                                          finishTP cfg "Q.E.D." (tab, Nothing) []-                              pure $ Proof prf{isCached = True}-               Nothing  -> do p <- genProof-                              liftIO $ modifyIORef' proofCache (Map.insert key (proofOf p))-                              pure p+-- | Run an action only during the real (non-dry-run) pass. Useful for guarding user-facing output+-- (e.g., proof tree printing) that should be suppressed during ribbon calculation.+unlessDryRun :: TP () -> TP ()+unlessDryRun act = do st <- ask+                      isDry <- liftIO $ readIORef (dryRun st)+                      unless isDry act +-- | Extract the integer node ID from an SV.+svIntId :: SV -> Int+svIntId (SV _ (NodeId (_, _, i))) = i++-- | Zero out the SBVContext in an SV, keeping only the kind and integer node ID.+-- Used to normalize 'Op' values for fingerprinting.+zeroSV :: SV -> SV+zeroSV (SV k (NodeId (_, mb, i))) = SV k (NodeId (globalSBVContext, mb, i))++-- | Zero out all embedded SBVContext values inside an 'Op' using SYB generic traversal.+-- This automatically handles all current and future Op constructors that embed SV's.+zeroContextInOp :: Op -> Op+zeroContextInOp = everywhere (mkT zeroSV)++-- | Fingerprint of a proposition's symbolic expression DAG.+-- Computed by evaluating 'quantifiedBool' in a fresh State and extracting+-- the expression program (with embedded SV contexts zeroed out via SYB),+-- the constant map (mapping constant values to their SV int IDs), and the final result SV.+-- Two identical propositions evaluated in identically-initialized States produce+-- identical fingerprints. Different propositions diverge somewhere in variable creation,+-- expression construction, or hash-consing, producing different fingerprints.+newtype PropFingerprint = PropFingerprint ([(CV, Int)], [(Int, Op, [Int])], Int)+  deriving (Eq, Ord)++-- | Compute the fingerprint of a proposition by evaluating it in a fresh+-- lightweight State (no solver connection needed). The State is created via+-- 'mkNewState' with 'LambdaGen' mode, which initializes all counters identically+-- without starting a solver process.+propFingerprint :: QuantifiedBool a => a -> IO PropFingerprint+propFingerprint prop = do+  st  <- mkNewState defaultSMTCfg (LambdaGen Nothing)+  sv  <- svToSV st (unSBV (quantifiedBool prop))+  pgm <- readIORef (spgm st)+  cm  <- readIORef (rconstMap st)+  let entries = [ (svIntId target, zeroContextInOp op, map svIntId args)+                | (target, SBVApp op args) <- toList (pgmAssignments pgm)+                ]+      consts  = [(c, svIntId s) | (c, s) <- Map.toAscList cm]+  pure $ PropFingerprint (consts, entries, svIntId sv)++-- | After proving a proposition, add the proof to the cache for future recall lookups.+addToProofCache :: forall a. (Typeable a, QuantifiedBool a) => a -> ProofObj -> TP ()+addToProofCache prop prf = do+  TPState{proofCache} <- getTPState+  fp <- liftIO $ propFingerprint prop+  let key = (fp, typeOf (Proxy @a))+  liftIO $ modifyIORef' proofCache $ Map.insertWith (\_ old -> prf : old) key [prf]++-- | Look up a cached proof for the given proposition. Only succeeds when in recall context+-- (i.e., called from within a recall wrapper). On cache hit, the returned ProofObj has+-- its 'aliases' field populated with the names of other proofs of the same proposition.+lookupProofCache :: forall a. (Typeable a, QuantifiedBool a) => a -> TP (Maybe ProofObj)+lookupProofCache prop = do+  TPState{proofCache, inRecallContext} <- getTPState+  inRecall <- liftIO $ readIORef inRecallContext+  if inRecall == 0+     then pure Nothing+     else do fp <- liftIO $ propFingerprint prop+             let key = (fp, typeOf (Proxy @a))+             cache <- liftIO $ readIORef proofCache+             pure $ case reverse <$> Map.lookup key cache of+               Nothing     -> Nothing+               Just []     -> Nothing+               Just (p:ps) -> Just p { aliases = [proofName q | q <- ps] }++-- | Return a cached proof, printing a brief "Q.E.D." line with optional "a.k.a." annotation.+returnCachedProof :: SMTConfig -> String -> ProofObj -> TP (Proof a)+returnCachedProof cfg nm prf = do+   let aka  = filter (/= nm) $ nub $ proofName prf : aliases prf+       prf' = prf { proofName = nm, wasCached = True, aliases = aka }+   liftIO $ printLemmaResult cfg False nm (dependencies prf) True aka+   pure $ Proof prf'+ -- | The context in which we make a check-sat call data TPProofContext = TPProofOneShot String      -- ^ A one shot proof, with string containing its name                                      [ProofObj]  -- ^ Helpers used (latter only used for cex generation)@@ -117,10 +202,59 @@ -- | Run a TP proof, using the given configuration. runTPWith :: SMTConfig -> TP a -> IO a runTPWith cfg@SMTConfig{tpOptions = TPOptions{printStats}} (TP f) = do-   rStats <- newIORef $ TPStats { noOfCheckSats = 0, solverElapsed = 0, qcElapsed = 0 }-   rCache <- newIORef Map.empty-   rCfg   <- newIORef cfg-   (mbT, r) <- timeIf printStats $ runReaderT f TPState {config = rCfg, stats = rStats, proofCache = rCache}+   rDryRun    <- newIORef True+   rMaxRibbon <- newIORef 0++   let runPass c = do+         rStats       <- newIORef $ TPStats { noOfCheckSats = 0, solverElapsed = 0, qcElapsed = 0 }+         rCache       <- newIORef Map.empty+         rCfg         <- newIORef c+         rRecall      <- newIORef (0 :: Int)+         rMeasures    <- newIORef Set.empty+         rProductive  <- newIORef Set.empty+         rEncountered <- newIORef Set.empty+         let st = TPState { config               = rCfg+                           , stats               = rStats+                           , proofCache          = rCache+                           , inRecallContext     = rRecall+                           , measuresVerified    = rMeasures+                           , productiveVerified  = rProductive+                           , measuresEncountered = rEncountered+                           , dryRun              = rDryRun+                           , maxRibbon           = rMaxRibbon+                           }+         a <- runReaderT f st+         pure (a, st)++   -- Pass 1: Dry run to collect ribbon widths+   _ <- runPass ((tpQuiet True cfg){verbose = False})++   -- Pass 2: Real run with computed ribbon+   writeIORef rDryRun False+   ribbon <- readIORef rMaxRibbon+   let cfg' = cfg{tpOptions = (tpOptions cfg) { ribbonLength = max 20 (ribbon + 4) }}++   (mbT, (r, TPState{stats = rStats, measuresVerified = rMeasures, productiveVerified = rProductive, measuresEncountered = rEncountered}))+       <- timeIf printStats $ runPass cfg'++   -- Print verified measures and productive functions+   verified    <- readIORef rMeasures+   productive  <- readIORef rProductive+   encountered <- readIORef rEncountered++   unless (Set.null verified)   $ printMeasures   cfg' (Set.toAscList verified)+   unless (Set.null productive) $ printProductive cfg' (Set.toAscList productive)++   -- Belt-and-suspenders: make sure all encountered measures have been verified.+   -- Exclude functions in measuresBeingVerified: those are being verified by an outer caller+   -- (e.g., when a measureLemma proof uses the function whose measure is being checked).+   let beingVerified = measuresBeingVerified (tpOptions cfg)+       missed = encountered `Set.difference` verified `Set.difference` productive `Set.difference` beingVerified++   unless (Set.null missed) $+     error $ "SBV.runTP: Internal error: The following functions have termination measures that were encountered but not verified: "+           ++ intercalate ", " (Set.toAscList missed)+    case mbT of      Nothing -> pure ()      Just t  -> do TPStats noOfCheckSats solverTime qcElapsed <- readIORef rStats@@ -132,7 +266,7 @@                                , ("Decisions", show noOfCheckSats)                                ] -                   message cfg $ '[' : intercalate ", " [k ++ ": " ++ v | (k, v) <- stats] ++ "]\n"+                   message cfg' $ '[' : intercalate ", " [k ++ ": " ++ v | (k, v) <- stats] ++ "]\n"    pure r  -- | get the state@@ -159,15 +293,52 @@  -- | Display the message if not quiet. Note that we don't print a newline; so the message must have it if needed. message :: MonadIO m => SMTConfig -> String -> m ()-message SMTConfig{tpOptions = TPOptions{quiet}} s-  | quiet = pure ()-  | True  = liftIO $ putStr s+message SMTConfig{tpOptions = TPOptions{quiet}, redirectVerbose} s+  | quiet+  = pure ()+  | Just f <- redirectVerbose+  = liftIO $ appendFile f s+  | True+  = liftIO $ putStr s >> hFlush stdout +-- | Print the list of functions whose termination measures have been verified.+printMeasures :: SMTConfig -> [String] -> IO ()+printMeasures = printFunctions "Functions proven terminating"++-- | Print the list of functions whose productivity (guardedness) has been verified.+printProductive :: SMTConfig -> [String] -> IO ()+printProductive = printFunctions "Functions proven productive"++-- | Print a list of function names under a header, wrapping lines to avoid excessively long output.+-- If the list fits on one line, it follows the header directly. Otherwise, it starts on a new line.+printFunctions :: String -> SMTConfig -> [String] -> IO ()+printFunctions header cfg names+  | length oneLine <= limit = message cfg $ header ++ ": " ++ oneLine ++ "\n"+  | True                    = message cfg $ header ++ ":\n  " ++ wrapped ++ "\n"+  where cleaned = nub (sort (map strip names))+        strip   = dropWhileEnd (== ' ') . takeWhile (/= '@')++        limit = 90++        oneLine = intercalate ", " cleaned++        wrapped = go limit cleaned++        go _ []     = ""+        go _ [n]    = n+        go r (n:ns) = let len  = length n + 2  -- account for ", "+                          rest = go (r - len) ns+                      in if r - len < 0 && r /= limit+                         then "\n  " ++ go limit (n:ns)+                         else case rest of+                                '\n':_ -> n ++ "," ++ rest+                                _      -> n ++ ", " ++ rest+ -- | Start a proof. We return the number of characters we printed, so the finisher can align the result. startTP :: SMTConfig -> Bool -> String -> Int -> TPProofContext -> IO Int startTP cfg newLine what level ctx = do message cfg $ line ++ if newLine then "\n" else ""                                         hFlush stdout-                                        return (length line)+                                        pure (length line)   where nm = case ctx of                TPProofOneShot n _       -> n                TPProofStep    _ _ hs ss -> intercalate "." ss ++ userHints hs@@ -189,11 +360,12 @@        mkTiming t = '[' : showTDiff t ++ "]"  -- | Unique identifier for each proof.-data TPUnique = TPInternal    -- IH's-              | TPSorry       -- sorry-              | TPQC          -- qc (quick-check)-              | TPUser Int64  -- user given-              deriving (NFData, Generic, Eq)+data TPUnique = TPInternal        -- IH's+              | TPSorry           -- sorry+              | TPQC              -- qc (quick-check)+              | TPNoTermCheck     -- no termination check (smtFunctionNoTermination)+              | TPUser Int64      -- user given+              deriving (NFData, Generic, Eq, Ord)  -- | Proof for a property. This type is left abstract, i.e., the only way to create on is via a -- call to lemma/theorem etc., ensuring soundness. (Note that the trusted-code base here@@ -214,7 +386,8 @@                          , getProp      :: Dynamic        -- ^ The actual proposition                          , proofName    :: String         -- ^ User given name                          , uniqId       :: TPUnique       -- ^ Unique identifier-                         , isCached     :: Bool           -- ^ Was this a cached proof?+                         , aliases      :: [String]       -- ^ Other names for proofs of the same proposition (populated on cache hit)+                         , wasCached    :: Bool           -- ^ Was this proof retrieved from the cache?                          }  -- | Drop the instantiation part@@ -223,6 +396,26 @@                  | True                = s    where s = proofName p +-- | Deduplicate proof objects by their unique id, keeping the first occurrence.+-- Same result as @nubBy ((==) \`on\` uniqId)@, but O(n log n) instead of O(n^2).+nubByUniqId :: [ProofObj] -> [ProofObj]+nubByUniqId = go Set.empty+  where go _    []     = []+        go seen (p:ps)+          | u `Set.member` seen =     go seen ps+          | True                = p : go (Set.insert u seen) ps+          where u = uniqId p++-- | Nicely format a bunch of proof-names, shortened and uniquified. Note that if we get a dependency+-- via multiple routes, they can get different uniqid's; so we do a bit of compression here.+shortProofNames :: [ProofObj] -> String+shortProofNames = intercalate ", " . map merge . compress . sort . map shortProofName . nubByUniqId+ where compress []     = []+       compress (a:as) = case span (a ==) as of+                           (same, other) -> (a, length same + 1) : compress other+       merge (n, 1) = n+       merge (n, x) = n ++ " (x" ++ show x ++ ")"+ -- | Keeping track of where the sorry originates from. Used in displaying dependencies. newtype RootOfTrust = RootOfTrust (Maybe [ProofObj]) @@ -230,11 +423,11 @@ instance Show RootOfTrust where   show (RootOfTrust mbp) = case mbp of                              Nothing -> "Nothing"-                             Just ps -> "Just [" ++ intercalate ", " (map shortProofName ps) ++ "]"+                             Just ps -> "Just [" ++ shortProofNames ps ++ "]"  -- | Trust forms a semigroup instance Semigroup RootOfTrust where-   RootOfTrust as <> RootOfTrust bs = RootOfTrust $ nubBy (\a b -> uniqId a == uniqId b) <$> (as <> bs)+   RootOfTrust as <> RootOfTrust bs = RootOfTrust $ nubByUniqId <$> (as <> bs)  -- | Trust forms a monoid instance Monoid RootOfTrust where@@ -242,12 +435,13 @@  -- | NFData ignores the getProp field instance NFData ProofObj where-  rnf (ProofObj dependencies isUserAxiom getObjProof _getProp proofName uniqId isCached) =     rnf dependencies-                                                                                         `seq` rnf isUserAxiom-                                                                                         `seq` rnf getObjProof-                                                                                         `seq` rnf proofName-                                                                                         `seq` rnf uniqId-                                                                                         `seq` rnf isCached+  rnf (ProofObj dependencies isUserAxiom getObjProof _getProp proofName uniqId aliases wasCached) =     rnf dependencies+                                                                                                 `seq` rnf isUserAxiom+                                                                                                 `seq` rnf getObjProof+                                                                                                 `seq` rnf proofName+                                                                                                 `seq` rnf uniqId+                                                                                                 `seq` rnf aliases+                                                                                                 `seq` rnf wasCached  -- | Dependencies of a proof, in a tree format. data ProofTree = ProofTree ProofObj [ProofTree]@@ -274,10 +468,11 @@          -- Don't show internal axioms, not interesting         interesting (ProofTree p _) = case uniqId p of-                                        TPInternal -> False-                                        TPSorry    -> True-                                        TPQC       -> True-                                        TPUser{}   -> True+                                        TPInternal    -> False+                                        TPSorry       -> True+                                        TPQC          -> True+                                        TPNoTermCheck -> True+                                        TPUser{}      -> True          -- If a proof is used twice in the same proof, compress it         compress :: [ProofTree] -> [(Int, ProofTree)]@@ -316,25 +511,26 @@  -- | Show instance for t'Proof' instance Typeable a => Show (Proof a) where-  show p@(Proof po@ProofObj{proofName = nm}) = '[' : sh (rootOfTrust p) ++ "] " ++ nm ++ " :: " ++ pretty (show (typeOf p))-    where sh (RootOfTrust Nothing)   = "Proven" ++ cacheInfo-          sh (RootOfTrust (Just ps)) = "Modulo: " ++ join ps ++ cacheInfo--          join = intercalate ", " . sort . map shortProofName--          cacheInfo = case cachedProofs po of-                        [] -> ""-                        cs -> ". Cached: " ++ join (nubBy (\p1 p2 -> uniqId p1 == uniqId p2) cs)--          cachedProofs prf@ProofObj{isCached} = if isCached then prf : rest else rest-            where rest = concatMap cachedProofs (dependencies prf)+  show p@(Proof ProofObj{proofName = nm}) = '[' : sh (rootOfTrust p) ++ "] " ++ nm ++ " :: " ++ pretty (show (typeOf p))+    where sh (RootOfTrust Nothing)   = "Proven"+          sh (RootOfTrust (Just ps)) = "Modulo: " ++ shortProofNames ps            -- More mathematical notation for types.           pretty :: String -> String-          pretty = unwords . walk . words . concatMap (\c -> if c == ',' then " , " else [c]) . clean+          pretty = charToString . compress . unwords . walk . words . concatMap (\c -> if c == ',' then " , " else [c]) . clean             where fa v = ['Ɐ' : unQuote v, "∷"]                   ex v = ['∃' : unQuote v, "∷"] +                  -- Remove spaces before commas: "foo , bar" -> "foo, bar"+                  compress (' ' : ',' : rest) = compress (',' : rest)+                  compress (c : rest)         = c : compress rest+                  compress []                 = []++                  -- Replace [Char] with String everywhere+                  charToString ('[':'C':'h':'a':'r':']':rest) = "String" ++ charToString rest+                  charToString (c:rest)                       = c : charToString rest+                  charToString []                             = []+                   walk ("SBV"    : "Bool" : rest) = walk $ "Bool" :  rest                   walk ("Forall" : xs     : rest) = walk $ fa xs  ++ rest                   walk ("Exists" : xs     : rest) = walk $ ex xs  ++ rest@@ -373,7 +569,8 @@                  , getProp      = toDyn p                  , proofName    = "sorry"                  , uniqId       = TPSorry-                 , isCached     = False+                 , aliases      = []+                 , wasCached    = False                  }   where -- ideally, I'd rather just use         --   p = sFalse@@ -391,7 +588,8 @@                            , getProp      = toDyn p                            , proofName    = "quickCheck"                            , uniqId       = TPQC-                           , isCached     = False+                           , aliases      = []+                           , wasCached    = False                            }   where -- ideally, I'd rather just use         --   p = sFalse@@ -401,16 +599,32 @@         -- solver to determine as false, we avoid the constant folding.         p (Forall @"__sbvTP_quickCheck" (x :: SBool)) = label "QUICKCHECK: TP, proof uses \"qc\"" x +-- | A proof object representing a function whose termination was not checked.+-- When a function is defined with 'Data.SBV.smtFunctionNoTermination', its termination+-- is assumed but not proven. Any proof that depends on such a function will be+-- marked as modulo this assumption in its root of trust.+noTermCheckProof :: String -> ProofObj+noTermCheckProof nm = ProofObj { dependencies = []+                               , isUserAxiom  = False+                               , getObjProof  = sTrue+                               , getProp      = toDyn True+                               , proofName    = nm ++ " termination"+                               , uniqId       = TPNoTermCheck+                               , aliases      = []+                               , wasCached    = False+                               }+ -- | Calculate the root of trust. The returned list of proofs, if any, will need to be sorry and quickcheck free to -- have the given proof to be sorry-free. rootOfTrust :: Proof a -> RootOfTrust rootOfTrust = rot True . proofOf   where rot atTop p@ProofObj{uniqId = curUniq, dependencies} = compress res           where res = case curUniq of-                        TPInternal -> RootOfTrust Nothing-                        TPQC       -> RootOfTrust $ Just [quickCheckProof]-                        TPSorry    -> RootOfTrust $ Just [sorry]-                        TPUser {}  -> self <> foldMap (rot False) dependencies+                        TPInternal    -> RootOfTrust Nothing+                        TPQC          -> RootOfTrust $ Just [quickCheckProof]+                        TPSorry       -> RootOfTrust $ Just [sorry]+                        TPNoTermCheck -> RootOfTrust $ Just [p]+                        TPUser {}     -> self <> foldMap (rot False) dependencies                  -- if sorry or quickcheck is one of our direct dependencies, then we trust this proof.                 -- Note that we skip this at the top. Why? at that level, we want to see the direct@@ -421,20 +635,27 @@                  isUnsafe ProofObj{uniqId = u} = u `elem` [TPSorry, TPQC] -                -- If we have any dependency that is not sorry itself, then we can skip all the sorries.-                -- Why? Because "sorry" will implicitly be coming from one of these anyhow. (In other-                -- words, we do not need to (or want to) distinguish between different uses of sorry.+                -- If sorry is present, it dominates everything else. Otherwise keep all.                 compress (RootOfTrust mbps) = RootOfTrust $ reduce <$> mbps-                  where reduce ps = case partition isUnsafe ps of-                                      (l, []) | TPSorry `elem` map uniqId l -> [sorry]-                                              | True                        -> [quickCheckProof]-                                      (_, os) -> os+                  where reduce ps+                          | any (\o -> uniqId o == TPSorry) ps = [sorry]+                          | True                               = ps +-- | Print a one-line lemma result: @Lemma: name  Q.E.D. [Modulo: ...] [Cached] (a.k.a. ...)@+printLemmaResult :: SMTConfig -> Bool -> String -> [ProofObj] -> Bool -> [String] -> IO ()+printLemmaResult cfg verboseFlag nm deps cached aka = do+   tab <- startTP cfg verboseFlag "Lemma" 0 (TPProofOneShot nm [])+   finishTP cfg ("Q.E.D." ++ concludeModulo deps ++ cacheStr ++ akaStr) (tab, Nothing) []+ where cacheStr | cached = " [Cached]"+                | True   = ""+       akaStr   | null aka = ""+                | True     = " (a.k.a. " ++ intercalate ", " aka ++ ")"+ -- | Calculate the modulo string for dependencies concludeModulo :: [ProofObj] -> String concludeModulo by = case foldMap (rootOfTrust . Proof) by of                       RootOfTrust Nothing   -> ""-                      RootOfTrust (Just ps) -> " [Modulo: " ++ intercalate ", " (map shortProofName ps) ++ "]"+                      RootOfTrust (Just ps) -> " [Modulo: " ++ shortProofNames ps ++ "]"  -- | Make TP proofs quiet. Note that this setting will be effective with the -- call to 'runTP'\/'runTPWith', i.e., if you change the solver in a call to 'Data.SBV.TP.lemmaWith'\/'Data.SBV.TP.theoremWith', we@@ -442,30 +663,45 @@ tpQuiet :: Bool -> SMTConfig -> SMTConfig tpQuiet b cfg = cfg{tpOptions = (tpOptions cfg) { quiet = b }} --- | Change the size of the ribbon for TP proofs. Note that this setting will be effective with the--- call to 'runTP'\/'runTPWith', i.e., if you change the solver in a call to 'Data.SBV.TP.lemmaWith'\/'Data.SBV.TP.theoremWith', we--- will inherit the ribbon settings from the surrounding environment.-tpRibbon :: Int -> SMTConfig -> SMTConfig-tpRibbon i cfg = cfg{tpOptions = (tpOptions cfg) { ribbonLength = i }}- -- | Make TP proofs produce statistics. Note that this setting will be effective with the -- call to 'runTP'\/'runTPWith', i.e., if you change the solver in a call to 'Data.SBV.TP.lemmaWith'\/'Data.SBV.TP.theoremWith', we -- will inherit the statistics settings from the surrounding environment. tpStats :: SMTConfig -> SMTConfig tpStats cfg = cfg{tpOptions = (tpOptions cfg) { printStats = True }} --- | Make TP proofs use proof-cache. Note that if you use this option then you are obligated to ensure all--- lemma\/theorem names\/type pairs you use are unique for the whole run. (That is, we will reuse proofs if they have the--- same name and type; hence if you prove two theorems that share name and type will be considered the same.)--- If you don't ensure this uniqueness,  the results are not guaranteed to be sound. A good tip is to run the proof at--- least once to completion, and use cache for regression purposes to avoid re-runs. Also, this setting will be effective--- with the call to 'runTP'\/'runTPWith', i.e., if you -- the solver in a call to 'Data.SBV.TP.lemmaWith'\/'Data.SBV.TP.theoremWith', we will--- inherit the caching behavior settings from the surrounding environment.-tpCache :: SMTConfig -> SMTConfig-tpCache cfg = cfg{tpOptions = (tpOptions cfg) { cacheProofs = True }}  -- | When proving assumptions for each step, print them as well. Normally, SBV doesn't -- print assumptions in each proof step, though it does prove them as they are typically trivial. -- But in certain cases seeing them would be helpful. tpAsms :: SMTConfig -> SMTConfig tpAsms cfg = cfg{tpOptions = (tpOptions cfg) { printAsms = True }}++-- | Create a t'MeasureHelper' from a TP proof action. During measure verification,+-- the proof is run to confirm the property holds, and the proven property is extracted+-- and asserted as an axiom in the measure verification session. The solver configuration+-- is inherited from the measure verification context, with output suppressed.+--+-- Example usage with 'Data.SBV.smtFunctionWithMeasure':+--+-- @+-- normalize = smtFunctionWithMeasure "normalize"+--               (\\f -> tuple (ifComplexity f, ifDepth f)+--               , [measureLemma ifDepthNonNeg, measureLemma ifComplexityPos]+--               )+--             $ \\f -> ...+-- @+measureLemma :: forall a. (QuantifiedBool a, Typeable a) => TP (Proof a) -> MeasureHelper+measureLemma tp = MeasureHelper $ \cfg -> do+  proof <- runTPWith (tpQuiet True cfg) tp+  case fromDynamic @a (getProp (proofOf proof)) of+    Just prop -> pure (quantifiedBool prop)+    Nothing   -> error "Data.SBV.measureLemma: impossible type mismatch in measure helper"++-- | Like 'measureLemma', but using the given solver configuration, ignoring the+-- one from the measure verification context.+measureLemmaWith :: forall a. (QuantifiedBool a, Typeable a) => SMTConfig -> TP (Proof a) -> MeasureHelper+measureLemmaWith userCfg tp = MeasureHelper $ \_cfg -> do+  proof <- runTPWith (tpQuiet True userCfg) tp+  case fromDynamic @a (getProp (proofOf proof)) of+    Just prop -> pure (quantifiedBool prop)+    Nothing   -> error "Data.SBV.measureLemmaWith: impossible type mismatch in measure helper"
Data/SBV/Tools/BMC.hs view
@@ -11,7 +11,6 @@ -----------------------------------------------------------------------------  {-# LANGUAGE FlexibleContexts #-}-{-# LANGUAGE TypeFamilies     #-} {-# LANGUAGE TypeOperators    #-}  {-# OPTIONS_GHC -Wall -Werror #-}@@ -35,7 +34,7 @@ bmcRefute :: (Queriable IO st, res ~ QueryResult st)     => Maybe Int                            -- ^ Optional bound     -> Bool                                 -- ^ Verbose: prints iteration count-    -> Symbolic ()                          -- ^ Setup code, if necessary. (Typically used for 'Data.SBV.setOption' calls. Pass @return ()@ if not needed.)+    -> Symbolic ()                          -- ^ Setup code, if necessary. (Typically used for 'Data.SBV.setOption' calls. Pass @pure ()@ if not needed.)     -> (st -> SBool)                        -- ^ Initial condition     -> (st -> st -> SBool)                  -- ^ Transition relation     -> (st -> SBool)                        -- ^ Goal to cover, i.e., we find a set of transitions that satisfy this predicate.@@ -47,7 +46,7 @@     => SMTConfig                            -- ^ Solver to use     -> Maybe Int                            -- ^ Optional bound     -> Bool                                 -- ^ Verbose: prints iteration count-    -> Symbolic ()                          -- ^ Setup code, if necessary. (Typically used for 'Data.SBV.setOption' calls. Pass @return ()@ if not needed.)+    -> Symbolic ()                          -- ^ Setup code, if necessary. (Typically used for 'Data.SBV.setOption' calls. Pass @pure ()@ if not needed.)     -> (st -> SBool)                        -- ^ Initial condition     -> (st -> st -> SBool)                  -- ^ Transition relation     -> (st -> SBool)                        -- ^ Goal to cover, i.e., we find a set of transitions that satisfy this predicate.@@ -60,7 +59,7 @@ bmcCover :: (Queriable IO st, res ~ QueryResult st)     => Maybe Int                            -- ^ Optional bound     -> Bool                                 -- ^ Verbose: prints iteration count-    -> Symbolic ()                          -- ^ Setup code, if necessary. (Typically used for 'Data.SBV.setOption' calls. Pass @return ()@ if not needed.)+    -> Symbolic ()                          -- ^ Setup code, if necessary. (Typically used for 'Data.SBV.setOption' calls. Pass @pure ()@ if not needed.)     -> (st -> SBool)                        -- ^ Initial condition     -> (st -> st -> SBool)                  -- ^ Transition relation     -> (st -> SBool)                        -- ^ Goal to cover, i.e., we find a set of transitions that satisfy this predicate.@@ -72,7 +71,7 @@     => SMTConfig                            -- ^ Solver to use     -> Maybe Int                            -- ^ Optional bound     -> Bool                                 -- ^ Verbose: prints iteration count-    -> Symbolic ()                          -- ^ Setup code, if necessary. (Typically used for 'Data.SBV.setOption' calls. Pass @return ()@ if not needed.)+    -> Symbolic ()                          -- ^ Setup code, if necessary. (Typically used for 'Data.SBV.setOption' calls. Pass @pure ()@ if not needed.)     -> (st -> SBool)                        -- ^ Initial condition     -> (st -> st -> SBool)                  -- ^ Transition relation     -> (st -> SBool)                        -- ^ Goal to cover, i.e., we find a set of transitions that satisfy this predicate.@@ -94,7 +93,7 @@           go i _ _           | Just l <- mbLimit, i >= l-          = return $ Left $ what ++ " limit of " ++ show l ++ " reached. " ++ badResult+          = pure $ Left $ what ++ " limit of " ++ show l ++ " reached. " ++ badResult           go i curState sofar = do when chatty $ io $ putStrLn $ what ++ ": Iteration: " ++ show i @@ -111,9 +110,9 @@                                     DSat{} -> error $ what ++ ": Solver returned an unexpected delta-sat result."                                     Sat    -> do when chatty $ io $ putStrLn $ what ++ ": " ++ goodResult ++ " state found at iteration " ++ show i                                                  ms <- mapM project (curState : sofar)-                                                 return $ Right (i, reverse ms)+                                                 pure $ Right (i, reverse ms)                                     Unk    -> do when chatty $ io $ putStrLn $ what ++ ": Backend solver said unknown at iteration " ++ show  i-                                                 return $ Left $ what ++ ": Solver said unknown in iteration " ++ show i+                                                 pure $ Left $ what ++ ": Solver said unknown in iteration " ++ show i                                     Unsat  -> do pop 1                                                  nextState <- create                                                  constrain $ curState `trans` nextState
Data/SBV/Tools/BVOptimize.hs view
@@ -97,7 +97,7 @@ minMaxBV :: SFiniteBits a => Bool -> SMTConfig -> Bool -> SBV a -> Symbolic SatResult minMaxBV isMax cfg getUC v  | hasSign v- = error $ "minMaxBV works on unsigned bitvectors, received: " ++ show (kindOf v)+ = error $ "minMaxBV works on unsigned bit-vectors, received: " ++ show (kindOf v)  | True  = do when getUC $ setOption $ ProduceUnsatCores True       query $ go (blastBE v)@@ -120,7 +120,7 @@                                else constrain $ sNot b                       r <- checkSat                       case r of-                        Sat    -> go bs >>= \res -> pop 1 >> return res+                        Sat    -> go bs >>= \res -> pop 1 >> pure res                         Unsat  ->                   pop 1 >> go bs                         Unk    ->                   pop 1 >> rUnk                         DSat{} -> error "minMaxBV: Unexpected DSat result"
Data/SBV/Tools/GenTest.hs view
@@ -9,7 +9,7 @@ -- Test generation from symbolic programs ----------------------------------------------------------------------------- -{-# OPTIONS_GHC -Wall -Werror -Wno-incomplete-uni-patterns #-}+{-# OPTIONS_GHC -Wall -Werror #-}  module Data.SBV.Tools.GenTest (         -- * Test case generation@@ -23,6 +23,7 @@ import Data.Function (on) import Data.List     (intercalate, groupBy) import Data.Maybe    (fromMaybe)+import qualified Data.Text as T  import Data.SBV.Core.AlgReals import Data.SBV.Core.Data@@ -48,15 +49,15 @@ genTest :: Outputtable a => Int -> Symbolic a -> IO TestVectors genTest n m = gen 0 []   where gen i sofar-         | i == n = return $ TV $ reverse sofar+         | i == n = pure $ TV $ reverse sofar          | True   = do t <- tc                        gen (i+1) (t:sofar)         tc = do (_, Result {resTraces=tvals, resConsts=(_, cs), resDefinitions=definitions, resConstraints=cstrs, resOutputs=os}) <- runSymbolic defaultSMTCfg (Concrete Nothing) (m >>= output)-                let cval = fromMaybe (error "Cannot generate tests in the presence of uninterpeted constants!") . (`lookup` cs)+                let cval = fromMaybe (error "Cannot generate tests in the presence of uninterpreted constants!") . (`lookup` cs)                     cond = and [cvToBool (cval v) | (False, _, v) <- F.toList cstrs] -- Only pick-up "hard" constraints, as indicated by False in the fist component                 unless (null definitions) $ error "Cannot generate tests in the presence of 'smtFunction' calls!"                 if cond-                   then return (map snd tvals, map cval os)+                   then pure (map snd tvals, map cval os)                    else tc   -- try again, with the same set of constraints  -- | Test output style@@ -94,8 +95,7 @@           | needsWord             = ["import Data.Word", ""]           | needsRatio            = ["import Data.Ratio"]           | True                  = []-          where ((is, os):_) = vs-                params       = is ++ os+          where params       = case vs of { (is, os):_ -> is ++ os; _ -> error "SBV.renderTest: impossible, empty test vectors" }                 needsInt     = any isSW params                 needsWord    = any isUW params                 needsRatio   = any isR params@@ -108,7 +108,9 @@                 isUW cv      = case kindOf cv of                                  KBounded False sz -> sz > 1                                  _                 -> False-        modName = let (f:r) = n in toUpper f : r+        modName = case n of+                    f:r -> toUpper f : r+                    _   -> error "SBV.renderTest: impossible, empty module name"         pad = replicate (length n + 3) ' '         getType []         = "[a]"         getType ((i, o):_) = "[(" ++ mapType typeOf i ++ ", " ++ mapType typeOf o ++ ")]"@@ -141,27 +143,27 @@                  KReal             -> error $ "SBV.renderTest: Unsupported real valued test value: " ++ show cv                  KList es          -> error $ "SBV.renderTest: Unsupported list valued test: [" ++ show es ++ "]"                  KSet  es          -> error $ "SBV.renderTest: Unsupported set valued test: {" ++ show es ++ "}"-                 KUserSort us _    -> error $ "SBV.renderTest: Unsupported uninterpreted sort: " ++ us                  _                 -> error $ "SBV.renderTest: Unexpected CV: " ++ show cv          s cv = case kindOf cv of+                  KVar{}            -> error $ "SBV.renderTest: Unexpected: " ++ show (kindOf cv)                   KBool             -> take 5 (show (cvToBool cv) ++ repeat ' ')-                  KBounded sgn   sz -> let CInteger w = cvVal cv in shex  False True (sgn, sz) w-                  KUnbounded        -> let CInteger w = cvVal cv in shexI False True           w-                  KFloat            -> let CFloat   w = cvVal cv in showHFloat w-                  KDouble           -> let CDouble  w = cvVal cv in showHDouble w+                  KBounded sgn   sz -> case cvVal cv of { CInteger w -> T.unpack $ shex  False True (sgn, sz) w; r -> bad r }+                  KUnbounded        -> case cvVal cv of { CInteger w -> T.unpack $ shexI False True           w; r -> bad r }+                  KFloat            -> case cvVal cv of { CFloat   w -> showHFloat w;                            r -> bad r }+                  KDouble           -> case cvVal cv of { CDouble  w -> showHDouble w;                           r -> bad r }                   KRational         -> error "SBV.renderTest: Unsupported rational number"                   KFP{}             -> error "SBV.renderTest: Unsupported arbitrary float"                   KChar             -> error "SBV.renderTest: Unsupported char"                   KString           -> error "SBV.renderTest: Unsupported string"-                  KReal             -> let CAlgReal w = cvVal cv in algRealToHaskell w+                  KReal             -> case cvVal cv of { CAlgReal w -> algRealToHaskell w; r -> bad r }                   KList es          -> error $ "SBV.renderTest: Unsupported list valued sort: [" ++ show es ++ "]"                   KSet  es          -> error $ "SBV.renderTest: Unsupported set valued sort: {" ++ show es ++ "}"-                  KUserSort us _    -> error $ "SBV.renderTest: Unsupported uninterpreted sort: " ++ us-                  k@KTuple{}        -> error $ "SBV.renderTest: Unsupported tuple: " ++ show k-                  k@KMaybe{}        -> error $ "SBV.renderTest: Unsupported maybe: " ++ show k-                  k@KEither{}       -> error $ "SBV.renderTest: Unsupported sum: "   ++ show k-                  k@KArray{}        -> error $ "SBV.renderTest: Unsupported array: " ++ show k+                  k@KApp{}          -> error $ "SBV.renderTest: Unsupported adt app: " ++ show k+                  k@KADT{}          -> error $ "SBV.renderTest: Unsupported adt: "     ++ show k+                  k@KTuple{}        -> error $ "SBV.renderTest: Unsupported tuple: "   ++ show k+                  k@KArray{}        -> error $ "SBV.renderTest: Unsupported array: "   ++ show k+               where bad _ = error $ "SBV.renderTest: Unexpected CVal for kind: " ++ show (kindOf cv)  c :: String -> [([CV], [CV])] -> String c n vs = intercalate "\n" $@@ -231,6 +233,7 @@               ]   where mkField p cv i = "    " ++ t ++ " " ++ p ++ show i ++ ";"             where t = case kindOf cv of+                        KVar{}            -> error $ "SBV.renderTest: Unexpected: " ++ show (kindOf cv)                         KBool             -> "SBool"                         KBounded False 8  -> "SWord8"                         KBounded False 16 -> "SWord16"@@ -249,35 +252,34 @@                         KString           -> error "SBV.renderTest: Unsupported string"                         KUnbounded        -> error "SBV.renderTest: Unbounded integers are not supported when generating C test-cases."                         KReal             -> error "SBV.renderTest: Real values are not supported when generating C test-cases."-                        KUserSort us _    -> error $ "SBV.renderTest: Unsupported uninterpreted sort: " ++ us+                        k@KApp{}          -> error $ "SBV.renderTest: Unsupported adt app: "     ++ show k+                        k@KADT{}          -> error $ "SBV.renderTest: Unsupported adt: "         ++ show k                         k@KList{}         -> error $ "SBV.renderTest: Unsupported list sort: "   ++ show k                         k@KSet{}          -> error $ "SBV.renderTest: Unsupported set sort: "    ++ show k                         k@KTuple{}        -> error $ "SBV.renderTest: Unsupported tuple sort: "  ++ show k-                        k@KMaybe{}        -> error $ "SBV.renderTest: Unsupported maybe sort: "  ++ show k-                        k@KEither{}       -> error $ "SBV.renderTest: Unsupported either sort: " ++ show k                         k@KArray{}        -> error $ "SBV.renderTest: Unsupported array sort: "  ++ show k -         mkLine (is, os) = "{{" ++ intercalate ", " (map v is) ++ "}, {" ++ intercalate ", " (map v os) ++ "}}"          v cv = case kindOf cv of-                  KBool            -> if cvToBool cv then "true " else "false"-                  KBounded sgn sz  -> let CInteger w = cvVal cv in chex  False True (sgn, sz) w-                  KUnbounded       -> let CInteger w = cvVal cv in shexI False True           w-                  KFloat           -> let CFloat w   = cvVal cv in showCFloat w-                  KDouble          -> let CDouble w  = cvVal cv in showCDouble w-                  KRational        -> error "SBV.renderTest: Unsupported rational number"-                  KFP{}            -> error "SBV.renderTest: Unsupported arbitrary float"-                  KChar            -> error "SBV.renderTest: Unsupported char"-                  KString          -> error "SBV.renderTest: Unsupported string"-                  k@KList{}        -> error $ "SBV.renderTest: Unsupported list sort!" ++ show k-                  k@KSet{}         -> error $ "SBV.renderTest: Unsupported set sort!" ++ show k-                  KUserSort us _   -> error $ "SBV.renderTest: Unsupported uninterpreted sort: " ++ us-                  KReal            -> error "SBV.renderTest: Real values are not supported when generating C test-cases."-                  k@KTuple{}       -> error $ "SBV.renderTest: Unsupported tuple sort: " ++ show k-                  k@KMaybe{}       -> error $ "SBV.renderTest: Unsupported maybe sort: " ++ show k-                  k@KEither{}      -> error $ "SBV.renderTest: Unsupported sum sort: "   ++ show k-                  k@KArray{}       -> error $ "SBV.renderTest: Unsupported sum sort: "   ++ show k+                  KVar{}          -> error $ "SBV.renderTest: Unexpected: " ++ show (kindOf cv)+                  KBool           -> if cvToBool cv then "true " else "false"+                  KBounded sgn sz -> case cvVal cv of { CInteger w -> T.unpack $ chex  False True (sgn, sz) w; r -> bad r }+                  KUnbounded      -> case cvVal cv of { CInteger w -> T.unpack $ shexI False True           w; r -> bad r }+                  KFloat          -> case cvVal cv of { CFloat w   -> showCFloat w;                            r -> bad r }+                  KDouble         -> case cvVal cv of { CDouble w  -> showCDouble w;                           r -> bad r }+                  KRational       -> error "SBV.renderTest: Unsupported rational number"+                  KFP{}           -> error "SBV.renderTest: Unsupported arbitrary float"+                  KChar           -> error "SBV.renderTest: Unsupported char"+                  KString         -> error "SBV.renderTest: Unsupported string"+                  KReal           -> error "SBV.renderTest: Real values are not supported when generating C test-cases."+                  k@KList{}       -> error $ "SBV.renderTest: Unsupported list sort!"           ++ show k+                  k@KSet{}        -> error $ "SBV.renderTest: Unsupported set sort!"            ++ show k+                  k@KApp{}        -> error $ "SBV.renderTest: Unsupported adt app: "            ++ show k+                  k@KADT{}        -> error $ "SBV.renderTest: Unsupported adt: "                ++ show k+                  k@KTuple{}      -> error $ "SBV.renderTest: Unsupported tuple sort: "         ++ show k+                  k@KArray{}      -> error $ "SBV.renderTest: Unsupported sum sort: "           ++ show k+               where bad _ = error $ "SBV.renderTest: Unexpected CVal for kind: " ++ show (kindOf cv)          outLine           | null vs = "printf(\"\");"@@ -352,7 +354,6 @@                         KList ek          -> noForte $ "List of " ++ show ek                         KSet  ek          -> noForte $ "Set of " ++ show ek                         KUnbounded        -> noForte "Unbounded integers"-                        KUserSort s _     -> noForte $ "Uninterpreted kind " ++ show s                         _                 -> error $ "SBV.renderTest: Unexpected CV: " ++ show cv          xlt s (CInteger  v)  = [toF (testBit v i) | i <- [s-1, s-2 .. 0]]@@ -363,13 +364,11 @@         xlt _ (CChar     r)  = error $ "SBV.renderTest.Forte: Unexpected char value: "             ++ show r         xlt _ (CString   r)  = error $ "SBV.renderTest.Forte: Unexpected string value: "           ++ show r         xlt _ (CAlgReal  r)  = error $ "SBV.renderTest.Forte: Unexpected real value: "             ++ show r-        xlt _ (CUserSort r)  = error $ "SBV.renderTest.Forte: Unexpected uninterpreted value: "    ++ show r+        xlt _ (CADT (k, _))  = error $ "SBV.renderTest.Forte: Unexpected ADT value: "              ++ show k         xlt _ CList{}        = error   "SBV.renderTest.Forte: Unexpected list value!"         xlt _ CSet{}         = error   "SBV.renderTest.Forte: Unexpected set value!"         xlt _ CTuple{}       = error   "SBV.renderTest.Forte: Unexpected list value!"-        xlt _ CMaybe{}       = error   "SBV.renderTest.Forte: Unexpected maybe value!"-        xlt _ CEither{}      = error   "SBV.renderTest.Forte: Unexpected sum value!"-        xlt _  CArray{}      = error   "SBV.renderTest.Forte: Unexpected array value!"+        xlt _ CArray{}       = error   "SBV.renderTest.Forte: Unexpected array value!"          mkLine  (i, o) = "("  ++ mkTuple (form (fst ss) (concatMap blast i)) ++ ", " ++ mkTuple (form (snd ss) (concatMap blast o)) ++ ")"         mkTuple []  = "()"@@ -379,9 +378,9 @@         form []     bs = error $ "SBV.renderTest: Mismatched index in stream, extra " ++ show (length bs) ++ " bit(s) remain."         form (i:is) bs           | length bs < i = error $ "SBV.renderTest: Mismatched index in stream, was looking for " ++ show i ++ " bit(s), but only " ++ show bs ++ " remains."-          | i == 1        = let b:r = bs-                                v   = if b == '1' then "T" else "F"-                            in v : form is r+          | i == 1        = case bs of+                              b:r -> (if b == '1' then "T" else "F") : form is r+                              _   -> error "SBV.renderTest: impossible, empty bit stream"           | True          = let (f, r) = splitAt i bs                                 v      = "c \"" ++ show i ++ "'b" ++ f ++ "\""                             in v : form is r
Data/SBV/Tools/Induction.hs view
@@ -84,7 +84,7 @@ -- and "Documentation.SBV.Examples.ProofTools.Sum" for examples. induct :: (Show res, Queriable IO st, res ~ QueryResult st)        => Bool                             -- ^ Verbose mode-       -> Symbolic ()                      -- ^ Setup code, if necessary. (Typically used for 'Data.SBV.setOption' calls. Pass @return ()@ if not needed.)+       -> Symbolic ()                      -- ^ Setup code, if necessary. (Typically used for 'Data.SBV.setOption' calls. Pass @pure ()@ if not needed.)        -> (st -> SBool)                    -- ^ Initial condition        -> (st -> st -> SBool)              -- ^ Transition relation        -> [(String, st -> SBool)]          -- ^ Strengthenings, if any. The @String@ is a simple tag.@@ -115,14 +115,14 @@                $ try "Proving partial correctness"                      (\s _ -> let (term, result) = goal s in inv s .&& term .=> result)                      (Failed PartialCorrectness)-                     (msg "Done" >> return Proven)+                     (msg "Done" >> pure Proven)    where msg = when chatty . putStrLn          try m p wrap cont = do msg m                                res <- check p                                case res of-                                 Just ex -> return $ wrap ex+                                 Just ex -> pure $ wrap ex                                  Nothing -> cont          check p = runSMTWith cfg $ do@@ -135,14 +135,14 @@                                    case cs of                                      Unk    -> error "Solver said unknown"                                      DSat{} -> error "Solver returned a delta-sat result"-                                     Unsat  -> return Nothing+                                     Unsat  -> pure Nothing                                      Sat    -> do io $ msg "Failed in state:"                                                   exS  <- project s                                                   io $ msg $ show exS                                                   io $ msg "Transitioning to:"                                                   exS' <- project s'                                                   io $ msg $ show exS'-                                                  return $ Just (exS, exS')+                                                  pure $ Just (exS, exS')          strengthen []             cont = cont         strengthen ((nm, st):sts) cont = try ("Proving strengthening initiation  : " ++ nm)
Data/SBV/Tools/Overflow.hs view
@@ -15,7 +15,6 @@ {-# LANGUAGE FlexibleContexts     #-} {-# LANGUAGE FlexibleInstances    #-} {-# LANGUAGE ImplicitParams       #-}-{-# LANGUAGE Rank2Types           #-} {-# LANGUAGE ScopedTypeVariables  #-} {-# LANGUAGE TypeApplications     #-} {-# LANGUAGE TypeOperators        #-}@@ -24,7 +23,6 @@ {-# OPTIONS_GHC -Wall -Werror #-}  module Data.SBV.Tools.Overflow (-          -- * Arithmetic overflows          ArithOverflow(..), CheckedArithmetic(..) @@ -32,8 +30,7 @@          , signedMulOverflow           -- * Cast overflows-       , sFromIntegralO, sFromIntegralChecked-+         , sFromIntegralO, sFromIntegralChecked     ) where  import Data.SBV.Core.Data@@ -101,11 +98,11 @@ instance (KnownNat n, BVIsNonZero n) => ArithOverflow (SInt  n) where {bvAddO = l2 bvAddO; bvSubO = l2 bvSubO; bvMulO = l2 bvMulO; bvDivO = l2 bvDivO; bvNegO = l1 bvNegO}  instance ArithOverflow SVal where-  bvAddO     = signPick2 (svMkOverflow2 (PlusOv False)) (svMkOverflow2 (PlusOv True))-  bvSubO     = signPick2 (svMkOverflow2 (SubOv  False)) (svMkOverflow2 (SubOv  True))-  bvMulO     = signPick2 (svMkOverflow2 (MulOv  False)) (svMkOverflow2 (MulOv  True))-  bvDivO     = signPick2 (const (const svFalse))        (svMkOverflow2 DivOv)           -- unsigned division doesn't overflow-  bvNegO     = signPick1 (const svFalse)                (svMkOverflow1 NegOv)           -- unsigned unary negation doesn't overflow+  bvAddO = signPick2 (svMkOverflow2 (PlusOv False)) (svMkOverflow2 (PlusOv True))+  bvSubO = signPick2 (svMkOverflow2 (SubOv  False)) (svMkOverflow2 (SubOv  True))+  bvMulO = signPick2 (svMkOverflow2 (MulOv  False)) (svMkOverflow2 (MulOv  True))+  bvDivO = signPick2 (const (const svFalse))        (svMkOverflow2 DivOv)           -- unsigned division doesn't overflow+  bvNegO = signPick1 (const svFalse)                (svMkOverflow1 NegOv)           -- unsigned unary negation doesn't overflow  -- | A class of checked-arithmetic operations. These follow the usual arithmetic, -- except make calls to 'Data.SBV.sAssert' to ensure no overflow/underflow can occur.@@ -328,7 +325,7 @@         --         -- The result is at most N-2 for an N-bit word. Later we add two of these, so the maximum         -- value we need to represent is 2N-4. This will require 1 + lg(2N-4) = 2 + log(N-1) bits.-        -- To suppor the case N=0, we return a (2 + log N) bit word.+        -- To support the case N=0, we return a (2 + log N) bit word.         --         -- Example for 3 bits:         --
Data/SBV/Tools/Polynomial.hs view
@@ -9,11 +9,8 @@ -- Implementation of polynomial arithmetic ----------------------------------------------------------------------------- -{-# LANGUAGE DataKinds            #-}-{-# LANGUAGE FlexibleContexts     #-}+{-# LANGUAGE CPP                  #-} {-# LANGUAGE FlexibleInstances    #-}-{-# LANGUAGE PatternGuards        #-}-{-# LANGUAGE TypeFamilies         #-} {-# LANGUAGE UndecidableInstances #-}  {-# OPTIONS_GHC -Wall -Werror #-}@@ -24,7 +21,11 @@         ) where  import Data.Bits  (Bits(..))-import Data.List  (genericTake)+import Data.List  (genericTake+#if !MIN_VERSION_base(4,20,0)+                  , foldl'+#endif+                  ) import Data.Maybe (fromJust, fromMaybe) import Data.Word  (Word8, Word16, Word32, Word64) @@ -149,7 +150,7 @@   = fromBitsLE $ genericTake sz $ r ++ repeat sFalse   where (_, r) = mdp ms rs         ms = genericTake (2*sz) $ mul (blastLE x) (blastLE y) [] ++ repeat sFalse-        rs = genericTake (2*sz) $ [fromBool (i `elem` red) |  i <- [0 .. foldr max 0 red] ] ++ repeat sFalse+        rs = genericTake (2*sz) $ [fromBool (i `elem` red) |  i <- [0 .. foldl' max 0 red] ] ++ repeat sFalse         sz = intSizeOf x         mul _  []     ps = ps         mul as (b:bs) ps = mul (sFalse:as) bs (ites b (as `addPoly` ps) ps)
Data/SBV/Tools/Range.hs view
@@ -108,7 +108,7 @@ rangesWith :: forall a. (OrdSymbolic (SBV a), Num a, SymVal a,  SatModel a, Metric a, SymVal (MetricSpace a), SatModel (MetricSpace a)) => SMTConfig -> (SBV a -> SBool) -> IO [Range a] rangesWith cfg prop = do mbBounds <- getInitialBounds                          case mbBounds of-                           Nothing -> return []+                           Nothing -> pure []                            Just r  -> search [r] []    where getInitialBounds :: IO (Maybe (Range a))@@ -155,16 +155,16 @@                                                                                                       constrain $ prop x                                                                                                       cstr objName x                                    case m of-                                     Unsatisfiable{} -> return Nothing+                                     Unsatisfiable{} -> pure Nothing                                      Unknown{}       -> error "Solver said Unknown!"                                      ProofError{}    -> error (show res)-                                     _               -> return $ getModelObjectiveValue (annotateForMS (Proxy @a) objName) m+                                     _               -> pure $ getModelObjectiveValue (annotateForMS (Proxy @a) objName) m              mi <- getBound minimize             ma <- getBound maximize             case (mi, ma) of-              (Just minV, Just maxV) -> return $ Just $ Range (getGenVal minV) (getGenVal maxV)-              _                      -> return Nothing+              (Just minV, Just maxV) -> pure $ Just $ Range (getGenVal minV) (getGenVal maxV)+              _                      -> pure Nothing          -- Is this range satisfiable? Returns a witness to it.         witness :: Range a -> Symbolic (SBV a)@@ -180,17 +180,17 @@                                     constrain $ lower .&& upper -                                   return x+                                   pure x          isFeasible :: Range a -> IO Bool         isFeasible r = runSMTWith cfg $ do _ <- witness r                                             query $ do cs <- checkSat                                                       case cs of-                                                        Unsat  -> return False+                                                        Unsat  -> pure False                                                         DSat{} -> error "Data.SBV.interval.isFeasible: Solver returned a delta-satisfiable result!"                                                         Unk    -> error "Data.SBV.interval.isFeasible: Solver said unknown!"-                                                        Sat    -> return True+                                                        Sat    -> pure True          bisect :: Range a -> IO (Maybe [Range a])         bisect r@(Range lo hi) = runSMTWith cfg $ do x <- witness r@@ -199,14 +199,14 @@                                                       query $ do cs <- checkSat                                                                 case cs of-                                                                  Unsat  -> return Nothing+                                                                  Unsat  -> pure Nothing                                                                   DSat{} -> error "Data.SBV.interval.bisect: Solver returned a delta-satisfiable result!"                                                                   Unk    -> error "Data.SBV.interval.bisect: Solver said unknown!"                                                                   Sat    -> do midV <- Open <$> getValue x-                                                                               return $ Just [Range lo midV, Range midV hi]+                                                                               pure $ Just [Range lo midV, Range midV hi]          search :: [Range a] -> [Range a] -> IO [Range a]-        search []     sofar = return $ reverse sofar+        search []     sofar = pure $ reverse sofar         search (c:cs) sofar = do feasible <- isFeasible c                                  if feasible                                     then do mbCS <- bisect c
Data/SBV/Tools/STree.hs view
@@ -57,7 +57,7 @@ writeSTree s i j = walk (blastBE i) s   where walk []     _          = SLeaf j         walk (b:bs) (SBin l r) = SBin (ite b l (walk bs l)) (ite b (walk bs r) r)-        walk _      _          = error $ "SBV.STree.writeSTree: Impossible happened while reading: " ++ show i+        walk _      _          = error $ "SBV.STree.writeSTree: Impossible happened while writing: " ++ show i  -- | Construct the fully balanced initial tree using the given values. mkSTree :: forall i e. HasKind i => [SBV e] -> STree i e
Data/SBV/Tools/WeakestPreconditions.hs view
@@ -13,12 +13,10 @@ -- several example proofs. ----------------------------------------------------------------------------- -{-# LANGUAGE FlexibleContexts       #-}-{-# LANGUAGE MultiParamTypeClasses  #-}-{-# LANGUAGE NamedFieldPuns         #-}-{-# LANGUAGE ScopedTypeVariables    #-}-{-# LANGUAGE TypeFamilies           #-}-{-# LANGUAGE TypeOperators          #-}+{-# LANGUAGE FlexibleContexts    #-}+{-# LANGUAGE NamedFieldPuns      #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeOperators       #-}  {-# OPTIONS_GHC -Wall -Werror #-} @@ -27,7 +25,7 @@           Program(..), Stmt(..), assert, stable          -- * Invariants, measures, and stability-        , Invariant, Measure, Stable+        , Invariant, WPMeasure, Stable          -- * Verification conditions         , VC(..)@@ -75,7 +73,7 @@ -- -- The 'setup' field is reserved for any symbolic code you might -- want to run before the proof takes place, typically for calls--- to 'Data.SBV.setOption'. If not needed, simply pass @return ()@.+-- to 'Data.SBV.setOption'. If not needed, simply pass @pure ()@. -- For an interesting use case where we use setup to axiomatize -- the spec, see "Documentation.SBV.Examples.WeakestPreconditions.Fib" -- and "Documentation.SBV.Examples.WeakestPreconditions.GCD".@@ -95,18 +93,18 @@  -- | A measure takes the state and returns a sequence of integers. The ordering -- will be done lexicographically over the elements.-type Measure st = st -> [SInteger]+type WPMeasure st = st -> [SInteger]  -- | A statement in our imperative program, parameterized over the state.-data Stmt st = Skip                                                                     -- ^ Skip, do nothing.-             | Abort String                                                             -- ^ Abort execution. The name is for diagnostic purposes.-             | Assign (st -> st)                                                        -- ^ Assignment: Transform the state by a function.-             | If (st -> SBool) (Stmt st) (Stmt st)                                     -- ^ Conditional: @If condition thenBranch elseBranch@.-             | While String (Invariant st) (Maybe (Measure st)) (st -> SBool) (Stmt st) -- ^ A while loop: @While name invariant measure condition body@.-                                                                                        -- The string @name@ is merely for diagnostic purposes.-                                                                                        -- If the measure is 'Nothing', then only partial correctness-                                                                                        -- of this loop will be proven.-             | Seq [Stmt st]                                                            -- ^ A sequence of statements.+data Stmt st = Skip                                                                       -- ^ Skip, do nothing.+             | Abort String                                                               -- ^ Abort execution. The name is for diagnostic purposes.+             | Assign (st -> st)                                                          -- ^ Assignment: Transform the state by a function.+             | If (st -> SBool) (Stmt st) (Stmt st)                                       -- ^ Conditional: @If condition thenBranch elseBranch@.+             | While String (Invariant st) (Maybe (WPMeasure st)) (st -> SBool) (Stmt st) -- ^ A while loop: @While name invariant measure condition body@.+                                                                                          -- The string @name@ is merely for diagnostic purposes.+                                                                                          -- If the measure is 'Nothing', then only partial correctness+                                                                                          -- of this loop will be proven.+             | Seq [Stmt st]                                                              -- ^ A sequence of statements.  -- | An 'assert' is a quick way of ensuring some condition holds. If it does, -- then it's equivalent to 'Skip'. Otherwise, it is equivalent to 'Abort'.@@ -236,7 +234,7 @@                  Sat    -> do let checkVC :: (SBool, VC st SInteger) -> Query [VC res Integer]                                   checkVC (cond, vc) = do c <- getValue cond                                                           if c-                                                             then return []   -- The VC was OK+                                                             then pure []   -- The VC was OK                                                              else do vc' <- case vc of                                                                               BadPrecondition     s                 -> BadPrecondition     <$> project s                                                                               BadPostcondition    s1 s2             -> BadPostcondition    <$> project s1 <*> project s2@@ -246,13 +244,13 @@                                                                               InvariantMaintain l s1 s2             -> InvariantMaintain l <$> project s1 <*> project s2                                                                               MeasureBound      l (s, m)            -> do r <- project s                                                                                                                           v <- mapM getValue m-                                                                                                                          return $ MeasureBound l (r, v)+                                                                                                                          pure $ MeasureBound l (r, v)                                                                               MeasureDecrease   l (s1, i1) (s2, i2) -> do r1 <- project s1                                                                                                                           v1 <- mapM getValue i1                                                                                                                           r2 <- project s2                                                                                                                           v2 <- mapM getValue i2-                                                                                                                          return $ MeasureDecrease l (r1, v1) (r2, v2)-                                                                     return [vc']+                                                                                                                          pure $ MeasureDecrease l (r1, v1) (r2, v2)+                                                                     pure [vc']                                badVCs <- concat <$> mapM checkVC vcs @@ -269,7 +267,7 @@                               let disp c = mapM_ msg ["  " ++ l | l <- lines (show c)]                               mapM_ disp badVCs -                              return $ Failed badVCs+                              pure $ Failed badVCs          msg = io . when wpVerbose . putStrLn @@ -277,28 +275,28 @@         wp :: st -> Stmt st -> (st -> [(SBool, VC st SInteger)]) -> Query (st -> [(SBool, VC st SInteger)])          -- Skip simply keeps the conditions-        wp _ Skip post = return post+        wp _ Skip post = pure post          -- Abort is never satisfiable. The only way to have Abort's VC to pass is         -- to run it in a precondition (either via program or in an if branch) that         -- evaluates to false, i.e., it must not be reachable.-        wp start (Abort nm) _ = return $ \st -> [(sFalse, AbortReachable nm start st)]+        wp start (Abort nm) _ = pure $ \st -> [(sFalse, AbortReachable nm start st)]          -- Assign simply transforms the state and passes on. It also checks that the         -- stability constraints are not violated.-        wp _ (Assign f) post = return $ \st -> let st'       = f st-                                                   vcs       = map (\s -> let (nm, b) = s st st' in (b, Unstable nm st st')) stability-                                               in vcs ++ post st'+        wp _ (Assign f) post = pure $ \st -> let st'       = f st+                                                 vcs       = map (\s -> let (nm, b) = s st st' in (b, Unstable nm st st')) stability+                                             in vcs ++ post st'          -- Conditional: We separately collect the VCs, and predicate with the proper branch condition         wp start (If c tb fb) post = do tWP <- wp start tb post                                         fWP <- wp start fb post-                                        return $ \st -> let cond = c st-                                                        in   [(     cond .=> b, v) | (b, v) <- tWP st]-                                                          ++ [(sNot cond .=> b, v) | (b, v) <- fWP st]+                                        pure $ \st -> let cond = c st+                                                      in   [(     cond .=> b, v) | (b, v) <- tWP st]+                                                        ++ [(sNot cond .=> b, v) | (b, v) <- fWP st]          -- Sequencing: Simply run through the statements-        wp _     (Seq [])              post = return post+        wp _     (Seq [])              post = pure post         wp start (Seq (s:ss))          post = wp start s =<< wp start (Seq ss) post          -- While loop, where all the WP magic happens!@@ -308,7 +306,7 @@                 let noMeasure = isNothing mm                     m         = fromJust mm                     curM      = m st'-                    zero      = map (const 0) curM+                    zeroM     = map (const 0) curM                      iterates   = inv st' .&&       cond st'                     terminates = inv st' .&& sNot (cond st')@@ -317,7 +315,7 @@                 -- Condition 1: Invariant must hold prior to loop entry                 invHoldsPrior <- wp start Skip (\st -> [(inv st, InvariantPre nm st)]) -                -- Condition 2: If we iterate, invariant must be maitained by the body+                -- Condition 2: If we iterate, invariant must be maintained by the body                 invMaintained <- wp st' body (\st -> [(iterates .=> inv st, InvariantMaintain nm st' st)])                  -- Condition 3: If we terminate, invariant must be strong enough to establish the post condition@@ -325,20 +323,20 @@                  -- Condition 4: If we iterate, measure must always be non-negative                 measureNonNegative <- if noMeasure-                                      then return  (const [])-                                      else wp st' Skip (const [(iterates .=> curM .>= zero, MeasureBound nm (st', curM))])+                                      then pure  (const [])+                                      else wp st' Skip (const [(iterates .=> curM .>= zeroM, MeasureBound nm (st', curM))])                  -- Condition 5: If we iterate, the measure must decrease                 measureDecreases <- if noMeasure-                                    then return  (const [])+                                    then pure  (const [])                                     else wp st' body (\st -> let prevM = m st in [(iterates .=> prevM .< curM, MeasureDecrease nm (st', curM) (st, prevM))])                  -- Simply concatenate the VCs from all our conditions:-                return $ \st ->    invHoldsPrior      st-                                ++ invMaintained      st'-                                ++ invEstablish       st'-                                ++ measureNonNegative st'-                                ++ measureDecreases   st'+                pure $ \st ->    invHoldsPrior      st+                              ++ invMaintained      st'+                              ++ invEstablish       st'+                              ++ measureNonNegative st'+                              ++ measureDecreases   st'  -- | Check correctness using the default solver. Equivalent to @'wpProveWith' 'defaultWPCfg'@. wpProve :: (Show res, Mergeable st, Queriable IO st, res ~ QueryResult st) => Program st -> IO (ProofResult res)@@ -390,7 +388,7 @@                           else giveUp start (BadPrecondition start) "*** Initial state does not satisfy the precondition:"                  case status of-                  s@Stuck{} -> return s+                  s@Stuck{} -> pure s                   Good end  -> if unwrap [] "checking postcondition" (postcondition end)                                then step [] end "*** Program successfully terminated, post condition holds of the final state:"                                else giveUp end (BadPostcondition start end) "*** Failed, final state does not satisfy the postcondition:"@@ -405,16 +403,16 @@         step :: Loc -> st -> String -> IO (Status st)         step l st m = do putStrLn $ sLoc l m                          printST st-                         return $ Good st+                         pure $ Good st          stop :: Loc -> VC st Integer -> String -> IO (Status st)         stop l vc m = do putStrLn $ sLoc l m-                         return $ Stuck vc+                         pure $ Stuck vc          giveUp :: st -> VC st Integer -> String -> IO (Status st)         giveUp st vc m = do r <- stop [] vc m                             printST st-                            return r+                            pure r          dispST :: st -> String         dispST st = intercalate "\n" ["  " ++ l | l <- lines (show st)]@@ -436,7 +434,7 @@                                                     ]          go :: Loc -> Stmt st -> Status st -> IO (Status st)-        go _   _ s@Stuck{}  = return s+        go _   _ s@Stuck{}  = pure s         go loc p (Good  st) = analyze p           where analyze Skip = step loc st "Skip" @@ -455,7 +453,7 @@                   where branchTrue = unwrap loc "evaluating the test condition" (c st)                  analyze (Seq stmts)  = walk stmts 1 (Good st)-                  where walk []     _ is = return is+                  where walk []     _ is = pure is                         walk (s:ss) c is = walk ss (c+1) =<< go (Line c : loc) s is                  analyze (While loopName invariant mbMeasure condition body)@@ -472,20 +470,20 @@                          currentMeasure   = map (unwrap loc (tag  "evaluating the measure"))   . measure                          currentInvariant = unwrap loc (tag  "evaluating the invariant")       . invariant -                         while _ _      _      s@Stuck{}  = return s+                         while _ _      _      s@Stuck{}  = pure s                          while c prevST mbPrev (Good  is)                            | not (currentCondition is)                            = step loc is $ tag "condition fails, terminating"                            | not (currentInvariant is)                            = stop loc (InvariantMaintain loopName prevST is) $ tag "invariant fails to hold in iteration " ++ show c-                           | hasMeasure && mCur < zero+                           | hasMeasure && mCur < zeroM                            = stop loc (MeasureBound loopName (is, mCur)) $ tag "measure must be non-negative, evaluated to: " ++ show mCur                            | hasMeasure, Just mPrev <- mbPrev, mCur >= mPrev                            = stop loc (MeasureDecrease loopName (prevST, mPrev) (is, mCur)) $ tag $ "measure failed to decrease, prev = " ++ show mPrev ++ ", current = " ++ show mCur                            | True                            = do nextState <- go (Iteration c : loc) body =<< step loc is (tag "condition holds, executing the body")                                 while (c+1) is (Just mCur) nextState-                           where mCur = currentMeasure is-                                 zero = map (const 0) mCur+                           where mCur  = currentMeasure is+                                 zeroM = map (const 0) mCur  {- HLint ignore traceExecution "Use fromMaybe" -}
Data/SBV/Trans.hs view
@@ -26,7 +26,7 @@   , SWord8, SWord16, SWord32, SWord64, SWord, WordN   -- *** Signed bit-vectors   , SInt8, SInt16, SInt32, SInt64, SInt, IntN-  -- *** Converting between fixed-size and arbitrary bitvectors+  -- *** Converting between fixed-size and arbitrary bit-vectors   , BVIsNonZero, FromSized, ToSized, fromSized, toSized   -- ** Unbounded integers   , SInteger@@ -49,7 +49,7 @@   , sBools, sWord8s, sWord16s, sWord32s, sWord64s, sWords, sInt8s, sInt16s, sInt32s, sInt64s, sInts, sIntegers, sReals, sFloats, sDoubles, sChars, sStrings, sLists, sArrays    -- * Symbolic Equality and Comparisons-  , EqSymbolic(..), OrdSymbolic(..), Equality(..)+  , EqSymbolic(..), OrdSymbolic(..), Zero(..), MeasureOf, Equality(..)   -- * Conditionals: Mergeable values   , Mergeable(..), ite, iteLazy @@ -85,11 +85,8 @@   , blastSDouble   , blastSFloatingPoint -  -- * Enumerations-  , mkSymbolicEnumeration--  -- * Uninterpreted sorts, axioms, constants, and functions-  , mkUninterpretedSort, SMTDefinable(..)+  -- * Symbolic types+  , mkSymbolic, SMTDefinable(..), smtFunction, smtFunctionWithMeasure    -- * Properties, proofs, and satisfiability   , Predicate, ConstraintSet, ProvableM(..), Provable, SatisfiableM(..), Satisfiable@@ -137,7 +134,7 @@    -- ** Programmable model extraction   , SatModel(..), Modelable(..), displayModels, extractModels-  , getModelDictionaries, getModelValues, getModelUninterpretedValues+  , getModelDictionaries, getModelValues    -- * SMT Interface   , SMTConfig(..), Timing(..), SMTLibVersion(..), Solver(..), SMTSolver(..)
Data/SBV/Trans/Control.hs view
@@ -22,7 +22,7 @@       -- * Querying the solver      -- ** Extracting values-     , getValue, getFunction, getUninterpretedValue, getModel, getAssignment, getSMTResult, getUnknownReason, getObservables+     , getValue, getFunction, getModel, getAssignment, getSMTResult, getUnknownReason, getObservables       -- ** Extracting the unsat core      , getUnsatCore
Data/SBV/Tuple.hs view
@@ -16,11 +16,9 @@ {-# LANGUAGE FlexibleInstances      #-} {-# LANGUAGE FunctionalDependencies #-} {-# LANGUAGE KindSignatures         #-}-{-# LANGUAGE Rank2Types             #-}-{-# LANGUAGE ScopedTypeVariables    #-} {-# LANGUAGE TypeApplications       #-} -{-# OPTIONS_GHC -Wall -Werror -fno-warn-orphans #-}+{-# OPTIONS_GHC -Wall -Werror -Wno-orphans #-}  module Data.SBV.Tuple (   -- * Symbolic field access@@ -29,6 +27,8 @@   , tuple, untuple   -- * Swapping, only for 2-tuples   , swap+  -- * Currying and uncurrying+  , curry, uncurry, curry3, uncurry3   -- * Extractors for 2-tuple   , fst, snd   -- * Extractors for 3-tuple@@ -41,7 +41,7 @@ import Data.SBV.Core.Symbolic import Data.SBV.Core.Model -import Prelude hiding (fst, snd)+import Prelude hiding (fst, snd, curry, uncurry)  #ifdef DOCTEST -- $setup@@ -63,6 +63,29 @@ swap t = tuple (b, a)   where (a, b) = untuple t +-- | Symbolic currying: turn a function that takes a symbolic 2-tuple into one+-- that takes its two components separately. The inverse of 'uncurry'.+curry :: (SymVal a, SymVal b) => (STuple a b -> r) -> SBV a -> SBV b -> r+curry f a b = f (tuple (a, b))++-- | Symbolic uncurrying: turn a function of two arguments into one that takes a+-- symbolic 2-tuple. The inverse of 'curry'.+uncurry :: (SymVal a, SymVal b) => (SBV a -> SBV b -> r) -> STuple a b -> r+uncurry f t = f a b+  where (a, b) = untuple t++-- | Symbolic currying for 3-tuples: turn a function that takes a symbolic+-- 3-tuple into one that takes its three components separately. The inverse of+-- 'uncurry3'.+curry3 :: (SymVal a, SymVal b, SymVal c) => (STuple3 a b c -> r) -> SBV a -> SBV b -> SBV c -> r+curry3 f a b c = f (tuple (a, b, c))++-- | Symbolic uncurrying for 3-tuples: turn a function of three arguments into+-- one that takes a symbolic 3-tuple. The inverse of 'curry3'.+uncurry3 :: (SymVal a, SymVal b, SymVal c) => (SBV a -> SBV b -> SBV c -> r) -> STuple3 a b c -> r+uncurry3 f t = f a b c+  where (a, b, c) = untuple t+ -- | First of a tuple fst :: (SymVal a, SymVal b) => STuple a b -> SBV a fst t = a where (a, _) = untuple t@@ -79,7 +102,7 @@ snd3 :: (SymVal a, SymVal b, SymVal c) => STuple3 a b c -> SBV b snd3 t = b where (_, b, _) = untuple t --- | Thirdd of a 3-tuple+-- | Third of a 3-tuple thd3 :: (SymVal a, SymVal b, SymVal c) => STuple3 a b c -> SBV c thd3 t = c where (_, _, c) = untuple t 
Data/SBV/Utils/CrackNum.hs view
@@ -11,7 +11,7 @@  {-# LANGUAGE NamedFieldPuns #-} -{-# OPTIONS_GHC -Wall -Werror -Wno-incomplete-uni-patterns #-}+{-# OPTIONS_GHC -Wall -Werror #-}  module Data.SBV.Utils.CrackNum (         crackNum@@ -42,26 +42,33 @@   crackNum cv verbose mbIV = case kindOf cv of                                -- Maybe one day we'll have a use for these, currently cracking them                                -- any further seems overkill+                               KVar       {}  -> Nothing                                KBool      {}  -> Nothing                                KUnbounded {}  -> Nothing                                KReal      {}  -> Nothing-                               KUserSort  {}  -> Nothing+                               KApp       {}  -> Nothing+                               KADT       {}  -> Nothing                                KChar      {}  -> Nothing                                KString    {}  -> Nothing                                KList      {}  -> Nothing                                KSet       {}  -> Nothing                                KTuple     {}  -> Nothing-                               KMaybe     {}  -> Nothing-                               KEither    {}  -> Nothing                                KRational  {}  -> Nothing                                KArray     {}  -> Nothing                                 -- Actual crackables-                               KFloat{}       -> Just $ let CFloat   f = cvVal cv in float verbose mbIV f-                               KDouble{}      -> Just $ let CDouble  d = cvVal cv in float verbose mbIV d-                               KFP{}          -> Just $ let CFP      f = cvVal cv in float verbose mbIV f-                               KBounded sg sz -> Just $ let CInteger i = cvVal cv in int   sg sz i+                               KFloat{}       | CFloat   f <- cvVal cv -> Just $ float verbose mbIV f+                                              | True                   -> Nothing   -- Can't really happen; but don't die +                               KDouble{}      | CDouble  d <- cvVal cv -> Just $ float verbose mbIV d+                                              | True                   -> Nothing   -- Can't really happen; but don't die++                               KFP{}          | CFP      f <- cvVal cv -> Just $ float verbose mbIV f+                                              | True                   -> Nothing   -- Can't really happen; but don't die++                               KBounded sg sz | CInteger i <- cvVal cv -> Just $ int   sg sz i+                                              | True                   -> Nothing   -- Can't really happen; but don't die+ -- How far off the screen we want displayed? Somewhat experimentally found. tab :: String tab = replicate 18 ' '@@ -76,7 +83,7 @@  -- Convert bits to the corresponding integer. getVal :: [Bool] -> Integer-getVal = foldl (\s b -> 2 * s + if b then 1 else 0) 0+getVal = foldl' (\s b -> 2 * s + if b then 1 else 0) 0  -- Show in hex, but pay attention to how wide a field it should be in mkHex :: [Bool] -> String
Data/SBV/Utils/Lib.hs view
@@ -9,7 +9,6 @@ -- Misc helpers ----------------------------------------------------------------------------- -{-# LANGUAGE RankNTypes          #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TypeApplications    #-} @@ -18,22 +17,30 @@ module Data.SBV.Utils.Lib ( mlift2, mlift3, mlift4, mlift5, mlift6, mlift7, mlift8                           , joinArgs, splitArgs                           , stringToQFS, qfsToString+                          , showText                           , isKString                           , checkObservableName-                          , needsBars, barify, isEnclosedInBars-                          , noSurrounding, unQuote, unBar, nameSupply+                          , needsBars, barify+                          , unQuote, unBar, nameSupply                           , atProxy+                          , mapToSortedList                           ,   curry2,   curry3,   curry4,   curry5,   curry6,   curry7,   curry8,   curry9,   curry10,   curry11,   curry12                           , uncurry2, uncurry3, uncurry4, uncurry5, uncurry6, uncurry7, uncurry8, uncurry9, uncurry10, uncurry11, uncurry12                           )                           where  import Data.Char    (isSpace, chr, ord, isDigit, isAscii, isAlphaNum)-import Data.List    (isPrefixOf, isSuffixOf)+import Data.List    (isPrefixOf, isSuffixOf, sortBy)+import Data.Ord     (comparing) import Data.Dynamic (fromDynamic, toDyn, Typeable) import Data.Maybe   (fromJust, isJust, isNothing) import Data.Proxy+import Data.Text    (Text) +import qualified Data.Text as T++import qualified Data.Map.Strict as Map+ import Type.Reflection (typeRep)  import Numeric (readHex, showHex)@@ -47,31 +54,31 @@  -- | Monadic lift over 2-tuples mlift2 :: Monad m => (a' -> b' -> r) -> (a -> m a') -> (b -> m b') -> (a, b) -> m r-mlift2 k f g (a, b) = f a >>= \a' -> g b >>= \b' -> return $ k a' b'+mlift2 k f g (a, b) = f a >>= \a' -> g b >>= \b' -> pure $ k a' b'  -- | Monadic lift over 3-tuples mlift3 :: Monad m => (a' -> b' -> c' -> r) -> (a -> m a') -> (b -> m b') -> (c -> m c') -> (a, b, c) -> m r-mlift3 k f g h (a, b, c) = f a >>= \a' -> g b >>= \b' -> h c >>= \c' -> return $ k a' b' c'+mlift3 k f g h (a, b, c) = f a >>= \a' -> g b >>= \b' -> h c >>= \c' -> pure $ k a' b' c'  -- | Monadic lift over 4-tuples mlift4 :: Monad m => (a' -> b' -> c' -> d' -> r) -> (a -> m a') -> (b -> m b') -> (c -> m c') -> (d -> m d') -> (a, b, c, d) -> m r-mlift4 k f g h i (a, b, c, d) = f a >>= \a' -> g b >>= \b' -> h c >>= \c' -> i d >>= \d' -> return $ k a' b' c' d'+mlift4 k f g h i (a, b, c, d) = f a >>= \a' -> g b >>= \b' -> h c >>= \c' -> i d >>= \d' -> pure $ k a' b' c' d'  -- | Monadic lift over 5-tuples mlift5 :: Monad m => (a' -> b' -> c' -> d' -> e' -> r) -> (a -> m a') -> (b -> m b') -> (c -> m c') -> (d -> m d') -> (e -> m e') -> (a, b, c, d, e) -> m r-mlift5 k f g h i j (a, b, c, d, e) = f a >>= \a' -> g b >>= \b' -> h c >>= \c' -> i d >>= \d' -> j e >>= \e' -> return $ k a' b' c' d' e'+mlift5 k f g h i j (a, b, c, d, e) = f a >>= \a' -> g b >>= \b' -> h c >>= \c' -> i d >>= \d' -> j e >>= \e' -> pure $ k a' b' c' d' e'  -- | Monadic lift over 6-tuples mlift6 :: Monad m => (a' -> b' -> c' -> d' -> e' -> f' -> r) -> (a -> m a') -> (b -> m b') -> (c -> m c') -> (d -> m d') -> (e -> m e') -> (f -> m f') -> (a, b, c, d, e, f) -> m r-mlift6 k f g h i j l (a, b, c, d, e, y) = f a >>= \a' -> g b >>= \b' -> h c >>= \c' -> i d >>= \d' -> j e >>= \e' -> l y >>= \y' -> return $ k a' b' c' d' e' y'+mlift6 k f g h i j l (a, b, c, d, e, y) = f a >>= \a' -> g b >>= \b' -> h c >>= \c' -> i d >>= \d' -> j e >>= \e' -> l y >>= \y' -> pure $ k a' b' c' d' e' y'  -- | Monadic lift over 7-tuples mlift7 :: Monad m => (a' -> b' -> c' -> d' -> e' -> f' -> g' -> r) -> (a -> m a') -> (b -> m b') -> (c -> m c') -> (d -> m d') -> (e -> m e') -> (f -> m f') -> (g -> m g') -> (a, b, c, d, e, f, g) -> m r-mlift7 k f g h i j l m (a, b, c, d, e, y, z) = f a >>= \a' -> g b >>= \b' -> h c >>= \c' -> i d >>= \d' -> j e >>= \e' -> l y >>= \y' -> m z >>= \z' -> return $ k a' b' c' d' e' y' z'+mlift7 k f g h i j l m (a, b, c, d, e, y, z) = f a >>= \a' -> g b >>= \b' -> h c >>= \c' -> i d >>= \d' -> j e >>= \e' -> l y >>= \y' -> m z >>= \z' -> pure $ k a' b' c' d' e' y' z'  -- | Monadic lift over 8-tuples mlift8 :: Monad m => (a' -> b' -> c' -> d' -> e' -> f' -> g' -> h' -> r) -> (a -> m a') -> (b -> m b') -> (c -> m c') -> (d -> m d') -> (e -> m e') -> (f -> m f') -> (g -> m g') -> (h -> m h') -> (a, b, c, d, e, f, g, h) -> m r-mlift8 k f g h i j l m n (a, b, c, d, e, y, z, w) = f a >>= \a' -> g b >>= \b' -> h c >>= \c' -> i d >>= \d' -> j e >>= \e' -> l y >>= \y' -> m z >>= \z' -> n w >>= \w' -> return $ k a' b' c' d' e' y' z' w'+mlift8 k f g h i j l m n (a, b, c, d, e, y, z, w) = f a >>= \a' -> g b >>= \b' -> h c >>= \c' -> i d >>= \d' -> j e >>= \e' -> l y >>= \y' -> m z >>= \z' -> n w >>= \w' -> pure $ k a' b' c' d' e' y' z' w'  -- Command line argument parsing code courtesy of Neil Mitchell's cmdargs package: see -- <http://github.com/ndmitchell/cmdargs/blob/master/System/Console/CmdArgs/Explicit/SplitJoin.hs>@@ -135,6 +142,10 @@         -- Otherwise, just proceed; hopefully we covered everything above         go (c : rest) = c : go rest +-- | Show a value as 'Text'.+showText :: Show a => a -> Text+showText = T.pack . show+ -- | Given a Haskell string, convert it to SMTLib. if ord is 0x00020 to 0x0007E, then we print it as is -- to cover the printable ASCII range. stringToQFS :: String -> String@@ -273,3 +284,9 @@  uncurry12 :: (a -> b -> c -> d -> e -> f -> g -> h -> i -> j -> k -> l -> z) -> (a, b, c, d, e, f, g, h, i, j, k, l) -> z uncurry12 fn (a, b, c, d, e, f, g, h, i, j, k, l) = fn a b c d e f g h i j k l++-- | Convert a map to a list of @(value, key)@ pairs, sorted by value.+-- Useful when the map is keyed by a descriptor but indexed by an integer+-- that determines output order.+mapToSortedList :: Ord v => Map.Map k v -> [(v, k)]+mapToSortedList = sortBy (comparing fst) . map (\(a, b) -> (b, a)) . Map.toList
Data/SBV/Utils/Numeric.hs view
@@ -9,20 +9,25 @@ -- Various number related utilities ----------------------------------------------------------------------------- -{-# LANGUAGE FlexibleContexts #-}+{-# LANGUAGE FlexibleContexts  #-}+{-# LANGUAGE OverloadedStrings #-}  {-# OPTIONS_GHC -Wall -Werror #-}  module Data.SBV.Utils.Numeric (            fpMaxH, fpMinH, fp2fp, fpRemH, fpRoundToIntegralH, fpIsEqualObjectH, fpCompareObjectH, fpIsNormalizedH          , floatToWord, wordToFloat, doubleToWord, wordToDouble+         , RoundingMode(..), smtRoundingMode          ) where  import Data.Word+import Data.Text         (Text) import Data.Array.ST     (newArray, readArray, MArray, STUArray) import Data.Array.Unsafe (castSTUArray) import GHC.ST            (runST, ST) +import Test.QuickCheck  (Arbitrary(..), elements)+ -- | The SMT-Lib (in particular Z3) implementation for min/max for floats does not agree with -- Haskell's; and also it does not agree with what the hardware does. Sigh.. See: --      <https://gitlab.haskell.org/ghc/ghc/-/issues/10378>@@ -69,7 +74,7 @@   | isInfinite x || isNaN x = 0 / 0   | y == 0       || isNaN y = 0 / 0   | isInfinite y            = x-  | True                    = pSign (x - fromRational (fromInteger d * ry))+  | True                    = pSign (fromRational (rx - fromInteger d * ry))   where rx, ry, rd :: Rational         rx = toRational x         ry = toRational y@@ -87,7 +92,7 @@   | isNaN x      = x   | x == 0       = x   | isInfinite x = x-  | i == 0       = if x < 0 || isNegativeZero x then -0.0 else 0.0+  | i == 0       = if x < 0 then -0.0 else 0.0   | True         = fromInteger i   where i :: Integer         i = round x@@ -152,3 +157,30 @@ {-# INLINE cast #-} cast :: (MArray (STUArray s) a (ST s), MArray (STUArray s) b (ST s)) => a -> ST s b cast x = newArray (0 :: Int, 0) x >>= castSTUArray >>= flip readArray 0++-- | Rounding mode to be used for the IEEE floating-point operations.+-- Note that Haskell's default is 'RoundNearestTiesToEven'. If you use+-- a different rounding mode, then the counter-examples you get may not+-- match what you observe in Haskell.+data RoundingMode = RoundNearestTiesToEven  -- ^ Round to nearest representable floating point value.+                                            -- If precisely at half-way, pick the even number.+                                            -- (In this context, /even/ means the lowest-order bit is zero.)+                  | RoundNearestTiesToAway  -- ^ Round to nearest representable floating point value.+                                            -- If precisely at half-way, pick the number further away from 0.+                                            -- (That is, for positive values, pick the greater; for negative values, pick the smaller.)+                  | RoundTowardPositive     -- ^ Round towards positive infinity. (Also known as rounding-up or ceiling.)+                  | RoundTowardNegative     -- ^ Round towards negative infinity. (Also known as rounding-down or floor.)+                  | RoundTowardZero         -- ^ Round towards zero. (Also known as truncation.)+                  deriving (Show, Enum, Bounded)++-- | Arbitrary instance for 'RoundingMode'+instance Arbitrary RoundingMode where+  arbitrary = elements [minBound .. maxBound]++-- | Convert a rounding mode to the format SMT-Lib2 understands.+smtRoundingMode :: RoundingMode -> Text+smtRoundingMode RoundNearestTiesToEven = "roundNearestTiesToEven"+smtRoundingMode RoundNearestTiesToAway = "roundNearestTiesToAway"+smtRoundingMode RoundTowardPositive    = "roundTowardPositive"+smtRoundingMode RoundTowardNegative    = "roundTowardNegative"+smtRoundingMode RoundTowardZero        = "roundTowardZero"
Data/SBV/Utils/PrettyNum.hs view
@@ -10,9 +10,10 @@ -----------------------------------------------------------------------------  {-# LANGUAGE FlexibleInstances   #-}+{-# LANGUAGE OverloadedStrings   #-} {-# LANGUAGE ScopedTypeVariables #-} -{-# OPTIONS_GHC -Wall -Werror -Wno-incomplete-uni-patterns #-}+{-# OPTIONS_GHC -Wall -Werror #-}  module Data.SBV.Utils.PrettyNum (         PrettyNum(..), readBin, shex, chex, shexI, sbin, sbinI@@ -21,13 +22,15 @@       , showNegativeNumber       ) where -import Data.Bits  ((.&.), countTrailingZeros)+import Data.Bits  ((.&.), countTrailingZeros, testBit) import Data.Char  (intToDigit, ord, chr) import Data.Int   (Int8, Int16, Int32, Int64) import Data.List  (isPrefixOf)-import Data.Maybe (fromJust, fromMaybe, listToMaybe)+import Data.Maybe (fromMaybe, listToMaybe) import Data.Ratio (numerator, denominator) import Data.Word  (Word8, Word16, Word32, Word64)+import Data.Text  (Text)+import qualified Data.Text as T  import qualified Data.Set as Set @@ -35,44 +38,45 @@ import qualified Numeric as N (showHFloat)  import Data.SBV.Core.Data-import Data.SBV.Core.Kind (smtType, smtRoundingMode, showBaseKind)+import Data.SBV.Core.Kind (smtType, showBaseKind)  import Data.SBV.Core.AlgReals    (algRealToSMTLib2) import Data.SBV.Core.SizedFloats (fprToSMTLib2, bfToString) -import Data.SBV.Utils.Lib (stringToQFS)+import Data.SBV.Utils.Lib     (stringToQFS, showText)+import Data.SBV.Utils.Numeric (smtRoundingMode, floatToWord, doubleToWord)  -- | PrettyNum class captures printing of numbers in hex and binary formats; also supporting negative numbers. class PrettyNum a where   -- | Show a number in hexadecimal, starting with @0x@ and type.-  hexS :: a -> String+  hexS :: a -> Text   -- | Show a number in binary, starting with @0b@ and type.-  binS :: a -> String+  binS :: a -> Text   -- | Show a number in hexadecimal, starting with @0x@ but no type.-  hexP :: a -> String+  hexP :: a -> Text   -- | Show a number in binary, starting with @0b@ but no type.-  binP :: a -> String+  binP :: a -> Text   -- | Show a number in hex, without prefix, or types.-  hex :: a -> String+  hex :: a -> Text   -- | Show a number in bin, without prefix, or types.-  bin :: a -> String+  bin :: a -> Text  -- Why not default methods? Because defaults need "Integral a" but Bool is not.. instance PrettyNum Bool where-  hexS = show-  binS = show-  hexP = show-  binP = show-  hex  = show-  bin  = show+  hexS = showText+  binS = showText+  hexP = showText+  binP = showText+  hex  = showText+  bin  = showText  instance PrettyNum String where-  hexS = show-  binS = show-  hexP = show-  binP = show-  hex  = show-  bin  = show+  hexS = showText+  binS = showText+  hexP = showText+  binP = showText+  hex  = showText+  bin  = showText  instance PrettyNum Word8 where   hexS = shex True  True  (False, 8)@@ -164,106 +168,77 @@   hex  = shexI False False   bin  = sbinI False False -shBKind :: HasKind a => a -> String-shBKind a = " :: " ++ showBaseKind (kindOf a)+shBKind :: HasKind a => a -> Text+shBKind a = " :: " <> showBaseKind (kindOf a)  instance PrettyNum CV where-  hexS cv | isUserSort      cv = shows cv                                               $  shBKind cv-          | isBoolean       cv = hexS (cvToBool cv)                                     ++ shBKind cv-          | isFloat         cv = let CFloat   f = cvVal cv in N.showHFloat f            $  shBKind cv-          | isDouble        cv = let CDouble  d = cvVal cv in N.showHFloat d            $  shBKind cv-          | isFP            cv = let CFP      f = cvVal cv in bfToString 16 True True f ++ shBKind cv-          | isReal          cv = let CAlgReal r = cvVal cv in show r                    ++ shBKind cv-          | isString        cv = let CString  s = cvVal cv in show s                    ++ shBKind cv-          | not (isBounded cv) = let CInteger i = cvVal cv in shexI True True i-          | True               = let CInteger i = cvVal cv in shex  True True (hasSign cv, intSizeOf cv) i--  binS cv | isUserSort      cv = shows cv                                              $  shBKind cv-          | isBoolean       cv = binS (cvToBool cv)                                    ++ shBKind cv-          | isFloat         cv = let CFloat   f = cvVal cv in showBFloat f             $  shBKind cv-          | isDouble        cv = let CDouble  d = cvVal cv in showBFloat d             $  shBKind cv-          | isFP            cv = let CFP      f = cvVal cv in bfToString 2 True True f ++ shBKind cv-          | isReal          cv = let CAlgReal r = cvVal cv in shows r                  $  shBKind cv-          | isString        cv = let CString  s = cvVal cv in shows s                  $  shBKind cv-          | not (isBounded cv) = let CInteger i = cvVal cv in sbinI True True i-          | True               = let CInteger i = cvVal cv in sbin  True True (hasSign cv, intSizeOf cv) i--  hexP cv | isUserSort      cv = show cv-          | isBoolean       cv = hexS (cvToBool cv)-          | isFloat         cv = let CFloat   f = cvVal cv in show f-          | isDouble        cv = let CDouble  d = cvVal cv in show d-          | isFP            cv = let CFP      f = cvVal cv in bfToString 16 True True f-          | isReal          cv = let CAlgReal r = cvVal cv in show r-          | isString        cv = let CString  s = cvVal cv in show s-          | not (isBounded cv) = let CInteger i = cvVal cv in shexI False True i-          | True               = let CInteger i = cvVal cv in shex  False True (hasSign cv, intSizeOf cv) i--  binP cv | isUserSort      cv = show cv-          | isBoolean       cv = binS (cvToBool cv)-          | isFloat         cv = let CFloat   f = cvVal cv in show f-          | isDouble        cv = let CDouble  d = cvVal cv in show d-          | isFP            cv = let CFP      f = cvVal cv in bfToString 2 True True f-          | isReal          cv = let CAlgReal r = cvVal cv in show r-          | isString        cv = let CString  s = cvVal cv in show s-          | not (isBounded cv) = let CInteger i = cvVal cv in sbinI False True i-          | True               = let CInteger i = cvVal cv in sbin  False True (hasSign cv, intSizeOf cv) i--  hex cv  | isUserSort      cv = show cv-          | isBoolean       cv = hexS (cvToBool cv)-          | isFloat         cv = let CFloat   f = cvVal cv in show f-          | isDouble        cv = let CDouble  d = cvVal cv in show d-          | isFP            cv = let CFP      f = cvVal cv in bfToString 16 False True f-          | isReal          cv = let CAlgReal r = cvVal cv in show r-          | isString        cv = let CString  s = cvVal cv in show s-          | not (isBounded cv) = let CInteger i = cvVal cv in shexI False False i-          | True               = let CInteger i = cvVal cv in shex  False False (hasSign cv, intSizeOf cv) i+  hexS = cvPretty True  True  True  True  (\f -> T.pack (N.showHFloat f "")) (\d -> T.pack (N.showHFloat d ""))+  binS = cvPretty False True  True  True  (\f -> T.pack (showBFloat f ""))   (\d -> T.pack (showBFloat d ""))+  hexP = cvPretty True  False True  False showText                           showText+  binP = cvPretty False False True  False showText                           showText+  hex  = cvPretty True  False False False showText                           showText+  bin  = cvPretty False False False False showText                           showText -  bin cv  | isUserSort      cv = show cv-          | isBoolean       cv = binS (cvToBool cv)-          | isFloat         cv = let CFloat   f = cvVal cv in show f-          | isDouble        cv = let CDouble  d = cvVal cv in show d-          | isFP            cv = let CFP      f = cvVal cv in bfToString 2 False True f-          | isReal          cv = let CAlgReal r = cvVal cv in show r-          | isString        cv = let CString  s = cvVal cv in show s-          | not (isBounded cv) = let CInteger i = cvVal cv in sbinI False False i-          | True               = let CInteger i = cvVal cv in sbin  False False (hasSign cv, intSizeOf cv) i+-- | Factor out the common structure of PrettyNum CV methods+cvPretty :: Bool              -- ^ isHex (True) or isBin (False)+         -> Bool              -- ^ Show type suffix on integers+         -> Bool              -- ^ Show prefix (0x/0b) on integers+         -> Bool              -- ^ Show kind suffix on non-integer cases+         -> (Float -> Text)   -- ^ Float formatter+         -> (Double -> Text)  -- ^ Double formatter+         -> CV -> Text+cvPretty isHex shType shPre shKind fmtF fmtD cv+  | isADT           cv                         = showText cv <> knd+  | isBoolean       cv                         = (if isHex then hexS else binS) (cvToBool cv) <> knd+  | isFloat         cv, CFloat   f <- cvVal cv = fmtF f <> knd+  | isDouble        cv, CDouble  d <- cvVal cv = fmtD d <> knd+  | isFP            cv, CFP      f <- cvVal cv = T.pack (bfToString base shPre True f) <> knd+  | isReal          cv, CAlgReal r <- cvVal cv = showText r <> knd+  | isString        cv, CString  s <- cvVal cv = showText s <> knd+  | not (isBounded cv), CInteger i <- cvVal cv = intI i+  | CInteger i <- cvVal cv                     = intB (hasSign cv, intSizeOf cv) i+  | True                                       = error $ "PrettyNum: Received CV that can't be displayed: " ++ show cv+  where knd  = if shKind then shBKind cv else ""+        base = if isHex then 16 else 2+        intI = (if isHex then shexI else sbinI) shType shPre+        intB = (if isHex then shex  else sbin)  shType shPre  instance (SymVal a, PrettyNum a) => PrettyNum (SBV a) where-  hexS s = maybe (show s) (hexS :: a -> String) $ unliteral s-  binS s = maybe (show s) (binS :: a -> String) $ unliteral s+  hexS s = maybe (showText s) (hexS :: a -> Text) $ unliteral s+  binS s = maybe (showText s) (binS :: a -> Text) $ unliteral s -  hexP s = maybe (show s) (hexP :: a -> String) $ unliteral s-  binP s = maybe (show s) (binP :: a -> String) $ unliteral s+  hexP s = maybe (showText s) (hexP :: a -> Text) $ unliteral s+  binP s = maybe (showText s) (binP :: a -> Text) $ unliteral s -  hex  s = maybe (show s) (hex  :: a -> String) $ unliteral s-  bin  s = maybe (show s) (bin  :: a -> String) $ unliteral s+  hex  s = maybe (showText s) (hex  :: a -> Text) $ unliteral s+  bin  s = maybe (showText s) (bin  :: a -> Text) $ unliteral s  -- | Show as a hexadecimal value. First bool controls whether type info is printed -- while the second boolean controls whether 0x prefix is printed. The tuple is -- the signedness and the bit-length of the input. The length of the string -- will /not/ depend on the value, but rather the bit-length.-shex :: (Show a, Integral a) => Bool -> Bool -> (Bool, Int) -> a -> String+shex :: (Show a, Integral a) => Bool -> Bool -> (Bool, Int) -> a -> Text shex shType shPre (signed, size) a  | a < 0- = "-" ++ pre ++ pad l (s16 (abs (fromIntegral a :: Integer)))  ++ t+ = "-" <> pre <> T.pack (pad l (s16 (abs (fromIntegral a :: Integer)))) <> t  | True- = pre ++ pad l (s16 a) ++ t- where t | shType = " :: " ++ (if signed then "Int" else "Word") ++ show size-         | True   = ""+ = pre <> T.pack (pad l (s16 a)) <> t+ where t | shType = " :: " <> (if signed then "Int" else "Word") <> showText size+         | True   = T.empty        pre | shPre = "0x"-           | True  = ""+           | True  = T.empty        l = (size + 3) `div` 4  -- | Show as hexadecimal, but for C programs. We have to be careful about -- printing min-bounds, since C does some funky casting, possibly losing -- the sign bit. In those cases, we use the defined constants in <stdint.h>. -- We also properly append the necessary suffixes as needed.-chex :: (Show a, Integral a) => Bool -> Bool -> (Bool, Int) -> a -> String+chex :: (Show a, Integral a) => Bool -> Bool -> (Bool, Int) -> a -> Text chex shType shPre (signed, size) a    | Just s <- (signed, size, fromIntegral a) `lookup` specials-   = s+   = T.pack s    | True-   = shex shType shPre (signed, size) a ++ suffix+   = shex shType shPre (signed, size) a <> T.pack suffix   where specials :: [((Bool, Int, Integer), String)]         specials = [ ((True,  8, fromIntegral (minBound :: Int8)),  "INT8_MIN" )                    , ((True, 16, fromIntegral (minBound :: Int16)), "INT16_MIN")@@ -284,40 +259,40 @@ -- | Show as a hexadecimal value, integer version. Almost the same as shex above -- except we don't have a bit-length so the length of the string will depend -- on the actual value.-shexI :: Bool -> Bool -> Integer -> String+shexI :: Bool -> Bool -> Integer -> Text shexI shType shPre a  | a < 0- = "-" ++ pre ++ s16 (abs a)  ++ t+ = "-" <> pre <> T.pack (s16 (abs a)) <> t  | True- = pre ++ s16 a ++ t+ = pre <> T.pack (s16 a) <> t  where t | shType = " :: Integer"-         | True   = ""+         | True   = T.empty        pre | shPre = "0x"-           | True  = ""+           | True  = T.empty  -- | Similar to 'shex'; except in binary.-sbin :: (Show a, Integral a) => Bool -> Bool -> (Bool, Int) -> a -> String+sbin :: (Show a, Integral a) => Bool -> Bool -> (Bool, Int) -> a -> Text sbin shType shPre (signed,size) a  | a < 0- = "-" ++ pre ++ pad size (s2 (abs (fromIntegral a :: Integer)))  ++ t+ = "-" <> pre <> T.pack (pad size (s2 (abs (fromIntegral a :: Integer)))) <> t  | True- = pre ++ pad size (s2 a) ++ t- where t | shType = " :: " ++ (if signed then "Int" else "Word") ++ show size-         | True   = ""+ = pre <> T.pack (pad size (s2 a)) <> t+ where t | shType = " :: " <> (if signed then "Int" else "Word") <> showText size+         | True   = T.empty        pre | shPre = "0b"-           | True  = ""+           | True  = T.empty  -- | Similar to 'shexI'; except in binary.-sbinI :: Bool -> Bool -> Integer -> String+sbinI :: Bool -> Bool -> Integer -> Text sbinI shType shPre a  | a < 0- = "-" ++ pre ++ s2 (abs a) ++ t+ = "-" <> pre <> T.pack (s2 (abs a)) <> t  | True- =  pre ++ s2 a ++ t+ = pre <> T.pack (s2 a) <> t  where t | shType = " :: Integer"-         | True   = ""+         | True   = T.empty        pre | shPre = "0b"-           | True  = ""+           | True  = T.empty  -- | Pad a string to a given length. If the string is longer, then we don't drop anything. pad :: Int -> String -> String@@ -325,7 +300,7 @@  -- | Binary printer s2 :: (Show a, Integral a) => a -> String-s2  v = showIntAtBase 2 dig v "" where dig = fromJust . flip lookup [(0, '0'), (1, '1')]+s2  v = showIntAtBase 2 intToDigit v ""  -- | Hex printer s16 :: (Show a, Integral a) => a -> String@@ -338,7 +313,7 @@               [(a, "")] -> a               _         -> error $ "SBV.readBin: Cannot read a binary number from: " ++ show s   where cvt c = ord c - ord '0'-        isDigit = (`elem` "01")+        isDigit = (`elem` ("01" :: String))         s' | "0b" `isPrefixOf` s = drop 2 s            | True                = s @@ -375,53 +350,52 @@    | True                = show d  -- | A version of show for floats that generates correct SMTLib literals using the rounding mode-showSMTFloat :: RoundingMode -> Float -> String-showSMTFloat rm f+showSMTFloat :: Float -> Text+showSMTFloat f    | isNaN f             = as "NaN"    | isInfinite f, f < 0 = as "-oo"    | isInfinite f        = as "+oo"    | isNegativeZero f    = as "-zero"    | f == 0              = as "+zero"-   | True                = "((_ to_fp 8 24) " ++ smtRoundingMode rm ++ " " ++ toSMTLibRational (toRational f) ++ ")"-   where as s = "(_ " ++ s ++ " 8 24)"-+   | True                = let w   = floatToWord f+                               b i = if w `testBit` i then '1' else '0'+                               s   = T.pack [b 31]+                               e   = T.pack [b i | i <- [30, 29 .. 23]]+                               m   = T.pack [b i | i <- [22, 21 ..  0]]+                           in "(fp #b" <> s <> " #b" <> e <> " #b" <> m <> ")"+   where as s = "(_ " <> s <> " 8 24)"  -- | A version of show for doubles that generates correct SMTLib literals using the rounding mode-showSMTDouble :: RoundingMode -> Double -> String-showSMTDouble rm d+showSMTDouble :: Double -> Text+showSMTDouble d    | isNaN d             = as "NaN"    | isInfinite d, d < 0 = as "-oo"    | isInfinite d        = as "+oo"    | isNegativeZero d    = as "-zero"    | d == 0              = as "+zero"-   | True                = "((_ to_fp 11 53) " ++ smtRoundingMode rm ++ " " ++ toSMTLibRational (toRational d) ++ ")"-   where as s = "(_ " ++ s ++ " 11 53)"+   | True                = let w   = doubleToWord d+                               b i = if w `testBit` i then '1' else '0'+                               s   = T.pack [b 63]+                               e   = T.pack [b i | i <- [62, 61 .. 52]]+                               m   = T.pack [b i | i <- [51, 50 ..  0]]+                           in "(fp #b" <> s <> " #b" <> e <> " #b" <> m <> ")"+   where as s = "(_ " <> s <> " 11 53)"  -- | Show an SBV rational as an SMTLib value. This is used for faithful rationals.-showSMTRational :: Rational -> String-showSMTRational r = "(SBV.Rational " ++ showNegativeNumber (numerator r) ++ " " ++ showNegativeNumber (denominator r) ++ ")"---- | Show a rational in SMTLib format. This is used for conversions from regular rationals.-toSMTLibRational :: Rational -> String-toSMTLibRational r-   | n < 0-   = "(- (/ "  ++ show (abs n) ++ ".0 " ++ show d ++ ".0))"-   | True-   = "(/ " ++ show n ++ ".0 " ++ show d ++ ".0)"-  where n = numerator r-        d = denominator r+showSMTRational :: Rational -> Text+showSMTRational r = "(SBV.Rational " <> showNegativeNumber (numerator r) <> " " <> showNegativeNumber (denominator r) <> ")"  -- | Convert a CV to an SMTLib2 compliant value-cvToSMTLib :: RoundingMode -> CV -> String-cvToSMTLib rm x+cvToSMTLib :: CV -> Text+cvToSMTLib x   | isBoolean       x, CInteger  w      <- cvVal x = if w == 0 then "false" else "true"-  | isUserSort      x, CUserSort (_, s) <- cvVal x = roundModeConvert s-  | isReal          x, CAlgReal  r      <- cvVal x = algRealToSMTLib2 r-  | isFloat         x, CFloat    f      <- cvVal x = showSMTFloat  rm f-  | isDouble        x, CDouble   d      <- cvVal x = showSMTDouble rm d+  | isRoundingMode  x, CADT (s, [])     <- cvVal x = roundModeConvert s+  | isReal          x, CAlgReal  r      <- cvVal x = T.pack (algRealToSMTLib2 r)   | isRational      x, CRational r      <- cvVal x = showSMTRational r-  | isFP            x, CFP       f      <- cvVal x = fprToSMTLib2 f-  | not (isBounded x), CInteger  w      <- cvVal x = if w >= 0 then show w else "(- " ++ show (abs w) ++ ")"+  | isFloat         x, CFloat    f      <- cvVal x = showSMTFloat  f+  | isDouble        x, CDouble   d      <- cvVal x = showSMTDouble d+  | isFP            x, CFP       f      <- cvVal x = T.pack (fprToSMTLib2 f)+  | not (isBounded x), CInteger  w      <- cvVal x = if w >= 0 then showText w else "(- " <> showText (abs w) <> ")"   | not (hasSign x)  , CInteger  w      <- cvVal x = smtLibHex (intSizeOf x) w   -- signed numbers (with 2's complement representation) is problematic   -- since there's no way to put a bvneg over a positive number to get minBound..@@ -429,41 +403,42 @@   | hasSign x        , CInteger  w      <- cvVal x = if w == negate (2 ^ intSizeOf x)                                                      then mkMinBound (intSizeOf x)                                                      else negIf (w < 0) $ smtLibHex (intSizeOf x) (abs w)-  | isChar x         , CChar c          <- cvVal x = "(_ char " ++ smtLibHex 8 (fromIntegral (ord c)) ++ ")"-  | isString x       , CString s        <- cvVal x = '\"' : stringToQFS s ++ "\""+  | isChar x         , CChar c          <- cvVal x = "(_ char " <> smtLibHex 8 (fromIntegral (ord c)) <> ")"+  | isString x       , CString s        <- cvVal x = "\"" <> T.pack (stringToQFS s) <> "\""   | isList x         , CList xs         <- cvVal x = smtLibSeq (kindOf x) xs   | isSet x          , CSet s           <- cvVal x = smtLibSet (kindOf x) s   | isTuple x        , CTuple xs        <- cvVal x = smtLibTup (kindOf x) xs-  | isMaybe x        , CMaybe mc        <- cvVal x = smtLibMaybe  (kindOf x) mc-  | isEither x       , CEither ec       <- cvVal x = smtLibEither (kindOf x) ec    -- Arrays become sequence of stores-  | isArray x        , CArray ac       <- cvVal x = smtLibArray (kindOf x) ac+  | isArray x        , CArray ac       <- cvVal x  = smtLibArray (kindOf x) ac +  -- ADTs+  | isADT x          , CADT c          <- cvVal x = smtLibADT (cvKind x) c+   | True = error $ "SBV.cvtCV: Impossible happened: Kind/Value disagreement on: " ++ show (kindOf x, x)-  where roundModeConvert s = fromMaybe s (listToMaybe [smtRoundingMode m | m <- [minBound .. maxBound] :: [RoundingMode], show m == s])+  where roundModeConvert s = fromMaybe (T.pack s) (listToMaybe [smtRoundingMode m | m <- [minBound .. maxBound] :: [RoundingMode], show m == s])         -- Carefully code hex numbers, SMTLib is picky about lengths of hex constants. For the time         -- being, SBV only supports sizes that are multiples of 4, but the below code is more robust         -- in case of future extensions to support arbitrary sizes.-        smtLibHex :: Int -> Integer -> String-        smtLibHex 1  v = "#b" ++ show v+        smtLibHex :: Int -> Integer -> Text+        smtLibHex 1  v = "#b" <> showText v         smtLibHex sz v-          | sz `mod` 4 == 0 = "#x" ++ pad (sz `div` 4) (showHex v "")-          | True            = "#b" ++ pad sz (showBin v "")+          | sz `mod` 4 == 0 = "#x" <> T.pack (pad (sz `div` 4) (showHex v ""))+          | True            = "#b" <> T.pack (pad sz (showBin v ""))            where showBin = showIntAtBase 2 intToDigit-        negIf :: Bool -> String -> String-        negIf True  a = "(bvneg " ++ a ++ ")"+        negIf :: Bool -> Text -> Text+        negIf True  a = "(bvneg " <> a <> ")"         negIf False a = a -        smtLibSeq :: Kind -> [CVal] -> String-        smtLibSeq k          [] = "(as seq.empty " ++ smtType k ++ ")"+        smtLibSeq :: Kind -> [CVal] -> Text+        smtLibSeq k          [] = "(as seq.empty " <> smtType k <> ")"         smtLibSeq (KList ek) xs = let mkSeq  [e]   = e-                                      mkSeq  es    = "(seq.++ " ++ unwords es ++ ")"-                                      mkUnit inner = "(seq.unit " ++ inner ++ ")"-                                  in mkSeq (mkUnit . cvToSMTLib rm . CV ek <$> xs)-        smtLibSeq k _ = error "SBV.cvToSMTLib: Impossible case (smtLibSeq), received kind: " ++ show k+                                      mkSeq  es    = "(seq.++ " <> T.unwords es <> ")"+                                      mkUnit inner = "(seq.unit " <> inner <> ")"+                                  in mkSeq (mkUnit . cvToSMTLib . CV ek <$> xs)+        smtLibSeq k _ = error $ "SBV.cvToSMTLib: Impossible case (smtLibSeq), received kind: " ++ show k -        smtLibSet :: Kind -> RCSet CVal -> String+        smtLibSet :: Kind -> RCSet CVal -> Text         smtLibSet k set = case set of                             RegularSet    rs -> Set.foldr' (modify "true")  (start "false") rs                             ComplementSet rs -> Set.foldr' (modify "false") (start "true")  rs@@ -471,46 +446,39 @@                        KSet ek -> ek                        _       -> error $ "SBV.cvToSMTLib: Impossible case (smtLibSet), received kind: " ++ show k -                start def = "((as const " ++ smtType k ++ ") " ++ def ++ ")"+                start def = "((as const " <> smtType k <> ") " <> def <> ")" -                modify how e s = "(store " ++ s ++ " " ++ cvToSMTLib rm (CV ke e) ++ " " ++ how ++ ")"+                modify how e s = "(store " <> s <> " " <> cvToSMTLib (CV ke e) <> " " <> how <> ")" -        smtLibTup :: Kind -> [CVal] -> String+        smtLibTup :: Kind -> [CVal] -> Text         smtLibTup (KTuple []) _  = "mkSBVTuple0"-        smtLibTup (KTuple ks) xs = "(mkSBVTuple" ++ show (length ks) ++ " " ++ unwords (zipWith (\ek e -> cvToSMTLib rm (CV ek e)) ks xs) ++ ")"+        smtLibTup (KTuple ks) xs = "(mkSBVTuple" <> showText (length ks) <> " " <> T.unwords (zipWith (\ek e -> cvToSMTLib (CV ek e)) ks xs) <> ")"         smtLibTup k           _  = error $ "SBV.cvToSMTLib: Impossible case (smtLibTup), received kind: " ++ show k -        dtConstructor fld []   res =  "(as " ++ fld ++ " " ++ smtType res ++ ")"-        dtConstructor fld args res = "((as " ++ fld ++ " " ++ smtType res ++ ") " ++ unwords args ++ ")"--        smtLibMaybe :: Kind -> Maybe CVal -> String-        smtLibMaybe km@KMaybe{}   Nothing   = dtConstructor "nothing_SBVMaybe" []                       km-        smtLibMaybe km@(KMaybe k) (Just  c) = dtConstructor "just_SBVMaybe"    [cvToSMTLib rm (CV k c)] km-        smtLibMaybe k             _         = error $ "SBV.cvToSMTLib: Impossible case (smtLibMaybe), received kind: " ++ show k--        smtLibEither :: Kind -> Either CVal CVal -> String-        smtLibEither ke@(KEither  k _) (Left c)  = dtConstructor "left_SBVEither"  [cvToSMTLib rm (CV k c)] ke-        smtLibEither ke@(KEither  _ k) (Right c) = dtConstructor "right_SBVEither" [cvToSMTLib rm (CV k c)] ke-        smtLibEither k                 _         = error $ "SBV.cvToSMTLib: Impossible case (smtLibEither), received kind: " ++ show k-         -- Remember that in an ArrayModel we keep a history; i.e., the earlier elements are written later. So, we reverse the assocs-        smtLibArray :: Kind -> ArrayModel CVal CVal -> String+        smtLibArray :: Kind -> ArrayModel CVal CVal -> Text         smtLibArray k@(KArray k1 k2) (ArrayModel assocs def) = mkStoreChain k k1 k2 (reverse assocs) def         smtLibArray k              _                         = error $ "SBV.cvToSMTLib: Impossible case (smtLibArray), received non-matching kind: " ++ show k          mkStoreChain k k1 k2 writes def = walk writes base-          where base = "((as const " ++ smtType k ++ ") " ++ cvToSMTLib rm (CV k2 def) ++ ")"+          where base = "((as const " <> smtType k <> ") " <> cvToSMTLib (CV k2 def) <> ")"                  walk []                  sofar = sofar                 walk ((key, val) : rest) sofar = walk rest (store key val sofar) -                store key val sofar = "(store " ++ sofar ++ " " ++ cvToSMTLib rm (CV k1 key) ++ " " ++ cvToSMTLib rm (CV k2 val) ++ ")"+                store key val sofar = "(store " <> sofar <> " " <> cvToSMTLib (CV k1 key) <> " " <> cvToSMTLib (CV k2 val) <> ")"          -- anomaly at the 2's complement min value! Have to use binary notation here         -- as there is no positive value we can provide to make the bvneg work.. (see above)-        mkMinBound :: Int -> String-        mkMinBound i = "#b1" ++ replicate (i-1) '0'+        mkMinBound :: Int -> Text+        mkMinBound i = "#b1" <> T.replicate (i-1) "0" +        -- ADTs+        smtLibADT :: Kind -> (String,  [(Kind, CVal)]) -> Text+        smtLibADT knd (c, [])  = ascribe c knd+        smtLibADT knd (c, kvs) = "(" <> ascribe c knd <> " " <> T.unwords (map (\(k, v) -> cvToSMTLib (CV  k v)) kvs) <> ")"+        ascribe nm k = "(as " <> T.pack nm <> " " <> smtType k <> ")"+ -- | Show a float as a binary showBFloat :: (Show a, RealFloat a) => a -> ShowS showBFloat = showFloatAtBase 2@@ -573,7 +541,7 @@                   | True    = '<' : show v ++ ">"  -- | When we show a negative number in SMTLib, we must properly parenthesize.-showNegativeNumber :: (Show a, Num a, Ord a) => a -> String+showNegativeNumber :: (Show a, Num a, Ord a) => a -> Text showNegativeNumber i-  | i < 0 = "(- " ++ show (-i) ++ ")"-  | True  = show i+  | i < 0 = "(- " <> showText (-i) <> ")"+  | True  = showText i
Data/SBV/Utils/SExpr.hs view
@@ -40,7 +40,8 @@  -- | ADT S-Expression format, suitable for representing get-model output of SMT-Lib data SExpr = ECon           String-           | ENum           (Integer, Maybe Int)  -- Second argument is how wide the field was in bits, if known. Useful in FP parsing.+           | ENum           (Integer, Maybe Int, Bool)  -- Second argument is how wide the field was in bits, if known. Useful in FP parsing.+                                                        -- Third argument is true, if this was a boolean constant            | EReal          AlgReal            | EFloat         Float            | EFloatingPoint FP@@ -103,7 +104,7 @@                     if null extras                        then case sexp of                               EApp [ECon "error", ECon er] -> Left $ "Solver returned an error: " ++ er-                              _                            -> return sexp+                              _                            -> pure sexp                         else die "Extra tokens after valid input"   where inpToks = tokenize inp@@ -114,21 +115,21 @@         parse []         = die "ran out of tokens"         parse ("(":toks) = do (f, r) <- parseApp toks []                               f' <- cvt (EApp f)-                              return (f', r)+                              pure (f', r)         parse (")":_)    = die "extra tokens after close paren"         parse [tok]      = do t <- pTok tok-                              return (t, [])+                              pure (t, [])         parse _          = die "ill-formed s-expr"          parseApp []         _     = die "failed to grab s-expr application"-        parseApp (")":toks) sofar = return (reverse sofar, toks)+        parseApp (")":toks) sofar = pure (reverse sofar, toks)         parseApp ("(":toks) sofar = do (f, r) <- parse ("(":toks)                                        parseApp r (f : sofar)         parseApp (tok:toks) sofar = do t <- pTok tok                                        parseApp toks (t : sofar) -        pTok "false" = return $ ENum (0, Nothing)-        pTok "true"  = return $ ENum (1, Nothing)+        pTok "false" = pure $ ENum (0, Nothing, True)+        pTok "true"  = pure $ ENum (1, Nothing, True)          pTok ('0':'b':r)                                 = mkNum (Just (length r))     $ readInt 2 (`elem` "01") (\c -> ord c - ord '0') r         pTok ('b':'v':r) | not (null r) && all isDigit r = mkNum Nothing               $ readDec (takeWhile (/= '[') r)@@ -136,7 +137,7 @@         pTok ('#':'x':r)                                 = mkNum (Just (4 * length r)) $ readHex r          pTok n | possiblyNum n = if all intChar n then mkNum Nothing $ readSigned readDec n else getReal n-        pTok n                 = return $ ECon (constantMap n)+        pTok n                 = pure $ ECon (constantMap n)          -- crude, but effective!         possiblyNum s = case s of@@ -146,126 +147,130 @@          intChar c = c == '-' || isDigit c -        mkNum l [(n, "")] = return $ ENum (n, l)+        mkNum l [(n, "")] = pure $ ENum (n, l, False)         mkNum _ _         = die "cannot read number" -        getReal n = return $ EReal $ mkPolyReal (Left (exact, n'))+        getReal n = pure $ EReal $ mkPolyReal (Left (exact, n'))           where exact = not ("?" `isPrefixOf` reverse n)                 n' | exact = n                    | True  = init n +        fst3 (a, _, _) = a+        snd3 (_, b, _) = b+        thd3 (_, _, c) = c+         -- simplify numbers and root-obj values-        cvt (EApp [ECon "to_int",  EReal a])                       = return $ EReal a   -- ignore the "casting"-        cvt (EApp [ECon "to_real", EReal a])                       = return $ EReal a   -- ignore the "casting"-        cvt (EApp [ECon "/", EReal a, EReal b])                    = return $ EReal (a / b)-        cvt (EApp [ECon "/", EReal a, ENum  b])                    = return $ EReal (a                   / fromInteger (fst b))-        cvt (EApp [ECon "/", ENum  a, EReal b])                    = return $ EReal (fromInteger (fst a) /             b      )-        cvt (EApp [ECon "/", ENum  a, ENum  b])                    = return $ EReal (fromInteger (fst a) / fromInteger (fst b))-        cvt (EApp [ECon "-", EReal a])                             = return $ EReal (-a)-        cvt (EApp [ECon "-", ENum a])                              = return $ ENum  (-(fst a), snd a)+        cvt (EApp [ECon "to_int",  EReal a])                       = pure $ EReal a   -- ignore the "casting"+        cvt (EApp [ECon "to_real", EReal a])                       = pure $ EReal a   -- ignore the "casting"+        cvt (EApp [ECon "/", EReal a, EReal b])                    = pure $ EReal (a / b)+        cvt (EApp [ECon "/", EReal a, ENum  b])                    = pure $ EReal (a                    / fromInteger (fst3 b))+        cvt (EApp [ECon "/", ENum  a, EReal b])                    = pure $ EReal (fromInteger (fst3 a) /             b      )+        cvt (EApp [ECon "/", ENum  a, ENum  b])                    = pure $ EReal (fromInteger (fst3 a) / fromInteger (fst3 b))+        cvt (EApp [ECon "-", EReal a])                             = pure $ EReal (-a)+        cvt (EApp [ECon "-", ENum a])                              = pure $ ENum  (-(fst3 a), snd3 a, thd3 a)          -- bit-vector value as CVC4 prints: (_ bv0 16) for instance-        cvt (EApp [ECon "_", ENum a, ENum _b])                     = return $ ENum a+        cvt (EApp [ECon "_", ENum a, ENum _b])                     = pure $ ENum a         cvt (EApp [ECon "root-obj", EApp (ECon "+":trms), ENum k]) = do ts <- mapM getCoeff trms-                                                                        return $ EReal $ mkPolyReal (Right (fst k, ts))-        cvt (EApp [ECon "as", n, EApp [ECon "_", ECon "FloatingPoint", ENum (11, _), ENum (53, _)]]) = getDouble n-        cvt (EApp [ECon "as", n, EApp [ECon "_", ECon "FloatingPoint", ENum ( 8, _), ENum (24, _)]]) = getFloat  n-        cvt (EApp [ECon "as", n, ECon "Float64"])                                                    = getDouble n-        cvt (EApp [ECon "as", n, ECon "Float32"])                                                    = getFloat  n+                                                                        pure $ EReal $ mkPolyReal (Right (fst3 k, ts))+        cvt (EApp [ECon "as", n, EApp [ECon "_", ECon "FloatingPoint", ENum (11, _, _), ENum (53, _, _)]]) = getDouble n+        cvt (EApp [ECon "as", n, EApp [ECon "_", ECon "FloatingPoint", ENum ( 8, _, _), ENum (24, _, _)]]) = getFloat  n+        cvt (EApp [ECon "as", n, ECon "Float64"])                                                          = getDouble n+        cvt (EApp [ECon "as", n, ECon "Float32"])                                                          = getFloat  n          -- Deal with CVC4's approximate reals         cvt x@(EApp [ECon "witness", EApp [EApp [ECon v, ECon "Real"]]                                    , EApp [ECon "or", EApp [ECon "=", ECon v', val], _]]) | v == v'   = do                                                 approx <- cvt val                                                 case approx of-                                                  ENum (s, _) -> return $ EReal $ mkPolyReal (Left (False, show s))-                                                  EReal aval  -> case aval of-                                                                   AlgRational _ r -> return $ EReal $ AlgRational False r-                                                                   _               -> return $ EReal aval-                                                  _           -> die $ "Cannot parse a CVC4 approximate value from: " ++ show x+                                                  ENum (s, _, _) -> pure $ EReal $ mkPolyReal (Left (False, show s))+                                                  EReal aval     -> case aval of+                                                                      AlgRational _ r -> pure $ EReal $ AlgRational False r+                                                                      _               -> pure $ EReal aval+                                                  _              -> die $ "Cannot parse a CVC4 approximate value from: " ++ show x          -- Deal with CVC5's algebraic reals. This is very crude!         cvt x@(EApp (ECon "_" : ECon "real_algebraic_number" : rest)) =             let isComma (ECon ",") = True                 isComma _          = False -                get (ENum    (n, _))               = return $ fromIntegral n-                get (EReal   (AlgRational True r)) = return r-                get (EFloat  f)                    = return $ toRational f-                get (EDouble d)                    = return $ toRational d+                get (ENum    (n, _, _))            = pure $ fromIntegral n+                get (EReal   (AlgRational True r)) = pure r+                get (EFloat  f)                    = pure $ toRational f+                get (EDouble d)                    = pure $ toRational d                 get t                              = die $ "Cannot get a CVC5 real-algebraic bound from: " ++ show t              in case drop 1 (dropWhile (not . isComma) rest) of                 [EApp [n1, n2], _] -> do low  <- get n1                                          high <- get n2-                                         return $ EReal $ AlgInterval (OpenPoint low) (OpenPoint high)+                                         pure $ EReal $ AlgInterval (OpenPoint low) (OpenPoint high)                 _                  -> die $ "Cannot parse a CVC5 real-algebraic number from: " ++ show x          -- NB. Note the lengths on the mantissa for the following two are 23/52; not 24/53!-        cvt (EApp [ECon "fp",    ENum (s, Just 1), ENum ( e, Just 8),  ENum (m, Just 23)])           = return $ EFloat         $ getTripleFloat  s e m-        cvt (EApp [ECon "fp",    ENum (s, Just 1), ENum ( e, Just 11), ENum (m, Just 52)])           = return $ EDouble        $ getTripleDouble s e m-        cvt (EApp [ECon "fp",    ENum (s, Just 1), ENum ( e, Just eb), ENum (m, Just sb)])           = return $ EFloatingPoint $ fpFromRawRep (s == 1) (e, eb) (m, sb+1)+        cvt (EApp [ECon "fp",    ENum (s, Just 1, _), ENum ( e, Just  8, _), ENum (m, Just 23, _)]) = pure $ EFloat         $ getTripleFloat  s e m+        cvt (EApp [ECon "fp",    ENum (s, Just 1, _), ENum ( e, Just 11, _), ENum (m, Just 52, _)]) = pure $ EDouble        $ getTripleDouble s e m+        cvt (EApp [ECon "fp",    ENum (s, Just 1, _), ENum ( e, Just eb, _), ENum (m, Just sb, _)]) = pure $ EFloatingPoint $ fpFromRawRep (s == 1) (e, eb) (m, sb+1) -        cvt (EApp [ECon "_",     ECon "NaN",       ENum ( 8, _),       ENum (24,      _)])           = return $ EFloat           nan-        cvt (EApp [ECon "_",     ECon "NaN",       ENum (11, _),       ENum (53,      _)])           = return $ EDouble          nan-        cvt (EApp [ECon "_",     ECon "NaN",       ENum (eb, _),       ENum (sb,      _)])           = return $ EFloatingPoint $ fpNaN (fromIntegral eb) (fromIntegral sb)+        cvt (EApp [ECon "_",     ECon "NaN",       ENum ( 8, _, _),       ENum (24, _, _)])         = pure $ EFloat           nan+        cvt (EApp [ECon "_",     ECon "NaN",       ENum (11, _, _),       ENum (53, _, _)])         = pure $ EDouble          nan+        cvt (EApp [ECon "_",     ECon "NaN",       ENum (eb, _, _),       ENum (sb, _, _)])         = pure $ EFloatingPoint $ fpNaN (fromIntegral eb) (fromIntegral sb) -        cvt (EApp [ECon "_",     ECon "+oo",       ENum ( 8, _),       ENum (24,      _)])           = return $ EFloat           infinity-        cvt (EApp [ECon "_",     ECon "+oo",       ENum (11, _),       ENum (53,      _)])           = return $ EDouble          infinity-        cvt (EApp [ECon "_",     ECon "+oo",       ENum (eb, _),       ENum (sb,      _)])           = return $ EFloatingPoint $ fpInf False (fromIntegral eb) (fromIntegral sb)+        cvt (EApp [ECon "_",     ECon "+oo",       ENum ( 8, _, _),       ENum (24, _, _)])         = pure $ EFloat           infinity+        cvt (EApp [ECon "_",     ECon "+oo",       ENum (11, _, _),       ENum (53, _, _)])         = pure $ EDouble          infinity+        cvt (EApp [ECon "_",     ECon "+oo",       ENum (eb, _, _),       ENum (sb, _, _)])         = pure $ EFloatingPoint $ fpInf False (fromIntegral eb) (fromIntegral sb) -        cvt (EApp [ECon "_",     ECon "-oo",       ENum ( 8, _),       ENum (24,      _)])           = return $ EFloat         $ -infinity-        cvt (EApp [ECon "_",     ECon "-oo",       ENum (11, _),       ENum (53,      _)])           = return $ EDouble        $ -infinity-        cvt (EApp [ECon "_",     ECon "-oo",       ENum (eb, _),       ENum (sb,      _)])           = return $ EFloatingPoint $ fpInf True (fromIntegral eb) (fromIntegral sb)+        cvt (EApp [ECon "_",     ECon "-oo",       ENum ( 8, _, _),       ENum (24, _, _)])         = pure $ EFloat         $ -infinity+        cvt (EApp [ECon "_",     ECon "-oo",       ENum (11, _, _),       ENum (53, _, _)])         = pure $ EDouble        $ -infinity+        cvt (EApp [ECon "_",     ECon "-oo",       ENum (eb, _, _),       ENum (sb, _, _)])         = pure $ EFloatingPoint $ fpInf True (fromIntegral eb) (fromIntegral sb) -        cvt (EApp [ECon "_",     ECon "+zero",     ENum ( 8, _),       ENum (24,      _)])           = return $ EFloat  0-        cvt (EApp [ECon "_",     ECon "+zero",     ENum (11, _),       ENum (53,      _)])           = return $ EDouble 0-        cvt (EApp [ECon "_",     ECon "+zero",     ENum (eb, _),       ENum (sb,      _)])           = return $ EFloatingPoint $ fpZero False (fromIntegral eb) (fromIntegral sb)+        cvt (EApp [ECon "_",     ECon "+zero",     ENum ( 8, _, _),       ENum (24, _, _)])         = pure $ EFloat  0+        cvt (EApp [ECon "_",     ECon "+zero",     ENum (11, _, _),       ENum (53, _, _)])         = pure $ EDouble 0+        cvt (EApp [ECon "_",     ECon "+zero",     ENum (eb, _, _),       ENum (sb, _, _)])         = pure $ EFloatingPoint $ fpZero False (fromIntegral eb) (fromIntegral sb) -        cvt (EApp [ECon "_",     ECon "-zero",     ENum ( 8, _),       ENum (24,      _)])           = return $ EFloat         $ -0-        cvt (EApp [ECon "_",     ECon "-zero",     ENum (11, _),       ENum (53,      _)])           = return $ EDouble        $ -0-        cvt (EApp [ECon "_",     ECon "-zero",     ENum (eb, _),       ENum (sb,      _)])           = return $ EFloatingPoint $ fpZero True (fromIntegral eb) (fromIntegral sb)+        cvt (EApp [ECon "_",     ECon "-zero",     ENum ( 8, _, _),       ENum (24, _, _)])         = pure $ EFloat         $ -0+        cvt (EApp [ECon "_",     ECon "-zero",     ENum (11, _, _),       ENum (53, _, _)])         = pure $ EDouble        $ -0+        cvt (EApp [ECon "_",     ECon "-zero",     ENum (eb, _, _),       ENum (sb, _, _)])         = pure $ EFloatingPoint $ fpZero True (fromIntegral eb) (fromIntegral sb) -        cvt x                                                                                        = return x+        cvt x                                                                                       = pure x -        getCoeff (EApp [ECon "*", ENum k, EApp [ECon "^", ECon "x", ENum p]]) = return (fst k, fst p)  -- kx^p-        getCoeff (EApp [ECon "*", ENum k,                 ECon "x"        ] ) = return (fst k,     1)  -- kx-        getCoeff (                        EApp [ECon "^", ECon "x", ENum p] ) = return (    1, fst p)  --  x^p-        getCoeff (                                        ECon "x"          ) = return (    1,     1)  --  x-        getCoeff (                ENum k                                    ) = return (fst k,     0)  -- k+        getCoeff (EApp [ECon "*", ENum k, EApp [ECon "^", ECon "x", ENum p]]) = pure (fst3 k, fst3 p)  -- kx^p+        getCoeff (EApp [ECon "*", ENum k,                 ECon "x"        ] ) = pure (fst3 k,      1)  -- kx+        getCoeff (                        EApp [ECon "^", ECon "x", ENum p] ) = pure (     1, fst3 p)  --  x^p+        getCoeff (                                        ECon "x"          ) = pure (     1,      1)  --  x+        getCoeff (                ENum k                                    ) = pure (fst3 k,      0)  -- k         getCoeff x = die $ "Cannot parse a root-obj,\nProcessing term: " ++ show x         getDouble (ECon s)  = case (s, rdFP (dropWhile (== '+') s)) of-                                ("plusInfinity",  _     ) -> return $ EDouble infinity-                                ("minusInfinity", _     ) -> return $ EDouble (-infinity)-                                ("oo",            _     ) -> return $ EDouble infinity-                                ("-oo",           _     ) -> return $ EDouble (-infinity)-                                ("zero",          _     ) -> return $ EDouble 0-                                ("-zero",         _     ) -> return $ EDouble (-0)-                                ("NaN",           _     ) -> return $ EDouble nan-                                (_,               Just v) -> return $ EDouble v+                                ("plusInfinity",  _     ) -> pure $ EDouble infinity+                                ("minusInfinity", _     ) -> pure $ EDouble (-infinity)+                                ("oo",            _     ) -> pure $ EDouble infinity+                                ("-oo",           _     ) -> pure $ EDouble (-infinity)+                                ("zero",          _     ) -> pure $ EDouble 0+                                ("-zero",         _     ) -> pure $ EDouble (-0)+                                ("NaN",           _     ) -> pure $ EDouble nan+                                (_,               Just v) -> pure $ EDouble v                                 _               -> die $ "Cannot parse a double value from: " ++ s         getDouble (EApp [_, s, _, _]) = getDouble s-        getDouble (EReal r) = return $ EDouble $ fromRat $ toRational r+        getDouble (EReal r) = pure $ EDouble $ fromRat $ toRational r         getDouble x         = die $ "Cannot parse a double value from: " ++ show x         getFloat (ECon s)   = case (s, rdFP (dropWhile (== '+') s)) of-                                ("plusInfinity",  _     ) -> return $ EFloat infinity-                                ("minusInfinity", _     ) -> return $ EFloat (-infinity)-                                ("oo",            _     ) -> return $ EFloat infinity-                                ("-oo",           _     ) -> return $ EFloat (-infinity)-                                ("zero",          _     ) -> return $ EFloat 0-                                ("-zero",         _     ) -> return $ EFloat (-0)-                                ("NaN",           _     ) -> return $ EFloat nan-                                (_,               Just v) -> return $ EFloat v+                                ("plusInfinity",  _     ) -> pure $ EFloat infinity+                                ("minusInfinity", _     ) -> pure $ EFloat (-infinity)+                                ("oo",            _     ) -> pure $ EFloat infinity+                                ("-oo",           _     ) -> pure $ EFloat (-infinity)+                                ("zero",          _     ) -> pure $ EFloat 0+                                ("-zero",         _     ) -> pure $ EFloat (-0)+                                ("NaN",           _     ) -> pure $ EFloat nan+                                (_,               Just v) -> pure $ EFloat v                                 _               -> die $ "Cannot parse a float value from: " ++ s-        getFloat (EReal r)  = return $ EFloat $ fromRat $ toRational r+        getFloat (EReal r)  = pure $ EFloat $ fromRat $ toRational r         getFloat (EApp [_, s, _, _]) = getFloat s         getFloat x          = die $ "Cannot parse a float value from: " ++ show x  -- | Parses the Z3 floating point formatted numbers like so: 1.321p5/1.2123e9 etc. rdFP :: (Read a, RealFloat a) => String -> Maybe a rdFP s = case break (`elem` "pe") s of-           (m, 'p':e) -> rd m >>= \m' -> rd e >>= \e' -> return $ m' * ( 2 ** e')-           (m, 'e':e) -> rd m >>= \m' -> rd e >>= \e' -> return $ m' * (10 ** e')+           (m, 'p':e) -> rd m >>= \m' -> rd e >>= \e' -> pure $ m' * ( 2 ** e')+           (m, 'e':e) -> rd m >>= \m' -> rd e >>= \e' -> pure $ m' * (10 ** e')            (m, "")    -> rd m            _          -> Nothing  where rd v = case reads v of@@ -317,7 +322,7 @@ --              (= x!1 "l") --              (= x!1 "e") --              (= x!1 "h")))---   For this, we do a little bit of an interpretative dance to see if we can "construct" the necesary expression.+--   For this, we do a little bit of an interpretative dance to see if we can "construct" the necessary expression. -- --   In parsed form: --      EApp [ECon "lambda",EApp [EApp [ECon "x!1",ECon "String"]],EApp [ECon "not",EApp [ECon "or",EApp [ECon "=",ECon "x!1",ECon "\"e\""],EApp [ECon "=",ECon "x!1",ECon "\"l\""]]]]@@ -337,20 +342,20 @@         foldM1 _ []     = error "Data.SBV.parseSetLambda: Impossible happened; empty arg to foldM1"         foldM1 f (x:xs) = foldM f x xs -        checkBool (ENum (1, Nothing)) = True-        checkBool (ENum (0, Nothing)) = True-        checkBool _                   = False+        checkBool (ENum (1, Nothing, True)) = True+        checkBool (ENum (0, Nothing, True)) = True+        checkBool _                         = False -        negBool (ENum (1, Nothing)) = ENum (0, Nothing)-        negBool _                   = ENum (1, Nothing)+        negBool (ENum (1, Nothing, _)) = ENum (0, Nothing, True)+        negBool _                      = ENum (1, Nothing, True) -        orBool t@(ENum (1, Nothing)) _                      = t-        orBool _                     t@(ENum (1, Nothing))  = t-        orBool _ _                                          = ENum (0, Nothing)+        orBool t@(ENum (1, Nothing, _)) _                        = t+        orBool _                        t@(ENum (1, Nothing, _)) = t+        orBool _ _                                               = ENum (0, Nothing, True) -        andBool f@(ENum (0, Nothing)) _                     = f-        andBool _                     f@(ENum (0, Nothing)) = f-        andBool _ _                                         = ENum (1, Nothing)+        andBool f@(ENum (0, Nothing, _)) _                        = f+        andBool _                        f@(ENum (0, Nothing, _)) = f+        andBool _ _                                               = ENum (1, Nothing, True)          neg :: ([([SExpr], SExpr)], SExpr) -> Maybe ([([SExpr], SExpr)], SExpr)         neg (rows, dflt)@@ -405,8 +410,8 @@         lambda :: [(String, Bool)]  -- Bool is True if this is a boolean variable. Otherwise we don't keep track of the type                -> SExpr -> Maybe [Either ([SExpr], SExpr) SExpr]         lambda params body = reverse <$> go [] body-          where true  = ENum (1, Nothing)-                false = ENum (0, Nothing)+          where true  = ENum (1, Nothing, True)+                false = ENum (0, Nothing, True)                  go :: [Either ([SExpr], SExpr) SExpr] -> SExpr -> Maybe [Either ([SExpr], SExpr) SExpr]                 go sofar (EApp [ECon "ite", selector, thenBranch, elseBranch])@@ -499,10 +504,10 @@ parseStoreAssociations (EApp [ECon "_", ECon "as-array", ECon nm]) = Just $ Left nm parseStoreAssociations e                                           = Right <$> (chainAssigns =<< vals e)     where vals :: SExpr -> Maybe [Either ([SExpr], SExpr) SExpr]-          vals (EApp [EApp [ECon "as", ECon "const", ECon "Array"],            defVal]) = return [Right defVal]-          vals (EApp [EApp [ECon "as", ECon "const", EApp (ECon "Array" : _)], defVal]) = return [Right defVal]+          vals (EApp [EApp [ECon "as", ECon "const", ECon "Array"],            defVal]) = pure [Right defVal]+          vals (EApp [EApp [ECon "as", ECon "const", EApp (ECon "Array" : _)], defVal]) = pure [Right defVal]           vals (EApp (ECon "store" : prev : argsVal)) | length argsVal >= 2             = do rest <- vals prev-                                                                                             return $ Left (init argsVal, last argsVal) : rest+                                                                                             pure $ Left (init argsVal, last argsVal) : rest           vals _                                                                        = Nothing  -- | Turn a sequence of left-right chain assignments (condition + free) into a single chain@@ -534,7 +539,7 @@         same :: SExpr -> SExpr -> Bool         same x y = case (x, y) of                      (ECon a,            ECon b)            -> a == b-                     (ENum (i, _),       ENum (j, _))       -> i == j+                     (ENum (i, _, _),    ENum (j, _, _))    -> i == j                      (EReal a,           EReal b)           -> algRealStructuralEqual a b                      (EFloat  f1,        EFloat  f2)        -> fpIsEqualObjectH f1 f2                      (EDouble d1,        EDouble d2)        -> fpIsEqualObjectH d1 d2@@ -571,7 +576,7 @@        Right (EApp [EApp [ECon o, e]]) | o == nm -> do (args, bd) <- lambda e                                                        let params | isCurried = unwords args                                                                   | True      = '(' : intercalate ", " args ++ ")"-                                                       return $ unBar nm ++ " " ++ params ++ " = " ++ bd+                                                       pure $ unBar nm ++ " " ++ params ++ " = " ++ bd        _                                         -> Nothing    where -- infinite supply of names; starting with the ones we're given@@ -600,7 +605,9 @@   where go p e = case e of                    ECon n | Just a <- n `lookup` env -> a                           | True                     -> simplifyECon n-                   ENum (i, _)       -> cnst i+                   ENum (1, _, True) -> "True"+                   ENum (0, _, True) -> "False"+                   ENum (i, _, _)    -> cnst i                    EReal  a          -> cnst a                    EFloat f          -> cnst f                    EFloatingPoint f  -> cnst f@@ -621,13 +628,13 @@                    EApp [ECon "not", EApp [ECon ">",  a, b]] -> go p $ EApp [ECon "<=", a, b]                     -- Handle x + -y that z3 is fond of producing-                   EApp [ECon a, x, EApp [ECon m, ENum (-1, _), y]] | isPlus a && isTimes m -> go p $ EApp [ECon "-", x, y]+                   EApp [ECon a, x, EApp [ECon m, ENum (-1, _, _), y]] | isPlus a && isTimes m -> go p $ EApp [ECon "-", x, y]                     -- Handle x + -NUM that z3 is also fond of producing-                   EApp [ECon a, x, ENum (i, mw)] | isPlus a && i < 0 -> go p $ EApp [ECon "-", x, ENum (-i, mw)]+                   EApp [ECon a, x, ENum (i, mw, bool)] | isPlus a && i < 0 -> go p $ EApp [ECon "-", x, ENum (-i, mw, bool)]                     -- Handle -1 * x-                   EApp [ECon o, ENum (-1, _), b] | isTimes o -> parenIf (p >= 8) (neg (go 8 b))+                   EApp [ECon o, ENum (-1, _, _), b] | isTimes o -> parenIf (p >= 8) (neg (go 8 b))                     -- Move additive constants to the right, multiplicative constants to the left                    EApp [ECon o, x, y] | isPlus  o && isConst x && not (isConst y) -> go p $ EApp [ECon o, y, x]
Data/SBV/Utils/TDiff.hs view
@@ -77,7 +77,7 @@                             r `seq` do mbElapsed <- getElapsedTime mbStart                                        pure (mbElapsed, r) --- | Same as 'timeIf', except we fully evaluate the result, via its the NFData instance.+-- | Same as 'timeIf', except we fully evaluate the result, via its NFData instance. timeIfRNF :: (NFData a, MonadIO m) => Bool -> m a -> m (Maybe NominalDiffTime, a) timeIfRNF measureTime act = timeIf measureTime (act >>= \r -> rnf r `seq` pure r) 
+ Documentation/SBV/Examples/ADT/Expr.hs view
@@ -0,0 +1,172 @@+-----------------------------------------------------------------------------+-- |+-- Module    : Documentation.SBV.Examples.ADT.Expr+-- Copyright : (c) Levent Erkok+-- License   : BSD3+-- Maintainer: erkokl@gmail.com+-- Stability : experimental+--+-- A basic expression ADT example.+-----------------------------------------------------------------------------++{-# LANGUAGE FlexibleInstances   #-}+{-# LANGUAGE OverloadedLists     #-}+{-# LANGUAGE QuasiQuotes         #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TemplateHaskell     #-}+{-# LANGUAGE TypeApplications    #-}++{-# OPTIONS_GHC -Wall -Werror #-}++module Documentation.SBV.Examples.ADT.Expr where++import Data.SBV+import Data.SBV.Control+import Data.SBV.RegExp+import Data.SBV.Tuple+import qualified Data.SBV.List as SL++-- | A basic arithmetic expression type.+data Expr = Val Integer+          | Var String+          | Add Expr Expr+          | Mul Expr Expr+          | Let String Expr Expr++-- | Create a symbolic version of expressions.+mkSymbolic [''Expr]++-- | Show instance for 'Expr'.+instance Show Expr where+  show (Val i)     = show i+  show (Var a)     = a+  show (Add l r)   = "(" ++ show l ++ " + " ++ show r ++ ")"+  show (Mul l r)   = "(" ++ show l ++ " * " ++ show r ++ ")"+  show (Let s a b) = "(let " ++ s ++ " = " ++ show a ++ " in " ++ show b ++ ")"++-- | Num instance, simplifies construction of values+instance Num Expr where+  fromInteger = Val+  (+)         = Add+  (*)         = Mul+  abs         = error "Num Expr: undefined abs"+  signum      = error "Num Expr: undefined signum"+  negate      = error "Num Expr: undefined negate"++-- | Num instance for the symbolic version+instance Num SExpr where+  fromInteger = sVal . literal+  (+)         = sAdd+  (*)         = sMul+  abs         = error "Num SExpr: undefined abs"+  signum      = error "Num SExpr: undefined signum"+  negate      = error "Num SExpr: undefined negate"++-- | Validity: We require each variable appearing to be an identifier (lowercase letter followed by+-- any number of upper-lower case letters and digits), and all expressions are closed; i.e., any+-- variable referenced is introduced by an enclosing let expression.+isValid :: SExpr -> SBool+isValid = go []+  where isId s = s `match` (asciiLower * KStar (asciiLetter + digit))+        go :: SList String -> SExpr -> SBool+        go = smtFunction "valid"+           $ \env expr -> [sCase| expr of+                              Var s     -> isId s .&& s `SL.elem` env+                              Val _     -> sTrue+                              Add l r   -> go env l .&& go env r+                              Mul l r   -> go env l .&& go env r+                              Let s a b -> isId s .&& go env a .&& go (s SL..: env) b+                           |]++-- | Evaluate an expression.+eval :: SExpr -> SInteger+eval = go []+ where go :: SList (String, Integer) -> SExpr -> SInteger+       go = smtFunction "eval"+          $ \env expr -> [sCase| expr of+                            Val i     -> i+                            Var s     -> get env s+                            Add l r   -> go env l + go env r+                            Mul l r   -> go env l * go env r+                            Let s e r -> go (tuple (s, go env e) SL..: env) r+                         |]++       get :: SList (String, Integer) -> SString -> SInteger+       get = smtFunction "get"+           $ \env s -> [sCase| env of+                          []                    -> 0+                          (k, v) : es | s .== k -> v+                                      | True    -> get es s+                       |]++-- | A basic theorem about 'eval'.+-- >>> evalPlus5+-- Q.E.D.+evalPlus5 :: IO ThmResult+evalPlus5 = prove $ do e :: SExpr <- free "e"+                       pure $ eval (e + 5) .== 5 + eval e++-- | A simple sat result example.+--+-- >>> evalSat+-- Satisfiable. Model:+--   e = Let "h" (Val 1) (Var "h") :: Expr+--   a =                         9 :: Integer+--   b =                        10 :: Integer+evalSat :: IO SatResult+evalSat = sat $ do e :: SExpr    <- free "e"+                   constrain $ isValid e+                   constrain $ isLet   e++                   a :: SInteger <- free "a"+                   b :: SInteger <- free "b"+                   constrain $ a .>= 4+                   constrain $ b .>= 10++                   pure $ eval (e + sVal a) .== b * eval e++-- | Another test, generating some (mildly) interesting examples.+--+-- >>> genE+-- Satisfiable. Model:+--   e1 = Let "k" (Mul (Val 1) (Mul (Val (-3)) (Val (-1)))) (Var "k") :: Expr+--   e2 =                                                    Val (-2) :: Expr+genE :: IO SatResult+genE = sat $ do e1 :: SExpr <- free "e1"+                e2 :: SExpr <- free "e2"++                constrain $ isValid e1+                constrain $ isValid e2++                constrain $ e1 ./== e2+                constrain $ isLet e1+                constrain $ eval e1 .== 3+                constrain $ eval e1 .== eval e2 + 5++-- | Query mode example.+--+-- >>> queryE+-- e1: (let k = (1 * (-3 * -1)) in k)+-- e2: -2+queryE :: IO ()+queryE = runSMT $ do+           e1 :: SExpr <- free "e1"+           e2 :: SExpr <- free "e2"++           constrain $ isValid e1+           constrain $ isValid e2++           constrain $ e1 ./== e2+           constrain $ isLet e1+           constrain $ eval e1 .== 3+           constrain $ eval e1 .== eval e2 + 5++           query $ do cs <- checkSat+                      case cs of+                        Sat -> do e1v <- getValue e1+                                  e2v <- getValue e2+                                  io $ putStrLn $ "e1: " ++ show e1v+                                  io $ putStrLn $ "e2: " ++ show e2v+                        _   -> error $ "Unexpected result: " ++ show cs++{- HLint ignore module "Reduce duplication" -}
+ Documentation/SBV/Examples/ADT/Param.hs view
@@ -0,0 +1,191 @@+-----------------------------------------------------------------------------+-- |+-- Module    : Documentation.SBV.Examples.ADT.Param+-- Copyright : (c) Levent Erkok+-- License   : BSD3+-- Maintainer: erkokl@gmail.com+-- Stability : experimental+--+-- A basic parameterized expression ADT example.+-----------------------------------------------------------------------------++{-# LANGUAGE FlexibleContexts    #-}+{-# LANGUAGE FlexibleInstances   #-}+{-# LANGUAGE OverloadedLists     #-}+{-# LANGUAGE QuasiQuotes         #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TemplateHaskell     #-}+{-# LANGUAGE TypeApplications    #-}++{-# OPTIONS_GHC -Wall -Werror #-}++module Documentation.SBV.Examples.ADT.Param where++import Data.SBV+import Data.SBV.Control+import Data.SBV.RegExp+import Data.SBV.Tuple+import qualified Data.SBV.List as SL++-- | A basic arithmetic expression type.+data Expr nm val = Val val+                 | Var nm+                 | Add (Expr nm val) (Expr nm val)+                 | Mul (Expr nm val) (Expr nm val)+                 | Let nm (Expr nm val) (Expr nm val)++-- | Create a symbolic version of expressions.+mkSymbolic [''Expr]++-- | Show instance for 'Expr'.+instance (Show nm, Show val) => Show (Expr nm val) where+  show (Val i)     = show i+  show (Var a)     = show a+  show (Add l r)   = "(" ++ show l ++ " + " ++ show r ++ ")"+  show (Mul l r)   = "(" ++ show l ++ " * " ++ show r ++ ")"+  show (Let s a b) = "(let " ++ show s ++ " = " ++ show a ++ " in " ++ show b ++ ")"++-- | Show instance for 'Expr', specialized when name is string.+instance {-# OVERLAPPING #-} Show val => Show (Expr String val) where+  show (Val i)     = show i+  show (Var a)     = a+  show (Add l r)   = "(" ++ show l ++ " + " ++ show r ++ ")"+  show (Mul l r)   = "(" ++ show l ++ " * " ++ show r ++ ")"+  show (Let s a b) = "(let " ++ s ++ " = " ++ show a ++ " in " ++ show b ++ ")"++-- | Num instance, simplifies construction of values+instance Integral val => Num (Expr nm val) where+  fromInteger = Val . fromIntegral+  (+)         = Add+  (*)         = Mul+  abs         = error "Num Expr: undefined abs"+  signum      = error "Num Expr: undefined signum"+  negate      = error "Num Expr: undefined negate"++-- | Num instance for the symbolic version+instance (SymVal nm, SymVal val, Integral val) => Num (SExpr nm val) where+  fromInteger = sVal . literal . fromIntegral+  (+)         = sAdd+  (*)         = sMul+  abs         = error "Num SExpr: undefined abs"+  signum      = error "Num SExpr: undefined signum"+  negate      = error "Num SExpr: undefined negate"++-- | Validity: We require each variable appearing to be an identifier to satisfy the predicate given.+-- any number of upper-lower case letters and digits), and all expressions are closed; i.e., any+-- variable referenced is introduced by an enclosing let expression.+isValid :: (SymVal nm, Eq nm, SymVal val) => (SBV nm -> SBool) -> SExpr nm val -> SBool+isValid nmChk = go []+  where go = smtFunction "valid"+           $ \env expr -> [sCase| expr of+                              Var s     -> nmChk s  .&& s `SL.elem` env+                              Val _     -> sTrue+                              Add l r   -> go env l .&& go env r+                              Mul l r   -> go env l .&& go env r+                              Let s a b -> nmChk s  .&& go env a .&& go (s SL..: env) b+                           |]++-- | Evaluate an expression.+eval :: (SymVal nm, SymVal val, Num (SBV val)) => SExpr nm val -> SBV val+eval = go []+ where go = smtFunction "eval"+          $ \env expr -> [sCase| expr of+                            Val i     -> i+                            Var s     -> get env s+                            Add l r   -> go env l + go env r+                            Mul l r   -> go env l * go env r+                            Let s e r -> go (tuple (s, go env e) SL..: env) r+                         |]++       get = smtFunction "get"+           $ \env s -> [sCase| env of+                           []                    -> 0+                           (k, v) : es | s .== k -> v+                                       | True    -> get es s+                        |]++-- | A basic theorem about 'eval'.+-- >>> evalPlus5+-- Q.E.D.+evalPlus5 :: IO ThmResult+evalPlus5 = prove $ do e :: SExpr String Integer <- free "e"+                       pure $ eval (e + 5) .== 5 + eval e++-- | Is this a string identifier? Lowercase letter followed by any number of upper-lower case letters and digits.+isId :: SString -> SBool+isId s = s `match` (asciiLower * KStar (asciiLetter + digit))++-- | A simple sat result example.+--+-- >>> evalSat+-- Satisfiable. Model:+--   e = Let "h" (Val 1) (Var "h") :: Expr String Integer+--   a =                         9 :: Integer+--   b =                        10 :: Integer+evalSat :: IO SatResult+evalSat = sat $ do e :: SExpr String Integer  <- free "e"+                   constrain $ isValid isId e+                   constrain $ isLet   e++                   a :: SInteger <- free "a"+                   b :: SInteger <- free "b"+                   constrain $ a .>= 4+                   constrain $ b .>= 10++                   pure $ eval (e + sVal a) .== b * eval e++-- | Another test, generating some (mildly) interesting examples.+--+-- >>> genE+-- Satisfiable. Model:+--   e1 = Let "h" (Val 5) (Val 3) :: Expr String Integer+--   e2 =                Val (-2) :: Expr String Integer+genE :: IO SatResult+genE = sat $ do e1 :: SExpr String Integer <- free "e1"+                e2 :: SExpr String Integer <- free "e2"++                constrain $ isValid isId e1+                constrain $ isValid isId e2++                constrain $ e1 ./== e2+                constrain $ isLet e1+                constrain $ eval e1 .== 3+                constrain $ eval e1 .== eval e2 + 5++-- | Query mode example.+--+-- >>> queryE+-- e1: (let a = ((let x = 20 in 4) * -5) in (-1 * -3))+-- e2: -2+-- e3: (let h = 79 % 80 in h)+queryE :: IO ()+queryE = runSMT $ do+           e1 :: SExpr String Integer <- free "e1"+           e2 :: SExpr String Integer <- free "e2"++           e3 :: SExpr String Rational <- free "e3"++           constrain $ isValid isId e1+           constrain $ isValid isId e2+           constrain $ isValid isId e3++           constrain $ e1 ./== e2+           constrain $ isLet e1+           constrain $ eval e1 .== 3+           constrain $ eval e1 .== eval e2 + 5++           constrain $ isLet e3+           constrain $ isMul (getLet_2 e1)+           constrain $ isMul (getLet_3 e1)++           query $ do cs <- checkSat+                      case cs of+                        Sat -> do e1v <- getValue e1+                                  e2v <- getValue e2+                                  e3v <- getValue e3+                                  io $ putStrLn $ "e1: " ++ show e1v+                                  io $ putStrLn $ "e2: " ++ show e2v+                                  io $ putStrLn $ "e3: " ++ show e3v+                        _   -> error $ "Unexpected result: " ++ show cs++{- HLint ignore module "Reduce duplication" -}
+ Documentation/SBV/Examples/ADT/Types.hs view
@@ -0,0 +1,131 @@+-----------------------------------------------------------------------------+-- |+-- Module    : Documentation.SBV.Examples.ADT.Types+-- Copyright : (c) Levent Erkok+-- License   : BSD3+-- Maintainer: erkokl@gmail.com+-- Stability : experimental+--+-- An encoding of the simple type-checking via constraints, following+-- <https://microsoft.github.io/z3guide/docs/theories/Datatypes/#using-datatypes-for-solving-type-constraints>+-----------------------------------------------------------------------------+{-# OPTIONS_GHC -Wall -Werror #-}++{-# LANGUAGE FlexibleInstances #-}+{-# LANGUAGE QuasiQuotes       #-}+{-# LANGUAGE TemplateHaskell   #-}+{-# LANGUAGE TypeApplications  #-}++module Documentation.SBV.Examples.ADT.Types where++import Data.SBV++-- | Simple encoding of untyped lambda terms+data M = Var { var   :: String }     -- ^ Variables: @x@+       | Lam { bound :: String       -- ^ Abstraction: @\x. M@+             , body :: M+             }+       | App { fn  :: M              -- ^ Application: @M M@+             , arg :: M+             }++-- | Types.+data T = TInt                        -- ^ Integers+       | TStr                        -- ^ Strings+       | TArr { dom :: T, rng :: T } -- ^ Functions: @t -> t@++-- | Make terms and types symbolic+mkSymbolic [''M]+mkSymbolic [''T]++-- | Instead of modeling environments for mapping variables to their+-- types, we'll simply use an uninterpreted function. Note that+-- this also implies we consider all terms to be given so that variables+-- do not shadow each other; i.e., all variables are unique. This is+-- a simplification, but it is not without justification: One can+-- always alpha-rename bound variables so all bound variables are unique.+env :: SString -> ST+env = uninterpret "env"++-- | Use an uninterpreted function to also magically find the type of a term.+typeOf :: SM -> ST+typeOf = uninterpret "typeOf"++-- | Given a term and a type, check that the term has that type.+tc :: SM -> ST -> SBool+tc = smtFunction "constraints" $ \m t ->+        [sCase| m of++          -- Var case. The environment must match the type we expect.+          Var s -> env s .== t++          -- Abstraction case. Type must be a function, whose domain matches the variable.+          -- And body must match the range.+          Lam v b+            | isTArr t .&& env v .== sdom t+            -> tc b (srng t)++          -- Application case. In this case, we ask the solver to give us the type of the+          -- function, and then ensure the whole thing is well-formed+          App f a -> let tf = typeOf f+                     in   isTArr tf      -- f must have an arrow type+                      .&& tc f tf        -- The function must type-check with that type+                      .&& tc a (sdom tf) -- Argument must have the type of this function+                      .&& t .== srng tf  -- Final result must match the type we're looking for++          -- Otherwise, ill-typed.+          _ -> sFalse+        |]++-- | Well typedness: If what the 'typeOf' function returns type-checks the term,+-- then a term is well-typed.+wellTyped :: SM -> SBool+wellTyped m = tc m (typeOf m)++-- | Make sure the identity function can be typed.+--+-- >>> idWF+-- Satisfiable. Model:+--   env :: String -> T+--   env _ = TInt+-- <BLANKLINE>+--   typeOf :: M -> T+--   typeOf _ = TArr TInt TInt+--+-- The model is rather uninteresting, but it shows that identity can have the type Integer to Integer, where+-- all variables are mapped to Integers.+idWF :: IO SatResult+idWF = sat $ wellTyped $ sLam x vx+  where x  = literal "x"+        vx = sVar x++-- | Check that if we apply a function that takes n integer to a string is not well-typed.+--+-- >>> intFuncAppString+-- Unsatisfiable+--+-- As expected, the solver says that there's no way to type-check such an expression.+intFuncAppString :: IO SatResult+intFuncAppString = sat $ do+        -- Introduce the constant @plus1 :: Int -> Int@+        plus1 <- free "plus1"+        constrain $ tc plus1 (literal (TInt `TArr` TInt))++        -- Introduce the constant @str :: String@+        str <- free "str"+        constrain $ tc str sTStr++        -- Check if the application of plus1 to str can be well-typed+        pure $ wellTyped $ sApp plus1 str++-- | Make sure self-application cannot be typed.+--+-- >>> selfAppNotWellTyped+-- Unsatisfiable+--+-- We get unsatisfiable, indicating there's no way to come up with an environment that will+-- successfully assign a type to the term @\x -> x x@.+selfAppNotWellTyped :: IO SatResult+selfAppNotWellTyped = sat $ wellTyped $ sLam x (sApp vx vx)+  where x  = literal "x"+        vx = sVar x
+ Documentation/SBV/Examples/BitPrecise/Adders.hs view
@@ -0,0 +1,185 @@+-----------------------------------------------------------------------------+-- |+-- Module    : Documentation.SBV.Examples.BitPrecise.Adders+-- Copyright : (c) Levent Erkok+-- License   : BSD3+-- Maintainer: erkokl@gmail.com+-- Stability : experimental+--+-- Build two textbook binary adders out of logic gates and prove them correct,+-- fully automatically, by bit-blasting.+--+-- We model each adder as a Haskell function over a statically-known list of+-- symbolic bits, producing a fixed Boolean circuit. We then prove---for a+-- chosen word size---that the circuit computes the same result as SBV's native+-- bit-vector addition @(+)@:+--+--   * A /ripple-carry/ adder, which threads a carry sequentially through a+--     chain of full adders.+--+--   * A /carry-lookahead/ adder, which computes every carry directly from the+--     generate\/propagate signals of all lower bits, with no sequential+--     dependency.+--+-- Besides proving each adder equal to @(+)@, we also prove the two adders equal+-- to /each other/: the fast, parallel carry-lookahead circuit computes exactly+-- the same result as the simple ripple-carry reference.+--+-- All proofs here are discharged by a single decidable bit-vector query at a+-- fixed width. See "Documentation.SBV.Examples.TP.Adder" for the companion+-- development that instead proves a ripple-carry adder correct for /all/ widths+-- at once, by induction.+-----------------------------------------------------------------------------++{-# LANGUAGE AllowAmbiguousTypes #-}+{-# LANGUAGE CPP                 #-}+{-# LANGUAGE DataKinds           #-}+{-# LANGUAGE ScopedTypeVariables #-}++{-# OPTIONS_GHC -Wall -Werror #-}++module Documentation.SBV.Examples.BitPrecise.Adders where++import Data.SBV hiding (fullAdder)+import GHC.TypeLits (KnownNat)++#ifdef DOCTEST+-- $setup+-- >>> import Data.SBV+-- >>> :set -XDataKinds -XTypeApplications -XScopedTypeVariables+#endif++-- | A symbolic bit is just a symbolic boolean.+type Bit = SBool++-- * Logic gates++-- | A half adder takes two bits and produces their sum bit and carry bit:+-- @sum = a xor b@, @carry = a and b@.+halfAdder :: Bit -> Bit -> (Bit, Bit)+halfAdder a b = (a .<+> b, a .&& b)++-- | A full adder takes two bits and an incoming carry, and produces the sum bit+-- together with the outgoing carry. We build it out of two half adders, in the+-- usual way.+fullAdder :: Bit -> Bit -> Bit -> (Bit, Bit)+fullAdder a b cin = (s, c0 .|| c1)+  where (s0, c0) = halfAdder a b+        (s,  c1) = halfAdder s0 cin++-- * Ripple-carry adder++-- | The ripple-carry adder. Given an incoming carry and a little-endian list of+-- bit pairs (one pair per bit position, least-significant first), it threads the+-- carry through a chain of full adders, returning the list of sum bits together+-- with the final carry-out.+rippleAdd :: Bit -> [(Bit, Bit)] -> ([Bit], Bit)+rippleAdd cin []            = ([], cin)+rippleAdd cin ((a, b) : ps) = (s : ss, cout)+  where (s,  c)    = fullAdder a b cin+        (ss, cout) = rippleAdd c ps++-- * Carry-lookahead adder++-- | Generate and propagate signals for a bit position: a position /generates/ a+-- carry when both inputs are set, and /propagates/ an incoming carry when+-- exactly one input is set.+generatePropagate :: Bit -> Bit -> (Bit, Bit)+generatePropagate a b = (a .&& b, a .<+> b)++-- | The carry-lookahead adder. Rather than rippling the carry through the chain,+-- it computes the carry /into/ each position directly from the+-- generate\/propagate signals of all lower positions, using the textbook+-- expansion+--+-- @+--   c(i) = g(i-1) + p(i-1).g(i-2) + ... + p(i-1)...p(1).g(0) + p(i-1)...p(0).cin+-- @+--+-- so that every carry is an independent flat formula with no sequential+-- dependency. The sum bit at position @i@ is then @p(i) xor c(i)@, and the+-- carry-out is the carry into the (nonexistent) position just past the top.+lookaheadAdd :: Bit -> [(Bit, Bit)] -> ([Bit], Bit)+lookaheadAdd cin ps = (sums, carryInto n)+  where n   = length ps+        gps = [ generatePropagate a b | (a, b) <- ps ]++        g k = fst (gps !! k)+        p k = snd (gps !! k)++        -- product of the propagate signals over positions [lo .. hi-1]+        prodP lo hi = sAnd [ p k | k <- [lo .. hi - 1] ]++        -- carry into position i, expanded over all lower positions+        carryInto i = sOr $ (cin .&& prodP 0 i)+                          : [ g j .&& prodP (j + 1) i | j <- [0 .. i - 1] ]++        sums = [ p i .<+> carryInto i | i <- [0 .. n - 1] ]++-- * Lifting to words++-- | Run an adder over the bits of two words. We blast both operands into+-- little-endian bit lists, feed them to the adder with no incoming carry, and+-- reassemble the sum bits into a word. The carry-out is dropped, matching the+-- wrap-around semantics of bit-vector @(+)@.+addWith :: forall n. (KnownNat n, BVIsNonZero n) => (Bit -> [(Bit, Bit)] -> ([Bit], Bit)) -> SWord n -> SWord n -> SWord n+addWith adder x y = fromBitsLE ss+  where (ss, _) = adder sFalse (zip (blastLE x) (blastLE y))++-- | The ripple-carry adder, lifted to words.+rippleAddWord :: (KnownNat n, BVIsNonZero n) => SWord n -> SWord n -> SWord n+rippleAddWord = addWith rippleAdd++-- | The carry-lookahead adder, lifted to words.+lookaheadAddWord :: (KnownNat n, BVIsNonZero n) => SWord n -> SWord n -> SWord n+lookaheadAddWord = addWith lookaheadAdd++-- * Correctness++-- | The ripple-carry adder computes bit-vector addition. We prove it here at+-- width 8, but the same call proves it at any width you instantiate:+--+-- >>> rippleCorrect @8+-- Q.E.D.+--+-- Adder-versus-@(+)@ equivalence is one of the easy cases for bit-blasting (the+-- carry chain is linear), so this stays fast even at large widths---it is the+-- cheap baseline to compare the lookahead proofs against.+rippleCorrect :: forall n. (KnownNat n, BVIsNonZero n) => IO ThmResult+rippleCorrect = prove $ \(x :: SWord n) (y :: SWord n) -> rippleAddWord x y .== x + y++-- | The carry-lookahead adder computes bit-vector addition:+--+-- >>> lookaheadCorrect @8+-- Q.E.D.+--+-- Note that, unlike 'rippleCorrect', this proof slows down noticeably as the+-- width grows. The lookahead carry is the flat \(O(n^2)\) generate\/propagate+-- expansion, so the formula handed to the solver grows quadratically in the+-- width---try @lookaheadCorrect \@64@, @\@128@, @\@256@ to watch it climb.+lookaheadCorrect :: forall n. (KnownNat n, BVIsNonZero n) => IO ThmResult+lookaheadCorrect = prove $ \(x :: SWord n) (y :: SWord n) -> lookaheadAddWord x y .== x + y++-- | The fast carry-lookahead adder agrees with the simple ripple-carry adder on+-- every input---the parallel carry computation refines the sequential one:+--+-- >>> rippleEqLookahead @8+-- Q.E.D.+--+-- This proof drags in the same \(O(n^2)\) lookahead carry expansion as+-- 'lookaheadCorrect', so it scales the same way: comfortable at small widths,+-- visibly slower as the width grows.+rippleEqLookahead :: forall n. (KnownNat n, BVIsNonZero n) => IO ThmResult+rippleEqLookahead = prove $ \(x :: SWord n) (y :: SWord n) -> rippleAddWord x y .== lookaheadAddWord x y++-- | The carry-out of the ripple-carry adder is exactly the unsigned overflow+-- flag: it is set precisely when the true sum does not fit in @n@ bits, which+-- for an addition with no incoming carry is detectable as the result wrapping+-- below either operand:+--+-- >>> rippleOverflow @8+-- Q.E.D.+rippleOverflow :: forall n. (KnownNat n, BVIsNonZero n) => IO ThmResult+rippleOverflow = prove $ \(x :: SWord n) (y :: SWord n) ->+                   let (_, cout) = rippleAdd sFalse (zip (blastLE x) (blastLE y))+                   in cout .== ((x + y) .< x)
Documentation/SBV/Examples/BitPrecise/BrokenSearch.hs view
@@ -110,6 +110,6 @@                                          mid   = f low high -                                    return $ sFromIntegral mid .== mid'+                                    pure $ sFromIntegral mid .== mid'  {- HLint ignore module "Reduce duplication" -}
Documentation/SBV/Examples/BitPrecise/Legato.hs view
@@ -294,7 +294,7 @@         flagC <- sBool "flagC"         flagZ <- sBool "flagZ" -        return $ legatoIsCorrect (x, y, lo, regX, regA, flagC, flagZ)+        pure $ legatoIsCorrect (x, y, lo, regX, regA, flagC, flagZ)  ------------------------------------------------------------------ -- * C Code generation
Documentation/SBV/Examples/BitPrecise/MergeSort.hs view
@@ -53,7 +53,7 @@ There are two main parts to proving that a sorting algorithm is correct:         * Prove that the output is non-decreasing- +        * Prove that the output is a permutation of the input -} @@ -88,7 +88,7 @@ correctness :: Int -> IO ThmResult correctness n = prove $ do xs <- mkFreeVars n                            let ys = mergeSort xs-                           return $ nonDecreasing ys .&& isPermutationOf xs ys+                           pure $ nonDecreasing ys .&& isPermutationOf xs ys  ----------------------------------------------------------------------------- -- * Generating C code
Documentation/SBV/Examples/BitPrecise/PEXT_PDEP.hs view
@@ -25,7 +25,7 @@ --    OD -- @ ----- PDEP (parallel deposit) is similar, except the assigment is:+-- PDEP (parallel deposit) is similar, except the assignment is: -- -- @ --    DEST[m] := TEMP[k]@@ -37,7 +37,6 @@  {-# LANGUAGE CPP                 #-} {-# LANGUAGE DataKinds           #-}-{-# LANGUAGE Rank2Types          #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TypeApplications    #-} 
Documentation/SBV/Examples/BitPrecise/PrefixSum.hs view
@@ -13,7 +13,7 @@ -----------------------------------------------------------------------------  {-# LANGUAGE CPP                 #-}-{-# LANGUAGE Rank2Types          #-}+{-# LANGUAGE RankNTypes          #-} {-# LANGUAGE ScopedTypeVariables #-}  {-# OPTIONS_GHC -Wall -Werror #-}@@ -68,13 +68,13 @@  -- | The Ladner-Fischer (@lf@) implementation of prefix-sum. lf :: (a, a -> a -> a) -> PowerList a -> PowerList a-lf _ []         = error "lf: malformed (empty) powerlist"-lf _ [x]        = [x]-lf (zero, f) pl = zipPL (zipWith f (rsh lfpq) p) lfpq+lf _            []  = error "lf: malformed (empty) powerlist"+lf _            [x] = [x]+lf (zeroE, f)   pl  = zipPL (zipWith f (rsh lfpq) p) lfpq    where (p, q) = unzipPL pl          pq     = zipWith f p q-         lfpq   = lf (zero, f) pq-         rsh xs = zero : init xs+         lfpq   = lf (zeroE, f) pq+         rsh xs = zeroE : init xs   ----------------------------------------------------------------------@@ -85,7 +85,7 @@ flIsCorrect :: Int -> (forall a. (OrdSymbolic a, Num a, Bits a) => (a, a -> a -> a)) -> Symbolic SBool flIsCorrect n zf = do         args :: PowerList SWord32 <- mkFreeVars n-        return $ ps zf args .== lf zf args+        pure $ ps zf args .== lf zf args  -- | Proves Ladner-Fischer is equivalent to reference specification for addition. -- @0@ is the left-unit element, and we use a power-list of size @8@. We have:
Documentation/SBV/Examples/CodeGeneration/Fibonacci.hs view
@@ -107,7 +107,7 @@ -- >   const SWord64 s32 = s6 ? 0x0000000000000001ULL : s31; -- >   const SWord64 s33 = s4 ? 0x0000000000000001ULL : s32; -- >   const SWord64 s34 = s2 ? 0x0000000000000000ULL : s33;--- >   +-- > -- >   return s34; -- > } genFib1 :: SWord64 -> IO ()@@ -176,7 +176,7 @@ -- >       0x000003af9a19bbd9ULL, 0x000005f6c7b064e2ULL, 0x000009a661ca20bbULL -- >   }; -- >   const SWord64 s65 = s0 >= 65 ? 0x0000000000000000ULL : table0[s0];--- >   +-- > -- >   return s65; -- > } genFib2 :: Word64 -> IO ()
Documentation/SBV/Examples/CodeGeneration/GCD.hs view
@@ -88,14 +88,14 @@ -- precisely the same amount of time for all values of @x@ and @y@. -- -- > /* File: "sgcd.c". Automatically generated by SBV. Do not edit! */--- > +-- > -- > #include <stdio.h> -- > #include <stdlib.h> -- > #include <inttypes.h> -- > #include <stdint.h> -- > #include <stdbool.h> -- > #include "sgcd.h"--- > +-- > -- > SWord8 sgcd(const SWord8 x, const SWord8 y) -- > { -- >   const SWord8 s0 = x;@@ -146,7 +146,7 @@ -- >   const SWord8 s46 = s9 ? s5 : s45; -- >   const SWord8 s47 = s6 ? s1 : s46; -- >   const SWord8 s48 = s3 ? s0 : s47;--- >   +-- > -- >   return s48; -- > } genGCDInC :: IO ()
Documentation/SBV/Examples/Crypto/AES.hs view
@@ -29,11 +29,7 @@ {-# LANGUAGE ParallelListComp #-} {-# LANGUAGE TypeApplications #-} -#if MIN_VERSION_base(4,19,0) {-# OPTIONS_GHC -Wall -Werror -Wno-incomplete-uni-patterns -Wno-x-partial #-}-#else-{-# OPTIONS_GHC -Wall -Werror -Wno-incomplete-uni-patterns #-}-#endif  module Documentation.SBV.Examples.Crypto.AES where @@ -908,6 +904,7 @@ chop4 [] = [] chop4 xs = let (f, r) = splitAt 4 xs in f : chop4 r -{- HLint ignore aesRound             "Use head" -}-{- HLint ignore aesInvRound          "Use head" -}-{- HLint ignore aesDecryptUnwoundKey "Use head" -}+{- HLint ignore aesRound             "Use head"           -}+{- HLint ignore aesInvRound          "Use head"           -}+{- HLint ignore aesDecryptUnwoundKey "Use head"           -}+{- HLint ignore module               "Reduce duplication" -}
Documentation/SBV/Examples/Crypto/Prince.hs view
@@ -6,15 +6,14 @@ -- Maintainer: erkokl@gmail.com -- Stability : experimental ----- Implementation of Prince encryption and decrytion, following the spec--- <https://eprint.iacr.org/2012/529.pdf>+-- Implementation of Prince encryption and decryption. -----------------------------------------------------------------------------  {-# LANGUAGE CPP              #-} {-# LANGUAGE DataKinds        #-} {-# LANGUAGE ParallelListComp #-} -{-# OPTIONS_GHC -Wno-incomplete-uni-patterns #-}+{-# OPTIONS_GHC -Wall -Werror -Wno-incomplete-uni-patterns #-}  module Documentation.SBV.Examples.Crypto.Prince where @@ -131,8 +130,8 @@ -- Q.E.D. prop_sr :: Predicate prop_sr = do b <- free "block"-             return $   b .== sr (srInv b)-                    .&& b .== srInv (sr b)+             pure $   b .== sr (srInv b)+                  .&& b .== srInv (sr b)  -- | M' transformation m' :: Block -> Block@@ -189,8 +188,8 @@ -- Q.E.D. prop_SBox :: Predicate prop_SBox = do b <- free "block"-               return $   b .== sBoxInv (sBox b)-                      .&& b .== sBox (sBoxInv b)+               pure $   b .== sBoxInv (sBox b)+                    .&& b .== sBox (sBoxInv b)  -- * Round constants 
Documentation/SBV/Examples/Crypto/RC4.hs view
@@ -15,8 +15,6 @@ -- functional implementation. ----------------------------------------------------------------------------- -{-# LANGUAGE ScopedTypeVariables #-}- {-# OPTIONS_GHC -Wall -Werror #-}  module Documentation.SBV.Examples.Crypto.RC4 where@@ -146,7 +144,7 @@         let ks  = keySchedule key             ct  = zipWith xor ks pt             pt' = zipWith xor ks ct-        return $ pt .== pt'+        pure $ pt .== pt'  -------------------------------------------------------------------------------------------- -- | For doctest purposes only
Documentation/SBV/Examples/Crypto/SHA.hs view
@@ -17,7 +17,6 @@  {-# LANGUAGE DataKinds           #-} {-# LANGUAGE NamedFieldPuns      #-}-{-# LANGUAGE Rank2Types          #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TypeApplications    #-} 
Documentation/SBV/Examples/Existentials/Diophantine.hs view
@@ -70,10 +70,10 @@ ldn :: forall proxy n. KnownNat n => proxy n -> Maybe Int -> [([Integer], Integer)] -> IO Solution ldn pn mbLim problem = do solution <- basis pn mbLim (map (map literal) m)                           if homogeneous-                              then return $ Homogeneous solution+                              then pure $ Homogeneous solution                               else do let ones  = [xs | (1:xs) <- solution]                                           zeros = [xs | (0:xs) <- solution]-                                      return $ NonHomogeneous ones zeros+                                      pure $ NonHomogeneous ones zeros   where rhs = map snd problem         lhs = map fst problem         homogeneous = all (== 0) rhs@@ -110,11 +110,11 @@ -- We have: -- -- >>> test--- (k, 2+k', 2k+k') -- (1+k, k', 2k+k')+-- (k, 2+k', 2k+k') -- -- That is, for arbitrary @k@ and @k'@, we have two different solutions. (An infinite family.)--- You can verify these solutuions by substituting the values for @x@, @y@ and @z@ in the above, for each choice.+-- You can verify these solutions by substituting the values for @x@, @y@ and @z@ in the above, for each choice. -- It's harder to see that they cover all possibilities, but a moments thought reveals that is indeed the case. test :: IO Solution test = ldn (Proxy @4) Nothing [([2,1,-1], 2)]@@ -170,5 +170,5 @@                                   , ([0,  0,  0,  0,  0,  4, -5], 1)                                   ]                       case soln of-                        NonHomogeneous (xs:_) _ -> return xs+                        NonHomogeneous (xs:_) _ -> pure xs                         _                       -> search (i+1)
Documentation/SBV/Examples/Lists/BoundedMutex.hs view
@@ -9,14 +9,10 @@ -- Proves a simple mutex algorithm correct up to a given bound. ----------------------------------------------------------------------------- -{-# LANGUAGE DeriveAnyClass      #-}-{-# LANGUAGE DeriveDataTypeable  #-}-{-# LANGUAGE FlexibleContexts    #-} {-# LANGUAGE FlexibleInstances   #-}-{-# LANGUAGE OverloadedLists     #-} {-# LANGUAGE ScopedTypeVariables #-}-{-# LANGUAGE StandaloneDeriving  #-} {-# LANGUAGE TemplateHaskell     #-}+{-# LANGUAGE TypeApplications    #-}  {-# OPTIONS_GHC -Wall -Werror #-} @@ -29,10 +25,10 @@ data State = Idle     -- ^ Regular work            | Ready    -- ^ Intention to enter critical state            | Critical -- ^ In the critical state-           deriving (Enum, Bounded)+           deriving Show  -- | Make 'State' a symbolic enumeration-mkSymbolicEnumeration ''State+mkSymbolic [''State]  -- | The mutex property holds for two sequences of state transitions, if they are not in -- their critical section at the same time.@@ -114,7 +110,7 @@ -- -- >>> notFair 10 -- Fairness is violated at bound: 10--- P1: [Idle,Idle,Ready,Critical,Idle,Ready,Critical,Critical,Idle,Ready]+-- P1: [Idle,Idle,Idle,Idle,Ready,Critical,Idle,Ready,Critical,Critical] -- P2: [Idle,Ready,Ready,Ready,Ready,Ready,Ready,Ready,Ready,Ready] -- Ts: [1,1,1,1,1,1,1,1,1,1] --
Documentation/SBV/Examples/Misc/Auxiliary.hs view
@@ -15,8 +15,6 @@ -- considering them explicitly in model construction. ----------------------------------------------------------------------------- -{-# LANGUAGE OverloadedStrings #-}- {-# OPTIONS_GHC -Wall -Werror #-}  module Documentation.SBV.Examples.Misc.Auxiliary where@@ -30,7 +28,7 @@              y <- free "y"              constrain $ x .>= 0              constrain $ x .<= 1-             return $ x - abs y .== (0 :: SInteger)+             pure $ x - abs y .== (0 :: SInteger)  -- | Generate all satisfying assignments for our problem. We have: --
Documentation/SBV/Examples/Misc/Definitions.hs view
@@ -11,7 +11,8 @@ -- for recursive definitions. ----------------------------------------------------------------------------- -{-# LANGUAGE OverloadedLists  #-}+{-# LANGUAGE OverloadedLists #-}+{-# LANGUAGE QuasiQuotes     #-}  {-# OPTIONS_GHC -Wall -Werror #-} @@ -19,7 +20,6 @@  import Data.SBV import Data.SBV.Tuple-import qualified Data.SBV.List as L  ------------------------------------------------------------------------- -- * Simple functions@@ -46,11 +46,13 @@  -- | Sum of numbers from 0 to the given number. Since this is a recursive -- definition, we cannot simply symbolically simulate it as it wouldn't--- terminat. So, we use the function generation facilities to define it--- directly in SMTLib. Note how the function itself takes a "recursive version"--- of itself, and all recursive calls are made with this name.+-- terminate. So, we use the function generation facilities to define it+-- directly in SMTLib. sumToN :: SInteger -> SInteger-sumToN = smtFunction "sumToN" $ \x -> ite (x .<= 0) 0 (x + sumToN (x - 1))+sumToN = smtFunction "sumToN" $ \x -> [sCase| x of+                                         _ | x .<= 0 -> 0+                                         _           -> x + sumToN (x - 1)+                                      |]  -- | Prove that sumToN works as expected. --@@ -65,7 +67,10 @@  -- | Coding list-length recursively. Again, we map directly to an SMTLib function. len :: SList Integer -> SInteger-len = smtFunction "list_length" $ \xs -> ite (L.null xs) 0 (1 + len (L.tail xs))+len = smtFunction "list_length" $ \xs -> [sCase| xs of+                                            []   -> 0+                                            _:ts -> 1 + len ts+                                         |]  -- | Calculate the length of a list, using recursive functions. --@@ -90,26 +95,56 @@ pingPong :: IO SatResult pingPong = sat $ \x -> x .> 0 .&& ping x sTrue .> x   where ping :: SInteger -> SBool -> SInteger-        ping = smtFunction "ping" $ \x y -> ite y (pong (x+1) (sNot y)) (x - 1)+        ping = smtFunctionWithMeasure "ping" (\_ y -> ite y 1 (0 :: SInteger), [])+             $ \x y -> [sCase| y of+                           True  -> pong (x+1) (sNot y)+                           False -> x - 1+                        |]          pong :: SInteger -> SBool -> SInteger-        pong = smtFunction "pong" $ \a b -> ite b (ping (a-1) (sNot b)) a+        pong = smtFunctionWithMeasure "pong" (\_ b -> ite b 1 (0 :: SInteger), [])+             $ \a b -> [sCase| b of+                           True  -> ping (a-1) (sNot b)+                           False -> a+                        |] --- | Usual way to define even-odd mutually recursively. Unfortunately, while this goes through,--- the backend solver does not terminate on this example. See 'evenOdd2' for an alternative--- technique to handle such definitions, which seems to be more solver friendly.+-- | Usual way to define even-odd mutually recursively. While the termination measure+-- is verified, current SMT solvers do not terminate when evaluating mutually recursive+-- @define-funs-rec@ definitions. See 'isEvenOdd' for a single-function alternative+-- that is more solver-friendly.+--+-- >>> evenOdd+-- Unknown.+--   Reason: timeout evenOdd :: IO SatResult-evenOdd = satWith z3{verbose=True} $ \a r -> a .== 20 .&& r .== isE a+evenOdd = sat $ do setTimeOut 5000+                   a <- sInteger "a"+                   r <- sBool "r"+                   constrain $ a .== 20 .&& r .== isE a   where isE, isO :: SInteger -> SBool-        isE = smtFunction "isE" $ \x -> ite (x .< 0) (isE (-x)) (x .== 0 .|| isO (x - 1))-        isO = smtFunction "isO" $ \x -> ite (x .< 0) (isO (-x)) (x .== 0 .|| isE (x - 1))+        isE = smtFunctionWithMeasure "isE" (\x -> tuple (abs x, ite (x .< 0) (1 :: SInteger) 0), [])+            $ \x -> [sCase| x of+                       _ | x .< 0 -> isE (-x)+                       _          -> x .== 0 .|| isO (x - 1)+                    |]+        isO = smtFunctionWithMeasure "isO" (\x -> tuple (abs x, ite (x .< 0) (1 :: SInteger) 0), [])+            $ \x -> [sCase| x of+                       _ | x .< 0 -> isO (-x)+                       _          -> x .== 0 .|| isE (x - 1)+                    |]  -- | Another technique to handle mutually definitions is to define the functions together, and pull the results out individually.--- This usually works better than defining the functions separately, from a solver perspective.+--+-- The measure @(abs x, ite (x < 0) 1 0)@ ensures termination: when @x < 0@, the call @isEvenOdd(-x)@+-- keeps @abs x@ the same but drops the second component from 1 to 0. When @x > 0@, the call+-- @isEvenOdd(x-1)@ decreases @abs x@. isEvenOdd :: SInteger -> STuple Bool Bool-isEvenOdd = smtFunction "isEvenOdd" $ \x -> ite (x .<  0) (isEvenOdd (-x))-                                          $ ite (x .== 0) (tuple (sTrue, sFalse))-                                                          (swap (isEvenOdd (x - 1)))+isEvenOdd = smtFunctionWithMeasure "isEvenOdd" (\x -> tuple (abs x, ite (x .< 0) (1 :: SInteger) 0), [])+          $ \x -> [sCase| x of+                     _ | x .<  0 -> isEvenOdd (-x)+                     _ | x .== 0 -> tuple (sTrue, sFalse)+                     _           -> swap (isEvenOdd (x - 1))+                  |]  -- | Extract the isEven function for easier use. isEven :: SInteger -> SBool@@ -135,9 +170,12 @@  -- | Ackermann function, demonstrating nested recursion. ack :: SInteger -> SInteger -> SInteger-ack = smtFunction "ack" $ \x y -> ite (x .== 0) (y + 1)-                                $ ite (y .== 0) (ack (x - 1) 1)-                                                (ack (x - 1) (ack x (y - 1)))+ack = smtFunction "ack"+    $ \x y -> [sCase| x of+                 _ | x .<= 0 -> y + 1+                 _ | y .<= 0 -> ack (x - 1) 1+                 _           -> ack (x - 1) (ack x (y - 1))+              |]  -- | We can prove constant-folding instances of the equality @ack 1 y == y + 2@: --
Documentation/SBV/Examples/Misc/Enumerate.hs view
@@ -12,12 +12,10 @@ -- example involving enumerations. ----------------------------------------------------------------------------- -{-# LANGUAGE DeriveAnyClass      #-}-{-# LANGUAGE DeriveDataTypeable  #-} {-# LANGUAGE FlexibleInstances   #-} {-# LANGUAGE ScopedTypeVariables #-}-{-# LANGUAGE StandaloneDeriving  #-} {-# LANGUAGE TemplateHaskell     #-}+{-# LANGUAGE TypeApplications    #-}  {-# OPTIONS_GHC -Wall -Werror #-} @@ -28,25 +26,20 @@ -- | A simple enumerated type, that we'd like to translate to SMT-Lib intact; -- i.e., this type will not be uninterpreted but rather preserved and will -- be just like any other symbolic type SBV provides.------ Also note that we need to have the following @LANGUAGE@ options defined:--- @TemplateHaskell@, @StandaloneDeriving@, @DeriveDataTypeable@, @DeriveAnyClass@ for--- this to work. data E = A | B | C-       deriving (Enum, Bounded, Eq, Ord)  -- | Make 'E' a symbolic value.-mkSymbolicEnumeration ''E+mkSymbolic [''E]  -- | Have the SMT solver enumerate the elements of the domain. We have: -- -- >>> elts -- Solution #1:---   s0 = C :: E+--   s0 = B :: E -- Solution #2: --   s0 = A :: E -- Solution #3:---   s0 = B :: E+--   s0 = C :: E -- Found 3 different solutions. elts :: IO AllSatResult elts = allSat $ \(x::SE) -> x .== x
Documentation/SBV/Examples/Misc/FirstOrderLogic.hs view
@@ -12,17 +12,11 @@  {-# LANGUAGE CPP                 #-} {-# LANGUAGE DataKinds           #-}-{-# LANGUAGE DeriveAnyClass      #-}-{-# LANGUAGE DeriveDataTypeable  #-} {-# LANGUAGE FlexibleInstances   #-} {-# LANGUAGE ScopedTypeVariables #-}-{-# LANGUAGE StandaloneDeriving  #-} {-# LANGUAGE TemplateHaskell     #-}-{-# LANGUAGE TypeApplications    #-}--#if MIN_VERSION_base(4,19,0) {-# LANGUAGE TypeAbstractions    #-}-#endif+{-# LANGUAGE TypeApplications    #-}  {-# OPTIONS_GHC -Wall -Werror #-} @@ -38,17 +32,16 @@  -- | An uninterpreted sort for demo purposes, named 'U' data U-mkUninterpretedSort ''U+mkSymbolic [''U]  -- | An uninterpreted sort for demo purposes, named 'V' data V-mkUninterpretedSort ''V+mkSymbolic [''V]  -- | An enumerated type for demo purposes, named 'E' data E = A | B | C-       deriving (Enum, Bounded, Ord, Eq) -mkSymbolicEnumeration ''E+mkSymbolic [''E]  -- | Helper to turn quantified formula to a regular boolean. We -- can think of this as quantifier elimination, hence the name 'qe'.@@ -185,7 +178,7 @@ -- >>> sat skolemEx1 -- Satisfiable ----- But this isn't really illimunating. We can first skolemize, and then ask to satisfy:+-- But this isn't really illuminating. We can first skolemize, and then ask to satisfy: -- -- >>> sat $ skolemize skolemEx1 -- Satisfiable. Model:
Documentation/SBV/Examples/Misc/Floating.hs view
@@ -68,19 +68,19 @@ -- -- >>> assocPlusRegular -- Falsifiable. Counter-example:---   x =  1.9258643e-34 :: Float---   y =  -1.925931e-34 :: Float---   z = -3.8518585e-34 :: Float+--   x =  2.5291315e20 :: Float+--   y = -2.9558926e20 :: Float+--   z =  1.1256507e20 :: Float -- -- Indeed, we have: ----- >>> let x =  1.9258643e-34 :: Float--- >>> let y =  -1.925931e-34 :: Float--- >>> let z = -3.8518585e-34 :: Float+-- >>> let x =  2.5291315e20 :: Float+-- >>> let y = -2.9558926e20 :: Float+-- >>> let z =  1.1256507e20 :: Float -- >>> x + (y + z)--- -3.8519256e-34+-- 6.988897e19 -- >>> (x + y) + z--- -3.851925e-34+-- 6.988896e19 -- -- Note the significant difference in the results! assocPlusRegular :: IO ThmResult@@ -90,7 +90,7 @@                               -- make sure we do not overflow at the intermediate points                               constrain $ fpIsPoint lhs                               constrain $ fpIsPoint rhs-                              return $ lhs .== rhs+                              pure $ lhs .== rhs  ----------------------------------------------------------------------------- -- * FP addition by non-zero can result in no change@@ -118,7 +118,7 @@                              constrain $ fpIsPoint a                              constrain $ fpIsPoint b                              constrain $ a + b .== a-                             return $ b .== 0+                             pure $ b .== 0  ----------------------------------------------------------------------------- -- * FP multiplicative inverses may not exist@@ -131,18 +131,18 @@ -- -- >>> multInverse -- Falsifiable. Counter-example:---   a = -1.0669042e-38 :: Float+--   a = -2.372672e38 :: Float -- -- Indeed, we have: ----- >>> let a = -1.0669042e-38 :: Float+-- >>> let a = -2.372672e38 :: Float -- >>> a * (1/a) -- 0.99999994 multInverse :: IO ThmResult multInverse = prove $ do a <- sFloat "a"                          constrain $ fpIsPoint a                          constrain $ fpIsPoint (1/a)-                         return $ a * (1/a) .== 1+                         pure $ a * (1/a) .== 1  ----------------------------------------------------------------------------- -- * Effect of rounding modes@@ -189,7 +189,7 @@                        let rhs = x + y                        constrain $ fpIsPoint lhs                        constrain $ fpIsPoint rhs-                       return $ lhs ./= rhs+                       pure $ lhs ./= rhs  -- | Arbitrary precision floating-point numbers. SBV can talk about floating point numbers with arbitrary -- exponent and significand sizes as well. Here is a simple example demonstrating the minimum non-zero positive
Documentation/SBV/Examples/Misc/LambdaArray.hs view
@@ -29,17 +29,17 @@ -- Q.E.D. memsetExample :: IO ThmResult memsetExample = prove $ do-   mem  <- sArray   "mem"-   lo   <- sInteger "lo"-   hi   <- sInteger "hi"-   zero <- sInteger "zero"+   mem   <- sArray   "mem"+   lo    <- sInteger "lo"+   hi    <- sInteger "hi"+   zeroV <- sInteger "zero"     -- Get an index within lo/hi    idx  <- sInteger "idx"    constrain $ idx .>= lo .&& idx .<= hi     -- It must be the case that we get zero back after mem-setting-   pure $ readArray (memset mem lo hi zero) idx .== zero+   pure $ readArray (memset mem lo hi zeroV) idx .== zeroV  -- | Get an example of reading a value out of range. The value returned should be out-of-range for lo/hi --@@ -53,10 +53,10 @@ --   Read =       1 :: Integer outOfInit :: IO SatResult outOfInit = sat $ do-   mem  <- sArray "mem"-   lo   <- sInteger "lo"-   hi   <- sInteger "hi"-   zero <- sInteger "zero"+   mem   <- sArray "mem"+   lo    <- sInteger "lo"+   hi    <- sInteger "hi"+   zeroV <- sInteger "zero"     -- Get a meaningful range:    constrain $ lo .<= hi@@ -65,4 +65,6 @@    idx  <- sInteger "idx"     -- Let read produce non-zero-   constrain $ observe "Read" (readArray (memset mem lo hi zero) idx) ./= zero+   constrain $ observe "Read" (readArray (memset mem lo hi zeroV) idx) ./= zeroV++{- HLint ignore module "Reduce duplication" -}
Documentation/SBV/Examples/Misc/ModelExtract.hs view
@@ -25,7 +25,7 @@ outside disallow = sat $ do x <- sInteger "x"                             let notEq i = constrain $ x ./= literal i                             mapM_ notEq disallow-                            return $ x .>= 0+                            pure $ x .>= 0  -- | We now use "outside" repeatedly to generate 10 integers, such that we not only disallow -- previously generated elements, but also any value that differs from previous solutions@@ -37,7 +37,7 @@ genVals :: IO [Integer] genVals = go [] []   where go _ model-         | length model >= 10 = return model+         | length model >= 10 = pure model         go disallow model           = do res <- outside disallow                -- Look up the value of "x" in the generated model@@ -45,4 +45,4 @@                -- SBV known type would be OK as well.                case "x" `getModelValue` res of                  Just c -> go ([c-4 .. c+4] ++ disallow) (c : model)-                 _      -> return model+                 _      -> pure model
Documentation/SBV/Examples/Misc/Newtypes.hs view
@@ -94,4 +94,4 @@     humanHeight :: SHumanHeightInCm <- free "humanheight"     constrain $ humanHeight .== tallestHumanEver -    return $ ceilingHighEnoughForHuman ceiling humanHeight+    pure $ ceilingHighEnoughForHuman ceiling humanHeight
Documentation/SBV/Examples/Misc/ProgramPaths.hs view
@@ -30,7 +30,7 @@ d1 :: SInteger -> SInteger -> SInteger d1 x y = ite (y .< x - 2) 7 2 --- | Symbolic version of @d2 x y = if y > 3 then  10 else  50@+-- | Symbolic version of @d2 y = if y > 3 then  10 else  50@ d2 :: SInteger -> SInteger d2 y = ite (y .> 3) 10 50 
Documentation/SBV/Examples/Misc/SetAlgebra.hs view
@@ -359,6 +359,6 @@ >>> prove $ \(a :: SI) b c -> (b `intersection` c) `isSubsetOf` a .=> b `isSubsetOf` a .&& c `isSubsetOf` a Falsifiable. Counter-example:   s0 = U - {2} :: {Integer}-  s1 =      {} :: {Integer}+  s1 = U - {2} :: {Integer}   s2 =     {2} :: {Integer} -}
Documentation/SBV/Examples/Misc/SoftConstrain.hs view
@@ -44,4 +44,4 @@                    softConstrain $ x .== "default-x-value"                    softConstrain $ y .== "default-y-value" -                   return sTrue+                   pure sTrue
Documentation/SBV/Examples/Optimization/Enumerate.hs view
@@ -10,13 +10,10 @@ -- by properly defining your metric values. ----------------------------------------------------------------------------- -{-# LANGUAGE DeriveAnyClass      #-}-{-# LANGUAGE DeriveDataTypeable  #-}-{-# LANGUAGE FlexibleInstances   #-}-{-# LANGUAGE ScopedTypeVariables #-}-{-# LANGUAGE StandaloneDeriving  #-}-{-# LANGUAGE TemplateHaskell     #-}-{-# LANGUAGE TypeFamilies        #-}+{-# LANGUAGE FlexibleInstances #-}+{-# LANGUAGE TemplateHaskell   #-}+{-# LANGUAGE TypeApplications  #-}+{-# LANGUAGE TypeFamilies      #-}  {-# OPTIONS_GHC -Wall -Werror #-} @@ -26,10 +23,9 @@  -- | A simple enumeration data Day = Mon | Tue | Wed | Thu | Fri | Sat | Sun-         deriving (Enum, Bounded)  -- | Make 'Day' a symbolic value.-mkSymbolicEnumeration ''Day+mkSymbolic [''Day]  -- | Make day an optimizable value, by mapping it to 'Word8' in the most -- obvious way. We can map it to any value the underlying solver can optimize,
Documentation/SBV/Examples/Optimization/ExtField.hs view
@@ -10,6 +10,7 @@ -----------------------------------------------------------------------------  {-# LANGUAGE CPP #-}+ {-# OPTIONS_GHC -Wall -Werror #-}  module Documentation.SBV.Examples.Optimization.ExtField where
Documentation/SBV/Examples/ProofTools/BMC.hs view
@@ -59,7 +59,7 @@         -- calls to 'Data.SBV.setOption'. We do not need any for this problem,         -- so we simply do nothing.         setup :: Symbolic ()-        setup = return ()+        setup = pure ()          -- Transition relation: At each step we either         -- get to increase @x@ by 2, or decrement @y@ by 4:
Documentation/SBV/Examples/ProofTools/Strengthen.hs view
@@ -22,7 +22,7 @@ -- Where @*@ stands for non-deterministic choice. For each program we try to prove that @y >= 1@ is an invariant. -- -- It turns out that the property @y >= 1@ is indeed an invariant, but is--- not inductive for either program. We proceed to strengten the invariant+-- not inductive for either program. We proceed to strengthen the invariant -- and establish it for the first case. We then note that the same strengthening -- doesn't work for the second program, and find a further strengthening to -- establish that case as well. This example follows the introductory example@@ -68,7 +68,7 @@         -- calls to 'Data.SBV.setOption'. We do not need any for this problem,         -- so we simply do nothing.         setup :: Symbolic ()-        setup = return ()+        setup = pure ()          -- Initially, @x@ and @y@ are both @1@         initial :: S SInteger -> SBool
Documentation/SBV/Examples/ProofTools/Sum.hs view
@@ -60,7 +60,7 @@         -- calls to 'Data.SBV.setOption'. We do not need any for this problem,         -- so we simply do nothing.         setup :: Symbolic ()-        setup = return ()+        setup = pure ()          -- Initially, @s@ and @i@ are both @0@. We also require @n@ to be at least @0@.         initial :: S SInteger -> SBool
Documentation/SBV/Examples/Puzzles/AOC_2021_24.hs view
@@ -12,7 +12,7 @@ -- computer with 4 integer registers (w, x, y, z), and 6 instructions (inp, add, mul, div, mod, eql). -- You are given a program (hilariously called "monad"), and your goal is to figure out what -- the maximum and minimum inputs you can provide to this program such that when it runs--- register z ends up with the value 1. Please refer to the above link for the full description.+-- register z ends up with the value 0. Please refer to the above link for the full description. -- -- While there are multiple ways to solve this problem in SBV, the solution here demonstrates -- how to turn programs in this fictional language into actual Haskell/SBV programs, i.e.,
Documentation/SBV/Examples/Puzzles/Birthday.hs view
@@ -35,11 +35,9 @@ -- NB. Thanks to Amit Goel for suggesting the formalization strategy used in here. ----------------------------------------------------------------------------- -{-# LANGUAGE DeriveAnyClass      #-}-{-# LANGUAGE DeriveDataTypeable  #-}-{-# LANGUAGE FlexibleInstances   #-}-{-# LANGUAGE StandaloneDeriving  #-}-{-# LANGUAGE TemplateHaskell     #-}+{-# LANGUAGE FlexibleInstances #-}+{-# LANGUAGE TemplateHaskell   #-}+{-# LANGUAGE TypeApplications  #-}  {-# OPTIONS_GHC -Wall -Werror #-} @@ -53,14 +51,12 @@  -- | Months. We only put in the months involved in the puzzle for simplicity data Month = May | Jun | Jul | Aug-           deriving (Enum, Bounded)  -- | Days. Again, only the ones mentioned in the puzzle. data Day = D14 | D15 | D16 | D17 | D18 | D19-         deriving (Enum, Bounded) -mkSymbolicEnumeration ''Month-mkSymbolicEnumeration ''Day+mkSymbolic [''Month]+mkSymbolic [''Day]  -- | Represent the birthday as a record data Birthday = BD SMonth SDay
Documentation/SBV/Examples/Puzzles/Coins.hs view
@@ -44,7 +44,7 @@ mkCoin :: Int -> Symbolic Coin mkCoin i = do c <- free $ 'c' : show i               constrain $ sAny (.== c) [1, 5, 10, 25, 50, 100]-              return c+              pure c  -- | Return all combinations of a sequence of values. combinations :: [a] -> [[a]]@@ -105,4 +105,4 @@         constrain $ sAnd $ zipWith (.>=) cs (drop 1 cs)          -- assert that the sum must be 115 cents.-        return $ sum cs .== 115+        pure $ sum cs .== 115
Documentation/SBV/Examples/Puzzles/DieHard.hs view
@@ -11,14 +11,12 @@ -- We use a bounded-model-checking style search to find a solution. ----------------------------------------------------------------------------- -{-# LANGUAGE DeriveAnyClass        #-}-{-# LANGUAGE DeriveDataTypeable    #-} {-# LANGUAGE FlexibleInstances     #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE NamedFieldPuns        #-}-{-# LANGUAGE StandaloneDeriving    #-} {-# LANGUAGE OverloadedRecordDot   #-} {-# LANGUAGE TemplateHaskell       #-}+{-# LANGUAGE TypeApplications      #-} {-# LANGUAGE TypeFamilies          #-}  {-# OPTIONS_GHC -Wall -Werror #-}@@ -30,9 +28,9 @@  -- | Possible actions data Action = Initial | FillBig | FillSmall | EmptyBig | EmptySmall | BigToSmall | SmallToBig-            deriving (Enum, Bounded)+             deriving Show -mkSymbolicEnumeration ''Action+mkSymbolic [''Action]  -- | We represent the state with two quantities, the amount of water in each jug. The -- action is how we got into this state.
Documentation/SBV/Examples/Puzzles/Drinker.hs view
@@ -16,10 +16,7 @@ -- @ ----------------------------------------------------------------------------- -{-# LANGUAGE DeriveAnyClass     #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE StandaloneDeriving #-}-{-# LANGUAGE TemplateHaskell    #-}+{-# LANGUAGE TemplateHaskell #-}  {-# OPTIONS_GHC -Wall -Werror #-} @@ -31,7 +28,7 @@ data P  -- | Make 'P' an uninterpreted sort, introducing the type 'SP' for its symbolic version-mkUninterpretedSort ''P+mkSymbolic [''P]  -- | Declare the uninterpret function 'd', standing for drinking. For each person, this function -- assigns whether they are drinking; but is otherwise completely uninterpreted. (i.e., our theorem
Documentation/SBV/Examples/Puzzles/Euler185.hs view
@@ -34,7 +34,7 @@ -- number of matching digits match what's given in the problem statement. euler185 :: Symbolic SBool euler185 = do soln <- mkFreeVars 16-              return $ sAll digit soln .&& sAnd (map (genConstr soln) guesses)+              pure $ sAll digit soln .&& sAnd (map (genConstr soln) guesses)   where genConstr a (b, c) = sum (zipWith eq a b) .== (c :: SWord8)         digit x = (x :: SWord8) .>= 0 .&& x .<= 9         eq x y =  ite (x .== fromIntegral (ord y - ord '0')) 1 0
Documentation/SBV/Examples/Puzzles/Fish.hs view
@@ -27,53 +27,47 @@ -- Who owns the fish? ------------------------------------------------------------------------------ -{-# OPTIONS_GHC -Wall -Werror #-}--{-# LANGUAGE DeriveAnyClass      #-}-{-# LANGUAGE DeriveDataTypeable  #-} {-# LANGUAGE FlexibleInstances   #-} {-# LANGUAGE ScopedTypeVariables #-}-{-# LANGUAGE StandaloneDeriving  #-} {-# LANGUAGE TemplateHaskell     #-}+{-# LANGUAGE TypeApplications    #-} +{-# OPTIONS_GHC -Wall -Werror #-}+ module Documentation.SBV.Examples.Puzzles.Fish where  import Data.SBV  -- | Colors of houses data Color = Red | Green | White | Yellow | Blue-           deriving (Enum, Bounded)  -- | Make 'Color' a symbolic value.-mkSymbolicEnumeration ''Color+mkSymbolic [''Color]  -- | Nationalities of the occupants data Nationality = Briton | Dane | Swede | Norwegian | German-                 deriving (Enum, Bounded)+                 deriving Show  -- | Make 'Nationality' a symbolic value.-mkSymbolicEnumeration ''Nationality+mkSymbolic [''Nationality]  -- | Beverage choices data Beverage = Tea | Coffee | Milk | Beer | Water-              deriving (Enum, Bounded)  -- | Make 'Beverage' a symbolic value.-mkSymbolicEnumeration ''Beverage+mkSymbolic [''Beverage]  -- | Pets they keep data Pet = Dog | Horse | Cat | Bird | Fish-         deriving (Enum, Bounded)  -- | Make 'Pet' a symbolic value.-mkSymbolicEnumeration ''Pet+mkSymbolic [''Pet]  -- | Sports they engage in data Sport = Football | Baseball | Volleyball | Hockey | Tennis-           deriving (Enum, Bounded)  -- | Make 'Sport' a symbolic value.-mkSymbolicEnumeration ''Sport+mkSymbolic [''Sport]  -- | We have: --
Documentation/SBV/Examples/Puzzles/Garden.hs view
@@ -28,12 +28,9 @@ -- case, the second student would be right. ------------------------------------------------------------------------------ -{-# LANGUAGE DeriveAnyClass      #-}-{-# LANGUAGE DeriveDataTypeable  #-}-{-# LANGUAGE FlexibleInstances   #-}-{-# LANGUAGE OverloadedStrings   #-}-{-# LANGUAGE StandaloneDeriving  #-}-{-# LANGUAGE TemplateHaskell     #-}+{-# LANGUAGE FlexibleInstances  #-}+{-# LANGUAGE TemplateHaskell    #-}+{-# LANGUAGE TypeApplications   #-}  {-# OPTIONS_GHC -Wall -Werror #-} @@ -43,10 +40,9 @@  -- | Colors of the flowers data Color = Red | Yellow | Blue-          deriving (Enum, Bounded)  -- | Make 'Color' a symbolic value.-mkSymbolicEnumeration ''Color+mkSymbolic [''Color]  -- | Represent flowers by symbolic integers type Flower = SInteger
Documentation/SBV/Examples/Puzzles/HexPuzzle.hs view
@@ -36,13 +36,9 @@ -- to the final one. ----------------------------------------------------------------------------- -{-# LANGUAGE DeriveAnyClass      #-}-{-# LANGUAGE DeriveDataTypeable  #-}-{-# LANGUAGE FlexibleInstances   #-}-{-# LANGUAGE ScopedTypeVariables #-}-{-# LANGUAGE StandaloneDeriving  #-}-{-# LANGUAGE TemplateHaskell     #-}-{-# LANGUAGE TypeApplications    #-}+{-# LANGUAGE FlexibleInstances #-}+{-# LANGUAGE TemplateHaskell   #-}+{-# LANGUAGE TypeApplications  #-}  {-# OPTIONS_GHC -Wall -Werror #-} @@ -55,10 +51,9 @@  -- | Colors we're allowed data Color = Black | Blue | Green | Red-          deriving (Enum, Bounded)  -- | Make 'Color' a symbolic value.-mkSymbolicEnumeration ''Color+mkSymbolic [''Color]  -- | Use 8-bit words for button numbers, even though we only have 1 to 19. type Button  = Word8@@ -89,7 +84,7 @@ -- transform from the initial board position to a final board position. search :: [Color] -> [Color] -> IO () search initial final = runSMT $ do registerType (Proxy @SColor)-                                   let emptyGrid = lambdaArray (const sBlack)+                                   let emptyGrid = constArray sBlack                                        initGrid  = foldr (\(i, c) a -> writeArray a (literal i) (literal c)) emptyGrid (zip [1..] initial)                                    query $ loop (0 :: Int) initGrid [] 
Documentation/SBV/Examples/Puzzles/KnightsAndKnaves.hs view
@@ -12,11 +12,9 @@ -- Determine which one is a knave or a knight, depending on their answers. ----------------------------------------------------------------------------- -{-# LANGUAGE DeriveAnyClass     #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE FlexibleInstances  #-}-{-# LANGUAGE StandaloneDeriving #-}-{-# LANGUAGE TemplateHaskell    #-}+{-# LANGUAGE FlexibleInstances #-}+{-# LANGUAGE TemplateHaskell   #-}+{-# LANGUAGE TypeApplications  #-}  module Documentation.SBV.Examples.Puzzles.KnightsAndKnaves where @@ -27,19 +25,17 @@  -- | Inhabitants of the island, as an uninterpreted sort data Inhabitant-mkUninterpretedSort ''Inhabitant+mkSymbolic [''Inhabitant]  -- | Each inhabitant is either a knave or a knight data Identity = Knave | Knight-              deriving (Enum, Bounded) -mkSymbolicEnumeration ''Identity+mkSymbolic [''Identity]  -- | Statements are utterances which are either true or false data Statement = Truth | Falsity-               deriving (Enum, Bounded) -mkSymbolicEnumeration ''Statement+mkSymbolic [''Statement]  -- | John is an inhabitant of the island. john :: SInhabitant
Documentation/SBV/Examples/Puzzles/Murder.hs view
@@ -20,12 +20,10 @@ -- @ ----------------------------------------------------------------------------- -{-# LANGUAGE DeriveAnyClass     #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE FlexibleInstances  #-}-{-# LANGUAGE NamedFieldPuns     #-}-{-# LANGUAGE StandaloneDeriving #-}-{-# LANGUAGE TemplateHaskell    #-}+{-# LANGUAGE FlexibleInstances #-}+{-# LANGUAGE NamedFieldPuns    #-}+{-# LANGUAGE TemplateHaskell   #-}+{-# LANGUAGE TypeApplications  #-}  {-# OPTIONS_GHC -Wall -Werror   #-} @@ -39,19 +37,19 @@  -- | Locations data Location = Bar | Beach | Alone-              deriving (Enum, Bounded)+              deriving Show  -- | Sexes-data Sex  = Male | Female-          deriving (Enum, Bounded)+data Sex = Male | Female+         deriving Show  -- | Roles data Role = Victim | Killer | Bystander-          deriving (Enum, Bounded)+          deriving Show -mkSymbolicEnumeration ''Location-mkSymbolicEnumeration ''Sex-mkSymbolicEnumeration ''Role+mkSymbolic [''Location]+mkSymbolic [''Sex]+mkSymbolic [''Role]  -- | A person has a name, age, together with location and sex. -- We parameterize over a function so we can use this struct@@ -89,10 +87,10 @@ -- | Solve the puzzle. We have: -- -- >>> killer--- Alice     47  Bar    Female  Bystander--- Husband   46  Beach  Male    Killer--- Brother   47  Beach  Male    Victim--- Daughter  20  Alone  Female  Bystander+-- Alice     48  Bar    Female  Bystander+-- Husband   47  Beach  Male    Killer+-- Brother   48  Beach  Male    Victim+-- Daughter  21  Alone  Female  Bystander -- Son       20  Bar    Male    Bystander -- -- That is, Alice's brother was the victim and Alice's husband was the killer.
Documentation/SBV/Examples/Puzzles/Orangutans.hs view
@@ -11,12 +11,11 @@  {-# LANGUAGE CPP                 #-} {-# LANGUAGE DeriveAnyClass      #-}-{-# LANGUAGE DeriveDataTypeable  #-} {-# LANGUAGE DeriveGeneric       #-} {-# LANGUAGE FlexibleContexts    #-} {-# LANGUAGE FlexibleInstances   #-} {-# LANGUAGE TemplateHaskell     #-}-{-# LANGUAGE StandaloneDeriving  #-}+{-# LANGUAGE TypeApplications    #-} {-# LANGUAGE OverloadedRecordDot #-}  {-# OPTIONS_GHC -Wall -Werror #-}@@ -33,19 +32,17 @@  -- | Orangutans in the puzzle. data Orangutan = Merah | Ofallo | Quirrel | Shamir-               deriving (Enum, Bounded)+               deriving (Show, Enum, Bounded)  -- | Handlers for each orangutan. data Handler = Dolly | Eva | Francine | Gracie-             deriving (Enum, Bounded)  -- | Location for each orangutan. data Location = Ambalat | Basahan | Kendisi | Tarakan-             deriving (Enum, Bounded) -mkSymbolicEnumeration ''Orangutan-mkSymbolicEnumeration ''Handler-mkSymbolicEnumeration ''Location+mkSymbolic [''Orangutan]+mkSymbolic [''Handler]+mkSymbolic [''Location]  -- | An assignment is solution to the puzzle data Assignment = MkAssignment { orangutan :: SOrangutan
Documentation/SBV/Examples/Puzzles/Rabbits.hs view
@@ -15,11 +15,9 @@ -- What's implicit here is that there is a rabbit that must be not-greedy; -- which we add to our constraints. ------------------------------------------------------------------------------{-# LANGUAGE DeriveAnyClass     #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE StandaloneDeriving #-}-{-# LANGUAGE TemplateHaskell    #-} +{-# LANGUAGE TemplateHaskell #-}+ {-# OPTIONS_GHC -Wall -Werror #-}  module Documentation.SBV.Examples.Puzzles.Rabbits where@@ -30,7 +28,7 @@ data Rabbit  -- | Make rabbits symbolically available.-mkUninterpretedSort ''Rabbit+mkSymbolic [''Rabbit]  -- | Identify those rabbits that are greedy. Note that we leave the predicate uninterpreted. greedy :: SRabbit -> SBool
+ Documentation/SBV/Examples/Puzzles/SquareBirthday.hs view
@@ -0,0 +1,202 @@+-----------------------------------------------------------------------------+-- |+-- Module    : Documentation.SBV.Examples.Puzzles.SquareBirthday+-- Copyright : (c) Levent Erkok+-- License   : BSD3+-- Maintainer: erkokl@gmail.com+-- Stability : experimental+--+-- As of January 2026, to access the careers link at <http://math.inc>, you need to solve the following+-- puzzle:+--+-- @+-- Suppose that today is June 1, 2025. We call a date "square" if all of its components (day, month, and year) are+-- perfect squares. I was born in the last millennium, and my next birthday (relative to that date) will be the last+-- square date in my life. If you sum the square roots of the components of that upcoming square birthday+-- (day, month, year), you obtain my age on June 1, 2025. My mother would have been born on a square date if the month+-- were a square number; in reality it is not a square date, but both the month and day are perfect cubes. When was+-- I born, and when was my mother born?+-- @+--+-- So, let's solve it using SBV.+-----------------------------------------------------------------------------++{-# LANGUAGE FlexibleInstances   #-}+{-# LANGUAGE QuasiQuotes         #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TemplateHaskell     #-}+{-# LANGUAGE TypeApplications    #-}+{-# LANGUAGE TypeFamilies        #-}+{-# LANGUAGE OverloadedRecordDot #-}++{-# OPTIONS_GHC -Wall -Werror #-}++module Documentation.SBV.Examples.Puzzles.SquareBirthday where++import Prelude hiding (fromEnum, toEnum)++import Data.SBV+import Data.SBV.Control++import qualified Data.SBV.List  as SL+import qualified Data.SBV.Tuple as ST++-- | Months in a year.+data Month = Jan | Feb | Mar | Apr | May | Jun+           | Jul | Aug | Sep | Oct | Nov | Dec+           deriving Show++-- | A date. We use unbounded integers for day and year, which simplifies coding,+-- though one can also enumerate the possible values from the problem itself.+data Date = MkDate { day   :: Integer+                   , month :: Month+                   , year  :: Integer+                   }++-- | Make 'Month' and 'Date' usable in symbolic contexts.+mkSymbolic [''Month, ''Date]++-- | Show instance for date, for pretty-printing.+instance Show Date where+  show (MkDate d m y) = show m ++ " " ++ pad ++ show d ++ ", " ++ show y+   where pad | d < 10 = " "+             | True   = ""++-- | Get a symbolic date with the given name. Since we used+-- integers for the day and year fields, we constrain them+-- appropriately. Note that one can further constrain days+-- based on the year and month; but that level detail isn't+-- necessary for the current problem.+symDate :: String -> Symbolic SDate+symDate nm = do dt <- free nm++                constrain [sCase| dt of+                              MkDate d _ y -> sAnd [ 1 .<= d, d .<= 31+                                                   , 0 .<= y+                                                   ]+                          |]++                pure dt++-- | Encode today as a symbolic value. The puzzle says today is June 1st, 2025.+today :: SDate+today = literal $ MkDate { day   =    1+                         , month =  Jun+                         , year  = 2025+                         }++-- | A date is on or after another, if the month-day combo is+-- lexicographically later. Note that we ignore the year for this+-- comparison, as we're interested if the anniversary of a date is after or not.+onOrAfter :: SDate -> SDate -> SBool+d1 `onOrAfter` d2 = (smonth d1, sday d1) .>= (smonth d2, sday d2)++-- | Similar to 'onOrAfter', except we require strictly later.+after :: SDate -> SDate -> SBool+d1 `after` d2 = (smonth d1, sday d1) .>  (smonth d2, sday d2)++-- | The age based on a given date is the difference between years less than one.+-- We have to adjust by 1 if today happens to be after the given date.+age :: SDate -> SInteger+age d = syear today - syear d - 1 + oneIf (today `after` d)++-- | We can let years to range over arbitrary integers. But that complicates the+-- job of the solver. So, based on what we know from the problem, we restrict+-- our attention to years between 1900 and 2100. Note that there are only+-- two years that satisfy this in that range: 1936 and 2025. (Any other square+-- year makes no sense for the setting of the problem.) To simplify the square-root+-- computation, we also store the square root in this list as the second component:+--+-- >>> squareYears+-- [(1936,44),(2025,45)]+squareYears :: [(Integer, Integer)]+squareYears = takeWhile (\(y, _) -> y < 2100)+            $ dropWhile (\(y, _) -> y < 1900)+            $ [(i * i, i) | i <- [1::Integer ..]]++-- | A date is square if all its components are.+squareDate :: SDate -> SBool+squareDate dt = [sCase| dt of+                   MkDate d m y -> squareDay d .&& squareMonth m .&& squareYear y+                |]+  where squareDay   d = d `sElem` [1, 4, 9, 16, 25]+        squareMonth m = m `sElem` [sJan, sApr, sSep]+        squareYear  y = y `sElem` map (literal . fst) squareYears+++-- | Summing the square-roots of the components of a date.+sqrSum :: SDate -> SInteger+sqrSum dt = [sCase| dt of+               MkDate d m y -> r d + mr m + r y+            |]+ where r v  = v `SL.lookup` literal ([(i * i, i) | i <- [1, 2, 3, 4, 5]] ++ squareYears)++       mr :: SMonth -> SInteger+       mr m = [sCase| m of+                  Jan -> 1+                  Apr -> 2+                  Sep -> 3+                  _   -> some "Non-Square Month" (const sTrue)+              |]++-- | Formalizing the puzzle. We literally write down the description in+-- SBV notation. As with any formalization, this step is subjective; there+-- could be many different ways to express the same problem. The description+-- below is quite faithful to the problem description given. We have:+--+-- >>> puzzle+-- Me : Sep 25, 1971+-- Mom: Aug  1, 1936+puzzle :: IO ()+puzzle = runSMT $ do++    -----------------------------------+    -- Constraints about my birthday+    -----------------------------------+    myBirthday <- symDate "My Birthday"++    -- I was born in the last millennium+    constrain $ syear myBirthday .< 2000 .&& syear myBirthday .>= 1900++    -- My next birthday will be a square+    let next = [sCase| myBirthday of+                  MkDate d m _ -> sMkDate d m (syear today + oneIf (today `onOrAfter` myBirthday))+               |]++    constrain $ squareDate next++    -- And it'll be the last square day of my life, so we maximize the metric corresponding to the+    -- date. We turn it into a 3-tuple of year, month, date over integers, which preserves the+    -- order of the dates.+    maximize "Next Birthday Latest" $ ST.tuple (syear next, fromEnum (smonth next), sday next)++    -- If you square the components of my next birthday, it gives me my current age on Jun 1, 2025+    constrain $ sqrSum next .== age myBirthday++    -----------------------------------+    -- Constraints about mom's birthday+    -----------------------------------+    momBirthday <- symDate "Mom's Birthday"++    -- Mom has a square birth-date, except for the month:+    constrain [sCase| momBirthday of+                 MkDate d _ y -> squareDate (sMkDate d sJan y)+              |]++    -- Mom's day and month are perfect cubes+    constrain [sCase| momBirthday of+                 MkDate d m _ -> sAnd [ d `sElem` [1, 8, 27]+                                      , m `sElem` [sJan, sAug]+                                      ]+              |]++    -- Extract the results:+    query $ do cs <- checkSat+               case cs of+                 Sat -> do me  <- getValue myBirthday+                           mom <- getValue momBirthday++                           io $ do putStrLn $ "Me : " ++ show me+                                   putStrLn $ "Mom: " ++ show mom++                 _   -> error $ "Unexpected result: " ++ show cs
Documentation/SBV/Examples/Puzzles/Sudoku.hs view
@@ -9,16 +9,13 @@ -- The Sudoku solver, quintessential SMT solver example! ----------------------------------------------------------------------------- -{-# LANGUAGE CPP              #-} {-# LANGUAGE FlexibleContexts #-}  {-# OPTIONS_GHC -Wall -Werror #-}  module Documentation.SBV.Examples.Puzzles.Sudoku where -#if MIN_VERSION_base(4,18,0) import Control.Monad (when, zipWithM_)-#endif  import Control.Monad.State.Lazy 
Documentation/SBV/Examples/Puzzles/Tower.hs view
@@ -110,7 +110,7 @@ -- * Example run ------------------------------------------------------------------- --- | Solve the puzzle descibed above. We get:+-- | Solve the puzzle described above. We get: -- -- >>> example --   1 2 3 2 2 4
Documentation/SBV/Examples/Puzzles/U2Bridge.hs view
@@ -9,14 +9,13 @@ -- The famous U2 bridge crossing puzzle: <http://www.braingle.com/brainteasers/515/u2.html> ----------------------------------------------------------------------------- -{-# LANGUAGE DeriveAnyClass       #-}-{-# LANGUAGE DeriveDataTypeable   #-}-{-# LANGUAGE DeriveGeneric        #-}-{-# LANGUAGE FlexibleInstances    #-}-{-# LANGUAGE StandaloneDeriving   #-}-{-# LANGUAGE TemplateHaskell      #-}+{-# LANGUAGE DeriveAnyClass    #-}+{-# LANGUAGE DeriveGeneric     #-}+{-# LANGUAGE FlexibleInstances #-}+{-# LANGUAGE TemplateHaskell   #-}+{-# LANGUAGE TypeApplications  #-} -{-# OPTIONS_GHC -Wall -Werror -Wno-incomplete-uni-patterns #-}+{-# OPTIONS_GHC -Wall -Werror #-}  module Documentation.SBV.Examples.Puzzles.U2Bridge where @@ -33,13 +32,12 @@ -- * Modeling the puzzle ------------------------------------------------------------- --- | U2 band members. We want to translate this to SMT-Lib as a data-type, and hence the--- call to mkSymbolicEnumeration.+-- | U2 band members. data U2Member = Bono | Edge | Adam | Larry-              deriving (Enum, Bounded, Eq, Ord)+              deriving Show  -- | Make 'U2Member' a symbolic value.-mkSymbolicEnumeration ''U2Member+mkSymbolic [''U2Member]  -- | Model time using 32 bits type Time  = Word32@@ -63,10 +61,10 @@  -- | Location of the flash data Location = Here | There-              deriving (Enum, Bounded)+              deriving (Eq, Show, Enum, Bounded)  -- | Make 'Location' a symbolic value.-mkSymbolicEnumeration ''Location+mkSymbolic [''Location]  -- | The status of the puzzle after each move --@@ -116,7 +114,7 @@          let (ar, s1) = runState a s              (br, s2) = runState b s          put $ symbolicMerge f t s1 s2-         return $ symbolicMerge f t ar br+         pure $ symbolicMerge f t ar br  -- | Read the state via an accessor function peek :: (Status -> a) -> Move a@@ -135,7 +133,10 @@  -- | Transferring a person to the other side xferPerson :: SU2Member -> Move ()-xferPerson p =  do ~[lb, le, la, ll] <- mapM peek [lBono, lEdge, lAdam, lLarry]+xferPerson p =  do lb <- peek lBono+                   le <- peek lEdge+                   la <- peek lAdam+                   ll <- peek lLarry                    let move l = ite (l .== sHere) sThere sHere                        lb' = ite (p .== sBono)  (move lb) lb                        le' = ite (p .== sEdge)  (move le) le@@ -153,7 +154,7 @@  -- | Symbolic version of 'Control.Monad.when' whenS :: SBool -> Move () -> Move ()-whenS t a = ite t a (return ())+whenS t a = ite t a (pure ())  -- | Move one member, remembering to take the flash move1 :: SU2Member -> Move ()@@ -197,9 +198,12 @@ -- | Check if a given sequence of actions is valid, i.e., they must all -- cross the bridge according to the rules and in less than 17 seconds isValid :: Actions -> SBool-isValid as = time end .<= 17 .&& sAll check as .&& zigZag (cycle [sThere, sHere]) (map flash states) .&& sAll (.== sThere) [lBono end, lEdge end, lAdam end, lLarry end]-  where check (s, p1, p2) =   (sNot s .=> p1 .> p2)       -- for two person moves, ensure first person is "larger"-                          .&& (s      .=> p2 .== sBono)   -- for one person moves, ensure second person is always "bono"+isValid as =   time end .<= 17+           .&& sAll check as+           .&& zigZag (cycle [sThere, sHere]) (map flash states)+           .&& sAll (.== sThere) [lBono end, lEdge end, lAdam end, lLarry end]+  where check (s, p1, p2) =   (sNot s .=> p1 .>  p2)    -- for two person moves, ensure first person is "larger"+                          .&& (s      .=> p2 .== sBono) -- for one person moves, ensure second person is always "bono"         states = evalState (run as) start         end = last states         zigZag reqs locs = sAnd $ zipWith (.==) locs reqs@@ -214,19 +218,19 @@               let genAct = do b  <- free_                               p1 <- free_                               p2 <- free_-                              return (b, p1, p2)+                              pure (b, p1, p2)               res <- allSat $ isValid `fmap` mapM (const genAct) [1..n]               cnt <- displayModels (sortOn show) disp res-              if cnt == 0 then return False+              if cnt == 0 then pure False                           else do putStrLn $ "Found: " ++ show cnt ++ " solution" ++ plu cnt ++ " with " ++ show n ++ " move" ++ plu n ++ "."-                                  return True+                                  pure True   where plu v = if v == 1 then "" else "s"         disp :: Int -> (Bool, [(Bool, U2Member, U2Member)]) -> IO ()         disp i (_, ss)          | lss /= n = error $ "Expected " ++ show n ++ " results; got: " ++ show lss          | True     = do putStrLn $ "Solution #" ++ show i ++ ":"                          go False 0 ss-                         return ()+                         pure ()          where lss  = length ss                go _ t []                   = putStrLn $ "Total time: " ++ show t                go l t ((True,  a, _):rest) = do putStrLn $ sh2 t ++ shL l ++ show a
Documentation/SBV/Examples/Queries/Abducts.hs view
@@ -23,9 +23,9 @@ -- -- >>> example -- Got: (define-fun abd () Bool (= s1 2))--- Got: (define-fun abd () Bool (and (= s1 1) (<= s1 s0)))--- Got: (define-fun abd () Bool (and (<= 1 s0) (= s1 s0)))--- Got: (define-fun abd () Bool (and (<= s1 (+ s0 s0)) (<= 1 s1)))+-- Got: (define-fun abd () Bool (and (= s1 1) (= s1 s0)))+-- Got: (define-fun abd () Bool (and (= s0 2) (= s1 1)))+-- Got: (define-fun abd () Bool (and (<= 1 s0) (= s1 1))) -- -- Note that @s0@ refers to @x@ and @s1@ refers to @y@ above. You can verify -- that adding any of these will ensure @x + y >= 2@.
Documentation/SBV/Examples/Queries/AllSat.hs view
@@ -45,7 +45,7 @@                       Unk    -> error "Too bad, solver said unknown.." -- Won't happen                       DSat{} -> error "Unexpected dsat result.."       -- Won't happen                       Unsat  -> do io $ putStrLn "No other solution!"-                                   return $ reverse sofar+                                   pure $ reverse sofar                        Sat    -> do xv <- getValue x                                    yv <- getValue y
Documentation/SBV/Examples/Queries/CaseSplit.hs view
@@ -54,7 +54,7 @@                   case mbR of                     Nothing     -> error "Cannot find a FP number x such that x /= x"  -- Won't happen!                     Just (s, _) -> do xv <- getValue x-                                      return (s, xv)+                                      pure (s, xv)  -- | Demonstrates the "coverage" case. --@@ -82,4 +82,4 @@                   case mbR of                     Nothing     -> error "Cannot find a solution!" -- Won't happen!                     Just (s, _) -> do xv <- getValue x-                                      return (s, xv)+                                      pure (s, xv)
Documentation/SBV/Examples/Queries/Concurrency.hs view
@@ -61,12 +61,12 @@     Unk    -> error "Too bad, solver said unknown.." -- Won't happen     DSat{} -> error "Unexpected dsat result.."       -- Won't happen     Unsat  -> do io $ putStrLn "No other solution!"-                 return Nothing+                 pure Nothing      Sat    -> do xv <- getValue x                  yv <- getValue y                  io $ putStrLn $ "[One]: Current solution is: " ++ show (xv, yv)-                 return $ Just (xv + yv)+                 pure $ Just (xv + yv)  -- | In the second query we constrain for an answer where y is smaller than x, -- and then return the product of the found values.@@ -81,12 +81,12 @@     Unk    -> error "Too bad, solver said unknown.." -- Won't happen     DSat{} -> error "Unexpected dsat result.."       -- Won't happen     Unsat  -> do io $ putStrLn "No other solution!"-                 return Nothing+                 pure Nothing      Sat    -> do yv <- getValue y                  xv <- getValue x                  io $ putStrLn $ "[Two]: Current solution is: " ++ show (xv, yv)-                 return $ Just (xv * yv)+                 pure $ Just (xv * yv)  -- | Run the demo several times to see that the children threads will change ordering. demo :: IO ()@@ -125,14 +125,14 @@     Unk    -> error "Too bad, solver said unknown.." -- Won't happen     DSat{} -> error "Unexpected dsat result.."       -- Won't happen     Unsat  -> do io $ putStrLn "No other solution!"-                 return Nothing+                 pure Nothing      Sat    -> do xv <- getValue x                  yv <- getValue y                  io $ putStrLn $ "[One]: Current solution is: " ++ show (xv, yv)                  io $ putStrLn   "[One]: Place vars for [Two]"                  liftIO $ putMVar v2 (literal (xv + yv), literal (xv * yv))-                 return $ Just (xv + yv)+                 pure $ Just (xv + yv)  -- | In the second query we create a new variable z, and then a symbolic query -- using information from the first query and return a solution that uses the@@ -153,13 +153,13 @@     Unk    -> error "Too bad, solver said unknown.." -- Won't happen     DSat{} -> error "Unexpected dsat result.."       -- Won't happen     Unsat  -> do io $ putStrLn "No other solution!"-                 return Nothing+                 pure Nothing      Sat    -> do yv <- getValue y                  xv <- getValue x                  zv <- getValue z                  io $ putStrLn $ "[Two]: My solution is: " ++ show (zv + xv, zv + yv)-                 return $ Just (zv * xv * yv)+                 pure $ Just (zv * xv * yv)  -- | In our second demonstration we show how through the use of concurrency -- constructs the user can have children queries communicate with one another.
Documentation/SBV/Examples/Queries/Enums.hs view
@@ -9,12 +9,10 @@ -- Demonstrates the use of enumeration values during queries. ----------------------------------------------------------------------------- -{-# LANGUAGE DeriveAnyClass      #-}-{-# LANGUAGE DeriveDataTypeable  #-} {-# LANGUAGE FlexibleInstances   #-} {-# LANGUAGE ScopedTypeVariables #-}-{-# LANGUAGE StandaloneDeriving  #-} {-# LANGUAGE TemplateHaskell     #-}+{-# LANGUAGE TypeApplications    #-}  {-# OPTIONS_GHC -Wall -Werror #-} @@ -23,12 +21,12 @@ import Data.SBV import Data.SBV.Control --- | Days of the week. We make it symbolic using the 'mkSymbolicEnumeration' splice.+-- | Days of the week. We make it symbolic using the 'mkSymbolic' splice. data Day = Monday | Tuesday | Wednesday | Thursday | Friday | Saturday | Sunday-         deriving (Eq, Ord, Bounded, Enum)+         deriving Show  -- | Make 'Day' a symbolic value.-mkSymbolicEnumeration ''Day+mkSymbolic [''Day]  -- | A trivial query to find three consecutive days that's all before 'Thursday'. The point -- here is that we can perform queries on such enumerated values and use 'getValue' on them@@ -62,6 +60,6 @@                                     Sat -> do a <- getValue d1                                               b <- getValue d2                                               c <- getValue d3-                                              return [a, b, c]+                                              pure [a, b, c]                                      _   -> error "Impossible, can't find days!"
Documentation/SBV/Examples/Queries/FourFours.hs view
@@ -19,12 +19,9 @@ -- and ask the SMT solver to find the appropriate fillings. ----------------------------------------------------------------------------- -{-# LANGUAGE DeriveAnyClass      #-}-{-# LANGUAGE DeriveDataTypeable  #-}-{-# LANGUAGE FlexibleInstances  #-}-{-# LANGUAGE ScopedTypeVariables #-}-{-# LANGUAGE StandaloneDeriving  #-}-{-# LANGUAGE TemplateHaskell     #-}+{-# LANGUAGE FlexibleInstances #-}+{-# LANGUAGE TemplateHaskell   #-}+{-# LANGUAGE TypeApplications  #-}  {-# OPTIONS_GHC -Wall -Werror #-} @@ -40,20 +37,20 @@ -- and exponentiation will only be to the power @0@. This does restrict the search space, but is sufficient to -- solve all the instances. data BinOp = Plus | Minus | Times | Divide | Expt-           deriving (Eq, Enum, Bounded)+           deriving (Eq, Show)  -- | Make 'BinOp' a symbolic value.-mkSymbolicEnumeration ''BinOp+mkSymbolic [''BinOp]  -- | Supported unary operators. Similar to 'BinOp' case, we will restrict square-root and factorial to -- be only applied to the value @4. data UnOp  = Negate | Sqrt | Factorial-           deriving (Eq, Enum, Bounded)+           deriving Eq  -- | Make 'UnOp' a symbolic value.-mkSymbolicEnumeration ''UnOp+mkSymbolic [''UnOp] --- | The shape of a tree, either a binary node, or a unary node, or the number @4@, represented hear by+-- | The shape of a tree, either a binary node, or a unary node, or the number @4@, represented here by -- the constructor @F@. We parameterize by the operator type: When doing symbolic computations, we'll fill -- those with 'SBinOp' and 'SUnOp'. When finding the shapes, we will simply put unit values, i.e., holes. data T b u = B b (T b u) (T b u)@@ -94,13 +91,13 @@ fill :: T () () -> Symbolic (T SBinOp SUnOp) fill (B _ l r) = B <$> free_ <*> fill l <*> fill r fill (U _ t)   = U <$> free_ <*> fill t-fill F         = return F+fill F         = pure F  -- | Minor helper for writing "symbolic" case statements. Simply walks down a list -- of values to match against a symbolic version of the key.-sCase :: (Eq a, SymVal a, Mergeable v) => SBV a -> [(a, v)] -> v-sCase k = walk-  where walk []              = error "sCase: Expected a non-empty list of cases!"+cases :: (Eq a, SymVal a, Mergeable v) => SBV a -> [(a, v)] -> v+cases k = walk+  where walk []              = error "cases: Expected a non-empty list of cases!"         walk [(_, v)]        = v         walk ((k1, v1):rest) = ite (k .== literal k1) v1 (walk rest) @@ -112,27 +109,27 @@ eval tree = case tree of               B b l r -> eval l >>= \l' -> eval r >>= \r' -> binOp b l' r'               U u t   -> eval t >>= uOp u-              F       -> return 4+              F       -> pure 4    where binOp :: SBinOp -> SInteger -> SInteger -> Symbolic SInteger         binOp o l r = do constrain $ o .== sDivide .=> r .== 4 .|| r .== 2                          constrain $ o .== sExpt   .=> r .== 0-                         return $ sCase o-                                    [ (Plus,    l+r)-                                    , (Minus,   l-r)-                                    , (Times,   l*r)-                                    , (Divide,  l `sDiv` r)-                                    , (Expt,    1)   -- exponent is restricted to 0, so the value is 1-                                    ]+                         pure $ cases o+                                  [ (Plus,    l+r)+                                  , (Minus,   l-r)+                                  , (Times,   l*r)+                                  , (Divide,  l `sDiv` r)+                                  , (Expt,    1)   -- exponent is restricted to 0, so the value is 1+                                  ]          uOp :: SUnOp -> SInteger -> Symbolic SInteger         uOp o v = do constrain $ o .== sSqrt      .=> v .== 4                      constrain $ o .== sFactorial .=> v .== 4-                     return $ sCase o-                                [ (Negate,    -v)-                                , (Sqrt,       2)  -- argument is restricted to 4, so the value is 2-                                , (Factorial, 24)  -- argument is restricted to 4, so the value is 24-                                ]+                     pure $ cases o+                              [ (Negate,    -v)+                              , (Sqrt,       2)  -- argument is restricted to 4, so the value is 2+                              , (Factorial, 24)  -- argument is restricted to 4, so the value is 24+                              ]  -- | In the query mode, find a filling of a given tree shape /t/, such that it evaluates to the -- requested number /i/. Note that we return back a concrete tree.@@ -143,10 +140,10 @@                            query $ do cs <- checkSat                                       case cs of                                         Sat -> Just <$> construct symT-                                        _   -> return Nothing+                                        _   -> pure Nothing     where -- Walk through the tree, ask the solver for           -- the assignment to symbolic operators and fill back.-          construct F           = return F+          construct F           = pure F           construct (U o s')    = do uo <- getValue o                                      U uo <$> construct s'           construct (B b l' r') = do bo <- getValue b
Documentation/SBV/Examples/Queries/GuessNumber.hs view
@@ -42,7 +42,7 @@                             DSat{} -> error "Unexpected delta-sat result.."  -- Won't really happen                             Unsat  ->                                    -- This cannot happen! If it does, the input was-                                   -- not properly constrainted. Note that we found this+                                   -- not properly constrained. Note that we found this                                    -- by getting an Unsat, not by checking the value!                                    error $ unlines [ "There's no solution!"                                                    , "Guess sequence: " ++ show (reverse sofar)@@ -50,7 +50,7 @@                             Sat    -> do gv <- getValue g                                          case gv `compare` input of                                            EQ -> -- Got it, return:-                                                 return (reverse (gv : sofar))+                                                 pure (reverse (gv : sofar))                                            LT -> -- Solver guess is too small, increase the lower bound:                                                  loop ((lb+1) `max` (lb + (input - lb) `div` 2)) ub (gv : sofar)                                            GT -> -- Solver guess is too big, decrease the upper bound:
Documentation/SBV/Examples/Queries/UnsatCore.hs view
@@ -36,7 +36,7 @@        query $ do cs <- checkSat                   case cs of                     Unsat -> Just <$> getUnsatCore-                    _     -> return Nothing+                    _     -> pure Nothing   -- | Extract the unsat-core of 'p'. We have:@@ -44,7 +44,7 @@ -- >>> ucCore -- Unsat core is: ["less than 5","more than 10"] ----- Demonstrating that the constraint @a .> b@ is /not/ needed for unsatisfiablity in this case.+-- Demonstrating that the constraint @a .> b@ is /not/ needed for unsatisfiability in this case. ucCore :: IO () ucCore = do mbCore <- runSMT p             case mbCore of
Documentation/SBV/Examples/Strings/RegexCrossword.hs view
@@ -34,7 +34,7 @@         let mkRow rowRegExp = do row :: SString <- free_                                  constrain $ row `R.match` rowRegExp                                  constrain $ L.length row .== literal numCols-                                 return row+                                 pure row          rows <- mapM mkRow rowRegExps @@ -42,7 +42,7 @@         let mkCol colRegExp = do col :: SString <- free_                                  constrain $ col `R.match` colRegExp                                  constrain $ L.length col .== literal numRows-                                 return col+                                 pure col          cols <- mapM mkCol colRegExps 
Documentation/SBV/Examples/Strings/SQLInjection.hs view
@@ -49,11 +49,11 @@ eval (Query q)         = do q' <- eval q                             tell [q']                             lift $ lift free_-eval (Const str)       = return $ literal str+eval (Const str)       = pure $ literal str eval (Concat e1 e2)    = (++) <$> eval e1 <*> eval e2 eval (ReadVar nm)      = do n   <- eval nm                             arr <- get-                            return $ readArray arr n+                            pure $ readArray arr n  -- | A simple program to query all messages with a given topic id. In SQL like notation: --
+ Documentation/SBV/Examples/TP/Ackermann.hs view
@@ -0,0 +1,279 @@+-----------------------------------------------------------------------------+-- |+-- Module    : Documentation.SBV.Examples.TP.Ackermann+-- Copyright : (c) Levent Erkok+-- License   : BSD3+-- Maintainer: erkokl@gmail.com+-- Stability : experimental+--+-- Proving the relationship between Ackermann's original 3-argument function (1928)+-- and the Ackermann-Péter function (1935).+--+-- Ackermann's original function was a 3-argument function designed to demonstrate+-- a total computable function that is not primitive recursive. The third argument+-- generalizes the operation: @ack 0 n a = n + a@ (addition), and higher levels+-- correspond to multiplication, exponentiation, etc.+--+-- Rózsa Péter simplified this to a 2-argument function in 1935, which is what+-- most people today call "the Ackermann function."+--+-- This example is inspired by: <https://github.com/imandra-ai/imandrax-examples/blob/main/src/ackermann.iml>+--+-- Note: This proof was developed by Claude (Anthropic's AI assistant) with+-- minimal user prompting and guidance.+-----------------------------------------------------------------------------++{-# LANGUAGE CPP               #-}+{-# LANGUAGE DataKinds         #-}+{-# LANGUAGE FlexibleInstances #-}+{-# LANGUAGE QuasiQuotes       #-}+{-# LANGUAGE TypeApplications  #-}++{-# OPTIONS_GHC -Wall -Werror #-}++module Documentation.SBV.Examples.TP.Ackermann where++import Data.SBV+import Data.SBV.Tuple+import Data.SBV.TP++#ifdef DOCTEST+-- $setup+-- >>> import Data.SBV+-- >>> import Data.SBV.TP+#endif++-- * Ackermann's original 3-argument function (1928)++-- | Ackermann's original 3-argument function (1928). This is the lesser-known+-- original version, not the commonly referenced Ackermann-Péter function.+-- The third argument @a@ generalizes the operation at each level.+ack :: SInteger -> SInteger -> SInteger -> SInteger+ack = smtFunction "ack"+  $ \m n a -> [sCase| m of+                 _ | m .<= 0 -> n + a+                 _ | n .<= 0 -> 0+                 _ | n .== 1 -> a+                 _           -> ack (m - 1) (ack m (n - 1) a) a+              |]++-- * Ackermann-Péter function (1935)++-- | The Ackermann-Péter function (1935), commonly known as "the Ackermann function."+-- This is Rózsa Péter's simplified 2-argument version of Ackermann's original function.+pet :: SInteger -> SInteger -> SInteger+pet = smtFunction "pet"+  $ \m n -> [sCase| m of+               _ | m .<= 0 -> n + 1+               _ | n .<= 0 -> pet (m - 1) 1+               _           -> pet (m - 1) (pet m (n - 1))+            |]++-- * Correctness++-- | Prove that @ack m 2 2 = 4@ for all m >= 0.+--+-- >>> runTP ack_2_2_4+-- Inductive lemma (strong): ack_2_2_4+--   Step: Measure is non-negative        Q.E.D.+--   Step: 1 (2 way case split)+--     Step: 1.1                          Q.E.D.+--     Step: 1.2.1                        Q.E.D.+--     Step: 1.2.2                        Q.E.D.+--     Step: 1.2.3                        Q.E.D.+--     Step: 1.2.4                        Q.E.D.+--     Step: 1.Completeness               Q.E.D.+--   Result:                              Q.E.D.+-- Functions proven terminating: ack+-- [Proven] ack_2_2_4 :: Ɐm ∷ Integer → Bool+ack_2_2_4 :: TP (Proof (Forall "m" Integer -> SBool))+ack_2_2_4 = sInduct "ack_2_2_4"+                    (\(Forall m) -> m .>= 0 .=> ack m 2 2 .== 4)+                    (id, []) $+                    \ih m -> [m .>= 0]+                          |- ack m 2 2+                          =: cases [ m .== 0 ==> trivial+                                   , m .> 0  ==> ack m 2 2+                                              =: ack (m - 1) (ack m 1 2) 2+                                              =: ack (m - 1) 2 2+                                              ?? ih `at` Inst @"m" (m - 1)+                                              =: (4 :: SInteger)+                                              =: qed+                                   ]++-- | Prove that @ack@ is non-negative when all arguments are non-negative.+-- We use strong induction on the lexicographic measure (m, n).+--+-- >>> runTP ack_psd+-- Inductive lemma (strong): ack_psd+--   Step: Measure is non-negative      Q.E.D.+--   Step: 1 (4 way case split)+--     Step: 1.1                        Q.E.D.+--     Step: 1.2                        Q.E.D.+--     Step: 1.3                        Q.E.D.+--     Step: 1.4.1                      Q.E.D.+--     Step: 1.4.2                      Q.E.D.+--     Step: 1.4.3                      Q.E.D.+--     Step: 1.Completeness             Q.E.D.+--   Result:                            Q.E.D.+-- Functions proven terminating: ack+-- [Proven] ack_psd :: Ɐm ∷ Integer → Ɐn ∷ Integer → Ɐa ∷ Integer → Bool+ack_psd :: TP (Proof (Forall "m" Integer -> Forall "n" Integer -> Forall "a" Integer -> SBool))+ack_psd = sInduct "ack_psd"+                  (\(Forall m) (Forall n) (Forall a) ->+                      m .>= 0 .&& n .>= 0 .&& a .>= 0 .=> ack m n a .>= 0)+                  (\m n _a -> tuple (m, n), []) $+                  \ih m n a -> [m .>= 0, n .>= 0, a .>= 0]+                            |- ack m n a .>= 0+                            =: cases [ m .<= 0 ==> trivial   -- n + a >= 0+                                     , n .<= 0 ==> trivial   -- 0 >= 0+                                     , n .== 1 ==> trivial   -- a >= 0+                                     , m .> 0 .&& n .> 1+                                         ==> ack m n a .>= 0+                                          =: ack (m - 1) (ack m (n - 1) a) a .>= 0+                                          ?? ih `at` (Inst @"m" m, Inst @"n" (n - 1), Inst @"a" a)+                                          ?? ih `at` (Inst @"m" (m - 1), Inst @"n" (ack m (n - 1) a), Inst @"a" a)+                                          =: sTrue+                                          =: qed+                                     ]++-- | Prove that @pet@ is non-negative when both arguments are non-negative.+-- We use strong induction on the lexicographic measure (m, n).+--+-- >>> runTPWith cvc5 pet_psd+-- Inductive lemma (strong): pet_psd+--   Step: Measure is non-negative      Q.E.D.+--   Step: 1 (3 way case split)+--     Step: 1.1                        Q.E.D.+--     Step: 1.2.1                      Q.E.D.+--     Step: 1.2.2                      Q.E.D.+--     Step: 1.2.3                      Q.E.D.+--     Step: 1.3.1                      Q.E.D.+--     Step: 1.3.2                      Q.E.D.+--     Step: 1.3.3                      Q.E.D.+--     Step: 1.Completeness             Q.E.D.+--   Result:                            Q.E.D.+-- Functions proven terminating: pet+-- [Proven] pet_psd :: Ɐm ∷ Integer → Ɐn ∷ Integer → Bool+pet_psd :: TP (Proof (Forall "m" Integer -> Forall "n" Integer -> SBool))+pet_psd = do+    sInduct "pet_psd"+                  (\(Forall m) (Forall n) -> m .>= 0 .&& n .>= 0 .=> pet m n .>= 0)+                  (\m n -> tuple (m, n), []) $+                  \ih m n -> [m .>= 0, n .>= 0]+                          |- pet m n .>= 0+                          =: cases [ m .<= 0 ==> trivial   -- n + 1 >= 0+                                   , m .> 0 .&& n .<= 0+                                       ==> pet m n .>= 0+                                        =: pet (m - 1) 1 .>= 0+                                        ?? ih `at` (Inst @"m" (m - 1), Inst @"n" (1 :: SInteger))+                                        =: sTrue+                                        =: qed+                                   , m .> 0 .&& n .> 0+                                       ==> pet m n .>= 0+                                        =: pet (m - 1) (pet m (n - 1)) .>= 0+                                        ?? ih `at` (Inst @"m" m, Inst @"n" (n - 1))+                                        ?? ih `at` (Inst @"m" (m - 1), Inst @"n" (pet m (n - 1)))+                                        =: sTrue+                                        =: qed+                                   ]++-- | The main theorem, relating @pet@ and @ack@: @pet m n + 3 = ack (m-1) (n+3) 2@ for @m > 0@ and @n >= 0@.+--+-- >>> runTPWith cvc5 petAck+-- Inductive lemma (strong): ack_2_2_4+--   Step: Measure is non-negative        Q.E.D.+--   Step: 1 (2 way case split)+--     Step: 1.1                          Q.E.D.+--     Step: 1.2.1                        Q.E.D.+--     Step: 1.2.2                        Q.E.D.+--     Step: 1.2.3                        Q.E.D.+--     Step: 1.2.4                        Q.E.D.+--     Step: 1.Completeness               Q.E.D.+--   Result:                              Q.E.D.+-- Inductive lemma (strong): pet_psd+--   Step: Measure is non-negative        Q.E.D.+--   Step: 1 (3 way case split)+--     Step: 1.1                          Q.E.D.+--     Step: 1.2.1                        Q.E.D.+--     Step: 1.2.2                        Q.E.D.+--     Step: 1.2.3                        Q.E.D.+--     Step: 1.3.1                        Q.E.D.+--     Step: 1.3.2                        Q.E.D.+--     Step: 1.3.3                        Q.E.D.+--     Step: 1.Completeness               Q.E.D.+--   Result:                              Q.E.D.+-- Inductive lemma (strong): petAck+--   Step: Measure is non-negative        Q.E.D.+--   Step: 1 (4 way case split)+--     Step: 1.1                          Q.E.D.+--     Step: 1.2.1                        Q.E.D.+--     Step: 1.2.2                        Q.E.D.+--     Step: 1.2.3                        Q.E.D.+--     Step: 1.3.1                        Q.E.D.+--     Step: 1.3.2                        Q.E.D.+--     Step: 1.3.3                        Q.E.D.+--     Step: 1.3.4                        Q.E.D.+--     Step: 1.3.5                        Q.E.D.+--     Step: 1.4.1                        Q.E.D.+--     Step: 1.4.2                        Q.E.D.+--     Step: 1.4.3                        Q.E.D.+--     Step: 1.4.4                        Q.E.D.+--     Step: 1.4.5                        Q.E.D.+--     Step: 1.Completeness               Q.E.D.+--   Result:                              Q.E.D.+-- Functions proven terminating: ack, pet+-- [Proven] petAck :: Ɐm ∷ Integer → Ɐn ∷ Integer → Bool+petAck :: TP (Proof (Forall "m" Integer -> Forall "n" Integer -> SBool))+petAck = do+    ack224 <- ack_2_2_4+    psd    <- pet_psd+    sInduct "petAck"+               (\(Forall m) (Forall n) ->+                   m .> 0 .&& n .>= 0 .=> pet m n + 3 .== ack (m - 1) (n + 3) 2)+               (\m n -> tuple (m, n), []) $+               \ih m n -> [m .> 0, n .>= 0]+                       |- pet m n + 3 .== ack (m - 1) (n + 3) 2+                       =: cases [ m .== 1 .&& n .== 0+                                    ==> trivial+                                , m .== 1 .&& n .> 0+                                    ==> pet 1 n + 3 .== ack 0 (n + 3) 2+                                     =: pet 0 (pet 1 (n - 1)) + 3 .== (n + 3) + 2+                                     ?? ih `at` (Inst @"m" (1 :: SInteger), Inst @"n" (n - 1))+                                     =: sTrue+                                     =: qed+                                , m .> 1 .&& n .<= 0+                                    -- n <= 0 with n >= 0 means n == 0+                                    ==> pet m n + 3 .== ack (m - 1) (n + 3) 2+                                     -- First unfold pet: since n <= 0, pet m n = pet (m-1) 1+                                     =: pet (m - 1) 1 + 3 .== ack (m - 1) (n + 3) 2+                                     -- Unfold ack: ack (m-1) (n+3) 2 = ack (m-2) (ack (m-1) (n+2) 2) 2+                                     =: pet (m - 1) 1 + 3 .== ack (m - 2) (ack (m - 1) (n + 2) 2) 2+                                     -- Apply IH at (m-1, 1): pet (m-1) 1 + 3 = ack (m-2) 4 2+                                     ?? ih `at` (Inst @"m" (m - 1), Inst @"n" (1 :: SInteger))+                                     =: ack (m - 2) 4 2 .== ack (m - 2) (ack (m - 1) (n + 2) 2) 2+                                     -- Since n = 0, n+2 = 2, and ack (m-1) 2 2 = 4 by ack_2_2_4+                                     ?? ack224 `at` Inst @"m" (m - 1)+                                     =: sTrue+                                     =: qed+                                , m .> 1 .&& n .> 0+                                    ==> pet m n + 3 .== ack (m - 1) (n + 3) 2+                                     -- Unfold pet: pet m n = pet (m-1) (pet m (n-1))+                                     =: pet (m - 1) (pet m (n - 1)) + 3 .== ack (m - 1) (n + 3) 2+                                     -- Unfold ack on RHS: ack (m-1) (n+3) 2 = ack (m-2) (ack (m-1) (n+2) 2) 2+                                     =: pet (m - 1) (pet m (n - 1)) + 3 .== ack (m - 2) (ack (m - 1) (n + 2) 2) 2+                                     -- Use pet_psd to establish pet m (n-1) >= 0+                                     ?? psd `at` (Inst @"m" m, Inst @"n" (n - 1))+                                     -- Apply IH at (m-1, pet m (n-1)) to transform LHS+                                     ?? ih `at` (Inst @"m" (m - 1), Inst @"n" (pet m (n - 1)))+                                     =: ack (m - 2) (pet m (n - 1) + 3) 2 .== ack (m - 2) (ack (m - 1) (n + 2) 2) 2+                                     -- Apply IH at (m, n-1): pet m (n-1) + 3 = ack (m-1) (n+2) 2+                                     ?? ih `at` (Inst @"m" m, Inst @"n" (n - 1))+                                     =: sTrue+                                     =: qed+                                ]++{- HLint ignore module    "Use curry"     -}+{- HLint ignore ack_psd   "Use camelCase" -}+{- HLint ignore pet_psd   "Use camelCase" -}+{- HLint ignore ack_2_2_4 "Use camelCase" -}
+ Documentation/SBV/Examples/TP/Adder.hs view
@@ -0,0 +1,395 @@+-----------------------------------------------------------------------------+-- |+-- Module    : Documentation.SBV.Examples.TP.Adder+-- Copyright : (c) Levent Erkok+-- License   : BSD3+-- Maintainer: erkokl@gmail.com+-- Stability : experimental+--+-- Prove binary adders correct by induction, for /all/ widths at once.+--+-- This is the inductive companion to+-- "Documentation.SBV.Examples.BitPrecise.Adders", which proves fixed-width+-- adders correct automatically by bit-blasting. Here, instead, we model the+-- operands as arbitrary-length, little-endian symbolic bit lists and prove---by+-- induction on the list---properties that hold with no bound on the width:+--+--   * a ripple-carry adder agrees with the mathematical value of the bits+--     (@correctness@);+--+--   * a parallel-prefix (carry-lookahead) tree computes the same carry as the+--     ripple, because the generate\/propagate carry operator is associative+--     (@lookaheadCorrect@); and+--+--   * that lookahead carry is exactly the carry the ripple adder threads+--     (@lookaheadMatchesAdder@).+--+-- A number is represented by a little-endian list of bit pairs: one+-- @(a, b)@ per position, least-significant first, where @a@ is a bit of the+-- first operand and @b@ the corresponding bit of the second. The integer value+-- of such a list is @sum_i bit_i * 2^i@.+-----------------------------------------------------------------------------++{-# LANGUAGE CPP                 #-}+{-# LANGUAGE DataKinds           #-}+{-# LANGUAGE OverloadedLists     #-}+{-# LANGUAGE QuasiQuotes         #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions    #-}+{-# LANGUAGE TypeApplications    #-}++{-# OPTIONS_GHC -Wall -Werror #-}++module Documentation.SBV.Examples.TP.Adder where++import Prelude hiding (fst, snd, foldl, map, curry, uncurry, (++))++import Data.SBV hiding (fullAdder)+import Data.SBV.List (foldl, map, (++))+import Data.SBV.Tuple+import Data.SBV.TP++import Documentation.SBV.Examples.TP.Lists (foldlOverAppend)++-- We reuse the very same combinational gates that the fixed-width, bit-blasted+-- companion proves correct---only the adder driver differs (a symbolic,+-- inductive recursion here versus a metalevel one there). The 'Data.SBV.fullAdder'+-- word-level operation is hidden above so 'fullAdder' refers to that gate.+import Documentation.SBV.Examples.BitPrecise.Adders (Bit, fullAdder, generatePropagate)++#ifdef DOCTEST+-- $setup+-- >>> :set -XOverloadedLists+-- >>> import Data.SBV+-- >>> import Data.SBV.TP+#endif++-- * Bits, values, and the adder++-- | The integer value of a single bit: @1@ if set, @0@ otherwise.+bitVal :: Bit -> SInteger+bitVal b = ite b 1 0++-- | The integer value of a little-endian bit list: @sum_i bit_i * 2^i@.+val :: SList Bool -> SInteger+val = smtFunction "val"+    $ \bs -> [sCase| bs of+                []     -> 0+                x : xs -> bitVal x + 2 * val xs+             |]++-- | The value of the first operand, read off the first components of the pairs.+valA :: SList (Bool, Bool) -> SInteger+valA = smtFunction "valA"+     $ \ps -> [sCase| ps of+                 []          -> 0+                 (a, _) : qs -> bitVal a + 2 * valA qs+              |]++-- | The value of the second operand, read off the second components of the pairs.+valB :: SList (Bool, Bool) -> SInteger+valB = smtFunction "valB"+     $ \ps -> [sCase| ps of+                 []          -> 0+                 (_, b) : qs -> bitVal b + 2 * valB qs+              |]++-- | The ripple-carry adder. Given an incoming carry and a little-endian list of+-- bit pairs, thread the carry through a chain of full adders (the same+-- 'fullAdder' gate the bit-blasted companion verifies), emitting each sum bit+-- and, at the end, the final carry-out as the most-significant bit. The result+-- is therefore one bit longer than the input, so its value is exactly the full+-- sum---no truncation.+rca :: Bit -> SList (Bool, Bool) -> SList Bool+rca = smtFunction "rca"+    $ \c ps -> [sCase| ps of+                  []     -> [c]+                  p : qs -> let (s, co) = uncurry fullAdder p c+                            in s .: rca co qs+               |]++-- * Correctness++-- | The ripple-carry adder computes the sum of its operands, for any width:+--+-- @val (rca 0 ps) == valA ps + valB ps@+--+-- We prove it via a more general lemma that tracks the incoming carry, since the+-- recursive calls feed each stage's carry-out into the next.+--+-- >>> runTP correctness+-- Lemma: fullAdderCorrect        Q.E.D.+-- Inductive lemma: rcaCorrect+--   Step: Base                   Q.E.D.+--   Step: 1                      Q.E.D.+--   Step: 2                      Q.E.D.+--   Step: 3                      Q.E.D.+--   Step: 4                      Q.E.D.+--   Step: 5                      Q.E.D.+--   Result:                      Q.E.D.+-- Lemma: adderCorrect            Q.E.D.+-- Functions proven terminating: rca, val, valA, valB+-- [Proven] adderCorrect :: Ɐps ∷ [(Bool, Bool)] → Bool+correctness :: TP (Proof (Forall "ps" [(Bool, Bool)] -> SBool))+correctness = do++  -- A single full adder is arithmetically correct: the sum bit plus twice the+  -- carry-out equals the sum of the three input bits. This is a finite boolean+  -- fact, discharged directly.+  faC <- lemma "fullAdderCorrect"+               (\(Forall @"a" a) (Forall @"b" b) (Forall @"c" c) ->+                    let (s, co) = fullAdder a b c+                    in bitVal s + 2 * bitVal co .== bitVal a + bitVal b + bitVal c)+               []++  -- The general statement, tracking the incoming carry. Induct on the list of+  -- bit pairs; the carry is universally quantified so the induction hypothesis+  -- applies at the carry-out fed to the recursive call.+  rcaC <- induct "rcaCorrect"+                 (\(Forall @"ps" ps) (Forall @"c" c) ->+                      val (rca c ps) .== valA ps + valB ps + bitVal c) $+                 \ih (p, ps) c ->+                     let a       = fst p+                         b       = snd p+                         (s, co) = fullAdder a b c+                     in [] |- val (rca c (p .: ps))+                           =: val (s .: rca co ps)+                           =: bitVal s + 2 * val (rca co ps)+                           ?? ih `at` Inst @"c" co+                           =: bitVal s + 2 * (valA ps + valB ps + bitVal co)+                           ?? faC `at` (Inst @"a" a, Inst @"b" b, Inst @"c" c)+                           =: (bitVal a + 2 * valA ps) + (bitVal b + 2 * valB ps) + bitVal c+                           =: valA (p .: ps) + valB (p .: ps) + bitVal c+                           =: qed++  -- The headline corollary: with no incoming carry, the adder computes the sum.+  lemma "adderCorrect"+        (\(Forall ps) -> val (rca sFalse ps) .== valA ps + valB ps)+        [proofOf rcaC]++-- * Carry-lookahead, via a parallel-prefix tree+--+-- $lookahead+-- A ripple-carry adder is slow because each stage waits for the carry from the+-- one below it. A /carry-lookahead/ adder breaks that chain by computing the+-- carries in parallel. The key is to summarize a contiguous block of positions+-- by a @(generate, propagate)@ /section/: whether the block produces a carry on+-- its own (@generate@), and whether it would pass an incoming carry straight+-- through (@propagate@). Adjacent sections combine with the associative operator+-- 'dot', so the carries can be gathered by a balanced /tree/ of 'dot's rather+-- than a linear ripple.+--+-- We prove that tree correct against the ripple as follows. 'dot' is an+-- associative monoid with identity 'idSec', and applying a section to an+-- incoming carry ('applyC') is its action. The ripple carry is the /linear/+-- fold of 'dot' over the sections (@carryIsFold@), and a balanced tree of 'dot's+-- computes that /same/ fold by associativity (@treeIsFold@). Hence the parallel+-- tree and the sequential ripple agree.++-- | Combine two adjacent @(generate, propagate)@ sections, lower-order first.+-- The combined block generates a carry if the high part does, or if it+-- propagates one generated by the low part; it propagates only if both do.+dot :: SBV (Bool, Bool) -> SBV (Bool, Bool) -> SBV (Bool, Bool)+dot lo hi = tuple (fst hi .|| (snd hi .&& fst lo), snd hi .&& snd lo)++-- | The identity section: generates nothing, propagates everything.+idSec :: SBV (Bool, Bool)+idSec = tuple (sFalse, sTrue)++-- | Apply a section to an incoming carry, giving the carry out of that section.+applyC :: SBV (Bool, Bool) -> Bit -> Bit+applyC sec c = fst sec .|| (snd sec .&& c)++-- | The sequential ripple carry-out: thread the incoming carry through the+-- sections, left to right.+carry :: Bit -> SList (Bool, Bool) -> Bit+carry = smtFunction "carry"+      $ \c gps -> [sCase| gps of+                     []       -> c+                     b : rest -> carry (applyC b c) rest+                  |]++-- | The @(generate, propagate)@ section of a single operand bit-pair @(a, b)@,+-- using the very same 'generatePropagate' gate as the bit-blasted companion.+gpOf :: SBV (Bool, Bool) -> SBV (Bool, Bool)+gpOf p = tuple (uncurry generatePropagate p)++-- | The carry-out actually threaded by the ripple adder 'rca': fold the+-- incoming carry through the full-adder carry of each position. (This is 'rca'+-- with the sum bits dropped---it threads the identical carry, via the same+-- 'fullAdder'.)+rcaCarry :: Bit -> SList (Bool, Bool) -> Bit+rcaCarry = smtFunction "rcaCarry"+         $ \c ps -> [sCase| ps of+                       []     -> c+                       p : qs -> let (_, co) = uncurry fullAdder p c+                                 in rcaCarry co qs+                    |]++-- | The headline lookahead result, in textbook parallel-prefix form: the ripple+-- carry over a concatenation equals combining the two halves' sections+-- /independently/ and then applying the result to the incoming carry. Since+-- 'dot' is associative, the halves can be split the same way recursively---so+-- the carries can be gathered by a balanced /tree/ of 'dot's instead of a linear+-- ripple, and this says every such tree computes the same carry.+--+-- The proof rests on two pieces: @carryIsFold@ (the ripple carry /is/ the linear+-- fold of 'dot'), kept as its own reusable lemma, and @foldlDotSplit@ (the fold+-- distributes over append---the associativity law that licenses any tree).+--+-- >>> runTP lookaheadCorrect+-- Lemma: dotAssoc                     Q.E.D.+-- Lemma: dotLeftUnit                  Q.E.D.+-- Lemma: applyCDot                    Q.E.D.+-- Inductive lemma: foldlDotShift+--   Step: Base                        Q.E.D.+--   Step: 1                           Q.E.D.+--   Step: 2                           Q.E.D.+--   Step: 3                           Q.E.D.+--   Step: 4                           Q.E.D.+--   Step: 5                           Q.E.D.+--   Step: 6                           Q.E.D.+--   Result:                           Q.E.D.+-- Inductive lemma: carryIsFold+--   Step: Base                        Q.E.D.+--   Step: 1                           Q.E.D.+--   Step: 2                           Q.E.D.+--   Step: 3                           Q.E.D.+--   Step: 4                           Q.E.D.+--   Step: 5                           Q.E.D.+--   Step: 6                           Q.E.D.+--   Result:                           Q.E.D.+-- Inductive lemma: foldlOverAppend+--   Step: Base                        Q.E.D.+--   Step: 1                           Q.E.D.+--   Step: 2                           Q.E.D.+--   Step: 3                           Q.E.D.+--   Result:                           Q.E.D.+-- Lemma: foldlDotSplit+--   Step: 1                           Q.E.D.+--   Step: 2                           Q.E.D.+--   Result:                           Q.E.D.+-- Lemma: treeCarry+--   Step: 1                           Q.E.D.+--   Step: 2                           Q.E.D.+--   Result:                           Q.E.D.+-- Functions proven terminating: carry, sbv.foldl+-- [Proven] treeCarry :: Ɐc ∷ Bool → Ɐxs ∷ [(Bool, Bool)] → Ɐys ∷ [(Bool, Bool)] → Bool+lookaheadCorrect :: TP (Proof (Forall "c" Bool -> Forall "xs" [(Bool, Bool)] -> Forall "ys" [(Bool, Bool)] -> SBool))+lookaheadCorrect = do++  -- 'dot' is an associative monoid with identity 'idSec'; 'applyC' is its+  -- action. All finite boolean facts.+  assoc <- lemma "dotAssoc"    (\(Forall @"x" x) (Forall @"y" y) (Forall @"z" z) -> dot x (dot y z) .== dot (dot x y) z)                  []+  lunit <- lemma "dotLeftUnit" (\(Forall @"x" x) -> dot idSec x .== x)                                                                    []+  act   <- lemma "applyCDot"   (\(Forall @"lo" lo) (Forall @"hi" hi) (Forall @"c" c) -> applyC (dot lo hi) c .== applyC hi (applyC lo c)) []++  -- Folding with an initial section @s@ equals @s@ combined with the fold from+  -- the identity. (Accumulator reassociation, à la Lists.foldrFoldl.)+  fldShift <- induct "foldlDotShift"+                  (\(Forall @"xs" xs) (Forall @"s" s) ->+                       foldl dot s xs .== dot s (foldl dot idSec xs)) $+                  \ih (x, xs) s -> [] |- foldl dot s (x .: xs)+                                      =: foldl dot (dot s x) xs+                                      ?? ih `at` Inst @"s" (dot s x)+                                      =: dot (dot s x) (foldl dot idSec xs)+                                      ?? assoc+                                      =: dot s (dot x (foldl dot idSec xs))+                                      ?? ih `at` Inst @"s" x+                                      =: dot s (foldl dot x xs)+                                      ?? lunit+                                      =: dot s (foldl dot (dot idSec x) xs)+                                      =: dot s (foldl dot idSec (x .: xs))+                                      =: qed++  -- The reusable link: the sequential ripple carry is the left fold of 'dot'+  -- over the sections, applied to the incoming carry. Induct on the sections;+  -- the carry is the threaded argument, so the hypothesis applies at the next+  -- carry-in.+  cif <- induct "carryIsFold"+                (\(Forall @"gps" gps) (Forall @"c" c) ->+                     carry c gps .== applyC (foldl dot idSec gps) c) $+                \ih (b, gps) c -> [] |- carry c (b .: gps)+                                     =: carry (applyC b c) gps+                                     ?? ih `at` Inst @"c" (applyC b c)+                                     =: applyC (foldl dot idSec gps) (applyC b c)+                                     ?? act `at` (Inst @"lo" b, Inst @"hi" (foldl dot idSec gps), Inst @"c" c)+                                     =: applyC (dot b (foldl dot idSec gps)) c+                                     ?? fldShift `at` (Inst @"xs" gps, Inst @"s" b)+                                     =: applyC (foldl dot b gps) c+                                     ?? lunit+                                     =: applyC (foldl dot (dot idSec b) gps) c+                                     =: applyC (foldl dot idSec (b .: gps)) c+                                     =: qed++  -- foldl of 'dot' distributes over append (imported from the Lists examples).+  foa <- foldlOverAppend dot++  -- The split/homomorphism law: reducing a concatenation equals reducing the+  -- halves independently and combining them with 'dot'. This is what licenses+  -- any balanced (tree) grouping of the sections.+  splitLaw <- calc "foldlDotSplit"+                (\(Forall @"xs" xs) (Forall @"ys" ys) ->+                     foldl dot idSec (xs ++ ys) .== dot (foldl dot idSec xs) (foldl dot idSec ys)) $+                \xs ys -> [] |- foldl dot idSec (xs ++ ys)+                             ?? foa `at` (Inst @"xs" xs, Inst @"ys" ys, Inst @"e" idSec)+                             =: foldl dot (foldl dot idSec xs) ys+                             ?? fldShift `at` (Inst @"xs" ys, Inst @"s" (foldl dot idSec xs))+                             =: dot (foldl dot idSec xs) (foldl dot idSec ys)+                             =: qed++  -- Headline: the ripple carry of a concatenation equals applying the+  -- independently-combined half-sections to the incoming carry.+  calc "treeCarry"+       (\(Forall @"c" c) (Forall @"xs" xs) (Forall @"ys" ys) ->+            carry c (xs ++ ys) .== applyC (dot (foldl dot idSec xs) (foldl dot idSec ys)) c) $+       \c xs ys -> [] |- carry c (xs ++ ys)+                    ?? cif `at` (Inst @"gps" (xs ++ ys), Inst @"c" c)+                    =: applyC (foldl dot idSec (xs ++ ys)) c+                    ?? splitLaw `at` (Inst @"xs" xs, Inst @"ys" ys)+                    =: applyC (dot (foldl dot idSec xs) (foldl dot idSec ys)) c+                    =: qed++-- | The capstone, tying the lookahead machinery back to the actual adder:+-- running the (foldable, tree-groupable) section 'carry' over the operands'+-- generate\/propagate signals reproduces exactly the carry that the ripple adder+-- 'rca' threads. Combined with @treeCarry@, this says the adder's own carry can+-- be computed by any balanced prefix tree.+--+-- >>> runTP lookaheadMatchesAdder+-- Lemma: applyCgpOf                         Q.E.D.+-- Inductive lemma: lookaheadMatchesAdder+--   Step: Base                              Q.E.D.+--   Step: 1                                 Q.E.D.+--   Step: 2                                 Q.E.D.+--   Step: 3                                 Q.E.D.+--   Step: 4                                 Q.E.D.+--   Step: 5                                 Q.E.D.+--   Result:                                 Q.E.D.+-- Functions proven terminating: carry, rcaCarry, sbv.map+-- [Proven] lookaheadMatchesAdder :: Ɐps ∷ [(Bool, Bool)] → Ɐc ∷ Bool → Bool+lookaheadMatchesAdder :: TP (Proof (Forall "ps" [(Bool, Bool)] -> Forall "c" Bool -> SBool))+lookaheadMatchesAdder = do++  -- Applying a position's generate/propagate section to a carry is exactly the+  -- full-adder carry-out. A finite boolean fact.+  applyGP <- lemma "applyCgpOf"+                   (\(Forall @"p" p) (Forall @"c" c) ->+                        let (_, co) = uncurry fullAdder p c+                        in applyC (gpOf p) c .== co)+                   []++  -- Induct on the operands; the carry is threaded, so the hypothesis applies at+  -- the next carry-in.+  induct "lookaheadMatchesAdder"+         (\(Forall @"ps" ps) (Forall @"c" c) -> carry c (map gpOf ps) .== rcaCarry c ps) $+         \ih (p, ps) c -> let (_, co) = uncurry fullAdder p c+                          in [] |- carry c (map gpOf (p .: ps))+                                =: carry c (gpOf p .: map gpOf ps)+                                =: carry (applyC (gpOf p) c) (map gpOf ps)+                                ?? applyGP `at` (Inst @"p" p, Inst @"c" c)+                                =: carry co (map gpOf ps)+                                ?? ih `at` Inst @"c" co+                                =: rcaCarry co ps+                                =: rcaCarry c (p .: ps)+                                =: qed
Documentation/SBV/Examples/TP/Basics.hs view
@@ -11,9 +11,10 @@  {-# LANGUAGE CPP                 #-} {-# LANGUAGE DataKinds           #-}+{-# LANGUAGE QuasiQuotes         #-}+{-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TypeAbstractions    #-} {-# LANGUAGE TypeApplications    #-}-{-# LANGUAGE ScopedTypeVariables #-}  {-# OPTIONS_GHC -Wall -Werror #-} @@ -43,7 +44,7 @@ -- We have: -- -- >>> trueIsProvable--- Lemma: true                             Q.E.D.+-- Lemma: true         Q.E.D. -- [Proven] true :: Bool trueIsProvable :: IO (Proof SBool) trueIsProvable = runTP $ lemma "true" sTrue []@@ -67,7 +68,7 @@ -- -- We have: -- >>> largerIntegerExists--- Lemma: largerIntegerExists              Q.E.D.+-- Lemma: largerIntegerExists    Q.E.D. -- [Proven] largerIntegerExists :: Ɐx ∷ Integer → ∃y ∷ Integer → Bool largerIntegerExists :: IO (Proof (Forall "x" Integer -> Exists "y" Integer -> SBool)) largerIntegerExists = runTP $ lemma "largerIntegerExists"@@ -79,7 +80,7 @@ -- | Pushing a universal through conjunction. We have: -- -- >>> forallConjunction @Integer (uninterpret "p") (uninterpret "q")--- Lemma: forallConjunction                Q.E.D.+-- Lemma: forallConjunction    Q.E.D. -- [Proven] forallConjunction :: Bool forallConjunction :: forall a. SymVal a => (SBV a -> SBool) -> (SBV a -> SBool) -> IO (Proof SBool) forallConjunction p q = runTP $ do@@ -95,7 +96,7 @@ -- | Pushing an existential through disjunction. We have: -- -- >>> existsDisjunction @Integer (uninterpret "p") (uninterpret "q")--- Lemma: existsDisjunction                Q.E.D.+-- Lemma: existsDisjunction    Q.E.D. -- [Proven] existsDisjunction :: Bool existsDisjunction :: forall a. SymVal a => (SBV a -> SBool) -> (SBV a -> SBool) -> IO (Proof SBool) existsDisjunction p q = runTP $ do@@ -115,18 +116,18 @@ -- *** Failed to prove forallConjunctionNot. -- Falsifiable. Counter-example: --   p :: Integer -> Bool---   p 2 = True---   p 1 = False+--   p 4 = True+--   p 3 = False --   p _ = True -- <BLANKLINE> --   q :: Integer -> Bool---   q 2 = False---   q 1 = True+--   q 4 = False+--   q 3 = True --   q _ = True ----- Note how @p@ assigns two selected values to @True@ and everything else to @False@, while @q@ does the exact opposite.--- So, there is no common value that satisfies both, providing a counter-example. (It's not clear why the solver finds--- a model with two distinct values, as one would have sufficed. But it is still a valud model.)+-- Note how @p@ and @q@ differ in their treatment of the inputs 3 and 4, but agree everywhere else. So, for each+-- input, at least one of @p@ or @q@ is @True@, making the disjunction @True@ for all inputs. But the predicates+-- @p@ and @q@ are not universally true themselves, constituting a counter-example. forallDisjunctionNot :: forall a. SymVal a => (SBV a -> SBool) -> (SBV a -> SBool) -> IO () forallDisjunctionNot p q = runTP $ do     let qb = quantifiedBool@@ -148,14 +149,15 @@ -- *** Failed to prove existsConjunctionNot. -- Falsifiable. Counter-example: --   p :: Integer -> Bool---   p 1 = False+--   p 3 = False --   p _ = True -- <BLANKLINE> --   q :: Integer -> Bool---   q 1 = True+--   q 3 = True --   q _ = False ----- In this case, we again have a predicate That disagree at every point, providing a counter-example.+-- In this case, both @p@ and @q@ have a satisfying input (for @p@ everything but 3, for @q@, only 3), but+-- there is no single value that satisfies both, thus giving us our counter-example. existsConjunctionNot :: forall a. SymVal a => (SBV a -> SBool) -> (SBV a -> SBool) -> IO () existsConjunctionNot p q = runTP $ do     let qb = quantifiedBool@@ -178,7 +180,7 @@ -- Lemma: qcExample --   Step: 1 (passed 1000 tests)           Q.E.D. [Modulo: quickCheck] --   Step: 2 (Failed during quickTest)--- +-- -- *** QuickCheck failed for qcExample.2 -- *** Failed! Assertion failed (after 1 test): --   n   = 175 :: Word8@@ -205,8 +207,8 @@ -- -- >>> runTP (qcFermat 3) -- Lemma: qcFermat 3---   Step: 1 (qc: Running 1000 tests)      QC OK---   Result:                               Q.E.D. [Modulo: quickCheck]+--   Step: 1 (qc: Running 1000 tests)    QC OK+--   Result:                             Q.E.D. [Modulo: quickCheck] -- [Modulo: quickCheck] qcFermat 3 :: Ɐx ∷ Integer → Ɐy ∷ Integer → Ɐz ∷ Integer → Bool qcFermat :: Integer -> TP (Proof (Forall "x" Integer -> Forall "y" Integer -> Forall "z" Integer -> SBool)) qcFermat e = calc ("qcFermat " <> show e)@@ -218,32 +220,137 @@                          =: qed   where n = literal e --- * No termination checks+-- * Termination checking --- | It's important to realize that TP proofs in SBV neither check nor guarantee that the--- functions we use are terminating. This is beyond the scope (and current capabilities) of what SBV can handle.--- That is, the proof is up-to-termination, i.e., any proof implicitly assumes all functions defined (or axiomatized)--- terminate for all possible inputs. If non-termination is possible, then the logic becomes inconsistent, i.e.,+-- | When a recursive function is defined via 'smtFunction', SBV automatically checks that it terminates+-- by guessing and verifying a termination measure. Here we define a simple recursive @sumToN@ and prove+-- a property about it. Note the @Functions proven terminating@ line in the output, confirming that SBV+-- verified the termination of @sumToN@ before proceeding with the proof.+--+-- >>> terminationDemo+-- Lemma: sumToN_at_5    Q.E.D.+-- Functions proven terminating: sumToN+-- [Proven] sumToN_at_5 :: Ɐn ∷ Integer → Bool+terminationDemo :: IO (Proof (Forall "n" Integer -> SBool))+terminationDemo = runTP $ do+    let sumToN :: SInteger -> SInteger+        sumToN = smtFunction "sumToN" $ \x -> [sCase| x of+                                                 _ | x .<= 0 -> 0+                                                 _           -> x + sumToN (x - 1)+                                              |]++    lemma "sumToN_at_5"+          (\(Forall n) -> n .== 5 .=> sumToN n .== 15)+          []++-- | If SBV cannot determine a termination measure, it will report an error. Here, we define+-- a function that recurses without decreasing any argument, and SBV rightfully rejects it:+--+-- >>> badTermination `catch` (\(e :: SomeException) -> mapM_ putStrLn . filter (\l -> take 3 l == "***") . lines $ show e)+-- *** Data.SBV: Cannot determine a termination measure.+-- ***+-- ***   Function: bad :: SBV Integer -> SBV Integer+-- ***+-- ***   Measures tried:+-- ***     abs arg1+-- ***     smax 0 arg1+-- ***     abs arg1 + smax 0 arg1+-- ***     (abs arg1, smax 0 arg1)+-- ***     (smax 0 arg1, abs arg1)+-- ***+-- *** Please use 'smtFunctionWithMeasure' to provide an explicit measure.+badTermination :: IO ()+badTermination = do+    let bad :: SInteger -> SInteger+        bad = smtFunction "bad" $ \x -> [sCase| x of+                                           _ | x .== 0 -> 0+                                           _           -> bad x+                                        |]+    r <- prove $ \x -> bad x .== bad x+    print r++-- | If the user provides an explicit but incorrect termination measure via 'smtFunctionWithMeasure',+-- SBV will detect this and report an error. Here, we use @const 0@ as a measure, which clearly+-- does not decrease at recursive calls:+--+-- >>> badMeasure `catch` (\(e :: SomeException) -> mapM_ putStrLn . filter (\l -> take 3 l == "***") . lines $ show e)+-- *** Data.SBV: Termination measure does not strictly decrease at a recursive call site.+-- ***+-- ***   Function: badM :: SBV Integer -> SBV Integer+-- ***+-- ***   Falsifiable. Counter-example:+-- ***     arg    = 1 :: Integer+-- ***     before = 0 :: Integer+-- ***     then   = 0 :: Integer+-- ***+-- *** The measure must strictly decrease at every recursive call.+badMeasure :: IO ()+badMeasure = do+    let badM :: SInteger -> SInteger+        badM = smtFunctionWithMeasure "badM" (const (0 :: SInteger), [])+             $ \x -> [sCase| x of+                        _ | x .<= 0 -> 0+                        _           -> x + badM (x - 1)+                     |]+    r <- prove $ \x -> badM x .== badM x+    print r++-- | A termination measure is only a valid argument for termination if it takes values in a+-- /well-founded/ order: one with no infinite descending chains. Being non-negative and strictly+-- decreasing then forces the recursion to stop. The integers (bounded below by @0@) are well-founded,+-- but the reals are /not/: the chain @1, 1\/2, 1\/4, ...@ descends forever without ever reaching a+-- minimum. So a real-valued measure proves nothing.+--+-- Consider this Zeno-style non-terminating recursion: for any @x > 0@, the argument @x \/ 2@ is+-- again positive, so it never reaches the base case. Yet the measure @0 `smax` x@ is non-negative+-- and strictly decreases at the recursive call (@x \/ 2 < x@). Accepting it would mean certifying a+-- non-terminating function as terminating, which can be used to derive falsehoods.+--+-- @+-- zeno :: SReal -> SReal+-- zeno = smtFunctionWithMeasure \"zeno\" (\\x -> 0 \`smax\` x, [])+--      $ \\x -> ite (x .<= 0) 0 (zeno (x \/ 2))+-- @+--+-- SBV rules this out /at compile time/: the 'Data.SBV.Zero' class gates which types may be used as+-- measures, and there is deliberately no instance for algebraic reals. So the definition above does+-- not type-check, reporting:+--+-- @+--     • A termination measure may not have a real-valued result.+--+--       The reals are not well-ordered: an infinite descending chain such as+--       1, 1\/2, 1\/4, ... has no least element, so a non-negative and strictly+--       decreasing real measure does not imply termination.+--+--       Use an integer-valued measure instead (e.g. a count of remaining steps).+-- @++-- * Axioms and consistency++-- | SBV checks that recursive functions defined via 'smtFunction' terminate, verifying a termination measure, which+-- can be auto-guessed or specified by the user. However, axioms are taken on faith: they are not checked for consistency.+-- If an axiom introduces a non-terminating or contradictory definition, the logic becomes inconsistent, i.e., -- we can prove arbitrary results. ----- Here is a simple example where we tell SBV that there is a function @f@ with non terminating behavior. Using this,--- we can deduce @False@:+-- Here is a simple example where we assert an axiom equivalent to a non-terminating definition @f n == 1 + f n@.+-- Using this, we can deduce @False@: ----- >>> noTerminationChecks+-- >>> axiomsAreDangerous -- Axiom: bad--- Lemma: noTerminationImpliesFalse---   Step: 1 (bad @ (n |-> 0 :: SInteger)) Q.E.D.---   Result:                               Q.E.D.--- [Proven] noTerminationImpliesFalse :: Bool-noTerminationChecks :: IO (Proof SBool)-noTerminationChecks = runTP $ do+-- Lemma: axiomsCanBeInconsistent+--   Step: 1 (bad @ (n |-> 0 :: SInteger))    Q.E.D.+--   Result:                                  Q.E.D.+-- [Proven] axiomsCanBeInconsistent :: Bool+axiomsAreDangerous :: IO (Proof SBool)+axiomsAreDangerous = runTP $ do     let f :: SInteger -> SInteger        f = uninterpret "f"     badAxiom <- axiom "bad" (\(Forall n) -> f n .== 1 + f n) -   calc "noTerminationImpliesFalse"+   calc "axiomsCanBeInconsistent"         sFalse         ([] |- f 0             ?? badAxiom `at` Inst @"n" (0 :: SInteger)@@ -277,7 +384,7 @@ -- Lemma: badLengthProof -- *** Failed to prove badLengthProof. -- Falsifiable. Counter-example:---   xs   = [12,15,20,24,33,42] :: [Integer]+--   xs   = [12,15,19,25,32,42] :: [Integer] --   imp  =                  42 :: Integer --   spec =                   6 :: Integer badLengthProof :: IO ()@@ -292,48 +399,29 @@ -- | It is not unusual that TP proofs rely on other proofs. Typically, all the helpers are used together and proven in -- one go. It is, however, useful to be able to write these proofs as top-level entries, and reuse them multiple times -- in several proofs. (See "Documentation/SBV/Examples/TP/PowerMod.hs" for an example.) To avoid re-proving such--- lemmas, you can turn on proof caching. The idea behind caching is simple: If we see a lemma with the same name being--- proven again, then we simply reuse the last result. The catch here is that lemmas are identified by their names: Hence,--- for caching to be sound, you need to make sure all names used in your proof are unique. Otherwise you can--- conclude wrong results!------ A good trick is to pay the price and run your entire proof without caching (which is the default) once, and if it is--- all good, turn on caching to save time in regressions. (And rerun without caching after code changes.)+-- lemmas, SBV caches proof results keyed by symbolic fingerprint. Use 'recall' to invoke a proof action that+-- benefits from the cache: if the proposition has already been proved, the cached result is returned immediately.+-- Note that 'lemma', 'calc', and 'induct' always prove from scratch and then store the result in the cache;+-- only 'recall' performs a cache lookup. ----- To demonstrate why caching can be unsound, simply consider a proof where we first prove true, and then prove false--- but we /trick/ TP by reusing the name. If you run this, you'll see:+-- Lemma names do not need to be unique. If you prove the same proposition under different names, 'recall' will+-- show the aliases. If you prove different propositions under the same name, each is proved independently.+-- To demonstrate, note that reusing the name @"evil"@ does not cause any confusion: the second call to+-- 'lemma' proves from scratch and correctly fails: ----- >>> runTP badCaching `catch` (\(_ :: SomeException) -> pure ())--- Lemma: evil                             Q.E.D.+-- >>> runTP duplicateNames `catch` (\(_ :: SomeException) -> pure ())+-- Lemma: evil         Q.E.D. -- Lemma: evil -- *** Failed to prove evil. -- Falsifiable ----- This is good, the proof failed since it's just not true. (Except for the confusing naming printed in the trace--- due to our own choice.)------ Let's see what happens if we turn caching on:------ >>> runTPWith (tpCache z3) badCaching--- Lemma: evil                             Q.E.D.--- Cached: evil                            Q.E.D.------ In this case we were able to ostensibly prove False, i.e., this result is unsound. But at least SBV warned us--- that we used a cached proof (@evil@), reminding us that using unique names is a proof of obligation for the user--- if caching is turned on. Clearly, we failed to uniquely name our proofs in this case.------ Note that a bad proof obtained this way is unsound in the way that it is misleading: That is, it will lead you--- to believe you proved something while you actually proved something else. (More technically, you cannot take the evil--- lemma and use it to prove arbitrary things, since it's still just the proof of truth.) In this sense it is just--- useless as opposed to soundness, but it is alarming as one can be led astray.--- -- (Incidentally, if you really want to be evil, you can just use 'axiom' and assert false, but that's another story.)-badCaching :: TP ()-badCaching = do-   -- Prove true, giving it a bad name+duplicateNames :: TP ()+duplicateNames = do+   -- Prove true    _ <- lemma "evil" sTrue [] -   -- Attempt to prove false, using evil:+   -- Attempt to prove false, reusing the same name. Will be caught!    _ <- lemma "evil" sFalse []     pure ()
Documentation/SBV/Examples/TP/BinarySearch.hs view
@@ -9,10 +9,9 @@ -- Proving binary search correct. ----------------------------------------------------------------------------- -{-# LANGUAGE DataKinds           #-}-{-# LANGUAGE TypeAbstractions    #-}-{-# LANGUAGE TypeApplications    #-}-{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE DataKinds        #-}+{-# LANGUAGE QuasiQuotes      #-}+{-# LANGUAGE TypeApplications #-}  {-# OPTIONS_GHC -Wall -Werror #-} @@ -37,16 +36,16 @@ -- | Encode binary search in a functional style. bsearch :: Arr -> Idx -> SInteger -> SMaybe Integer bsearch array (low, high) = f array low high-  where f = smtFunction "bsearch" $ \arr lo hi x ->+  where f = smtFunctionWithMeasure "bsearch" (\_arr lo hi _x -> (hi - lo + 1) `smax` 0, [])+          $ \arr lo hi x ->                let mid  = (lo + hi) `sEDiv` 2                    xmid = arr `readArray` mid-               in ite (lo .> hi)-                      sNothing-                      (ite (xmid .== x)-                           (sJust mid)-                           (ite (xmid .< x)-                                (bsearch arr (mid+1, hi)    x)-                                (bsearch arr (lo,    mid-1) x)))+               in [sCase| lo of+                     _ | lo .> hi   -> sNothing+                     _ | xmid .== x -> sJust mid+                     _ | xmid .< x  -> bsearch arr (mid+1, hi)    x+                     _              -> bsearch arr (lo,    mid-1) x+                  |]  -- * Correctness proof @@ -64,51 +63,52 @@ -- We have: -- -- >>> correctness--- Lemma: notInRange                                 Q.E.D.--- Lemma: inRangeHigh                                Q.E.D.--- Lemma: inRangeLow                                 Q.E.D.--- Lemma: nonDecreasing                              Q.E.D.+-- Lemma: notInRange                            Q.E.D.+-- Lemma: inRangeHigh                           Q.E.D.+-- Lemma: inRangeLow                            Q.E.D.+-- Lemma: nonDecreasing                         Q.E.D. -- Inductive lemma (strong): bsearchAbsent---   Step: Measure is non-negative                   Q.E.D.---   Step: 1 (unfold bsearch)                        Q.E.D.---   Step: 2 (push isNothing down, simplify)         Q.E.D.+--   Step: Measure is non-negative              Q.E.D.+--   Step: 1 (unfold bsearch)                   Q.E.D.+--   Step: 2 (push isNothing down, simplify)    Q.E.D. --   Step: 3 (2 way case split)---     Step: 3.1                                     Q.E.D.---     Step: 3.2.1                                   Q.E.D.---     Step: 3.2.2                                   Q.E.D.---     Step: 3.2.3                                   Q.E.D.---     Step: 3.2.4                                   Q.E.D.---     Step: 3.2.5 (simplify)                        Q.E.D.---     Step: 3.Completeness                          Q.E.D.---   Result:                                         Q.E.D.+--     Step: 3.1                                Q.E.D.+--     Step: 3.2.1                              Q.E.D.+--     Step: 3.2.2                              Q.E.D.+--     Step: 3.2.3                              Q.E.D.+--     Step: 3.2.4                              Q.E.D.+--     Step: 3.2.5 (simplify)                   Q.E.D.+--     Step: 3.Completeness                     Q.E.D.+--   Result:                                    Q.E.D. -- Inductive lemma (strong): bsearchPresent---   Step: Measure is non-negative                   Q.E.D.---   Step: 1 (unfold bsearch)                        Q.E.D.---   Step: 2 (simplify)                              Q.E.D.+--   Step: Measure is non-negative              Q.E.D.+--   Step: 1 (unfold bsearch)                   Q.E.D.+--   Step: 2 (simplify)                         Q.E.D. --   Step: 3 (3 way case split)---     Step: 3.1                                     Q.E.D.---     Step: 3.2                                     Q.E.D.---     Step: 3.3.1                                   Q.E.D.+--     Step: 3.1                                Q.E.D.+--     Step: 3.2                                Q.E.D.+--     Step: 3.3.1                              Q.E.D. --     Step: 3.3.2 (3 way case split)---       Step: 3.3.2.1                               Q.E.D.---       Step: 3.3.2.2.1                             Q.E.D.---       Step: 3.3.2.2.2                             Q.E.D.---       Step: 3.3.2.3.1                             Q.E.D.---       Step: 3.3.2.3.2                             Q.E.D.---       Step: 3.3.2.Completeness                    Q.E.D.---     Step: 3.Completeness                          Q.E.D.---   Result:                                         Q.E.D.+--       Step: 3.3.2.1                          Q.E.D.+--       Step: 3.3.2.2.1                        Q.E.D.+--       Step: 3.3.2.2.2                        Q.E.D.+--       Step: 3.3.2.3.1                        Q.E.D.+--       Step: 3.3.2.3.2                        Q.E.D.+--       Step: 3.3.2.Completeness               Q.E.D.+--     Step: 3.Completeness                     Q.E.D.+--   Result:                                    Q.E.D. -- Lemma: bsearchCorrect --   Step: 1 (2 way case split)---     Step: 1.1.1                                   Q.E.D.---     Step: 1.1.2                                   Q.E.D.---     Step: 1.2.1                                   Q.E.D.---     Step: 1.2.2                                   Q.E.D.---     Step: 1.Completeness                          Q.E.D.---   Result:                                         Q.E.D.+--     Step: 1.1.1                              Q.E.D.+--     Step: 1.1.2                              Q.E.D.+--     Step: 1.2.1                              Q.E.D.+--     Step: 1.2.2                              Q.E.D.+--     Step: 1.Completeness                     Q.E.D.+--   Result:                                    Q.E.D.+-- Functions proven terminating: bsearch -- [Proven] bsearchCorrect :: Ɐarr ∷ (ArrayModel Integer Integer) → Ɐlo ∷ Integer → Ɐhi ∷ Integer → Ɐx ∷ Integer → Bool correctness :: IO (Proof (Forall "arr" (ArrayModel Integer Integer) -> Forall "lo" Integer -> Forall "hi" Integer -> Forall "x" Integer -> SBool))-correctness = runTPWith (tpRibbon 50 cvc5) $ do+correctness = runTPWith cvc5 $ do    -- Helper: if a value is not in a range, then it isn't in any subrange of it:   notInRange <- lemma "notInRange"@@ -142,7 +142,7 @@   bsearchAbsent <- sInduct "bsearchAbsent"         (\(Forall arr) (Forall lo) (Forall hi) (Forall x) ->             nonDecreasing arr (lo, hi) .&& sNot (inArray arr (lo, hi) x) .=> isNothing (bsearch arr (lo, hi) x))-        (\_arr lo hi _x -> abs (hi - lo + 1)) $+        (\_arr lo hi _x -> abs (hi - lo + 1), []) $         \ih arr lo hi x ->               [nonDecreasing arr (lo, hi), sNot (inArray arr (lo, hi) x)]            |- isNothing (bsearch arr (lo, hi) x)@@ -195,7 +195,7 @@   bsearchPresent <- sInduct "bsearchPresent"         (\(Forall arr) (Forall lo) (Forall hi) (Forall x) ->             nonDecreasing arr (lo, hi) .&& inArray arr (lo, hi) x .=> arr `readArray` fromJust (bsearch arr (lo, hi) x) .== x)-        (\_arr lo hi _x -> abs (hi - lo + 1)) $+        (\_arr lo hi _x -> abs (hi - lo + 1), []) $         \ih arr lo hi x ->              [nonDecreasing arr (lo, hi), inArray arr (lo, hi) x]           |- x .== arr `readArray` fromJust (bsearch arr (lo, hi) x)@@ -265,3 +265,5 @@                                    =: sTrue                                    =: qed                               ]++{- HLint ignore module "Reduce duplication" -}
Documentation/SBV/Examples/TP/CaseSplit.hs view
@@ -9,8 +9,7 @@ -- Use TP to prove @2n^2 + n + 1@ is never divisible by @3@. ----------------------------------------------------------------------------- -{-# LANGUAGE DataKinds        #-}-{-# LANGUAGE TypeAbstractions #-}+{-# LANGUAGE DataKinds #-}  {-# OPTIONS_GHC -Wall -Werror #-} @@ -26,11 +25,11 @@ -- >>> notDiv3 -- Lemma: notDiv3 --   Step: 1 (3 way case split)---     Step: 1.1                           Q.E.D.---     Step: 1.2                           Q.E.D.---     Step: 1.3                           Q.E.D.---     Step: 1.Completeness                Q.E.D.---   Result:                               Q.E.D.+--     Step: 1.1               Q.E.D.+--     Step: 1.2               Q.E.D.+--     Step: 1.3               Q.E.D.+--     Step: 1.Completeness    Q.E.D.+--   Result:                   Q.E.D. -- [Proven] notDiv3 :: Ɐn ∷ Integer → Bool notDiv3 :: IO (Proof (Forall "n" Integer -> SBool)) notDiv3 = runTP $ do
+ Documentation/SBV/Examples/TP/Coins.hs view
@@ -0,0 +1,114 @@+-----------------------------------------------------------------------------+-- |+-- Module    : Documentation.SBV.Examples.TP.Coins+-- Copyright : (c) Levent Erkok+-- License   : BSD3+-- Maintainer: erkokl@gmail.com+-- Stability : experimental+--+-- Proving the classic coin change theorem: For any amount @n >= 8@, you can make+-- exact change using only 3-cent and 5-cent coins.+--+-- This example is inspired by: <https://github.com/imandra-ai/imandrax-examples/blob/main/src/coins.iml>+-----------------------------------------------------------------------------++{-# LANGUAGE CPP               #-}+{-# LANGUAGE DataKinds         #-}+{-# LANGUAGE FlexibleInstances #-}+{-# LANGUAGE QuasiQuotes       #-}+{-# LANGUAGE TemplateHaskell   #-}+{-# LANGUAGE TypeApplications  #-}++{-# OPTIONS_GHC -Wall -Werror #-}++module Documentation.SBV.Examples.TP.Coins where++import Data.SBV+import Data.SBV.Maybe hiding (maybe)+import Data.SBV.TP++#ifdef DOCTEST+-- $setup+-- >>> import Data.SBV.TP+#endif++-- * Types++-- | A pocket contains a count of 3-cent and 5-cent coins.+data Pocket = Pocket { num3s :: Integer+                     , num5s :: Integer+                     }++-- | Create a symbolic version of Pocket.+mkSymbolic [''Pocket]++-- * Making change++-- | Make change for a given amount. Returns 'Nothing' if the amount is less than 8.+-- Base cases:+--+--   *  8 = 3 + 5+--   *  9 = 3 + 3 + 3+--   * 10 = 5 + 5+--+-- For @n > 10@, we use change for @n-3@ and add one more 3-cent coin.+mkChange :: SInteger -> SMaybe Pocket+mkChange = smtFunction "mkChange" $ \n ->+    [sCase| n of+       _ | n .<   8 -> sNothing+       _ | n .==  8 -> sJust (sPocket 1 1)+       _ | n .==  9 -> sJust (sPocket 3 0)+       _ | n .== 10 -> sJust (sPocket 0 2)+       _            -> case mkChange (n - 3) of+                         Nothing             -> sNothing+                         Just (Pocket n3 n5) -> sJust (sPocket (n3 + 1) n5)+   |]++-- | Evaluate the value of a pocket (total cents).+evalPocket :: SMaybe Pocket -> SInteger+evalPocket mp = [sCase| mp of+                   Nothing             -> 0+                   Just (Pocket n3 n5) -> 3 * n3 + 5 * n5+                |]++-- * Correctness++-- | Prove that for any @n >= 8@, @mkChange@ produces a pocket that evaluates to @n@.+--+-- We have:+--+-- >>> runTP correctness+-- Inductive lemma (strong): mkChangeCorrect+--   Step: Measure is non-negative              Q.E.D.+--   Step: 1 (5 way case split)+--     Step: 1.1                                Q.E.D.+--     Step: 1.2                                Q.E.D.+--     Step: 1.3                                Q.E.D.+--     Step: 1.4                                Q.E.D.+--     Step: 1.5.1                              Q.E.D.+--     Step: 1.5.2                              Q.E.D.+--     Step: 1.5.3                              Q.E.D.+--     Step: 1.Completeness                     Q.E.D.+--   Result:                                    Q.E.D.+-- Functions proven terminating: mkChange+-- [Proven] mkChangeCorrect :: Ɐn ∷ Integer → Bool+correctness :: TP (Proof (Forall "n" Integer -> SBool))+correctness =+    sInduct "mkChangeCorrect"+            (\(Forall n) -> n .>= 8 .=> evalPocket (mkChange n) .== n)+            (id, []) $+            \ih n -> [n .>= 8]+                  |- evalPocket (mkChange n) .== n+                  =: cases [ n .== 8  ==> trivial+                           , n .== 9  ==> trivial+                           , n .== 10 ==> trivial+                           , n .< 8   ==> trivial   -- Vacuously true: contradicts n >= 8+                           , n .> 10  ==> evalPocket (mkChange n) .== n+                                       =: [sCase| mkChange (n - 3) of+                                            Nothing             -> evalPocket sNothing .== n+                                            Just (Pocket n3 n5) -> evalPocket (sJust (sPocket (n3 + 1) n5)) .== n+                                         |]+                                       ?? ih `at` Inst @"n" (n - 3)+                                       =: sTrue+                                       =: qed+                           ]
+ Documentation/SBV/Examples/TP/Collatz.hs view
@@ -0,0 +1,119 @@+-----------------------------------------------------------------------------+-- |+-- Module    : Documentation.SBV.Examples.TP.Collatz+-- Copyright : (c) Levent Erkok+-- License   : BSD3+-- Maintainer: erkokl@gmail.com+-- Stability : experimental+--+-- The Collatz function: starting from a positive integer, if it is 1 we stop;+-- if it is even we halve it; if it is odd we triple and add one.  Whether this+-- process terminates for every positive integer is the famous Collatz conjecture,+-- an open problem in mathematics. Because no termination measure is known, we+-- define 'collatz' with 'smtFunctionNoTermination', which emits the recursive+-- definition without any termination check.+--+-- We then prove that 'collatz' reaches 1 for every power of two.+-----------------------------------------------------------------------------++{-# LANGUAGE CPP                 #-}+{-# LANGUAGE DataKinds           #-}+{-# LANGUAGE QuasiQuotes         #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions    #-}+{-# LANGUAGE TypeApplications    #-}++{-# OPTIONS_GHC -Wall -Werror #-}++module Documentation.SBV.Examples.TP.Collatz where++import Data.SBV+import Data.SBV.TP++#ifdef DOCTEST+-- $setup+-- >>> import Data.SBV.TP+#endif++-- * Definitions++-- | The Collatz function. Termination for all positive integers is the famous+-- Collatz conjecture, an open problem in mathematics. We use 'smtFunctionNoTermination'+-- since no termination measure is known.+collatz :: SInteger -> SInteger+collatz = smtFunctionNoTermination "collatz"+        $ \n -> [sCase| n of+                   1                  -> 1+                   _ | 2 `sDivides` n -> collatz (n `sDiv` 2)+                     | True           -> collatz (3 * n + 1)+                |]++-- | Power of two: @pow2 k = 2^k@ for @k >= 0@.+pow2 :: SInteger -> SInteger+pow2 = smtFunction "pow2"+     $ \k -> [sCase| k of+                _ | k .<= 0 -> 1+                  | True    -> 2 * pow2 (k - 1)+             |]++-- * Helper lemmas++-- | Doubling doesn't change the Collatz result.+--+-- >>> runTP doubling+-- Lemma: doubling     Q.E.D. [Modulo: collatz termination]+-- [Modulo: collatz termination] doubling :: Ɐn ∷ Integer → Bool+doubling :: TP (Proof (Forall "n" Integer -> SBool))+doubling = lemma "doubling" (\(Forall @"n" n) -> n .>= 1 .=> collatz (2 * n) .== collatz n) []++-- | Powers of two are positive.+--+-- >>> runTP pow2pos+-- Inductive lemma: pow2pos+--   Step: Base                Q.E.D.+--   Step: 1                   Q.E.D.+--   Step: 2                   Q.E.D.+--   Result:                   Q.E.D.+-- Functions proven terminating: pow2+-- [Proven] pow2pos :: Ɐk ∷ Integer → Bool+pow2pos :: TP (Proof (Forall "k" Integer -> SBool))+pow2pos = induct "pow2pos"+                 (\(Forall @"k" k) -> pow2 k .>= 1) $+                 \ih k -> []+                       |- pow2 (k + 1) .>= 1+                       =: 2 * pow2 k .>= 1+                       ?? ih+                       =: sTrue+                       =: qed++-- * Correctness++-- | All powers of two reach 1 under the Collatz function.+--+-- >>> runTP collatzPow2+-- Lemma: doubling                 Q.E.D. [Modulo: collatz termination]+-- Lemma: pow2pos                  Q.E.D.+-- Inductive lemma: collatzPow2+--   Step: Base                    Q.E.D.+--   Step: 1                       Q.E.D.+--   Step: 2                       Q.E.D. [Modulo: collatz termination]+--   Step: 3                       Q.E.D.+--   Result:                       Q.E.D. [Modulo: collatz termination]+-- Functions proven terminating: pow2+-- [Modulo: collatz termination] collatzPow2 :: Ɐk ∷ Integer → Bool+collatzPow2 :: TP (Proof (Forall "k" Integer -> SBool))+collatzPow2 = do+   dbl <- recall doubling+   p2p <- recall pow2pos++   induct "collatzPow2"+          (\(Forall @"k" k) -> k .>= 0 .=> collatz (pow2 k) .== 1) $+          \ih k -> [k .>= 0]+                |- collatz (pow2 (k + 1))+                =: collatz (2 * pow2 k)+                ?? dbl+                ?? p2p+                =: collatz (pow2 k)+                ?? ih+                =: (1 :: SInteger)+                =: qed
+ Documentation/SBV/Examples/TP/ConstFold.hs view
@@ -0,0 +1,1523 @@+-----------------------------------------------------------------------------+-- |+-- Module    : Documentation.SBV.Examples.TP.ConstFold+-- Copyright : (c) Levent Erkok+-- License   : BSD3+-- Maintainer: erkokl@gmail.com+-- Stability : experimental+--+-- Correctness of constant folding for a simple expression language.+-----------------------------------------------------------------------------++{-# LANGUAGE CPP                 #-}+{-# LANGUAGE DataKinds           #-}+{-# LANGUAGE QuasiQuotes         #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions    #-}+{-# LANGUAGE TypeApplications    #-}++{-# OPTIONS_GHC -Wall -Werror #-}++module Documentation.SBV.Examples.TP.ConstFold where++import Prelude hiding ((++), snd)++import Data.SBV+import Data.SBV.List  as SL+import Data.SBV.Tuple as ST+import Data.SBV.TP++-- Get the expression language definitions+import Documentation.SBV.Examples.TP.VM++#ifdef DOCTEST+-- $setup+-- >>> import Data.SBV+-- >>> import Data.SBV.TP+-- >>> :set -XTypeApplications+#endif++-- | Base expression type (used in quantifiers).+type Exp = Expr String Integer++-- | Base environment-list type (used in quantifiers).+type EL = [(String, Integer)]++-- | Symbolic expression over strings and integers.+type SE = SExpr String Integer++-- | Symbolic environment over strings and integers.+type E = Env String Integer++-- * Simplification++-- | Simplify an expression at the top level, assuming sub-expressions are already folded.+-- The rules are:+--+--   * @Sqr (Con v)         → Con (v*v)@+--   * @Inc (Con v)         → Con (v+1)@+--   * @Add (Con 0) x       → x@+--   * @Add x (Con 0)       → x@+--   * @Add (Con a) (Con b) → Con (a+b)@+--   * @Mul (Con 0) x       → Con 0@+--   * @Mul x (Con 0)       → Con 0@+--   * @Mul (Con 1) x       → x@+--   * @Mul x (Con 1)       → x@+--   * @Mul (Con a) (Con b) → Con (a*b)@+--   * @Let nm (Con v) b    → subst nm v b@+simplify :: SE -> SE+simplify = smtFunction "simplify" $ \expr ->+  [sCase| expr of+    Sqr (Con v)         -> sCon (v * v)++    Inc (Con v)         -> sCon (v + 1)++    Add (Con 0) r       -> r+    Add l       (Con 0) -> l+    Add (Con a) (Con b) -> sCon (a + b)++    Mul (Con 0) _       -> sCon 0+    Mul _       (Con 0) -> sCon 0+    Mul (Con 1) r       -> r+    Mul l       (Con 1) -> l+    Mul (Con a) (Con b) -> sCon (a * b)++    Let nm (Con v) b    -> subst nm v b++    -- fall-thru+    _                   -> expr+  |]++-- * Substitution++-- | Substitute a variable with a value in an expression. Capture-avoiding:+-- if a @Let@-bound variable shadows the target, we do not substitute in the body.+--+--   * @Var x         → if x == nm then Con v else Var x@+--   * @Con c         → Con c@+--   * @Sqr a         → Sqr (subst nm v a)@+--   * @Inc a         → Inc (subst nm v a)@+--   * @Add a b       → Add (subst nm v a) (subst nm v b)@+--   * @Mul a b       → Mul (subst nm v a) (subst nm v b)@+--   * @Let x a b     → Let x (subst nm v a) (if x == nm then b else subst nm v b)@+subst :: SString -> SInteger -> SE -> SE+subst = smtFunction "subst" $ \nm v expr ->+  [sCase| expr of++    -- Substitute for vars if name matches+    Var x | x .== nm -> sCon v+          | True     -> sVar x++    -- pass thru+    Con c   -> sCon c+    Sqr a   -> sSqr (subst nm v a)+    Inc a   -> sInc (subst nm v a)+    Add a b -> sAdd (subst nm v a) (subst nm v b)+    Mul a b -> sMul (subst nm v a) (subst nm v b)++    -- substitute in the definition, but only substitute in the body if the name is not shadowing+    Let x a b | x .== nm -> sLet x (subst nm v a) b+              | True     -> sLet x (subst nm v a) (subst nm v b)+  |]++-- * Constant folding++-- | Constant fold an expression bottom-up: first fold sub-expressions, then simplify.+cfold :: SE -> SE+cfold = smtFunction "cfold" $ \expr ->+  [sCase| expr of+    Var nm     -> sVar nm+    Con v      -> sCon v+    Sqr a      -> simplify (sSqr (cfold a))+    Inc a      -> simplify (sInc (cfold a))+    Add a b    -> simplify (sAdd (cfold a) (cfold b))+    Mul a b    -> simplify (sMul (cfold a) (cfold b))+    Let nm a b -> simplify (sLet nm (cfold a) (cfold b))+  |]++-- * Correctness++-- | The size measure is always non-negative.+--+-- >>> runTP measureNonNeg+-- Lemma: measureNonNeg    Q.E.D.+-- Functions proven terminating: exprSize+-- [Proven] measureNonNeg :: Ɐe ∷ (Expr String Integer) → Bool+measureNonNeg :: TP (Proof (Forall "e" Exp -> SBool))+measureNonNeg = inductiveLemma "measureNonNeg"+                               (\(Forall @"e" (e :: SE)) -> size e .>= 0)+                               []++-- | Congruence for squaring: if @a == b@ then @a*a == b*b@.+--+-- >>> runTP sqrCong+-- Lemma: sqrCong      Q.E.D.+-- [Proven] sqrCong :: Ɐa ∷ Integer → Ɐb ∷ Integer → Bool+sqrCong :: TP (Proof (Forall "a" Integer -> Forall "b" Integer -> SBool))+sqrCong = lemma "sqrCong"+                (\(Forall @"a" (a :: SInteger)) (Forall @"b" b) ->+                      a .== b .=> a * a .== b * b) []++-- | Congruence for addition on the left: if @a == b@ then @a+c == b+c@.+--+-- >>> runTP addCongL+-- Lemma: addCongL     Q.E.D.+-- [Proven] addCongL :: Ɐa ∷ Integer → Ɐb ∷ Integer → Ɐc ∷ Integer → Bool+addCongL :: TP (Proof (Forall "a" Integer -> Forall "b" Integer -> Forall "c" Integer -> SBool))+addCongL = lemma "addCongL"+                 (\(Forall @"a" (a :: SInteger)) (Forall @"b" b) (Forall @"c" c) ->+                       a .== b .=> a + c .== b + c) []++-- | Congruence for addition on the right: if @b == c@ then @a+b == a+c@.+--+-- >>> runTP addCongR+-- Lemma: addCongR     Q.E.D.+-- [Proven] addCongR :: Ɐa ∷ Integer → Ɐb ∷ Integer → Ɐc ∷ Integer → Bool+addCongR :: TP (Proof (Forall "a" Integer -> Forall "b" Integer -> Forall "c" Integer -> SBool))+addCongR = lemma "addCongR"+                 (\(Forall @"a" (a :: SInteger)) (Forall @"b" b) (Forall @"c" c) ->+                       b .== c .=> a + b .== a + c) []++-- | Congruence for multiplication on the left: if @a == b@ then @a*c == b*c@.+--+-- >>> runTP mulCongL+-- Lemma: mulCongL     Q.E.D.+-- [Proven] mulCongL :: Ɐa ∷ Integer → Ɐb ∷ Integer → Ɐc ∷ Integer → Bool+mulCongL :: TP (Proof (Forall "a" Integer -> Forall "b" Integer -> Forall "c" Integer -> SBool))+mulCongL = lemma "mulCongL"+                 (\(Forall @"a" (a :: SInteger)) (Forall @"b" b) (Forall @"c" c) ->+                       a .== b .=> a * c .== b * c) []++-- | Congruence for multiplication on the right: if @b == c@ then @a*b == a*c@.+--+-- >>> runTP mulCongR+-- Lemma: mulCongR     Q.E.D.+-- [Proven] mulCongR :: Ɐa ∷ Integer → Ɐb ∷ Integer → Ɐc ∷ Integer → Bool+mulCongR :: TP (Proof (Forall "a" Integer -> Forall "b" Integer -> Forall "c" Integer -> SBool))+mulCongR = lemma "mulCongR"+                 (\(Forall @"a" (a :: SInteger)) (Forall @"b" b) (Forall @"c" c) ->+                       b .== c .=> a * b .== a * c) []++-- | Unfolding @interpInEnv@ over @Sqr@.+--+-- >>> runTP sqrHelper+-- Lemma: sqrHelper    Q.E.D.+-- Functions proven terminating: interpInEnv, sbv.lookup+-- [Proven] sqrHelper :: Ɐenv ∷ [(String, Integer)] → Ɐa ∷ (Expr String Integer) → Bool+sqrHelper :: TP (Proof (Forall "env" EL -> Forall "a" Exp -> SBool))+sqrHelper = lemma "sqrHelper"+                  (\(Forall @"env" (env :: E)) (Forall @"a" a) ->+                        interpInEnv env (sSqr a) .== interpInEnv env a * interpInEnv env a) []++-- | Unfolding @interpInEnv@ over @Add@.+--+-- >>> runTP addHelper+-- Lemma: addHelper    Q.E.D.+-- Functions proven terminating: interpInEnv, sbv.lookup+-- [Proven] addHelper :: Ɐenv ∷ [(String, Integer)] → Ɐa ∷ (Expr String Integer) → Ɐb ∷ (Expr String Integer) → Bool+addHelper :: TP (Proof (Forall "env" EL -> Forall "a" Exp -> Forall "b" Exp -> SBool))+addHelper = lemma "addHelper"+                  (\(Forall @"env" (env :: E)) (Forall @"a" a) (Forall @"b" b) ->+                        interpInEnv env (sAdd a b) .== interpInEnv env a + interpInEnv env b) []++-- | Unfolding @interpInEnv@ over @Mul@.+--+-- >>> runTP mulHelper+-- Lemma: mulHelper    Q.E.D.+-- Functions proven terminating: interpInEnv, sbv.lookup+-- [Proven] mulHelper :: Ɐenv ∷ [(String, Integer)] → Ɐa ∷ (Expr String Integer) → Ɐb ∷ (Expr String Integer) → Bool+mulHelper :: TP (Proof (Forall "env" EL -> Forall "a" Exp -> Forall "b" Exp -> SBool))+mulHelper = lemma "mulHelper"+                  (\(Forall @"env" (env :: E)) (Forall @"a" a) (Forall @"b" b) ->+                        interpInEnv env (sMul a b) .== interpInEnv env a * interpInEnv env b) []++-- | Unfolding @interpInEnv@ over @Let@.+--+-- >>> runTP letHelper+-- Lemma: letHelper    Q.E.D.+-- Functions proven terminating: interpInEnv, sbv.lookup+-- [Proven] letHelper :: Ɐenv ∷ [(String, Integer)] → Ɐnm ∷ String → Ɐa ∷ (Expr String Integer) → Ɐb ∷ (Expr String Integer) → Bool+letHelper :: TP (Proof (Forall "env" EL -> Forall "nm" String -> Forall "a" Exp -> Forall "b" Exp -> SBool))+letHelper = lemma "letHelper"+                  (\(Forall @"env" (env :: E)) (Forall @"nm" nm) (Forall @"a" a) (Forall @"b" b) ->+                        interpInEnv env (sLet nm a b) .== interpInEnv (ST.tuple (nm, interpInEnv env a) .: env) b) []++-- * Environment lemmas++-- | Swapping two adjacent bindings with distinct keys does not affect lookup.+--+-- >>> runTP lookupSwap+-- Lemma: lookupSwap+--   Step: 1 (2 way case split)+--     Step: 1.1               Q.E.D.+--     Step: 1.2.1             Q.E.D.+--     Step: 1.2.2             Q.E.D.+--     Step: 1.Completeness    Q.E.D.+--   Result:                   Q.E.D.+-- Functions proven terminating: sbv.lookup+-- [Proven] lookupSwap :: Ɐk ∷ String → Ɐb1 ∷ (String, Integer) → Ɐb2 ∷ (String, Integer) → Ɐenv ∷ [(String, Integer)] → Bool+lookupSwap :: TP (Proof (Forall "k" String -> Forall "b1" (String, Integer)+                      -> Forall "b2" (String, Integer) -> Forall "env" EL -> SBool))+lookupSwap = calc "lookupSwap"+                  (\(Forall @"k" (k :: SString)) (Forall @"b1" (b1 :: STuple String Integer))+                    (Forall @"b2" (b2 :: STuple String Integer)) (Forall @"env" (env :: E)) ->+                      let (x, _) = ST.untuple b1+                          (y, _) = ST.untuple b2+                      in  x ./= y .=> SL.lookup k (b1 .: b2 .: env) .== SL.lookup k (b2 .: b1 .: env)) $+                  \k b1 b2 env ->+                      let (x, _) = ST.untuple b1+                          (y, _) = ST.untuple b2+                      in [x ./= y]+                      |- cases [ k .== x+                                 ==> SL.lookup k (b1 .: b2 .: env)+                                  =: SL.lookup k (b2 .: b1 .: env)+                                  =: qed+                               , k ./= x+                                 ==> SL.lookup k (b1 .: b2 .: env)+                                  =: SL.lookup k (b2 .: env)+                                  =: SL.lookup k (b2 .: b1 .: env)+                                  =: qed+                               ]++-- | One-step unfolding of 'SL.lookup' on a cons cell. The solver can expand the+-- @define-fun-rec@ but struggles to fold it back, so we provide this as a reusable hint.+--+-- >>> runTP lookupCons+-- Lemma: lookupCons    Q.E.D.+-- Functions proven terminating: sbv.lookup+-- [Proven] lookupCons :: Ɐk ∷ String → Ɐb ∷ (String, Integer) → Ɐrest ∷ [(String, Integer)] → Bool+lookupCons :: TP (Proof (Forall "k" String -> Forall "b" (String, Integer) -> Forall "rest" EL -> SBool))+lookupCons = lemma "lookupCons"+   (\(Forall @"k" (k :: SString)) (Forall @"b" (b :: STuple String Integer)) (Forall @"rest" (rest :: E)) ->+      let (bk, bv) = ST.untuple b+      in SL.lookup k (b .: rest) .== ite (k .== bk) bv (SL.lookup k rest))+   []++-- | Generalized swap: swapping two adjacent distinct-keyed bindings behind+-- a prefix does not affect lookup.+--+-- >>> runTP lookupSwapPfx+-- Lemma: lookupSwap                          Q.E.D.+-- Lemma: lookupCons                          Q.E.D.+-- Inductive lemma (strong): lookupSwapPfx+--   Step: Measure is non-negative            Q.E.D.+--   Step: 1 (2 way case split)+--     Step: 1.1 (base)                       Q.E.D.+--     Step: 1.2.1 (cons)                     Q.E.D.+--     Step: 1.2.2                            Q.E.D.+--     Step: 1.2.3                            Q.E.D.+--     Step: 1.2.4                            Q.E.D.+--     Step: 1.2.5                            Q.E.D.+--     Step: 1.Completeness                   Q.E.D.+--   Result:                                  Q.E.D.+-- Functions proven terminating: sbv.lookup+-- [Proven] lookupSwapPfx :: Ɐpfx ∷ [(String, Integer)] → Ɐk ∷ String → Ɐb1 ∷ (String, Integer) → Ɐb2 ∷ (String, Integer) → Ɐenv ∷ [(String, Integer)] → Bool+lookupSwapPfx :: TP (Proof (Forall "pfx" EL -> Forall "k" String -> Forall "b1" (String, Integer)+                         -> Forall "b2" (String, Integer) -> Forall "env" EL -> SBool))+lookupSwapPfx = do+   lkS <- recall lookupSwap+   lkC <- recall lookupCons++   sInduct "lookupSwapPfx"+     (\(Forall @"pfx" (pfx :: E)) (Forall @"k" (k :: SString)) (Forall @"b1" (b1 :: STuple String Integer))+       (Forall @"b2" (b2 :: STuple String Integer)) (Forall @"env" (env :: E)) ->+         let (x, _) = ST.untuple b1+             (y, _) = ST.untuple b2+         in  x ./= y .=>    SL.lookup k (pfx ++ b1 .: b2 .: env)+                         .== SL.lookup k (pfx ++ b2 .: b1 .: env))+     (\pfx _ _ _ _ -> SL.length pfx :: SInteger, []) $+     \ih pfx k b1 b2 env ->+       let (x, _) = ST.untuple b1+           (y, _) = ST.untuple b2+       in [x ./= y]+       |- cases [ SL.null pfx+                  ==> SL.lookup k (pfx ++ b1 .: b2 .: env)+                   ?? "base"+                   ?? lkS `at` (Inst @"k" k, Inst @"b1" b1, Inst @"b2" b2, Inst @"env" env)+                   =: SL.lookup k (pfx ++ b2 .: b1 .: env)+                   =: qed+                , sNot (SL.null pfx)+                  ==> let h      = SL.head pfx+                          t      = SL.tail pfx+                          (hk, hv) = ST.untuple h+                       in SL.lookup k (pfx ++ b1 .: b2 .: env)+                       ?? "cons"+                       ?? pfx .== h .: t+                       =: SL.lookup k (h .: (t ++ b1 .: b2 .: env))+                       =: ite (k .== hk) hv (SL.lookup k (t ++ b1 .: b2 .: env))+                       ?? ih `at` (Inst @"pfx" t, Inst @"k" k, Inst @"b1" b1, Inst @"b2" b2, Inst @"env" env)+                       =: ite (k .== hk) hv (SL.lookup k (t ++ b2 .: b1 .: env))+                       ?? lkC `at` (Inst @"k" k, Inst @"b" h, Inst @"rest" (t ++ b2 .: b1 .: env))+                       =: SL.lookup k (h .: (t ++ b2 .: b1 .: env))+                       =: SL.lookup k (pfx ++ b2 .: b1 .: env)+                       =: qed+                ]++-- | A shadowed binding does not affect lookup: if the same key appears first, the second is irrelevant.+--+-- >>> runTP lookupShadow+-- Lemma: lookupShadow    Q.E.D.+-- Functions proven terminating: sbv.lookup+-- [Proven] lookupShadow :: Ɐk ∷ String → Ɐb1 ∷ (String, Integer) → Ɐb2 ∷ (String, Integer) → Ɐenv ∷ [(String, Integer)] → Bool+lookupShadow :: TP (Proof (Forall "k" String -> Forall "b1" (String, Integer)+                        -> Forall "b2" (String, Integer) -> Forall "env" EL -> SBool))+lookupShadow = lemma "lookupShadow"+                     (\(Forall @"k" (k :: SString)) (Forall @"b1" (b1 :: STuple String Integer))+                       (Forall @"b2" (b2 :: STuple String Integer)) (Forall @"env" (env :: E)) ->+                         let (x, _) = ST.untuple b1+                             (y, _) = ST.untuple b2+                         in  x .== y .=>    SL.lookup k (b1 .: b2 .: env)+                                        .== SL.lookup k (b1 .: env))+                     []++-- | Generalized shadow: a shadowed binding behind a prefix does not affect lookup.+--+-- >>> runTP lookupShadowPfx+-- Lemma: lookupShadow                          Q.E.D.+-- Lemma: lookupCons                            Q.E.D.+-- Inductive lemma (strong): lookupShadowPfx+--   Step: Measure is non-negative              Q.E.D.+--   Step: 1 (2 way case split)+--     Step: 1.1 (base)                         Q.E.D.+--     Step: 1.2.1 (cons)                       Q.E.D.+--     Step: 1.2.2                              Q.E.D.+--     Step: 1.2.3                              Q.E.D.+--     Step: 1.2.4                              Q.E.D.+--     Step: 1.2.5                              Q.E.D.+--     Step: 1.Completeness                     Q.E.D.+--   Result:                                    Q.E.D.+-- Functions proven terminating: sbv.lookup+-- [Proven] lookupShadowPfx :: Ɐpfx ∷ [(String, Integer)] → Ɐk ∷ String → Ɐb1 ∷ (String, Integer) → Ɐb2 ∷ (String, Integer) → Ɐenv ∷ [(String, Integer)] → Bool+lookupShadowPfx :: TP (Proof (Forall "pfx" EL -> Forall "k" String -> Forall "b1" (String, Integer)+                           -> Forall "b2" (String, Integer) -> Forall "env" EL -> SBool))+lookupShadowPfx = do+   lkSh <- recall lookupShadow+   lkC  <- recall lookupCons+   sInduct "lookupShadowPfx"+     (\(Forall @"pfx" (pfx :: E)) (Forall @"k" (k :: SString)) (Forall @"b1" (b1 :: STuple String Integer))+       (Forall @"b2" (b2 :: STuple String Integer)) (Forall @"env" (env :: E)) ->+         let (x, _) = ST.untuple b1+             (y, _) = ST.untuple b2+         in  x .== y .=>    SL.lookup k (pfx ++ b1 .: b2 .: env)+                         .== SL.lookup k (pfx ++ b1 .: env))+     (\pfx _ _ _ _ -> SL.length pfx :: SInteger, []) $+     \ih pfx k b1 b2 env ->+       let (x, _) = ST.untuple b1+           (y, _) = ST.untuple b2+       in [x .== y]+       |- cases [ SL.null pfx+                  ==> SL.lookup k (pfx ++ b1 .: b2 .: env)+                   ?? "base"+                   ?? lkSh `at` (Inst @"k" k, Inst @"b1" b1, Inst @"b2" b2, Inst @"env" env)+                   =: SL.lookup k (pfx ++ b1 .: env)+                   =: qed+                , sNot (SL.null pfx)+                  ==> let h  = SL.head pfx+                          t  = SL.tail pfx+                          (hk, hv) = ST.untuple h+                       in SL.lookup k (pfx ++ b1 .: b2 .: env)+                       ?? "cons"+                       ?? pfx .== h .: t+                       =: SL.lookup k (h .: (t ++ b1 .: b2 .: env))+                       =: ite (k .== hk) hv (SL.lookup k (t ++ b1 .: b2 .: env))+                       ?? ih `at` (Inst @"pfx" t, Inst @"k" k, Inst @"b1" b1, Inst @"b2" b2, Inst @"env" env)+                       =: ite (k .== hk) hv (SL.lookup k (t ++ b1 .: env))+                       ?? lkC `at` (Inst @"k" k, Inst @"b" h, Inst @"rest" (t ++ b1 .: env))+                       =: SL.lookup k (h .: (t ++ b1 .: env))+                       =: SL.lookup k (pfx ++ b1 .: env)+                       =: qed+                ]++-- | Swapping two adjacent distinct-keyed bindings in the environment+-- does not affect interpretation. The @pfx@ parameter allows the swap+-- to happen at any depth in the environment.+--+-- >>> runTPWith cvc5 envSwap+-- Lemma: measureNonNeg                       Q.E.D.+-- Lemma: lookupSwapPfx                       Q.E.D.+-- Lemma: sqrCong                             Q.E.D.+-- Lemma: sqrHelper                           Q.E.D.+-- Lemma: addCongL                            Q.E.D.+-- Lemma: addCongR                            Q.E.D.+-- Lemma: addHelper                           Q.E.D.+-- Lemma: mulCongL                            Q.E.D.+-- Lemma: mulCongR                            Q.E.D.+-- Lemma: mulHelper                           Q.E.D.+-- Lemma: letHelper                           Q.E.D.+-- Inductive lemma (strong): envSwap+--   Step: Measure is non-negative            Q.E.D.+--   Step: 1 (7 way case split)+--     Step: 1.1 (Var)                        Q.E.D.+--     Step: 1.2 (Con)                        Q.E.D.+--     Step: 1.3.1 (Sqr)                      Q.E.D.+--     Step: 1.3.2                            Q.E.D.+--     Step: 1.3.3                            Q.E.D.+--     Step: 1.4 (Inc)                        Q.E.D.+--     Step: 1.5.1 (Add)                      Q.E.D.+--     Step: 1.5.2                            Q.E.D.+--     Step: 1.5.3                            Q.E.D.+--     Step: 1.5.4                            Q.E.D.+--     Step: 1.6.1 (Mul)                      Q.E.D.+--     Step: 1.6.2                            Q.E.D.+--     Step: 1.6.3                            Q.E.D.+--     Step: 1.6.4                            Q.E.D.+--     Step: 1.7.1 (Let)                      Q.E.D.+--     Step: 1.7.2                            Q.E.D.+--     Step: 1.7.3                            Q.E.D.+--     Step: 1.7.4                            Q.E.D.+--     Step: 1.Completeness                   Q.E.D.+--   Result:                                  Q.E.D.+-- Functions proven terminating: exprSize, interpInEnv, sbv.lookup+-- [Proven] envSwap :: Ɐe ∷ (Expr String Integer) → Ɐpfx ∷ [(String, Integer)] → Ɐenv ∷ [(String, Integer)] → Ɐb1 ∷ (String, Integer) → Ɐb2 ∷ (String, Integer) → Bool+envSwap :: TP (Proof (Forall "e" Exp -> Forall "pfx" EL -> Forall "env" EL+                   -> Forall "b1" (String, Integer) -> Forall "b2" (String, Integer) -> SBool))+envSwap = do+   mnn   <- recall measureNonNeg+   lkSP  <- recall lookupSwapPfx+   sqrC  <- recall sqrCong+   sqrH  <- recall sqrHelper+   addCL <- recall addCongL+   addCR <- recall addCongR+   addH  <- recall addHelper+   mulCL <- recall mulCongL+   mulCR <- recall mulCongR+   mulH  <- recall mulHelper+   letH  <- recall letHelper++   sInduct "envSwap"+     (\(Forall @"e" (e :: SE)) (Forall @"pfx" (pfx :: E)) (Forall @"env" (env :: E))+       (Forall @"b1" (b1 :: STuple String Integer)) (Forall @"b2" (b2 :: STuple String Integer)) ->+       let (x, _)  = ST.untuple b1+           (y, _)  = ST.untuple b2+       in x ./= y .=> interpInEnv (pfx ++ b1 .: b2 .: env) e .== interpInEnv (pfx ++ b2 .: b1 .: env) e)+     (\e _ _ _ _ -> size e :: SInteger, [proofOf mnn]) $+     \ih e pfx env b1 b2 ->+       let (x, _) = ST.untuple b1+           (y, _) = ST.untuple b2+           env1 = pfx ++ b1 .: b2 .: env+           env2 = pfx ++ b2 .: b1 .: env+       in [x ./= y]+       |- cases [ isVar e+                  ==> let nm = svar e+                    in interpInEnv env1 (sVar nm)+                    ?? "Var"+                    ?? lkSP `at` (Inst @"pfx" pfx, Inst @"k" nm, Inst @"b1" b1, Inst @"b2" b2, Inst @"env" env)+                    =: interpInEnv env2 (sVar nm)+                    =: qed++                , isCon e+                  ==> let v = scon e+                    in interpInEnv env1 (sCon v)+                    ?? "Con"+                    =: interpInEnv env2 (sCon v)+                    =: qed++                , isSqr e+                  ==> let a = ssqrVal e+                    in interpInEnv env1 (sSqr a)+                    ?? "Sqr"+                    ?? sqrH `at` (Inst @"env" env1, Inst @"a" a)+                    =: interpInEnv env1 a * interpInEnv env1 a+                    ?? ih `at` (Inst @"e" a, Inst @"pfx" pfx, Inst @"env" env, Inst @"b1" b1, Inst @"b2" b2)+                    ?? sqrC `at` (Inst @"a" (interpInEnv env1 a), Inst @"b" (interpInEnv env2 a))+                    =: interpInEnv env2 a * interpInEnv env2 a+                    ?? sqrH `at` (Inst @"env" env2, Inst @"a" a)+                    =: interpInEnv env2 (sSqr a)+                    =: qed++                , isInc e+                  ==> let a = sincVal e+                    in interpInEnv env1 (sInc a)+                    ?? "Inc"+                    ?? ih `at` (Inst @"e" a, Inst @"pfx" pfx, Inst @"env" env, Inst @"b1" b1, Inst @"b2" b2)+                    =: interpInEnv env2 (sInc a)+                    =: qed++                , isAdd e+                  ==> let a = sadd1 e+                          b = sadd2 e+                    in interpInEnv env1 (sAdd a b)+                    ?? "Add"+                    ?? addH `at` (Inst @"env" env1, Inst @"a" a, Inst @"b" b)+                    =: interpInEnv env1 a + interpInEnv env1 b+                    ?? ih `at` (Inst @"e" a, Inst @"pfx" pfx, Inst @"env" env, Inst @"b1" b1, Inst @"b2" b2)+                    ?? addCL `at` (Inst @"a" (interpInEnv env1 a), Inst @"b" (interpInEnv env2 a), Inst @"c" (interpInEnv env1 b))+                    =: interpInEnv env2 a + interpInEnv env1 b+                    ?? ih `at` (Inst @"e" b, Inst @"pfx" pfx, Inst @"env" env, Inst @"b1" b1, Inst @"b2" b2)+                    ?? addCR `at` (Inst @"a" (interpInEnv env2 a), Inst @"b" (interpInEnv env1 b), Inst @"c" (interpInEnv env2 b))+                    =: interpInEnv env2 a + interpInEnv env2 b+                    ?? addH `at` (Inst @"env" env2, Inst @"a" a, Inst @"b" b)+                    =: interpInEnv env2 (sAdd a b)+                    =: qed++                , isMul e+                  ==> let a = smul1 e+                          b = smul2 e+                    in interpInEnv env1 (sMul a b)+                    ?? "Mul"+                    ?? mulH `at` (Inst @"env" env1, Inst @"a" a, Inst @"b" b)+                    =: interpInEnv env1 a * interpInEnv env1 b+                    ?? ih `at` (Inst @"e" a, Inst @"pfx" pfx, Inst @"env" env, Inst @"b1" b1, Inst @"b2" b2)+                    ?? mulCL `at` (Inst @"a" (interpInEnv env1 a), Inst @"b" (interpInEnv env2 a), Inst @"c" (interpInEnv env1 b))+                    =: interpInEnv env2 a * interpInEnv env1 b+                    ?? ih `at` (Inst @"e" b, Inst @"pfx" pfx, Inst @"env" env, Inst @"b1" b1, Inst @"b2" b2)+                    ?? mulCR `at` (Inst @"a" (interpInEnv env2 a), Inst @"b" (interpInEnv env1 b), Inst @"c" (interpInEnv env2 b))+                    =: interpInEnv env2 a * interpInEnv env2 b+                    ?? mulH `at` (Inst @"env" env2, Inst @"a" a, Inst @"b" b)+                    =: interpInEnv env2 (sMul a b)+                    =: qed++                , isLet e+                  ==> let nm = slvar  e+                          a  = slval  e+                          b  = slbody e+                          val1 = interpInEnv env1 a+                          val2 = interpInEnv env2 a+                    in interpInEnv env1 (sLet nm a b)+                    ?? "Let"+                    ?? letH `at` (Inst @"env" env1, Inst @"nm" nm, Inst @"a" a, Inst @"b" b)+                    =: interpInEnv (ST.tuple (nm, val1) .: env1) b+                    ?? ih `at` (Inst @"e" a, Inst @"pfx" pfx, Inst @"env" env, Inst @"b1" b1, Inst @"b2" b2)+                    =: interpInEnv (ST.tuple (nm, val2) .: env1) b+                    ?? ih `at` (Inst @"e" b, Inst @"pfx" (ST.tuple (nm, val2) .: pfx), Inst @"env" env, Inst @"b1" b1, Inst @"b2" b2)+                    =: interpInEnv (ST.tuple (nm, val2) .: env2) b+                    ?? letH `at` (Inst @"env" env2, Inst @"nm" nm, Inst @"a" a, Inst @"b" b)+                    =: interpInEnv env2 (sLet nm a b)+                    =: qed+                ]++-- | A shadowed binding in the environment does not affect interpretation.+-- The @pfx@ parameter allows the shadow to occur at any depth.+--+-- >>> runTPWith cvc5 envShadow+-- Lemma: measureNonNeg                         Q.E.D.+-- Lemma: lookupShadowPfx                       Q.E.D.+-- Lemma: sqrCong                               Q.E.D.+-- Lemma: sqrHelper                             Q.E.D.+-- Lemma: addCongL                              Q.E.D.+-- Lemma: addCongR                              Q.E.D.+-- Lemma: addHelper                             Q.E.D.+-- Lemma: mulCongL                              Q.E.D.+-- Lemma: mulCongR                              Q.E.D.+-- Lemma: mulHelper                             Q.E.D.+-- Lemma: letHelper                             Q.E.D.+-- Inductive lemma (strong): envShadow+--   Step: Measure is non-negative              Q.E.D.+--   Step: 1 (7 way case split)+--     Step: 1.1 (Var)                          Q.E.D.+--     Step: 1.2 (Con)                          Q.E.D.+--     Step: 1.3.1 (Sqr)                        Q.E.D.+--     Step: 1.3.2                              Q.E.D.+--     Step: 1.3.3                              Q.E.D.+--     Step: 1.4 (Inc)                          Q.E.D.+--     Step: 1.5.1 (Add)                        Q.E.D.+--     Step: 1.5.2                              Q.E.D.+--     Step: 1.5.3                              Q.E.D.+--     Step: 1.5.4                              Q.E.D.+--     Step: 1.6.1 (Mul)                        Q.E.D.+--     Step: 1.6.2                              Q.E.D.+--     Step: 1.6.3                              Q.E.D.+--     Step: 1.6.4                              Q.E.D.+--     Step: 1.7.1 (Let)                        Q.E.D.+--     Step: 1.7.2                              Q.E.D.+--     Step: 1.7.3                              Q.E.D.+--     Step: 1.7.4                              Q.E.D.+--     Step: 1.Completeness                     Q.E.D.+--   Result:                                    Q.E.D.+-- Functions proven terminating: exprSize, interpInEnv, sbv.lookup+-- [Proven] envShadow :: Ɐe ∷ (Expr String Integer) → Ɐpfx ∷ [(String, Integer)] → Ɐenv ∷ [(String, Integer)] → Ɐb1 ∷ (String, Integer) → Ɐb2 ∷ (String, Integer) → Bool+envShadow :: TP (Proof (Forall "e" Exp -> Forall "pfx" EL -> Forall "env" EL+                     -> Forall "b1" (String, Integer) -> Forall "b2" (String, Integer) -> SBool))+envShadow = do+   mnn   <- recall measureNonNeg+   lkShP <- recall lookupShadowPfx+   sqrC  <- recall sqrCong+   sqrH  <- recall sqrHelper+   addCL <- recall addCongL+   addCR <- recall addCongR+   addH  <- recall addHelper+   mulCL <- recall mulCongL+   mulCR <- recall mulCongR+   mulH  <- recall mulHelper+   letH  <- recall letHelper++   sInduct "envShadow"+     (\(Forall @"e" (e :: SE)) (Forall @"pfx" (pfx :: E)) (Forall @"env" (env :: E))+       (Forall @"b1" (b1 :: STuple String Integer)) (Forall @"b2" (b2 :: STuple String Integer)) ->+       let (x, _)  = ST.untuple b1+           (y, _)  = ST.untuple b2+       in x .== y .=> interpInEnv (pfx ++ b1 .: b2 .: env) e .== interpInEnv (pfx ++ b1 .: env) e)+     (\e _ _ _ _ -> size e :: SInteger, [proofOf mnn]) $+     \ih e pfx env b1 b2 ->+       let (x, _) = ST.untuple b1+           (y, _) = ST.untuple b2+           env1 = pfx ++ b1 .: b2 .: env+           env2 = pfx ++ b1 .: env+       in [x .== y]+       |- cases [ isVar e+                  ==> let nm = svar e+                    in interpInEnv env1 (sVar nm)+                    ?? "Var"+                    ?? lkShP `at` (Inst @"pfx" pfx, Inst @"k" nm, Inst @"b1" b1, Inst @"b2" b2, Inst @"env" env)+                    =: interpInEnv env2 (sVar nm)+                    =: qed++                , isCon e+                  ==> let v = scon e+                    in interpInEnv env1 (sCon v)+                    ?? "Con"+                    =: interpInEnv env2 (sCon v)+                    =: qed++                , isSqr e+                  ==> let a = ssqrVal e+                    in interpInEnv env1 (sSqr a)+                    ?? "Sqr"+                    ?? sqrH `at` (Inst @"env" env1, Inst @"a" a)+                    =: interpInEnv env1 a * interpInEnv env1 a+                    ?? ih `at` (Inst @"e" a, Inst @"pfx" pfx, Inst @"env" env, Inst @"b1" b1, Inst @"b2" b2)+                    ?? sqrC `at` (Inst @"a" (interpInEnv env1 a), Inst @"b" (interpInEnv env2 a))+                    =: interpInEnv env2 a * interpInEnv env2 a+                    ?? sqrH `at` (Inst @"env" env2, Inst @"a" a)+                    =: interpInEnv env2 (sSqr a)+                    =: qed++                , isInc e+                  ==> let a = sincVal e+                    in interpInEnv env1 (sInc a)+                    ?? "Inc"+                    ?? ih `at` (Inst @"e" a, Inst @"pfx" pfx, Inst @"env" env, Inst @"b1" b1, Inst @"b2" b2)+                    =: interpInEnv env2 (sInc a)+                    =: qed++                , isAdd e+                  ==> let a = sadd1 e+                          b = sadd2 e+                    in interpInEnv env1 (sAdd a b)+                    ?? "Add"+                    ?? addH `at` (Inst @"env" env1, Inst @"a" a, Inst @"b" b)+                    =: interpInEnv env1 a + interpInEnv env1 b+                    ?? ih `at` (Inst @"e" a, Inst @"pfx" pfx, Inst @"env" env, Inst @"b1" b1, Inst @"b2" b2)+                    ?? addCL `at` (Inst @"a" (interpInEnv env1 a), Inst @"b" (interpInEnv env2 a), Inst @"c" (interpInEnv env1 b))+                    =: interpInEnv env2 a + interpInEnv env1 b+                    ?? ih `at` (Inst @"e" b, Inst @"pfx" pfx, Inst @"env" env, Inst @"b1" b1, Inst @"b2" b2)+                    ?? addCR `at` (Inst @"a" (interpInEnv env2 a), Inst @"b" (interpInEnv env1 b), Inst @"c" (interpInEnv env2 b))+                    =: interpInEnv env2 a + interpInEnv env2 b+                    ?? addH `at` (Inst @"env" env2, Inst @"a" a, Inst @"b" b)+                    =: interpInEnv env2 (sAdd a b)+                    =: qed++                , isMul e+                  ==> let a = smul1 e+                          b = smul2 e+                    in interpInEnv env1 (sMul a b)+                    ?? "Mul"+                    ?? mulH `at` (Inst @"env" env1, Inst @"a" a, Inst @"b" b)+                    =: interpInEnv env1 a * interpInEnv env1 b+                    ?? ih `at` (Inst @"e" a, Inst @"pfx" pfx, Inst @"env" env, Inst @"b1" b1, Inst @"b2" b2)+                    ?? mulCL `at` (Inst @"a" (interpInEnv env1 a), Inst @"b" (interpInEnv env2 a), Inst @"c" (interpInEnv env1 b))+                    =: interpInEnv env2 a * interpInEnv env1 b+                    ?? ih `at` (Inst @"e" b, Inst @"pfx" pfx, Inst @"env" env, Inst @"b1" b1, Inst @"b2" b2)+                    ?? mulCR `at` (Inst @"a" (interpInEnv env2 a), Inst @"b" (interpInEnv env1 b), Inst @"c" (interpInEnv env2 b))+                    =: interpInEnv env2 a * interpInEnv env2 b+                    ?? mulH `at` (Inst @"env" env2, Inst @"a" a, Inst @"b" b)+                    =: interpInEnv env2 (sMul a b)+                    =: qed++                , isLet e+                  ==> let nm = slvar  e+                          a  = slval  e+                          b  = slbody e+                          val1 = interpInEnv env1 a+                          val2 = interpInEnv env2 a+                    in interpInEnv env1 (sLet nm a b)+                    ?? "Let"+                    ?? letH `at` (Inst @"env" env1, Inst @"nm" nm, Inst @"a" a, Inst @"b" b)+                    =: interpInEnv (ST.tuple (nm, val1) .: env1) b+                    ?? ih `at` (Inst @"e" a, Inst @"pfx" pfx, Inst @"env" env, Inst @"b1" b1, Inst @"b2" b2)+                    =: interpInEnv (ST.tuple (nm, val2) .: env1) b+                    ?? ih `at` (Inst @"e" b, Inst @"pfx" (ST.tuple (nm, val2) .: pfx), Inst @"env" env, Inst @"b1" b1, Inst @"b2" b2)+                    =: interpInEnv (ST.tuple (nm, val2) .: env2) b+                    ?? letH `at` (Inst @"env" env2, Inst @"nm" nm, Inst @"a" a, Inst @"b" b)+                    =: interpInEnv env2 (sLet nm a b)+                    =: qed+                ]++-- * Substitution correctness++-- | Unfolding @interpInEnv@ over @Var@.+--+-- >>> runTP varHelper+-- Lemma: varHelper    Q.E.D.+-- Functions proven terminating: interpInEnv, sbv.lookup+-- [Proven] varHelper :: Ɐenv ∷ [(String, Integer)] → Ɐnm ∷ String → Bool+varHelper :: TP (Proof (Forall "env" EL -> Forall "nm" String -> SBool))+varHelper = lemma "varHelper"+                  (\(Forall @"env" (env :: E)) (Forall @"nm" nm) ->+                        interpInEnv env (sVar nm) .== SL.lookup nm env) []++-- | Substitution preserves semantics: interpreting in an extended environment+-- is the same as substituting and interpreting in the original environment.+--+-- >>> runTPWith cvc5 substCorrect+-- Lemma: measureNonNeg                         Q.E.D.+-- Lemma: sqrCong                               Q.E.D.+-- Lemma: sqrHelper                             Q.E.D.+-- Lemma: addHelper                             Q.E.D.+-- Lemma: mulCongL                              Q.E.D.+-- Lemma: mulCongR                              Q.E.D.+-- Lemma: mulHelper                             Q.E.D.+-- Lemma: letHelper                             Q.E.D.+-- Lemma: varHelper                             Q.E.D.+-- Lemma: envSwap                               Q.E.D.+-- Lemma: envShadow                             Q.E.D.+-- Inductive lemma (strong): substCorrect+--   Step: Measure is non-negative              Q.E.D.+--   Step: 1 (7 way case split)+--     Step: 1.1 (2 way case split)+--       Step: 1.1.1.1 (Var)                    Q.E.D.+--       Step: 1.1.1.2                          Q.E.D.+--       Step: 1.1.1.3                          Q.E.D.+--       Step: 1.1.1.4                          Q.E.D.+--       Step: 1.1.1.5                          Q.E.D.+--       Step: 1.1.2.1 (Var)                    Q.E.D.+--       Step: 1.1.2.2                          Q.E.D.+--       Step: 1.1.2.3                          Q.E.D.+--       Step: 1.1.2.4                          Q.E.D.+--       Step: 1.1.2.5                          Q.E.D.+--       Step: 1.1.Completeness                 Q.E.D.+--     Step: 1.2 (Con)                          Q.E.D.+--     Step: 1.3.1 (Sqr)                        Q.E.D.+--     Step: 1.3.2                              Q.E.D.+--     Step: 1.3.3                              Q.E.D.+--     Step: 1.3.4                              Q.E.D.+--     Step: 1.4 (Inc)                          Q.E.D.+--     Step: 1.5.1 (Add)                        Q.E.D.+--     Step: 1.5.2                              Q.E.D.+--     Step: 1.5.3                              Q.E.D.+--     Step: 1.5.4                              Q.E.D.+--     Step: 1.6.1 (Mul)                        Q.E.D.+--     Step: 1.6.2                              Q.E.D.+--     Step: 1.6.3                              Q.E.D.+--     Step: 1.6.4                              Q.E.D.+--     Step: 1.6.5                              Q.E.D.+--     Step: 1.7.1 (Let)                        Q.E.D.+--     Step: 1.7.2 (2 way case split)+--       Step: 1.7.2.1.1                        Q.E.D.+--       Step: 1.7.2.1.2 (shadow)               Q.E.D.+--       Step: 1.7.2.1.3                        Q.E.D.+--       Step: 1.7.2.1.4                        Q.E.D.+--       Step: 1.7.2.1.5                        Q.E.D.+--       Step: 1.7.2.2.1                        Q.E.D.+--       Step: 1.7.2.2.2 (swap)                 Q.E.D.+--       Step: 1.7.2.2.3                        Q.E.D.+--       Step: 1.7.2.2.4                        Q.E.D.+--       Step: 1.7.2.2.5                        Q.E.D.+--       Step: 1.7.2.2.6                        Q.E.D.+--       Step: 1.7.2.Completeness               Q.E.D.+--     Step: 1.Completeness                     Q.E.D.+--   Result:                                    Q.E.D.+-- Functions proven terminating: exprSize, interpInEnv, sbv.lookup, subst+-- [Proven] substCorrect :: Ɐe ∷ (Expr String Integer) → Ɐnm ∷ String → Ɐv ∷ Integer → Ɐenv ∷ [(String, Integer)] → Bool+substCorrect :: TP (Proof (Forall "e" Exp -> Forall "nm" String -> Forall "v" Integer -> Forall "env" EL -> SBool))+substCorrect = do+   mnn   <- recall measureNonNeg+   sqrC  <- recall sqrCong+   sqrH  <- recall sqrHelper+   addH  <- recall addHelper+   mulCL <- recall mulCongL+   mulCR <- recall mulCongR+   mulH  <- recall mulHelper+   letH  <- recall letHelper+   varH  <- recall varHelper+   eSwp  <- recall envSwap+   eShd  <- recall envShadow++   sInduct "substCorrect"+     (\(Forall @"e" (e :: SE)) (Forall @"nm" (nm :: SString)) (Forall @"v" (v :: SInteger)) (Forall @"env" (env :: E)) ->+         interpInEnv (ST.tuple (nm, v) .: env) e .== interpInEnv env (subst nm v e))+     (\e _ _ _ -> size e :: SInteger, [proofOf mnn]) $+     \ih e nm v env ->+       let nmv  = ST.tuple (nm, v)+           env1 = nmv .: env+       in []+       |- cases [ isVar e+                  ==> let x = svar e+                    in interpInEnv env1 (sVar x)+                    ?? "Var"+                    =: cases [ x .== nm+                               ==> interpInEnv env1 (sVar nm)+                                ?? varH `at` (Inst @"env" env1, Inst @"nm" nm)+                                =: SL.lookup nm env1+                                =: v+                                =: interpInEnv env (sCon v)+                                =: interpInEnv env (subst nm v (sVar nm))+                                =: qed+                             , x ./= nm+                               ==> interpInEnv env1 (sVar x)+                                ?? varH `at` (Inst @"env" env1, Inst @"nm" x)+                                =: SL.lookup x env1+                                =: SL.lookup x env+                                ?? varH `at` (Inst @"env" env, Inst @"nm" x)+                                =: interpInEnv env (sVar x)+                                =: interpInEnv env (subst nm v (sVar x))+                                =: qed+                             ]++                , isCon e+                  ==> let c = scon e+                    in interpInEnv env1 (sCon c)+                    ?? "Con"+                    =: interpInEnv env (subst nm v (sCon c))+                    =: qed++                , isSqr e+                  ==> let a = ssqrVal e+                    in interpInEnv env1 (sSqr a)+                    ?? "Sqr"+                    ?? sqrH `at` (Inst @"env" env1, Inst @"a" a)+                    =: interpInEnv env1 a * interpInEnv env1 a+                    ?? ih `at` (Inst @"e" a, Inst @"nm" nm, Inst @"v" v, Inst @"env" env)+                    ?? sqrC `at` (Inst @"a" (interpInEnv env1 a), Inst @"b" (interpInEnv env (subst nm v a)))+                    =: interpInEnv env (subst nm v a) * interpInEnv env (subst nm v a)+                    ?? sqrH `at` (Inst @"env" env, Inst @"a" (subst nm v a))+                    =: interpInEnv env (sSqr (subst nm v a))+                    =: interpInEnv env (subst nm v (sSqr a))+                    =: qed++                , isInc e+                  ==> let a = sincVal e+                    in interpInEnv env1 (sInc a)+                    ?? "Inc"+                    ?? ih `at` (Inst @"e" a, Inst @"nm" nm, Inst @"v" v, Inst @"env" env)+                    =: interpInEnv env (subst nm v (sInc a))+                    =: qed++                , isAdd e+                  ==> let a = sadd1 e+                          b = sadd2 e+                    in interpInEnv env1 (sAdd a b)+                    ?? "Add"+                    ?? addH `at` (Inst @"env" env1, Inst @"a" a, Inst @"b" b)+                    =: interpInEnv env1 a + interpInEnv env1 b+                    ?? ih `at` (Inst @"e" a, Inst @"nm" nm, Inst @"v" v, Inst @"env" env)+                    ?? ih `at` (Inst @"e" b, Inst @"nm" nm, Inst @"v" v, Inst @"env" env)+                    =: interpInEnv env (subst nm v a) + interpInEnv env (subst nm v b)+                    ?? addH `at` (Inst @"env" env, Inst @"a" (subst nm v a), Inst @"b" (subst nm v b))+                    =: interpInEnv env (sAdd (subst nm v a) (subst nm v b))+                    =: interpInEnv env (subst nm v (sAdd a b))+                    =: qed++                , isMul e+                  ==> let a = smul1 e+                          b = smul2 e+                    in interpInEnv env1 (sMul a b)+                    ?? "Mul"+                    ?? mulH `at` (Inst @"env" env1, Inst @"a" a, Inst @"b" b)+                    =: interpInEnv env1 a * interpInEnv env1 b+                    ?? ih `at` (Inst @"e" a, Inst @"nm" nm, Inst @"v" v, Inst @"env" env)+                    ?? mulCL `at` (Inst @"a" (interpInEnv env1 a), Inst @"b" (interpInEnv env (subst nm v a)), Inst @"c" (interpInEnv env1 b))+                    =: interpInEnv env (subst nm v a) * interpInEnv env1 b+                    ?? ih `at` (Inst @"e" b, Inst @"nm" nm, Inst @"v" v, Inst @"env" env)+                    ?? mulCR `at` (Inst @"a" (interpInEnv env (subst nm v a)), Inst @"b" (interpInEnv env1 b), Inst @"c" (interpInEnv env (subst nm v b)))+                    =: interpInEnv env (subst nm v a) * interpInEnv env (subst nm v b)+                    ?? mulH `at` (Inst @"env" env, Inst @"a" (subst nm v a), Inst @"b" (subst nm v b))+                    =: interpInEnv env (sMul (subst nm v a) (subst nm v b))+                    =: interpInEnv env (subst nm v (sMul a b))+                    =: qed++                , isLet e+                  ==> let x   = slvar  e+                          a   = slval  e+                          b   = slbody e+                          val = interpInEnv env1 a+                    in interpInEnv env1 (sLet x a b)+                    ?? "Let"+                    ?? letH `at` (Inst @"env" env1, Inst @"nm" x, Inst @"a" a, Inst @"b" b)+                    =: interpInEnv (ST.tuple (x, val) .: env1) b+                    =: cases [ x .== nm+                               ==> let xv = ST.tuple (x, val)+                                 in interpInEnv (xv .: nmv .: env) b+                                 ?? "shadow"+                                 ?? eShd `at` (Inst @"e" b, Inst @"pfx" (SL.nil :: E), Inst @"env" env, Inst @"b1" xv, Inst @"b2" nmv)+                                 =: interpInEnv (xv .: env) b+                                 ?? ih `at` (Inst @"e" a, Inst @"nm" nm, Inst @"v" v, Inst @"env" env)+                                 =: interpInEnv (ST.tuple (x, interpInEnv env (subst nm v a)) .: env) b+                                 ?? letH `at` (Inst @"env" env, Inst @"nm" x, Inst @"a" (subst nm v a), Inst @"b" b)+                                 =: interpInEnv env (sLet x (subst nm v a) b)+                                 =: interpInEnv env (subst nm v (sLet x a b))+                                 =: qed+                             , x ./= nm+                               ==> let xv = ST.tuple (x, val)+                                 in interpInEnv (xv .: nmv .: env) b+                                 ?? "swap"+                                 ?? eSwp `at` (Inst @"e" b, Inst @"pfx" (SL.nil :: E), Inst @"env" env, Inst @"b1" xv, Inst @"b2" nmv)+                                 =: interpInEnv (nmv .: xv .: env) b+                                 ?? ih `at` (Inst @"e" b, Inst @"nm" nm, Inst @"v" v, Inst @"env" (xv .: env))+                                 =: interpInEnv (xv .: env) (subst nm v b)+                                 ?? ih `at` (Inst @"e" a, Inst @"nm" nm, Inst @"v" v, Inst @"env" env)+                                 =: interpInEnv (ST.tuple (x, interpInEnv env (subst nm v a)) .: env) (subst nm v b)+                                 ?? letH `at` (Inst @"env" env, Inst @"nm" x, Inst @"a" (subst nm v a), Inst @"b" (subst nm v b))+                                 =: interpInEnv env (sLet x (subst nm v a) (subst nm v b))+                                 =: interpInEnv env (subst nm v (sLet x a b))+                                 =: qed+                             ]+                ]++-- | Simplification preserves semantics.+--+-- >>> runTPWith cvc5 simpCorrect+-- Lemma: sqrCong                               Q.E.D.+-- Lemma: sqrHelper                             Q.E.D.+-- Lemma: addHelper                             Q.E.D.+-- Lemma: mulCongL                              Q.E.D.+-- Lemma: mulCongR                              Q.E.D.+-- Lemma: mulHelper                             Q.E.D.+-- Lemma: letHelper                             Q.E.D.+-- Lemma: substCorrect                          Q.E.D.+-- Lemma: simpCorrect+--   Step: 1 (7 way case split)+--     Step: 1.1.1 (Var)                        Q.E.D.+--     Step: 1.1.2                              Q.E.D.+--     Step: 1.1.3                              Q.E.D.+--     Step: 1.2.1 (Con)                        Q.E.D.+--     Step: 1.2.2                              Q.E.D.+--     Step: 1.2.3                              Q.E.D.+--     Step: 1.3.1 (Sqr)                        Q.E.D.+--     Step: 1.3.2 (2 way case split)+--       Step: 1.3.2.1.1                        Q.E.D.+--       Step: 1.3.2.1.2 (Sqr Con)              Q.E.D.+--       Step: 1.3.2.1.3                        Q.E.D.+--       Step: 1.3.2.1.4                        Q.E.D.+--       Step: 1.3.2.1.5                        Q.E.D.+--       Step: 1.3.2.2.1                        Q.E.D.+--       Step: 1.3.2.2.2 (Sqr _)                Q.E.D.+--       Step: 1.3.2.Completeness               Q.E.D.+--     Step: 1.4.1 (Inc)                        Q.E.D.+--     Step: 1.4.2 (2 way case split)+--       Step: 1.4.2.1.1                        Q.E.D.+--       Step: 1.4.2.1.2 (Inc Con)              Q.E.D.+--       Step: 1.4.2.1.3                        Q.E.D.+--       Step: 1.4.2.2.1                        Q.E.D.+--       Step: 1.4.2.2.2 (Inc _)                Q.E.D.+--       Step: 1.4.2.Completeness               Q.E.D.+--     Step: 1.5.1 (Add)                        Q.E.D.+--     Step: 1.5.2 (6 way case split)+--       Step: 1.5.2.1.1                        Q.E.D.+--       Step: 1.5.2.1.2 (Add 0+b)              Q.E.D.+--       Step: 1.5.2.1.3                        Q.E.D.+--       Step: 1.5.2.2.1                        Q.E.D.+--       Step: 1.5.2.2.2 (Add a+0)              Q.E.D.+--       Step: 1.5.2.2.3                        Q.E.D.+--       Step: 1.5.2.3.1                        Q.E.D.+--       Step: 1.5.2.3.2 (Add Con)              Q.E.D.+--       Step: 1.5.2.3.3                        Q.E.D.+--       Step: 1.5.2.4 (2 way case split)+--         Step: 1.5.2.4.1.1                    Q.E.D.+--         Step: 1.5.2.4.1.2 (Add 0,_)          Q.E.D.+--         Step: 1.5.2.4.1.3                    Q.E.D.+--         Step: 1.5.2.4.2.1                    Q.E.D.+--         Step: 1.5.2.4.2.2 (Add C,_)          Q.E.D.+--         Step: 1.5.2.4.Completeness           Q.E.D.+--       Step: 1.5.2.5 (2 way case split)+--         Step: 1.5.2.5.1.1                    Q.E.D.+--         Step: 1.5.2.5.1.2 (Add _,0)          Q.E.D.+--         Step: 1.5.2.5.1.3                    Q.E.D.+--         Step: 1.5.2.5.2.1                    Q.E.D.+--         Step: 1.5.2.5.2.2 (Add _,C)          Q.E.D.+--         Step: 1.5.2.5.Completeness           Q.E.D.+--       Step: 1.5.2.6.1                        Q.E.D.+--       Step: 1.5.2.6.2 (Add _,_)              Q.E.D.+--       Step: 1.5.2.Completeness               Q.E.D.+--     Step: 1.6.1 (Mul)                        Q.E.D.+--     Step: 1.6.2 (8 way case split)+--       Step: 1.6.2.1.1                        Q.E.D.+--       Step: 1.6.2.1.2 (Mul 0*b)              Q.E.D.+--       Step: 1.6.2.1.3                        Q.E.D.+--       Step: 1.6.2.2.1                        Q.E.D.+--       Step: 1.6.2.2.2 (Mul a*0)              Q.E.D.+--       Step: 1.6.2.2.3                        Q.E.D.+--       Step: 1.6.2.3.1                        Q.E.D.+--       Step: 1.6.2.3.2 (Mul 1*b)              Q.E.D.+--       Step: 1.6.2.3.3                        Q.E.D.+--       Step: 1.6.2.3.4                        Q.E.D.+--       Step: 1.6.2.3.5                        Q.E.D.+--       Step: 1.6.2.4.1                        Q.E.D.+--       Step: 1.6.2.4.2 (Mul a*1)              Q.E.D.+--       Step: 1.6.2.4.3                        Q.E.D.+--       Step: 1.6.2.4.4                        Q.E.D.+--       Step: 1.6.2.4.5                        Q.E.D.+--       Step: 1.6.2.5.1                        Q.E.D.+--       Step: 1.6.2.5.2 (Mul Con)              Q.E.D.+--       Step: 1.6.2.5.3                        Q.E.D.+--       Step: 1.6.2.5.4                        Q.E.D.+--       Step: 1.6.2.5.5                        Q.E.D.+--       Step: 1.6.2.5.6                        Q.E.D.+--       Step: 1.6.2.6 (3 way case split)+--         Step: 1.6.2.6.1.1                    Q.E.D.+--         Step: 1.6.2.6.1.2 (Mul 0,_)          Q.E.D.+--         Step: 1.6.2.6.1.3                    Q.E.D.+--         Step: 1.6.2.6.2.1                    Q.E.D.+--         Step: 1.6.2.6.2.2 (Mul 1,_)          Q.E.D.+--         Step: 1.6.2.6.2.3                    Q.E.D.+--         Step: 1.6.2.6.2.4                    Q.E.D.+--         Step: 1.6.2.6.2.5                    Q.E.D.+--         Step: 1.6.2.6.3.1                    Q.E.D.+--         Step: 1.6.2.6.3.2 (Mul C,_)          Q.E.D.+--         Step: 1.6.2.6.Completeness           Q.E.D.+--       Step: 1.6.2.7 (3 way case split)+--         Step: 1.6.2.7.1.1                    Q.E.D.+--         Step: 1.6.2.7.1.2 (Mul _,0)          Q.E.D.+--         Step: 1.6.2.7.1.3                    Q.E.D.+--         Step: 1.6.2.7.2.1                    Q.E.D.+--         Step: 1.6.2.7.2.2 (Mul _,1)          Q.E.D.+--         Step: 1.6.2.7.2.3                    Q.E.D.+--         Step: 1.6.2.7.2.4                    Q.E.D.+--         Step: 1.6.2.7.2.5                    Q.E.D.+--         Step: 1.6.2.7.3.1                    Q.E.D.+--         Step: 1.6.2.7.3.2 (Mul _,C)          Q.E.D.+--         Step: 1.6.2.7.Completeness           Q.E.D.+--       Step: 1.6.2.8.1                        Q.E.D.+--       Step: 1.6.2.8.2 (Mul _,_)              Q.E.D.+--       Step: 1.6.2.Completeness               Q.E.D.+--     Step: 1.7.1 (Let)                        Q.E.D.+--     Step: 1.7.2 (2 way case split)+--       Step: 1.7.2.1.1                        Q.E.D.+--       Step: 1.7.2.1.2 (Let Con)              Q.E.D.+--       Step: 1.7.2.1.3                        Q.E.D.+--       Step: 1.7.2.1.4                        Q.E.D.+--       Step: 1.7.2.2.1                        Q.E.D.+--       Step: 1.7.2.2.2 (Let _)                Q.E.D.+--       Step: 1.7.2.Completeness               Q.E.D.+--     Step: 1.Completeness                     Q.E.D.+--   Result:                                    Q.E.D.+-- Functions proven terminating: exprSize, interpInEnv, sbv.lookup, simplify, subst+-- [Proven] simpCorrect :: Ɐe ∷ (Expr String Integer) → Ɐenv ∷ [(String, Integer)] → Bool+simpCorrect :: TP (Proof (Forall "e" Exp -> Forall "env" EL -> SBool))+simpCorrect = do+   sqrC  <- recall sqrCong+   sqrH  <- recall sqrHelper+   addH  <- recall addHelper+   mulCL <- recall mulCongL+   mulCR <- recall mulCongR+   mulH  <- recall mulHelper+   letH  <- recall letHelper+   subC  <- recall substCorrect++   calc "simpCorrect"+     (\(Forall @"e" (e :: SE)) (Forall @"env" (env :: E)) -> interpInEnv env (simplify e) .== interpInEnv env e) $+     \e env -> []+     |- [pCase| e of+          Var nm     -> interpInEnv env (simplify e)+                     ?? "Var"+                     =: interpInEnv env (simplify (sVar nm))+                     =: interpInEnv env (sVar nm)+                     =: interpInEnv env e+                     =: qed++          Con c      -> interpInEnv env (simplify e)+                     ?? "Con"+                     =: interpInEnv env (simplify (sCon c))+                     =: interpInEnv env (sCon c)+                     =: interpInEnv env e+                     =: qed++          Sqr a      -> interpInEnv env (simplify e)+                     ?? "Sqr"+                     =: interpInEnv env (simplify (sSqr a))+                     =: cases [ isCon a+                                 ==> let v = scon a+                                   in interpInEnv env (simplify (sSqr (sCon v)))+                                   ?? "Sqr Con"+                                   =: interpInEnv env (sCon (v * v))+                                   ?? interpInEnv env (sCon (v * v)) .== v * v+                                   =: v * v+                                   ?? sqrC `at` (Inst @"a" (interpInEnv env (sCon v)), Inst @"b" v)+                                   =: interpInEnv env (sCon v) * interpInEnv env (sCon v)+                                   ?? sqrH `at` (Inst @"env" env, Inst @"a" (sCon v))+                                   =: interpInEnv env (sSqr (sCon v))+                                   =: qed+                               , sNot (isCon a)+                                 ==> interpInEnv env (simplify (sSqr a))+                                   ?? "Sqr _"+                                   =: interpInEnv env (sSqr a)+                                   =: qed+                               ]++          Inc a      -> interpInEnv env (simplify e)+                     ?? "Inc"+                     =: interpInEnv env (simplify (sInc a))+                     =: cases [ isCon a+                                 ==> let v = scon a+                                   in interpInEnv env (simplify (sInc (sCon v)))+                                   ?? "Inc Con"+                                   =: interpInEnv env (sCon (v + 1))+                                   =: interpInEnv env (sInc (sCon v))+                                   =: qed+                               , sNot (isCon a)+                                 ==> interpInEnv env (simplify (sInc a))+                                   ?? "Inc _"+                                   =: interpInEnv env (sInc a)+                                   =: qed+                               ]++          Add a b    -> interpInEnv env (simplify e)+                     ?? "Add"+                     =: interpInEnv env (simplify (sAdd a b))+                     =: cases [ isCon a .&& scon a .== 0+                                 ==> interpInEnv env (simplify (sAdd (sCon 0) b))+                                   ?? "Add 0+b"+                                   =: interpInEnv env b+                                   ?? addH `at` (Inst @"env" env, Inst @"a" (sCon 0), Inst @"b" b)+                                   =: interpInEnv env (sAdd (sCon 0) b)+                                   =: qed++                               , isCon b .&& scon b .== 0+                                 ==> interpInEnv env (simplify (sAdd a (sCon 0)))+                                   ?? "Add a+0"+                                   =: interpInEnv env a+                                   ?? addH `at` (Inst @"env" env, Inst @"a" a, Inst @"b" (sCon 0))+                                   =: interpInEnv env (sAdd a (sCon 0))+                                   =: qed++                               , isCon a .&& isCon b+                                 ==> let va = scon a; vb = scon b+                                   in interpInEnv env (simplify (sAdd (sCon va) (sCon vb)))+                                   ?? "Add Con"+                                   =: interpInEnv env (sCon (va + vb))+                                   ?? addH `at` (Inst @"env" env, Inst @"a" (sCon va), Inst @"b" (sCon vb))+                                   =: interpInEnv env (sAdd (sCon va) (sCon vb))+                                   =: qed++                               , isCon a .&& sNot (isCon b)+                                 ==> let va = scon a+                                   in cases [ va .== 0+                                              ==> interpInEnv env (simplify (sAdd (sCon 0) b))+                                                ?? "Add 0,_"+                                                =: interpInEnv env b+                                                ?? addH `at` (Inst @"env" env, Inst @"a" (sCon 0), Inst @"b" b)+                                                =: interpInEnv env (sAdd (sCon 0) b)+                                                =: qed+                                            , va ./= 0+                                              ==> interpInEnv env (simplify (sAdd (sCon va) b))+                                                ?? "Add C,_"+                                                =: interpInEnv env (sAdd (sCon va) b)+                                                =: qed+                                            ]++                               , sNot (isCon a) .&& isCon b+                                 ==> let vb = scon b+                                   in cases [ vb .== 0+                                              ==> interpInEnv env (simplify (sAdd a (sCon 0)))+                                                ?? "Add _,0"+                                                =: interpInEnv env a+                                                ?? addH `at` (Inst @"env" env, Inst @"a" a, Inst @"b" (sCon 0))+                                                =: interpInEnv env (sAdd a (sCon 0))+                                                =: qed+                                            , vb ./= 0+                                              ==> interpInEnv env (simplify (sAdd a (sCon vb)))+                                                ?? "Add _,C"+                                                =: interpInEnv env (sAdd a (sCon vb))+                                                =: qed+                                            ]++                               , sNot (isCon a) .&& sNot (isCon b)+                                 ==> interpInEnv env (simplify (sAdd a b))+                                   ?? "Add _,_"+                                   =: interpInEnv env (sAdd a b)+                                   =: qed+                               ]++          Mul a b    -> interpInEnv env (simplify e)+                     ?? "Mul"+                     =: interpInEnv env (simplify (sMul a b))+                     =: cases [ isCon a .&& scon a .== 0+                                 ==> interpInEnv env (simplify (sMul (sCon 0) b))+                                   ?? "Mul 0*b"+                                   =: interpInEnv env (sCon 0)+                                   ?? mulH `at` (Inst @"env" env, Inst @"a" (sCon 0), Inst @"b" b)+                                   =: interpInEnv env (sMul (sCon 0) b)+                                   =: qed++                               , isCon b .&& scon b .== 0+                                 ==> interpInEnv env (simplify (sMul a (sCon 0)))+                                   ?? "Mul a*0"+                                   =: interpInEnv env (sCon 0)+                                   ?? mulH `at` (Inst @"env" env, Inst @"a" a, Inst @"b" (sCon 0))+                                   =: interpInEnv env (sMul a (sCon 0))+                                   =: qed++                               , isCon a .&& scon a .== 1+                                 ==> interpInEnv env (simplify (sMul (sCon 1) b))+                                   ?? "Mul 1*b"+                                   =: interpInEnv env b+                                   =: 1 * interpInEnv env b+                                   ?? interpInEnv env (sCon 1) .== 1+                                   =: interpInEnv env (sCon 1) * interpInEnv env b+                                   ?? mulH `at` (Inst @"env" env, Inst @"a" (sCon 1), Inst @"b" b)+                                   =: interpInEnv env (sMul (sCon 1) b)+                                   =: qed++                               , isCon b .&& scon b .== 1+                                 ==> interpInEnv env (simplify (sMul a (sCon 1)))+                                   ?? "Mul a*1"+                                   =: interpInEnv env a+                                   =: interpInEnv env a * 1+                                   ?? interpInEnv env (sCon 1) .== 1+                                   =: interpInEnv env a * interpInEnv env (sCon 1)+                                   ?? mulH `at` (Inst @"env" env, Inst @"a" a, Inst @"b" (sCon 1))+                                   =: interpInEnv env (sMul a (sCon 1))+                                   =: qed++                               , isCon a .&& isCon b+                                 ==> let va = scon a; vb = scon b+                                   in interpInEnv env (simplify (sMul (sCon va) (sCon vb)))+                                   ?? "Mul Con"+                                   ?? simplify (sMul (sCon va) (sCon vb)) .== sCon (va * vb)+                                   =: interpInEnv env (sCon (va * vb))+                                   ?? interpInEnv env (sCon (va * vb)) .== va * vb+                                   =: va * vb+                                   ?? mulCL `at` (Inst @"a" (interpInEnv env (sCon va)), Inst @"b" va, Inst @"c" vb)+                                   =: interpInEnv env (sCon va) * vb+                                   ?? mulCR `at` (Inst @"a" (interpInEnv env (sCon va)), Inst @"b" (interpInEnv env (sCon vb)), Inst @"c" vb)+                                   =: interpInEnv env (sCon va) * interpInEnv env (sCon vb)+                                   ?? mulH `at` (Inst @"env" env, Inst @"a" (sCon va), Inst @"b" (sCon vb))+                                   =: interpInEnv env (sMul (sCon va) (sCon vb))+                                   =: qed++                               , isCon a .&& sNot (isCon b)+                                 ==> let va = scon a+                                   in cases [ va .== 0+                                              ==> interpInEnv env (simplify (sMul (sCon 0) b))+                                                ?? "Mul 0,_"+                                                =: interpInEnv env (sCon 0)+                                                ?? mulH `at` (Inst @"env" env, Inst @"a" (sCon 0), Inst @"b" b)+                                                =: interpInEnv env (sMul (sCon 0) b)+                                                =: qed+                                            , va .== 1+                                              ==> interpInEnv env (simplify (sMul (sCon 1) b))+                                                ?? "Mul 1,_"+                                                =: interpInEnv env b+                                                =: 1 * interpInEnv env b+                                                ?? interpInEnv env (sCon 1) .== 1+                                                =: interpInEnv env (sCon 1) * interpInEnv env b+                                                ?? mulH `at` (Inst @"env" env, Inst @"a" (sCon 1), Inst @"b" b)+                                                =: interpInEnv env (sMul (sCon 1) b)+                                                =: qed+                                            , va ./= 0 .&& va ./= 1+                                              ==> interpInEnv env (simplify (sMul (sCon va) b))+                                                ?? "Mul C,_"+                                                =: interpInEnv env (sMul (sCon va) b)+                                                =: qed+                                            ]++                               , sNot (isCon a) .&& isCon b+                                 ==> let vb = scon b+                                   in cases [ vb .== 0+                                              ==> interpInEnv env (simplify (sMul a (sCon 0)))+                                                ?? "Mul _,0"+                                                =: interpInEnv env (sCon 0)+                                                ?? mulH `at` (Inst @"env" env, Inst @"a" a, Inst @"b" (sCon 0))+                                                =: interpInEnv env (sMul a (sCon 0))+                                                =: qed+                                            , vb .== 1+                                              ==> interpInEnv env (simplify (sMul a (sCon 1)))+                                                ?? "Mul _,1"+                                                =: interpInEnv env a+                                                =: interpInEnv env a * 1+                                                ?? interpInEnv env (sCon 1) .== 1+                                                =: interpInEnv env a * interpInEnv env (sCon 1)+                                                ?? mulH `at` (Inst @"env" env, Inst @"a" a, Inst @"b" (sCon 1))+                                                =: interpInEnv env (sMul a (sCon 1))+                                                =: qed+                                            , vb ./= 0 .&& vb ./= 1+                                              ==> interpInEnv env (simplify (sMul a (sCon vb)))+                                                ?? "Mul _,C"+                                                =: interpInEnv env (sMul a (sCon vb))+                                                =: qed+                                            ]++                               , sNot (isCon a) .&& sNot (isCon b)+                                 ==> interpInEnv env (simplify (sMul a b))+                                   ?? "Mul _,_"+                                   =: interpInEnv env (sMul a b)+                                   =: qed+                               ]++          Let nm a b -> interpInEnv env (simplify e)+                     ?? "Let"+                     =: interpInEnv env (simplify (sLet nm a b))+                     =: cases [ isCon a+                                 ==> let v = scon a+                                   in interpInEnv env (simplify (sLet nm (sCon v) b))+                                   ?? "Let Con"+                                   =: interpInEnv env (subst nm v b)+                                   ?? subC `at` (Inst @"e" b, Inst @"nm" nm, Inst @"v" v, Inst @"env" env)+                                   =: interpInEnv (ST.tuple (nm, v) .: env) b+                                   ?? letH `at` (Inst @"env" env, Inst @"nm" nm, Inst @"a" (sCon v), Inst @"b" b)+                                   =: interpInEnv env (sLet nm (sCon v) b)+                                   =: qed+                               , sNot (isCon a)+                                 ==> interpInEnv env (simplify (sLet nm a b))+                                   ?? "Let _"+                                   =: interpInEnv env (sLet nm a b)+                                   =: qed+                               ]+        |]++-- | Constant folding preserves the semantics: interpreting an expression+-- is the same as constant-folding it first and then interpreting the result.+--+-- >>> runTPWith cvc5 cfoldCorrect+-- Lemma: measureNonNeg                         Q.E.D.+-- Lemma: simpCorrect                           Q.E.D.+-- Lemma: sqrCong                               Q.E.D. [Cached]+-- Lemma: sqrHelper                             Q.E.D. [Cached]+-- Lemma: mulCongL                              Q.E.D. [Cached]+-- Lemma: mulCongR                              Q.E.D. [Cached]+-- Lemma: mulHelper                             Q.E.D. [Cached]+-- Inductive lemma (strong): cfoldCorrect+--   Step: Measure is non-negative              Q.E.D.+--   Step: 1 (7 way case split)+--     Step: 1.1.1 (case Var)                   Q.E.D.+--     Step: 1.1.2                              Q.E.D.+--     Step: 1.1.3                              Q.E.D.+--     Step: 1.2.1 (case Con)                   Q.E.D.+--     Step: 1.2.2                              Q.E.D.+--     Step: 1.2.3                              Q.E.D.+--     Step: 1.3.1 (case Sqr)                   Q.E.D.+--     Step: 1.3.2                              Q.E.D.+--     Step: 1.3.3                              Q.E.D.+--     Step: 1.3.4                              Q.E.D.+--     Step: 1.3.5                              Q.E.D.+--     Step: 1.3.6                              Q.E.D.+--     Step: 1.3.7                              Q.E.D.+--     Step: 1.4.1 (case Inc)                   Q.E.D.+--     Step: 1.4.2                              Q.E.D.+--     Step: 1.4.3                              Q.E.D.+--     Step: 1.4.4                              Q.E.D.+--     Step: 1.4.5                              Q.E.D.+--     Step: 1.5.1 (case Add)                   Q.E.D.+--     Step: 1.5.2                              Q.E.D.+--     Step: 1.5.3                              Q.E.D.+--     Step: 1.5.4                              Q.E.D.+--     Step: 1.5.5                              Q.E.D.+--     Step: 1.6.1 (case Mul)                   Q.E.D.+--     Step: 1.6.2                              Q.E.D.+--     Step: 1.6.3                              Q.E.D.+--     Step: 1.6.4                              Q.E.D.+--     Step: 1.6.5                              Q.E.D.+--     Step: 1.6.6                              Q.E.D.+--     Step: 1.6.7                              Q.E.D.+--     Step: 1.6.8                              Q.E.D.+--     Step: 1.7.1 (case Let)                   Q.E.D.+--     Step: 1.7.2                              Q.E.D.+--     Step: 1.7.3                              Q.E.D.+--     Step: 1.7.4                              Q.E.D.+--     Step: 1.7.5                              Q.E.D.+--     Step: 1.Completeness                     Q.E.D.+--   Result:                                    Q.E.D.+-- Functions proven terminating: cfold, exprSize, interpInEnv, sbv.lookup, simplify, subst+-- [Proven] cfoldCorrect :: Ɐe ∷ (Expr String Integer) → Ɐenv ∷ [(String, Integer)] → Bool+cfoldCorrect :: TP (Proof (Forall "e" Exp -> Forall "env" EL -> SBool))+cfoldCorrect = do+   mnn   <- recall measureNonNeg+   sc    <- recall simpCorrect+   sqrC  <- recall sqrCong+   sqrH  <- recall sqrHelper+   mulCL <- recall mulCongL+   mulCR <- recall mulCongR+   mulH  <- recall mulHelper++   sInduct "cfoldCorrect"+     (\(Forall @"e" (e :: SE)) (Forall @"env" (env :: E)) -> interpInEnv env (cfold e) .== interpInEnv env e)+     (\e _ -> size e, [proofOf mnn]) $+     \ih e env -> []+       |- [pCase| e of+            Var nm     -> interpInEnv env (cfold e)+                       ?? "case Var"+                       =: interpInEnv env (cfold (sVar nm))+                       =: interpInEnv env (sVar nm)+                       =: interpInEnv env e+                       =: qed++            Con v      -> interpInEnv env (cfold e)+                       ?? "case Con"+                       =: interpInEnv env (cfold (sCon v))+                       =: interpInEnv env (sCon v)+                       =: interpInEnv env e+                       =: qed++            Sqr a      -> interpInEnv env (cfold e)+                       ?? "case Sqr"+                       =: interpInEnv env (cfold (sSqr a))+                       =: interpInEnv env (simplify (sSqr (cfold a)))+                       ?? sc `at` (Inst @"e" (sSqr (cfold a)), Inst @"env" env)+                       =: interpInEnv env (sSqr (cfold a))+                       ?? sqrH `at` (Inst @"env" env, Inst @"a" (cfold a))+                       =: interpInEnv env (cfold a) * interpInEnv env (cfold a)+                       ?? ih `at` (Inst @"e" a, Inst @"env" env)+                       ?? sqrC `at` (Inst @"a" (interpInEnv env (cfold a)), Inst @"b" (interpInEnv env a))+                       =: interpInEnv env a * interpInEnv env a+                       ?? sqrH `at` (Inst @"env" env, Inst @"a" a)+                       =: interpInEnv env (sSqr a)+                       =: interpInEnv env e+                       =: qed++            Inc a      -> interpInEnv env (cfold e)+                       ?? "case Inc"+                       =: interpInEnv env (cfold (sInc a))+                       =: interpInEnv env (simplify (sInc (cfold a)))+                       ?? sc `at` (Inst @"e" (sInc (cfold a)), Inst @"env" env)+                       =: interpInEnv env (sInc (cfold a))+                       ?? ih `at` (Inst @"e" a, Inst @"env" env)+                       =: interpInEnv env (sInc a)+                       =: interpInEnv env e+                       =: qed++            Add a b    -> interpInEnv env (cfold e)+                       ?? "case Add"+                       =: interpInEnv env (cfold (sAdd a b))+                       =: interpInEnv env (simplify (sAdd (cfold a) (cfold b)))+                       ?? sc `at` (Inst @"e" (sAdd (cfold a) (cfold b)), Inst @"env" env)+                       =: interpInEnv env (sAdd (cfold a) (cfold b))+                       ?? ih `at` (Inst @"e" a, Inst @"env" env)+                       ?? ih `at` (Inst @"e" b, Inst @"env" env)+                       =: interpInEnv env (sAdd a b)+                       =: interpInEnv env e+                       =: qed++            Mul a b    -> interpInEnv env (cfold e)+                       ?? "case Mul"+                       =: interpInEnv env (cfold (sMul a b))+                       =: interpInEnv env (simplify (sMul (cfold a) (cfold b)))+                       ?? sc `at` (Inst @"e" (sMul (cfold a) (cfold b)), Inst @"env" env)+                       =: interpInEnv env (sMul (cfold a) (cfold b))+                       ?? mulH `at` (Inst @"env" env, Inst @"a" (cfold a), Inst @"b" (cfold b))+                       =: interpInEnv env (cfold a) * interpInEnv env (cfold b)+                       ?? ih `at` (Inst @"e" a, Inst @"env" env)+                       ?? mulCL `at` (Inst @"a" (interpInEnv env (cfold a)), Inst @"b" (interpInEnv env a), Inst @"c" (interpInEnv env (cfold b)))+                       =: interpInEnv env a * interpInEnv env (cfold b)+                       ?? ih `at` (Inst @"e" b, Inst @"env" env)+                       ?? mulCR `at` (Inst @"a" (interpInEnv env a), Inst @"b" (interpInEnv env (cfold b)), Inst @"c" (interpInEnv env b))+                       =: interpInEnv env a * interpInEnv env b+                       ?? mulH `at` (Inst @"env" env, Inst @"a" a, Inst @"b" b)+                       =: interpInEnv env (sMul a b)+                       =: interpInEnv env e+                       =: qed++            Let nm a b -> interpInEnv env (cfold e)+                       ?? "case Let"+                       =: interpInEnv env (cfold (sLet nm a b))+                       =: interpInEnv env (simplify (sLet nm (cfold a) (cfold b)))+                       ?? sc `at` (Inst @"e" (sLet nm (cfold a) (cfold b)), Inst @"env" env)+                       =: interpInEnv env (sLet nm (cfold a) (cfold b))+                       ?? ih `at` (Inst @"e" a, Inst @"env" env)+                       ?? ih `at` (Inst @"e" b, Inst @"env" (ST.tuple (nm, interpInEnv env a) .: env))+                       =: interpInEnv env (sLet nm a b)+                       =: interpInEnv env e+                       =: qed+          |]++{-# ANN simpCorrect  ("HLint: ignore Evaluate" :: String) #-}+{-# ANN cfoldCorrect ("HLint: ignore Evaluate" :: String) #-}
+ Documentation/SBV/Examples/TP/Countdown.hs view
@@ -0,0 +1,135 @@+-----------------------------------------------------------------------------+-- |+-- Module    : Documentation.SBV.Examples.TP.Countdown+-- Copyright : (c) Levent Erkok+-- License   : BSD3+-- Maintainer: erkokl@gmail.com+-- Stability : experimental+--+-- Proving properties of a countdown function that builds a list+-- from @n@ down to @0@.+-----------------------------------------------------------------------------++{-# LANGUAGE CPP                 #-}+{-# LANGUAGE DataKinds           #-}+{-# LANGUAGE QuasiQuotes         #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions    #-}+{-# LANGUAGE TypeApplications    #-}++{-# OPTIONS_GHC -Wall -Werror #-}++module Documentation.SBV.Examples.TP.Countdown where++import Prelude hiding (head, length, (!!))++import Data.SBV+import Data.SBV.List+import Data.SBV.TP++#ifdef DOCTEST+-- $setup+-- >>> import Data.SBV.TP+#endif++-- * Definitions++-- | A function that counts down from @n@ to @0@, building a list.+countdown :: SInteger -> SList Integer+countdown = smtFunction "countdown"+          $ \n -> [sCase| n of+                     v | v .<= 0 -> singleton 0+                       | True    -> v .: countdown (v - 1)+                  |]++-- * Correctness++-- | Prove that @countdown n@ always starts with @n@, for positive @n@.+--+-- >>> runTP countdownHead+-- Lemma: countdownHead    Q.E.D.+-- Functions proven terminating: countdown+-- [Proven] countdownHead :: Ɐn ∷ Integer → Bool+countdownHead :: TP (Proof (Forall "n" Integer -> SBool))+countdownHead = lemma "countdownHead" (\(Forall @"n" n) -> n .> 0 .=> head (countdown n) .== n) []++-- | Prove by induction that @countdown n@ is never empty.+--+-- >>> runTP countdownNonEmpty+-- Inductive lemma: countdownNonEmpty+--   Step: Base                          Q.E.D.+--   Step: 1                             Q.E.D.+--   Step: 2                             Q.E.D.+--   Result:                             Q.E.D.+-- Functions proven terminating: countdown+-- [Proven] countdownNonEmpty :: Ɐn ∷ Integer → Bool+countdownNonEmpty :: TP (Proof (Forall "n" Integer -> SBool))+countdownNonEmpty =+   induct "countdownNonEmpty"+          (\(Forall @"n" n) -> n .>= 0 .=> length (countdown n) .> 0) $+          \ih n -> [n .>= 0] |- length (countdown (n + 1))+                             =: length ((n + 1) .: countdown n)+                             ?? ih+                             =: 1 + length (countdown n)+                             =: qed++-- | Prove by induction that @countdown n@ has length @n + 1@.+--+-- >>> runTP countdownLen+-- Inductive lemma: countdownLen+--   Step: Base                     Q.E.D.+--   Step: 1                        Q.E.D.+--   Step: 2                        Q.E.D.+--   Step: 3                        Q.E.D.+--   Result:                        Q.E.D.+-- Functions proven terminating: countdown+-- [Proven] countdownLen :: Ɐn ∷ Integer → Bool+countdownLen :: TP (Proof (Forall "n" Integer -> SBool))+countdownLen =+   induct "countdownLen"+          (\(Forall @"n" n) -> n .>= 0 .=> length (countdown n) .== n + 1) $+          \ih n -> [n .>= 0] |- length (countdown (n + 1))+                             =: length ((n + 1) .: countdown n)+                             =: 1 + length (countdown n)+                             ?? ih+                             =: n + 2+                             =: qed++-- | Prove by induction that the @k@-th element of @countdown n@ is @n - k@.+--+-- The key subtlety is that the 'induct' Result step only has access to the calc chain+-- equalities, not to the helper proofs (which live inside each step's assertion stack).+-- The Result step must prove @P(n+1, k)@ for all valid @k@, i.e., @0 <= k <= n+1@.+-- If the intros only cover @k <= n@, the Result step has no information for @k = n+1@+-- and hangs. The fix is to use intros @[n >= 0, 0 <= k, k <= n+1]@ so the calc chain+-- covers the entire domain of the goal.+--+-- >>> runTP countdownElem+-- Lemma: countdownLen               Q.E.D.+-- Lemma: elemOne                    Q.E.D.+-- Inductive lemma: countdownElem+--   Step: Base                      Q.E.D.+--   Step: 1                         Q.E.D.+--   Step: 2                         Q.E.D.+--   Result:                         Q.E.D.+-- Functions proven terminating: countdown+-- [Proven] countdownElem :: Ɐn ∷ Integer → Ɐk ∷ Integer → Bool+countdownElem :: TP (Proof (Forall "n" Integer -> Forall "k" Integer -> SBool))+countdownElem = do+   cLen <- recall countdownLen++   -- NB. The precondition uses (<=) not (<): this is important so the lemma covers+   -- k = length y (the last valid index of x .: y), not just k < length y.+   elemOne <- lemma "elemOne" (\(Forall @"x" (x :: SInteger)) (Forall @"y" y) (Forall @"k" k) ->+                                   k .> 0 .&& k .<= length y .=> (x .: y) !! k .== y !! (k - 1)) []++   induct "countdownElem"+          (\(Forall @"n" n) (Forall @"k" k) -> 0 .<= k .&& k .<= n .=> countdown n !! k .== n - k) $+          \ih n k -> [n .>= 0, 0 .<= k, k .<= n + 1]+                  |- countdown (n + 1) !! k+                  =: ((n + 1) .: countdown n) !! k+                  ?? elemOne+                  ?? cLen+                  ?? ih `at` Inst @"k" (k - 1)+                  =: n + 1 - k+                  =: qed
Documentation/SBV/Examples/TP/Fibonacci.hs view
@@ -10,10 +10,9 @@ -- version are equivalent. ----------------------------------------------------------------------------- -{-# LANGUAGE DataKinds           #-}-{-# LANGUAGE TypeAbstractions    #-}-{-# LANGUAGE TypeApplications    #-}-{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE DataKinds        #-}+{-# LANGUAGE QuasiQuotes      #-}+{-# LANGUAGE TypeApplications #-}  {-# OPTIONS_GHC -Wall -Werror #-} @@ -26,13 +25,19 @@  -- | Calculate fibonacci using the textbook definition. fibonacci :: SInteger -> SInteger-fibonacci = smtFunction "fibonacci" $ \n -> ite (n .<= 1) 1 (fibonacci (n-1) + fibonacci (n-2))+fibonacci = smtFunction "fibonacci" $ \n -> [sCase| n of+                                               _ | n .<= 1 -> 1+                                               _           -> fibonacci (n-1) + fibonacci (n-2)+                                            |]  -- * Tail recursive version  -- | Tail recursive version fib :: SInteger -> SInteger -> SInteger -> SInteger-fib = smtFunction "fib" $ \a b n -> ite (n .<= 0) a (fib b (a+b) (n-1))+fib = smtFunction "fib" $ \a b n -> [sCase| n of+                                       _ | n .<= 0 -> a+                                       _           -> fib b (a+b) (n-1)+                                    |]  -- | Faster version of fibonacci, using the tail-recursive version. fibTail :: SInteger -> SInteger@@ -40,21 +45,22 @@  -- * Correctness --- | Proving the the tail version of fibonacci is equivalent to the textbook version.+-- | Proving the tail recursive version of fibonacci is equivalent to the textbook version. -- -- We have: -- -- >>> correctness -- Inductive lemma: helper---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2 (unfold fibonacci)            Q.E.D.---   Step: 3                               Q.E.D.---   Result:                               Q.E.D.+--   Step: Base                    Q.E.D.+--   Step: 1                       Q.E.D.+--   Step: 2 (unfold fibonacci)    Q.E.D.+--   Step: 3                       Q.E.D.+--   Result:                       Q.E.D. -- Lemma: fibCorrect---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Result:                               Q.E.D.+--   Step: 1                       Q.E.D.+--   Step: 2                       Q.E.D.+--   Result:                       Q.E.D.+-- Functions proven terminating: fib, fibonacci -- [Proven] fibCorrect :: Ɐn ∷ Integer → Bool correctness :: IO (Proof (Forall "n" Integer -> SBool)) correctness = runTP $ do
Documentation/SBV/Examples/TP/GCD.hs view
@@ -16,6 +16,7 @@  {-# LANGUAGE CPP              #-} {-# LANGUAGE DataKinds        #-}+{-# LANGUAGE QuasiQuotes      #-} {-# LANGUAGE TypeAbstractions #-} {-# LANGUAGE TypeApplications #-} @@ -31,6 +32,7 @@  #ifdef DOCTEST -- $setup+-- >>> import Data.SBV -- >>> import Data.SBV.TP #endif @@ -44,7 +46,10 @@ -- there is no greatest common divisor for the pair @(0, 0)@. So, maximality here is meant -- to be in terms of divisibility. That is, any divisor of @a@ and @b@ will also divide their @gcd@. nGCD :: SInteger -> SInteger -> SInteger-nGCD = smtFunction "nGCD" $ \a b -> ite (b .== 0) a (nGCD b (a `sEMod` b))+nGCD = smtFunction "nGCD" $ \a b -> [sCase| b of+                                       _ | b .== 0 -> a+                                       _           -> nGCD b (a `sEMod` b)+                                    |]  -- | Generalized GCD, working for all integers. We simply call @nGCD@ with the absolute value of the arguments. gcd :: SInteger -> SInteger -> SInteger@@ -57,21 +62,22 @@ -- ==== __Proof__ -- >>> runTP gcdNonNegative -- Inductive lemma (strong): nonNegativeNGCD---   Step: Measure is non-negative         Q.E.D.+--   Step: Measure is non-negative              Q.E.D. --   Step: 1 (2 way case split)---     Step: 1.1                           Q.E.D.---     Step: 1.2.1                         Q.E.D.---     Step: 1.2.2                         Q.E.D.---     Step: 1.Completeness                Q.E.D.---   Result:                               Q.E.D.--- Lemma: nonNegative                      Q.E.D.+--     Step: 1.1                                Q.E.D.+--     Step: 1.2.1                              Q.E.D.+--     Step: 1.2.2                              Q.E.D.+--     Step: 1.Completeness                     Q.E.D.+--   Result:                                    Q.E.D.+-- Lemma: nonNegative                           Q.E.D.+-- Functions proven terminating: nGCD -- [Proven] nonNegative :: Ɐa ∷ Integer → Ɐb ∷ Integer → Bool gcdNonNegative :: TP (Proof (Forall "a" Integer -> Forall "b" Integer -> SBool)) gcdNonNegative = do      -- We first prove over nGCD, using strong induction with the measure @a+b@.      nn <- sInduct "nonNegativeNGCD"                    (\(Forall a) (Forall b) -> a .>= 0 .&& b .>= 0 .=> nGCD a b .>= 0)-                   (\_a b -> b) $+                   (\_a b -> b, []) $                    \ih a b -> [a .>= 0, b .>= 0]                            |- cases [ b .== 0 ==> trivial                                     , b ./= 0 ==> nGCD a b .>= 0@@ -90,14 +96,15 @@ -- ==== __Proof__ -- >>> runTP gcdZero -- Inductive lemma (strong): nGCDZero---   Step: Measure is non-negative         Q.E.D.+--   Step: Measure is non-negative       Q.E.D. --   Step: 1 (2 way case split)---     Step: 1.1                           Q.E.D.---     Step: 1.2.1                         Q.E.D.---     Step: 1.2.2                         Q.E.D.---     Step: 1.Completeness                Q.E.D.---   Result:                               Q.E.D.--- Lemma: gcdZero                          Q.E.D.+--     Step: 1.1                         Q.E.D.+--     Step: 1.2.1                       Q.E.D.+--     Step: 1.2.2                       Q.E.D.+--     Step: 1.Completeness              Q.E.D.+--   Result:                             Q.E.D.+-- Lemma: gcdZero                        Q.E.D.+-- Functions proven terminating: nGCD -- [Proven] gcdZero :: Ɐa ∷ Integer → Ɐb ∷ Integer → Bool gcdZero :: TP (Proof (Forall "a" Integer -> Forall "b" Integer -> SBool)) gcdZero = do@@ -106,7 +113,7 @@   nGCDZero <-     sInduct "nGCDZero"             (\(Forall @"a" a) (Forall @"b" b) -> a .>= 0 .&& b .>= 0 .&& nGCD a b .== 0 .=> a .== 0 .&& b .== 0)-            (\_a b -> b) $+            (\_a b -> b, []) $             \ih a b -> [a .>= 0, b .>= 0]                     |- (nGCD a b .== 0 .=> a .== 0 .&& b .== 0)                     =: cases [ b .== 0 ==> trivial@@ -117,7 +124,7 @@                              ]    lemma "gcdZero"-        (\(Forall @"a" a) (Forall @"b" b) -> gcd a b .== 0 .=> a .== 0 .&& b .== 0) +        (\(Forall @"a" a) (Forall @"b" b) -> gcd a b .== 0 .=> a .== 0 .&& b .== 0)         [proofOf nGCDZero]  -- | \(\gcd\, a\ b=\gcd\, b\ a\)@@ -125,11 +132,13 @@ -- ==== __Proof__ -- >>> runTP commutative -- Lemma: nGCDCommutative---   Step: 1                               Q.E.D.---   Result:                               Q.E.D.+--   Step: 1                 Q.E.D.+--   Result:                 Q.E.D. -- Lemma: commutative---   Step: 1                               Q.E.D.---   Result:                               Q.E.D.+--   Step: 1                 Q.E.D.+--   Step: 2                 Q.E.D.+--   Result:                 Q.E.D.+-- Functions proven terminating: nGCD -- [Proven] commutative :: Ɐa ∷ Integer → Ɐb ∷ Integer → Bool commutative :: TP (Proof (Forall "a" Integer -> Forall "b" Integer -> SBool)) commutative = do@@ -148,7 +157,8 @@     calc "commutative"           (\(Forall a) (Forall b) -> gcd a b .== gcd b a) $           \a b -> [] |- gcd a b-                     ?? nGCDComm+                     =: nGCD (abs a) (abs b)+                     ?? nGCDComm `at` (Inst @"a" (abs a), Inst @"b" (abs b))                      =: gcd b a                      =: qed @@ -156,7 +166,8 @@ -- -- ==== __Proof__ -- >>> runTP negGCD--- Lemma: negGCD                           Q.E.D.+-- Lemma: negGCD       Q.E.D.+-- Functions proven terminating: nGCD -- [Proven] negGCD :: Ɐa ∷ Integer → Ɐb ∷ Integer → Bool negGCD :: TP (Proof (Forall "a" Integer -> Forall "b" Integer -> SBool)) negGCD = lemma "negGCD" (\(Forall a) (Forall b) -> let g = gcd a b in gcd (-a) b .== g .&& g .== gcd a (-b)) []@@ -165,10 +176,11 @@ -- -- ==== __Proof__ -- >>> runTP zeroGCD--- Lemma: negGCD                           Q.E.D.--- [Proven] negGCD :: Ɐa ∷ Integer → Bool+-- Lemma: zeroGCD      Q.E.D.+-- Functions proven terminating: nGCD+-- [Proven] zeroGCD :: Ɐa ∷ Integer → Bool zeroGCD :: TP (Proof (Forall "a" Integer -> SBool))-zeroGCD = lemma "negGCD" (\(Forall a) -> gcd a 0 .== gcd 0 a .&& gcd 0 a .== abs a .&& gcd 0 0 .== 0) []+zeroGCD = lemma "zeroGCD" (\(Forall a) -> gcd a 0 .== gcd 0 a .&& gcd 0 a .== abs a .&& gcd 0 0 .== 0) []  -- * Even and odd @@ -182,62 +194,21 @@  -- * Divisibility --- | Divides relation. By definition we @0@ only divides @0@. (But every number divides @0@).+-- | Divides relation. By definition @0@ only divides @0@. (But every number divides @0@). dvd :: SInteger -> SInteger -> SBool a `dvd` b = ite (a .== 0) (b .== 0) (b `sEMod` a .== 0) --- | \(a \mid |b| \iff a \mid b\)------ A number divides another exactly when it also divides its absolute value. While this property--- seems obvious, I was unable to get z3 to prove it. Even CVC5 needs a bit of help to guide it through--- the case split on @b@.------ ==== __Proof__--- >>> runTP dvdAbs--- Lemma: dvdAbs_l2r---   Step: 1 (2 way case split)---     Step: 1.1                           Q.E.D.---     Step: 1.2                           Q.E.D.---     Step: 1.Completeness                Q.E.D.---   Result:                               Q.E.D.--- Lemma: dvdAbs_r2l---   Step: 1 (2 way case split)---     Step: 1.1                           Q.E.D.---     Step: 1.2                           Q.E.D.---     Step: 1.Completeness                Q.E.D.---   Result:                               Q.E.D.--- Lemma: dvdAbs                           Q.E.D.--- [Proven] dvdAbs :: Ɐa ∷ Integer → Ɐb ∷ Integer → Bool-dvdAbs :: TP (Proof (Forall "a" Integer -> Forall "b" Integer -> SBool))-dvdAbs = do-   l2r <- calcWith cvc5 "dvdAbs_l2r"-                   (\(Forall @"a" a) (Forall @"b" b) -> a `dvd` abs b .=> a `dvd` b) $-                   \a b -> [a `dvd` abs b]-                        |- cases [ b .<  0 ==> sTrue =: qed-                                 , b .>= 0 ==> sTrue =: qed-                                 ]--   r2l <- calcWith cvc5 "dvdAbs_r2l"-                   (\(Forall @"a" a) (Forall @"b" b) -> a `dvd` b .=> a `dvd` abs b) $-                   \a b -> [a `dvd` b]-                        |- cases [ b .<  0 ==> sTrue =: qed-                                 , b .>= 0 ==> sTrue =: qed-                                 ]--   lemma "dvdAbs"-         (\(Forall @"a" a) (Forall @"b" b) -> a `dvd` b .== a `dvd` abs b)-         [proofOf l2r, proofOf r2l]- -- | \(d \mid a \implies d \mid ka\) -- -- ==== __Proof__ -- >>> runTP dvdMul -- Lemma: dvdMul --   Step: 1 (2 way case split)---     Step: 1.1                           Q.E.D.---     Step: 1.2                           Q.E.D.---     Step: 1.Completeness                Q.E.D.---   Result:                               Q.E.D.+--     Step: 1.1               Q.E.D.+--     Step: 1.2.1             Q.E.D.+--     Step: 1.2.2             Q.E.D.+--     Step: 1.Completeness    Q.E.D.+--   Result:                   Q.E.D. -- [Proven] dvdMul :: Ɐd ∷ Integer → Ɐa ∷ Integer → Ɐk ∷ Integer → Bool dvdMul :: TP (Proof (Forall "d" Integer -> Forall "a" Integer -> Forall "k" Integer -> SBool)) dvdMul = calc "dvdMul"@@ -248,22 +219,79 @@                                          =: sTrue                                          =: qed                               , d ./= 0 ==> d `dvd` (k*a)+                                         =: (k*a) `sEMod` d .== 0                                          ?? a .== d * a `sEDiv` d-                                         =: d `dvd` (k * d * a `sEDiv` d)+                                         ?? k * a .== d * (k * a `sEDiv` d)+                                         ?? (d * (k * a `sEDiv` d)) `sEMod` d .== 0+                                         =: sTrue                                          =: qed                               ] +-- | \(a \mid |b| \iff a \mid b\)+--+-- A number divides another exactly when it also divides its absolute value. This follows+-- from 'dvdMul', as both directions are an instance of multiplying by @-1@.+--+-- ==== __Proof__+-- >>> runTP dvdAbs+-- Lemma: dvdMul               Q.E.D.+-- Lemma: dvdAbs_l2r+--   Step: 1 (2 way case split)+--     Step: 1.1               Q.E.D.+--     Step: 1.2               Q.E.D.+--     Step: 1.Completeness    Q.E.D.+--   Result:                   Q.E.D.+-- Lemma: dvdAbs_r2l+--   Step: 1 (2 way case split)+--     Step: 1.1               Q.E.D.+--     Step: 1.2               Q.E.D.+--     Step: 1.Completeness    Q.E.D.+--   Result:                   Q.E.D.+-- Lemma: dvdAbs               Q.E.D.+-- [Proven] dvdAbs :: Ɐa ∷ Integer → Ɐb ∷ Integer → Bool+dvdAbs :: TP (Proof (Forall "a" Integer -> Forall "b" Integer -> SBool))+dvdAbs = do+   dM <- recall dvdMul++   l2r <- calc "dvdAbs_l2r"+               (\(Forall @"a" a) (Forall @"b" b) -> a `dvd` abs b .=> a `dvd` b) $+               \a b -> [a `dvd` abs b]+                    |- cases [ b .>= 0 ==> a `dvd` b+                                        =: sTrue+                                        =: qed+                             , b .<  0 ==> a `dvd` b+                                        ?? dM `at` (Inst @"d" a, Inst @"a" (abs b), Inst @"k" (-1))+                                        =: sTrue+                                        =: qed+                             ]++   r2l <- calc "dvdAbs_r2l"+               (\(Forall @"a" a) (Forall @"b" b) -> a `dvd` b .=> a `dvd` abs b) $+               \a b -> [a `dvd` b]+                    |- cases [ b .>= 0 ==> a `dvd` abs b+                                        =: sTrue+                                        =: qed+                             , b .<  0 ==> a `dvd` abs b+                                        ?? dM `at` (Inst @"d" a, Inst @"a" b, Inst @"k" (-1))+                                        =: sTrue+                                        =: qed+                             ]++   lemma "dvdAbs"+         (\(Forall @"a" a) (Forall @"b" b) -> a `dvd` b .== a `dvd` abs b)+         [proofOf l2r, proofOf r2l]+ -- | \(d \mid (2a + 1) \implies \mathrm{isOdd}(d)\) -- -- ==== __Proof__ -- >>> runTP dvdOddThenOdd -- Lemma: dvdOddThenOdd --   Step: 1 (2 way case split)---     Step: 1.1                           Q.E.D.---     Step: 1.2.1                         Q.E.D.---     Step: 1.2.2                         Q.E.D.---     Step: 1.Completeness                Q.E.D.---   Result:                               Q.E.D.+--     Step: 1.1               Q.E.D.+--     Step: 1.2.1             Q.E.D.+--     Step: 1.2.2             Q.E.D.+--     Step: 1.Completeness    Q.E.D.+--   Result:                   Q.E.D. -- [Proven] dvdOddThenOdd :: Ɐd ∷ Integer → Ɐa ∷ Integer → Bool dvdOddThenOdd :: TP (Proof (Forall "d" Integer -> Forall "a" Integer -> SBool)) dvdOddThenOdd = calc "dvdOddThenOdd"@@ -280,20 +308,20 @@ -- ==== __Proof__ -- >>> runTP dvdEvenWhenOdd -- Lemma: dvdEvenWhenOdd---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4                               Q.E.D.---   Step: 5                               Q.E.D.---   Step: 6                               Q.E.D.---   Step: 7                               Q.E.D.---   Result:                               Q.E.D.+--   Step: 1                Q.E.D.+--   Step: 2                Q.E.D.+--   Step: 3                Q.E.D.+--   Step: 4                Q.E.D.+--   Step: 5                Q.E.D.+--   Step: 6                Q.E.D.+--   Step: 7                Q.E.D.+--   Result:                Q.E.D. -- [Proven] dvdEvenWhenOdd :: Ɐd ∷ Integer → Ɐa ∷ Integer → Bool dvdEvenWhenOdd :: TP (Proof (Forall "d" Integer -> Forall "a" Integer -> SBool)) dvdEvenWhenOdd = calc "dvdEvenWhenOdd"                       (\(Forall d) (Forall a) -> isOdd d .&& d `dvd` (2*a) .=> d `dvd` a) $                       \d a ->  [isOdd d, d `dvd` (2*a)]-                           |-> let t = (d - 1) `sEDiv` 2+                           |-  let t = (d - 1) `sEDiv` 2                                    m = (2*a)   `sEDiv` d                             in sTrue @@ -306,19 +334,18 @@                             -- Arithmetic gives us                             =: 2*a .== 2*t*m + m .&& 2*(a-t*m) .== m -                            -- So, we now now m is even-                            =: 2 `sDivides` m--                            -- Give that divisor a name:-                            =: let n = m `sEDiv` 2+                            -- So m = 2*(a-t*m), i.e., m is even+                            =: m .== 2 * (a - t*m) -                            -- It follows that 2a = d(2n) = 2(dn)+                            -- Let n = a - t*m, so m = 2n. It follows that 2a = d(2n) = 2(dn)+                            =: let n = a - t*m                             in 2*a .== d * (2 * n) .&& 2 * a .== 2 * (d * n)                              -- From which we can conclude a = dn                             =: a .== d * n                              -- Thus we can deduce d must divide a+                            ?? d `dvd` (d * n)                             =: d `dvd` a                              -- Done!@@ -330,12 +357,12 @@ -- >>> runTP dvdSum1 -- Lemma: dvdSum1 --   Step: 1 (2 way case split)---     Step: 1.1                           Q.E.D.---     Step: 1.2.1                         Q.E.D.---     Step: 1.2.2                         Q.E.D.---     Step: 1.2.3                         Q.E.D.---     Step: 1.Completeness                Q.E.D.---   Result:                               Q.E.D.+--     Step: 1.1               Q.E.D.+--     Step: 1.2.1             Q.E.D.+--     Step: 1.2.2             Q.E.D.+--     Step: 1.2.3             Q.E.D.+--     Step: 1.Completeness    Q.E.D.+--   Result:                   Q.E.D. -- [Proven] dvdSum1 :: Ɐd ∷ Integer → Ɐa ∷ Integer → Ɐb ∷ Integer → Bool dvdSum1 :: TP (Proof (Forall "d" Integer -> Forall "a" Integer -> Forall "b" Integer -> SBool)) dvdSum1 =@@ -356,12 +383,12 @@ -- >>> runTP dvdSum2 -- Lemma: dvdSum2 --   Step: 1 (2 way case split)---     Step: 1.1                           Q.E.D.---     Step: 1.2.1                         Q.E.D.---     Step: 1.2.2                         Q.E.D.---     Step: 1.2.3                         Q.E.D.---     Step: 1.Completeness                Q.E.D.---   Result:                               Q.E.D.+--     Step: 1.1               Q.E.D.+--     Step: 1.2.1             Q.E.D.+--     Step: 1.2.2             Q.E.D.+--     Step: 1.2.3             Q.E.D.+--     Step: 1.Completeness    Q.E.D.+--   Result:                   Q.E.D. -- [Proven] dvdSum2 :: Ɐd ∷ Integer → Ɐa ∷ Integer → Ɐb ∷ Integer → Bool dvdSum2 :: TP (Proof (Forall "d" Integer -> Forall "a" Integer -> Forall "b" Integer -> SBool)) dvdSum2 =@@ -387,24 +414,25 @@ -- -- ==== __Proof__ -- >>> runTP gcdDivides--- Lemma: dvdAbs                           Q.E.D.+-- Lemma: dvdAbs                        Q.E.D. -- Lemma: helper---   Step: 1                               Q.E.D.---   Result:                               Q.E.D.+--   Step: 1                            Q.E.D.+--   Result:                            Q.E.D. -- Inductive lemma (strong): dvdNGCD---   Step: Measure is non-negative         Q.E.D.+--   Step: Measure is non-negative      Q.E.D. --   Step: 1 (2 way case split)---     Step: 1.1                           Q.E.D.---     Step: 1.2.1                         Q.E.D.---     Step: 1.2.2                         Q.E.D.---     Step: 1.Completeness                Q.E.D.---   Result:                               Q.E.D.--- Lemma: gcdDivides                       Q.E.D.+--     Step: 1.1                        Q.E.D.+--     Step: 1.2.1                      Q.E.D.+--     Step: 1.2.2                      Q.E.D.+--     Step: 1.Completeness             Q.E.D.+--   Result:                            Q.E.D.+-- Lemma: gcdDivides                    Q.E.D.+-- Functions proven terminating: nGCD -- [Proven] gcdDivides :: Ɐa ∷ Integer → Ɐb ∷ Integer → Bool gcdDivides :: TP (Proof (Forall "a" Integer -> Forall "b" Integer -> SBool)) gcdDivides = do -   dAbs <- recall "dvdAbs" dvdAbs+   dAbs <- recall dvdAbs     -- Helper about divisibility. If x|b and x| a%b, then x|a.    helper <- calc "helper"@@ -422,7 +450,7 @@    -- Use strong induction to prove divisibility over non-negative numbers.    dNGCD <- sInduct "dvdNGCD"                      (\(Forall @"a" a) (Forall @"b" b) -> a .>= 0 .&& b .>= 0 .=> nGCD a b `dvd` a .&& nGCD a b `dvd` b)-                     (\_a b -> b) $+                     (\_a b -> b, []) $                      \ih a b -> [a .>= 0, b .>= 0]                              |- let g = nGCD a b                              in g `dvd` a .&& g `dvd` b@@ -446,34 +474,39 @@ -- -- ==== __Proof__ -- >>> runTP gcdMaximal--- Lemma: dvdAbs                           Q.E.D.--- Lemma: eDiv                             Q.E.D.+-- Lemma: dvdAbs                         Q.E.D.+-- Lemma: commutative                    Q.E.D.+-- Lemma: eDiv                           Q.E.D. -- Lemma: helper---   Step: 1 (x `dvd` a && x `dvd` b)      Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Result:                               Q.E.D.+--   Step: 1 (x `dvd` a && x `dvd` b)    Q.E.D.+--   Step: 2                             Q.E.D.+--   Step: 3                             Q.E.D.+--   Result:                             Q.E.D. -- Inductive lemma (strong): mNGCD---   Step: Measure is non-negative         Q.E.D.+--   Step: Measure is non-negative       Q.E.D. --   Step: 1 (2 way case split)---     Step: 1.1                           Q.E.D.---     Step: 1.2.1                         Q.E.D.---     Step: 1.2.2                         Q.E.D.---     Step: 1.Completeness                Q.E.D.---   Result:                               Q.E.D.+--     Step: 1.1                         Q.E.D.+--     Step: 1.2.1                       Q.E.D.+--     Step: 1.2.2                       Q.E.D.+--     Step: 1.Completeness              Q.E.D.+--   Result:                             Q.E.D. -- Lemma: gcdMaximal --   Step: 1 (2 way case split)---     Step: 1.1.1                         Q.E.D.---     Step: 1.1.2                         Q.E.D.---     Step: 1.2.1                         Q.E.D.---     Step: 1.2.2                         Q.E.D.---     Step: 1.Completeness                Q.E.D.---   Result:                               Q.E.D.+--     Step: 1.1.1                       Q.E.D.+--     Step: 1.1.2                       Q.E.D.+--     Step: 1.2.1                       Q.E.D.+--     Step: 1.2.2                       Q.E.D.+--     Step: 1.2.3                       Q.E.D.+--     Step: 1.2.4                       Q.E.D.+--     Step: 1.Completeness              Q.E.D.+--   Result:                             Q.E.D.+-- Functions proven terminating: nGCD -- [Proven] gcdMaximal :: Ɐa ∷ Integer → Ɐb ∷ Integer → Ɐx ∷ Integer → Bool gcdMaximal :: TP (Proof (Forall "a" Integer -> Forall "b" Integer -> Forall "x" Integer -> SBool)) gcdMaximal = do -   dAbs  <- recall "dvdAbs" dvdAbs+   dAbs <- recall dvdAbs+   comm <- recall commutative     eDiv <- lemma "eDiv"                  (\(Forall @"x" x) (Forall @"y" y) -> y ./= 0 .=> x .== (x `sEDiv` y) * y + x `sEMod` y)@@ -501,7 +534,7 @@    mNGCD <- sInduct "mNGCD"                     (\(Forall @"a" a) (Forall @"b" b) (Forall @"x" x) ->                           a .>= 0 .&& b .>= 0 .&& x `dvd` a .&& x `dvd` b .=> x `dvd` nGCD a b)-                    (\_a b _x -> b) $+                    (\_a b _x -> b, []) $                     \ih a b x -> let g = nGCD a b                               in [a .>= 0, b .>= 0, x `dvd` a .&& x `dvd` b]                               |- x `dvd` g@@ -524,7 +557,10 @@                                            ?? dAbs     `at` (Inst @"a" x, Inst @"b" b)                                            =: sTrue                                            =: qed-                        , abs a .<  abs b ==> x `dvd` nGCD (abs b) (abs a)+                        , abs a .<  abs b ==> x `dvd` gcd a b+                                           ?? comm `at` (Inst @"a" a, Inst @"b" b)+                                           =: x `dvd` gcd b a+                                           =: x `dvd` nGCD (abs b) (abs a)                                            ?? mNGCD    `at` (Inst @"a" (abs b), Inst @"b" (abs a), Inst @"x" x)                                            ?? dAbs     `at` (Inst @"a" x, Inst @"b" a)                                            ?? dAbs     `at` (Inst @"a" x, Inst @"b" b)@@ -538,17 +574,18 @@ -- -- ==== __Proof__ -- >>> runTP gcdCorrect--- Lemma: gcdDivides                       Q.E.D.--- Lemma: gcdMaximal                       Q.E.D.+-- Lemma: gcdDivides                     Q.E.D.+-- Lemma: gcdMaximal                     Q.E.D. -- Lemma: gcdCorrect---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Result:                               Q.E.D.+--   Step: 1                             Q.E.D.+--   Step: 2                             Q.E.D.+--   Result:                             Q.E.D.+-- Functions proven terminating: nGCD -- [Proven] gcdCorrect :: Ɐa ∷ Integer → Ɐb ∷ Integer → Bool gcdCorrect :: TP (Proof (Forall "a" Integer -> Forall "b" Integer -> SBool)) gcdCorrect = do-  divides <- recall "gcdDivides" gcdDivides-  maximal <- recall "gcdMaximal" gcdMaximal+  divides <- recall gcdDivides+  maximal <- recall gcdMaximal    calc "gcdCorrect"        (\(Forall a) (Forall b) ->@@ -576,19 +613,20 @@ -- -- ==== __Proof__ -- >>> runTP gcdLargest--- Lemma: gcdMaximal                       Q.E.D.--- Lemma: gcdZero                          Q.E.D.--- Lemma: gcdNonNegative                   Q.E.D.+-- Lemma: gcdMaximal                            Q.E.D.+-- Lemma: gcdZero                               Q.E.D.+-- Lemma: nonNegative                           Q.E.D. -- Lemma: gcdLargest---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Result:                               Q.E.D.+--   Step: 1                                    Q.E.D.+--   Step: 2                                    Q.E.D.+--   Result:                                    Q.E.D.+-- Functions proven terminating: nGCD -- [Proven] gcdLargest :: Ɐa ∷ Integer → Ɐb ∷ Integer → Ɐx ∷ Integer → Bool gcdLargest :: TP (Proof (Forall "a" Integer -> Forall "b" Integer -> Forall "x" Integer -> SBool)) gcdLargest = do-   maximal <- recall "gcdMaximal"     gcdMaximal-   zero    <- recall "gcdZero"        gcdZero-   nn      <- recall "gcdNonNegative" gcdNonNegative+   maximal <- recall gcdMaximal+   gcdZ    <- recall gcdZero+   nn      <- recall gcdNonNegative     calc "gcdLargest"         (\(Forall a) (Forall b) (Forall x) -> (a ./= 0 .|| b ./= 0) .&& x `dvd` a .&& x `dvd` b .=> x .<= gcd a b) $@@ -596,7 +634,7 @@                |- x .<= gcd a b                ?? maximal `at` (Inst @"a" a, Inst @"b" b, Inst @"x" x)                =: (x `dvd` gcd a b .=> x .<= gcd a b)-               ?? zero  `at` (Inst @"a" a, Inst @"b" b)+               ?? gcdZ  `at` (Inst @"a" a, Inst @"b" b)                ?? nn    `at` (Inst @"a" a, Inst @"b" b)                =: sTrue                =: qed@@ -607,27 +645,28 @@ -- -- ==== __Proof__ -- >>> runTP gcdAdd--- Lemma: dvdSum1                          Q.E.D.--- Lemma: dvdSum2                          Q.E.D.--- Lemma: gcdDivides                       Q.E.D.--- Lemma: gcdLargest                       Q.E.D.+-- Lemma: dvdSum1                               Q.E.D.+-- Lemma: dvdSum2                               Q.E.D.+-- Lemma: gcdDivides                            Q.E.D.+-- Lemma: gcdLargest                            Q.E.D. -- Lemma: gcdAdd---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4                               Q.E.D.---   Step: 5                               Q.E.D.---   Step: 6                               Q.E.D.---   Step: 7                               Q.E.D.---   Result:                               Q.E.D.+--   Step: 1                                    Q.E.D.+--   Step: 2                                    Q.E.D.+--   Step: 3                                    Q.E.D.+--   Step: 4                                    Q.E.D.+--   Step: 5                                    Q.E.D.+--   Step: 6                                    Q.E.D.+--   Step: 7                                    Q.E.D.+--   Result:                                    Q.E.D.+-- Functions proven terminating: nGCD -- [Proven] gcdAdd :: Ɐa ∷ Integer → Ɐb ∷ Integer → Bool gcdAdd :: TP (Proof (Forall "a" Integer -> Forall "b" Integer -> SBool)) gcdAdd = do -   dSum1   <- recall "dvdSum1"    dvdSum1-   dSum2   <- recall "dvdSum2"    dvdSum2-   divides <- recall "gcdDivides" gcdDivides-   largest <- recall "gcdLargest" gcdLargest+   dSum1   <- recall dvdSum1+   dSum2   <- recall dvdSum2+   divides <- recall gcdDivides+   largest <- recall gcdLargest     calc "gcdAdd"         (\(Forall @"a" a) (Forall @"b" b) -> gcd a b .== gcd (a + b) b) $@@ -667,34 +706,50 @@ -- -- ==== __Proof__ -- >>> runTP gcdEvenEven--- Lemma: modEE                            Q.E.D.+-- Lemma: red2                               Q.E.D.+-- Lemma: modEE+--   Step: 1                                 Q.E.D.+--   Step: 2                                 Q.E.D.+--   Step: 3                                 Q.E.D.+--   Result:                                 Q.E.D. -- Inductive lemma (strong): nGCDEvenEven---   Step: Measure is non-negative         Q.E.D.+--   Step: Measure is non-negative           Q.E.D. --   Step: 1 (2 way case split)---     Step: 1.1                           Q.E.D.---     Step: 1.2.1                         Q.E.D.---     Step: 1.2.2                         Q.E.D.---     Step: 1.2.3                         Q.E.D.---     Step: 1.2.4                         Q.E.D.---     Step: 1.Completeness                Q.E.D.---   Result:                               Q.E.D.+--     Step: 1.1                             Q.E.D.+--     Step: 1.2.1                           Q.E.D.+--     Step: 1.2.2                           Q.E.D.+--     Step: 1.2.3                           Q.E.D.+--     Step: 1.2.4                           Q.E.D.+--     Step: 1.Completeness                  Q.E.D.+--   Result:                                 Q.E.D. -- Lemma: gcdEvenEven---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4                               Q.E.D.---   Result:                               Q.E.D.+--   Step: 1                                 Q.E.D.+--   Step: 2                                 Q.E.D.+--   Step: 3                                 Q.E.D.+--   Step: 4                                 Q.E.D.+--   Result:                                 Q.E.D.+-- Functions proven terminating: nGCD -- [Proven] gcdEvenEven :: Ɐa ∷ Integer → Ɐb ∷ Integer → Bool gcdEvenEven :: TP (Proof (Forall "a" Integer -> Forall "b" Integer -> SBool)) gcdEvenEven = do -   modEE <- lemma "modEE"-                  (\(Forall @"a" a) (Forall @"b" b) -> b ./= 0 .=> (2 * a) `sEMod` (2 * b) .== 2 * (a `sEMod` b))+   red2  <- lemmaWith z3 "red2"+                  (\(Forall @"a" a) (Forall @"b" b) -> b ./= 0 .=> (2*a) `sEDiv` (2*b) .== a `sEDiv` b)                   [] +   modEE <- calcWith cvc5 "modEE"+                 (\(Forall @"a" a) (Forall @"b" b) -> b ./= 0 .=> (2*a) `sEMod` (2*b) .== 2 * (a `sEMod` b)) $+                 \a b -> [b ./= 0]+                      |- (2*a) `sEMod` (2*b)+                      ?? red2 `at` (Inst @"a" a, Inst @"b" b)+                      =: 2*a - 2*b * (a `sEDiv` b)+                      =: 2 * (a - b * (a `sEDiv` b))+                      =: 2 * (a `sEMod` b)+                      =: qed+    nGCDEvenEven <- sInduct "nGCDEvenEven"                            (\(Forall @"a" a) (Forall @"b" b) -> a .>= 0 .&& b .>= 0 .=> nGCD (2*a) (2*b) .== 2 * nGCD a b)-                           (\_a b -> b) $+                           (\_a b -> b, []) $                            \ih a b -> [a .>= 0, b .>= 0]                                    |- nGCD (2*a) (2*b)                                    =: cases [ b .== 0 ==> trivial@@ -721,30 +776,31 @@ -- -- ==== __Proof__ -- >>> runTP gcdOddEven--- Lemma: gcdDivides                       Q.E.D.--- Lemma: gcdLargest                       Q.E.D.--- Lemma: dvdMul                           Q.E.D.--- Lemma: dvdOddThenOdd                    Q.E.D.--- Lemma: dvdEvenWhenOdd                   Q.E.D.+-- Lemma: gcdDivides                            Q.E.D.+-- Lemma: gcdLargest                            Q.E.D.+-- Lemma: dvdMul                                Q.E.D. [Cached]+-- Lemma: dvdOddThenOdd                         Q.E.D.+-- Lemma: dvdEvenWhenOdd                        Q.E.D. -- Lemma: gcdOddEven---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4                               Q.E.D.---   Step: 5                               Q.E.D.---   Step: 6                               Q.E.D.---   Step: 7                               Q.E.D.---   Step: 8                               Q.E.D.---   Result:                               Q.E.D.+--   Step: 1                                    Q.E.D.+--   Step: 2                                    Q.E.D.+--   Step: 3                                    Q.E.D.+--   Step: 4                                    Q.E.D.+--   Step: 5                                    Q.E.D.+--   Step: 6                                    Q.E.D.+--   Step: 7                                    Q.E.D.+--   Step: 8                                    Q.E.D.+--   Result:                                    Q.E.D.+-- Functions proven terminating: nGCD -- [Proven] gcdOddEven :: Ɐa ∷ Integer → Ɐb ∷ Integer → Bool gcdOddEven :: TP (Proof (Forall "a" Integer -> Forall "b" Integer -> SBool)) gcdOddEven = do -   divides      <- recall "gcdDivides"     gcdDivides-   largest      <- recall "gcdLargest"     gcdLargest-   dMul         <- recall "dvdMul"         dvdMul-   dOddThenOdd  <- recall "dvdOddThenOdd"  dvdOddThenOdd-   dEvenWhenOdd <- recall "dvdEvenWhenOdd" dvdEvenWhenOdd+   divides      <- recall gcdDivides+   largest      <- recall gcdLargest+   dMul         <- recall dvdMul+   dOddThenOdd  <- recall dvdOddThenOdd+   dEvenWhenOdd <- recall dvdEvenWhenOdd     calc "gcdOddEven"         (\(Forall a) (Forall b) -> gcd (2*a+1) (2*b) .== gcd (2*a+1) b) $@@ -786,15 +842,18 @@  -- * GCD via subtraction --- | @nGCDSub@ is the original verision of Euclid, which uses subtraction instead of modulus. This is the version that+-- | @nGCDSub@ is the original version of Euclid, which uses subtraction instead of modulus. This is the version that -- works on non-negative numbers. It has the precondition that @a >= b >= 0@, and maintains this invariant in each -- recursive call. nGCDSub :: SInteger -> SInteger -> SInteger-nGCDSub = smtFunction "nGCDSub" $ \a b -> ite (a .== b) a-                                        $ ite (a .== 0) b-                                        $ ite (b .== 0) a-                                        $ ite (a .> b)  (nGCDSub (a - b) b)-                                                        (nGCDSub a (b - a))+nGCDSub = smtFunction "nGCDSub"+        $ \a b -> [sCase| a of+                     _ | a .== b -> a+                     _ | a .<= 0 -> b+                     _ | b .<= 0 -> a+                     _ | a .> b  -> nGCDSub (a - b) b+                     _           -> nGCDSub a (b - a)+                  |]  -- | Generalized version of subtraction based GCD, working over all integers. gcdSub :: SInteger -> SInteger -> SInteger@@ -807,41 +866,42 @@ -- -- ==== __Proof__ -- >>> runTP gcdSubEquiv--- Lemma: commutative                      Q.E.D.--- Lemma: gcdAdd                           Q.E.D.+-- Lemma: commutative                           Q.E.D.+-- Lemma: gcdAdd                                Q.E.D. -- Inductive lemma (strong): nGCDSubEquiv---   Step: Measure is non-negative         Q.E.D.+--   Step: Measure is non-negative              Q.E.D. --   Step: 1 (5 way case split)---     Step: 1.1                           Q.E.D.---     Step: 1.2                           Q.E.D.---     Step: 1.3                           Q.E.D.---     Step: 1.4.1                         Q.E.D.---     Step: 1.4.2                         Q.E.D.---     Step: 1.4.3                         Q.E.D.---     Step: 1.5.1                         Q.E.D.---     Step: 1.5.2                         Q.E.D.---     Step: 1.5.3                         Q.E.D.---     Step: 1.5.4                         Q.E.D.---     Step: 1.5.5                         Q.E.D.---     Step: 1.Completeness                Q.E.D.---   Result:                               Q.E.D.+--     Step: 1.1                                Q.E.D.+--     Step: 1.2                                Q.E.D.+--     Step: 1.3                                Q.E.D.+--     Step: 1.4.1                              Q.E.D.+--     Step: 1.4.2                              Q.E.D.+--     Step: 1.4.3                              Q.E.D.+--     Step: 1.5.1                              Q.E.D.+--     Step: 1.5.2                              Q.E.D.+--     Step: 1.5.3                              Q.E.D.+--     Step: 1.5.4                              Q.E.D.+--     Step: 1.5.5                              Q.E.D.+--     Step: 1.Completeness                     Q.E.D.+--   Result:                                    Q.E.D. -- Lemma: gcdSubEquiv---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Result:                               Q.E.D.+--   Step: 1                                    Q.E.D.+--   Step: 2                                    Q.E.D.+--   Step: 3                                    Q.E.D.+--   Result:                                    Q.E.D.+-- Functions proven terminating: nGCD, nGCDSub -- [Proven] gcdSubEquiv :: Ɐa ∷ Integer → Ɐb ∷ Integer → Bool gcdSubEquiv :: TP (Proof (Forall "a" Integer -> Forall "b" Integer -> SBool)) gcdSubEquiv = do     -- We'll be using the commutativity of GCD and the gcdAdd property-   comm <- recall "commutative" commutative-   addG <- recall "gcdAdd"      gcdAdd+   comm <- recall commutative+   addG <- recall gcdAdd     -- First prove over the non-negative numbers:    nEq <- sInduct "nGCDSubEquiv"                   (\(Forall @"a" a) (Forall @"b" b) -> a .>= 0 .&& b .>= 0 .=> nGCDSub a b .== nGCD a b)-                  (\a b -> a + b) $+                  (\a b -> a + b, []) $                   \ih a b -> [a .>= 0, b .>= 0]                           |- nGCDSub a b                           =: cases [ a .== b             ==> nGCD a b =: qed@@ -879,12 +939,15 @@  -- | @nGCDBin@ is the binary GCD algorithm that works on non-negative numbers. nGCDBin :: SInteger -> SInteger -> SInteger-nGCDBin = smtFunction "nGCDBin" $ \a b -> ite (a .== 0)               b-                                        $ ite (b .== 0)               a-                                        $ ite (isEven a .&& isEven b) (2 * nGCDBin (a `sEDiv` 2) (b `sEDiv` 2))-                                        $ ite (isOdd  a .&& isEven b) (    nGCDBin a             (b `sEDiv` 2))-                                        $ ite (a .<= b)               (    nGCDBin a             (b - a))-                                                                      (    nGCDBin (a - b)       b)+nGCDBin = smtFunction "nGCDBin"+        $ \a b -> [sCase| a of+                     _ | a .<= 0               -> b+                     _ | b .<= 0               -> a+                     _ | isEven a .&& isEven b -> 2 * nGCDBin (a `sEDiv` 2) (b `sEDiv` 2)+                     _ | isOdd  a .&& isEven b -> nGCDBin a (b `sEDiv` 2)+                     _ | a .<= b               -> nGCDBin a (b - a)+                     _                         -> nGCDBin (a - b) b+                  |] -- | Generalized version that works on arbitrary integers. gcdBin :: SInteger -> SInteger -> SInteger gcdBin a b = nGCDBin (abs a) (abs b)@@ -896,53 +959,54 @@ -- -- ==== __Proof__ -- >>> runTP gcdBinEquiv--- Lemma: gcdEvenEven                      Q.E.D.--- Lemma: gcdOddEven                       Q.E.D.--- Lemma: gcdAdd                           Q.E.D.--- Lemma: commutative                      Q.E.D.+-- Lemma: gcdEvenEven                           Q.E.D.+-- Lemma: gcdOddEven                            Q.E.D.+-- Lemma: gcdAdd                                Q.E.D.+-- Lemma: commutative                           Q.E.D. [Cached] -- Inductive lemma (strong): nGCDBinEquiv---   Step: Measure is non-negative         Q.E.D.+--   Step: Measure is non-negative              Q.E.D. --   Step: 1 (5 way case split)---     Step: 1.1                           Q.E.D.---     Step: 1.2                           Q.E.D.---     Step: 1.3.1                         Q.E.D.---     Step: 1.3.2                         Q.E.D.---     Step: 1.3.3                         Q.E.D.---     Step: 1.4.1                         Q.E.D.---     Step: 1.4.2                         Q.E.D.---     Step: 1.4.3                         Q.E.D.+--     Step: 1.1                                Q.E.D.+--     Step: 1.2                                Q.E.D.+--     Step: 1.3.1                              Q.E.D.+--     Step: 1.3.2                              Q.E.D.+--     Step: 1.3.3                              Q.E.D.+--     Step: 1.4.1                              Q.E.D.+--     Step: 1.4.2                              Q.E.D.+--     Step: 1.4.3                              Q.E.D. --     Step: 1.5 (3 way case split)---       Step: 1.5.1                       Q.E.D.---       Step: 1.5.2.1                     Q.E.D.---       Step: 1.5.2.2                     Q.E.D.---       Step: 1.5.2.3                     Q.E.D.---       Step: 1.5.2.4                     Q.E.D.---       Step: 1.5.2.5                     Q.E.D.---       Step: 1.5.2.6                     Q.E.D.---       Step: 1.5.3.1                     Q.E.D.---       Step: 1.5.3.2                     Q.E.D.---       Step: 1.5.3.3                     Q.E.D.---       Step: 1.5.3.4                     Q.E.D.---       Step: 1.5.Completeness            Q.E.D.---     Step: 1.Completeness                Q.E.D.---   Result:                               Q.E.D.+--       Step: 1.5.1                            Q.E.D.+--       Step: 1.5.2.1                          Q.E.D.+--       Step: 1.5.2.2                          Q.E.D.+--       Step: 1.5.2.3                          Q.E.D.+--       Step: 1.5.2.4                          Q.E.D.+--       Step: 1.5.2.5                          Q.E.D.+--       Step: 1.5.2.6                          Q.E.D.+--       Step: 1.5.3.1                          Q.E.D.+--       Step: 1.5.3.2                          Q.E.D.+--       Step: 1.5.3.3                          Q.E.D.+--       Step: 1.5.3.4                          Q.E.D.+--       Step: 1.5.Completeness                 Q.E.D.+--     Step: 1.Completeness                     Q.E.D.+--   Result:                                    Q.E.D. -- Lemma: gcdBinEquiv---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Result:                               Q.E.D.+--   Step: 1                                    Q.E.D.+--   Step: 2                                    Q.E.D.+--   Step: 3                                    Q.E.D.+--   Result:                                    Q.E.D.+-- Functions proven terminating: nGCD, nGCDBin -- [Proven] gcdBinEquiv :: Ɐa ∷ Integer → Ɐb ∷ Integer → Bool gcdBinEquiv :: TP (Proof (Forall "a" Integer -> Forall "b" Integer -> SBool)) gcdBinEquiv = do-   gEvenEven <- recall "gcdEvenEven" gcdEvenEven-   gOddEven  <- recall "gcdOddEven"  gcdOddEven-   gAdd      <- recall "gcdAdd"      gcdAdd-   comm      <- recall "commutative" commutative+   gEvenEven <- recallWith cvc5 gcdEvenEven+   gOddEven  <- recall gcdOddEven+   gAdd      <- recall gcdAdd+   comm      <- recall commutative     -- First prove over the non-negative numbers:    nEq <- sInduct "nGCDBinEquiv"                   (\(Forall @"a" a) (Forall @"b" b) -> a .>= 0 .&& b .>= 0 .=> nGCDBin a b .== nGCD a b)-                  (\a b -> tuple (a, b)) $+                  (\a b -> tuple (a, b), []) $                   \ih a b -> [a .>= 0, b .>= 0]                           |- nGCDBin a b                           =: cases [ a .== 0               ==> trivial
Documentation/SBV/Examples/TP/InsertionSort.hs view
@@ -13,9 +13,10 @@ {-# LANGUAGE DataKinds           #-} {-# LANGUAGE FlexibleContexts    #-} {-# LANGUAGE OverloadedLists     #-}+{-# LANGUAGE QuasiQuotes         #-}+{-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TypeAbstractions    #-} {-# LANGUAGE TypeApplications    #-}-{-# LANGUAGE ScopedTypeVariables #-}  {-# OPTIONS_GHC -Wall -Werror #-} @@ -38,31 +39,39 @@  -- | Insert an element into an already sorted list in the correct place. insert :: (OrdSymbolic (SBV a), SymVal a) => SBV a -> SList a -> SList a-insert = smtFunction "insert" $ \e l -> ite (null l) [e]-                                      $ let (x, xs) = uncons l-                                        in ite (e .<= x) (e .: x .: xs) (x .: insert e xs)+insert = smtFunction "insert"+       $ \e l -> [sCase| l of+                     []               -> [e]+                     x : xs | e .<= x -> e .: x .: xs+                            | True    -> x .: insert e xs+                 |]  -- | Insertion sort, using 'insert' above to successively insert the elements. insertionSort :: (OrdSymbolic (SBV a), SymVal a) => SList a -> SList a-insertionSort = smtFunction "insertionSort" $ \l -> ite (null l) nil-                                                  $ let (x, xs) = uncons l-                                                    in insert x (insertionSort xs)+insertionSort = smtFunction "insertionSort"+              $ \l -> [sCase| l of+                          []     -> []+                          x : xs -> insert x (insertionSort xs)+                      |]   -- | Remove the first occurrence of an number from a list, if any. removeFirst :: (Eq a, SymVal a) => SBV a -> SList a -> SList a-removeFirst = smtFunction "removeFirst" $ \e l -> ite (null l)-                                                      nil-                                                      (let (x, xs) = uncons l-                                                       in ite (e .== x) xs (x .: removeFirst e xs))+removeFirst = smtFunction "removeFirst"+            $ \e l -> [sCase| l of+                          []               -> []+                          x : xs | e .== x -> xs+                                 | True    -> x .: removeFirst e xs+                      |]  -- | Are two lists permutations of each other? Note that we diverge from the counting -- based definition of permutation here, since this variant works better with insertion sort. isPermutation :: (Eq a, SymVal a) => SList a -> SList a -> SBool-isPermutation = smtFunction "isPermutation" $ \l r -> ite (null l)-                                                          (null r)-                                                          (let (x, xs) = uncons l-                                                           in x `elem` r .&& isPermutation xs (removeFirst x r))+isPermutation = smtFunction "isPermutation"+              $ \l r -> [sCase| l of+                            []     -> null r+                            x : xs -> x `elem` r .&& isPermutation xs (removeFirst x r)+                        |]  -- * Correctness proof @@ -71,48 +80,49 @@ -- We have: -- -- >>> correctness @Integer--- Lemma: nonDecrTail                           Q.E.D.+-- Lemma: nonDecrTail                          Q.E.D. -- Inductive lemma: insertNonDecreasing---   Step: Base                                 Q.E.D.---   Step: 1 (unfold insert)                    Q.E.D.---   Step: 2 (push nonDecreasing down)          Q.E.D.---   Step: 3 (unfold simplify)                  Q.E.D.---   Step: 4                                    Q.E.D.---   Step: 5                                    Q.E.D.---   Result:                                    Q.E.D.+--   Step: Base                                Q.E.D.+--   Step: 1 (unfold insert)                   Q.E.D.+--   Step: 2 (push nonDecreasing down)         Q.E.D.+--   Step: 3 (unfold simplify)                 Q.E.D.+--   Step: 4                                   Q.E.D.+--   Step: 5                                   Q.E.D.+--   Result:                                   Q.E.D. -- Inductive lemma: sortNonDecreasing---   Step: Base                                 Q.E.D.---   Step: 1 (unfold insertionSort)             Q.E.D.---   Step: 2                                    Q.E.D.---   Result:                                    Q.E.D.+--   Step: Base                                Q.E.D.+--   Step: 1 (unfold insertionSort)            Q.E.D.+--   Step: 2                                   Q.E.D.+--   Result:                                   Q.E.D. -- Inductive lemma: insertIsElem---   Step: Base                                 Q.E.D.---   Step: 1                                    Q.E.D.---   Step: 2                                    Q.E.D.---   Step: 3                                    Q.E.D.---   Step: 4                                    Q.E.D.---   Result:                                    Q.E.D.+--   Step: Base                                Q.E.D.+--   Step: 1                                   Q.E.D.+--   Step: 2                                   Q.E.D.+--   Step: 3                                   Q.E.D.+--   Step: 4                                   Q.E.D.+--   Result:                                   Q.E.D. -- Inductive lemma: removeAfterInsert---   Step: Base                                 Q.E.D.---   Step: 1 (expand insert)                    Q.E.D.---   Step: 2 (push removeFirst down ite)        Q.E.D.---   Step: 3 (unfold removeFirst on 'then')     Q.E.D.---   Step: 4 (unfold removeFirst on 'else')     Q.E.D.---   Step: 5                                    Q.E.D.---   Step: 6 (simplify)                         Q.E.D.---   Result:                                    Q.E.D.+--   Step: Base                                Q.E.D.+--   Step: 1 (expand insert)                   Q.E.D.+--   Step: 2 (push removeFirst down ite)       Q.E.D.+--   Step: 3 (unfold removeFirst on 'then')    Q.E.D.+--   Step: 4 (unfold removeFirst on 'else')    Q.E.D.+--   Step: 5                                   Q.E.D.+--   Step: 6 (simplify)                        Q.E.D.+--   Result:                                   Q.E.D. -- Inductive lemma: sortIsPermutation---   Step: Base                                 Q.E.D.---   Step: 1                                    Q.E.D.---   Step: 2                                    Q.E.D.---   Step: 3                                    Q.E.D.---   Step: 4                                    Q.E.D.---   Step: 5                                    Q.E.D.---   Result:                                    Q.E.D.--- Lemma: insertionSortIsCorrect                Q.E.D.+--   Step: Base                                Q.E.D.+--   Step: 1                                   Q.E.D.+--   Step: 2                                   Q.E.D.+--   Step: 3                                   Q.E.D.+--   Step: 4                                   Q.E.D.+--   Step: 5                                   Q.E.D.+--   Result:                                   Q.E.D.+-- Lemma: insertionSortIsCorrect               Q.E.D.+-- Functions proven terminating: insert, insertionSort, isPermutation, nonDecreasing, removeFirst -- [Proven] insertionSortIsCorrect :: Ɐxs ∷ [Integer] → Bool correctness :: forall a. (OrdSymbolic (SBV a), Eq a, SymVal a) => IO (Proof (Forall "xs" [a] -> SBool))-correctness = runTPWith (tpRibbon 45 cvc5) $ do+correctness = runTPWith cvc5 $ do      --------------------------------------------------------------------------------------------     -- Part I. Import helper lemmas, definitions@@ -158,7 +168,7 @@                                  =: qed      ---------------------------------------------------------------------------------------------    -- Part III. Prove that the output of insertion sort is a permuation of its input+    -- Part III. Prove that the output of insertion sort is a permutation of its input     --------------------------------------------------------------------------------------------      insertIsElem <-
+ Documentation/SBV/Examples/TP/Kadane.hs view
@@ -0,0 +1,175 @@+-----------------------------------------------------------------------------+-- |+-- Module    : Documentation.SBV.Examples.TP.Kadane+-- Copyright : (c) Levent Erkok+-- License   : BSD3+-- Maintainer: erkokl@gmail.com+-- Stability : experimental+--+-- Proving the correctness of Kadane's algorithm for computing the maximum+-- sum of any contiguous list (maximum segment sum problem).+--+-- Kadane's algorithm is a classic dynamic programming algorithm that solves+-- the maximum segment sum problem in O(n) time. Given a list of integers,+-- it finds the maximum sum of any contiguous list, where the empty+-- list has sum 0.+-----------------------------------------------------------------------------++{-# LANGUAGE CPP                 #-}+{-# LANGUAGE DataKinds           #-}+{-# LANGUAGE OverloadedLists     #-}+{-# LANGUAGE QuasiQuotes         #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeApplications    #-}++{-# OPTIONS_GHC -Wall -Werror #-}++module Documentation.SBV.Examples.TP.Kadane where++import Prelude hiding (length, maximum, null, head, tail, (++))++import Data.SBV+import Data.SBV.TP++#ifdef DOCTEST+-- $setup+-- >>> import Data.SBV+-- >>> import Data.SBV.TP+-- >>> :set -XOverloadedLists+#endif++-- * Problem specification++-- | The maximum segment sum problem: Find the maximum sum of any contiguous+-- subarray. We include the empty subarray (with sum 0) as a valid segment.+-- This is the obvious definition: Empty list maps to 0. Otherwise, we take the+-- value of the segment starting at the current position, and take the maximum+-- of that value with the recursive result of the tail. This is obviously+-- correct, but has the runtime of O(n^2).+--+-- We have:+--+-- >>> mss [1, -2, 3, 4, -1, 2]  -- the segment: [3, 4, -1, 2]+-- 8 :: SInteger+-- >>> mss [-2, -3, -1]          -- empty segment+-- 0 :: SInteger+-- >>> mss [1, 2, 3]             -- the whole list+-- 6 :: SInteger+mss :: SList Integer -> SInteger+mss = smtFunction "mss"+    $ \xs -> [sCase| xs of+                 []    -> 0+                 _ : t -> mssBegin xs `smax` mss t+             |]++-- | Maximum sum of segments starting at the beginning of the given list.+-- This is 0 if the empty segment is best, or positive if a non-empty prefix exists.+--+-- We have:+--+-- >>> mssBegin [1, -2, 3, 4, -1, 2]  -- the segment: [1, -2, 3, 4, -1, 2]+-- 7 :: SInteger+-- >>> mssBegin [-2, -3, -1]          -- empty segment+-- 0 :: SInteger+-- >>> mssBegin [1, 2, 3]             -- the whole list+-- 6 :: SInteger+mssBegin :: SList Integer -> SInteger+mssBegin = smtFunction "mssBegin"+         $ \xs -> [sCase| xs of+                      []    -> 0+                      h : t -> 0 `smax` (h `smax` (h + mssBegin t))+                  |]++-- * Kadane's algorithm implementation++-- | Kadane algorithm: We call the helper with the values of maximum value ending+-- at the beginning and the list, and recurse.+--+-- >>> kadane [1, -2, 3, 4, -1, 2]  -- the segment: [3, 4, -1, 2]+-- 8 :: SInteger+-- >>> kadane [-2, -3, -1]          -- empty segment+-- 0 :: SInteger+-- >>> kadane [1, 2, 3]             -- the whole list+-- 6 :: SInteger+kadane :: SList Integer -> SInteger+kadane xs = kadaneHelper xs 0 0++-- | Helper for Kadane's algorithm. Along with the list, we keep track of the maximum-value+-- ending at the beginning of the list argument, and the maximum value sofar.+kadaneHelper :: SList Integer -> SInteger -> SInteger -> SInteger+kadaneHelper = smtFunction "kadaneHelper"+             $ \xs maxEndingHere maxSoFar ->+                  [sCase| xs of+                      []    -> maxSoFar+                      h : t -> let newMaxEndingHere = 0 `smax` (h + maxEndingHere)+                                   newMaxSofar      = maxSoFar `smax` newMaxEndingHere+                               in kadaneHelper t newMaxEndingHere newMaxSofar+                  |]++-- * Correctness proof++-- | The key insight is that we need a generalized invariant that characterizes+-- @kadaneHelper@ for arbitrary accumulator values, not just the initial @(0, 0)@.+--+-- The invariant states: for @kadaneHelper xs meh msf@ where:+--+--   * @meh@ (max-ending-here) is the maximum sum of a segment ending at the boundary+--   * @msf@ (max-so-far) is the best segment sum seen in the already-processed prefix+--   * Preconditions: @meh >= 0@ and @msf >= meh@+--+-- @+--   kadaneHelper xs meh msf == msf `smax` mss xs `smax` (meh + mssBegin xs)+-- @+--+-- This captures that the result is the maximum of:+--+--   * @msf@ - the best segment entirely in the already-processed prefix+--   * @mss xs@ - the best segment entirely in the remaining suffix+--   * @meh + mssBegin xs@ - the best segment crossing the boundary+--+-- >>> runTPWith cvc5 correctness+-- Inductive lemma: kadaneHelperInvariant+--   Step: Base                              Q.E.D.+--   Step: 1                                 Q.E.D.+--   Step: 2                                 Q.E.D.+--   Result:                                 Q.E.D.+-- Lemma: correctness+--   Step: 1                                 Q.E.D.+--   Step: 2                                 Q.E.D.+--   Step: 3                                 Q.E.D.+--   Step: 4                                 Q.E.D.+--   Result:                                 Q.E.D.+-- Functions proven terminating: kadaneHelper, mss, mssBegin+-- [Proven] correctness :: Ɐxs ∷ [Integer] → Bool+correctness :: TP (Proof (Forall "xs" [Integer] -> SBool))+correctness = do++  -- First, prove the generalized invariant. This is the heart of the proof: it relates kadaneHelper with arbitrary+  -- accumulators to the specification functions mss and mssBegin.+  invariant <- induct "kadaneHelperInvariant"+      (\(Forall xs) (Forall meh) (Forall msf) ->+         (meh .>= 0 .&& msf .>= meh) .=> kadaneHelper xs meh msf .== (msf `smax` mss xs `smax` (meh + mssBegin xs))) $+      \ih (a, as) meh msf ->+         [meh .>= 0, msf .>= meh] |- let newMeh = 0 `smax` (a + meh)+                                         newMsf = msf `smax` newMeh+                                     in kadaneHelper (a .: as) meh msf+                                     =: kadaneHelper as newMeh newMsf+                                     ?? ih `at` (Inst @"meh" newMeh, Inst @"msf" newMsf)+                                     =: newMsf `smax` mss as `smax` (newMeh + mssBegin as)+                                     =: qed++  -- Now the main theorem follows easily: kadane xs = kadaneHelper xs 0 0+  -- and with meh=0, msf=0, the invariant gives us:+  --   kadaneHelper xs 0 0 = 0 `smax` mss xs `smax` (0 + mssBegin xs)+  --                       = mss xs `smax` mssBegin xs+  --                       = mss xs  (since mss xs >= mssBegin xs by definition)+  calc "correctness"+       (\(Forall xs) -> mss xs .== kadane xs) $+       \xs -> [] |- kadane xs+                 =: kadaneHelper xs 0 0+                 ?? invariant `at` (Inst @"xs" xs, Inst @"meh" (0 :: SInteger), Inst @"msf" (0 :: SInteger))+                 =: 0 `smax` mss xs `smax` (0 + mssBegin xs)+                 =: mss xs `smax` mssBegin xs+                 -- mss xs >= mssBegin xs by definition (mss considers all segments)+                 =: mss xs+                 =: qed
Documentation/SBV/Examples/TP/Kleene.hs view
@@ -11,14 +11,11 @@ -- Based on <http://www.philipzucker.com/bryzzowski_kat/> ----------------------------------------------------------------------------- -{-# LANGUAGE DataKinds            #-}-{-# LANGUAGE DeriveAnyClass       #-}-{-# LANGUAGE DeriveDataTypeable   #-}-{-# LANGUAGE FlexibleInstances    #-}-{-# LANGUAGE ScopedTypeVariables  #-}-{-# LANGUAGE StandaloneDeriving   #-}-{-# LANGUAGE TemplateHaskell      #-}-{-# LANGUAGE TypeAbstractions     #-}+{-# LANGUAGE DataKinds           #-}+{-# LANGUAGE FlexibleInstances   #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TemplateHaskell     #-}+{-# LANGUAGE TypeAbstractions    #-}  {-# OPTIONS_GHC -Wall -Werror -Wno-unused-matches #-} @@ -31,7 +28,7 @@  -- | An uninterpreted sort, corresponding to the type of Kleene algebra strings. data Kleene-mkUninterpretedSort ''Kleene+mkSymbolic [''Kleene]  -- | Star operator over kleene algebras. We're leaving this uninterpreted. star :: SKleene -> SKleene@@ -72,20 +69,20 @@ -- Axiom: ldistrib -- Axiom: unfold -- Axiom: least_fix--- Lemma: par_lzero                        Q.E.D.--- Lemma: par_monotone                     Q.E.D.--- Lemma: seq_monotone                     Q.E.D.+-- Lemma: par_lzero                     Q.E.D.+-- Lemma: par_monotone                  Q.E.D.+-- Lemma: seq_monotone                  Q.E.D. -- Lemma: star_star_1---   Step: 1 (unfold)                      Q.E.D.---   Step: 2 (factor out x * star x)       Q.E.D.---   Step: 3 (par_idem)                    Q.E.D.---   Step: 4 (unfold)                      Q.E.D.---   Result:                               Q.E.D.--- Lemma: subset_eq                        Q.E.D.--- Lemma: star_star_2_2                    Q.E.D.--- Lemma: star_star_2_3                    Q.E.D.--- Lemma: star_star_2_1                    Q.E.D.--- Lemma: star_star_2                      Q.E.D.+--   Step: 1 (unfold)                   Q.E.D.+--   Step: 2 (factor out x * star x)    Q.E.D.+--   Step: 3 (par_idem)                 Q.E.D.+--   Step: 4 (unfold)                   Q.E.D.+--   Result:                            Q.E.D.+-- Lemma: subset_eq                     Q.E.D.+-- Lemma: star_star_2_2                 Q.E.D.+-- Lemma: star_star_2_3                 Q.E.D.+-- Lemma: star_star_2_1                 Q.E.D.+-- Lemma: star_star_2                   Q.E.D. kleeneProofs :: IO () kleeneProofs = runTP $ do 
+ Documentation/SBV/Examples/TP/Lists.hs view
@@ -0,0 +1,2064 @@+-----------------------------------------------------------------------------+-- |+-- Module    : Documentation.SBV.Examples.TP.Lists+-- Copyright : (c) Levent Erkok+-- License   : BSD3+-- Maintainer: erkokl@gmail.com+-- Stability : experimental+--+-- A variety of TP proofs on list processing functions. Note that+-- these proofs only hold for finite lists. SMT-solvers do not model infinite+-- lists, and hence all claims are for finite (but arbitrary-length) lists.+-----------------------------------------------------------------------------++{-# LANGUAGE CPP                 #-}+{-# LANGUAGE DataKinds           #-}+{-# LANGUAGE OverloadedLists     #-}+{-# LANGUAGE QuasiQuotes         #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions    #-}+{-# LANGUAGE TypeApplications    #-}++{-# OPTIONS_GHC -Wall -Werror #-}++module Documentation.SBV.Examples.TP.Lists (+     -- * Append+     appendNull, consApp, appendAssoc, initsLength, tailsLength, tailsAppend++     -- * Reverse+   , revLen, revApp, revCons, revSnoc, revRev, enumLen, revNM++     -- * Length+   , lengthTail, lenAppend, lenAppend2++     -- * Replicate+   , replicateLength++     -- * All and any+   , allAny++     -- * Map+   , mapEquiv, mapAppend, mapReverse, mapCompose, mapConcat++     -- * Foldr and foldl+   , foldrMapFusion, foldrFusion, foldrOverAppend, foldlOverAppend, foldrFoldlDuality, foldrFoldlDualityGeneralized, foldrFoldl+   , bookKeeping++     -- * Filter+   , filterAppend, filterConcat, takeDropWhile++     -- * Stutter removal+   , destutter, destutterIdempotent++     -- * Difference+   , appendDiff, diffAppend, diffDiff++     -- * Partition+   , partition1, partition2++    -- * Take and drop+   , take_take, drop_drop, take_drop, take_cons, take_map, drop_cons, drop_map, length_take, length_drop, take_all, drop_all+   , take_append, drop_append++   -- * Zip+   , map_fst_zip+   , map_snd_zip+   , map_fst_zip_take+   , map_snd_zip_take++   -- * Counting elements+   , count, countOneStep, countAppend, takeDropCount, countNonNeg, countElem, elemCount++   -- * Disjointness+   , disjoint, disjointDiff++   -- * Interleaving+   , interleave, uninterleave, interleaveLen, interleaveRoundTrip+ ) where++import Prelude (Integer, Bool, Eq, ($), Num(..), id, (.), flip)++import Data.SBV+import Data.SBV.List+import Data.SBV.Tuple+import Data.SBV.TP++#ifdef DOCTEST+-- $setup+-- >>> :set -XScopedTypeVariables+-- >>> :set -XTypeApplications+-- >>> import Data.SBV+-- >>> import Data.SBV.TP+-- >>> import Control.Exception+#endif++-- | @xs ++ [] == xs@+--+-- >>> runTP $ appendNull @Integer+-- Lemma: appendNull    Q.E.D.+-- [Proven] appendNull :: Ɐxs ∷ [Integer] → Bool+appendNull :: forall a. SymVal a => TP (Proof (Forall "xs" [a] -> SBool))+appendNull = lemma "appendNull"+                   (\(Forall xs) -> xs ++ [] .== xs)+                   []++-- | @(x : xs) ++ ys == x : (xs ++ ys)@+--+-- >>> runTP $ consApp @Integer+-- Lemma: consApp      Q.E.D.+-- [Proven] consApp :: Ɐx ∷ Integer → Ɐxs ∷ [Integer] → Ɐys ∷ [Integer] → Bool+consApp :: forall a. SymVal a => TP (Proof (Forall "x" a -> Forall "xs" [a] -> Forall "ys" [a] -> SBool))+consApp = lemma "consApp"+                (\(Forall x) (Forall xs) (Forall ys) -> (x .: xs) ++ ys .== x .: (xs ++ ys))+                []++-- | @(xs ++ ys) ++ zs == xs ++ (ys ++ zs)@+--+-- >>> runTP $ appendAssoc @Integer+-- Lemma: appendAssoc    Q.E.D.+-- [Proven] appendAssoc :: Ɐxs ∷ [Integer] → Ɐys ∷ [Integer] → Ɐzs ∷ [Integer] → Bool+--+-- Surprisingly, z3 can prove this without any induction. (Since SBV's append translates directly to+-- the concatenation of sequences in SMTLib, it must trigger an internal heuristic in z3+-- that proves it right out-of-the-box!)+appendAssoc :: forall a. SymVal a => TP (Proof (Forall "xs" [a] -> Forall "ys" [a] -> Forall "zs" [a] -> SBool))+appendAssoc =+   lemma "appendAssoc"+         (\(Forall xs) (Forall ys) (Forall zs) -> xs ++ (ys ++ zs) .== (xs ++ ys) ++ zs)+         []++-- | @length (inits xs) == 1 + length xs@+--+-- >>> runTP $ initsLength @Integer+-- Inductive lemma (strong): initsLength+--   Step: Measure is non-negative          Q.E.D.+--   Step: 1                                Q.E.D.+--   Result:                                Q.E.D.+-- Functions proven terminating: sbv.inits+-- [Proven] initsLength :: Ɐxs ∷ [Integer] → Bool+initsLength :: forall a. SymVal a => TP (Proof (Forall "xs" [a] -> SBool))+initsLength =+   sInduct "initsLength"+           (\(Forall xs) -> length (inits xs) .== 1 + length xs)+           (length @a, []) $+           \ih xs -> [] |- length (inits xs)+                        ?? ih+                        =: 1 + length xs+                        =: qed++-- | @length (tails xs) == 1 + length xs@+--+-- >>> runTP $ tailsLength @Integer+-- Inductive lemma: tailsLength+--   Step: Base                    Q.E.D.+--   Step: 1                       Q.E.D.+--   Step: 2                       Q.E.D.+--   Step: 3                       Q.E.D.+--   Step: 4                       Q.E.D.+--   Result:                       Q.E.D.+-- Functions proven terminating: sbv.tails+-- [Proven] tailsLength :: Ɐxs ∷ [Integer] → Bool+tailsLength :: forall a. SymVal a => TP (Proof (Forall "xs" [a] -> SBool))+tailsLength =+   induct "tailsLength"+          (\(Forall xs) -> length (tails xs) .== 1 + length xs) $+          \ih (x, xs) -> [] |- length (tails (x .: xs))+                            =: length (tails xs ++ [x .: xs])+                            =: length (tails xs) + 1+                            ?? ih+                            =: 1 + length xs + 1+                            =: 1 + length (x .: xs)+                            =: qed++-- | @tails (xs ++ ys) == map (++ ys) (tails xs) ++ tail (tails ys)@+--+-- This property comes from Richard Bird's "Pearls of functional Algorithm Design" book, chapter 2.+-- Note that it is not exactly as stated there, as the definition of @tails@ Bird uses is different+-- than the standard Haskell function @tails@: Bird's version does not return the empty list as the+-- tail. So, we slightly modify it to fit the standard definition. (NB. z3 is finicky on this+-- problem, while cvc5 works much better.)+--+-- >>> runTPWith cvc5 $ tailsAppend @Integer+-- Inductive lemma: base case+--   Step: Base                    Q.E.D.+--   Step: 1                       Q.E.D.+--   Step: 2                       Q.E.D.+--   Step: 3                       Q.E.D.+--   Result:                       Q.E.D.+-- Lemma: helper+--   Step: 1                       Q.E.D.+--   Step: 2                       Q.E.D.+--   Result:                       Q.E.D.+-- Inductive lemma: tailsAppend+--   Step: Base                    Q.E.D.+--   Step: 1                       Q.E.D.+--   Step: 2                       Q.E.D.+--   Step: 3                       Q.E.D.+--   Step: 4                       Q.E.D.+--   Result:                       Q.E.D.+-- Functions proven terminating: sbv.closureMap, sbv.tails+-- [Proven] tailsAppend :: Ɐxs ∷ [Integer] → Ɐys ∷ [Integer] → Bool+tailsAppend :: forall a. SymVal a => TP (Proof (Forall "xs" [a] -> Forall "ys" [a] -> SBool))+tailsAppend = do++   let -- Ideally, we would like to define appendEach like this:+       --+       --       appendEach xs ys = map (++ ys) xs+       --+       -- But capture of ys is not allowed when we use the higher-order+       -- function map in SBV. So, we create a closure instead.+       appendEach :: SList a -> SList [a] -> SList [a]+       appendEach ys = map $ Closure { closureEnv = ys+                                     , closureFun = \env xs -> xs ++ env+                                     }++   -- Even proving the base case of induction is hard due to recursive definition. So we first prove the base case by induction.+   bc <- induct "base case"+                (\(Forall @"ys" (ys :: SList a)) -> tails ys .== [ys] ++ tail (tails ys)) $+                \ih (y, ys) -> [] |- tails (y .: ys)+                                  =: [y .: ys] ++ tails ys+                                  ?? ih+                                  =: [y .: ys] ++ [ys] ++ tail (tails ys)+                                  =: [y .: ys] ++ tail (tails (y .: ys))+                                  =: qed++   -- Also need a helper to relate how appendEach and tails work together+   helper <- calc "helper"+                   (\(Forall @"xs" xs) (Forall @"ys" ys) (Forall @"x" x) ->+                        appendEach ys (tails (x .: xs)) .== [(x .: xs) ++ ys] ++ appendEach ys (tails xs)) $+                   \xs ys x -> [] |- appendEach ys (tails (x .: xs))+                                  =: appendEach ys ([x .: xs] ++ tails xs)+                                  =: [(x .: xs) ++ ys] ++ appendEach ys (tails xs)+                                  =: qed++   induct "tailsAppend"+          (\(Forall xs) (Forall ys) -> tails (xs ++ ys) .== appendEach ys (tails xs) ++ tail (tails ys)) $+          \ih (x, xs) ys -> [assumptionFromProof bc]+                         |- tails ((x .: xs) ++ ys)+                         =: tails (x .: (xs ++ ys))+                         =: [x .: (xs ++ ys)] ++ tails (xs ++ ys)+                         ?? ih+                         =: [(x .: xs) ++ ys] ++ appendEach ys (tails xs) ++ tail (tails ys)+                         ?? helper+                         =: appendEach ys (tails (x .: xs)) ++ tail (tails ys)+                         =: qed++-- | @length xs == length (reverse xs)@+--+-- >>> runTP $ revLen @Integer+-- Inductive lemma: revLen+--   Step: Base               Q.E.D.+--   Step: 1                  Q.E.D.+--   Step: 2                  Q.E.D.+--   Step: 3                  Q.E.D.+--   Step: 4                  Q.E.D.+--   Result:                  Q.E.D.+-- Functions proven terminating: sbv.reverse+-- [Proven] revLen :: Ɐxs ∷ [Integer] → Bool+revLen :: forall a. SymVal a => TP (Proof (Forall "xs" [a] -> SBool))+revLen = induct "revLen"+                (\(Forall xs) -> length (reverse xs) .== length xs) $+                \ih (x, xs) -> [] |- length (reverse (x .: xs))+                                  =: length (reverse xs ++ [x])+                                  =: length (reverse xs) + length [x]+                                  ?? ih+                                  =: length xs + 1+                                  =: length (x .: xs)+                                  =: qed++-- | @reverse (xs ++ ys) .== reverse ys ++ reverse xs@+--+-- >>> runTP $ revApp @Integer+-- Inductive lemma: revApp+--   Step: Base               Q.E.D.+--   Step: 1                  Q.E.D.+--   Step: 2                  Q.E.D.+--   Step: 3                  Q.E.D.+--   Step: 4                  Q.E.D.+--   Step: 5                  Q.E.D.+--   Result:                  Q.E.D.+-- Functions proven terminating: sbv.reverse+-- [Proven] revApp :: Ɐxs ∷ [Integer] → Ɐys ∷ [Integer] → Bool+revApp :: forall a. SymVal a => TP (Proof (Forall "xs" [a] -> Forall "ys" [a] -> SBool))+revApp = induct "revApp"+                 (\(Forall xs) (Forall ys) -> reverse (xs ++ ys) .== reverse ys ++ reverse xs) $+                 \ih (x, xs) ys -> [] |- reverse ((x .: xs) ++ ys)+                                      =: reverse (x .: (xs ++ ys))+                                      =: reverse (xs ++ ys) ++ [x]+                                      ?? ih+                                      =: (reverse ys ++ reverse xs) ++ [x]+                                      =: reverse ys ++ (reverse xs ++ [x])+                                      =: reverse ys ++ reverse (x .: xs)+                                      =: qed++-- | @reverse (x:xs) == reverse xs ++ [x]@+--+-- >>> runTP $ revCons @Integer+-- Lemma: revCons      Q.E.D.+-- Functions proven terminating: sbv.reverse+-- [Proven] revCons :: Ɐx ∷ Integer → Ɐxs ∷ [Integer] → Bool+revCons :: forall a. SymVal a => TP (Proof (Forall "x" a -> Forall "xs" [a] -> SBool))+revCons = lemma "revCons"+                (\(Forall x) (Forall xs) -> reverse (x .: xs) .== reverse xs ++ [x])+                []++-- | @reverse (xs ++ [x]) == x : reverse xs@+--+-- >>> runTP $ revSnoc @Integer+-- Inductive lemma: revApp+--   Step: Base               Q.E.D.+--   Step: 1                  Q.E.D.+--   Step: 2                  Q.E.D.+--   Step: 3                  Q.E.D.+--   Step: 4                  Q.E.D.+--   Step: 5                  Q.E.D.+--   Result:                  Q.E.D.+-- Lemma: revSnoc             Q.E.D.+-- Functions proven terminating: sbv.reverse+-- [Proven] revSnoc :: Ɐx ∷ Integer → Ɐxs ∷ [Integer] → Bool+revSnoc :: forall a. SymVal a => TP (Proof (Forall "x" a -> Forall "xs" [a] -> SBool))+revSnoc = do+   ra <- revApp @a++   lemma "revSnoc"+         (\(Forall x) (Forall xs) -> reverse (xs ++ [x]) .== x .: reverse xs)+         [proofOf ra]++-- | @reverse (reverse xs) == xs@+--+-- >>> runTP $ revRev @Integer+-- Inductive lemma: revApp+--   Step: Base               Q.E.D.+--   Step: 1                  Q.E.D.+--   Step: 2                  Q.E.D.+--   Step: 3                  Q.E.D.+--   Step: 4                  Q.E.D.+--   Step: 5                  Q.E.D.+--   Result:                  Q.E.D.+-- Inductive lemma: revRev+--   Step: Base               Q.E.D.+--   Step: 1                  Q.E.D.+--   Step: 2                  Q.E.D.+--   Step: 3                  Q.E.D.+--   Step: 4                  Q.E.D.+--   Result:                  Q.E.D.+-- Functions proven terminating: sbv.reverse+-- [Proven] revRev :: Ɐxs ∷ [Integer] → Bool+revRev :: forall a. SymVal a => TP (Proof (Forall "xs" [a] -> SBool))+revRev = do++   ra <- revApp @a++   induct "revRev"+          (\(Forall xs) -> reverse (reverse xs) .== xs) $+          \ih (x, xs) -> [] |- reverse (reverse (x .: xs))+                            =: reverse (reverse xs ++ [x])+                            ?? ra+                            =: reverse [x] ++ reverse (reverse xs)+                            ?? ih+                            =: [x] ++ xs+                            =: x .: xs+                            =: qed++-- | \(\mathit{length } [n \dots m] = \max(0,\; m - n + 1)\)+--+-- The proof uses the metric @|m-n|@.+--+-- >>> runTP enumLen+-- Inductive lemma (strong): enumLen+--   Step: Measure is non-negative      Q.E.D.+--   Step: 1 (2 way case split)+--     Step: 1.1                        Q.E.D.+--     Step: 1.2.1                      Q.E.D.+--     Step: 1.2.2                      Q.E.D.+--     Step: 1.2.3                      Q.E.D.+--     Step: 1.2.4                      Q.E.D.+--     Step: 1.Completeness             Q.E.D.+--   Result:                            Q.E.D.+-- Functions proven terminating: EnumSymbolic.Integer.enumFromThenTo.up+-- [Proven] enumLen :: Ɐn ∷ Integer → Ɐm ∷ Integer → Bool+enumLen :: TP (Proof (Forall "n" Integer -> Forall "m" Integer -> SBool))+enumLen =+  sInduct "enumLen"+          (\(Forall n) (Forall m) -> length [sEnum|n .. m|] .== 0 `smax` (m - n + 1))+          (\n m -> abs (m - n), []) $+          \ih n m -> [] |- length [sEnum|n+1 .. m|]+                        =: cases [ n+1 .>  m ==> trivial+                                 , n+1 .<= m ==> length (n+1 .: [sEnum|n+2 .. m|])+                                              =: 1 + length [sEnum|n+2 .. m|]+                                              ?? ih+                                              =: 1 + (0 `smax` (m - (n+2) + 1))+                                              =: 0 `smax` (m - (n+1) + 1)+                                              =: qed+                                 ]++-- | @reverse [n .. m] == [m, m-1 .. n]@+--+-- The proof uses the metric @|m-n|@.+--+-- >>> runTP revNM+-- Inductive lemma (strong): helper+--   Step: Measure is non-negative     Q.E.D.+--   Step: 1                           Q.E.D.+--   Step: 2                           Q.E.D.+--   Step: 3                           Q.E.D.+--   Result:                           Q.E.D.+-- Inductive lemma (strong): revNM+--   Step: Measure is non-negative     Q.E.D.+--   Step: 1 (2 way case split)+--     Step: 1.1                       Q.E.D.+--     Step: 1.2.1                     Q.E.D.+--     Step: 1.2.2                     Q.E.D.+--     Step: 1.2.3                     Q.E.D.+--     Step: 1.2.4                     Q.E.D.+--     Step: 1.Completeness            Q.E.D.+--   Result:                           Q.E.D.+-- Functions proven terminating:+--   EnumSymbolic.Integer.enumFromThenTo.down, EnumSymbolic.Integer.enumFromThenTo.up, sbv.reverse+-- [Proven] revNM :: Ɐn ∷ Integer → Ɐm ∷ Integer → Bool+revNM :: TP (Proof (Forall "n" Integer -> Forall "m" Integer -> SBool))+revNM = do++  helper <- sInduct "helper"+                    (\(Forall @"m" (m :: SInteger)) (Forall @"n" n) ->+                          n .< m .=> [sEnum|m, m-1 .. n+1|] ++ [n] .== [sEnum|m, m-1 .. n|])+                    (\m n -> abs (m - n), []) $+                    \ih m n -> [n .< m] |- [sEnum|m, m-1 .. n+1|] ++ [n]+                                        =: m .: [sEnum|m-1, m-2 .. n+1|] ++ [n]+                                        ?? ih+                                        =: m .: [sEnum|m-1, m-2 .. n|]+                                        =: [sEnum|m, m-1 .. n|]+                                        =: qed++  sInduct "revNM"+          (\(Forall n) (Forall m) -> reverse [sEnum|n .. m|] .== [sEnum|m, m-1 .. n|])+          (\n m -> abs (m - n), []) $+          \ih n m -> [] |- reverse [sEnum|n .. m|]+                        =: cases [ n .>  m ==> trivial+                                 , n .<= m ==> reverse (n .: [sEnum|(n+1) .. m|])+                                            =: reverse [sEnum|(n+1) .. m|] ++ [n]+                                            ?? ih+                                            =: [sEnum|m, m-1 .. n+1|] ++ [n]+                                            ?? helper+                                            =: [sEnum|m, m-1 .. n|]+                                            =: qed+                                 ]++-- | @length (x : xs) == 1 + length xs@+--+-- >>> runTP $ lengthTail @Integer+-- Lemma: lengthTail    Q.E.D.+-- [Proven] lengthTail :: Ɐx ∷ Integer → Ɐxs ∷ [Integer] → Bool+lengthTail :: forall a. SymVal a => TP (Proof (Forall "x" a -> Forall "xs" [a] -> SBool))+lengthTail = lemma "lengthTail"+                   (\(Forall x) (Forall xs) -> length (x .: xs) .== 1 + length xs)+                   []++-- | @length (xs ++ ys) == length xs + length ys@+--+-- >>> runTP $ lenAppend @Integer+-- Lemma: lenAppend    Q.E.D.+-- [Proven] lenAppend :: Ɐxs ∷ [Integer] → Ɐys ∷ [Integer] → Bool+lenAppend :: forall a. SymVal a => TP (Proof (Forall "xs" [a] -> Forall "ys" [a] -> SBool))+lenAppend = lemma "lenAppend"+                  (\(Forall xs) (Forall ys) -> length (xs ++ ys) .== length xs + length ys)+                  []++-- | @length xs == length ys -> length (xs ++ ys) == 2 * length xs@+--+-- >>> runTP $ lenAppend2 @Integer+-- Lemma: lenAppend2    Q.E.D.+-- [Proven] lenAppend2 :: Ɐxs ∷ [Integer] → Ɐys ∷ [Integer] → Bool+lenAppend2 :: forall a. SymVal a => TP (Proof (Forall "xs" [a] -> Forall "ys" [a] -> SBool))+lenAppend2 = lemma "lenAppend2"+                   (\(Forall xs) (Forall ys) -> length xs .== length ys .=> length (xs ++ ys) .== 2 * length xs)+                   []++-- | @length (replicate k x) == max (0, k)@+--+-- >>> runTP $ replicateLength @Integer+-- Inductive lemma: replicateLength+--   Step: Base                        Q.E.D.+--   Step: 1 (2 way case split)+--     Step: 1.1                       Q.E.D.+--     Step: 1.2.1                     Q.E.D.+--     Step: 1.2.2                     Q.E.D.+--     Step: 1.2.3                     Q.E.D.+--     Step: 1.2.4                     Q.E.D.+--     Step: 1.Completeness            Q.E.D.+--   Result:                           Q.E.D.+-- Functions proven terminating: sbv.replicate+-- [Proven] replicateLength :: Ɐk ∷ Integer → Ɐx ∷ Integer → Bool+replicateLength :: forall a. SymVal a => TP (Proof (Forall "k" Integer -> Forall "x" a -> SBool))+replicateLength = induct "replicateLength"+                         (\(Forall k) (Forall x) -> length (replicate k x) .== 0 `smax` k) $+                         \ih k x -> [] |- length (replicate (k+1) x)+                                       =: cases [ k .< 0  ==> trivial+                                                , k .>= 0 ==> length (x .: replicate k x)+                                                           =: 1 + length (replicate k x)+                                                           ?? ih+                                                           =: 1 + 0 `smax` k+                                                           =: 0 `smax` (k+1)+                                                           =: qed+                                                ]++-- | @not (all id xs) == any not xs@+--+-- A list of booleans is not all true, if any of them is false.+--+-- >>> runTP allAny+-- Inductive lemma: allAny+--   Step: Base               Q.E.D.+--   Step: 1                  Q.E.D.+--   Step: 2                  Q.E.D.+--   Step: 3                  Q.E.D.+--   Step: 4                  Q.E.D.+--   Result:                  Q.E.D.+-- Functions proven terminating: sbv.foldr+-- [Proven] allAny :: Ɐxs ∷ [Bool] → Bool+allAny :: TP (Proof (Forall "xs" [Bool] -> SBool))+allAny = induct "allAny"+                (\(Forall xs) -> sNot (all id xs) .== any sNot xs) $+                \ih (x, xs) -> [] |- sNot (all id (x .: xs))+                                  =: sNot (x .&& all id xs)+                                  =: (sNot x .|| sNot (all id xs))+                                  ?? ih+                                  =: sNot x .|| any sNot xs+                                  =: any sNot (x .: xs)+                                  =: qed++-- | @f == g ==> map f xs == map g xs@+--+-- >>> runTP $ mapEquiv @Integer @Integer (uninterpret "f") (uninterpret "g")+-- Inductive lemma: mapEquiv+--   Step: Base                 Q.E.D.+--   Step: 1                    Q.E.D.+--   Step: 2                    Q.E.D.+--   Step: 3                    Q.E.D.+--   Step: 4                    Q.E.D.+--   Result:                    Q.E.D.+-- Functions proven terminating: sbv.map+-- [Proven] mapEquiv :: Ɐxs ∷ [Integer] → Bool+mapEquiv :: forall a b. (SymVal a, SymVal b) => (SBV a -> SBV b) -> (SBV a -> SBV b) -> TP (Proof (Forall "xs" [a] -> SBool))+mapEquiv f g = do+   let f'eq'g :: SBool+       f'eq'g = quantifiedBool $ \(Forall x) -> f x .== g x++   induct "mapEquiv"+          (\(Forall xs) -> f'eq'g .=> map f xs .== map g xs) $+          \ih (x, xs) -> [f'eq'g] |- map f (x .: xs) .== map g (x .: xs)+                                  =: f x .: map f xs .== g x .: map g xs+                                  =: f x .: map f xs .== f x .: map g xs+                                  ?? ih+                                  =: f x .: map f xs .== f x .: map f xs+                                  =: map f (x .: xs) .== map f (x .: xs)+                                  =: qed++-- | @map f (xs ++ ys) == map f xs ++ map f ys@+--+-- >>> runTP $ mapAppend @Integer @Integer (uninterpret "f")+-- Inductive lemma: mapAppend+--   Step: Base                  Q.E.D.+--   Step: 1                     Q.E.D.+--   Step: 2                     Q.E.D.+--   Step: 3                     Q.E.D.+--   Step: 4                     Q.E.D.+--   Step: 5                     Q.E.D.+--   Result:                     Q.E.D.+-- Functions proven terminating: sbv.map+-- [Proven] mapAppend :: Ɐxs ∷ [Integer] → Ɐys ∷ [Integer] → Bool+mapAppend :: forall a b. (SymVal a, SymVal b) => (SBV a -> SBV b) -> TP (Proof (Forall "xs" [a] -> Forall "ys" [a] -> SBool))+mapAppend f =+   induct "mapAppend"+          (\(Forall xs) (Forall ys) -> map f (xs ++ ys) .== map f xs ++ map f ys) $+          \ih (x, xs) ys -> [] |- map f ((x .: xs) ++ ys)+                               =: map f (x .: (xs ++ ys))+                             =: f x .: map f (xs ++ ys)+                             ?? ih+                             =: f x .: (map f xs  ++ map f ys)+                             =: (f x .: map f xs) ++ map f ys+                             =: map f (x .: xs) ++ map f ys+                             =: qed++-- | @map f . reverse == reverse . map f@+--+-- >>> runTP $ mapReverse @Integer @String (uninterpret "f")+-- Inductive lemma: mapAppend+--   Step: Base                   Q.E.D.+--   Step: 1                      Q.E.D.+--   Step: 2                      Q.E.D.+--   Step: 3                      Q.E.D.+--   Step: 4                      Q.E.D.+--   Step: 5                      Q.E.D.+--   Result:                      Q.E.D.+-- Inductive lemma: mapReverse+--   Step: Base                   Q.E.D.+--   Step: 1                      Q.E.D.+--   Step: 2                      Q.E.D.+--   Step: 3                      Q.E.D.+--   Step: 4                      Q.E.D.+--   Step: 5                      Q.E.D.+--   Step: 6                      Q.E.D.+--   Result:                      Q.E.D.+-- Functions proven terminating: sbv.map, sbv.reverse+-- [Proven] mapReverse :: Ɐxs ∷ [Integer] → Bool+mapReverse :: forall a b. (SymVal a, SymVal b) => (SBV a -> SBV b) -> TP (Proof (Forall "xs" [a] -> SBool))+mapReverse f = do+     mApp <- mapAppend f++     induct "mapReverse"+            (\(Forall xs) -> reverse (map f xs) .== map f (reverse xs)) $+            \ih (x, xs) -> [] |- reverse (map f (x .: xs))+                              =: reverse (f x .: map f xs)+                              =: reverse (map f xs) ++ [f x]+                              ?? ih+                              =: map f (reverse xs) ++ [f x]+                              =: map f (reverse xs) ++ map f [x]+                              ?? mApp+                              =: map f (reverse xs ++ [x])+                              =: map f (reverse (x .: xs))+                              =: qed++-- | @map f . map g == map (f . g)@+--+-- >>> runTP $ mapCompose @Integer @Bool @String (uninterpret "f") (uninterpret "g")+-- Inductive lemma: mapCompose+--   Step: Base                   Q.E.D.+--   Step: 1                      Q.E.D.+--   Step: 2                      Q.E.D.+--   Step: 3                      Q.E.D.+--   Step: 4                      Q.E.D.+--   Step: 5                      Q.E.D.+--   Result:                      Q.E.D.+-- Functions proven terminating: sbv.map+-- [Proven] mapCompose :: Ɐxs ∷ [Integer] → Bool+mapCompose :: forall a b c. (SymVal a, SymVal b, SymVal c) => (SBV a -> SBV b) -> (SBV b -> SBV c) -> TP (Proof (Forall "xs" [a] -> SBool))+mapCompose f g =+  induct "mapCompose"+         (\(Forall xs) -> map g (map f xs) .== map (g . f) xs) $+         \ih (x, xs) -> [] |- map g (map f (x .: xs))+                           =: map g (f x .: map f xs)+                           =: g (f x) .: map g (map f xs)+                           ?? ih+                           =: g (f x) .: map (g . f) xs+                           =: (g . f) x .: map (g . f) xs+                           =: map (g . f) (x .: xs)+                           =: qed++-- | @map f . concat = concat . map (map f)@+--+-- >>> runTP $ mapConcat @Integer @Bool (uninterpret "f")+-- Lemma: mapAppend              Q.E.D.+-- Inductive lemma: mapConcat+--   Step: Base                  Q.E.D.+--   Step: 1                     Q.E.D.+--   Step: 2                     Q.E.D.+--   Step: 3                     Q.E.D.+--   Step: 4                     Q.E.D.+--   Step: 5                     Q.E.D.+--   Result:                     Q.E.D.+-- Functions proven terminating: sbv.foldr, sbv.map+-- [Proven] mapConcat :: Ɐxs ∷ [[Integer]] → Bool+mapConcat :: (SymVal a, SymVal b) => (SBV a -> SBV b) -> TP (Proof (Forall "xs" [[a]] -> SBool))+mapConcat f = do+   ma <- recall (mapAppend f)++   induct "mapConcat"+          (\(Forall xs) -> map f (concat xs) .== concat (map (map f) xs)) $+          \ih (x, xs) -> [] |- map f (concat (x .: xs))+                            =: map f (x ++ concat xs)+                            ?? ma+                            =: map f x ++ map f (concat xs)+                            ?? ih+                            =: map f x ++ concat (map (map f) xs)+                            =: concat (map f x .: map (map f) xs)+                            =: concat (map (map f) (x .: xs))+                            =: qed++-- | @foldr f a . map g == foldr (f . g) a@+--+-- >>> runTP $ foldrMapFusion @String @Bool @Integer (uninterpret "a") (uninterpret "b") (uninterpret "c")+-- Inductive lemma: foldrMapFusion+--   Step: Base                       Q.E.D.+--   Step: 1                          Q.E.D.+--   Step: 2                          Q.E.D.+--   Step: 3                          Q.E.D.+--   Step: 4                          Q.E.D.+--   Result:                          Q.E.D.+-- Functions proven terminating: sbv.foldr, sbv.map+-- [Proven] foldrMapFusion :: Ɐxs ∷ [String] → Bool+foldrMapFusion :: forall a b c. (SymVal a, SymVal b, SymVal c) => SBV c -> (SBV a -> SBV b) -> (SBV b -> SBV c -> SBV c) -> TP (Proof (Forall "xs" [a] -> SBool))+foldrMapFusion a g f =+  induct "foldrMapFusion"+         (\(Forall xs) -> foldr f a (map g xs) .== foldr (f . g) a xs) $+         \ih (x, xs) -> [] |- foldr f a (map g (x .: xs))+                           =: foldr f a (g x .: map g xs)+                           =: g x `f` foldr f a (map g xs)+                           ?? ih+                           =: g x `f` foldr (f . g) a xs+                           =: foldr (f . g) a (x .: xs)+                           =: qed++-- |+--+-- @+--   f . foldr g a == foldr h b+--   provided, f a = b and for all x and y, f (g x y) == h x (f y).+-- @+--+-- >>> runTP $ foldrFusion @String @Bool @Integer (uninterpret "a") (uninterpret "b") (uninterpret "f") (uninterpret "g") (uninterpret "h")+-- Inductive lemma: foldrFusion+--   Step: Base                    Q.E.D.+--   Step: 1                       Q.E.D.+--   Step: 2                       Q.E.D.+--   Step: 3                       Q.E.D.+--   Step: 4                       Q.E.D.+--   Result:                       Q.E.D.+-- Functions proven terminating: sbv.foldr+-- [Proven] foldrFusion :: Ɐxs ∷ [String] → Bool+foldrFusion :: forall a b c. (SymVal a, SymVal b, SymVal c) => SBV c -> SBV b -> (SBV c -> SBV b) -> (SBV a -> SBV c -> SBV c) -> (SBV a -> SBV b -> SBV b) -> TP (Proof (Forall "xs" [a] -> SBool))+foldrFusion a b f g h = do+   let -- Assumptions under which the equality holds+       h1 = f a .== b+       h2 = quantifiedBool $ \(Forall x) (Forall y) -> f (g x y) .== h x (f y)++   induct "foldrFusion"+          (\(Forall xs) -> h1 .&& h2 .=> f (foldr g a xs) .== foldr h b xs) $+          \ih (x, xs) -> [h1, h2] |- f (foldr g a (x .: xs))+                                  =: f (g x (foldr g a xs))+                                  =: h x (f (foldr g a xs))+                                  ?? ih+                                  =: h x (foldr h b xs)+                                  =: foldr h b (x .: xs)+                                  =: qed++-- | @foldr f a (xs ++ ys) == foldr f (foldr f a ys) xs@+--+-- >>> runTP $ foldrOverAppend @Integer (uninterpret "a") (uninterpret "f")+-- Inductive lemma: foldrOverAppend+--   Step: Base                        Q.E.D.+--   Step: 1                           Q.E.D.+--   Step: 2                           Q.E.D.+--   Step: 3                           Q.E.D.+--   Step: 4                           Q.E.D.+--   Result:                           Q.E.D.+-- Functions proven terminating: sbv.foldr+-- [Proven] foldrOverAppend :: Ɐxs ∷ [Integer] → Ɐys ∷ [Integer] → Bool+foldrOverAppend :: forall a. SymVal a => SBV a -> (SBV a -> SBV a -> SBV a) -> TP (Proof (Forall "xs" [a] -> Forall "ys" [a] -> SBool))+foldrOverAppend a f =+   induct "foldrOverAppend"+          (\(Forall xs) (Forall ys) -> foldr f a (xs ++ ys) .== foldr f (foldr f a ys) xs) $+          \ih (x, xs) ys -> [] |- foldr f a ((x .: xs) ++ ys)+                               =: foldr f a (x .: (xs ++ ys))+                               =: x `f` foldr f a (xs ++ ys)+                               ?? ih+                               =: x `f` foldr f (foldr f a ys) xs+                               =: foldr f (foldr f a ys) (x .: xs)+                               =: qed++-- | @foldl f e (xs ++ ys) == foldl f (foldl f e xs) ys@+--+-- >>> runTP $ foldlOverAppend @Integer @Bool (uninterpret "f")+-- Inductive lemma: foldlOverAppend+--   Step: Base                        Q.E.D.+--   Step: 1                           Q.E.D.+--   Step: 2                           Q.E.D.+--   Step: 3                           Q.E.D.+--   Result:                           Q.E.D.+-- Functions proven terminating: sbv.foldl+-- [Proven] foldlOverAppend :: Ɐxs ∷ [Integer] → Ɐys ∷ [Integer] → Ɐe ∷ Bool → Bool+foldlOverAppend :: forall a b. (SymVal a, SymVal b) => (SBV b -> SBV a -> SBV b) -> TP (Proof (Forall "xs" [a] -> Forall "ys" [a] -> Forall "e" b -> SBool))+foldlOverAppend f =+   induct "foldlOverAppend"+          (\(Forall xs) (Forall ys) (Forall a) -> foldl f a (xs ++ ys) .== foldl f (foldl f a xs) ys) $+          \ih (x, xs) ys a -> [] |- foldl f a ((x .: xs) ++ ys)+                                 =: foldl f a (x .: (xs ++ ys))+                                 =: foldl f (a `f` x) (xs ++ ys)+                                 -- z3 is smart enough to instantiate the IH correctly below, but we're+                                 -- using an explicit instantiation to be clear about the use of @a@ at a different value+                                 ?? ih `at` (Inst @"ys" ys, Inst @"e" (a `f` x))+                                 =: foldl f (foldl f (a `f` x) xs) ys+                                 =: qed++-- | @foldr f e xs == foldl (flip f) e (reverse xs)@+--+-- >>> runTP $ foldrFoldlDuality @Integer @String (uninterpret "f")+-- Inductive lemma: foldlOverAppend+--   Step: Base                          Q.E.D.+--   Step: 1                             Q.E.D.+--   Step: 2                             Q.E.D.+--   Step: 3                             Q.E.D.+--   Result:                             Q.E.D.+-- Inductive lemma: foldrFoldlDuality+--   Step: Base                          Q.E.D.+--   Step: 1                             Q.E.D.+--   Step: 2                             Q.E.D.+--   Step: 3                             Q.E.D.+--   Step: 4                             Q.E.D.+--   Step: 5                             Q.E.D.+--   Step: 6                             Q.E.D.+--   Result:                             Q.E.D.+-- Functions proven terminating: sbv.foldl, sbv.foldr, sbv.reverse+-- [Proven] foldrFoldlDuality :: Ɐxs ∷ [Integer] → Ɐe ∷ String → Bool+foldrFoldlDuality :: forall a b. (SymVal a, SymVal b) => (SBV a -> SBV b -> SBV b) -> TP (Proof (Forall "xs" [a] -> Forall "e" b -> SBool))+foldrFoldlDuality f = do+   foa <- foldlOverAppend (flip f)++   induct "foldrFoldlDuality"+          (\(Forall xs) (Forall e) -> foldr f e xs .== foldl (flip f) e (reverse xs)) $+          \ih (x, xs) e -> [] |- let ff  = flip f+                                     rxs = reverse xs+                                 in foldr f e (x .: xs)+                                 =: x `f` foldr f e xs+                                 ?? ih+                                 =: x `f` foldl ff e rxs+                                 =: foldl ff e rxs `ff` x+                                 =: foldl ff (foldl ff e rxs) [x]+                                 ?? foa+                                 =: foldl ff e (rxs ++ [x])+                                 =: foldl ff e (reverse (x .: xs))+                                 =: qed++-- | Given:+--+-- @+--     x \@ (y \@ z) = (x \@ y) \@ z     (associativity of @)+-- and e \@ x = x                     (left unit)+-- and x \@ e = x                     (right unit)+-- @+--+-- Proves:+--+-- @+--     foldr (\@) e xs == foldl (\@) e xs+-- @+--+-- >>> runTP $ foldrFoldlDualityGeneralized @Integer (uninterpret "e") (uninterpret "|@|")+-- Inductive lemma: helper+--   Step: Base                          Q.E.D.+--   Step: 1                             Q.E.D.+--   Step: 2                             Q.E.D.+--   Step: 3                             Q.E.D.+--   Step: 4                             Q.E.D.+--   Result:                             Q.E.D.+-- Inductive lemma: foldrFoldlDuality+--   Step: Base                          Q.E.D.+--   Step: 1                             Q.E.D.+--   Step: 2                             Q.E.D.+--   Step: 3                             Q.E.D.+--   Step: 4                             Q.E.D.+--   Step: 5                             Q.E.D.+--   Step: 6                             Q.E.D.+--   Result:                             Q.E.D.+-- Functions proven terminating: sbv.foldl, sbv.foldr+-- [Proven] foldrFoldlDuality :: Ɐxs ∷ [Integer] → Bool+foldrFoldlDualityGeneralized :: forall a. SymVal a => SBV a -> (SBV a -> SBV a -> SBV a) -> TP (Proof (Forall "xs" [a] -> SBool))+foldrFoldlDualityGeneralized e (@) = do+   -- Assumptions under which the equality holds+   let assoc = quantifiedBool $ \(Forall x) (Forall y) (Forall z) -> x @ (y @ z) .== (x @ y) @ z+       lunit = quantifiedBool $ \(Forall x) -> e @ x .== x+       runit = quantifiedBool $ \(Forall x) -> x @ e .== x++   -- Helper: foldl (@) (y @ z) xs = y @ foldl (@) z xs+   -- Note the instantiation of the IH at a different value for z. It turns out+   -- we don't have to actually specify this since z3 can figure it out by itself, but we're being explicit.+   helper <- induct "helper"+                    (\(Forall @"xs" xs) (Forall @"y" y) (Forall @"z" z) -> assoc .=> foldl (@) (y @ z) xs .== y @ foldl (@) z xs) $+                    \ih (x, xs) y z -> [assoc] |- foldl (@) (y @ z) (x .: xs)+                                               =: foldl (@) ((y @ z) @ x) xs+                                               ?? assoc+                                               =: foldl (@) (y @ (z @ x)) xs+                                               ?? ih `at` (Inst @"y" y, Inst @"z" (z @ x))+                                               =: y @ foldl (@) (z @ x) xs+                                               =: y @ foldl (@) z (x .: xs)+                                               =: qed++   induct "foldrFoldlDuality"+          (\(Forall xs) -> assoc .&& lunit .&& runit .=> foldr (@) e xs .== foldl (@) e xs) $+          \ih (x, xs) -> [assoc, lunit, runit] |- foldr (@) e (x .: xs)+                                               =: x @ foldr (@) e xs+                                               ?? ih+                                               =: x @ foldl (@) e xs+                                               ?? helper+                                               =: foldl (@) (x @ e) xs+                                               ?? runit+                                               =: foldl (@) x xs+                                               ?? lunit+                                               =: foldl (@) (e @ x) xs+                                               =: foldl (@) e (x .: xs)+                                               =: qed++-- | Given:+--+-- @+--        (x \<+> y) \<*> z = x \<+> (y \<*> z)+--   and  x \<+> e = e \<*> x+-- @+--+-- Proves:+--+-- @+--    foldr (\<+>) e xs = foldl (\<*>) e xs+-- @+--+-- In Bird's Introduction to Functional Programming book (2nd edition) this is called the second duality theorem:+--+-- >>> runTP $ foldrFoldl @Integer @String (uninterpret "<+>") (uninterpret "<*>") (uninterpret "e")+-- Inductive lemma: foldl over <*>/<+>+--   Step: Base                           Q.E.D.+--   Step: 1                              Q.E.D.+--   Step: 2                              Q.E.D.+--   Step: 3                              Q.E.D.+--   Step: 4                              Q.E.D.+--   Result:                              Q.E.D.+-- Inductive lemma: foldrFoldl+--   Step: Base                           Q.E.D.+--   Step: 1                              Q.E.D.+--   Step: 2                              Q.E.D.+--   Step: 3                              Q.E.D.+--   Step: 4                              Q.E.D.+--   Step: 5                              Q.E.D.+--   Result:                              Q.E.D.+-- Functions proven terminating: sbv.foldl, sbv.foldr+-- [Proven] foldrFoldl :: Ɐxs ∷ [Integer] → Bool+foldrFoldl :: forall a b. (SymVal a, SymVal b) => (SBV a -> SBV b -> SBV b) -> (SBV b -> SBV a -> SBV b) -> SBV b -> TP (Proof (Forall "xs" [a] -> SBool))+foldrFoldl (<+>) (<*>) e = do+   -- Assumptions about the operators+   let -- (x <+> y) <*> z == x <+> (y <*> z)+       assoc = quantifiedBool $ \(Forall x) (Forall y) (Forall z) -> (x <+> y) <*> z .== x <+> (y <*> z)++       -- x <+> e == e <*> x+       unit  = quantifiedBool $ \(Forall x) -> x <+> e .== e <*> x++   -- Helper: x <+> foldl (<*>) y xs == foldl (<*>) (x <+> y) xs+   helper <-+      induct "foldl over <*>/<+>"+             (\(Forall @"xs" xs) (Forall @"x" x) (Forall @"y" y) -> assoc .=> x <+> foldl (<*>) y xs .== foldl (<*>) (x <+> y) xs) $++             -- Using z to avoid confusion with the variable x already present, following Bird.+             -- z3 can figure out the proper instantiation of ih so the at call is unnecessary, but being explicit is helpful.+             \ih (z, xs) x y -> [assoc] |- x <+> foldl (<*>) y (z .: xs)+                                        =: x <+> foldl (<*>) (y <*> z) xs+                                        ?? ih `at` (Inst @"x" x, Inst @"y" (y <*> z))+                                        =: foldl (<*>) (x <+> (y <*> z)) xs+                                        ?? assoc+                                        =: foldl (<*>) ((x <+> y) <*> z) xs+                                        =: foldl (<*>) (x <+> y) (z .: xs)+                                        =: qed++   -- Final proof:+   induct "foldrFoldl"+          (\(Forall xs) -> assoc .&& unit .=> foldr (<+>) e xs .== foldl (<*>) e xs) $+          \ih (x, xs) -> [assoc, unit] |- foldr (<+>) e (x .: xs)+                                       =: x <+> foldr (<+>) e xs+                                       ?? ih+                                       =: x <+> foldl (<*>) e xs+                                       ?? helper+                                       =: foldl (<*>) (x <+> e) xs+                                       =: foldl (<*>) (e <*> x) xs+                                       =: foldl (<*>) e (x .: xs)+                                       =: qed++-- | Provided @f@ is associative and @a@ is its both left and right-unit:+--+-- @foldr f a . concat == foldr f a . map (foldr f a)@+--+-- >>> runTP $ bookKeeping @Integer (uninterpret "a") (uninterpret "f")+-- Inductive lemma: foldBase+--   Step: Base                        Q.E.D.+--   Step: 1                           Q.E.D.+--   Step: 2                           Q.E.D.+--   Step: 3                           Q.E.D.+--   Step: 4                           Q.E.D.+--   Result:                           Q.E.D.+-- Inductive lemma: foldrOverAppend+--   Step: Base                        Q.E.D.+--   Step: 1                           Q.E.D.+--   Step: 2                           Q.E.D.+--   Step: 3                           Q.E.D.+--   Step: 4                           Q.E.D.+--   Result:                           Q.E.D.+-- Inductive lemma: bookKeeping+--   Step: Base                        Q.E.D.+--   Step: 1                           Q.E.D.+--   Step: 2                           Q.E.D.+--   Step: 3                           Q.E.D.+--   Step: 4                           Q.E.D.+--   Step: 5                           Q.E.D.+--   Step: 6                           Q.E.D.+--   Result:                           Q.E.D.+-- Functions proven terminating: sbv.foldr, sbv.map+-- [Proven] bookKeeping :: Ɐxss ∷ [[Integer]] → Bool+--+-- NB. This theorem does not hold if @f@ does not have a left-unit! Consider the input @[[], [x]]@. Left hand side reduces to+-- @x@, while the right hand side reduces to: @f a x@. And unless @f@ is commutative or @a@ is not also a left-unit,+-- then one can find a counter-example. (Aside: if both left and right units exist for a binary operator, then they+-- are necessarily the same element, since @l = f l r = r@. So, an equivalent statement could simply say @f@ has+-- both left and right units.) A concrete counter-example is:+--+-- @+--   data T = A | B | C+--+--   f :: T -> T -> T+--   f C A = A+--   f C B = A+--   f x _ = x+-- @+--+-- You can verify @f@ is associative. Also note that @C@ is the right-unit for @f@, but it isn't the left-unit.+-- In fact, @f@ has no-left unit by the above argument. In this case, the bookkeeping law produces @B@ for+-- the left-hand-side, and @A@ for the right-hand-side for the input @[[], [B]]@.+bookKeeping :: forall a. SymVal a => SBV a -> (SBV a -> SBV a -> SBV a) -> TP (Proof (Forall "xss" [[a]] -> SBool))+bookKeeping a f = do++   -- Assumptions about f+   let assoc = quantifiedBool $ \(Forall x) (Forall y) (Forall z) -> x `f` (y `f` z) .== (x `f` y) `f` z+       rUnit = quantifiedBool $ \(Forall x) -> x `f` a .== x+       lUnit = quantifiedBool $ \(Forall x) -> a `f` x .== x++   -- Helper: @foldr f y xs = foldr f a xs `f` y@+   helper <- induct "foldBase"+                    (\(Forall xs) (Forall y) -> lUnit .&& assoc .=> foldr f y xs .== foldr f a xs `f` y) $+                    \ih (x, xs) y -> [lUnit, assoc] |- foldr f y (x .: xs)+                                                    =: x `f` foldr f y xs+                                                    ?? ih+                                                    =: x `f` (foldr f a xs `f` y)+                                                    =: (x `f` foldr f a xs) `f` y+                                                    =: foldr f a (x .: xs) `f` y+                                                    =: qed++   foa <- foldrOverAppend a f++   induct "bookKeeping"+          (\(Forall xss) -> assoc .&& rUnit .&& lUnit .=> foldr f a (concat xss) .== foldr f a (map (foldr f a) xss)) $+          \ih (xs, xss) -> [assoc, rUnit, lUnit] |- foldr f a (concat (xs .: xss))+                                                 =: foldr f a (xs ++ concat xss)+                                                 ?? foa+                                                 =: foldr f (foldr f a (concat xss)) xs+                                                 ?? ih+                                                 =: foldr f (foldr f a (map (foldr f a) xss)) xs+                                                 ?? helper `at` (Inst @"xs" xs, Inst @"y" (foldr f a (map (foldr f a) xss)))+                                                 =: foldr f a xs `f` foldr f a (map (foldr f a) xss)+                                                 =: foldr f a (foldr f a xs .: map (foldr f a) xss)+                                                 =: foldr f a (map (foldr f a) (xs .: xss))+                                                 =: qed++-- | @filter p (xs ++ ys) == filter p xs ++ filter p ys@+--+-- >>> runTP $ filterAppend @Integer (uninterpret "p")+-- Inductive lemma: filterAppend+--   Step: Base                     Q.E.D.+--   Step: 1                        Q.E.D.+--   Step: 2                        Q.E.D.+--   Step: 3                        Q.E.D.+--   Step: 4                        Q.E.D.+--   Step: 5                        Q.E.D.+--   Result:                        Q.E.D.+-- Functions proven terminating: sbv.filter+-- [Proven] filterAppend :: Ɐxs ∷ [Integer] → Ɐys ∷ [Integer] → Bool+filterAppend :: forall a. SymVal a => (SBV a -> SBool) -> TP (Proof (Forall "xs" [a] -> Forall "ys" [a] -> SBool))+filterAppend p =+   induct "filterAppend"+          (\(Forall xs) (Forall ys) -> filter p xs ++ filter p ys .== filter p (xs ++ ys)) $+          \ih (x, xs) ys -> [] |- filter p (x .: xs) ++ filter p ys+                               =: ite (p x) (x .: filter p xs) (filter p xs) ++ filter p ys+                               =: ite (p x) (x .: filter p xs ++ filter p ys) (filter p xs ++ filter p ys)+                               ?? ih+                               =: ite (p x) (x .: filter p (xs ++ ys)) (filter p (xs ++ ys))+                               =: filter p (x .: (xs ++ ys))+                               =: filter p ((x .: xs) ++ ys)+                               =: qed++-- | @filter p (concat xss) == concatMap (filter p xss)@+--+-- >>> runTP $ filterConcat @Integer (uninterpret "f")+-- Inductive lemma: filterAppend+--   Step: Base                     Q.E.D.+--   Step: 1                        Q.E.D.+--   Step: 2                        Q.E.D.+--   Step: 3                        Q.E.D.+--   Step: 4                        Q.E.D.+--   Step: 5                        Q.E.D.+--   Result:                        Q.E.D.+-- Inductive lemma: filterConcat+--   Step: Base                     Q.E.D.+--   Step: 1                        Q.E.D.+--   Step: 2                        Q.E.D.+--   Step: 3                        Q.E.D.+--   Result:                        Q.E.D.+-- Functions proven terminating: sbv.filter, sbv.foldr, sbv.map+-- [Proven] filterConcat :: Ɐxss ∷ [[Integer]] → Bool+filterConcat :: forall a. SymVal a => (SBV a -> SBool) -> TP (Proof (Forall "xss" [[a]] -> SBool))+filterConcat p = do+  fa <- filterAppend p++  inductWith cvc5 "filterConcat"+         (\(Forall xss) -> filter p (concat xss) .== concatMap (filter p) xss) $+         \ih (xs, xss) -> [] |- filter p (concat (xs .: xss))+                             =: filter p (xs ++ concat xss)+                             ?? fa+                             =: filter p xs ++ filter p (concat xss)+                             ?? ih+                             =: concatMap (filter p) (xs .: xss)+                             =: qed++-- | @takeWhile f xs ++ dropWhile f xs == xs@+--+-- >>> runTP $ takeDropWhile @Integer (uninterpret "f")+-- Inductive lemma: takeDropWhile+--   Step: Base                      Q.E.D.+--   Step: 1 (2 way case split)+--     Step: 1.1.1                   Q.E.D.+--     Step: 1.1.2                   Q.E.D.+--     Step: 1.2.1                   Q.E.D.+--     Step: 1.2.2                   Q.E.D.+--     Step: 1.Completeness          Q.E.D.+--   Result:                         Q.E.D.+-- Functions proven terminating: sbv.dropWhile, sbv.takeWhile+-- [Proven] takeDropWhile :: Ɐxs ∷ [Integer] → Bool+takeDropWhile :: forall a. SymVal a => (SBV a -> SBool) -> TP (Proof (Forall "xs" [a] -> SBool))+takeDropWhile f =+   induct "takeDropWhile"+          (\(Forall xs) -> takeWhile f xs ++ dropWhile f xs .== xs) $+          \ih (x, xs) -> [] |- takeWhile f (x .: xs) ++ dropWhile f (x .: xs)+                            =: cases [ f x        ==> x .: takeWhile f xs ++ dropWhile f xs+                                                   ?? ih+                                                   =: x .: xs+                                                   =: qed+                                     , sNot (f x) ==> [] ++ x .: xs+                                                   =: x .: xs+                                                   =: qed+                                     ]+-- | Remove adjacent duplicates.+destutter :: SymVal a => SList a -> SList a+destutter = smtFunction "destutter"+          $ \xs -> [sCase| xs of+                      []   -> xs+                      [_]  -> xs+                      a : rest@(b : _) | a .== b ->      destutter rest+                                       | True    -> a .: destutter rest+                   |]++-- | @destutter (destutter xs) == destutter xs@+--+-- >>> runTP $ destutterIdempotent @Integer+-- Inductive lemma: helper1+--   Step: Base                         Q.E.D.+--   Step: 1 (2 way case split)+--     Step: 1.1                        Q.E.D.+--     Step: 1.2.1                      Q.E.D.+--     Step: 1.2.2                      Q.E.D.+--     Step: 1.Completeness             Q.E.D.+--   Result:                            Q.E.D.+-- Inductive lemma: helper2+--   Step: Base                         Q.E.D.+--   Step: 1                            Q.E.D.+--   Result:                            Q.E.D.+-- Inductive lemma (strong): helper3+--   Step: Measure is non-negative      Q.E.D.+--   Step: 1 (3 way case split)+--     Step: 1.1                        Q.E.D.+--     Step: 1.2                        Q.E.D.+--     Step: 1.3.1                      Q.E.D.+--     Step: 1.3.2 (2 way case split)+--       Step: 1.3.2.1.1                Q.E.D.+--       Step: 1.3.2.1.2                Q.E.D.+--       Step: 1.3.2.2.1                Q.E.D.+--       Step: 1.3.2.2.2                Q.E.D.+--       Step: 1.3.2.Completeness       Q.E.D.+--     Step: 1.Completeness             Q.E.D.+--   Result:                            Q.E.D.+-- Lemma: destutterIdempotent           Q.E.D.+-- Functions proven terminating: destutter, noAdd+-- [Proven] destutterIdempotent :: Ɐxs ∷ [Integer] → Bool+destutterIdempotent :: forall a. SymVal a => TP (Proof (Forall "xs" [a] -> SBool))+destutterIdempotent = do++   -- No adjacent duplicates+   let noAdd = smtFunction "noAdd"+             $ \xs -> [sCase| xs of+                         []  -> sTrue+                         [_] -> sTrue+                         a : rest@(b : _) | a .== b -> sFalse+                                          | True    -> noAdd rest+                      |]++   -- Helper: The head of a destuttered non-empty list does not change+   helper1 <- induct "helper1"+                     (\(Forall @"xs" (xs :: SList a)) (Forall @"h" h) -> head (destutter (h .: xs)) .== h) $+                     \ih (x, xs) h -> []+                                   |- head (destutter (h .: x .: xs))+                                   =: cases [ h ./= x ==> trivial+                                            , h .== x ==> head (destutter (x .: xs))+                                                       ?? ih+                                                       =: x+                                                       =: qed+                                            ]++   -- Helper: show that if a list has no adjacent duplicates, then destutter leaves it unchanged:+   helper2 <- induct "helper2"+                     (\(Forall @"xs" (xs :: SList a)) -> noAdd xs .=> destutter xs .== xs) $+                     \ih (x, xs) -> [noAdd (x .: xs)]+                                 |- destutter (x .: xs)+                                 ?? ih+                                 =: x .: xs+                                 =: qed++   -- Helper: prove that noAdd is true for the result of destutter+   helper3 <- sInductWith cvc5 "helper3"+                  (\(Forall @"xs" (xs :: SList a)) -> noAdd (destutter xs))+                  (length, []) $+                  \ih xs -> []+                         |- noAdd (destutter xs)+                         =: [pCase| xs of+                              []  -> trivial+                              [_] -> trivial+                              whole@(a : rest@(b : bs))+                                 -> noAdd (destutter whole)+                                 =: cases [a .== b  ==> noAdd (destutter rest)+                                                     ?? ih+                                                     =: sTrue+                                                     =: qed+                                          , a ./= b ==> noAdd (a .: destutter rest)+                                                     ?? helper1 `at` (Inst @"xs" bs, Inst @"h" b)+                                                     ?? ih+                                                     =: sTrue+                                                     =: qed+                                          ]+                            |]++   -- Now we can prove idempotency easily:+   lemma "destutterIdempotent"+          (\(Forall xs) -> destutter (destutter xs) .== destutter xs)+          [proofOf helper2, proofOf helper3]++-- | @(as ++ bs) \\ cs == (as \\ cs) ++ (bs \\ cs)@+--+-- >>> runTP $ appendDiff @Integer+-- Inductive lemma: appendDiff+--   Step: Base                   Q.E.D.+--   Step: 1                      Q.E.D.+--   Step: 2                      Q.E.D.+--   Step: 3                      Q.E.D.+--   Result:                      Q.E.D.+-- Functions proven terminating: sbv.diff+-- [Proven] appendDiff :: Ɐas ∷ [Integer] → Ɐbs ∷ [Integer] → Ɐcs ∷ [Integer] → Bool+appendDiff :: forall a. (Eq a, SymVal a) => TP (Proof (Forall "as" [a] -> Forall "bs" [a] -> Forall "cs" [a] -> SBool))+appendDiff = induct "appendDiff"+                    (\(Forall as) (Forall bs) (Forall cs) -> (as ++ bs) \\ cs .== (as \\ cs) ++ (bs \\ cs)) $+                    \ih (a, as) bs cs -> [] |- (a .: as ++ bs) \\ cs+                                            =: (a .: (as ++ bs)) \\ cs+                                            =: ite (a `elem` cs) ((as ++ bs) \\ cs) (a .: ((as ++ bs) \\ cs))+                                            ?? ih+                                            =: ((a .: as) \\ cs) ++ (bs \\ cs)+                                            =: qed++-- | @as \\ (bs ++ cs) == (as \\ bs) \\ cs@+--+-- >>> runTP $ diffAppend @Integer+-- Inductive lemma: diffAppend+--   Step: Base                   Q.E.D.+--   Step: 1                      Q.E.D.+--   Step: 2                      Q.E.D.+--   Step: 3                      Q.E.D.+--   Step: 4                      Q.E.D.+--   Result:                      Q.E.D.+-- Functions proven terminating: sbv.diff+-- [Proven] diffAppend :: Ɐas ∷ [Integer] → Ɐbs ∷ [Integer] → Ɐcs ∷ [Integer] → Bool+diffAppend :: forall a. (Eq a, SymVal a) => TP (Proof (Forall "as" [a] -> Forall "bs" [a] -> Forall "cs" [a] -> SBool))+diffAppend = induct "diffAppend"+                    (\(Forall as) (Forall bs) (Forall cs) -> as \\ (bs ++ cs) .== (as \\ bs) \\ cs) $+                    \ih (a, as) bs cs -> [] |- (a .: as) \\ (bs ++ cs)+                                            =: ite (a `elem` (bs ++ cs)) (as \\ (bs ++ cs)) (a .: (as \\ (bs ++ cs)))+                                            ?? ih `at` (Inst @"bs" bs, Inst @"cs" cs)+                                            =: ite (a `elem` (bs ++ cs)) ((as \\ bs) \\ cs) (a .: (as \\ (bs ++ cs)))+                                            ?? ih `at` (Inst @"bs" bs, Inst @"cs" cs)+                                            =: ite (a `elem` (bs ++ cs)) ((as \\ bs) \\ cs) (a .: ((as \\ bs) \\ cs))+                                            =: ((a .: as) \\ bs) \\ cs+                                            =: qed++-- | @(as \\ bs) \\ cs == (as \\ cs) \\ bs@+--+-- >>> runTP $ diffDiff @Integer+-- Inductive lemma: diffDiff+--   Step: Base                      Q.E.D.+--   Step: 1 (2 way case split)+--     Step: 1.1.1                   Q.E.D.+--     Step: 1.1.2                   Q.E.D.+--     Step: 1.1.3 (2 way case split)+--       Step: 1.1.3.1               Q.E.D.+--       Step: 1.1.3.2.1             Q.E.D.+--       Step: 1.1.3.2.2 (a ∉ cs)    Q.E.D.+--       Step: 1.1.3.Completeness    Q.E.D.+--     Step: 1.2.1                   Q.E.D.+--     Step: 1.2.2 (2 way case split)+--       Step: 1.2.2.1.1             Q.E.D.+--       Step: 1.2.2.1.2             Q.E.D.+--       Step: 1.2.2.1.3 (a ∈ cs)    Q.E.D.+--       Step: 1.2.2.2.1             Q.E.D.+--       Step: 1.2.2.2.2             Q.E.D.+--       Step: 1.2.2.2.3 (a ∉ bs)    Q.E.D.+--       Step: 1.2.2.2.4 (a ∉ cs)    Q.E.D.+--       Step: 1.2.2.Completeness    Q.E.D.+--     Step: 1.Completeness          Q.E.D.+--   Result:                         Q.E.D.+-- Functions proven terminating: sbv.diff+-- [Proven] diffDiff :: Ɐas ∷ [Integer] → Ɐbs ∷ [Integer] → Ɐcs ∷ [Integer] → Bool+diffDiff :: forall a. (Eq a, SymVal a) => TP (Proof (Forall "as" [a] -> Forall "bs" [a] -> Forall "cs" [a] -> SBool))+diffDiff = induct "diffDiff"+                  (\(Forall as) (Forall bs) (Forall cs) -> (as \\ bs) \\ cs .== (as \\ cs) \\ bs) $+                  \ih (a, as) bs cs ->+                      [] |- ((a .: as) \\ bs) \\ cs+                         =: cases [ a `elem`    bs ==> (as \\ bs) \\ cs+                                                    ?? ih+                                                    =: (as \\ cs) \\ bs+                                                    =: cases [ a `elem`    cs ==> ((a .: as) \\ cs) \\ bs+                                                                               =: qed+                                                             , a `notElem` cs ==> (a .: (as \\ cs)) \\ bs+                                                                               ?? "a ∉ cs"+                                                                               =: ((a .: as) \\ cs) \\ bs+                                                                               =: qed+                                                             ]+                                  , a `notElem` bs ==> (a .: (as \\ bs)) \\ cs+                                                    =: cases [ a `elem`    cs ==> (as \\ bs) \\ cs+                                                                               ?? ih+                                                                               =: (as \\ cs) \\ bs+                                                                               ?? "a ∈ cs"+                                                                               =: ((a .: as) \\ cs) \\ bs+                                                                               =: qed+                                                             , a `notElem` cs ==> a .: ((as \\ bs) \\ cs)+                                                                               ?? ih+                                                                               =: a .: ((as \\ cs) \\ bs)+                                                                               ?? "a ∉ bs"+                                                                               =: (a .: (as \\ cs)) \\ bs+                                                                               ?? "a ∉ cs"+                                                                               =: ((a .: as) \\ cs) \\ bs+                                                                               =: qed+                                                             ]+                                  ]++-- | Are the two lists disjoint?+disjoint :: (Eq a, SymVal a) => SList a -> SList a -> SBool+disjoint = smtFunction "disjoint"+         $ \xs ys -> [sCase| xs of+                        []     -> sTrue+                        a : as -> a `notElem` ys .&& disjoint as ys+                     |]++-- | @disjoint as bs .=> as \\ bs == as@+--+-- >>> runTP $ disjointDiff @Integer+-- Inductive lemma: disjointDiff+--   Step: Base                     Q.E.D.+--   Step: 1                        Q.E.D.+--   Step: 2                        Q.E.D.+--   Result:                        Q.E.D.+-- Functions proven terminating: disjoint, sbv.diff+-- [Proven] disjointDiff :: Ɐas ∷ [Integer] → Ɐbs ∷ [Integer] → Bool+disjointDiff :: forall a. (Eq a, SymVal a) => TP (Proof (Forall "as" [a] -> Forall "bs" [a] -> SBool))+disjointDiff = induct "disjointDiff"+                      (\(Forall as) (Forall bs) -> disjoint as bs .=> as \\ bs .== as) $+                      \ih (a, as) bs -> [disjoint (a .: as) bs]+                                     |- (a .: as) \\ bs+                                     =: a .: (as \\ bs)+                                     ?? ih+                                     =: a .: as+                                     =: qed++-- | @fst (partition f xs) == filter f xs@+--+-- >>> runTP $ partition1 @Integer (uninterpret "f")+-- Inductive lemma: partition1+--   Step: Base                   Q.E.D.+--   Step: 1                      Q.E.D.+--   Step: 2                      Q.E.D.+--   Step: 3                      Q.E.D.+--   Step: 4                      Q.E.D.+--   Result:                      Q.E.D.+-- Functions proven terminating: sbv.filter, sbv.partition+-- [Proven] partition1 :: Ɐxs ∷ [Integer] → Bool+partition1 :: forall a. SymVal a => (SBV a -> SBool) -> TP (Proof (Forall "xs" [a] -> SBool))+partition1 f =+   induct "partition1"+          (\(Forall xs) -> fst (partition f xs) .== filter f xs) $+          \ih (x, xs) -> [] |- fst (partition f (x .: xs))+                            =: fst (let res = partition f xs+                                    in ite (f x)+                                           (tuple (x .: fst res, snd res))+                                           (tuple (fst res, x .: snd res)))+                            =: ite (f x) (x .: fst (partition f xs)) (fst (partition f xs))+                            ?? ih+                            =: ite (f x) (x .: filter f xs) (filter f xs)+                            =: filter f (x .: xs)+                            =: qed++-- | @snd (partition f xs) == filter (not . f) xs@+--+-- >>> runTP $ partition2 @Integer (uninterpret "f")+-- Inductive lemma: partition2+--   Step: Base                   Q.E.D.+--   Step: 1                      Q.E.D.+--   Step: 2                      Q.E.D.+--   Step: 3                      Q.E.D.+--   Step: 4                      Q.E.D.+--   Result:                      Q.E.D.+-- Functions proven terminating: sbv.filter, sbv.partition+-- [Proven] partition2 :: Ɐxs ∷ [Integer] → Bool+partition2 :: forall a. SymVal a => (SBV a -> SBool) -> TP (Proof (Forall "xs" [a] -> SBool))+partition2 f =+   induct "partition2"+          (\(Forall xs) -> snd (partition f xs) .== filter (sNot . f) xs) $+          \ih (x, xs) -> [] |- snd (partition f (x .: xs))+                            =: snd (let res = partition f xs+                                    in ite (f x)+                                           (tuple (x .: fst res, snd res))+                                           (tuple (fst res, x .: snd res)))+                            =: ite (f x) (snd (partition f xs)) (x .: snd (partition f xs))+                            ?? ih+                            =: ite (f x) (filter (sNot . f) xs) (x .: filter (sNot . f) xs)+                            =: filter (sNot . f) (x .: xs)+                            =: qed++-- | @take n (take m xs) == take (n `smin` m) xs@+--+-- >>> runTP $ take_take @Integer+-- Lemma: take_take    Q.E.D.+-- [Proven] take_take :: Ɐm ∷ Integer → Ɐn ∷ Integer → Ɐxs ∷ [Integer] → Bool+take_take :: forall a. SymVal a => TP (Proof (Forall "m" Integer -> Forall "n" Integer -> Forall "xs" [a] -> SBool))+take_take = lemma "take_take"+                  (\(Forall m) (Forall n) (Forall xs) -> take n (take m xs) .== take (n `smin` m) xs)+                  []++-- | @n >= 0 && m >= 0 ==> drop n (drop m xs) == drop (n + m) xs@+--+-- >>> runTP $ drop_drop @Integer+-- Lemma: drop_drop    Q.E.D.+-- [Proven] drop_drop :: Ɐm ∷ Integer → Ɐn ∷ Integer → Ɐxs ∷ [Integer] → Bool+drop_drop :: forall a. SymVal a => TP (Proof (Forall "m" Integer -> Forall "n" Integer -> Forall "xs" [a] -> SBool))+drop_drop = lemma "drop_drop"+                  (\(Forall m) (Forall n) (Forall xs) -> n .>= 0 .&& m .>= 0 .=> drop n (drop m xs) .== drop (n + m) xs)+                  []++-- | @take n xs ++ drop n xs == xs@+--+-- >>> runTP $ take_drop @Integer+-- Lemma: take_drop    Q.E.D.+-- [Proven] take_drop :: Ɐn ∷ Integer → Ɐxs ∷ [Integer] → Bool+take_drop :: forall a. SymVal a => TP (Proof (Forall "n" Integer -> Forall "xs" [a] -> SBool))+take_drop = lemma "take_drop"+                  (\(Forall n) (Forall xs) -> take n xs ++ drop n xs .== xs)+                  []++-- | @n .> 0 ==> take n (x .: xs) == x .: take (n - 1) xs@+--+-- >>> runTP $ take_cons @Integer+-- Lemma: take_cons    Q.E.D.+-- [Proven] take_cons :: Ɐn ∷ Integer → Ɐx ∷ Integer → Ɐxs ∷ [Integer] → Bool+take_cons :: forall a. SymVal a => TP (Proof (Forall "n" Integer -> Forall "x" a -> Forall "xs" [a] -> SBool))+take_cons = lemma "take_cons"+                  (\(Forall n) (Forall x) (Forall xs) -> n .> 0 .=> take n (x .: xs) .== x .: take (n - 1) xs)+                  []++-- | @take n (map f xs) == map f (take n xs)@+--+-- >>> runTP $ take_map @Integer @Integer (uninterpret "f")+-- Lemma: take_cons                   Q.E.D.+-- Lemma: map1                        Q.E.D.+-- Lemma: take_map.n <= 0             Q.E.D.+-- Inductive lemma: take_map.n > 0+--   Step: Base                       Q.E.D.+--   Step: 1                          Q.E.D.+--   Step: 2                          Q.E.D.+--   Step: 3                          Q.E.D.+--   Step: 4                          Q.E.D.+--   Step: 5                          Q.E.D.+--   Result:                          Q.E.D.+-- Lemma: take_map+--   Step: 1                          Q.E.D.+--   Result:                          Q.E.D.+-- Functions proven terminating: sbv.map+-- [Proven] take_map :: Ɐn ∷ Integer → Ɐxs ∷ [Integer] → Bool+take_map :: forall a b. (SymVal a, SymVal b) => (SBV a -> SBV b) -> TP (Proof (Forall "n" Integer -> Forall "xs" [a] -> SBool))+take_map f = do+    tc   <- take_cons @a++    map1 <- lemma "map1"+                  (\(Forall x) (Forall xs) -> map f (x .: xs) .== f x .: map f xs)+                  []++    h1 <- lemma "take_map.n <= 0"+                 (\(Forall @"xs" xs) (Forall @"n" n) -> n .<= 0 .=> take n (map f xs) .== map f (take n xs))+                 []++    h2 <- inductWith cvc5 "take_map.n > 0"+                 (\(Forall @"xs" xs) (Forall @"n" n) -> n .> 0 .=> take n (map f xs) .== map f (take n xs)) $+                 \ih (x, xs) n -> [n .> 0] |- take n (map f (x .: xs))+                                           =: take n (f x .: map f xs)+                                           =: f x .: take (n - 1) (map f xs)+                                           ?? ih `at` Inst @"n" (n-1)+                                           =: f x .: map f (take (n - 1) xs)+                                           ?? map1 `at` (Inst @"x" x, Inst @"xs" (take (n - 1) xs))+                                           =: map f (x .: take (n - 1) xs)+                                           ?? tc+                                           =: map f (take n (x .: xs))+                                           =: qed++    calc "take_map"+         (\(Forall n) (Forall xs) -> take n (map f xs) .== map f (take n xs)) $+         \n xs -> [] |- take n (map f xs)+                     ?? h1+                     ?? h2+                     =: map f (take n xs)+                     =: qed++-- | @n .> 0 ==> drop n (x .: xs) == drop (n - 1) xs@+--+-- >>> runTP $ drop_cons @Integer+-- Lemma: drop_cons    Q.E.D.+-- [Proven] drop_cons :: Ɐn ∷ Integer → Ɐx ∷ Integer → Ɐxs ∷ [Integer] → Bool+drop_cons :: forall a. SymVal a => TP (Proof (Forall "n" Integer -> Forall "x" a -> Forall "xs" [a] -> SBool))+drop_cons = lemma "drop_cons"+                  (\(Forall n) (Forall x) (Forall xs) -> n .> 0 .=> drop n (x .: xs) .== drop (n - 1) xs)+                  []++-- | @drop n (map f xs) == map f (drop n xs)@+--+-- >>> runTP $ drop_map @Integer @String (uninterpret "f")+-- Lemma: drop_cons                   Q.E.D.+-- Lemma: drop_cons                   Q.E.D.+-- Lemma: drop_map.n <= 0             Q.E.D.+-- Inductive lemma: drop_map.n > 0+--   Step: Base                       Q.E.D.+--   Step: 1                          Q.E.D.+--   Step: 2                          Q.E.D.+--   Step: 3                          Q.E.D.+--   Step: 4                          Q.E.D.+--   Result:                          Q.E.D.+-- Lemma: drop_map+--   Step: 1                          Q.E.D.+--   Step: 2                          Q.E.D.+--   Step: 3                          Q.E.D.+--   Step: 4                          Q.E.D.+--   Result:                          Q.E.D.+-- Functions proven terminating: sbv.map+-- [Proven] drop_map :: Ɐn ∷ Integer → Ɐxs ∷ [Integer] → Bool+drop_map :: forall a b. (SymVal a, SymVal b) => (SBV a -> SBV b) -> TP (Proof (Forall "n" Integer -> Forall "xs" [a] -> SBool))+drop_map f = do+   dcA <- drop_cons @a+   dcB <- drop_cons @b++   h1 <- lemma "drop_map.n <= 0"+               (\(Forall @"xs" xs) (Forall @"n" n) -> n .<= 0 .=> drop n (map f xs) .== map f (drop n xs))+               []++   h2 <- induct "drop_map.n > 0"+                (\(Forall @"xs" xs) (Forall @"n" n) -> n .> 0 .=> drop n (map f xs) .== map f (drop n xs)) $+                \ih (x, xs) n -> [n .> 0] |- drop n (map f (x .: xs))+                                          =: drop n (f x .: map f xs)+                                          ?? dcB `at` (Inst @"n" n, Inst @"x" (f x), Inst @"xs" (map f xs))+                                          =: drop (n - 1) (map f xs)+                                          ?? ih `at` Inst @"n" (n-1)+                                          =: map f (drop (n - 1) xs)+                                          ?? dcA `at` (Inst @"n" n, Inst @"x" x, Inst @"xs" xs)+                                          =: map f (drop n (x .: xs))+                                          =: qed++   -- I'm a bit surprised that z3 can't deduce the following with a simple-lemma, which is essentially a simple case-split.+   -- But the good thing about calc is that it lets us direct the tool in precise ways that we'd like.+   calc "drop_map"+        (\(Forall n) (Forall xs) -> drop n (map f xs) .== map f (drop n xs)) $+        \n xs -> [] |- let result = drop n (map f xs) .== map f (drop n xs)+                       in result+                       =: ite (n .<= 0) (n .<= 0 .=> result) (n .> 0 .=> result)+                       ?? h1+                       =: ite (n .<= 0) sTrue (n .> 0 .=> result)+                       ?? h2+                       =: ite (n .<= 0) sTrue sTrue+                       =: sTrue+                       =: qed++-- | @n >= 0 ==> length (take n xs) == length xs \`min\` n@+--+-- >>> runTP $ length_take @Integer+-- Lemma: length_take    Q.E.D.+-- [Proven] length_take :: Ɐn ∷ Integer → Ɐxs ∷ [Integer] → Bool+length_take :: forall a. SymVal a => TP (Proof (Forall "n" Integer -> Forall "xs" [a] -> SBool))+length_take = lemma "length_take"+                    (\(Forall n) (Forall xs) -> n .>= 0 .=> length (take n xs) .== length xs `smin` n)+                    []++-- | @n >= 0 ==> length (drop n xs) == (length xs - n) \`max\` 0@+--+-- >>> runTP $ length_drop @Integer+-- Lemma: length_drop    Q.E.D.+-- [Proven] length_drop :: Ɐn ∷ Integer → Ɐxs ∷ [Integer] → Bool+length_drop :: forall a. SymVal a => TP (Proof (Forall "n" Integer -> Forall "xs" [a] -> SBool))+length_drop = lemma "length_drop"+                    (\(Forall n) (Forall xs) -> n .>= 0 .=> length (drop n xs) .== (length xs - n) `smax` 0)+                    []++-- | @length xs \<= n ==\> take n xs == xs@+--+-- >>> runTP $ take_all @Integer+-- Lemma: take_all     Q.E.D.+-- [Proven] take_all :: Ɐn ∷ Integer → Ɐxs ∷ [Integer] → Bool+take_all :: forall a. SymVal a => TP (Proof (Forall "n" Integer -> Forall "xs" [a] -> SBool))+take_all = lemma "take_all"+                 (\(Forall n) (Forall xs) -> length xs .<= n .=> take n xs .== xs)+                 []++-- | @length xs \<= n ==\> drop n xs == []@+--+-- >>> runTP $ drop_all @Integer+-- Lemma: drop_all     Q.E.D.+-- [Proven] drop_all :: Ɐn ∷ Integer → Ɐxs ∷ [Integer] → Bool+drop_all :: forall a. SymVal a => TP (Proof (Forall "n" Integer -> Forall "xs" [a] -> SBool))+drop_all = lemma "drop_all"+                 (\(Forall n) (Forall xs) -> length xs .<= n .=> drop n xs .== [])+                 []++-- | @take n (xs ++ ys) == (take n xs ++ take (n - length xs) ys)@+--+-- >>> runTP $ take_append @Integer+-- Lemma: take_append    Q.E.D.+-- [Proven] take_append :: Ɐn ∷ Integer → Ɐxs ∷ [Integer] → Ɐys ∷ [Integer] → Bool+take_append :: forall a. SymVal a => TP (Proof (Forall "n" Integer -> Forall "xs" [a] -> Forall "ys" [a] -> SBool))+take_append = lemmaWith cvc5 "take_append"+                        (\(Forall n) (Forall xs) (Forall ys) -> take n (xs ++ ys) .== take n xs ++ take (n - length xs) ys)+                        []++-- | @drop n (xs ++ ys) == drop n xs ++ drop (n - length xs) ys@+--+-- NB. As of Feb 2025, z3 struggles to prove this, but cvc5 gets it out-of-the-box.+--+-- >>> runTP $ drop_append @Integer+-- Lemma: drop_append    Q.E.D.+-- [Proven] drop_append :: Ɐn ∷ Integer → Ɐxs ∷ [Integer] → Ɐys ∷ [Integer] → Bool+drop_append :: forall a. SymVal a => TP (Proof (Forall "n" Integer -> Forall "xs" [a] -> Forall "ys" [a] -> SBool))+drop_append = lemmaWith cvc5 "drop_append"+                        (\(Forall n) (Forall xs) (Forall ys) -> drop n (xs ++ ys) .== drop n xs ++ drop (n - length xs) ys)+                        []++-- | @length xs == length ys ==> map fst (zip xs ys) = xs@+--+-- >>> runTP $ map_fst_zip @Integer @Integer+-- Inductive lemma: map_fst_zip+--   Step: Base                    Q.E.D.+--   Step: 1                       Q.E.D.+--   Step: 2                       Q.E.D.+--   Step: 3                       Q.E.D.+--   Step: 4                       Q.E.D.+--   Result:                       Q.E.D.+-- Functions proven terminating: sbv.map, sbv.zip+-- [Proven] map_fst_zip :: (Ɐxs ∷ [Integer], Ɐys ∷ [Integer]) → Bool+map_fst_zip :: forall a b. (SymVal a, SymVal b) => TP (Proof ((Forall "xs" [a], Forall "ys" [b]) -> SBool))+map_fst_zip = induct "map_fst_zip"+                     (\(Forall xs, Forall ys) -> length xs .== length ys .=> map fst (zip xs ys) .== xs) $+                     \ih (x, xs, y, ys) -> [length (x .: xs) .== length (y .: ys)]+                                        |- map fst (zip (x .: xs) (y .: ys))+                                        =: map fst (tuple (x, y) .: zip xs ys)+                                        =: fst (tuple (x, y)) .: map fst (zip xs ys)+                                        =: x .: map fst (zip xs ys)+                                        ?? ih+                                        =: x .: xs+                                        =: qed++-- | @length xs == length ys ==> map snd (zip xs ys) = xs@+--+-- >>> runTP $ map_snd_zip @Integer @Integer+-- Inductive lemma: map_snd_zip+--   Step: Base                    Q.E.D.+--   Step: 1                       Q.E.D.+--   Step: 2                       Q.E.D.+--   Step: 3                       Q.E.D.+--   Step: 4                       Q.E.D.+--   Result:                       Q.E.D.+-- Functions proven terminating: sbv.map, sbv.zip+-- [Proven] map_snd_zip :: (Ɐxs ∷ [Integer], Ɐys ∷ [Integer]) → Bool+map_snd_zip :: forall a b. (SymVal a, SymVal b) => TP (Proof ((Forall "xs" [a], Forall "ys" [b]) -> SBool))+map_snd_zip = induct "map_snd_zip"+                     (\(Forall xs, Forall ys) -> length xs .== length ys .=> map snd (zip xs ys) .== ys) $+                     \ih (x, xs, y, ys) -> [length (x .: xs) .== length (y .: ys)]+                                        |- map snd (zip (x .: xs) (y .: ys))+                                        =: map snd (tuple (x, y) .: zip xs ys)+                                        =: snd (tuple (x, y)) .: map snd (zip xs ys)+                                        =: y .: map snd (zip xs ys)+                                        ?? ih+                                        =: y .: ys+                                        =: qed++-- | @map fst (zip xs ys) == take (min (length xs) (length ys)) xs@+--+-- >>> runTP $ map_fst_zip_take @Integer @Integer+-- Lemma: take_cons                     Q.E.D.+-- Inductive lemma: map_fst_zip_take+--   Step: Base                         Q.E.D.+--   Step: 1                            Q.E.D.+--   Step: 2                            Q.E.D.+--   Step: 3                            Q.E.D.+--   Step: 4                            Q.E.D.+--   Step: 5                            Q.E.D.+--   Result:                            Q.E.D.+-- Functions proven terminating: sbv.map, sbv.zip+-- [Proven] map_fst_zip_take :: (Ɐxs ∷ [Integer], Ɐys ∷ [Integer]) → Bool+map_fst_zip_take :: forall a b. (SymVal a, SymVal b) => TP (Proof ((Forall "xs" [a], Forall "ys" [b]) -> SBool))+map_fst_zip_take = do+   tc <- take_cons @a++   induct "map_fst_zip_take"+          (\(Forall xs, Forall ys) -> map fst (zip xs ys) .== take (length xs `smin` length ys) xs) $+          \ih (x, xs, y, ys) -> [] |- map fst (zip (x .: xs) (y .: ys))+                                   =: map fst (tuple (x, y) .: zip xs ys)+                                   =: x .: map fst (zip xs ys)+                                   ?? ih+                                   =: x .: take (length xs `smin` length ys) xs+                                   ?? tc+                                   =: take (1 + (length xs `smin` length ys)) (x .: xs)+                                   =: take (length (x .: xs) `smin` length (y .: ys)) (x .: xs)+                                   =: qed++-- | @map snd (zip xs ys) == take (min (length xs) (length ys)) xs@+--+-- >>> runTP $ map_snd_zip_take @Integer @Integer+-- Lemma: take_cons                     Q.E.D.+-- Inductive lemma: map_snd_zip_take+--   Step: Base                         Q.E.D.+--   Step: 1                            Q.E.D.+--   Step: 2                            Q.E.D.+--   Step: 3                            Q.E.D.+--   Step: 4                            Q.E.D.+--   Step: 5                            Q.E.D.+--   Result:                            Q.E.D.+-- Functions proven terminating: sbv.map, sbv.zip+-- [Proven] map_snd_zip_take :: (Ɐxs ∷ [Integer], Ɐys ∷ [Integer]) → Bool+map_snd_zip_take :: forall a b. (SymVal a, SymVal b) => TP (Proof ((Forall "xs" [a], Forall "ys" [b]) -> SBool))+map_snd_zip_take = do+   tc <- take_cons @a++   induct "map_snd_zip_take"+          (\(Forall xs, Forall ys) -> map snd (zip xs ys) .== take (length xs `smin` length ys) ys) $+          \ih (x, xs, y, ys) -> [] |- map snd (zip (x .: xs) (y .: ys))+                                   =: map snd (tuple (x, y) .: zip xs ys)+                                   =: y .: map snd (zip xs ys)+                                   ?? ih+                                   =: y .: take (length xs `smin` length ys) ys+                                   ?? tc+                                   =: take (1 + (length xs `smin` length ys)) (y .: ys)+                                   =: take (length (x .: xs) `smin` length (y .: ys)) (y .: ys)+                                   =: qed++-- | Count the number of occurrences of an element in a list+count :: SymVal a => SBV a -> SList a -> SInteger+count = smtFunction "count"+      $ \e l -> [sCase| l of+                   []               -> 0+                   x : xs | e .== x -> 1 + count e xs+                          | True    -> count e xs+                |]++-- | One-step unfolding of 'count' on a cons cell. The solver can expand the+-- @define-fun-rec@ but struggles to fold it back, so we provide this as a reusable hint.+--+-- >>> runTP $ countOneStep @Integer+-- Lemma: countOneStep    Q.E.D.+-- Functions proven terminating: count+-- [Proven] countOneStep :: Ɐe ∷ Integer → Ɐx ∷ Integer → Ɐxs ∷ [Integer] → Bool+countOneStep :: forall a. SymVal a => TP (Proof (Forall "e" a -> Forall "x" a -> Forall "xs" [a] -> SBool))+countOneStep = lemma "countOneStep"+   (\(Forall @"e" e) (Forall @"x" x) (Forall @"xs" (xs :: SList a)) ->+      count e (x .: xs) .== ite (e .== x) (1 + count e xs) (count e xs))+   []++-- | Interleave the elements of two lists. If one ends, we take the rest from the other.+interleave :: SymVal a => SList a -> SList a -> SList a+interleave = smtFunction "interleave"+           $ \xs ys -> [sCase| xs of+                           []     -> ys+                           a : as -> a .: interleave ys as+                        |]++-- | Prove that interleave preserves total length.+--+-- The induction here is on the total length of the lists, and hence+-- we use the generalized induction principle. We have:+--+-- >>> runTP $ interleaveLen @Integer+-- Inductive lemma (strong): interleaveLen+--   Step: Measure is non-negative            Q.E.D.+--   Step: 1 (2 way case split)+--     Step: 1.1                              Q.E.D.+--     Step: 1.2.1                            Q.E.D.+--     Step: 1.2.2                            Q.E.D.+--     Step: 1.2.3                            Q.E.D.+--     Step: 1.Completeness                   Q.E.D.+--   Result:                                  Q.E.D.+-- Functions proven terminating: interleave+-- [Proven] interleaveLen :: Ɐxs ∷ [Integer] → Ɐys ∷ [Integer] → Bool+interleaveLen :: forall a. SymVal a => TP (Proof (Forall "xs" [a] -> Forall "ys" [a] -> SBool))+interleaveLen = sInduct "interleaveLen"+                        (\(Forall xs) (Forall ys) -> length xs + length ys .== length (interleave xs ys))+                        (\xs ys -> length xs + length ys, []) $+                        \ih xs ys -> [] |- length xs + length ys .== length (interleave xs ys)+                                        =: [pCase| xs of+                                              []             -> trivial+                                              whole@(_ : as) ->+                                                   length whole + length ys .== length (interleave whole ys)+                                                =: 1 + length as + length ys .== 1 + length (interleave ys as)+                                                ?? ih `at` (Inst @"xs" ys, Inst @"ys" as)+                                                =: sTrue+                                                =: qed+                                           |]++-- | Uninterleave the elements of two lists. We roughly split it into two, of alternating elements.+uninterleave :: SymVal a => SList a -> STuple [a] [a]+uninterleave lst = uninterleaveGen lst (tuple ([], []))++-- | Generalized form of uninterleave with the auxiliary lists made explicit.+uninterleaveGen :: SymVal a => SList a -> STuple [a] [a] -> STuple [a] [a]+uninterleaveGen = smtFunction "uninterleave"+                $ \xs alts -> let (es, os) = untuple alts+                              in [sCase| xs of+                                    []     -> tuple (reverse es, reverse os)+                                    x : ys -> uninterleaveGen ys (tuple (os, x .: es))+                                 |]++-- | The functions 'uninterleave' and 'interleave' are inverses so long as the inputs are of the same length. (The equality+-- would even hold if the first argument has one extra element, but we keep things simple here.)+--+-- We have:+--+-- >>> runTP $ interleaveRoundTrip @Integer+-- Lemma: revCons                            Q.E.D.+-- Inductive lemma (strong): roundTripGen+--   Step: Measure is non-negative           Q.E.D.+--   Step: 1 (3 way case split)+--     Step: 1.1                             Q.E.D.+--     Step: 1.2                             Q.E.D.+--     Step: 1.3.1                           Q.E.D.+--     Step: 1.3.2                           Q.E.D.+--     Step: 1.3.3                           Q.E.D.+--     Step: 1.3.4                           Q.E.D.+--     Step: 1.3.5                           Q.E.D.+--     Step: 1.3.6                           Q.E.D.+--     Step: 1.3.7                           Q.E.D.+--     Step: 1.3.8                           Q.E.D.+--     Step: 1.Completeness                  Q.E.D.+--   Result:                                 Q.E.D.+-- Lemma: interleaveRoundTrip+--   Step: 1                                 Q.E.D.+--   Step: 2                                 Q.E.D.+--   Result:                                 Q.E.D.+-- Functions proven terminating: interleave, sbv.reverse, uninterleave+-- [Proven] interleaveRoundTrip :: Ɐxs ∷ [Integer] → Ɐys ∷ [Integer] → Bool+interleaveRoundTrip :: forall a. SymVal a => TP (Proof (Forall "xs" [a] -> Forall "ys" [a] -> SBool))+interleaveRoundTrip = do++   revHelper <- lemma "revCons" (\(Forall a) (Forall as) (Forall bs) -> reverse @a (a .: as) ++ bs .== reverse as ++ (a .: bs)) []++   -- Generalize the theorem first to take the helper lists explicitly+   roundTripGen <- sInductWith cvc5+         "roundTripGen"+         (\(Forall @"xs" xs) (Forall @"ys" ys) (Forall @"alts" alts) ->+               length xs .== length ys .=> let (es, os) = untuple alts+                                           in uninterleaveGen (interleave xs ys) alts .== tuple (reverse es ++ xs, reverse os ++ ys))+         (\xs ys _alts -> length xs + length ys, []) $+         \ih xs ys alts -> [length xs .== length ys]+                        |- let (es, os) = untuple alts+                        in uninterleaveGen (interleave xs ys) alts+                        =: [pCase| tuple (xs, ys) of+                              ([], _) -> trivial+                              (_, []) -> trivial+                              (ll@(a : as), rr@(b : bs)) ->+                                   uninterleaveGen (interleave ll rr) alts+                                =: uninterleaveGen (a .: interleave rr as) alts+                                =: uninterleaveGen (a .: b .: interleave as bs) alts+                                =: uninterleaveGen (interleave as bs) (tuple (a .: es, b .: os))+                                ?? ih `at` (Inst @"xs" as, Inst @"ys" bs, Inst @"alts" (tuple (a .: es, b .: os)))+                                =: tuple (reverse (a .: es) ++ as, reverse (b .: os) ++ bs)+                                ?? revHelper `at` (Inst @"a" a, Inst @"as" es, Inst @"bs" as)+                                =: tuple (reverse es ++ ll, reverse (b .: os) ++ bs)+                                ?? revHelper `at` (Inst @"a" b, Inst @"as" os, Inst @"bs" bs)+                                =: tuple (reverse es ++ ll, reverse os ++ rr)+                                =: tuple (reverse es ++ xs, reverse os ++ ys)+                                =: qed+                           |]++   -- Round-trip theorem:+   calc "interleaveRoundTrip"+           (\(Forall xs) (Forall ys) -> length xs .== length ys .=> uninterleave (interleave xs ys) .== tuple (xs, ys)) $+           \xs ys -> [length xs .== length ys]+                  |- uninterleave (interleave xs ys)+                  =: uninterleaveGen (interleave xs ys) (tuple ([], []))+                  ?? roundTripGen `at` (Inst @"xs" xs, Inst @"ys" ys, Inst @"alts" (tuple ([], [])))+                  =: tuple (reverse [] ++ xs, reverse [] ++ ys)+                  =: qed++-- | @count e (xs ++ ys) == count e xs + count e ys@+--+-- >>> runTP $ countAppend @Integer+-- Inductive lemma: countAppend+--   Step: Base                    Q.E.D.+--   Step: 1                       Q.E.D.+--   Step: 2 (unfold count)        Q.E.D.+--   Step: 3                       Q.E.D.+--   Step: 4 (simplify)            Q.E.D.+--   Result:                       Q.E.D.+-- Functions proven terminating: count+-- [Proven] countAppend :: Ɐxs ∷ [Integer] → Ɐys ∷ [Integer] → Ɐe ∷ Integer → Bool+countAppend :: forall a. SymVal a => TP (Proof (Forall "xs" [a] -> Forall "ys" [a] -> Forall "e" a -> SBool))+countAppend =+   induct "countAppend"+          (\(Forall xs) (Forall ys) (Forall e) -> count e (xs ++ ys) .== count e xs + count e ys) $+          \ih (x, xs) ys e -> [] |- count e ((x .: xs) ++ ys)+                                 =: count e (x .: (xs ++ ys))+                                 ?? "unfold count"+                                 =: (let r = count e (xs ++ ys) in ite (e .== x) (1+r) r)+                                 ?? ih `at` (Inst @"ys" ys, Inst @"e" e)+                                 =: (let r = count e xs + count e ys in ite (e .== x) (1+r) r)+                                 ?? "simplify"+                                 =: count e (x .: xs) + count e ys+                                 =: qed++-- | @count e (take n xs) + count e (drop n xs) == count e xs@+--+-- >>> runTP $ takeDropCount @Integer+-- Inductive lemma: countAppend+--   Step: Base                    Q.E.D.+--   Step: 1                       Q.E.D.+--   Step: 2 (unfold count)        Q.E.D.+--   Step: 3                       Q.E.D.+--   Step: 4 (simplify)            Q.E.D.+--   Result:                       Q.E.D.+-- Lemma: take_drop                Q.E.D.+-- Lemma: takeDropCount+--   Step: 1                       Q.E.D.+--   Step: 2                       Q.E.D.+--   Result:                       Q.E.D.+-- Functions proven terminating: count+-- [Proven] takeDropCount :: Ɐxs ∷ [Integer] → Ɐn ∷ Integer → Ɐe ∷ Integer → Bool+takeDropCount :: forall a. SymVal a => TP (Proof (Forall "xs" [a] -> Forall "n" Integer -> Forall "e" a -> SBool))+takeDropCount = do+       capp     <- countAppend @a+       takeDrop <- take_drop   @a++       calc "takeDropCount"+            (\(Forall xs) (Forall n) (Forall e) -> count e (take n xs) + count e (drop n xs) .== count e xs) $+            \xs n e -> [] |- count e (take n xs) + count e (drop n xs)+                          ?? capp `at` (Inst @"xs" (take n xs), Inst @"ys" (drop n xs), Inst @"e" e)+                          =: count e (take n xs ++ drop n xs)+                          ?? takeDrop+                          =: count e xs+                          =: qed++-- | @count e xs >= 0@+--+-- >>> runTP $ countNonNeg @Integer+-- Inductive lemma: countNonNeg+--   Step: Base                    Q.E.D.+--   Step: 1 (2 way case split)+--     Step: 1.1.1                 Q.E.D.+--     Step: 1.1.2                 Q.E.D.+--     Step: 1.2.1                 Q.E.D.+--     Step: 1.2.2                 Q.E.D.+--     Step: 1.Completeness        Q.E.D.+--   Result:                       Q.E.D.+-- Functions proven terminating: count+-- [Proven] countNonNeg :: Ɐxs ∷ [Integer] → Ɐe ∷ Integer → Bool+countNonNeg :: forall a. SymVal a => TP (Proof (Forall "xs" [a] -> Forall "e" a -> SBool))+countNonNeg =+   induct "countNonNeg"+          (\(Forall xs) (Forall e) -> count e xs .>= 0) $+          \ih (x, xs) e -> [] |- count e (x .: xs) .>= 0+                              =: cases [ e .== x ==> 1 + count e xs .>= 0+                                                  ?? ih+                                                  =: sTrue+                                                  =: qed+                                       , e ./= x ==> count e xs .>= 0+                                                  ?? ih+                                                  =: sTrue+                                                  =: qed+                                       ]++-- | @e \`elem\` xs ==> count e xs .> 0@+--+-- >>> runTP $ countElem @Integer+-- Inductive lemma: countNonNeg+--   Step: Base                    Q.E.D.+--   Step: 1 (2 way case split)+--     Step: 1.1.1                 Q.E.D.+--     Step: 1.1.2                 Q.E.D.+--     Step: 1.2.1                 Q.E.D.+--     Step: 1.2.2                 Q.E.D.+--     Step: 1.Completeness        Q.E.D.+--   Result:                       Q.E.D.+-- Inductive lemma: countElem+--   Step: Base                    Q.E.D.+--   Step: 1 (2 way case split)+--     Step: 1.1.1                 Q.E.D.+--     Step: 1.1.2                 Q.E.D.+--     Step: 1.2.1                 Q.E.D.+--     Step: 1.2.2                 Q.E.D.+--     Step: 1.Completeness        Q.E.D.+--   Result:                       Q.E.D.+-- Functions proven terminating: count+-- [Proven] countElem :: Ɐxs ∷ [Integer] → Ɐe ∷ Integer → Bool+countElem :: forall a. (Eq a, SymVal a) => TP (Proof (Forall "xs" [a] -> Forall "e" a -> SBool))+countElem = do++    cnn <- countNonNeg @a++    induct "countElem"+           (\(Forall xs) (Forall e) -> e `elem` xs .=> count e xs .> 0) $+           \ih (x, xs) e -> [e `elem` (x .: xs)]+                         |- count e (x .: xs) .> 0+                         =: cases [ e .== x ==> 1 + count e xs .> 0+                                             ?? cnn+                                             =: sTrue+                                             =: qed+                                  , e ./= x ==> count e xs .> 0+                                             ?? ih+                                             =: sTrue+                                             =: qed+                                  ]++-- | @count e xs .> 0 .=> e \`elem\` xs@+--+-- >>> runTP $ elemCount @Integer+-- Inductive lemma: elemCount+--   Step: Base                  Q.E.D.+--   Step: 1 (2 way case split)+--     Step: 1.1                 Q.E.D.+--     Step: 1.2.1               Q.E.D.+--     Step: 1.2.2               Q.E.D.+--     Step: 1.Completeness      Q.E.D.+--   Result:                     Q.E.D.+-- Functions proven terminating: count+-- [Proven] elemCount :: Ɐxs ∷ [Integer] → Ɐe ∷ Integer → Bool+elemCount :: forall a. (Eq a, SymVal a) => TP (Proof (Forall "xs" [a] -> Forall "e" a -> SBool))+elemCount =+    induct "elemCount"+           (\(Forall xs) (Forall e) -> count e xs .> 0 .=> e `elem` xs) $+           \ih (x, xs) e -> [count e xs .> 0]+                         |- e `elem` (x .: xs)+                         =: cases [ e .== x ==> trivial+                                  , e ./= x ==> e `elem` xs+                                             ?? ih+                                             =: sTrue+                                             =: qed+                                  ]++{- HLint ignore revRev         "Redundant reverse" -}+{- HLint ignore allAny         "Use and"           -}+{- HLint ignore bookKeeping    "Fuse foldr/map"    -}+{- HLint ignore foldrMapFusion "Fuse foldr/map"    -}+{- HLint ignore filterConcat   "Move filter"       -}+{- HLint ignore module         "Use camelCase"     -}+{- HLint ignore module         "Use first"         -}+{- HLint ignore module         "Use second"        -}+{- HLint ignore module         "Use zipWith"       -}+{- HLint ignore mapCompose     "Use map once"      -}+{- HLint ignore tailsAppend    "Avoid lambda"      -}+{- HLint ignore tailsAppend    "Use :"             -}+{- HLint ignore mapReverse     "Evaluate"          -}+{- HLint ignore mapConcat      "Use concatMap"     -}+{- HLint ignore takeDropWhile  "Evaluate"          -}
Documentation/SBV/Examples/TP/Majority.hs view
@@ -10,8 +10,8 @@ -- closely, which you can find at <https://github.com/acl2/acl2/blob/master/books/demos/majority-vote.lisp>. ----------------------------------------------------------------------------- -{-# LANGUAGE CPP                 #-} {-# LANGUAGE DataKinds           #-}+{-# LANGUAGE QuasiQuotes         #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TypeAbstractions    #-} {-# LANGUAGE TypeApplications    #-}@@ -26,7 +26,7 @@ import Data.SBV.List  import Data.SBV.TP-import qualified Data.SBV.TP.List as TP+import qualified Documentation.SBV.Examples.TP.Lists as TP  -- * Calculating majority @@ -35,11 +35,11 @@ -- majority element, then the result is irrelevant. majority :: SymVal a => SBV a -> SInteger -> SList a -> SBV a majority = smtFunction "majority"-                    $ \c i lst ->  ite (null lst) c-                                       (let (x, xs) = uncons lst-                                        in ite (i .== 0)-                                                (majority x 1 xs)-                                                (majority c (i + ite (c .== x) 1 (-1)) xs))+                    $ \c i lst -> [sCase| lst of+                                     []               -> c+                                     x : xs | i .== 0 -> majority x 1 xs+                                            | True    -> majority c (i + ite (c .== x) 1 (-1)) xs+                                  |]  -- | We can now define mjrty, which simply feeds the majority function with an arbitrary element of the domain. -- By the definition of 'majority' above, this arbitrary element will be returned if the given list is empty.@@ -72,25 +72,26 @@ -- -- >>> correctness @Integer -- Inductive lemma: majorityGeneral---   Step: Base                            Q.E.D.+--   Step: Base                        Q.E.D. --   Step: 1 (2 way case split)---     Step: 1.1.1                         Q.E.D.---     Step: 1.1.2                         Q.E.D.---     Step: 1.2.1                         Q.E.D.+--     Step: 1.1.1                     Q.E.D.+--     Step: 1.1.2                     Q.E.D.+--     Step: 1.2.1                     Q.E.D. --     Step: 1.2.2 (2 way case split)---       Step: 1.2.2.1.1                   Q.E.D.---       Step: 1.2.2.1.2                   Q.E.D.---       Step: 1.2.2.2.1                   Q.E.D.---       Step: 1.2.2.2.2                   Q.E.D.---       Step: 1.2.2.Completeness          Q.E.D.---     Step: 1.Completeness                Q.E.D.---   Result:                               Q.E.D.--- Lemma: majority                         Q.E.D.--- Lemma: ifExistsFound                    Q.E.D.--- Lemma: ifNoMajority                     Q.E.D.+--       Step: 1.2.2.1.1               Q.E.D.+--       Step: 1.2.2.1.2               Q.E.D.+--       Step: 1.2.2.2.1               Q.E.D.+--       Step: 1.2.2.2.2               Q.E.D.+--       Step: 1.2.2.Completeness      Q.E.D.+--     Step: 1.Completeness            Q.E.D.+--   Result:                           Q.E.D.+-- Lemma: majority                     Q.E.D.+-- Lemma: ifExistsFound                Q.E.D.+-- Lemma: ifNoMajority                 Q.E.D. -- Lemma: uniqueness---   Step: 1                               Q.E.D.---   Result:                               Q.E.D.+--   Step: 1                           Q.E.D.+--   Result:                           Q.E.D.+-- Functions proven terminating: count, majority -- ([Proven] majority :: Ɐc ∷ Integer → Ɐxs ∷ [Integer] → Bool,[Proven] ifExistsFound :: Ɐc ∷ Integer → Ɐxs ∷ [Integer] → Bool,[Proven] ifNoMajority :: Ɐc ∷ Integer → Ɐxs ∷ [Integer] → Bool,[Proven] uniqueness :: Ɐm1 ∷ Integer → Ɐm2 ∷ Integer → Ɐxs ∷ [Integer] → Bool) correctness :: forall a. SymVal a             => IO ( Proof (Forall "c" a -> Forall "xs" [a] -> SBool)                    -- If majority exists, the calculated value is majority
Documentation/SBV/Examples/TP/McCarthy91.hs view
@@ -9,10 +9,10 @@ -- Proving McCarthy's 91 function correct. ----------------------------------------------------------------------------- -{-# LANGUAGE DataKinds           #-}-{-# LANGUAGE TypeAbstractions    #-}-{-# LANGUAGE TypeApplications    #-}-{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE DataKinds        #-}+{-# LANGUAGE QuasiQuotes      #-}+{-# LANGUAGE TypeAbstractions #-}+{-# LANGUAGE TypeApplications #-}  {-# OPTIONS_GHC -Wall -Werror #-} @@ -23,11 +23,22 @@  -- * Definitions --- | Nested recursive definition of McCarthy's function.+-- | Nested recursive definition of McCarthy's function. We use 'smtFunctionWithContract' because+-- the nested recursion @mcCarthy91 (mcCarthy91 (n + 11))@ requires knowing what the inner call returns+-- in order to verify that the outer call's measure decreases. The contract states that for inputs @≤ 100@,+-- the result is @91@. Note that the contract itself is verified as part of the measure check: SBV proves+-- both measure decrease and the contract simultaneously via well-founded induction. mcCarthy91 :: SInteger -> SInteger-mcCarthy91 = smtFunction "mcCarthy91" $ \n -> ite (n .> 100)-                                                  (n - 10)-                                                  (mcCarthy91 (mcCarthy91 (n + 11)))+mcCarthy91 = smtFunctionWithContract "mcCarthy91"+               ( \n -> 0 `smax` (101 - n)+               , \n r -> n .<= 100 .=> r .== 91+               , []+               )+           $ \n -> [sCase| n of+                      _ | n .> 100 -> n - 10+                      _            -> mcCarthy91 (mcCarthy91 (n + 11))+                   |]+ -- | Specification for McCarthy's function. spec91 :: SInteger -> SInteger spec91 n = ite (n .> 100) (n - 10) 91@@ -38,20 +49,21 @@ -- and strong induction. We have: -- -- >>> correctness--- Lemma: case1                            Q.E.D.--- Lemma: case2                            Q.E.D.+-- Lemma: case1                       Q.E.D.+-- Lemma: case2                       Q.E.D. -- Inductive lemma (strong): case3---   Step: Measure is non-negative         Q.E.D.---   Step: 1 (unfold)                      Q.E.D.---   Step: 2                               Q.E.D.---   Result:                               Q.E.D.+--   Step: Measure is non-negative    Q.E.D.+--   Step: 1 (unfold)                 Q.E.D.+--   Step: 2                          Q.E.D.+--   Result:                          Q.E.D. -- Lemma: mcCarthy91 --   Step: 1 (3 way case split)---     Step: 1.1                           Q.E.D.---     Step: 1.2                           Q.E.D.---     Step: 1.3                           Q.E.D.---     Step: 1.Completeness                Q.E.D.---   Result:                               Q.E.D.+--     Step: 1.1                      Q.E.D.+--     Step: 1.2                      Q.E.D.+--     Step: 1.3                      Q.E.D.+--     Step: 1.Completeness           Q.E.D.+--   Result:                          Q.E.D.+-- Functions proven terminating: mcCarthy91 -- [Proven] mcCarthy91 :: Ɐn ∷ Integer → Bool correctness :: IO (Proof (Forall "n" Integer -> SBool)) correctness = runTP $ do@@ -65,7 +77,7 @@    -- Case 3. When @n < 90@. The crucial point here is the measure, which makes sure 101 < 100 < 99 < ...    case3 <- sInduct "case3"                     (\(Forall n) -> n .< 90 .=> mcCarthy91 n .== spec91 n)-                    (\n -> abs (101 - n)) $+                    (\n -> abs (101 - n), []) $                     \ih n -> [n .< 90] |- mcCarthy91 n                                        ?? "unfold"                                        =: mcCarthy91 (mcCarthy91 (n + 11))
Documentation/SBV/Examples/TP/MergeSort.hs view
@@ -13,9 +13,9 @@ {-# LANGUAGE DataKinds           #-} {-# LANGUAGE FlexibleContexts    #-} {-# LANGUAGE OverloadedLists     #-}-{-# LANGUAGE TypeAbstractions    #-}-{-# LANGUAGE TypeApplications    #-}+{-# LANGUAGE QuasiQuotes         #-} {-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeApplications    #-}  {-# OPTIONS_GHC -Wall -Werror #-} @@ -27,8 +27,8 @@ import Data.SBV.List import Data.SBV.Tuple import Data.SBV.TP-import qualified Data.SBV.TP.List as TP +import qualified Documentation.SBV.Examples.TP.Lists       as TP import qualified Documentation.SBV.Examples.TP.SortHelpers as SH  #ifdef DOCTEST@@ -40,17 +40,24 @@  -- | Merge two already sorted lists into another merge :: (OrdSymbolic (SBV a), SymVal a) => SList a -> SList a -> SList a-merge = smtFunction "merge" $ \l r -> ite (null l) r-                                    $ ite (null r) l-                                    $ let (a, as) = uncons l-                                          (b, bs) = uncons r-                                      in ite (a .<= b) (a .: merge as r) (b .: merge l bs)+merge = smtFunction "merge"+      $ \l r -> [sCase| tuple (l, r) of+                   ([], _) -> r+                   (_, []) -> l +                   (ll@(a : as), rr@(b : bs)) | a .<= b -> a .: merge as rr+                                              | True    -> b .: merge ll bs+                |]+ -- | Merge sort, using 'merge' above to successively sort halved input mergeSort :: (OrdSymbolic (SBV a), SymVal a) => SList a -> SList a-mergeSort = smtFunction "mergeSort" $ \l -> ite (length l .<= 1) l-                                              $ let (h1, h2) = splitAt (length l `sEDiv` 2) l-                                                in merge (mergeSort h1) (mergeSort h2)+mergeSort = smtFunction "mergeSort"+          $ \l -> [sCase| l of+                     []  -> l+                     [_] -> l+                     _   -> let (h1, h2) = splitAt (length l `sEDiv` 2) l+                            in merge (mergeSort h1) (mergeSort h2)+                  |]  -- * Correctness proof @@ -59,71 +66,78 @@ -- We have: -- -- >>> correctness @Integer--- Lemma: nonDecrInsert                                        Q.E.D.+-- Lemma: nonDecrInsert                                      Q.E.D. -- Inductive lemma: countAppend---   Step: Base                                                Q.E.D.---   Step: 1                                                   Q.E.D.---   Step: 2 (unfold count)                                    Q.E.D.---   Step: 3                                                   Q.E.D.---   Step: 4 (simplify)                                        Q.E.D.---   Result:                                                   Q.E.D.--- Lemma: take_drop                                            Q.E.D.+--   Step: Base                                              Q.E.D.+--   Step: 1                                                 Q.E.D.+--   Step: 2 (unfold count)                                  Q.E.D.+--   Step: 3                                                 Q.E.D.+--   Step: 4 (simplify)                                      Q.E.D.+--   Result:                                                 Q.E.D.+-- Lemma: take_drop                                          Q.E.D. -- Lemma: takeDropCount---   Step: 1                                                   Q.E.D.---   Step: 2                                                   Q.E.D.---   Result:                                                   Q.E.D.+--   Step: 1                                                 Q.E.D.+--   Step: 2                                                 Q.E.D.+--   Result:                                                 Q.E.D.+-- Lemma: countOneStep                                       Q.E.D.+-- Lemma: mergeHead                                          Q.E.D.+-- Lemma: mergeUnfold                                        Q.E.D. -- Inductive lemma (strong): mergeKeepsSort---   Step: Measure is non-negative                             Q.E.D.---   Step: 1 (4 way full case split)---     Step: 1.1                                               Q.E.D.---     Step: 1.2                                               Q.E.D.---     Step: 1.3                                               Q.E.D.---     Step: 1.4.1 (unfold merge)                              Q.E.D.---     Step: 1.4.2 (2 way case split)---       Step: 1.4.2.1.1 (case split)                          Q.E.D.---       Step: 1.4.2.1.2                                       Q.E.D.---       Step: 1.4.2.2.1 (case split)                          Q.E.D.---       Step: 1.4.2.2.2                                       Q.E.D.---       Step: 1.4.2.Completeness                              Q.E.D.---   Result:                                                   Q.E.D.+--   Step: Measure is non-negative                           Q.E.D.+--   Step: 1 (3 way case split)+--     Step: 1.1                                             Q.E.D.+--     Step: 1.2                                             Q.E.D.+--     Step: 1.3 (2 way case split)+--       Step: 1.3.1.1 (2 way case split)                    Q.E.D.+--       Step: 1.3.1.2                                       Q.E.D.+--       Step: 1.3.1.3                                       Q.E.D.+--       Step: 1.3.2.1 (2 way case split)                    Q.E.D.+--       Step: 1.3.2.2                                       Q.E.D.+--       Step: 1.3.2.3                                       Q.E.D.+--       Step: 1.3.Completeness                              Q.E.D.+--     Step: 1.Completeness                                  Q.E.D.+--   Result:                                                 Q.E.D. -- Inductive lemma (strong): sortNonDecreasing---   Step: Measure is non-negative                             Q.E.D.---   Step: 1 (2 way full case split)---     Step: 1.1                                               Q.E.D.---     Step: 1.2.1 (unfold)                                    Q.E.D.---     Step: 1.2.2 (push nonDecreasing down)                   Q.E.D.---     Step: 1.2.3                                             Q.E.D.---     Step: 1.2.4                                             Q.E.D.---   Result:                                                   Q.E.D.+--   Step: Measure is non-negative                           Q.E.D.+--   Step: 1 (2 way case split)+--     Step: 1.1                                             Q.E.D.+--     Step: 1.2.1 (unfold)                                  Q.E.D.+--     Step: 1.2.2 (push nonDecreasing down)                 Q.E.D.+--     Step: 1.2.3                                           Q.E.D.+--     Step: 1.2.4                                           Q.E.D.+--     Step: 1.Completeness                                  Q.E.D.+--   Result:                                                 Q.E.D. -- Inductive lemma (strong): mergeCount---   Step: Measure is non-negative                             Q.E.D.---   Step: 1 (4 way full case split)---     Step: 1.1                                               Q.E.D.---     Step: 1.2                                               Q.E.D.---     Step: 1.3                                               Q.E.D.---     Step: 1.4.1 (unfold merge)                              Q.E.D.---     Step: 1.4.2 (push count inside)                         Q.E.D.---     Step: 1.4.3 (unfold count, twice)                       Q.E.D.---     Step: 1.4.4                                             Q.E.D.---     Step: 1.4.5                                             Q.E.D.---     Step: 1.4.6 (unfold count in reverse, twice)            Q.E.D.---     Step: 1.4.7 (simplify)                                  Q.E.D.---   Result:                                                   Q.E.D.+--   Step: Measure is non-negative                           Q.E.D.+--   Step: 1 (3 way case split)+--     Step: 1.1                                             Q.E.D.+--     Step: 1.2                                             Q.E.D.+--     Step: 1.3.1 (unfold merge)                            Q.E.D.+--     Step: 1.3.2 (push count inside)                       Q.E.D.+--     Step: 1.3.3 (unfold count, twice)                     Q.E.D.+--     Step: 1.3.4                                           Q.E.D.+--     Step: 1.3.5                                           Q.E.D.+--     Step: 1.3.6 (unfold count in reverse, twice)          Q.E.D.+--     Step: 1.3.7 (simplify)                                Q.E.D.+--     Step: 1.Completeness                                  Q.E.D.+--   Result:                                                 Q.E.D. -- Inductive lemma (strong): sortIsPermutation---   Step: Measure is non-negative                             Q.E.D.---   Step: 1 (2 way full case split)---     Step: 1.1                                               Q.E.D.---     Step: 1.2.1 (unfold mergeSort)                          Q.E.D.---     Step: 1.2.2 (push count down, simplify, rearrange)      Q.E.D.---     Step: 1.2.3                                             Q.E.D.---     Step: 1.2.4                                             Q.E.D.---     Step: 1.2.5                                             Q.E.D.---     Step: 1.2.6                                             Q.E.D.---   Result:                                                   Q.E.D.--- Lemma: mergeSortIsCorrect                                   Q.E.D.+--   Step: Measure is non-negative                           Q.E.D.+--   Step: 1 (2 way case split)+--     Step: 1.1                                             Q.E.D.+--     Step: 1.2.1 (unfold mergeSort)                        Q.E.D.+--     Step: 1.2.2 (push count down, simplify, rearrange)    Q.E.D.+--     Step: 1.2.3                                           Q.E.D.+--     Step: 1.2.4                                           Q.E.D.+--     Step: 1.2.5                                           Q.E.D.+--     Step: 1.2.6                                           Q.E.D.+--     Step: 1.Completeness                                  Q.E.D.+--   Result:                                                 Q.E.D.+-- Lemma: mergeSortIsCorrect                                 Q.E.D.+-- Functions proven terminating: count, merge, mergeSort, nonDecreasing -- [Proven] mergeSortIsCorrect :: Ɐxs ∷ [Integer] → Bool correctness :: forall a. (OrdSymbolic (SBV a), SymVal a) => IO (Proof (Forall "xs" [a] -> SBool))-correctness = runTPWith (tpRibbon 60 z3) $ do+correctness = runTP $ do      --------------------------------------------------------------------------------------------     -- Part I. Import helper lemmas, definitions@@ -134,7 +148,20 @@      nonDecrIns    <- SH.nonDecrIns    @a     takeDropCount <- TP.takeDropCount @a+    cntStep       <- TP.countOneStep  @a +    -- Head of merge: one unfold of merge suffices for the solver+    mergeHead <- lemma "mergeHead"+                    (\(Forall xs) (Forall ys) -> sNot (null ys) .=>+                        head (merge xs ys) .== ite (null xs) (head ys) (ite (head xs .<= head ys) (head xs) (head ys)))+                    []++    -- Unfold lemma for merge's recursive case+    mergeUnfold <- lemma "mergeUnfold"+                    (\(Forall x) (Forall xs) (Forall y) (Forall ys) ->+                        merge (x .: xs) (y .: ys) .== ite (x .<= y) (x .: merge xs (y .: ys)) (y .: merge (x .: xs) ys))+                    []+     --------------------------------------------------------------------------------------------     -- Part II. Prove that the output of merge sort is non-decreasing.     --------------------------------------------------------------------------------------------@@ -142,131 +169,142 @@     mergeKeepsSort <-         sInductWith cvc5 "mergeKeepsSort"            (\(Forall xs) (Forall ys) -> nonDecreasing xs .&& nonDecreasing ys .=> nonDecreasing (merge xs ys))-           (\xs ys -> tuple (length xs, length ys)) $+           (\xs ys -> tuple (length xs, length ys), []) $            \ih xs ys -> [nonDecreasing xs, nonDecreasing ys]-                     |- split2 (xs, ys)-                               trivial           -- when both xs and ys are empty.  Trivial.-                               trivial           -- when xs is empty, but ys isn't. Trivial.-                               trivial           -- when ys is empty, but xs isn't. Trivial.-                               (\(a, as) (b, bs) ->-                                     nonDecreasing (merge (a .: as) (b .: bs))-                                  ?? "unfold merge"-                                  =: nonDecreasing (ite (a .<= b)-                                                        (a .: merge as (b .: bs))-                                                        (b .: merge (a .: as) bs))-                                  ?? "case split"-                                  =: cases [ a .<= b ==> nonDecreasing (a .: merge as (b .: bs))-                                                      ?? ih         `at` (Inst @"xs" as, Inst @"ys" (b .: bs))-                                                      ?? nonDecrIns `at` (Inst @"x" a, Inst @"xs" (merge as (b .: bs)))-                                                      =: sTrue-                                                      =: qed-                                           , a .> b  ==> nonDecreasing (b .: merge (a .: as) bs)-                                                      ?? ih         `at` (Inst @"xs" (a .: as), Inst @"ys" bs)-                                                      ?? nonDecrIns `at` (Inst @"x" b, Inst @"xs" (merge (a .: as) bs))-                                                      =: sTrue-                                                      =: qed-                                           ])+                     |- [pCase| tuple (xs, ys) of+                          ([], _)          -> trivial+                          (_, [])          -> trivial+                          (ll@(a : as), rr@(b : bs)) ->+                                nonDecreasing (merge ll rr)+                             ?? "2 way case split"+                             =: cases [ a .<= b ==> nonDecreasing (merge ll rr)+                                                 ?? mergeUnfold `at` (Inst @"x" a, Inst @"xs" as, Inst @"y" b, Inst @"ys" bs)+                                                 =: nonDecreasing (a .: merge as rr)+                                                 ?? ih         `at` (Inst @"xs" as, Inst @"ys" rr)+                                                 ?? nonDecrIns `at` (Inst @"x" a, Inst @"xs" (merge as rr))+                                                 ?? mergeHead  `at` (Inst @"xs" as, Inst @"ys" rr)+                                                 =: sTrue+                                                 =: qed+                                      , a .> b  ==> nonDecreasing (merge ll rr)+                                                 ?? mergeUnfold `at` (Inst @"x" a, Inst @"xs" as, Inst @"y" b, Inst @"ys" bs)+                                                 =: nonDecreasing (b .: merge ll bs)+                                                 ?? ih         `at` (Inst @"xs" ll, Inst @"ys" bs)+                                                 ?? nonDecrIns `at` (Inst @"x" b, Inst @"xs" (merge ll bs))+                                                 ?? mergeHead  `at` (Inst @"xs" ll, Inst @"ys" bs)+                                                 =: sTrue+                                                 =: qed+                                      ]+                        |]      sortNonDecreasing <-         sInduct "sortNonDecreasing"                 (\(Forall xs) -> nonDecreasing (mergeSort xs))-                length $-                \ih xs -> [] |- split xs-                                      qed-                                      (\e es -> nonDecreasing (mergeSort (e .: es))-                                             ?? "unfold"-                                             =: let (h1, h2) = splitAt (length (e .: es) `sEDiv` 2) (e .: es)-                                                in nonDecreasing (ite (length (e .: es) .<= 1)-                                                                      (e .: es)-                                                                      (merge (mergeSort h1) (mergeSort h2)))-                                             ?? "push nonDecreasing down"-                                             =: ite (length (e .: es) .<= 1)-                                                    (nonDecreasing (e .: es))-                                                    (nonDecreasing (merge (mergeSort h1) (mergeSort h2)))-                                             ?? ih `at` Inst @"xs" es-                                             =: ite (length (e .: es) .<= 1)-                                                    sTrue-                                                    (nonDecreasing (merge (mergeSort h1) (mergeSort h2)))-                                             ?? ih `at` Inst @"xs" h1-                                             ?? ih `at` Inst @"xs" h2-                                             ?? mergeKeepsSort `at` (Inst @"xs" (mergeSort h1), Inst @"ys" (mergeSort h2))-                                             =: sTrue-                                             =: qed)+                (length, []) $+                \ih xs -> [] |- [pCase| xs of+                                  []             -> qed+                                  whole@(_ : es) ->+                                        nonDecreasing (mergeSort whole)+                                     ?? "unfold"+                                     =: let (h1, h2) = splitAt (length whole `sEDiv` 2) whole+                                        in nonDecreasing (ite (length whole .<= 1)+                                                              whole+                                                              (merge (mergeSort h1) (mergeSort h2)))+                                     ?? "push nonDecreasing down"+                                     =: ite (length whole .<= 1)+                                            (nonDecreasing whole)+                                            (nonDecreasing (merge (mergeSort h1) (mergeSort h2)))+                                     ?? ih `at` Inst @"xs" es+                                     =: ite (length whole .<= 1)+                                            sTrue+                                            (nonDecreasing (merge (mergeSort h1) (mergeSort h2)))+                                     ?? ih `at` Inst @"xs" h1+                                     ?? ih `at` Inst @"xs" h2+                                     ?? mergeKeepsSort `at` (Inst @"xs" (mergeSort h1), Inst @"ys" (mergeSort h2))+                                     =: sTrue+                                     =: qed+                                |]      ---------------------------------------------------------------------------------------------    -- Part III. Prove that the output of merge sort is a permuation of its input+    -- Part III. Prove that the output of merge sort is a permutation of its input     --------------------------------------------------------------------------------------------     mergeCount <-         sInduct "mergeCount"                 (\(Forall xs) (Forall ys) (Forall e) -> count e (merge xs ys) .== count e xs + count e ys)-                (\xs ys _e -> tuple (length xs, length ys)) $-                \ih as bs e -> [] |- split2 (as, bs)-                                            trivial-                                            trivial-                                            trivial-                                            (\(x, xs) (y, ys) -> count e (merge (x .: xs) (y .: ys))-                                                              ?? "unfold merge"-                                                              =: count e (ite (x .<= y)-                                                                              (x .: merge xs (y .: ys))-                                                                              (y .: merge (x .: xs) ys))-                                                              ?? "push count inside"-                                                              =: ite (x .<= y)-                                                                     (count e (x .: merge xs (y .: ys)))-                                                                     (count e (y .: merge (x .: xs) ys))-                                                              ?? "unfold count, twice"-                                                              =: ite (x .<= y)-                                                                     (let r = count e (merge xs (y .: ys)) in ite (e .== x) (1+r) r)-                                                                     (let r = count e (merge (x .: xs) ys) in ite (e .== y) (1+r) r)-                                                              ?? ih `at` (Inst @"xs" xs, Inst @"ys" (y .: ys), Inst @"e" e)-                                                              =: ite (x .<= y)-                                                                     (let r = count e xs + count e (y .: ys) in ite (e .== x) (1+r) r)-                                                                     (let r = count e (merge (x .: xs) ys) in ite (e .== y) (1+r) r)-                                                              ?? ih `at` (Inst @"xs" (x .: xs), Inst @"ys" ys, Inst @"e" e)-                                                              =: ite (x .<= y)-                                                                     (let r = count e xs + count e (y .: ys) in ite (e .== x) (1+r) r)-                                                                     (let r = count e (x .: xs) + count e ys in ite (e .== y) (1+r) r)-                                                              ?? "unfold count in reverse, twice"-                                                              =: ite (x .<= y)-                                                                     (count e (x .: xs) + count e (y .: ys))-                                                                     (count e (x .: xs) + count e (y .: ys))-                                                              ?? "simplify"-                                                              =: count e (x .: xs) + count e (y .: ys)-                                                              =: qed)+                (\xs ys _e -> tuple (length xs, length ys), []) $+                \ih as bs e -> [] |- [pCase| tuple (as, bs) of+                                      ([], _) -> trivial+                                      (_, []) -> trivial +                                      (ll@(x : xs), rr@(y : ys)) ->+                                              count e (merge ll rr)+                                           ?? "unfold merge"+                                           =: count e (ite (x .<= y)+                                                           (x .: merge xs rr)+                                                           (y .: merge ll ys))+                                           ?? "push count inside"+                                           =: ite (x .<= y)+                                                  (count e (x .: merge xs rr))+                                                  (count e (y .: merge ll ys))+                                           ?? "unfold count, twice"+                                           ?? cntStep `at` (Inst @"e" e, Inst @"x" x, Inst @"xs" (merge xs rr))+                                           ?? cntStep `at` (Inst @"e" e, Inst @"x" y, Inst @"xs" (merge ll ys))+                                           =: ite (x .<= y)+                                                  (let r = count e (merge xs rr) in ite (e .== x) (1+r) r)+                                                  (let r = count e (merge ll ys) in ite (e .== y) (1+r) r)+                                           ?? ih `at` (Inst @"xs" xs, Inst @"ys" rr, Inst @"e" e)+                                           =: ite (x .<= y)+                                                  (let r = count e xs + count e rr in ite (e .== x) (1+r) r)+                                                  (let r = count e (merge ll ys) in ite (e .== y) (1+r) r)+                                           ?? ih `at` (Inst @"xs" ll, Inst @"ys" ys, Inst @"e" e)+                                           =: ite (x .<= y)+                                                  (let r = count e xs + count e rr in ite (e .== x) (1+r) r)+                                                  (let r = count e ll + count e ys in ite (e .== y) (1+r) r)+                                           ?? "unfold count in reverse, twice"+                                           ?? cntStep `at` (Inst @"e" e, Inst @"x" x, Inst @"xs" xs)+                                           ?? cntStep `at` (Inst @"e" e, Inst @"x" y, Inst @"xs" ys)+                                           =: ite (x .<= y)+                                                  (count e ll + count e rr)+                                                  (count e ll + count e rr)+                                           ?? "simplify"+                                           =: count e ll + count e rr+                                           =: qed+                                    |]+     sortIsPermutation <-         sInductWith cvc5 "sortIsPermutation"                 (\(Forall xs) (Forall e) -> count e xs .== count e (mergeSort xs))-                (\xs _e -> length xs) $-                \ih as e -> [] |- split as-                                        trivial-                                        (\x xs -> count e (mergeSort (x .: xs))-                                               ?? "unfold mergeSort"-                                               =: count e (ite (length (x .: xs) .<= 1)-                                                               (x .: xs)-                                                               (let (h1, h2) = splitAt (length (x .: xs) `sEDiv` 2) (x .: xs)-                                                                in merge (mergeSort h1) (mergeSort h2)))-                                               ?? "push count down, simplify, rearrange"-                                               =: let (h1, h2) = splitAt (length (x .: xs) `sEDiv` 2) (x .: xs)-                                               in ite (null xs)-                                                      (count e [x])-                                                      (count e (merge (mergeSort h1) (mergeSort h2)))-                                               ?? mergeCount `at` (Inst @"xs" (mergeSort h1), Inst @"ys" (mergeSort h2), Inst @"e" e)-                                               =: ite (null xs)-                                                      (count e [x])-                                                      (count e (mergeSort h1) + count e (mergeSort h2))-                                               ?? ih `at` (Inst @"xs" h1, Inst @"e" e)-                                               =: ite (null xs)-                                                      (count e [x])-                                                      (count e h1 + count e (mergeSort h2))-                                               ?? ih `at` (Inst @"xs" h2, Inst @"e" e)-                                               =: ite (null xs)-                                                      (count e [x])-                                                      (count e h1 + count e h2)-                                               ?? takeDropCount `at` (Inst @"xs" (x .: xs), Inst @"n" (length (x .: xs) `sEDiv` 2), Inst @"e" e)-                                               =: ite (null xs)-                                                      (count e [x])-                                                      (count e (x .: xs))-                                               =: qed)+                (\xs _e -> length xs, []) $+                \ih as e -> [] |- [pCase| as of+                                    []     -> trivial+                                    whole@(x : xs) -> count e (mergeSort whole)+                                           ?? "unfold mergeSort"+                                           =: count e (ite (length whole .<= 1)+                                                           whole+                                                           (let (h1, h2) = splitAt (length whole `sEDiv` 2) whole+                                                            in merge (mergeSort h1) (mergeSort h2)))+                                           ?? "push count down, simplify, rearrange"+                                           =: let (h1, h2) = splitAt (length whole `sEDiv` 2) whole+                                           in ite (null xs)+                                                  (count e [x])+                                                  (count e (merge (mergeSort h1) (mergeSort h2)))+                                           ?? mergeCount `at` (Inst @"xs" (mergeSort h1), Inst @"ys" (mergeSort h2), Inst @"e" e)+                                           =: ite (null xs)+                                                  (count e [x])+                                                  (count e (mergeSort h1) + count e (mergeSort h2))+                                           ?? ih `at` (Inst @"xs" h1, Inst @"e" e)+                                           =: ite (null xs)+                                                  (count e [x])+                                                  (count e h1 + count e (mergeSort h2))+                                           ?? ih `at` (Inst @"xs" h2, Inst @"e" e)+                                           =: ite (null xs)+                                                  (count e [x])+                                                  (count e h1 + count e h2)+                                           ?? takeDropCount `at` (Inst @"xs" whole, Inst @"n" (length whole `sEDiv` 2), Inst @"e" e)+                                           =: ite (null xs)+                                                  (count e [x])+                                                  (count e whole)+                                           =: qed+                                  |]      --------------------------------------------------------------------------------------------     -- Put the two parts together for the final proof
+ Documentation/SBV/Examples/TP/MutualCorecursion.hs view
@@ -0,0 +1,187 @@+-----------------------------------------------------------------------------+-- |+-- Module    : Documentation.SBV.Examples.TP.MutualCorecursion+-- Copyright : (c) Levent Erkok+-- License   : BSD3+-- Maintainer: erkokl@gmail.com+-- Stability : experimental+--+-- Demonstrating mutually corecursive (productive) functions. Two functions+-- @ping@ and @pong@ take turns producing elements of a stream: each emits+-- its argument and then calls the other with the next value:+--+-- @+--   ping n = n .: pong (n + 1)+--   pong n = n .: ping (n + 1)+-- @+--+-- Together they produce the natural number stream starting from @n@:+-- @ping 0 = [0, 1, 2, 3, ...]@. We prove that the @k@-th element+-- of @ping n@ is @n + k@.+-----------------------------------------------------------------------------++{-# LANGUAGE CPP                 #-}+{-# LANGUAGE DataKinds           #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions    #-}+{-# LANGUAGE TypeApplications    #-}++{-# OPTIONS_GHC -Wall -Werror #-}++module Documentation.SBV.Examples.TP.MutualCorecursion where++import Prelude hiding (head, length, (!!))++import Data.SBV+import Data.SBV.List+import Data.SBV.TP++#ifdef DOCTEST+-- $setup+-- >>> import Data.SBV.TP+#endif++-- * Definitions++-- | @ping n@ emits @n@ and hands off to 'pong'. Note the use of 'smtProductiveFunction':+-- since @ping@ and @pong@ are corecursive (no base case, always producing output), we+-- declare them productive instead of terminating.+ping :: SInteger -> SList Integer+ping = smtProductiveFunction "ping"+     $ \n -> n .: pong (n + 1)++-- | @pong n@ emits @n@ and hands off to 'ping'. See 'ping' for why we use 'smtProductiveFunction'.+pong :: SInteger -> SList Integer+pong = smtProductiveFunction "pong"+     $ \n -> n .: ping (n + 1)++-- * Helper lemmas++-- | @ping@ produces unboundedly long lists.+--+-- >>> runTP pingLen+-- Inductive lemma: pingLen+--   Step: Base                Q.E.D.+--   Step: 1                   Q.E.D.+--   Step: 2                   Q.E.D.+--   Result:                   Q.E.D.+-- Functions proven productive: ping, pong+-- [Proven] pingLen :: Ɐm ∷ Integer → Ɐn ∷ Integer → Bool+pingLen :: TP (Proof (Forall "m" Integer -> Forall "n" Integer -> SBool))+pingLen = inductWith cvc5 "pingLen"+                     (\(Forall @"m" (m :: SInteger)) (Forall @"n" n) -> length (ping n) .>= m) $+                     \ih m n -> []+                             |- length (ping n) .>= m + 1+                             =: length (n .: pong (n + 1)) .>= m + 1+                             ?? ih `at` Inst @"n" (n + 2)+                             =: sTrue+                             =: qed++-- | @pong@ produces unboundedly long lists.+--+-- >>> runTP pongLen+-- Inductive lemma: pongLen+--   Step: Base                Q.E.D.+--   Step: 1                   Q.E.D.+--   Step: 2                   Q.E.D.+--   Result:                   Q.E.D.+-- Functions proven productive: ping, pong+-- [Proven] pongLen :: Ɐm ∷ Integer → Ɐn ∷ Integer → Bool+pongLen :: TP (Proof (Forall "m" Integer -> Forall "n" Integer -> SBool))+pongLen = inductWith cvc5 "pongLen"+                     (\(Forall @"m" (m :: SInteger)) (Forall @"n" n) -> length (pong n) .>= m) $+                     \ih m n -> []+                             |- length (pong n) .>= m + 1+                             =: length (n .: ping (n + 1)) .>= m + 1+                             ?? ih `at` Inst @"n" (n + 2)+                             =: sTrue+                             =: qed++-- | Indexing past a cons: @(x .: y) !! k == y !! (k - 1)@ when @k > 0@ and in bounds.+--+-- >>> runTP consIndex+-- Lemma: consIndex    Q.E.D.+-- [Proven] consIndex :: Ɐx ∷ Integer → Ɐy ∷ [Integer] → Ɐk ∷ Integer → Bool+consIndex :: TP (Proof (Forall "x" Integer -> Forall "y" [Integer] -> Forall "k" Integer -> SBool))+consIndex = lemma "consIndex"+                  (\(Forall @"x" (x :: SInteger)) (Forall @"y" y) (Forall @"k" k) ->+                        k .> 0 .&& k .<= length y .=> (x .: y) !! k .== y !! (k - 1))+                  []++-- * Correctness++-- | Proving @ping n@ and @pong n@ produce the same elements. We prove that the @k@-th+-- elements are the same, by induction on @k@.+--+-- >>> runTP pingEqPong+-- Lemma: pingLen                 Q.E.D.+-- Lemma: pongLen                 Q.E.D.+-- Lemma: consIndex               Q.E.D.+-- Inductive lemma: pingEqPong+--   Step: Base                   Q.E.D.+--   Step: 1                      Q.E.D.+--   Step: 2                      Q.E.D.+--   Step: 3                      Q.E.D.+--   Step: 4                      Q.E.D.+--   Step: 5                      Q.E.D.+--   Result:                      Q.E.D.+-- Functions proven productive: ping, pong+-- [Proven] pingEqPong :: Ɐk ∷ Integer → Ɐn ∷ Integer → Bool+pingEqPong :: TP (Proof (Forall "k" Integer -> Forall "n" Integer -> SBool))+pingEqPong = do+   piLen <- recall pingLen+   poLen <- recall pongLen+   ci    <- recall consIndex++   inductWith cvc5 "pingEqPong"+          (\(Forall @"k" k) (Forall @"n" n) -> k .>= 0 .=> ping n !! k .== pong n !! k) $+          \ih k n -> [k .>= 0]+                  |- ping n !! (k + 1)+                  =: (n .: pong (n + 1)) !! (k + 1)+                  ?? ci `at` (Inst @"x" n, Inst @"y" (pong (n + 1)), Inst @"k" (k + 1))+                  ?? poLen+                  =: pong (n + 1) !! k+                  ?? ih `at` Inst @"n" (n + 1)+                  =: ping (n + 1) !! k+                  ?? ci `at` (Inst @"x" n, Inst @"y" (ping (n + 1)), Inst @"k" (k + 1))+                  ?? piLen+                  =: (n .: ping (n + 1)) !! (k + 1)+                  =: pong n !! (k + 1)+                  =: qed++-- | The @k@-th element of @ping n@ is @n + k@.+--+-- >>> runTP pingElem+-- Lemma: pingEqPong              Q.E.D.+-- Lemma: consIndex               Q.E.D. [Cached]+-- Lemma: pongLen                 Q.E.D. [Cached]+-- Inductive lemma: pingElem+--   Step: Base                   Q.E.D.+--   Step: 1                      Q.E.D.+--   Step: 2                      Q.E.D.+--   Step: 3                      Q.E.D.+--   Step: 4                      Q.E.D.+--   Step: 5                      Q.E.D.+--   Result:                      Q.E.D.+-- Functions proven productive: ping, pong+-- [Proven] pingElem :: Ɐk ∷ Integer → Ɐn ∷ Integer → Bool+pingElem :: TP (Proof (Forall "k" Integer -> Forall "n" Integer -> SBool))+pingElem = do+   eq    <- recall pingEqPong+   ci    <- recall consIndex+   poLen <- recall pongLen++   inductWith cvc5 "pingElem"+          (\(Forall @"k" k) (Forall @"n" n) -> k .>= 0 .=> ping n !! k .== n + k) $+          \ih k n -> [k .>= 0]+                  |- ping n !! (k + 1)+                  =: (n .: pong (n + 1)) !! (k + 1)+                  ?? ci `at` (Inst @"x" n, Inst @"y" (pong (n + 1)), Inst @"k" (k + 1))+                  ?? poLen+                  =: pong (n + 1) !! k+                  ?? eq `at` (Inst @"k" k, Inst @"n" (n + 1))+                  =: ping (n + 1) !! k+                  ?? ih `at` Inst @"n" (n + 1)+                  =: (n + 1) + k+                  =: n + (k + 1)+                  =: qed
+ Documentation/SBV/Examples/TP/NatStream.hs view
@@ -0,0 +1,121 @@+-----------------------------------------------------------------------------+-- |+-- Module    : Documentation.SBV.Examples.TP.NatStream+-- Copyright : (c) Levent Erkok+-- License   : BSD3+-- Maintainer: erkokl@gmail.com+-- Stability : experimental+--+-- Demonstrating productive (corecursive) functions. A productive function+-- is one where every recursive call is guarded by a data constructor, so+-- the function always makes progress by producing output. Unlike terminating+-- functions, productive functions need not have a base case and may produce+-- infinite output.+-----------------------------------------------------------------------------++{-# LANGUAGE CPP                 #-}+{-# LANGUAGE DataKinds           #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions    #-}+{-# LANGUAGE TypeApplications    #-}++{-# OPTIONS_GHC -Wall -Werror #-}++module Documentation.SBV.Examples.TP.NatStream where++import Prelude hiding (head, length, (!!))++import Data.SBV+import Data.SBV.List+import Data.SBV.TP++#ifdef DOCTEST+-- $setup+-- >>> import Data.SBV.TP+#endif++-- * Definitions++-- | The infinite stream of integers starting from @n@: @[n, n+1, n+2, ...]@.+-- There is no base case; every recursive call is guarded by the list+-- constructor @.:@, making this a productive (corecursive) definition.+nats :: SInteger -> SList Integer+nats = smtProductiveFunction "nats"+     $ \n -> n .: nats (n + 1)++-- * Correctness++-- | Prove that @nats n@ always starts with @n@.+--+-- NB. As of Mar 2026, z3 can't handle this but cvc5 can.+--+-- >>> runTP natsHead+-- Lemma: natsHead     Q.E.D.+-- Functions proven productive: nats+-- [Proven] natsHead :: Ɐn ∷ Integer → Bool+natsHead :: TP (Proof (Forall "n" Integer -> SBool))+natsHead = lemmaWith cvc5 "natsHead"+                 (\(Forall @"n" n) -> head (nats n) .== n)+                 []++-- | Prove by induction that @nats n@ has at least @m@ elements, for any @m@.+-- This captures the idea that @nats@ produces an unboundedly long list.+--+-- NB. As of Mar 2026, z3 can't handle this but cvc5 can.+--+-- >>> runTP natsLen+-- Inductive lemma: natsLen+--   Step: Base                Q.E.D.+--   Step: 1                   Q.E.D.+--   Step: 2                   Q.E.D.+--   Result:                   Q.E.D.+-- Functions proven productive: nats+-- [Proven] natsLen :: Ɐm ∷ Integer → Ɐn ∷ Integer → Bool+natsLen :: TP (Proof (Forall "m" Integer -> Forall "n" Integer -> SBool))+natsLen =+   inductWith cvc5 "natsLen"+          (\(Forall @"m" m) (Forall @"n" n) -> length (nats n) .>= m) $+          \ih m n -> []+                  |- length (nats n) .>= m + 1+                  =: length (n .: nats (n + 1)) .>= m + 1+                  ?? ih `at` Inst @"n" (n + 1)+                  =: sTrue+                  =: qed++-- | Prove by induction that the @k@-th element of @nats n@ is @n + k@.+--+-- NB. As of Mar 2026, z3 can't handle this but cvc5 can.+--+-- >>> runTP natsElem+-- Lemma: natsLen               Q.E.D.+-- Lemma: elemOne               Q.E.D.+-- Inductive lemma: natsElem+--   Step: Base                 Q.E.D.+--   Step: 1                    Q.E.D.+--   Step: 2                    Q.E.D.+--   Step: 3                    Q.E.D.+--   Step: 4                    Q.E.D.+--   Result:                    Q.E.D.+-- Functions proven productive: nats+-- [Proven] natsElem :: Ɐk ∷ Integer → Ɐn ∷ Integer → Bool+natsElem :: TP (Proof (Forall "k" Integer -> Forall "n" Integer -> SBool))+natsElem = do+   nLen <- recall natsLen++   elemOne <- lemma "elemOne"+                    (\(Forall @"x" (x :: SInteger)) (Forall @"y" y) (Forall @"k" k) ->+                          k .> 0 .&& k .<= length y .=> (x .: y) !! k .== y !! (k - 1))+                    []++   inductWith cvc5 "natsElem"+          (\(Forall @"k" k) (Forall @"n" n) -> k .>= 0 .=> nats n !! k .== n + k) $+          \ih k n -> [k .>= 0]+                  |- nats n !! (k + 1)+                  =: (n .: nats (n + 1)) !! (k + 1)+                  ?? elemOne+                  ?? nLen+                  =: nats (n + 1) !! k+                  ?? ih `at` Inst @"n" (n + 1)+                  =: (n + 1) + k+                  =: n + (k + 1)+                  =: qed
Documentation/SBV/Examples/TP/Numeric.hs view
@@ -40,12 +40,13 @@ -- -- >>> runTP $ sumConstProof (uninterpret "c") -- Inductive lemma: sumConst_correct---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4                               Q.E.D.---   Result:                               Q.E.D.+--   Step: Base                         Q.E.D.+--   Step: 1                            Q.E.D.+--   Step: 2                            Q.E.D.+--   Step: 3                            Q.E.D.+--   Step: 4                            Q.E.D.+--   Result:                            Q.E.D.+-- Functions proven terminating: sbv.foldr, sbv.replicate -- [Proven] sumConst_correct :: Ɐn ∷ Integer → Bool sumConstProof :: SInteger -> TP (Proof (Forall "n" Integer -> SBool)) sumConstProof c = induct "sumConst_correct"@@ -70,11 +71,12 @@ -- -- >>> runTP sumProof -- Inductive lemma: sum_correct---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Result:                               Q.E.D.+--   Step: Base                    Q.E.D.+--   Step: 1                       Q.E.D.+--   Step: 2                       Q.E.D.+--   Step: 3                       Q.E.D.+--   Result:                       Q.E.D.+-- Functions proven terminating: EnumSymbolic.Integer.enumFromThenTo.down, sbv.foldr -- [Proven] sum_correct :: Ɐn ∷ Integer → Bool sumProof :: TP (Proof (Forall "n" Integer -> SBool)) sumProof = induct "sum_correct"@@ -92,14 +94,15 @@ -- -- >>> runTP sumSquareProof -- Inductive lemma: sumSquare_correct---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4                               Q.E.D.---   Step: 5                               Q.E.D.---   Step: 6                               Q.E.D.---   Result:                               Q.E.D.+--   Step: Base                          Q.E.D.+--   Step: 1                             Q.E.D.+--   Step: 2                             Q.E.D.+--   Step: 3                             Q.E.D.+--   Step: 4                             Q.E.D.+--   Step: 5                             Q.E.D.+--   Step: 6                             Q.E.D.+--   Result:                             Q.E.D.+-- Functions proven terminating: EnumSymbolic.Integer.enumFromThenTo.down, sbv.foldr, sbv.map -- [Proven] sumSquare_correct :: Ɐn ∷ Integer → Bool sumSquareProof :: TP (Proof (Forall "n" Integer -> SBool)) sumSquareProof = do@@ -128,27 +131,28 @@ -- -- >>> runTP nicomachus -- Inductive lemma: sum_correct---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Result:                               Q.E.D.--- Lemma: evenHalfSquared                  Q.E.D.+--   Step: Base                    Q.E.D.+--   Step: 1                       Q.E.D.+--   Step: 2                       Q.E.D.+--   Step: 3                       Q.E.D.+--   Result:                       Q.E.D.+-- Lemma: evenHalfSquared          Q.E.D. -- Inductive lemma: nn1IsEven---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Result:                               Q.E.D.+--   Step: Base                    Q.E.D.+--   Step: 1                       Q.E.D.+--   Step: 2                       Q.E.D.+--   Step: 3                       Q.E.D.+--   Result:                       Q.E.D. -- Lemma: sum_squared---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Result:                               Q.E.D.+--   Step: 1                       Q.E.D.+--   Step: 2                       Q.E.D.+--   Result:                       Q.E.D. -- Inductive lemma: nicomachus---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Result:                               Q.E.D.+--   Step: Base                    Q.E.D.+--   Step: 1                       Q.E.D.+--   Step: 2                       Q.E.D.+--   Result:                       Q.E.D.+-- Functions proven terminating: EnumSymbolic.Integer.enumFromThenTo.down, sbv.foldr, sumCubed -- [Proven] nicomachus :: Ɐn ∷ Integer → Bool nicomachus :: TP (Proof (Forall "n" Integer -> SBool)) nicomachus = do@@ -158,7 +162,10 @@        infixr 8 ^         sumCubed :: SInteger -> SInteger-       sumCubed = smtFunction "sumCubed" $ \n -> ite (n .<= 0) 0 (n^3 + sumCubed (n - 1))+       sumCubed = smtFunction "sumCubed" $ \n -> [sCase| n of+                                                    _ | n .<= 0 -> 0+                                                    _           -> n^3 + sumCubed (n - 1)+                                                 |]     -- Grab the proof of regular summation formula    sp <- sumProof@@ -212,23 +219,27 @@ -- NB. As of Feb 2025, z3 struggles with the inductive step in this proof, but cvc5 performs just fine. -- -- >>> runTP elevenMinusFour--- Lemma: powN                             Q.E.D.+-- Lemma: powN                         Q.E.D. -- Inductive lemma: elevenMinusFour---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4                               Q.E.D.---   Step: 5                               Q.E.D.---   Step: 6                               Q.E.D.---   Step: 7                               Q.E.D.---   Step: 8                               Q.E.D.---   Result:                               Q.E.D.+--   Step: Base                        Q.E.D.+--   Step: 1                           Q.E.D.+--   Step: 2                           Q.E.D.+--   Step: 3                           Q.E.D.+--   Step: 4                           Q.E.D.+--   Step: 5                           Q.E.D.+--   Step: 6                           Q.E.D.+--   Step: 7                           Q.E.D.+--   Step: 8                           Q.E.D.+--   Result:                           Q.E.D.+-- Functions proven terminating: pow -- [Proven] elevenMinusFour :: Ɐn ∷ Integer → Bool elevenMinusFour :: TP (Proof (Forall "n" Integer -> SBool)) elevenMinusFour = do    let pow :: SInteger -> SInteger -> SInteger-       pow = smtFunction "pow" $ \x y -> ite (y .== 0) 1 (x * pow x (y - 1))+       pow = smtFunction "pow" $ \x y -> [sCase| y of+                                            _ | y .<= 0 -> 1+                                            _           -> x * pow x (y - 1)+                                         |]         emf :: SInteger -> SBool        emf n = 7 `sDivides` (11 `pow` n - 4 `pow` n)@@ -260,21 +271,22 @@ -- -- >>> runTP sumMulFactorial -- Lemma: fact (n+1)---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4                               Q.E.D.---   Result:                               Q.E.D.+--   Step: 1                           Q.E.D.+--   Step: 2                           Q.E.D.+--   Step: 3                           Q.E.D.+--   Step: 4                           Q.E.D.+--   Result:                           Q.E.D. -- Inductive lemma: sumMulFactorial---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4                               Q.E.D.---   Step: 5                               Q.E.D.---   Step: 6                               Q.E.D.---   Step: 7                               Q.E.D.---   Result:                               Q.E.D.+--   Step: Base                        Q.E.D.+--   Step: 1                           Q.E.D.+--   Step: 2                           Q.E.D.+--   Step: 3                           Q.E.D.+--   Step: 4                           Q.E.D.+--   Step: 5                           Q.E.D.+--   Step: 6                           Q.E.D.+--   Step: 7                           Q.E.D.+--   Result:                           Q.E.D.+-- Functions proven terminating: EnumSymbolic.Integer.enumFromThenTo.down, sbv.foldr, sbv.map -- [Proven] sumMulFactorial :: Ɐn ∷ Integer → Bool sumMulFactorial :: TP (Proof (Forall "n" Integer -> SBool)) sumMulFactorial = do@@ -311,14 +323,15 @@ -- -- >>> runTP product0 -- Inductive lemma: product0---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.+--   Step: Base                 Q.E.D.+--   Step: 1                    Q.E.D. --   Step: 2 (2 way case split)---     Step: 2.1                           Q.E.D.---     Step: 2.2.1                         Q.E.D.---     Step: 2.2.2                         Q.E.D.---     Step: 2.Completeness                Q.E.D.---   Result:                               Q.E.D.+--     Step: 2.1                Q.E.D.+--     Step: 2.2.1              Q.E.D.+--     Step: 2.2.2              Q.E.D.+--     Step: 2.Completeness     Q.E.D.+--   Result:                    Q.E.D.+-- Functions proven terminating: sbv.foldr -- [Proven] product0 :: Ɐxs ∷ [Integer] → Bool product0 :: TP (Proof (Forall "xs" [Integer] -> SBool)) product0 =@@ -341,7 +354,7 @@ -- -- >>> badNonNegative `catch` (\(_ :: SomeException) -> pure ()) -- Inductive lemma: badNonNegative---   Step: Base                            Q.E.D.+--   Step: Base                       Q.E.D. --   Step: 1 -- *** Failed to prove badNonNegative.1. -- Falsifiable. Counter-example:
+ Documentation/SBV/Examples/TP/Peano.hs view
@@ -0,0 +1,926 @@+-----------------------------------------------------------------------------+-- |+-- Module    : Documentation.SBV.Examples.TP.Peano+-- Copyright : (c) Levent Erkok+-- License   : BSD3+-- Maintainer: erkokl@gmail.com+-- Stability : experimental+--+-- Modeling Peano arithmetic in SBV and proving various properties using TP.+-- Most of the properties we prove come from <https://en.wikipedia.org/wiki/Peano_axioms>.+-----------------------------------------------------------------------------++{-# LANGUAGE CPP                 #-}+{-# LANGUAGE DataKinds           #-}+{-# LANGUAGE FlexibleInstances   #-}+{-# LANGUAGE QuasiQuotes         #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TemplateHaskell     #-}+{-# LANGUAGE TypeAbstractions    #-}+{-# LANGUAGE TypeApplications    #-}++{-# OPTIONS_GHC -Wall -Werror #-}++module Documentation.SBV.Examples.TP.Peano where++import Data.SBV+import Data.SBV.TP++#ifdef DOCTEST+-- $setup+-- >>> import Data.SBV+-- >>> import Data.SBV.TP+#endif++-- | Natural numbers. (If you are looking at the haddock documents, note the plethora of definitions+-- the call to 'mkSymbolic' generates. You can mostly ignore these, except for the case analyzer,+-- the testers and accessors.)+data Nat = Zero+         | Succ { prev :: Nat }++-- | Create a symbolic version of naturals.+mkSymbolic [''Nat]++-- | Numeric instance. Choices: We clamp everything at Zero. Negation is identity.+instance Num Nat where+  fromInteger i | i <= 0 = Zero+                | True   = Succ (fromInteger (i - 1))++  a + Zero   = a+  a + Succ b = Succ (a + b)++  (-) = error "Nat: No support for subtraction"++  _ * Zero   = Zero+  a * Succ b = a + a * b++  abs = id++  signum Zero = 0+  signum _    = 1++  negate = id++-- Symbolic numeric instance, mirroring the above+instance Num SNat where+  fromInteger = literal . fromInteger++  (+) = plus+      where plus = smtFunction "sNatPlus" $+                     \m n -> [sCase| m of+                               Zero   -> n+                               Succ p -> sSucc (p + n)+                             |]++  (-) = error "SNat: No support for subtraction"++  (*) = times+      where times = smtFunction "sNatTimes" $+                      \m n -> [sCase| m of+                                Zero   -> 0+                                Succ p -> n + p * n+                              |]++  abs = id++  signum m = [sCase| m of+               Zero -> 0+               _    -> 1+             |]++-- | Symbolic ordering. We only define less-than, other methods use the defaults.+instance OrdSymbolic SNat where+   m .< n = quantifiedBool (\(Exists k) -> n .== m + sSucc k)++-- * Conversion to and from integers++-- | Convert from 'Nat' to 'Integer'.+--+-- NB. When writing the properties below, we use the notation \(\overline{n}\) to mean @n2i n@.+n2i :: SNat -> SInteger+n2i = smtFunction "n2i" $ \n -> [sCase| n of+                                   Zero   -> 0+                                   Succ p -> 1 + n2i p+                                |]++-- | Convert Non-negative integers to 'Nat'. Negative numbers become Zero.+--+-- NB. When writing the properties below, we use the notation \(\underline{i}\) to mean @i2n i@.+i2n :: SInteger -> SNat+i2n = smtFunction "i2n" $ \i -> [sCase| i of+                                   _ | i .<= 0 -> 0+                                   _           -> sSucc (i2n (i - 1))+                                |]++-- | \(\overline{n} \geq 0\)+--+-- >>> runTP n2iNonNeg+-- Lemma: n2iNonNeg    Q.E.D.+-- Functions proven terminating: n2i+-- [Proven] n2iNonNeg :: Ɐn ∷ Nat → Bool+n2iNonNeg  :: TP (Proof (Forall "n" Nat -> SBool))+n2iNonNeg = inductiveLemma "n2iNonNeg" (\(Forall n) -> n2i n .>= 0) []++-- | \(\overline{\underline{i}} = \max(i, 0)\).+--+-- >>> runTP i2n2i+-- Lemma: i2n2i        Q.E.D.+-- Functions proven terminating: i2n, n2i+-- [Proven] i2n2i :: Ɐi ∷ Integer → Bool+i2n2i :: TP (Proof (Forall "i" Integer -> SBool))+i2n2i = inductiveLemma "i2n2i" (\(Forall i) -> n2i (i2n i) .== i `smax` 0) []++-- | \(\underline{\overline{n}} = n\)+--+-- >>> runTP n2i2n+-- Lemma: n2i2n        Q.E.D.+-- Functions proven terminating: i2n, n2i+-- [Proven] n2i2n :: Ɐn ∷ Nat → Bool+n2i2n :: TP (Proof (Forall "n" Nat -> SBool))+n2i2n = inductiveLemma "n2i2n" (\(Forall n) -> i2n (n2i n) .== n) []++-- | \(\overline{m + n} = \overline{m} + \overline{n}\)+--+-- >>> runTP n2iAdd+-- Lemma: n2iAdd       Q.E.D.+-- Functions proven terminating: n2i, sNatPlus+-- [Proven] n2iAdd :: Ɐm ∷ Nat → Ɐn ∷ Nat → Bool+n2iAdd :: TP (Proof (Forall "m" Nat -> Forall "n" Nat -> SBool))+n2iAdd = inductiveLemma "n2iAdd" (\(Forall m) (Forall n) -> n2i (m + n) .== n2i m + n2i n) []++-- * Addition++-- ** Correctness++-- | \(\overline{m + n} = \overline{m} + \overline{n}\)+--+-- >>> runTP addCorrect+-- Lemma: addCorrect    Q.E.D.+-- Functions proven terminating: n2i, sNatPlus+-- [Proven] addCorrect :: Ɐm ∷ Nat → Ɐn ∷ Nat → Bool+addCorrect :: TP (Proof (Forall "m" Nat -> Forall "n" Nat -> SBool))+addCorrect = inductiveLemma+               "addCorrect"+               (\(Forall m) (Forall n) -> n2i (m + n) .== n2i m + n2i n)+               []++-- ** Left and right unit++-- | \(0 + m = m\)+--+-- >>> runTP addLeftUnit+-- Lemma: addLeftUnit    Q.E.D.+-- Functions proven terminating: sNatPlus+-- [Proven] addLeftUnit :: Ɐm ∷ Nat → Bool+addLeftUnit :: TP (Proof (Forall "m" Nat -> SBool))+addLeftUnit = lemma "addLeftUnit" (\(Forall m) -> 0 + m .== m) []++-- | \(m + 0 = m\)+--+-- >>> runTP addRightUnit+-- Lemma: addRightUnit    Q.E.D.+-- Functions proven terminating: sNatPlus+-- [Proven] addRightUnit :: Ɐm ∷ Nat → Bool+addRightUnit :: TP (Proof (Forall "m" Nat -> SBool))+addRightUnit = inductiveLemma "addRightUnit" (\(Forall m) -> m + 0 .== m) []++-- ** Addition with non-zero values++-- | \(m + \mathrm{Succ}\,n = \mathrm{Succ}\,(m + n)\)+--+-- >>> runTP addSucc+-- Lemma: caseZero     Q.E.D.+-- Lemma: caseSucc+--   Step: 1           Q.E.D.+--   Step: 2           Q.E.D.+--   Step: 3           Q.E.D.+--   Result:           Q.E.D.+-- Lemma: addSucc      Q.E.D.+-- Functions proven terminating: sNatPlus+-- [Proven] addSucc :: Ɐm ∷ Nat → Ɐn ∷ Nat → Bool+addSucc :: TP (Proof (Forall "m" Nat -> Forall "n" Nat -> SBool))+addSucc = do+   caseZero <- lemma "caseZero"+                      (\(Forall @"n" n) -> 0 + sSucc n .== sSucc (0 + n))+                      []++   caseSucc <- calc "caseSucc"+                    (\(Forall @"m" m) (Forall @"n" n) ->+                        m + sSucc n .== sSucc (m + n) .=> sSucc m + sSucc n .== sSucc (sSucc m + n)) $+                    \m n -> let ih = m + sSucc n .== sSucc (m + n)+                         in [ih] |- sSucc m + sSucc n+                                 =: sSucc (m + sSucc n)+                                 ?? ih+                                 =: sSucc (sSucc (m + n))+                                 =: sSucc (sSucc m + n)+                                 =: qed++   inductiveLemma+      "addSucc"+      (\(Forall @"m" m) (Forall @"n" n) -> m + sSucc n .== sSucc (m + n))+      [proofOf caseZero, proofOf caseSucc]++-- ** Associativity++-- | \(m + (n + o) = (m + n) + o\)+--+-- >>> runTP addAssoc+-- Lemma: addAssoc     Q.E.D.+-- Functions proven terminating: sNatPlus+-- [Proven] addAssoc :: Ɐm ∷ Nat → Ɐn ∷ Nat → Ɐo ∷ Nat → Bool+addAssoc :: TP (Proof (Forall "m" Nat -> Forall "n" Nat -> Forall "o" Nat -> SBool))+addAssoc = inductiveLemma+             "addAssoc"+             (\(Forall m) (Forall n) (Forall o) -> m + (n + o) .== (m + n) + o)+             []++-- ** Commutativity++-- | \(m + n = n + m\)+--+-- >>> runTP addComm+-- Lemma: addLeftUnit     Q.E.D.+-- Lemma: addRightUnit    Q.E.D.+-- Lemma: caseZero        Q.E.D.+-- Lemma: addSucc         Q.E.D.+-- Lemma: caseSucc+--   Step: 1              Q.E.D.+--   Step: 2              Q.E.D.+--   Step: 3              Q.E.D.+--   Result:              Q.E.D.+-- Lemma: addComm         Q.E.D.+-- Functions proven terminating: sNatPlus+-- [Proven] addComm :: Ɐm ∷ Nat → Ɐn ∷ Nat → Bool+addComm :: TP (Proof (Forall "m" Nat -> Forall "n" Nat -> SBool))+addComm = do+    alu <- recall addLeftUnit+    aru <- recall addRightUnit++    caseZero <- lemma "caseZero"+                      (\(Forall @"n" (n :: SNat)) -> 0 + n .== n + 0)+                      [proofOf alu, proofOf aru]++    as <- recall addSucc++    caseSucc <- calc "caseSucc"+                     (\(Forall @"m" m) (Forall @"n" n) -> m + n .== n + m .=> sSucc m + n .== n + sSucc m) $+                     \m n -> let ih = m + n .== n + m+                          in [ih] |- sSucc m + n+                                  =: sSucc (m + n)+                                  ?? ih+                                  =: sSucc (n + m)+                                  ?? as `at` (Inst @"m" n, Inst @"n" m)+                                  =: n + sSucc m+                                  =: qed++    inductiveLemma "addComm"+                   (\(Forall m) (Forall n) -> m + n .== n + m)+                   [proofOf caseZero, proofOf caseSucc]++-- * Multiplication++-- ** Correctness++-- | \(\overline{m * n} = \overline{m} * \overline{n}\)+--+-- >>> runTP mulCorrect+-- Lemma: caseZero       Q.E.D.+-- Lemma: addCorrect     Q.E.D.+-- Lemma: caseSucc+--   Step: 1             Q.E.D.+--   Step: 2             Q.E.D.+--   Step: 3             Q.E.D.+--   Step: 4             Q.E.D.+--   Step: 5             Q.E.D.+--   Result:             Q.E.D.+-- Lemma: mullCorrect    Q.E.D.+-- Functions proven terminating: n2i, sNatPlus, sNatTimes+-- [Proven] mullCorrect :: Ɐm ∷ Nat → Ɐn ∷ Nat → Bool+mulCorrect :: TP (Proof (Forall "m" Nat -> Forall "n" Nat -> SBool))+mulCorrect = do+   caseZero <- lemma "caseZero"+                     (\(Forall @"n" n) -> n2i (0 * n) .== n2i 0 * n2i n)+                     []++   addC <- recall addCorrect++   caseSucc <- calc "caseSucc"+                    (\(Forall @"m" m) (Forall @"n" n) ->+                          n2i (m * n) .== n2i m * n2i n .=> n2i (sSucc m * n) .== n2i (sSucc m) * n2i n) $+                    \m n -> let ih = n2i (m * n) .== n2i m * n2i n+                         in [ih] |- n2i (sSucc m * n)+                                 =: n2i (n + m * n)+                                 ?? addC `at` (Inst @"m" n, Inst @"n" (m * n))+                                 =: n2i n + n2i (m * n)+                                 ?? ih+                                 =: n2i n + n2i m * n2i n+                                 =: n2i n * (1 + n2i m)+                                 =: n2i n * n2i (sSucc m)+                                 =: qed++   inductiveLemma+       "mullCorrect"+       (\(Forall @"m" m) (Forall @"n" n) -> n2i (m * n) .== n2i m * n2i n)+       [proofOf caseZero, proofOf caseSucc]++-- ** Left and right absorption++-- | \(0 * m = 0\)+--+-- >>> runTP mulLeftAbsorb+-- Lemma: mulLeftAbsorb    Q.E.D.+-- Functions proven terminating: sNatPlus, sNatTimes+-- [Proven] mulLeftAbsorb :: Ɐm ∷ Nat → Bool+mulLeftAbsorb :: TP (Proof (Forall "m" Nat -> SBool))+mulLeftAbsorb = lemma "mulLeftAbsorb" (\(Forall m) -> 0 * m .== 0) []++-- | \(m * 0 = 0\)+--+-- >>> runTP mulRightAbsorb+-- Lemma: mulRightAbsorb    Q.E.D.+-- Functions proven terminating: sNatPlus, sNatTimes+-- [Proven] mulRightAbsorb :: Ɐm ∷ Nat → Bool+mulRightAbsorb :: TP (Proof (Forall "m" Nat -> SBool))+mulRightAbsorb = inductiveLemma "mulRightAbsorb" (\(Forall m) -> m * 0 .== 0) []++-- ** Left and right unit++-- | \(\mathrm{Succ\,0} * m = m\)+--+-- >>> runTP mulLeftUnit+-- Lemma: mulLeftUnit    Q.E.D.+-- Functions proven terminating: sNatPlus, sNatTimes+-- [Proven] mulLeftUnit :: Ɐm ∷ Nat → Bool+mulLeftUnit :: TP (Proof (Forall "m" Nat -> SBool))+mulLeftUnit = inductiveLemma "mulLeftUnit" (\(Forall m) -> sSucc 0 * m .== m) []++-- | \(m * \mathrm{Succ\,0} = m\)+--+-- >>> runTP mulRightUnit+-- Lemma: mulRightUnit    Q.E.D.+-- Functions proven terminating: sNatPlus, sNatTimes+-- [Proven] mulRightUnit :: Ɐm ∷ Nat → Bool+mulRightUnit :: TP (Proof (Forall "m" Nat -> SBool))+mulRightUnit = inductiveLemma "mulRightUnit" (\(Forall m) -> m * sSucc 0 .== m) []++-- ** Distribution over addition++-- | \(m * (n + o) = m * n + m * o\)+--+-- >>> runTP distribLeft+-- Lemma: caseZero        Q.E.D.+-- Lemma: addAssoc        Q.E.D.+-- Lemma: addComm         Q.E.D.+-- Lemma: caseSucc+--   Step: 1              Q.E.D.+--   Step: 2              Q.E.D.+--   Step: 3              Q.E.D.+--   Step: 4              Q.E.D.+--   Step: 5              Q.E.D.+--   Step: 6              Q.E.D.+--   Step: 7              Q.E.D.+--   Step: 8              Q.E.D.+--   Step: 9              Q.E.D.+--   Result:              Q.E.D.+-- Lemma: distribLeft     Q.E.D.+-- Functions proven terminating: sNatPlus, sNatTimes+-- [Proven] distribLeft :: Ɐm ∷ Nat → Ɐn ∷ Nat → Ɐo ∷ Nat → Bool+distribLeft :: TP (Proof (Forall "m" Nat -> Forall "n" Nat -> Forall "o" Nat -> SBool))+distribLeft = do+   caseZero <- lemma "caseZero" (\(Forall @"n" n) (Forall @"o" (o :: SNat)) -> 0 * (n + o) .== 0 * n + 0 * o) []++   addAsc <- recall addAssoc+   addCom <- recall addComm++   caseSucc <- calc "caseSucc"+                    (\(Forall @"m" m) (Forall @"n" n) (Forall @"o" o) ->+                        m * (n + o) .== m * n + m * o .=> sSucc m * (n + o) .== sSucc m * n + sSucc m * o) $+               \m n o -> let ih = m * (n + o) .== m * n + m * o+                      in [ih] |- sSucc m * (n + o)+                              =: (n + o) + m * (n + o)+                              ?? ih+                              =: (n + o) + (m * n + m * o)+                              ?? addAsc `at` (Inst @"m" n, Inst @"n" o, Inst @"o" (m * n + m * o))+                              =: n + (o + (m * n + m * o))+                              ?? addCom `at` (Inst @"m" (m * n), Inst @"n" (m * o))+                              =: n + (o + (m * o + m * n))+                              ?? addAsc `at` (Inst @"m" o, Inst @"n" (m * o), Inst @"o" (m * n))+                              =: n + ((o + m * o) + m * n)+                              =: n + (sSucc m * o + m * n)+                              ?? addCom `at` (Inst @"m" (sSucc m * o), Inst @"n" (m * n))+                              =: n + (m * n + sSucc m * o)+                              ?? addAsc `at` (Inst @"m" n, Inst @"n" (m * n), Inst @"o" (sSucc m * o))+                              =: (n + m * n) + sSucc m * o+                              =: sSucc m * n + sSucc m * o+                              =: qed++   inductiveLemma+     "distribLeft"+     (\(Forall m) (Forall n) (Forall o) -> m * (n + o) .== m * n + m * o)+     [proofOf caseZero, proofOf caseSucc]++-- | \((m + n) * o = m * o + n * o\)+--+-- >>> runTP distribRight+-- Lemma: caseZero        Q.E.D.+-- Lemma: addAssoc        Q.E.D.+-- Lemma: addComm         Q.E.D.+-- Lemma: addSucc         Q.E.D. [Cached]+-- Lemma: caseSucc+--   Step: 1              Q.E.D.+--   Step: 2              Q.E.D.+--   Step: 3              Q.E.D.+--   Step: 4              Q.E.D.+--   Step: 5              Q.E.D.+--   Step: 6              Q.E.D.+--   Step: 7              Q.E.D.+--   Result:              Q.E.D.+-- Lemma: distribRight    Q.E.D.+-- Functions proven terminating: sNatPlus, sNatTimes+-- [Proven] distribRight :: Ɐm ∷ Nat → Ɐn ∷ Nat → Ɐo ∷ Nat → Bool+distribRight :: TP (Proof (Forall "m" Nat -> Forall "n" Nat -> Forall "o" Nat -> SBool))+distribRight = do+   caseZero <- lemma "caseZero" (\(Forall @"n" n) (Forall @"o" (o :: SNat)) -> (0 + n) * o .== 0 * o + n * o) []++   pAddAssoc <- recall addAssoc+   pAddCom   <- recall addComm+   pAddSucc  <- recall addSucc++   caseSucc <- calc "caseSucc"+                    (\(Forall @"m" m) (Forall @"n" n) (Forall @"o" o) ->+                        (m + n) * o .== m * o + n * o .=> (sSucc m + n) * o .== sSucc m * o + n * o) $+               \m n o -> let ih = (m + n) * o .== m * o + n * o+                      in [ih] |- (sSucc m + n) * o+                              ?? pAddCom `at` (Inst @"m" (sSucc m), Inst @"n" n)+                              =: (n + sSucc m) * o+                              ?? pAddSucc `at` (Inst @"m" n, Inst @"n" m)+                              =: sSucc (n + m) * o+                              ?? pAddCom `at` (Inst @"m" n, Inst @"n" m)+                              =: sSucc (m + n) * o+                              =: o + (m + n) * o+                              ?? ih+                              =: o + (m * o + n *o)+                              ?? pAddAssoc `at` (Inst @"m" o, Inst @"n" (m * o), Inst @"o" (n * o))+                              =: (o + m * o) + n * o+                              =: sSucc m * o + n * o+                              =: qed++   inductiveLemma+     "distribRight"+     (\(Forall m) (Forall n) (Forall o) -> (m + n) * o .== m * o + n * o)+     [proofOf caseZero, proofOf caseSucc]++-- ** Multiplication with non-zero values++-- | \(m * \mathrm{Succ}\,n = m * n + m\)+--+-- >>> runTP mulSucc+-- Lemma: addLeftUnit       Q.E.D.+-- Lemma: distribLeft       Q.E.D.+-- Lemma: mulRightUnit      Q.E.D.+-- Lemma: addComm           Q.E.D. [Cached]+-- Lemma: mulSucc+--   Step: 1                Q.E.D.+--   Step: 2 (defn of +)    Q.E.D.+--   Step: 3                Q.E.D.+--   Step: 4                Q.E.D.+--   Step: 5                Q.E.D.+--   Result:                Q.E.D.+-- Functions proven terminating: sNatPlus, sNatTimes+-- [Proven] mulSucc :: Ɐm ∷ Nat → Ɐn ∷ Nat → Bool+mulSucc :: TP (Proof (Forall "m" Nat -> Forall "n" Nat -> SBool))+mulSucc = do+   alu <- recall addLeftUnit+   dL  <- recall distribLeft+   mru <- recall mulRightUnit+   ac  <- recall addComm++   calc "mulSucc"+        (\(Forall @"m" m) (Forall @"n" n) -> m * sSucc n .== m * n + m) $+        \m n -> [] |- m * sSucc n+                   ?? alu+                   =: m * sSucc (0 + n)+                   ?? "defn of +"+                   =: m * (sSucc 0 + n)+                   ?? dL `at` (Inst @"m" m, Inst @"n" (sSucc 0), Inst @"o" n)+                   =: m * sSucc 0 + m * n+                   ?? mru+                   =: m + m * n+                   ?? ac `at` (Inst @"m" m, Inst @"n" (m * n))+                   =: m * n + m+                   =: qed++-- ** Associativity++-- | \(m * (n * o) = (m * n) * o\)+--+-- >>> runTP mulAssoc+-- Lemma: caseZero        Q.E.D.+-- Lemma: distribRight    Q.E.D.+-- Lemma: caseSucc+--   Step: 1              Q.E.D.+--   Step: 2              Q.E.D.+--   Step: 3              Q.E.D.+--   Step: 4              Q.E.D.+--   Result:              Q.E.D.+-- Lemma: mulAssoc        Q.E.D.+-- Functions proven terminating: sNatPlus, sNatTimes+-- [Proven] mulAssoc :: Ɐm ∷ Nat → Ɐn ∷ Nat → Ɐo ∷ Nat → Bool+mulAssoc :: TP (Proof (Forall "m" Nat -> Forall "n" Nat -> Forall "o" Nat -> SBool))+mulAssoc = do+   caseZero <- lemma "caseZero"+                     (\(Forall @"n" n) (Forall @"o" (o :: SNat)) -> 0 * (n * o) .== (0 * n) * o)+                     []++   distR <- recall distribRight++   caseSucc <- calc "caseSucc"+                    (\(Forall @"m" m) (Forall @"n" n) (Forall @"o" o) ->+                       m * (n * o) .== (m * n) * o .=> sSucc m * (n * o) .== (sSucc m * n) * o) $+                    \m n o -> let ih = m * (n * o) .== (m * n) * o+                              in [ih] |- sSucc m * (n * o)+                                      =: (n * o) + m * (n * o)+                                      ?? ih+                                      =: (n * o) + (m * n) * o+                                      ?? distR `at` (Inst @"m" n, Inst @"n" (m * n), Inst @"o" o)+                                      =: (n + m * n) * o+                                      =: (sSucc m * n) * o+                                      =: qed++   inductiveLemma+     "mulAssoc"+     (\(Forall m) (Forall n) (Forall o) -> m * (n * o) .== (m * n) * o)+     [proofOf caseZero, proofOf caseSucc]++-- ** Commutativity++-- | \(m * n = n * m\)+--+-- >>> runTP mulComm+-- Lemma: mulRightAbsorb    Q.E.D.+-- Lemma: caseZero          Q.E.D.+-- Lemma: mulRightUnit      Q.E.D.+-- Lemma: distribLeft       Q.E.D.+-- Lemma: caseSucc+--   Step: 1                Q.E.D.+--   Step: 2                Q.E.D.+--   Step: 3                Q.E.D.+--   Step: 4                Q.E.D.+--   Step: 5                Q.E.D.+--   Step: 6                Q.E.D.+--   Result:                Q.E.D.+-- Lemma: mulComm           Q.E.D.+-- Functions proven terminating: sNatPlus, sNatTimes+-- [Proven] mulComm :: Ɐm ∷ Nat → Ɐn ∷ Nat → Bool+mulComm :: TP (Proof (Forall "m" Nat -> Forall "n" Nat -> SBool))+mulComm = do+  mra <- recall mulRightAbsorb++  caseZero <- lemma "caseZero"+                    (\(Forall @"m" (m :: SNat)) -> 0 * m .== m * 0)+                    [proofOf mra]++  mru <- recall mulRightUnit+  dL  <- recall distribLeft++  caseSucc <- calc "caseSucc"+                   (\(Forall @"m" m) (Forall @"n" n) -> m * n .== n * m .=> sSucc m * n .== n * sSucc m) $+                   \m n -> let ih = m * n .== n * m+                        in [ih] |- sSucc m * n+                                =: n + m * n+                                ?? ih+                                =: n + n * m+                                ?? mru+                                =: n * sSucc 0 + n * m+                                ?? dL `at` (Inst @"m" n, Inst @"n" (sSucc 0), Inst @"o" m)+                                =: n * (sSucc 0 + m)+                                =: n * sSucc (0 + m)+                                =: n * sSucc m+                                =: qed++  inductiveLemma+    "mulComm"+    (\(Forall @"m" m) (Forall @"n" n) -> m * n .== n * m)+    [proofOf caseZero, proofOf caseSucc]++-- * Ordering++-- ** Transitivity of @<@++-- | \(m < n \;\wedge\; n < o \;\rightarrow\; m < o\)+--+-- >>> runTP ltTrans+-- Lemma: addAssoc     Q.E.D.+-- Lemma: ltTrans+--   Step: 1           Q.E.D.+--   Step: 2           Q.E.D.+--   Step: 3           Q.E.D.+--   Step: 4           Q.E.D.+--   Step: 5           Q.E.D.+--   Step: 6           Q.E.D.+--   Result:           Q.E.D.+-- Functions proven terminating: sNatPlus+-- [Proven] ltTrans :: Ɐm ∷ Nat → Ɐn ∷ Nat → Ɐo ∷ Nat → Bool+ltTrans :: TP (Proof (Forall "m" Nat -> Forall "n" Nat -> Forall "o" Nat -> SBool))+ltTrans = do+  aa <- recall addAssoc++  calc "ltTrans"+       (\(Forall @"m" m) (Forall @"n" n) (Forall @"o" o) -> m .< n .&& n .< o .=> m .< o) $+       \m n o ->  [m .< n, n .< o]+              |-> let k1 = some "k1" (\k -> n .== m + sSucc k)+                      k2 = some "k2" (\k -> o .== n + sSucc k)+               in n .== m + sSucc k1+               =: o .== n + sSucc k2+               =: o .== (m + sSucc k1) + sSucc k2+               ?? aa `at` (Inst @"m" m, Inst @"n" (sSucc k1), Inst @"o" (sSucc k2))+               =: o .== m + (sSucc k1 + sSucc k2)+               =: o .== m + sSucc (k1 + sSucc k2)+               =: m .< o+               =: sTrue+               =: qed++-- ** Irreflexivity of @<@++-- | \(\neg(m < m)\)+--+-- >>> runTP ltIrreflexive+-- Lemma: cancel           Q.E.D.+-- Lemma: ltIrreflexive+--   Step: 1               Q.E.D.+--   Step: 2               Q.E.D.+--   Result:               Q.E.D.+-- Functions proven terminating: sNatPlus+-- [Proven] ltIrreflexive :: Ɐm ∷ Nat → Bool+ltIrreflexive :: TP (Proof (Forall "m" Nat -> SBool))+ltIrreflexive = do+  cancel <- inductiveLemma+              "cancel"+              (\(Forall @"m" m) (Forall @"n" n) -> m + n .== m .=> n .== 0)+              []++  calc "ltIrreflexive"+       (\(Forall @"m" m) -> sNot (m .< m)) $+       \m -> [m .< m] |-> let k = some "k" (\d -> m .== m + sSucc d)+                      in m .== m + sSucc k+                      ?? cancel `at` (Inst @"m" m, Inst @"n" (sSucc k))+                      =: sSucc k .== 0+                      =: contradiction++-- ** Trichotomy++-- | \(m \geq n = \overline{m} \geq \overline{n}\)+--+-- >>> runTP lteEquiv+-- Lemma: n2iAdd               Q.E.D.+-- Lemma: n2iNonNeg            Q.E.D.+-- Lemma: n2i2n                Q.E.D.+-- Lemma: i2n2i                Q.E.D.+-- Lemma: addRightUnit         Q.E.D.+-- Lemma: lteEquiv_ltr+--   Step: 1 (2 way case split)+--     Step: 1.1               Q.E.D.+--     Step: 1.2.1             Q.E.D.+--     Step: 1.2.2             Q.E.D.+--     Step: 1.2.3             Q.E.D.+--     Step: 1.2.4             Q.E.D.+--     Step: 1.Completeness    Q.E.D.+--   Result:                   Q.E.D.+-- Lemma: lteEquiv_rtl+--   Step: 1                   Q.E.D.+--   Step: 2                   Q.E.D.+--   Step: 3                   Q.E.D.+--   Step: 4                   Q.E.D.+--   Step: 5                   Q.E.D.+--   Step: 6                   Q.E.D.+--   Step: 7 (2 way case split)+--     Step: 7.1               Q.E.D.+--     Step: 7.2.1             Q.E.D.+--     Step: 7.2.2             Q.E.D.+--     Step: 7.2.3             Q.E.D.+--     Step: 7.2.4             Q.E.D.+--     Step: 7.2.5             Q.E.D.+--     Step: 7.Completeness    Q.E.D.+--   Result:                   Q.E.D.+-- Lemma: lteEquiv             Q.E.D.+-- Functions proven terminating: i2n, n2i, sNatPlus+-- [Proven] lteEquiv :: Ɐm ∷ Nat → Ɐn ∷ Nat → Bool+lteEquiv :: TP (Proof (Forall "m" Nat -> Forall "n" Nat -> SBool))+lteEquiv = do+    n2ia    <- recall n2iAdd+    nn      <- recall n2iNonNeg+    n2i2nId <- recall n2i2n+    i2n2iId <- recall i2n2i+    aru     <- recall addRightUnit++    ltr <- calcWith cvc5 "lteEquiv_ltr"+              (\(Forall @"m" m) (Forall @"n" n) -> (m .>= n) .=> (n2i m .>= n2i n)) $+              \m n -> [m .>= n]+                   |- n2i m .>= n2i n+                    =: cases [ m .== n ==> trivial+                             , m .>  n ==> let k = some "k" (\d -> m .== n + sSucc d)+                                        in n2i m .>= n2i n+                                        ?? m .> n+                                        =: n2i (n + sSucc k) .>= n2i n+                                        ?? n2ia `at` (Inst @"m" n, Inst @"n" (sSucc k))+                                        =: n2i n + n2i (sSucc k) .>= n2i n+                                        ?? nn `at` Inst @"n" (sSucc k)+                                        =: sTrue+                                        =: qed+                             ]++    rtl <- calc "lteEquiv_rtl"+                (\(Forall @"m" m) (Forall @"n" n) -> (n2i m .>= n2i n) .=> (m .>= n)) $+                \m n -> [n2i m .>= n2i n]+                     |-> let k = n2i m - n2i n+                     in k .>= 0+                     =: n2i m .== n2i n + k+                     ?? i2n2iId `at` Inst @"i" k+                     =: n2i m .== n2i n + n2i (i2n k)+                     ?? n2ia `at` (Inst @"m" n, Inst @"n" (i2n k))+                     =: n2i m .== n2i (n + i2n k)+                     =: i2n (n2i m) .== i2n (n2i (n + i2n k))+                     ?? n2i2nId `at` Inst @"n" m+                     =: m .== i2n (n2i (n + i2n k))+                     ?? n2i2nId `at` Inst @"n" (n + i2n k)+                     =: m .== n + i2n k+                     =: cases [ k .>  0 ==> trivial+                              , k .<= 0 ==> m .== n + i2n k+                                         ?? i2n k .== 0+                                         =: m .== n + 0+                                         ?? aru+                                         =: m .== n+                                         =: m .== n .|| m .> n+                                         =: m .>= n+                                         =: qed+                              ]++    lemma "lteEquiv"+          (\(Forall m) (Forall n) -> (n2i m .>= n2i n) .== (m .>= n))+          [proofOf ltr, proofOf rtl]++-- | \(m \geq n \;\lor\; n \geq m\)+--+-- >>> runTP ordered+-- Lemma: lteEquiv             Q.E.D.+-- Lemma: ordered+--   Step: 1                   Q.E.D.+--   Step: 2                   Q.E.D.+--   Result:                   Q.E.D.+-- Functions proven terminating: i2n, n2i, sNatPlus+-- [Proven] ordered :: Ɐm ∷ Nat → Ɐn ∷ Nat → Bool+ordered :: TP (Proof (Forall "m" Nat -> Forall "n" Nat -> SBool))+ordered = do+   lteEq <- recall lteEquiv++   calcWith cvc5 "ordered"+        (\(Forall m) (Forall n) -> m .>= n .|| n .>= m) $+        \m n -> [] |- (m .>= n .|| n .>= m)+                   ?? lteEq `at` (Inst @"m" m, Inst @"n" n)+                   =: (n2i m .>= n2i n .|| n .>= m)+                   ?? lteEq `at` (Inst @"m" n, Inst @"n" m)+                   =: (n2i m .>= n2i n .|| n2i n .>= n2i m)+                   =: qed++-- | \(m < n \;\lor\; m = n \;\lor\; n < m\)+--+-- >>> runTP trichotomy+-- Lemma: ordered              Q.E.D.+-- Lemma: trichotomy           Q.E.D.+-- Functions proven terminating: i2n, n2i, sNatPlus+-- [Proven] trichotomy :: Ɐm ∷ Nat → Ɐn ∷ Nat → Bool+trichotomy :: TP (Proof (Forall "m" Nat -> Forall "n" Nat -> SBool))+trichotomy = do+   pOrdered <- recall ordered++   lemma "trichotomy"+         (\(Forall m) (Forall n) -> m .< n .|| m .== n .|| n .< m)+         [proofOf pOrdered]++-- ** Addition and ordering++-- | \(m < n \;\rightarrow\; m + o < n + o\)+--+-- >>> runTP addOrder+-- Lemma: addAssoc        Q.E.D.+-- Lemma: addComm         Q.E.D.+-- Lemma: addOrder+--   Step: 1              Q.E.D.+--   Step: 2              Q.E.D.+--   Step: 3              Q.E.D.+--   Step: 4              Q.E.D.+--   Step: 5              Q.E.D.+--   Result:              Q.E.D.+-- Functions proven terminating: sNatPlus+-- [Proven] addOrder :: Ɐm ∷ Nat → Ɐn ∷ Nat → Ɐo ∷ Nat → Bool+addOrder :: TP (Proof (Forall "m" Nat -> Forall "n" Nat -> Forall "o" Nat -> SBool))+addOrder = do+  pAddAssoc <- recall addAssoc+  pAddComm  <- recall addComm++  calc "addOrder"+       (\(Forall m) (Forall n) (Forall o) -> m .< n .=> m + o .< n + o) $+       \m n o -> [m .< n]+              |-> let k = some "k" (\d -> n .== m + sSucc d)+               in n .== m + sSucc k+               =: n + o .== (m + sSucc k) + o+               ?? pAddAssoc `at` (Inst @"m" m, Inst @"n" (sSucc k), Inst @"o" o)+               =: n + o .== m + (sSucc k + o)+               ?? pAddComm `at` (Inst @"m" (sSucc k), Inst @"n" o)+               =: n + o .== m + (o + sSucc k)+               ?? pAddAssoc `at` (Inst @"m" m, Inst @"n" o, Inst @"o" (sSucc k))+               =: n + o .== (m + o) + sSucc k+               =: m + o .<= n + o+               =: qed++-- ** Multiplication and ordering++-- | \(o > 0 \;\wedge\; m < n \;\rightarrow\; m * o < n * o\)+--+-- >>> runTP mulOrder+-- Lemma: distribRight    Q.E.D.+-- Lemma: mulOrder+--   Step: 1              Q.E.D.+--   Step: 2              Q.E.D.+--   Step: 3              Q.E.D.+--   Step: 4              Q.E.D.+--   Step: 5              Q.E.D.+--   Step: 6              Q.E.D.+--   Result:              Q.E.D.+-- Functions proven terminating: sNatPlus, sNatTimes+-- [Proven] mulOrder :: Ɐm ∷ Nat → Ɐn ∷ Nat → Ɐo ∷ Nat → Bool+mulOrder :: TP (Proof (Forall "m" Nat -> Forall "n" Nat -> Forall "o" Nat -> SBool))+mulOrder = do+  pDistribRight <- recall distribRight++  calc "mulOrder"+       (\(Forall m) (Forall n) (Forall o) -> 0 .< o .&& m .< n .=> m * o .< n * o) $+       \m n o -> [0 .< o, m .< n]+              |-> let k = some "k" (\d -> n .== m + sSucc d)+               in n .== m + sSucc k+               =: n * o .== (m + sSucc k) * o+               ?? pDistribRight `at` (Inst @"m" m, Inst @"n" (sSucc k), Inst @"o" o)+               =: n * o .== m * o + sSucc k * o+               ?? 0 .< o+               =: n * o .== m * o + sSucc k * sSucc (sprev o)+               =: n * o .== m * o + (sSucc (sprev o) + k * sSucc (sprev o))+               =: n * o .== m * o + sSucc (sprev o + k * sSucc (sprev o))+               =: m * o .< n * o+               =: qed++-- ** Order and sum++-- | \(m < n \;\rightarrow\; \exists o.\; m + o = n\)+--+-- >>> runTP orderSum+-- Lemma: orderSum     Q.E.D.+-- Functions proven terminating: sNatPlus+-- [Proven] orderSum :: Ɐm ∷ Nat → Ɐn ∷ Nat → Bool+orderSum :: TP (Proof (Forall "m" Nat -> Forall "n" Nat -> SBool))+orderSum = lemma "orderSum"+                 (\(Forall m) (Forall n) -> m .< n .=> quantifiedBool (\(Exists o) -> m + o .== n))+                 []++-- ** 0 and 1 relationship++-- | \(0 < 1\)+--+-- >>> runTP zeroLtOne+-- Lemma: zeroLtOne    Q.E.D.+-- Functions proven terminating: sNatPlus+-- [Proven] zeroLtOne :: Bool+zeroLtOne :: TP (Proof SBool)+zeroLtOne = lemma "zeroLtOne" (0 .< (1 :: SNat)) []++-- | \(m > 0 \;\rightarrow\; m \geq 1\)+--+-- >>> runTP nothingBetweenZeroAndOne+-- Lemma: nothingBetweenZeroAndOne    Q.E.D.+-- Functions proven terminating: sNatPlus+-- [Proven] nothingBetweenZeroAndOne :: Ɐm ∷ Nat → Bool+nothingBetweenZeroAndOne :: TP (Proof (Forall "m" Nat -> SBool))+nothingBetweenZeroAndOne = lemma "nothingBetweenZeroAndOne"+                                 (\(Forall m) -> m .> 0 .=> m .>= 1)+                                 []++-- ** 0 is the minimum++-- | \(m \geq 0\)+--+-- >>> runTP minimumElt+-- Lemma: minimumElt    Q.E.D.+-- Functions proven terminating: sNatPlus+-- [Proven] minimumElt :: Ɐm ∷ Nat → Bool+minimumElt :: TP (Proof (Forall "m" Nat -> SBool))+minimumElt = lemma "minimumElt" (\(Forall m) -> m .>= 0) []++-- ** There is no maximum element++-- | \(\forall m \;\exists n \;.\; m < n\)+--+-- >>> runTP noMaximumElt+-- Lemma: noMaximumElt    Q.E.D.+-- Functions proven terminating: sNatPlus+-- [Proven] noMaximumElt :: Ɐm ∷ Nat → ∃n ∷ Nat → Bool+noMaximumElt :: TP (Proof (Forall "m" Nat -> Exists "n" Nat -> SBool))+noMaximumElt = lemma "noMaximumElt" (\(Forall m) (Exists n) -> m .< n) []
+ Documentation/SBV/Examples/TP/PigeonHole.hs view
@@ -0,0 +1,53 @@+-----------------------------------------------------------------------------+-- |+-- Module    : Documentation.SBV.Examples.TP.PigeonHole+-- Copyright : (c) Levent Erkok+-- License   : BSD3+-- Maintainer: erkokl@gmail.com+-- Stability : experimental+--+-- Proves the pigeon-hole principle. If a list of integers sum to more than the length+-- of the list itself, then some cell must contain a value larger than @1@.+-----------------------------------------------------------------------------++{-# LANGUAGE CPP       #-}+{-# LANGUAGE DataKinds #-}++{-# OPTIONS_GHC -Wall -Werror #-}++module Documentation.SBV.Examples.TP.PigeonHole where++import Prelude hiding (sum, length, elem, null, any)++import Data.SBV+import Data.SBV.List+import Data.SBV.TP++#ifdef DOCTEST+-- $setup+-- >>> import Data.SBV.TP+#endif++-- | Overflow: Some value is greater than 1.+overflow :: SList Integer -> SBool+overflow = any (.> 1)++-- | \(\sum xs > \lvert xs \rvert \Rightarrow \textrm{overflow}\, xs\)+--+-- >>> runTP pigeonHole+-- Inductive lemma: pigeonHole+--   Step: Base                   Q.E.D.+--   Step: 1                      Q.E.D.+--   Step: 2                      Q.E.D.+--   Result:                      Q.E.D.+-- Functions proven terminating: sbv.foldr+--[Proven] pigeonHole :: Ɐxs ∷ [Integer] → Bool+pigeonHole :: TP (Proof (Forall "xs" [Integer] -> SBool))+pigeonHole = induct "pigeonHole"+                   (\(Forall xs) -> sum xs .> length xs .=> overflow xs) $+                   \ih (x, xs) -> [sum xs .> length xs]+                               |- overflow (x .: xs)+                               =: (x .> 1 .|| overflow xs)+                               ?? ih+                               =: sTrue+                               =: qed
Documentation/SBV/Examples/TP/PowerMod.hs view
@@ -9,13 +9,14 @@ -- Proofs about power and modulus. Adapted from an example by amigalemming, -- see <http://github.com/LeventErkok/sbv/issues/744>. ----- We also demonstrate the proof-caching features of TP.+-- We also demonstrate the use of recall for reusing previously established proofs. ----------------------------------------------------------------------------- -{-# LANGUAGE DataKinds           #-}-{-# LANGUAGE TypeAbstractions    #-}-{-# LANGUAGE TypeApplications    #-}-{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE CPP              #-}+{-# LANGUAGE DataKinds        #-}+{-# LANGUAGE QuasiQuotes      #-}+{-# LANGUAGE TypeAbstractions #-}+{-# LANGUAGE TypeApplications #-}  {-# OPTIONS_GHC -Wall -Werror #-} @@ -24,54 +25,85 @@ import Data.SBV import Data.SBV.TP --- | The proofs in this module are structured so they are presented at the top-level and reused.--- This results in re-running the proofs over and over, as each proof has to run all its dependents.--- To avoid re-running proofs, we tell TP to use a proof-cache. Note that use of a proof-cache comes--- with the user obligation that all proofs used are uniquely named. Otherwise the results can be--- unsound, and SBV will indicate this possibility in its output.-runCached :: TP a -> IO a-runCached = runTPWith (tpCache z3)+#ifdef DOCTEST+-- $setup+-- >>> import Data.SBV.TP+#endif  -- | Power function over integers. power :: SInteger -> SInteger -> SInteger-power = smtFunction "power" $ \b n -> ite (n .<= 0) 1 (b * power b (n-1))+power = smtFunction "power" $ \b n -> [sCase| n of+                                         _ | n .<= 0 -> 1+                                         _           -> b * power b (n-1)+                                      |]  -- | \(m > 1 \Rightarrow n + mk \equiv n \pmod{m}\) -- -- ==== __Proof__--- >>> runCached modAddMultiple--- Inductive lemma: modAddMultiple---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Result:                               Q.E.D.+-- >>> runTP modAddMultiple+-- Inductive lemma: modAddMultiplePos+--   Step: Base                          Q.E.D.+--   Step: 1                             Q.E.D.+--   Step: 2                             Q.E.D.+--   Step: 3                             Q.E.D.+--   Result:                             Q.E.D.+-- Lemma: modAddMultiple+--   Step: 1 (2 way case split)+--     Step: 1.1                         Q.E.D.+--     Step: 1.2                         Q.E.D.+--     Step: 1.Completeness              Q.E.D.+--   Result:                             Q.E.D. -- [Proven] modAddMultiple :: Ɐk ∷ Integer → Ɐn ∷ Integer → Ɐm ∷ Integer → Bool modAddMultiple :: TP (Proof (Forall "k" Integer -> Forall "n" Integer -> Forall "m" Integer -> SBool)) modAddMultiple = do-   inductWith (tpCache cvc5) "modAddMultiple"+   -- First prove for k >= 0 by induction. We need this restriction since+   -- the inductive hypothesis for integers is guarded by k >= 0.+   pos <- induct "modAddMultiplePos"+             (\(Forall k) (Forall n) (Forall m) -> k .>= 0 .&& m .> 1 .=> (n + m*k) `sEMod` m .== n `sEMod` m) $+             \ih k n m -> [k .>= 0, m .> 1] |- (n + m*(k+1)) `sEMod` m+                                             =: (n + m*k + m) `sEMod` m+                                             ?? m `sEMod` m .== 0+                                             ?? (n + m*k + m) `sEDiv` m .== (n + m*k) `sEDiv` m + 1+                                             =: (n + m*k) `sEMod` m+                                             ?? ih `at` (Inst @"n" n, Inst @"m" m)+                                             =: n `sEMod` m+                                             =: qed++   -- Extend to all k by case-splitting. For k < 0, use the positive case with+   -- k' = -k > 0 and n' = n+m*k: pos gives (n'+m*k') mod m = n' mod m,+   -- i.e., n mod m = (n+m*k) mod m.+   calc "modAddMultiple"       (\(Forall k) (Forall n) (Forall m) -> m .> 1 .=> (n + m*k) `sEMod` m .== n `sEMod` m) $-      \ih k n m -> [m .> 1] |- (n + m*(k+1)) `sEMod` m-                              =: (n + m*k + m) `sEMod` m-                              =: (n + m*k) `sEMod` m-                              ?? ih `at` (Inst @"n" n, Inst @"m" m)-                              =: n `sEMod` m-                              =: qed+      \k n m -> [m .> 1] |- cases [ k .>= 0 ==> (n + m*k) `sEMod` m+                                             ?? pos `at` (Inst @"k" k, Inst @"n" n, Inst @"m" m)+                                             =: n `sEMod` m+                                             =: qed+                                  , k .< 0  ==> (n + m*k) `sEMod` m+                                             ?? pos `at` (Inst @"k" (-k), Inst @"n" (n + m*k), Inst @"m" m)+                                             =: n `sEMod` m+                                             =: qed+                                  ]  -- | \(m > 0 \Rightarrow a + b \equiv a + (b \bmod m) \pmod{m}\) -- -- ==== __Proof__--- >>> runCached modAddRight--- Inductive lemma: modAddMultiple---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Result:                               Q.E.D.+-- >>> runTP modAddRight+-- Inductive lemma: modAddMultiplePos+--   Step: Base                          Q.E.D.+--   Step: 1                             Q.E.D.+--   Step: 2                             Q.E.D.+--   Step: 3                             Q.E.D.+--   Result:                             Q.E.D.+-- Lemma: modAddMultiple+--   Step: 1 (2 way case split)+--     Step: 1.1                         Q.E.D.+--     Step: 1.2                         Q.E.D.+--     Step: 1.Completeness              Q.E.D.+--   Result:                             Q.E.D. -- Lemma: modAddRight---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Result:                               Q.E.D.+--   Step: 1                             Q.E.D.+--   Step: 2                             Q.E.D.+--   Result:                             Q.E.D. -- [Proven] modAddRight :: Ɐa ∷ Integer → Ɐb ∷ Integer → Ɐm ∷ Integer → Bool modAddRight :: TP (Proof (Forall "a" Integer -> Forall "b" Integer -> Forall "m" Integer -> SBool)) modAddRight = do@@ -87,22 +119,28 @@ -- | \(m > 0 \Rightarrow a + b \equiv (a \bmod m) + b \pmod{m}\) -- -- ==== __Proof__--- >>> runCached modAddLeft--- Inductive lemma: modAddMultiple---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Result:                               Q.E.D.+-- >>> runTP modAddLeft+-- Inductive lemma: modAddMultiplePos+--   Step: Base                          Q.E.D.+--   Step: 1                             Q.E.D.+--   Step: 2                             Q.E.D.+--   Step: 3                             Q.E.D.+--   Result:                             Q.E.D.+-- Lemma: modAddMultiple+--   Step: 1 (2 way case split)+--     Step: 1.1                         Q.E.D.+--     Step: 1.2                         Q.E.D.+--     Step: 1.Completeness              Q.E.D.+--   Result:                             Q.E.D. -- Lemma: modAddRight---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Result:                               Q.E.D.+--   Step: 1                             Q.E.D.+--   Step: 2                             Q.E.D.+--   Result:                             Q.E.D. -- Lemma: modAddLeft---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Result:                               Q.E.D.+--   Step: 1                             Q.E.D.+--   Step: 2                             Q.E.D.+--   Step: 3                             Q.E.D.+--   Result:                             Q.E.D. -- [Proven] modAddLeft :: Ɐa ∷ Integer → Ɐb ∷ Integer → Ɐm ∷ Integer → Bool modAddLeft :: TP (Proof (Forall "a" Integer -> Forall "b" Integer -> Forall "m" Integer -> SBool)) modAddLeft = do@@ -119,27 +157,34 @@ -- | \(m > 0 \Rightarrow a - b \equiv a - (b \bmod m) \pmod{m}\) -- -- ==== __Proof__--- >>> runCached modSubRight--- Inductive lemma: modAddMultiple---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Result:                               Q.E.D.+-- >>> runTP modSubRight+-- Inductive lemma: modAddMultiplePos+--   Step: Base                          Q.E.D.+--   Step: 1                             Q.E.D.+--   Step: 2                             Q.E.D.+--   Step: 3                             Q.E.D.+--   Result:                             Q.E.D.+-- Lemma: modAddMultiple+--   Step: 1 (2 way case split)+--     Step: 1.1                         Q.E.D.+--     Step: 1.2                         Q.E.D.+--     Step: 1.Completeness              Q.E.D.+--   Result:                             Q.E.D. -- Lemma: modSubRight---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Result:                               Q.E.D.+--   Step: 1                             Q.E.D.+--   Step: 2                             Q.E.D.+--   Step: 3                             Q.E.D.+--   Result:                             Q.E.D. -- [Proven] modSubRight :: Ɐa ∷ Integer → Ɐb ∷ Integer → Ɐm ∷ Integer → Bool modSubRight :: TP (Proof (Forall "a" Integer -> Forall "b" Integer -> Forall "m" Integer -> SBool)) modSubRight = do    mAddMul <- modAddMultiple    calc "modSubRight"       (\(Forall a) (Forall b) (Forall m) -> m .> 0 .=>  (a-b) `sEMod` m .== (a - b `sEMod` m) `sEMod` m) $-      \a b m -> [m .> 0] |- (a-b) `sEMod` m+      \a b m -> [m .> 0] |- (a - b) `sEMod` m+                         ?? b .== b `sEMod` m + m * b `sEDiv` m                          =: (a - (b `sEMod` m + m * b `sEDiv` m)) `sEMod` m-                         =: ((a - b `sEMod` m) + m*(- (b `sEDiv` m))) `sEMod` m+                         =: ((a - b `sEMod` m) + m * (- (b `sEDiv` m))) `sEMod` m                          ?? mAddMul `at` (Inst @"k" (- (b `sEDiv` m)), Inst @"n" (a - b `sEMod` m), Inst @"m" m)                          =: (a - b `sEMod` m) `sEMod` m                          =: qed@@ -147,38 +192,43 @@ -- | \(a \geq 0 \land m > 0 \Rightarrow ab \equiv a \cdot (b \bmod m) \pmod{m}\) -- -- ==== __Proof__--- >>> runCached modMulRightNonneg--- Inductive lemma: modAddMultiple---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Result:                               Q.E.D.+-- >>> runTP modMulRightNonneg+-- Inductive lemma: modAddMultiplePos+--   Step: Base                          Q.E.D.+--   Step: 1                             Q.E.D.+--   Step: 2                             Q.E.D.+--   Step: 3                             Q.E.D.+--   Result:                             Q.E.D.+-- Lemma: modAddMultiple+--   Step: 1 (2 way case split)+--     Step: 1.1                         Q.E.D.+--     Step: 1.2                         Q.E.D.+--     Step: 1.Completeness              Q.E.D.+--   Result:                             Q.E.D. -- Lemma: modAddRight---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Result:                               Q.E.D.+--   Step: 1                             Q.E.D.+--   Step: 2                             Q.E.D.+--   Result:                             Q.E.D. -- Lemma: modAddLeft---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Result:                               Q.E.D.--- Cached: modAddMultiple                  Q.E.D.--- Cached: modAddRight                     Q.E.D.+--   Step: 1                             Q.E.D.+--   Step: 2                             Q.E.D.+--   Step: 3                             Q.E.D.+--   Result:                             Q.E.D.+-- Lemma: modAddRight                    Q.E.D. [Cached] -- Inductive lemma: modMulRightNonneg---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4                               Q.E.D.---   Step: 5                               Q.E.D.---   Step: 6                               Q.E.D.---   Result:                               Q.E.D.--- [Proven. Cached: modAddRight] modMulRightNonneg :: Ɐa ∷ Integer → Ɐb ∷ Integer → Ɐm ∷ Integer → Bool+--   Step: Base                          Q.E.D.+--   Step: 1                             Q.E.D.+--   Step: 2                             Q.E.D.+--   Step: 3                             Q.E.D.+--   Step: 4                             Q.E.D.+--   Step: 5                             Q.E.D.+--   Step: 6                             Q.E.D.+--   Result:                             Q.E.D.+-- [Proven] modMulRightNonneg :: Ɐa ∷ Integer → Ɐb ∷ Integer → Ɐm ∷ Integer → Bool modMulRightNonneg :: TP (Proof (Forall "a" Integer -> Forall "b" Integer -> Forall "m" Integer -> SBool)) modMulRightNonneg = do    mAddL <- modAddLeft-   mAddR <- modAddRight+   mAddR <- recall modAddRight     induct "modMulRightNonneg"       (\(Forall a) (Forall b) (Forall m) -> a .>= 0 .&& m .> 0 .=> (a*b) `sEMod` m .== (a * b `sEMod` m) `sEMod` m) $@@ -198,42 +248,43 @@ -- | \(a \geq 0 \land m > 0 \Rightarrow -ab \equiv -\left(a \cdot (b \bmod m)\right) \pmod{m}\) -- -- ==== __Proof__--- >>> runCached modMulRightNeg--- Inductive lemma: modAddMultiple---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Result:                               Q.E.D.+-- >>> runTP modMulRightNeg+-- Inductive lemma: modAddMultiplePos+--   Step: Base                          Q.E.D.+--   Step: 1                             Q.E.D.+--   Step: 2                             Q.E.D.+--   Step: 3                             Q.E.D.+--   Result:                             Q.E.D.+-- Lemma: modAddMultiple+--   Step: 1 (2 way case split)+--     Step: 1.1                         Q.E.D.+--     Step: 1.2                         Q.E.D.+--     Step: 1.Completeness              Q.E.D.+--   Result:                             Q.E.D. -- Lemma: modAddRight---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Result:                               Q.E.D.+--   Step: 1                             Q.E.D.+--   Step: 2                             Q.E.D.+--   Result:                             Q.E.D. -- Lemma: modAddLeft---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Result:                               Q.E.D.--- Cached: modAddMultiple                  Q.E.D.--- Lemma: modSubRight---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Result:                               Q.E.D.+--   Step: 1                             Q.E.D.+--   Step: 2                             Q.E.D.+--   Step: 3                             Q.E.D.+--   Result:                             Q.E.D.+-- Lemma: modSubRight                    Q.E.D. -- Inductive lemma: modMulRightNeg---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4                               Q.E.D.---   Step: 5                               Q.E.D.---   Step: 6                               Q.E.D.---   Result:                               Q.E.D.--- [Proven. Cached: modAddMultiple] modMulRightNeg :: Ɐa ∷ Integer → Ɐb ∷ Integer → Ɐm ∷ Integer → Bool+--   Step: Base                          Q.E.D.+--   Step: 1                             Q.E.D.+--   Step: 2                             Q.E.D.+--   Step: 3                             Q.E.D.+--   Step: 4                             Q.E.D.+--   Step: 5                             Q.E.D.+--   Step: 6                             Q.E.D.+--   Result:                             Q.E.D.+-- [Proven] modMulRightNeg :: Ɐa ∷ Integer → Ɐb ∷ Integer → Ɐm ∷ Integer → Bool modMulRightNeg :: TP (Proof (Forall "a" Integer -> Forall "b" Integer -> Forall "m" Integer -> SBool)) modMulRightNeg = do    mAddL <- modAddLeft-   mSubR <- modSubRight+   mSubR <- recall modSubRight     induct "modMulRightNeg"       (\(Forall a) (Forall b) (Forall m) -> a .>= 0 .&& m .> 0 .=> (-(a*b)) `sEMod` m .== (-(a * b `sEMod` m)) `sEMod` m) $@@ -253,64 +304,52 @@ -- | \(m > 0 \Rightarrow ab \equiv a \cdot (b \bmod m) \pmod{m}\) -- -- ==== __Proof__--- >>> runCached modMulRight--- Inductive lemma: modAddMultiple---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Result:                               Q.E.D.+-- >>> runTP modMulRight+-- Inductive lemma: modAddMultiplePos+--   Step: Base                          Q.E.D.+--   Step: 1                             Q.E.D.+--   Step: 2                             Q.E.D.+--   Step: 3                             Q.E.D.+--   Result:                             Q.E.D.+-- Lemma: modAddMultiple+--   Step: 1 (2 way case split)+--     Step: 1.1                         Q.E.D.+--     Step: 1.2                         Q.E.D.+--     Step: 1.Completeness              Q.E.D.+--   Result:                             Q.E.D. -- Lemma: modAddRight---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Result:                               Q.E.D.+--   Step: 1                             Q.E.D.+--   Step: 2                             Q.E.D.+--   Result:                             Q.E.D. -- Lemma: modAddLeft---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Result:                               Q.E.D.--- Cached: modAddMultiple                  Q.E.D.--- Cached: modAddRight                     Q.E.D.+--   Step: 1                             Q.E.D.+--   Step: 2                             Q.E.D.+--   Step: 3                             Q.E.D.+--   Result:                             Q.E.D.+-- Lemma: modAddRight                    Q.E.D. [Cached] -- Inductive lemma: modMulRightNonneg---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4                               Q.E.D.---   Step: 5                               Q.E.D.---   Step: 6                               Q.E.D.---   Result:                               Q.E.D.--- Cached: modAddMultiple                  Q.E.D.--- Cached: modAddRight                     Q.E.D.--- Cached: modAddLeft                      Q.E.D.--- Cached: modAddMultiple                  Q.E.D.--- Lemma: modSubRight---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Result:                               Q.E.D.--- Inductive lemma: modMulRightNeg---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4                               Q.E.D.---   Step: 5                               Q.E.D.---   Step: 6                               Q.E.D.---   Result:                               Q.E.D.+--   Step: Base                          Q.E.D.+--   Step: 1                             Q.E.D.+--   Step: 2                             Q.E.D.+--   Step: 3                             Q.E.D.+--   Step: 4                             Q.E.D.+--   Step: 5                             Q.E.D.+--   Step: 6                             Q.E.D.+--   Result:                             Q.E.D.+-- Lemma: modMulRightNeg                 Q.E.D. -- Lemma: modMulRight --   Step: 1 (2 way case split)---     Step: 1.1                           Q.E.D.---     Step: 1.2.1                         Q.E.D.---     Step: 1.2.2                         Q.E.D.---     Step: 1.2.3                         Q.E.D.---     Step: 1.Completeness                Q.E.D.---   Result:                               Q.E.D.--- [Proven. Cached: modAddLeft, modAddMultiple, modAddRight] modMulRight :: Ɐa ∷ Integer → Ɐb ∷ Integer → Ɐm ∷ Integer → Bool+--     Step: 1.1                         Q.E.D.+--     Step: 1.2.1                       Q.E.D.+--     Step: 1.2.2                       Q.E.D.+--     Step: 1.2.3                       Q.E.D.+--     Step: 1.Completeness              Q.E.D.+--   Result:                             Q.E.D.+-- [Proven] modMulRight :: Ɐa ∷ Integer → Ɐb ∷ Integer → Ɐm ∷ Integer → Bool modMulRight :: TP (Proof (Forall "a" Integer -> Forall "b" Integer -> Forall "m" Integer -> SBool)) modMulRight = do    mMulNonneg <- modMulRightNonneg-   mMulNeg    <- modMulRightNeg+   mMulNeg    <- recall modMulRightNeg     calc "modMulRight"         (\(Forall a) (Forall b) (Forall m) -> m .> 0 .=> (a*b) `sEMod` m .== (a * b `sEMod` m) `sEMod` m) $@@ -329,68 +368,17 @@ -- | \(m > 0 \Rightarrow ab \equiv (a \bmod m) \cdot b \pmod{m}\) -- -- ==== __Proof__--- >>> runCached modMulLeft--- Inductive lemma: modAddMultiple---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Result:                               Q.E.D.--- Lemma: modAddRight---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Result:                               Q.E.D.--- Lemma: modAddLeft---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Result:                               Q.E.D.--- Cached: modAddMultiple                  Q.E.D.--- Cached: modAddRight                     Q.E.D.--- Inductive lemma: modMulRightNonneg---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4                               Q.E.D.---   Step: 5                               Q.E.D.---   Step: 6                               Q.E.D.---   Result:                               Q.E.D.--- Cached: modAddMultiple                  Q.E.D.--- Cached: modAddRight                     Q.E.D.--- Cached: modAddLeft                      Q.E.D.--- Cached: modAddMultiple                  Q.E.D.--- Lemma: modSubRight---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Result:                               Q.E.D.--- Inductive lemma: modMulRightNeg---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4                               Q.E.D.---   Step: 5                               Q.E.D.---   Step: 6                               Q.E.D.---   Result:                               Q.E.D.--- Lemma: modMulRight---   Step: 1 (2 way case split)---     Step: 1.1                           Q.E.D.---     Step: 1.2.1                         Q.E.D.---     Step: 1.2.2                         Q.E.D.---     Step: 1.2.3                         Q.E.D.---     Step: 1.Completeness                Q.E.D.---   Result:                               Q.E.D.+-- >>> runTP modMulLeft+-- Lemma: modMulRight                    Q.E.D. -- Lemma: modMulLeft---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Result:                               Q.E.D.--- [Proven. Cached: modAddLeft, modAddMultiple, modAddRight] modMulLeft :: Ɐa ∷ Integer → Ɐb ∷ Integer → Ɐm ∷ Integer → Bool+--   Step: 1                             Q.E.D.+--   Step: 2                             Q.E.D.+--   Step: 3                             Q.E.D.+--   Result:                             Q.E.D.+-- [Proven] modMulLeft :: Ɐa ∷ Integer → Ɐb ∷ Integer → Ɐm ∷ Integer → Bool modMulLeft :: TP (Proof (Forall "a" Integer -> Forall "b" Integer -> Forall "m" Integer -> SBool)) modMulLeft = do-   mMulR <- modMulRight+   mMulR <- recall modMulRight     calc "modMulLeft"         (\(Forall a) (Forall b) (Forall m) -> m .> 0 .=> (a*b) `sEMod` m .== (a `sEMod` m * b) `sEMod` m) $@@ -404,92 +392,25 @@ -- | \(n \geq 0 \land m > 0 \Rightarrow b^n \equiv (b \bmod m)^n \pmod{m}\) -- -- ==== __Proof__--- >>> runCached powerMod--- Inductive lemma: modAddMultiple---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Result:                               Q.E.D.--- Lemma: modAddRight---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Result:                               Q.E.D.--- Lemma: modAddLeft---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Result:                               Q.E.D.--- Cached: modAddMultiple                  Q.E.D.--- Cached: modAddRight                     Q.E.D.--- Inductive lemma: modMulRightNonneg---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4                               Q.E.D.---   Step: 5                               Q.E.D.---   Step: 6                               Q.E.D.---   Result:                               Q.E.D.--- Cached: modAddMultiple                  Q.E.D.--- Cached: modAddRight                     Q.E.D.--- Cached: modAddLeft                      Q.E.D.--- Cached: modAddMultiple                  Q.E.D.--- Lemma: modSubRight---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Result:                               Q.E.D.--- Inductive lemma: modMulRightNeg---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4                               Q.E.D.---   Step: 5                               Q.E.D.---   Step: 6                               Q.E.D.---   Result:                               Q.E.D.--- Lemma: modMulRight---   Step: 1 (2 way case split)---     Step: 1.1                           Q.E.D.---     Step: 1.2.1                         Q.E.D.---     Step: 1.2.2                         Q.E.D.---     Step: 1.2.3                         Q.E.D.---     Step: 1.Completeness                Q.E.D.---   Result:                               Q.E.D.--- Lemma: modMulLeft---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Result:                               Q.E.D.--- Cached: modAddMultiple                  Q.E.D.--- Cached: modAddRight                     Q.E.D.--- Cached: modAddLeft                      Q.E.D.--- Cached: modAddMultiple                  Q.E.D.--- Cached: modAddRight                     Q.E.D.--- Cached: modMulRightNonneg               Q.E.D.--- Cached: modAddMultiple                  Q.E.D.--- Cached: modAddRight                     Q.E.D.--- Cached: modAddLeft                      Q.E.D.--- Cached: modAddMultiple                  Q.E.D.--- Cached: modSubRight                     Q.E.D.--- Cached: modMulRightNeg                  Q.E.D.--- Cached: modMulRight                     Q.E.D.+-- >>> runTP powerMod+-- Lemma: modMulLeft                     Q.E.D.+-- Lemma: modMulRight                    Q.E.D. [Cached] -- Inductive lemma: powerModInduct---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4                               Q.E.D.---   Step: 5                               Q.E.D.---   Step: 6                               Q.E.D.---   Result:                               Q.E.D.--- Lemma: powerMod                         Q.E.D.--- [Proven. Cached: modAddLeft, modAddMultiple, modAddRight, modMulRight] powerMod :: Ɐb ∷ Integer → Ɐn ∷ Integer → Ɐm ∷ Integer → Bool+--   Step: Base                          Q.E.D.+--   Step: 1                             Q.E.D.+--   Step: 2                             Q.E.D.+--   Step: 3                             Q.E.D.+--   Step: 4                             Q.E.D.+--   Step: 5                             Q.E.D.+--   Step: 6                             Q.E.D.+--   Result:                             Q.E.D.+-- Lemma: powerMod                       Q.E.D.+-- Functions proven terminating: power+-- [Proven] powerMod :: Ɐb ∷ Integer → Ɐn ∷ Integer → Ɐm ∷ Integer → Bool powerMod :: TP (Proof (Forall "b" Integer -> Forall "n" Integer -> Forall "m" Integer -> SBool)) powerMod = do-   mMulL <- modMulLeft-   mMulR <- modMulRight+   mMulL <- recall modMulLeft+   mMulR <- recall modMulRight     -- We want to write the b parameter first, but need to induct on n. So, this helper rearranges the parameters only.    pMod <- induct "powerModInduct"@@ -515,12 +436,13 @@ -- | \(n \geq 0 \Rightarrow 1^n = 1\) -- -- ==== __Proof__--- >>> runCached onePower+-- >>> runTP onePower -- Inductive lemma: onePower---   Step: Base                            Q.E.D.---   Step: 1 (unfold power)                Q.E.D.---   Step: 2                               Q.E.D.---   Result:                               Q.E.D.+--   Step: Base                 Q.E.D.+--   Step: 1 (unfold power)     Q.E.D.+--   Step: 2                    Q.E.D.+--   Result:                    Q.E.D.+-- Functions proven terminating: power -- [Proven] onePower :: Ɐn ∷ Integer → Bool onePower :: TP (Proof (Forall "n" Integer -> SBool)) onePower = induct "onePower"@@ -535,103 +457,21 @@ -- | \(n \geq 0 \Rightarrow (27^n \bmod 13) = 1\) -- -- ==== __Proof__--- >>> runCached powerOf27--- Inductive lemma: onePower---   Step: Base                            Q.E.D.---   Step: 1 (unfold power)                Q.E.D.---   Step: 2                               Q.E.D.---   Result:                               Q.E.D.--- Inductive lemma: modAddMultiple---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Result:                               Q.E.D.--- Lemma: modAddRight---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Result:                               Q.E.D.--- Lemma: modAddLeft---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Result:                               Q.E.D.--- Cached: modAddMultiple                  Q.E.D.--- Cached: modAddRight                     Q.E.D.--- Inductive lemma: modMulRightNonneg---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4                               Q.E.D.---   Step: 5                               Q.E.D.---   Step: 6                               Q.E.D.---   Result:                               Q.E.D.--- Cached: modAddMultiple                  Q.E.D.--- Cached: modAddRight                     Q.E.D.--- Cached: modAddLeft                      Q.E.D.--- Cached: modAddMultiple                  Q.E.D.--- Lemma: modSubRight---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Result:                               Q.E.D.--- Inductive lemma: modMulRightNeg---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4                               Q.E.D.---   Step: 5                               Q.E.D.---   Step: 6                               Q.E.D.---   Result:                               Q.E.D.--- Lemma: modMulRight---   Step: 1 (2 way case split)---     Step: 1.1                           Q.E.D.---     Step: 1.2.1                         Q.E.D.---     Step: 1.2.2                         Q.E.D.---     Step: 1.2.3                         Q.E.D.---     Step: 1.Completeness                Q.E.D.---   Result:                               Q.E.D.--- Lemma: modMulLeft---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Result:                               Q.E.D.--- Cached: modAddMultiple                  Q.E.D.--- Cached: modAddRight                     Q.E.D.--- Cached: modAddLeft                      Q.E.D.--- Cached: modAddMultiple                  Q.E.D.--- Cached: modAddRight                     Q.E.D.--- Cached: modMulRightNonneg               Q.E.D.--- Cached: modAddMultiple                  Q.E.D.--- Cached: modAddRight                     Q.E.D.--- Cached: modAddLeft                      Q.E.D.--- Cached: modAddMultiple                  Q.E.D.--- Cached: modSubRight                     Q.E.D.--- Cached: modMulRightNeg                  Q.E.D.--- Cached: modMulRight                     Q.E.D.--- Inductive lemma: powerModInduct---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4                               Q.E.D.---   Step: 5                               Q.E.D.---   Step: 6                               Q.E.D.---   Result:                               Q.E.D.--- Lemma: powerMod                         Q.E.D.+-- >>> runTP powerOf27+-- Lemma: onePower                       Q.E.D.+-- Lemma: powerMod                       Q.E.D. -- Lemma: powerOf27---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4                               Q.E.D.---   Result:                               Q.E.D.--- [Proven. Cached: modAddLeft, modAddMultiple, modAddRight, modMulRight] powerOf27 :: Ɐn ∷ Integer → Bool+--   Step: 1                             Q.E.D.+--   Step: 2                             Q.E.D.+--   Step: 3                             Q.E.D.+--   Step: 4                             Q.E.D.+--   Result:                             Q.E.D.+-- Functions proven terminating: power+-- [Proven] powerOf27 :: Ɐn ∷ Integer → Bool powerOf27 :: TP (Proof (Forall "n" Integer -> SBool)) powerOf27 = do-   pOne <- onePower-   pMod <- powerMod+   pOne <- recall onePower+   pMod <- recall powerMod    calc "powerOf27" (\(Forall n) -> n .>= 0 .=> power 27 n `sEMod` 13 .== 1) $                     \n -> [n .>= 0]                        |- power 27 n `sEMod` 13@@ -646,105 +486,16 @@ -- | \(n \geq 0 \wedge m > 0 \implies (27^{\frac{n}{3}} \bmod 13) \cdot 3^{n \bmod 3} \equiv 3^{n \bmod 3} \pmod{m}\) -- -- ==== __Proof__--- >>> runCached powerOfThreeMod13VarDivisor--- Inductive lemma: onePower---   Step: Base                            Q.E.D.---   Step: 1 (unfold power)                Q.E.D.---   Step: 2                               Q.E.D.---   Result:                               Q.E.D.--- Inductive lemma: modAddMultiple---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Result:                               Q.E.D.--- Lemma: modAddRight---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Result:                               Q.E.D.--- Lemma: modAddLeft---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Result:                               Q.E.D.--- Cached: modAddMultiple                  Q.E.D.--- Cached: modAddRight                     Q.E.D.--- Inductive lemma: modMulRightNonneg---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4                               Q.E.D.---   Step: 5                               Q.E.D.---   Step: 6                               Q.E.D.---   Result:                               Q.E.D.--- Cached: modAddMultiple                  Q.E.D.--- Cached: modAddRight                     Q.E.D.--- Cached: modAddLeft                      Q.E.D.--- Cached: modAddMultiple                  Q.E.D.--- Lemma: modSubRight---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Result:                               Q.E.D.--- Inductive lemma: modMulRightNeg---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4                               Q.E.D.---   Step: 5                               Q.E.D.---   Step: 6                               Q.E.D.---   Result:                               Q.E.D.--- Lemma: modMulRight---   Step: 1 (2 way case split)---     Step: 1.1                           Q.E.D.---     Step: 1.2.1                         Q.E.D.---     Step: 1.2.2                         Q.E.D.---     Step: 1.2.3                         Q.E.D.---     Step: 1.Completeness                Q.E.D.---   Result:                               Q.E.D.--- Lemma: modMulLeft---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Result:                               Q.E.D.--- Cached: modAddMultiple                  Q.E.D.--- Cached: modAddRight                     Q.E.D.--- Cached: modAddLeft                      Q.E.D.--- Cached: modAddMultiple                  Q.E.D.--- Cached: modAddRight                     Q.E.D.--- Cached: modMulRightNonneg               Q.E.D.--- Cached: modAddMultiple                  Q.E.D.--- Cached: modAddRight                     Q.E.D.--- Cached: modAddLeft                      Q.E.D.--- Cached: modAddMultiple                  Q.E.D.--- Cached: modSubRight                     Q.E.D.--- Cached: modMulRightNeg                  Q.E.D.--- Cached: modMulRight                     Q.E.D.--- Inductive lemma: powerModInduct---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4                               Q.E.D.---   Step: 5                               Q.E.D.---   Step: 6                               Q.E.D.---   Result:                               Q.E.D.--- Lemma: powerMod                         Q.E.D.--- Lemma: powerOf27---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4                               Q.E.D.---   Result:                               Q.E.D.+-- >>> runTP powerOfThreeMod13VarDivisor+-- Lemma: powerOf27                      Q.E.D. -- Lemma: powerOfThreeMod13VarDivisor---   Step: 1                               Q.E.D.---   Result:                               Q.E.D.--- [Proven. Cached: modAddLeft, modAddMultiple, modAddRight, modMulRight] powerOfThreeMod13VarDivisor :: Ɐn ∷ Integer → Ɐm ∷ Integer → Bool+--   Step: 1                             Q.E.D.+--   Result:                             Q.E.D.+-- Functions proven terminating: power+-- [Proven] powerOfThreeMod13VarDivisor :: Ɐn ∷ Integer → Ɐm ∷ Integer → Bool powerOfThreeMod13VarDivisor :: TP (Proof (Forall "n" Integer -> Forall "m" Integer -> SBool)) powerOfThreeMod13VarDivisor = do-   p27 <- powerOf27+   p27 <- recall powerOf27    calc "powerOfThreeMod13VarDivisor"         (\(Forall n) (Forall m) ->             n .>= 0 .&& m .> 0 .=>     power 27 (n `sEDiv` 3) `sEMod` 13 * power 3 (n `sEMod` 3) `sEMod` m
+ Documentation/SBV/Examples/TP/Primes.hs view
@@ -0,0 +1,522 @@+-----------------------------------------------------------------------------+-- |+-- Module    : Documentation.SBV.Examples.TP.Primes+-- Copyright : (c) Levent Erkok+-- License   : BSD3+-- Maintainer: erkokl@gmail.com+-- Stability : experimental+--+-- Prove that there are an infinite number of primes. Along the way we formalize+-- and prove a number of properties about divisibility as well. Our proof is inspired by+-- the ACL2 proof in <https://github.com/acl2/acl2/blob/master/books/projects/numbers/euclid.lisp>.+-----------------------------------------------------------------------------++{-# LANGUAGE CPP              #-}+{-# LANGUAGE DataKinds        #-}+{-# LANGUAGE QuasiQuotes      #-}+{-# LANGUAGE TypeAbstractions #-}+{-# LANGUAGE TypeApplications #-}++{-# OPTIONS_GHC -Wall -Werror #-}++module Documentation.SBV.Examples.TP.Primes where++import Data.SBV+import Data.SBV.TP++#ifdef DOCTEST+-- $setup+-- >>> import Data.SBV.TP+#endif++-- * Divisibility++-- | Divides relation. By definition @0@ only divides @0@. (But every number divides @0@).+dvd :: SInteger -> SInteger -> SBool+x `dvd` y = ite (x .== 0) (y .== 0) (y `sEMod` x .== 0)++-- | \(x \mid y \implies x \mid y * z\)+--+-- === __Proof__+-- >>> runTP dividesProduct+-- Lemma: dividesProduct+--   Step: 1 (2 way case split)+--     Step: 1.1               Q.E.D.+--     Step: 1.2.1             Q.E.D.+--     Step: 1.2.2             Q.E.D.+--     Step: 1.2.3             Q.E.D.+--     Step: 1.Completeness    Q.E.D.+--   Result:                   Q.E.D.+-- [Proven] dividesProduct :: Ɐx ∷ Integer → Ɐy ∷ Integer → Ɐz ∷ Integer → Bool+dividesProduct :: TP (Proof (Forall "x" Integer -> Forall "y" Integer -> Forall "z" Integer -> SBool))+dividesProduct = calc "dividesProduct"+                      (\(Forall x) (Forall y) (Forall z) -> x `dvd` y .=> x `dvd` (y*z)) $+                      \x y z -> [x `dvd` y]+                             |- cases [ x .== 0 ==> x `dvd` (y*z)+                                                 ?? y .== 0+                                                 =: sTrue+                                                 =: qed+                                      , x ./= 0 ==> x `dvd` (y*z)+                                                 ?? y .== x * y `sEDiv` x+                                                 =: x `dvd` ((x * y `sEDiv` x) * z)+                                                 =: x `dvd` (x * ((y `sEDiv` x) * z))+                                                 =: sTrue+                                                 =: qed+                                      ]+-- | \(x \mid y \land y \mid z \implies x \mid z\)+--+-- === __Proof__+-- >>> runTP dividesTransitive+-- Lemma: dividesProduct       Q.E.D.+-- Lemma: dividesTransitive+--   Step: 1 (2 way case split)+--     Step: 1.1               Q.E.D.+--     Step: 1.2.1             Q.E.D.+--     Step: 1.2.2             Q.E.D.+--     Step: 1.2.3             Q.E.D.+--     Step: 1.2.4             Q.E.D.+--     Step: 1.Completeness    Q.E.D.+--   Result:                   Q.E.D.+-- [Proven] dividesTransitive :: Ɐx ∷ Integer → Ɐy ∷ Integer → Ɐz ∷ Integer → Bool+dividesTransitive :: TP (Proof (Forall "x" Integer -> Forall "y" Integer -> Forall "z" Integer -> SBool))+dividesTransitive = do+    dp <- recall dividesProduct++    calc "dividesTransitive"+         (\(Forall x) (Forall y) (Forall z) -> x `dvd` y .&& y `dvd` z .=> x `dvd` z) $+         \x y z -> [x `dvd` y, y `dvd` z]+                |- cases [ x .== 0 .|| y .== 0 .|| z .== 0 ==> trivial+                         , x ./= 0 .&& y ./= 0 .&& z ./= 0+                            ==> x `dvd` z+                             ?? z .== z `sEDiv` y * y+                             =: x `dvd` (z `sEDiv` y * y)+                             ?? y .== y `sEDiv` x * x+                             ?? x `dvd` y+                             =: x `dvd` ((z `sEDiv` y) * (y `sEDiv` x * x))+                             =: x `dvd` (x * ((z `sEDiv` y) * (y `sEDiv` x)))+                             ?? dp `at` (Inst @"x" x, Inst @"y" x, Inst @"z" ((z `sEDiv` y) * (y `sEDiv` x)))+                             =: sTrue+                             =: qed+                         ]++-- * The least divisor++-- | The definition of primality will depend on the notion of least divisor. Given @k@ and @n@, the least-divisor of+-- @n@ that is at least @k@ is the number that is at least @k@ and divides @n@ evenly. The idea is that a number is+-- prime if the least divisor starting from @2@ is itself.+ld :: SInteger -> SInteger -> SInteger+ld = smtFunctionWithMeasure "ld" (\k n -> (n - k) `smax` 0, [])+   $ \k n -> [sCase| tuple (k .<= 0 .|| k .> n, n `sEMod` k) of+                (True, _) -> 0+                (_,    0) -> k+                _         -> ld (k+1) n+             |]++-- | \(1 < k \leq n \implies \mathit{ld}\,k\,n \mid n \land k \leq \mathit{ld}\,k\,n \leq n\)+--+-- === __Proof__+-- >>> runTP leastDivisorDivides+-- Inductive lemma (strong): leastDivisorDivides+--   Step: Measure is non-negative                  Q.E.D.+--   Step: 1 (2 way case split)+--     Step: 1.1                                    Q.E.D.+--     Step: 1.2                                    Q.E.D.+--     Step: 1.Completeness                         Q.E.D.+--   Result:                                        Q.E.D.+-- Functions proven terminating: ld+-- [Proven] leastDivisorDivides :: Ɐk ∷ Integer → Ɐn ∷ Integer → Bool+leastDivisorDivides :: TP (Proof (Forall "k" Integer -> Forall "n" Integer -> SBool))+leastDivisorDivides =+   sInduct "leastDivisorDivides"+           (\(Forall k) (Forall n) -> 1 .< k .&& k .<= n .=> let d = ld k n in d `dvd` n .&& k .<= d .&& d .<= n)+           (\k n -> n - k, []) $+           \ih k n -> [1 .< k, k .<= n]+                  |- let d = ld k n+                  in cases [ n `sEMod` k .== 0 ==> d `dvd` n .&& k .<= d .&& d .<= n+                                                ?? d .== k+                                                =: sTrue+                                                =: qed+                           , n `sEMod` k ./= 0 ==> d `dvd` n .&& k .<= d .&& d .<= n+                                                ?? d .== ld (k+1) n+                                                ?? ih `at` (Inst @"k" (k+1), Inst @"n" n)+                                                =: sTrue+                                                =: qed+                           ]++-- | \(1 < k \leq n \land d \mid n \land k \leq d \implies \mathit{ld}\,k\,n \leq d\)+--+-- === __Proof__+-- >>> runTP leastDivisorIsLeast+-- Inductive lemma (strong): leastDivisorisLeast+--   Step: Measure is non-negative                  Q.E.D.+--   Step: 1 (2 way case split)+--     Step: 1.1                                    Q.E.D.+--     Step: 1.2                                    Q.E.D.+--     Step: 1.Completeness                         Q.E.D.+--   Result:                                        Q.E.D.+-- Functions proven terminating: ld+-- [Proven] leastDivisorisLeast :: Ɐk ∷ Integer → Ɐn ∷ Integer → Ɐd ∷ Integer → Bool+leastDivisorIsLeast :: TP (Proof (Forall "k" Integer -> Forall "n" Integer -> Forall "d" Integer -> SBool))+leastDivisorIsLeast =+  sInduct "leastDivisorisLeast"+          (\(Forall k) (Forall n) (Forall d) -> 1 .< k .&& k .<= n .&& d `dvd` n .&& k .<= d .=> ld k n .<= d)+          (\k n _d -> n - k, []) $+          \ih k n d -> [1 .< k, k .<= n, d `dvd` n, k .<= d]+                    |- cases [ n `sEMod` k .== 0 ==> ld k n .<= d+                                                  =: k .<= d+                                                  =: qed+                             , n `sEMod` k ./= 0 ==> ld k n .<= d+                                                  ?? ih+                                                  =: sTrue+                                                  =: qed+                             ]++-- | \(n \geq k \geq 2 \implies \mathit{ld}\,k\,(\mathit{ld}\,k\,n) = \mathit{ld}\,k\,n\)+--+-- === __Proof__+-- >>> runTP leastDivisorTwice+-- Lemma: dividesTransitive                         Q.E.D.+-- Lemma: leastDivisorDivides                       Q.E.D.+-- Lemma: leastDivisorisLeast                       Q.E.D.+-- Lemma: helper1                                   Q.E.D.+-- Lemma: helper2                                   Q.E.D.+-- Lemma: helper3+--   Step: 1                                        Q.E.D.+--   Result:                                        Q.E.D.+-- Lemma: helper4                                   Q.E.D.+-- Lemma: helper5+--   Step: 1                                        Q.E.D.+--   Result:                                        Q.E.D.+-- Lemma: leastDivisorTwice                         Q.E.D.+-- Functions proven terminating: ld+-- [Proven] leastDivisorTwice :: Ɐk ∷ Integer → Ɐn ∷ Integer → Bool+leastDivisorTwice :: TP (Proof (Forall "k" Integer -> Forall "n" Integer -> SBool))+leastDivisorTwice = do+  dt  <- recall dividesTransitive+  ldd <- recall leastDivisorDivides+  ldl <- recall leastDivisorIsLeast++  h1 <- lemmaWith cvc5+              "helper1"+              (\(Forall @"k" k) (Forall @"n" n) -> n .>= k .&& k .>= 2 .=> ld k (ld k n) `dvd` ld k n .&& ld k (ld k n) .<= ld k n)+              [proofOf ldd]++  h2 <- lemma "helper2"+              (\(Forall @"k" k) (Forall @"n" n) -> n .>= k .&& k .>= 2 .=> ld k n `dvd` n)+              [proofOf ldd]++  h3 <- calc "helper3"+             (\(Forall @"k" k) (Forall @"n" n) -> n .>= k .&& k .>= 2 .=> ld k (ld k n) `dvd` n) $+             \k n -> [n .>= k, k .>= 2]+                  |- ld k (ld k n) `dvd` n+                  ?? h1+                  ?? h2+                  ?? dt `at` (Inst @"x" (ld k (ld k n)), Inst @"y" (ld k n), Inst @"z" n)+                  =: sTrue+                  =: qed++  h4 <- lemma "helper4"+              (\(Forall @"k" k) (Forall @"n" n) -> n .>= k .&& k .>= 2 .=> k .<= ld k (ld k n))+              [proofOf ldd]++  h5 <- calc "helper5"+              (\(Forall @"k" k) (Forall @"n" n) -> n .>= k .&& k .>= 2 .=> ld k n .<= ld k (ld k n)) $+              \k n -> [n .>= k, k .>= 2]+                   |- ld k n .<= ld k (ld k n)+                   ?? h3  `at` (Inst @"k" k, Inst @"n" n)+                   ?? h4  `at` (Inst @"k" k, Inst @"n" n)+                   ?? ldl `at` (Inst @"k" k, Inst @"n" n, Inst @"d" (ld k (ld k n)))+                   =: sTrue+                   =: qed++  lemma "leastDivisorTwice"+        (\(Forall k) (Forall n) -> n .>= k .&& k .>= 2 .=> ld k (ld k n) .== ld k n)+        [proofOf h1, proofOf h5]++-- * Primality++-- | A number is prime if its least divisor greater than or equal to @2@ is itself.+isPrime :: SInteger -> SBool+isPrime n = n .>= 2 .&& ld 2 n .== n++-- | \(\mathit{isPrime}\,p \implies p \geq 2\)+--+-- === __Proof__+-- >>> runTP primeAtLeast2+-- Lemma: primeAtLeast2    Q.E.D.+-- Functions proven terminating: ld+-- [Proven] primeAtLeast2 :: Ɐp ∷ Integer → Bool+primeAtLeast2 :: TP (Proof (Forall "p" Integer -> SBool))+primeAtLeast2 = lemma "primeAtLeast2" (\(Forall p) -> isPrime p .=> p .>= 2) []++-- | \(n \geq 2 \implies \mathit{isPrime}\,(\mathit{ld}\,2\,n)\)+--+-- === __Proof__+-- >>> runTP leastDivisorIsPrime+-- Lemma: leastDivisorTwice                         Q.E.D.+-- Lemma: leastDivisorDivides                       Q.E.D. [Cached]+-- Lemma: leastDivisorIsPrime+--   Step: 1                                        Q.E.D.+--   Result:                                        Q.E.D.+-- Functions proven terminating: ld+-- [Proven] leastDivisorIsPrime :: Ɐn ∷ Integer → Bool+leastDivisorIsPrime :: TP (Proof (Forall "n" Integer -> SBool))+leastDivisorIsPrime = do+   ldt <- recall leastDivisorTwice+   ldd <- recall leastDivisorDivides++   calc "leastDivisorIsPrime"+        (\(Forall n) -> n .>= 2 .=> isPrime (ld 2 n)) $+        \n -> [n .>= 2] |- isPrime (ld 2 n)+                        ?? ldt `at` (Inst @"k" 2, Inst @"n" n)+                        ?? ldd `at` (Inst @"k" 2, Inst @"n" n)+                        =: sTrue+                        =: qed++-- | The least prime divisor is the least divisor of it starting from @2@. By 'leastDivisorIsPrime', this number+-- is guaranteed to be prime.+leastPrimeDivisor :: SInteger -> SInteger+leastPrimeDivisor n = ld 2 n++-- * Formalizing factorial++-- | The factorial function.+fact :: SInteger -> SInteger+fact = smtFunction "fact" $ \n -> [sCase| n of+                                     _ | n .<= 0 -> 1+                                     _           -> n * fact (n - 1)+                                  |]++-- | \(n! \geq 1\)+--+-- === __Proof__+-- >>> runTP factAtLeast1+-- Inductive lemma: factAtLeast1+--   Step: Base                     Q.E.D.+--   Step: 1 (2 way case split)+--     Step: 1.1                    Q.E.D.+--     Step: 1.2.1                  Q.E.D.+--     Step: 1.2.2                  Q.E.D.+--     Step: 1.Completeness         Q.E.D.+--   Result:                        Q.E.D.+-- Functions proven terminating: fact+-- [Proven] factAtLeast1 :: Ɐn ∷ Integer → Bool+factAtLeast1 :: TP (Proof (Forall "n" Integer -> SBool))+factAtLeast1 = inductWith cvc5 "factAtLeast1"+                      (\(Forall n) -> fact n .>= 1) $+                      \ih n -> [] |- fact (n+1) .>= 1+                                  =: cases [ n+1 .<= 0 ==> trivial+                                           , n+1 .>  0 ==> (n+1) * fact n .>= 1+                                                        ?? ih+                                                        =: sTrue+                                                        =: qed+                                           ]++-- | \(1 \leq k \land k \leq n \implies k \mid n!\)+--+-- === __Proof__+-- >>> runTP dividesFact+-- Lemma: dividesProduct           Q.E.D.+-- Inductive lemma: dividesFact+--   Step: Base                    Q.E.D.+--   Step: 1                       Q.E.D.+--   Step: 2 (2 way case split)+--     Step: 2.1.1                 Q.E.D.+--     Step: 2.1.2                 Q.E.D.+--     Step: 2.2.1                 Q.E.D.+--     Step: 2.2.2                 Q.E.D.+--     Step: 2.Completeness        Q.E.D.+--   Result:                       Q.E.D.+-- Functions proven terminating: fact+-- [Proven] dividesFact :: Ɐn ∷ Integer → Ɐk ∷ Integer → Bool+dividesFact :: TP (Proof (Forall "n" Integer -> Forall "k" Integer -> SBool))+dividesFact = do+   dvp <- recall dividesProduct++   induct "dividesFact"+          (\(Forall n) (Forall k) -> 1 .<= k .&& k .<= n .=> k `dvd` fact n) $+          \ih n k -> [1 .<= k, k .<= n + 1]+                  |- k `dvd` fact (n + 1)+                  =: k `dvd` ((n + 1) * fact n)+                  =: cases [ k .== n + 1 ==> k `dvd` ((n + 1) * fact n)+                                          ?? dvp `at` (Inst @"x" k, Inst @"y" (n+1), Inst @"z" (fact n))+                                          =: sTrue+                                          =: qed+                           , k ./= n + 1 ==> k `dvd` ((n + 1) * fact n)+                                          ?? ih+                                          ?? dvp `at` (Inst @"x" k, Inst @"y" (fact n), Inst @"z" (n+1))+                                          =: sTrue+                                          =: qed+                           ]++-- | \(1 \leq k \land k \leq n \implies \neg (k \mid n! + 1)\)+--+-- === __Proof__+-- >>> runTP notDividesFactP1+-- Lemma: dividesFact              Q.E.D.+-- Lemma: notDividesFactP1+--   Step: 1                       Q.E.D.+--   Step: 2                       Q.E.D.+--   Step: 3                       Q.E.D.+--   Result:                       Q.E.D.+-- Functions proven terminating: fact+-- [Proven] notDividesFactP1 :: Ɐn ∷ Integer → Ɐk ∷ Integer → Bool+notDividesFactP1 :: TP (Proof (Forall "n" Integer -> Forall "k" Integer -> SBool))+notDividesFactP1 = do+   df    <- recall dividesFact++   calc "notDividesFactP1"+         (\(Forall n) (Forall k) -> 1 .< k .&& k .<= n .=> sNot (k `dvd` (fact n + 1))) $+         \n k -> [1 .< k, k .<= n]+              |- k `dvd` (fact n + 1)+              ?? df `at` (Inst @"n" n, Inst @"k" k)+              =: k `dvd` (k * fact n `sEDiv` k + 1)+              =: k `dvd` 1+              =: contradiction++-- * Finding a greater prime++-- | Given a number, return another number which is both prime and is larger than the input. Note that+-- we don't claim to return the closest prime to the input. Just some prime that is larger, as we shall prove.+greaterPrime :: SInteger -> SInteger+greaterPrime n = leastPrimeDivisor (1 + fact n)++-- | \(\mathit{greaterPrime}\, n \mid n! + 1\)+--+-- === __Proof__+-- >>> runTP greaterPrimeDivides+-- Lemma: leastDivisorDivides                       Q.E.D.+-- Lemma: factAtLeast1                              Q.E.D.+-- Lemma: greaterPrimeDivides+--   Step: 1                                        Q.E.D.+--   Step: 2                                        Q.E.D.+--   Step: 3                                        Q.E.D.+--   Result:                                        Q.E.D.+-- Functions proven terminating: fact, ld+-- [Proven] greaterPrimeDivides :: Ɐn ∷ Integer → Bool+greaterPrimeDivides :: TP (Proof (Forall "n" Integer -> SBool))+greaterPrimeDivides = do+   ldd  <- recall leastDivisorDivides+   fal1 <- recall factAtLeast1++   calc "greaterPrimeDivides"+        (\(Forall n) -> greaterPrime n `dvd` (1 + fact n)) $+        \n -> [] |- greaterPrime n `dvd` (1 + fact n)+                 =: leastPrimeDivisor (1 + fact n) `dvd` (1 + fact n)+                 =: ld 2 (1 + fact n) `dvd` (1 + fact n)+                 ?? ldd  `at` (Inst @"k" 2, Inst @"n" (1 + fact n))+                 ?? fal1 `at` Inst @"n" n+                 =: sTrue+                 =: qed++-- | \(\mathit{greaterPrime}\, n > n\)+--+-- === __Proof__+-- >>> runTP greaterPrimeGreater+-- Lemma: notDividesFactP1                          Q.E.D.+-- Lemma: greaterPrimeDivides                       Q.E.D.+-- Lemma: leastDivisorIsPrime                       Q.E.D.+-- Lemma: factAtLeast1                              Q.E.D. [Cached]+-- Lemma: primeAtLeast2                             Q.E.D.+-- Lemma: greaterPrimeGreater+--   Step: 1                                        Q.E.D.+--   Step: 2                                        Q.E.D.+--   Step: 3                                        Q.E.D.+--   Step: 4                                        Q.E.D.+--   Step: 5                                        Q.E.D.+--   Step: 6                                        Q.E.D.+--   Result:                                        Q.E.D.+-- Functions proven terminating: fact, ld+-- [Proven] greaterPrimeGreater :: Ɐn ∷ Integer → Bool+greaterPrimeGreater :: TP (Proof (Forall "n" Integer -> SBool))+greaterPrimeGreater = do+   ndfp1 <- recall notDividesFactP1+   gpd   <- recall greaterPrimeDivides+   ldp   <- recall leastDivisorIsPrime+   fal1  <- recall factAtLeast1+   pal2  <- recall primeAtLeast2++   calc "greaterPrimeGreater"+         (\(Forall n) -> greaterPrime n .> n) $+         \n -> [] |-> sTrue+                   ?? ndfp1 `at` (Inst @"n" n, Inst @"k" (greaterPrime n))+                   ?? gpd   `at` Inst @"n" n+                   =: sNot (1 .< greaterPrime n .&& greaterPrime n .<= n)+                   =: (1 .>= greaterPrime n .|| greaterPrime n .> n)+                   =: (1 .>= leastPrimeDivisor (1 + fact n) .|| greaterPrime n .> n)+                   =: (1 .>= leastPrimeDivisor (1 + fact n) .|| greaterPrime n .> n)+                   =: (1 .>= ld 2 (1 + fact n) .|| greaterPrime n .> n)+                   ?? ldp  `at` Inst @"n" (1 + fact n)+                   ?? pal2 `at` Inst @"p" (ld 2 (1 + fact n))+                   ?? fal1 `at` Inst @"n" n+                   =: greaterPrime n .> n+                   =: qed++-- * Infinitude of primes++-- | \(\mathit{isPrime}\,(\mathit{greaterPrime}\,n) \land \mathit{greaterPrime}\,n > n\)+--+-- We can finally prove our goal: For each given number, there is a larger number that is prime. This+-- establishes that we have an infinite number of primes.+--+-- === __Proof__+-- >>> runTP infinitudeOfPrimes+-- Lemma: leastDivisorIsPrime                       Q.E.D.+-- Lemma: factAtLeast1                              Q.E.D.+-- Lemma: greaterPrimeGreater                       Q.E.D.+-- Lemma: infinitudeOfPrimes+--   Step: 1                                        Q.E.D.+--   Step: 2                                        Q.E.D.+--   Step: 3                                        Q.E.D.+--   Result:                                        Q.E.D.+-- Functions proven terminating: fact, ld+-- [Proven] infinitudeOfPrimes :: Ɐn ∷ Integer → Bool+infinitudeOfPrimes :: TP (Proof (Forall "n" Integer -> SBool))+infinitudeOfPrimes = do+   ldp <- recall leastDivisorIsPrime+   fa1 <- recall factAtLeast1+   gpg <- recall greaterPrimeGreater++   calc "infinitudeOfPrimes"+         (\(Forall n) -> let p = greaterPrime n in p .> n .&& isPrime p) $+         \n -> [] |- let p = greaterPrime n+                  in p .> n .&& isPrime (greaterPrime n)+                  =: p .> n .&& isPrime (leastPrimeDivisor (1 + fact n))+                  =: p .> n .&& isPrime (ld 2 (1 + fact n))+                  ?? ldp `at` Inst @"n" (1 + fact n)+                  ?? fa1 `at` Inst @"n" n+                  ?? gpg `at` Inst @"n" n+                  =: sTrue+                  =: qed++-- | \(\forall n. \exists p. \mathit{isPrime}\,p \land p > n\)+--+-- Another expression of the fact that there are infinitely many primes. One might prefer this+-- version as it only refers to the 'isPrime' predicate only.+--+-- === __Proof__+-- >>> runTP noLargestPrime+-- Lemma: infinitudeOfPrimes                        Q.E.D.+-- Lemma: helper+--   Step: 1                                        Q.E.D.+--   Result:                                        Q.E.D.+-- Lemma: noLargestPrime                            Q.E.D.+-- Functions proven terminating: fact, ld+-- [Proven] noLargestPrime :: Ɐn ∷ Integer → ∃p ∷ Integer → Bool+noLargestPrime :: TP (Proof (Forall "n" Integer -> Exists "p" Integer -> SBool))+noLargestPrime = do+   iop <- recall infinitudeOfPrimes++   h <- calc "helper"+             (\(Forall @"n" n) -> quantifiedBool (\(Exists p) -> isPrime p .&& p .> n)) $+             \n -> [] |- quantifiedBool (\(Exists p) -> isPrime p .&& p .> n)+                      ?? iop `at` Inst @"n" n+                      =: sTrue+                      =: qed++   lemmaWith cvc5 "noLargestPrime"+       (\(Forall n) (Exists p) -> isPrime p .&& p .> n)+       [proofOf h]++{- HLint ignore module "Avoid lambda" -}+{- HLint ignore module "Eta reduce"   -}
+ Documentation/SBV/Examples/TP/Queue.hs view
@@ -0,0 +1,197 @@+-----------------------------------------------------------------------------+-- |+-- Module    : Documentation.SBV.Examples.TP.Queue+-- Copyright : (c) Levent Erkok+-- License   : BSD3+-- Maintainer: erkokl@gmail.com+-- Stability : experimental+--+-- A classic functional queue implemented with two stacks (lists). The front+-- list holds elements ready for dequeue; the back list accumulates new+-- elements in reverse. We prove that this representation faithfully+-- implements a FIFO queue by showing:+--+--   (1) Enqueue appends to the abstract queue.+--   (2) Enqueuing a sequence of elements and reading out the abstraction+--       gives back the original sequence.+--   (3) Dequeue retrieves the front of the abstract queue.+-----------------------------------------------------------------------------++{-# LANGUAGE CPP                 #-}+{-# LANGUAGE DataKinds           #-}+{-# LANGUAGE OverloadedLists     #-}+{-# LANGUAGE QuasiQuotes         #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions    #-}+{-# LANGUAGE TypeApplications    #-}++{-# OPTIONS_GHC -Wall -Werror #-}++module Documentation.SBV.Examples.TP.Queue where++import Prelude hiding (length, head, tail, null, reverse, (++), fst, snd)++import Data.SBV+import Data.SBV.List+import Data.SBV.Tuple+import Data.SBV.TP++#ifdef DOCTEST+-- $setup+-- >>> :set -XOverloadedLists+-- >>> :set -XTypeApplications+-- >>> import Data.SBV+-- >>> import Data.SBV.Tuple+-- >>> import Data.SBV.TP+#endif++-- * Queue representation++-- | A queue is a pair @(front, back)@ representing the abstract list+-- @front ++ reverse back@.+type Queue a = STuple [a] [a]++-- | Abstraction function: the list a queue represents.+--+-- >>> toList (tuple ([1,2,3], [6,5,4])) :: SList Integer+-- [1,2,3,4,5,6] :: [SInteger]+toList :: SymVal a => Queue a -> SList a+toList q = [sCase| q of+               (f, b) -> f ++ reverse b+           |]++-- | The empty queue.+--+-- >>> toList (emptyQ @Integer)+-- [] :: [SInteger]+emptyQ :: SymVal a => Queue a+emptyQ = tuple ([], [])++-- | Enqueue: add an element to the back.+--+-- >>> toList (enqueue (tuple ([1,2], [4,3])) 5) :: SList Integer+-- [1,2,3,4,5] :: [SInteger]+enqueue :: SymVal a => Queue a -> SBV a -> Queue a+enqueue q x = [sCase| q of+                  (f, b) -> tuple (f, x .: b)+              |]++-- | Enqueue all elements of a list, left to right.+--+-- >>> toList (enqueueAll (emptyQ @Integer) [1,2,3])+-- [1,2,3] :: [SInteger]+enqueueAll :: SymVal a => Queue a -> SList a -> Queue a+enqueueAll = smtFunction "enqueueAll"+           $ \q xs -> [sCase| xs of+                         []       -> q+                         x : rest -> enqueueAll (enqueue q x) rest+                      |]++-- | Dequeue: remove and return the front element. When the front list+-- is empty, we reverse the back list into the front first.+-- Precondition: the queue is non-empty.+--+-- >>> let (v, q') = untuple (dequeue (tuple ([1,2,3], [6,5,4]) :: Queue Integer)) in (v, toList q')+-- (1 :: SInteger,[2,3,4,5,6] :: [SInteger])+-- >>> let (v, q') = untuple (dequeue (tuple ([], [3,2,1]) :: Queue Integer)) in (v, toList q')+-- (1 :: SInteger,[2,3] :: [SInteger])+dequeue :: forall a. SymVal a => Queue a -> STuple a ([a], [a])+dequeue q = [sCase| q of+               (x : xs, t) -> tuple (x, tuple (xs, t))+               ([],     t) -> case reverse t of+                                y : ys -> tuple (y, tuple (ys, []))+                                -- unreachable: both front and back are empty+                                _      -> tuple (some "dead" (const sTrue), tuple ([], []))+            |]++-- * Correctness++-- | @toList (enqueue q x) == toList q ++ [x]@+--+-- Enqueue appends to the abstract list.+--+-- >>> runTP $ enqueueCorrect @Integer+-- Lemma: enqueueCorrect    Q.E.D.+-- Functions proven terminating: sbv.reverse+-- [Proven] enqueueCorrect :: Ɐf ∷ [Integer] → Ɐb ∷ [Integer] → Ɐx ∷ Integer → Bool+enqueueCorrect :: forall a. SymVal a => TP (Proof (Forall "f" [a] -> Forall "b" [a] -> Forall "x" a -> SBool))+enqueueCorrect =+   lemma "enqueueCorrect"+         (\(Forall @"f" f) (Forall @"b" b) (Forall @"x" x) ->+              toList (enqueue (tuple (f, b)) x) .== toList (tuple (f, b)) ++ [x])+         []++-- | @toList (enqueueAll q xs) == toList q ++ xs@+--+-- Enqueuing a sequence of elements appends the whole sequence to the+-- abstract list. This is the key invariant of the two-stack representation.+--+-- >>> runTP $ enqueueAllCorrect @Integer+-- Lemma: enqueueCorrect                 Q.E.D.+-- Inductive lemma: enqueueAllCorrect+--   Step: Base                          Q.E.D.+--   Step: 1                             Q.E.D.+--   Step: 2                             Q.E.D.+--   Step: 3                             Q.E.D.+--   Result:                             Q.E.D.+-- Functions proven terminating: enqueueAll, sbv.reverse+-- [Proven] enqueueAllCorrect :: Ɐxs ∷ [Integer] → Ɐf ∷ [Integer] → Ɐb ∷ [Integer] → Bool+enqueueAllCorrect :: forall a. SymVal a => TP (Proof (Forall "xs" [a] -> Forall "f" [a] -> Forall "b" [a] -> SBool))+enqueueAllCorrect = do++   eqC <- enqueueCorrect @a++   induct "enqueueAllCorrect"+          (\(Forall @"xs" xs) (Forall @"f" f) (Forall @"b" b) ->+               toList (enqueueAll (tuple (f, b)) xs) .== (f ++ reverse b) ++ xs) $+          \ih (x, xs) f b -> []+                          |- toList (enqueueAll (tuple (f, b)) (x .: xs))+                          =: toList (enqueueAll (tuple (f, x .: b)) xs)+                          ?? ih `at` (Inst @"f" f, Inst @"b" (x .: b))+                          =: (f ++ reverse (x .: b)) ++ xs+                          ?? eqC+                          =: (f ++ reverse b) ++ (x .: xs)+                          =: qed++-- | @toList (enqueueAll emptyQ xs) == xs@+--+-- Starting from an empty queue, enqueuing a list of elements produces+-- a queue whose abstract contents is that same list. This demonstrates+-- the fundamental FIFO property: elements come out in the order they went in.+--+-- >>> runTP $ fifo @Integer+-- Lemma: enqueueAllCorrect              Q.E.D.+-- Lemma: fifo+--   Step: 1                             Q.E.D.+--   Step: 2                             Q.E.D.+--   Result:                             Q.E.D.+-- Functions proven terminating: enqueueAll, sbv.reverse+-- [Proven] fifo :: Ɐxs ∷ [Integer] → Bool+fifo :: forall a. SymVal a => TP (Proof (Forall "xs" [a] -> SBool))+fifo = do+   eaC <- recall (enqueueAllCorrect @a)++   calc "fifo"+        (\(Forall xs) -> toList (enqueueAll emptyQ xs) .== xs) $+        \xs -> [] |- toList (enqueueAll emptyQ xs)+                  ?? eaC `at` (Inst @"xs" xs, Inst @"f" ([] :: SList a), Inst @"b" ([] :: SList a))+                  =: reverse [] ++ xs+                  =: xs+                  =: qed++-- | Dequeue from a non-empty queue gives the head of the abstract list,+-- and the remaining queue represents the tail.+--+-- >>> runTP $ dequeueCorrect @Integer+-- Lemma: dequeueCorrect    Q.E.D.+-- Functions proven terminating: sbv.reverse+-- [Proven] dequeueCorrect :: Ɐf ∷ [Integer] → Ɐb ∷ [Integer] → Bool+dequeueCorrect :: forall a. SymVal a => TP (Proof (Forall "f" [a] -> Forall "b" [a] -> SBool))+dequeueCorrect =+   lemma "dequeueCorrect"+         (\(Forall @"f" f) (Forall @"b" b) ->+              sNot (null (toList (tuple (f, b))))+              .=> let (v, q) = untuple (dequeue (tuple (f, b)))+                      l      = toList (tuple (f, b))+                  in v .== head l .&& toList q .== tail l)+         []
Documentation/SBV/Examples/TP/QuickSort.hs view
@@ -16,6 +16,7 @@ {-# LANGUAGE DataKinds           #-} {-# LANGUAGE FlexibleContexts    #-} {-# LANGUAGE OverloadedLists     #-}+{-# LANGUAGE QuasiQuotes         #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TypeAbstractions    #-} {-# LANGUAGE TypeApplications    #-}@@ -31,37 +32,113 @@ import Data.SBV.List hiding (partition) import Data.SBV.Tuple import Data.SBV.TP-import qualified Data.SBV.TP.List as TP+import qualified Documentation.SBV.Examples.TP.Lists as TP  import qualified Documentation.SBV.Examples.TP.SortHelpers as SH  #ifdef DOCTEST -- $setup -- >>> :set -XTypeApplications+-- >>> import Data.SBV.TP #endif  -- * Quick sort  -- | Quick-sort, using the first element as pivot.-quickSort :: (OrdSymbolic (SBV a), SymVal a) => SList a -> SList a-quickSort = smtFunction "quickSort" $ \l -> ite (null l)-                                                nil-                                                (let (x,  xs) = uncons l-                                                     (lo, hi) = untuple (partition x xs)-                                                 in  quickSort lo ++ [x] ++ quickSort hi)+quickSort :: forall a. (OrdSymbolic (SBV a), SymVal a) => SList a -> SList a+quickSort = smtFunctionWithMeasure "quickSort"+              ( length @a+              , [ measureLemma (partitionFstBound @a)+                , measureLemma (partitionSndBound @a)+                ]+              )+          $ \l -> [sCase| l of+                     []     -> []+                     x : xs -> case partition x xs of+                                 (lo, hi) -> quickSort lo ++ [x] ++ quickSort hi+                  |]  -- | We define @partition@ as an explicit function. Unfortunately, we can't just replace this -- with @\pivot xs -> Data.List.SBV.partition (.< pivot) xs@ because that would create a firstified version of partition -- with a free-variable captured, which isn't supported due to higher-order limitations in SMTLib. partition :: (OrdSymbolic (SBV a), SymVal a) => SBV a -> SList a -> STuple [a] [a]-partition = smtFunction "partition" $ \pivot xs -> ite (null xs)-                                                       (tuple (nil, nil))-                                                       (let (a,  as) = uncons xs-                                                            (lo, hi) = untuple (partition pivot as)-                                                        in ite (a .< pivot)-                                                               (tuple (a .: lo, hi))-                                                               (tuple (lo, a .: hi)))+partition = smtFunction "partition"+          $ \pivot xs -> [sCase| xs of+                            []     -> tuple ([], [])+                            a : as -> case partition pivot as of+                                        (lo, hi) | a .< pivot -> tuple (a .: lo, hi)+                                                 | True       -> tuple (lo, a .: hi)+                         |] +-- | The first component of partition is no longer than the input.+--+-- >>> runTP $ partitionFstBound @Integer+-- Inductive lemma (strong): partitionNotLongerFst+--   Step: Measure is non-negative                    Q.E.D.+--   Step: 1 (2 way case split)+--     Step: 1.1                                      Q.E.D.+--     Step: 1.2.1                                    Q.E.D.+--     Step: 1.2.2 (simplify)                         Q.E.D.+--     Step: 1.2.3                                    Q.E.D.+--     Step: 1.Completeness                           Q.E.D.+--   Result:                                          Q.E.D.+-- Functions proven terminating: partition+-- [Proven] partitionNotLongerFst :: Ɐl ∷ [Integer] → Ɐpivot ∷ Integer → Bool+partitionFstBound :: forall a. (OrdSymbolic (SBV a), SymVal a) => TP (Proof (Forall "l" [a] -> Forall "pivot" a -> SBool))+partitionFstBound = sInduct "partitionNotLongerFst"+   (\(Forall l) (Forall pivot) -> length (fst (partition @a pivot l)) .<= length l)+   (\l _ -> length l, []) $+   \ih l pivot -> [] |- length (fst (partition @a pivot l)) .<= length l+                     =: [pCase| l of+                          []             -> trivial+                          whole@(a : as) ->+                             let lo = fst (partition pivot as)+                             in ite (a .< pivot)+                                    (length (a .: lo) .<= length whole)+                                    (length       lo  .<= length whole)+                             ?? "simplify"+                             =: ite (a .< pivot)+                                    (length lo .<=     length as)+                                    (length lo .<= 1 + length as)+                             ?? ih `at` (Inst @"l" as, Inst @"pivot" pivot)+                             =: sTrue+                             =: qed+                        |]++-- | The second component of partition is no longer than the input.+--+-- >>> runTP $ partitionSndBound @Integer+-- Inductive lemma (strong): partitionNotLongerSnd+--   Step: Measure is non-negative                    Q.E.D.+--   Step: 1 (2 way case split)+--     Step: 1.1                                      Q.E.D.+--     Step: 1.2.1                                    Q.E.D.+--     Step: 1.2.2 (simplify)                         Q.E.D.+--     Step: 1.2.3                                    Q.E.D.+--     Step: 1.Completeness                           Q.E.D.+--   Result:                                          Q.E.D.+-- Functions proven terminating: partition+-- [Proven] partitionNotLongerSnd :: Ɐl ∷ [Integer] → Ɐpivot ∷ Integer → Bool+partitionSndBound :: forall a. (OrdSymbolic (SBV a), SymVal a) => TP (Proof (Forall "l" [a] -> Forall "pivot" a -> SBool))+partitionSndBound = sInduct "partitionNotLongerSnd"+   (\(Forall l) (Forall pivot) -> length (snd (partition @a pivot l)) .<= length l)+   (\l _ -> length l, []) $+   \ih l pivot -> [] |- length (snd (partition @a pivot l)) .<= length l+                     =: [pCase| l of+                          []     -> trivial+                          whole@(a : as) -> let hi = snd (partition pivot as)+                                 in ite (a .< pivot)+                                        (length       hi  .<= length whole)+                                        (length (a .: hi) .<= length whole)+                                 ?? "simplify"+                                 =: ite (a .< pivot)+                                        (length hi .<= 1 + length as)+                                        (length hi .<=     length as)+                                 ?? ih `at` (Inst @"l" as, Inst @"pivot" pivot)+                                 =: sTrue+                                 =: qed+                        |]+ -- * Correctness proof  -- | Correctness of quick-sort.@@ -70,166 +147,154 @@ -- -- >>> correctness @Integer -- Inductive lemma: countAppend---   Step: Base                                                Q.E.D.---   Step: 1                                                   Q.E.D.---   Step: 2 (unfold count)                                    Q.E.D.---   Step: 3                                                   Q.E.D.---   Step: 4 (simplify)                                        Q.E.D.---   Result:                                                   Q.E.D.+--   Step: Base                                       Q.E.D.+--   Step: 1                                          Q.E.D.+--   Step: 2 (unfold count)                           Q.E.D.+--   Step: 3                                          Q.E.D.+--   Step: 4 (simplify)                               Q.E.D.+--   Result:                                          Q.E.D. -- Inductive lemma: countNonNeg---   Step: Base                                                Q.E.D.+--   Step: Base                                       Q.E.D. --   Step: 1 (2 way case split)---     Step: 1.1.1                                             Q.E.D.---     Step: 1.1.2                                             Q.E.D.---     Step: 1.2.1                                             Q.E.D.---     Step: 1.2.2                                             Q.E.D.---     Step: 1.Completeness                                    Q.E.D.---   Result:                                                   Q.E.D.+--     Step: 1.1.1                                    Q.E.D.+--     Step: 1.1.2                                    Q.E.D.+--     Step: 1.2.1                                    Q.E.D.+--     Step: 1.2.2                                    Q.E.D.+--     Step: 1.Completeness                           Q.E.D.+--   Result:                                          Q.E.D. -- Inductive lemma: countElem---   Step: Base                                                Q.E.D.+--   Step: Base                                       Q.E.D. --   Step: 1 (2 way case split)---     Step: 1.1.1                                             Q.E.D.---     Step: 1.1.2                                             Q.E.D.---     Step: 1.2.1                                             Q.E.D.---     Step: 1.2.2                                             Q.E.D.---     Step: 1.Completeness                                    Q.E.D.---   Result:                                                   Q.E.D.+--     Step: 1.1.1                                    Q.E.D.+--     Step: 1.1.2                                    Q.E.D.+--     Step: 1.2.1                                    Q.E.D.+--     Step: 1.2.2                                    Q.E.D.+--     Step: 1.Completeness                           Q.E.D.+--   Result:                                          Q.E.D. -- Inductive lemma: elemCount---   Step: Base                                                Q.E.D.+--   Step: Base                                       Q.E.D. --   Step: 1 (2 way case split)---     Step: 1.1                                               Q.E.D.---     Step: 1.2.1                                             Q.E.D.---     Step: 1.2.2                                             Q.E.D.---     Step: 1.Completeness                                    Q.E.D.---   Result:                                                   Q.E.D.+--     Step: 1.1                                      Q.E.D.+--     Step: 1.2.1                                    Q.E.D.+--     Step: 1.2.2                                    Q.E.D.+--     Step: 1.Completeness                           Q.E.D.+--   Result:                                          Q.E.D. -- Lemma: sublistCorrect---   Step: 1                                                   Q.E.D.---   Result:                                                   Q.E.D.+--   Step: 1                                          Q.E.D.+--   Result:                                          Q.E.D. -- Lemma: sublistElem---   Step: 1                                                   Q.E.D.---   Result:                                                   Q.E.D.--- Lemma: sublistTail                                          Q.E.D.--- Lemma: sublistIfPerm                                        Q.E.D.+--   Step: 1                                          Q.E.D.+--   Result:                                          Q.E.D.+-- Lemma: sublistTail                                 Q.E.D.+-- Lemma: sublistIfPerm                               Q.E.D. -- Inductive lemma: lltCorrect---   Step: Base                                                Q.E.D.---   Step: 1                                                   Q.E.D.---   Result:                                                   Q.E.D.+--   Step: Base                                       Q.E.D.+--   Step: 1                                          Q.E.D.+--   Result:                                          Q.E.D. -- Inductive lemma: lgeCorrect---   Step: Base                                                Q.E.D.---   Step: 1                                                   Q.E.D.---   Result:                                                   Q.E.D.+--   Step: Base                                       Q.E.D.+--   Step: 1                                          Q.E.D.+--   Result:                                          Q.E.D. -- Inductive lemma: lltSublist---   Step: Base                                                Q.E.D.---   Step: 1                                                   Q.E.D.---   Step: 2                                                   Q.E.D.---   Result:                                                   Q.E.D.+--   Step: Base                                       Q.E.D.+--   Step: 1                                          Q.E.D.+--   Step: 2                                          Q.E.D.+--   Result:                                          Q.E.D. -- Lemma: lltPermutation---   Step: 1                                                   Q.E.D.---   Result:                                                   Q.E.D.+--   Step: 1                                          Q.E.D.+--   Result:                                          Q.E.D. -- Inductive lemma: lgeSublist---   Step: Base                                                Q.E.D.---   Step: 1                                                   Q.E.D.---   Step: 2                                                   Q.E.D.---   Result:                                                   Q.E.D.+--   Step: Base                                       Q.E.D.+--   Step: 1                                          Q.E.D.+--   Step: 2                                          Q.E.D.+--   Result:                                          Q.E.D. -- Lemma: lgePermutation---   Step: 1                                                   Q.E.D.---   Result:                                                   Q.E.D.+--   Step: 1                                          Q.E.D.+--   Result:                                          Q.E.D. -- Inductive lemma: partitionFstLT---   Step: Base                                                Q.E.D.---   Step: 1 (unroll partition)                                Q.E.D.---   Step: 2 (push fst down, simplify)                         Q.E.D.---   Step: 3 (push llt down)                                   Q.E.D.---   Step: 4                                                   Q.E.D.---   Result:                                                   Q.E.D.+--   Step: Base                                       Q.E.D.+--   Step: 1 (unroll partition)                       Q.E.D.+--   Step: 2 (push fst down, simplify)                Q.E.D.+--   Step: 3 (push llt down)                          Q.E.D.+--   Step: 4                                          Q.E.D.+--   Result:                                          Q.E.D. -- Inductive lemma: partitionSndGE---   Step: Base                                                Q.E.D.---   Step: 1                                                   Q.E.D.---   Step: 2 (push lge down)                                   Q.E.D.---   Step: 3                                                   Q.E.D.---   Result:                                                   Q.E.D.--- Inductive lemma (strong): partitionNotLongerFst---   Step: Measure is non-negative                             Q.E.D.---   Step: 1 (2 way full case split)---     Step: 1.1                                               Q.E.D.---     Step: 1.2.1                                             Q.E.D.---     Step: 1.2.2 (simplify)                                  Q.E.D.---     Step: 1.2.3                                             Q.E.D.---   Result:                                                   Q.E.D.--- Inductive lemma (strong): partitionNotLongerSnd---   Step: Measure is non-negative                             Q.E.D.---   Step: 1 (2 way full case split)---     Step: 1.1                                               Q.E.D.---     Step: 1.2.1                                             Q.E.D.---     Step: 1.2.2 (simplify)                                  Q.E.D.---     Step: 1.2.3                                             Q.E.D.---   Result:                                                   Q.E.D.+--   Step: Base                                       Q.E.D.+--   Step: 1                                          Q.E.D.+--   Step: 2 (push lge down)                          Q.E.D.+--   Step: 3                                          Q.E.D.+--   Result:                                          Q.E.D.+-- Lemma: partitionNotLongerFst                       Q.E.D.+-- Lemma: partitionNotLongerSnd                       Q.E.D. -- Inductive lemma: countPartition---   Step: Base                                                Q.E.D.---   Step: 1 (expand partition)                                Q.E.D.---   Step: 2 (push countTuple down)                            Q.E.D.+--   Step: Base                                       Q.E.D.+--   Step: 1 (expand partition)                       Q.E.D.+--   Step: 2 (push countTuple down)                   Q.E.D. --   Step: 3 (2 way case split)---     Step: 3.1.1                                             Q.E.D.---     Step: 3.1.2 (simplify)                                  Q.E.D.---     Step: 3.1.3                                             Q.E.D.---     Step: 3.2.1                                             Q.E.D.---     Step: 3.2.2 (simplify)                                  Q.E.D.---     Step: 3.2.3                                             Q.E.D.---     Step: 3.Completeness                                    Q.E.D.---   Result:                                                   Q.E.D.+--     Step: 3.1.1                                    Q.E.D.+--     Step: 3.1.2 (simplify)                         Q.E.D.+--     Step: 3.1.3                                    Q.E.D.+--     Step: 3.2.1                                    Q.E.D.+--     Step: 3.2.2 (simplify)                         Q.E.D.+--     Step: 3.2.3                                    Q.E.D.+--     Step: 3.Completeness                           Q.E.D.+--   Result:                                          Q.E.D. -- Inductive lemma (strong): sortCountsMatch---   Step: Measure is non-negative                             Q.E.D.---   Step: 1 (2 way full case split)---     Step: 1.1                                               Q.E.D.---     Step: 1.2.1                                             Q.E.D.---     Step: 1.2.2 (expand quickSort)                          Q.E.D.---     Step: 1.2.3 (push count down)                           Q.E.D.---     Step: 1.2.4                                             Q.E.D.---     Step: 1.2.5                                             Q.E.D.---     Step: 1.2.6 (IH on lo)                                  Q.E.D.---     Step: 1.2.7 (IH on hi)                                  Q.E.D.---     Step: 1.2.8                                             Q.E.D.---   Result:                                                   Q.E.D.--- Lemma: sortIsPermutation                                    Q.E.D.+--   Step: Measure is non-negative                    Q.E.D.+--   Step: 1 (2 way case split)+--     Step: 1.1                                      Q.E.D.+--     Step: 1.2.1                                    Q.E.D.+--     Step: 1.2.2 (expand quickSort)                 Q.E.D.+--     Step: 1.2.3 (push count down)                  Q.E.D.+--     Step: 1.2.4                                    Q.E.D.+--     Step: 1.2.5                                    Q.E.D.+--     Step: 1.2.6 (IH on lo)                         Q.E.D.+--     Step: 1.2.7 (IH on hi)                         Q.E.D.+--     Step: 1.2.8                                    Q.E.D.+--     Step: 1.Completeness                           Q.E.D.+--   Result:                                          Q.E.D.+-- Lemma: sortIsPermutation                           Q.E.D. -- Inductive lemma: nonDecreasingMerge---   Step: Base                                                Q.E.D.---   Step: 1 (2 way full case split)---     Step: 1.1                                               Q.E.D.---     Step: 1.2.1                                             Q.E.D.---     Step: 1.2.2                                             Q.E.D.---     Step: 1.2.3                                             Q.E.D.---     Step: 1.2.4                                             Q.E.D.---     Step: 1.2.5                                             Q.E.D.---     Step: 1.2.6                                             Q.E.D.---     Step: 1.2.7                                             Q.E.D.---   Result:                                                   Q.E.D.+--   Step: Base                                       Q.E.D.+--   Step: 1 (2 way case split)+--     Step: 1.1                                      Q.E.D.+--     Step: 1.2.1                                    Q.E.D.+--     Step: 1.2.2                                    Q.E.D.+--     Step: 1.2.3                                    Q.E.D.+--     Step: 1.2.4                                    Q.E.D.+--     Step: 1.2.5                                    Q.E.D.+--     Step: 1.2.6                                    Q.E.D.+--     Step: 1.2.7                                    Q.E.D.+--     Step: 1.Completeness                           Q.E.D.+--   Result:                                          Q.E.D. -- Inductive lemma (strong): sortIsNonDecreasing---   Step: Measure is non-negative                             Q.E.D.---   Step: 1 (2 way full case split)---     Step: 1.1                                               Q.E.D.---     Step: 1.2.1                                             Q.E.D.---     Step: 1.2.2 (expand quickSort)                          Q.E.D.---     Step: 1.2.3 (push nonDecreasing down)                   Q.E.D.---     Step: 1.2.4                                             Q.E.D.---   Result:                                                   Q.E.D.--- Lemma: quickSortIsCorrect                                   Q.E.D.+--   Step: Measure is non-negative                    Q.E.D.+--   Step: 1 (2 way case split)+--     Step: 1.1                                      Q.E.D.+--     Step: 1.2.1                                    Q.E.D.+--     Step: 1.2.2 (expand quickSort)                 Q.E.D.+--     Step: 1.2.3                                    Q.E.D.+--     Step: 1.Completeness                           Q.E.D.+--   Result:                                          Q.E.D.+-- Lemma: quickSortIsCorrect                          Q.E.D. -- Inductive lemma: partitionSortedLeft---   Step: Base                                                Q.E.D.---   Step: 1                                                   Q.E.D.---   Step: 2                                                   Q.E.D.---   Result:                                                   Q.E.D.+--   Step: Base                                       Q.E.D.+--   Step: 1                                          Q.E.D.+--   Step: 2                                          Q.E.D.+--   Result:                                          Q.E.D. -- Inductive lemma: partitionSortedRight---   Step: Base                                                Q.E.D.---   Step: 1                                                   Q.E.D.---   Step: 2                                                   Q.E.D.---   Result:                                                   Q.E.D.+--   Step: Base                                       Q.E.D.+--   Step: 1                                          Q.E.D.+--   Step: 2                                          Q.E.D.+--   Result:                                          Q.E.D. -- Inductive lemma: unchangedIfNondecreasing---   Step: Base                                                Q.E.D.---   Step: 1                                                   Q.E.D.---   Step: 2                                                   Q.E.D.---   Step: 3                                                   Q.E.D.---   Step: 4                                                   Q.E.D.---   Result:                                                   Q.E.D.--- Lemma: ifChangedThenUnsorted                                Q.E.D.+--   Step: Base                                       Q.E.D.+--   Step: 1                                          Q.E.D.+--   Step: 2                                          Q.E.D.+--   Step: 3                                          Q.E.D.+--   Step: 4                                          Q.E.D.+--   Result:                                          Q.E.D.+-- Lemma: ifChangedThenUnsorted                       Q.E.D. -- == Proof tree: -- quickSortIsCorrect --  ├╴sortIsPermutation@@ -261,9 +326,10 @@ --     │  │  └╴sublistTail --     │  └╴sublistIfPerm --     └╴nonDecreasingMerge+-- Functions proven terminating: count, lge, llt, nonDecreasing, partition, quickSort -- [Proven] quickSortIsCorrect :: Ɐxs ∷ [Integer] → Bool correctness :: forall a. (Eq a, OrdSymbolic (SBV a), SymVal a) => IO (Proof (Forall "xs" [a] -> SBool))-correctness = runTPWith (tpRibbon 60 z3) $ do+correctness = runTP $ do    --------------------------------------------------------------------------------------------   -- Part I. Import helper lemmas, definitions@@ -284,8 +350,16 @@   -- llt: list less-than:     all the elements are <  pivot   -- lge: list greater-equal: all the elements are >= pivot   let llt, lge :: SBV a -> SList a -> SBool-      llt = smtFunction "llt" $ \pivot l -> null l .|| let (x, xs) = uncons l in x .<  pivot .&& llt pivot xs-      lge = smtFunction "lge" $ \pivot l -> null l .|| let (x, xs) = uncons l in x .>= pivot .&& lge pivot xs+      llt = smtFunction "llt"+          $ \pivot l -> [sCase| l of+                           []     -> sTrue+                           x : xs -> x .<  pivot .&& llt pivot xs+                        |]+      lge = smtFunction "lge"+          $ \pivot l -> [sCase| l of+                           []     -> sTrue+                           x : xs -> x .>= pivot .&& lge pivot xs+                        |]    -- llt correctness   lltCorrect <-@@ -404,40 +478,10 @@                              =: qed    -- The first element of partition does not increase in size-  partitionNotLongerFst <- sInduct "partitionNotLongerFst"-     (\(Forall l) (Forall pivot) -> length (fst (partition @a pivot l)) .<= length l)-     (\l _ -> length l) $-     \ih l pivot -> [] |- length (fst (partition @a pivot l)) .<= length l-                       =: split l trivial-                                (\a as -> let lo = fst (partition pivot as)-                                       in ite (a .< pivot)-                                              (length (a .: lo) .<= length (a .: as))-                                              (length       lo  .<= length (a .: as))-                                       ?? "simplify"-                                       =: ite (a .< pivot)-                                              (length lo .<=     length as)-                                              (length lo .<= 1 + length as)-                                       ?? ih `at` (Inst @"l" as, Inst @"pivot" pivot)-                                       =: sTrue-                                       =: qed)+  partitionNotLongerFst <- recall (partitionFstBound @a)    -- The second element of partition does not increase in size-  partitionNotLongerSnd <- sInduct "partitionNotLongerSnd"-     (\(Forall l) (Forall pivot) -> length (snd (partition @a pivot l)) .<= length l)-     (\l _ -> length l) $-     \ih l pivot -> [] |- length (snd (partition @a pivot l)) .<= length l-                       =: split l trivial-                                (\a as -> let hi = snd (partition pivot as)-                                       in ite (a .< pivot)-                                              (length       hi  .<= length (a .: as))-                                              (length (a .: hi) .<= length (a .: as))-                                       ?? "simplify"-                                       =: ite (a .< pivot)-                                              (length hi .<= 1 + length as)-                                              (length hi .<=     length as)-                                       ?? ih `at` (Inst @"l" as, Inst @"pivot" pivot)-                                       =: sTrue-                                       =: qed)+  partitionNotLongerSnd <- recall (partitionSndBound @a)    --------------------------------------------------------------------------------------------   -- Part IV. Helper lemmas for count@@ -487,32 +531,34 @@   sortCountsMatch <-      sInduct "sortCountsMatch"              (\(Forall xs) (Forall e) -> count e xs .== count e (quickSort xs))-             (\xs _ -> length xs) $+             (\xs _ -> length xs, []) $              \ih xs e ->                 [] |- count e (quickSort xs)-                   =: split xs trivial-                            (\a as -> count e (quickSort (a .: as))-                                   ?? "expand quickSort"-                                   =: count e (let (lo, hi) = untuple (partition a as)-                                               in quickSort lo ++ [a] ++ quickSort hi)-                                   ?? "push count down"-                                   =: let (lo, hi) = untuple (partition a as)-                                   in count e (quickSort lo ++ [a] ++ quickSort hi)-                                   ?? countAppend `at` (Inst @"xs" (quickSort lo), Inst @"ys" ([a] ++ quickSort hi), Inst @"e" e)-                                   =: count e (quickSort lo) + count e ([a] ++ quickSort hi)-                                   ?? countAppend `at` (Inst @"xs" [a], Inst @"ys" (quickSort hi), Inst @"e" e)-                                   =: count e (quickSort lo) + count e [a] + count e (quickSort hi)-                                   ?? ih                    `at` (Inst @"xs" lo, Inst @"e" e)-                                   ?? partitionNotLongerFst `at` (Inst @"l"  as, Inst @"pivot" a)-                                   ?? "IH on lo"-                                   =: count e lo + count e [a] + count e (quickSort hi)-                                   ?? ih                    `at` (Inst @"xs" hi, Inst @"e" e)-                                   ?? partitionNotLongerSnd `at` (Inst @"l"  as, Inst @"pivot" a)-                                   ?? "IH on hi"-                                   =: count e lo + count e [a] + count e hi-                                   ?? countPartition `at` (Inst @"xs" as, Inst @"pivot" a, Inst @"e" e)-                                   =: count e xs-                                   =: qed)+                   =: [pCase| xs of+                        []             -> trivial+                        whole@(a : as) ->+                              let (lo, hi) = untuple (partition a as)+                              in count e (quickSort whole)+                              ?? "expand quickSort"+                              =: count e (quickSort lo ++ [a] ++ quickSort hi)+                              ?? "push count down"+                              =: count e (quickSort lo ++ [a] ++ quickSort hi)+                              ?? countAppend `at` (Inst @"xs" (quickSort lo), Inst @"ys" ([a] ++ quickSort hi), Inst @"e" e)+                              =: count e (quickSort lo) + count e ([a] ++ quickSort hi)+                              ?? countAppend `at` (Inst @"xs" [a], Inst @"ys" (quickSort hi), Inst @"e" e)+                              =: count e (quickSort lo) + count e [a] + count e (quickSort hi)+                              ?? ih                    `at` (Inst @"xs" lo, Inst @"e" e)+                              ?? partitionNotLongerFst `at` (Inst @"l"  as, Inst @"pivot" a)+                              ?? "IH on lo"+                              =: count e lo + count e [a] + count e (quickSort hi)+                              ?? ih                    `at` (Inst @"xs" hi, Inst @"e" e)+                              ?? partitionNotLongerSnd `at` (Inst @"l"  as, Inst @"pivot" a)+                              ?? "IH on hi"+                              =: count e lo + count e [a] + count e hi+                              ?? countPartition `at` (Inst @"xs" as, Inst @"pivot" a, Inst @"e" e)+                              =: count e xs+                              =: qed+                      |]    sortIsPermutation <- lemma "sortIsPermutation" (\(Forall xs) -> isPermutation xs (quickSort xs)) [proofOf sortCountsMatch] @@ -527,18 +573,21 @@           \ih (x, xs) pivot ys ->                 [nonDecreasing (x .: xs), llt pivot xs, nonDecreasing ys, lge pivot ys]              |- nonDecreasing (x .: xs ++ [pivot] ++ ys)-             =: split xs trivial-                      (\a as -> nonDecreasing (x .: (a .: as) ++ [pivot] ++ ys)-                             =: nonDecreasing (x .: a .: (as ++ [pivot] ++ ys))-                             =: x .<= a .&& nonDecreasing (a .: (as ++ [pivot] ++ ys))-                             =: nonDecreasing (a .: (as ++ [pivot] ++ ys))-                             =: nonDecreasing ((a .: as) ++ [pivot] ++ ys)-                             =: nonDecreasing (xs ++ [pivot] ++ ys)-                             -- This hint shouldn't be necessary, but it makes the proof go faster!-                             ?? nonDecreasing xs-                             ?? ih-                             =: sTrue-                             =: qed)+             =: [pCase| xs of+                  [] -> trivial+                  whole@(a : as) ->+                         nonDecreasing (x .: whole ++ [pivot] ++ ys)+                      =: nonDecreasing (x .: a .: (as ++ [pivot] ++ ys))+                      =: x .<= a .&& nonDecreasing (a .: (as ++ [pivot] ++ ys))+                      =: nonDecreasing (a .: (as ++ [pivot] ++ ys))+                      =: nonDecreasing (whole ++ [pivot] ++ ys)+                      =: nonDecreasing (xs ++ [pivot] ++ ys)+                      -- This hint shouldn't be necessary, but it makes the proof go faster!+                      ?? nonDecreasing xs+                      ?? ih+                      =: sTrue+                      =: qed+                |]    --------------------------------------------------------------------------------------------   -- Part VII. Prove that the output of quick sort is non-decreasing@@ -546,41 +595,41 @@   sortIsNonDecreasing <-      sInductWith cvc5 "sortIsNonDecreasing"              (\(Forall xs) -> nonDecreasing (quickSort xs))-             (length @a) $+             (length @a, []) $              \ih xs ->                 [] |- nonDecreasing (quickSort xs)-                   =: split xs trivial-                            (\a as -> nonDecreasing (quickSort (a .: as))-                                   ?? "expand quickSort"-                                   =: nonDecreasing (let (lo, hi) = untuple (partition a as)-                                                     in quickSort lo ++ [a] ++ quickSort hi)-                                   ?? "push nonDecreasing down"-                                   =: let (lo, hi) = untuple (partition a as)-                                   in nonDecreasing (quickSort lo ++ [a] ++ quickSort hi)-                                   -- Deduce that lo/hi is not longer than as, and hence, shorter than xs-                                   ?? partitionNotLongerFst `at` (Inst @"l" as, Inst @"pivot" a)-                                   ?? partitionNotLongerSnd `at` (Inst @"l" as, Inst @"pivot" a)+                   =: [pCase| xs of+                        [] -> trivial+                        whole@(a : as) ->+                             let (lo, hi) = untuple (partition a as)+                             in nonDecreasing (quickSort whole)+                          ?? "expand quickSort"+                          =: nonDecreasing (quickSort lo ++ [a] ++ quickSort hi)+                          -- Deduce that lo/hi is not longer than as, and hence, shorter than xs+                          ?? partitionNotLongerFst `at` (Inst @"l" as, Inst @"pivot" a)+                          ?? partitionNotLongerSnd `at` (Inst @"l" as, Inst @"pivot" a) -                                   -- Use the inductive hypothesis twice to deduce quickSort of lo and hi are nonDecreasing-                                   ?? ih `at` Inst @"xs" lo  -- nonDecreasing (quickSort lo)-                                   ?? ih `at` Inst @"xs" hi  -- nonDecreasing (quickSort hi)+                          -- Use the inductive hypothesis twice to deduce quickSort of lo and hi are nonDecreasing+                          ?? ih `at` Inst @"xs" lo  -- nonDecreasing (quickSort lo)+                          ?? ih `at` Inst @"xs" hi  -- nonDecreasing (quickSort hi) -                                   -- Deduce that lo is all less than a, and hi is all greater than or equal to a-                                   ?? partitionFstLT `at` (Inst @"l" as, Inst @"pivot" a)-                                   ?? partitionSndGE `at` (Inst @"l" as, Inst @"pivot" a)+                          -- Deduce that lo is all less than a, and hi is all greater than or equal to a+                          ?? partitionFstLT `at` (Inst @"l" as, Inst @"pivot" a)+                          ?? partitionSndGE `at` (Inst @"l" as, Inst @"pivot" a) -                                   -- Deduce that quickSort lo is all less than a-                                   ?? sortIsPermutation `at`  Inst @"xs" lo-                                   ?? lltPermutation    `at` (Inst @"xs" (quickSort lo), Inst @"pivot" a, Inst @"ys" lo)+                          -- Deduce that quickSort lo is all less than a+                          ?? sortIsPermutation `at`  Inst @"xs" lo+                          ?? lltPermutation    `at` (Inst @"xs" (quickSort lo), Inst @"pivot" a, Inst @"ys" lo) -                                   -- Deduce that quickSort hi is all greater than or equal to a-                                   ?? sortIsPermutation `at`  Inst @"xs" hi-                                   ?? lgePermutation    `at` (Inst @"xs" (quickSort hi), Inst @"pivot" a, Inst @"ys" hi)+                          -- Deduce that quickSort hi is all greater than or equal to a+                          ?? sortIsPermutation `at`  Inst @"xs" hi+                          ?? lgePermutation    `at` (Inst @"xs" (quickSort hi), Inst @"pivot" a, Inst @"ys" hi) -                                   -- Finally conclude that the whole reconstruction is non-decreasing-                                   ?? nonDecreasingMerge `at` (Inst @"xs" (quickSort lo), Inst @"pivot" a, Inst @"ys" (quickSort hi))-                                   =: sTrue-                                   =: qed)+                          -- Finally conclude that the whole reconstruction is non-decreasing+                          ?? nonDecreasingMerge `at` (Inst @"xs" (quickSort lo), Inst @"pivot" a, Inst @"ys" (quickSort hi))+                          =: sTrue+                          =: qed+                      |]    --------------------------------------------------------------------------------------------   -- Part VIII. Putting it together@@ -631,16 +680,18 @@                           =: x .: xs                           =: qed -  -- A nice corrollary to the above is that if quicksort changes its input, that implies the input was not non-decreasing:+  -- A nice corollary to the above is that if quicksort changes its input, that implies the input was not non-decreasing:   _ <- lemma "ifChangedThenUnsorted"              (\(Forall @"xs" xs) -> quickSort xs ./= xs .=> sNot (nonDecreasing xs))              [proofOf unchangedIfNondecreasing]    ---------------------------------------------------------------------------------------------  -- | We can display the dependencies in a proof+  -- We can display the dependencies in a proof.+  -- Note that we do avoid doing this during the+  -- dry-run of the proof to avoid duplicate output.   ---------------------------------------------------------------------------------------------  liftIO $ do putStrLn "== Proof tree:"-              putStr $ showProofTree True qs+  unlessDryRun $ liftIO $ do putStrLn "== Proof tree:"+                             putStr $ showProofTree True qs    pure qs 
Documentation/SBV/Examples/TP/RevAcc.hs view
@@ -6,13 +6,14 @@ -- Maintainer: erkokl@gmail.com -- Stability : experimental ----- Proves that the accummulating version of reverse is equivalent to the+-- Proves that the accumulating version of reverse is equivalent to the -- standard definition. -----------------------------------------------------------------------------  {-# LANGUAGE CPP                 #-} {-# LANGUAGE DataKinds           #-} {-# LANGUAGE OverloadedLists     #-}+{-# LANGUAGE QuasiQuotes         #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TypeAbstractions    #-} @@ -31,11 +32,15 @@ -- >>> :set -XTypeApplications #endif --- * Reversing with an accummulator.+-- * Reversing with an accumulator. --- | Accummulating reverse.+-- | Accumulating reverse. revAcc :: SymVal a => SList a -> SList a -> SList a-revAcc = smtFunction "revAcc" $ \acc xs -> ite (null xs) acc (revAcc (head xs .: acc) (tail xs))+revAcc = smtFunction "revAcc"+       $ \acc xs -> [sCase| xs of+                       []     -> acc+                       a : as -> revAcc (a .: acc) as+                    |]  -- | Given 'revAcc', we can reverse a list by providing the empty list as the initial accumulator. rev :: SymVal a => SList a -> SList a@@ -47,13 +52,14 @@ -- -- >>> correctness @Integer -- Inductive lemma: revAccCorrect---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4                               Q.E.D.---   Result:                               Q.E.D.--- Lemma: revCorrect                       Q.E.D.+--   Step: Base                      Q.E.D.+--   Step: 1                         Q.E.D.+--   Step: 2                         Q.E.D.+--   Step: 3                         Q.E.D.+--   Step: 4                         Q.E.D.+--   Result:                         Q.E.D.+-- Lemma: revCorrect                 Q.E.D.+-- Functions proven terminating: revAcc, sbv.reverse -- [Proven] revCorrect :: Ɐxs ∷ [Integer] → Bool correctness :: forall a. SymVal a => IO (Proof (Forall "xs" [a] -> SBool)) correctness = runTP $ do
Documentation/SBV/Examples/TP/Reverse.hs view
@@ -17,8 +17,8 @@ {-# LANGUAGE CPP                 #-} {-# LANGUAGE DataKinds           #-} {-# LANGUAGE OverloadedLists     #-}+{-# LANGUAGE QuasiQuotes         #-} {-# LANGUAGE ScopedTypeVariables #-}-{-# LANGUAGE TypeAbstractions    #-} {-# LANGUAGE TypeApplications    #-}  {-# OPTIONS_GHC -Wall -Werror #-}@@ -31,7 +31,7 @@ import Data.SBV.List hiding (partition) import Data.SBV.TP -import qualified Data.SBV.TP.List as TP+import qualified Documentation.SBV.Examples.TP.Lists as TP  #ifdef DOCTEST -- $setup@@ -42,14 +42,54 @@ -- * Reversing with no auxiliaries  -- | This definition of reverse uses no helper functions, other than the usual--- head, tail, cons, and uncons to reverse a given list. Note that efficiency+-- head, tail, and cons to reverse a given list. Note that efficiency -- is not our concern here, we call 'rev' itself three times in the body.-rev :: SymVal a => SList a -> SList a-rev = smtFunction "rev" $ \xs -> ite (null xs .|| null (tail xs)) xs-                                     (let (x, as)     = uncons xs-                                          (hras, tas) = uncons (rev as)-                                      in hras .: rev (x .: rev tas))+rev :: forall a. SymVal a => SList a -> SList a+rev = smtFunctionWithMeasure "rev"+        ( length @a+        , [measureLemma (revPreservesLen @a)]+        )+    $ \xs -> [sCase| xs of+                []     -> xs+                x : as -> case rev as of+                            []         -> [x]+                            hras : tas -> hras .: rev (x .: rev tas)+             |] +-- | Reversing preserves length. Needed as a measure helper for 'rev'.+--+-- >>> runTP $ revPreservesLen @Integer+-- Inductive lemma (strong): revPreservesLen+--   Step: Measure is non-negative              Q.E.D.+--   Step: 1 (3 way case split)+--     Step: 1.1                                Q.E.D.+--     Step: 1.2                                Q.E.D.+--     Step: 1.3.1                              Q.E.D.+--     Step: 1.3.2                              Q.E.D.+--     Step: 1.3.3                              Q.E.D.+--     Step: 1.Completeness                     Q.E.D.+--   Result:                                    Q.E.D.+-- Functions proven terminating: rev+-- [Proven] revPreservesLen :: Ɐxs ∷ [Integer] → Bool+revPreservesLen :: forall a. SymVal a => TP (Proof (Forall "xs" [a] -> SBool))+revPreservesLen = sInductWith cvc5 "revPreservesLen"+   (\(Forall xs) -> length (rev @a xs) .== length xs)+   (length, []) $+   \ih xs -> [] |- length (rev @a xs) .== length xs+               =: [pCase| xs of+                    []     -> trivial+                    [_]    -> trivial+                    whole@(a : as) -> length (head (rev as) .: rev (a .: rev (tail (rev as)))) .== length whole+                           -- Simplify: length (h .: e) = 1 + length e+                           =: (1 + length (rev (a .: rev (tail (rev as))))) .== (1 + length as)+                           -- Now apply the IH instances in order: each precondition depends on previous conclusions+                           ?? ih `at` Inst @"xs" as+                           ?? ih `at` Inst @"xs" (tail (rev as))+                           ?? ih `at` Inst @"xs" (a .: rev (tail (rev as)))+                           =: sTrue+                           =: qed+                  |]+ -- * Correctness proof  -- | Correctness the function 'rev'. We have:@@ -61,73 +101,76 @@ -- Lemma: revRev                           Q.E.D. -- Inductive lemma (strong): revCorrect --   Step: Measure is non-negative         Q.E.D.---   Step: 1 (2 way full case split)+--   Step: 1 (3 way case split) --     Step: 1.1                           Q.E.D.---     Step: 1.2 (2 way full case split)---       Step: 1.2.1                       Q.E.D.---       Step: 1.2.2.1                     Q.E.D.---       Step: 1.2.2.2                     Q.E.D.---       Step: 1.2.2.3                     Q.E.D.---       Step: 1.2.2.4                     Q.E.D.---       Step: 1.2.2.5                     Q.E.D.---       Step: 1.2.2.6 (simplify head)     Q.E.D.---       Step: 1.2.2.7                     Q.E.D.---       Step: 1.2.2.8 (simplify tail)     Q.E.D.---       Step: 1.2.2.9                     Q.E.D.---       Step: 1.2.2.10                    Q.E.D.---       Step: 1.2.2.11                    Q.E.D.---       Step: 1.2.2.12 (substitute)       Q.E.D.---       Step: 1.2.2.13                    Q.E.D.---       Step: 1.2.2.14                    Q.E.D.---       Step: 1.2.2.15                    Q.E.D.+--     Step: 1.2                           Q.E.D.+--     Step: 1.3.1                         Q.E.D.+--     Step: 1.3.2                         Q.E.D.+--     Step: 1.3.3                         Q.E.D.+--     Step: 1.3.4                         Q.E.D.+--     Step: 1.3.5                         Q.E.D.+--     Step: 1.3.6 (simplify head)         Q.E.D.+--     Step: 1.3.7                         Q.E.D.+--     Step: 1.3.8 (simplify tail)         Q.E.D.+--     Step: 1.3.9                         Q.E.D.+--     Step: 1.3.10                        Q.E.D.+--     Step: 1.3.11                        Q.E.D.+--     Step: 1.3.12 (substitute)           Q.E.D.+--     Step: 1.3.13                        Q.E.D.+--     Step: 1.3.14                        Q.E.D.+--     Step: 1.3.15                        Q.E.D.+--     Step: 1.Completeness                Q.E.D. --   Result:                               Q.E.D.+-- Functions proven terminating: rev, sbv.reverse -- [Proven] revCorrect :: Ɐxs ∷ [Integer] → Bool correctness :: forall a. SymVal a => TP (Proof (Forall "xs" [a] -> SBool)) correctness = do    -- Quietly import a few helpers from "Data.SBV.TP.List"-  revLen  <- recall "revLen"  $ TP.revLen  @a-  revApp  <- recall "revApp"  $ TP.revApp  @a-  revSnoc <- recall "revSnoc" $ TP.revSnoc @a-  revRev  <- recall "revRev"  $ TP.revRev  @a+  revLen  <- recall $ TP.revLen  @a+  revApp  <- recall $ TP.revApp  @a+  revSnoc <- recall $ TP.revSnoc @a+  revRev  <- recall $ TP.revRev  @a    sInductWith cvc5 "revCorrect"     (\(Forall xs) -> rev xs .== reverse xs)-    length $+    (length, []) $     \ih xs -> [] |- rev xs-                 =: split xs trivial-                          (\a as -> split as trivial-                                          (\_ _ -> head (rev as) .: rev (a .: rev (tail (rev as)))-                                                ?? ih `at` Inst @"xs" as-                                                =: head (reverse as) .: rev (a .: rev (tail (rev as)))-                                                ?? ih `at` Inst @"xs" as-                                                =: head (reverse as) .: rev (a .: rev (tail (reverse as)))-                                                ?? ih `at` Inst @"xs" (tail (rev as))-                                                =: head (reverse as) .: rev (a .: rev (tail (reverse as)))-                                                ?? revSnoc `at` (Inst @"x" (last as), Inst @"xs" (init as))-                                                =: let w = init as-                                                       b = last as-                                                in head (b .: reverse w) .: rev (a .: rev (tail (reverse as)))-                                                ?? "simplify head"-                                                =: b .: rev (a .: rev (tail (reverse as)))-                                                ?? revSnoc `at` (Inst @"x" (last xs), Inst @"xs" (init as))-                                                =: b .: rev (a .: rev (tail (b .: reverse w)))-                                                ?? "simplify tail"-                                                =: b .: rev (a .: rev (reverse w))-                                                ?? ih     `at` Inst @"xs" (reverse w)-                                                ?? revLen `at` Inst @"xs" w-                                                =: b .: rev (a .: reverse (reverse w))-                                                ?? revRev `at` Inst @"xs" w-                                                =: b .: rev (a .: w)-                                                ?? ih-                                                =: b .: reverse (a .: w)-                                                ?? "substitute"-                                                =: last as .: reverse (a .: init as)-                                                ?? revApp `at` (Inst @"xs" (a .: init as), Inst @"ys" [last as])-                                                =: reverse (a .: init as ++ [last as])-                                                =: reverse (a .: as)-                                                =: reverse xs-                                                =: qed))+                 =: [pCase| xs of+                      []     -> trivial+                      [_]    -> trivial+                      a : as -> head (rev as) .: rev (a .: rev (tail (rev as)))+                             ?? ih `at` Inst @"xs" as+                             =: head (reverse as) .: rev (a .: rev (tail (rev as)))+                             ?? ih `at` Inst @"xs" as+                             =: head (reverse as) .: rev (a .: rev (tail (reverse as)))+                             ?? ih `at` Inst @"xs" (tail (rev as))+                             =: head (reverse as) .: rev (a .: rev (tail (reverse as)))+                             ?? revSnoc `at` (Inst @"x" (last as), Inst @"xs" (init as))+                             =: let w = init as+                                    b = last as+                             in head (b .: reverse w) .: rev (a .: rev (tail (reverse as)))+                             ?? "simplify head"+                             =: b .: rev (a .: rev (tail (reverse as)))+                             ?? revSnoc `at` (Inst @"x" (last xs), Inst @"xs" (init as))+                             =: b .: rev (a .: rev (tail (b .: reverse w)))+                             ?? "simplify tail"+                             =: b .: rev (a .: rev (reverse w))+                             ?? ih     `at` Inst @"xs" (reverse w)+                             ?? revLen `at` Inst @"xs" w+                             =: b .: rev (a .: reverse (reverse w))+                             ?? revRev `at` Inst @"xs" w+                             =: b .: rev (a .: w)+                             ?? ih+                             =: b .: reverse (a .: w)+                             ?? "substitute"+                             =: last as .: reverse (a .: init as)+                             ?? revApp `at` (Inst @"xs" (a .: init as), Inst @"ys" [last as])+                             =: reverse (a .: init as ++ [last as])+                             =: reverse (a .: as)+                             =: reverse xs+                             =: qed+                    |]  {- HLint ignore correctness "Use last"          -} {- HLint ignore correctness "Redundant reverse" -}
+ Documentation/SBV/Examples/TP/RunLength.hs view
@@ -0,0 +1,198 @@+-----------------------------------------------------------------------------+-- |+-- Module    : Documentation.SBV.Examples.TP.RunLength+-- Copyright : (c) Levent Erkok+-- License   : BSD3+-- Maintainer: erkokl@gmail.com+-- Stability : experimental+--+-- Proving that run-length decoding inverts encoding. We define:+--+--   * @encode@: groups consecutive equal elements into (value, count) pairs+--   * @decode@: expands each pair back into a run of elements+--+-- and prove @decode (encode xs) == xs@ for all finite lists @xs@.+-----------------------------------------------------------------------------++{-# LANGUAGE CPP                 #-}+{-# LANGUAGE DataKinds           #-}+{-# LANGUAGE OverloadedLists     #-}+{-# LANGUAGE QuasiQuotes         #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions    #-}+{-# LANGUAGE TypeApplications    #-}++{-# OPTIONS_GHC -Wall -Werror #-}++module Documentation.SBV.Examples.TP.RunLength where++import Prelude hiding (length, head, tail, null, reverse, (++), replicate, fst, snd)++import Data.SBV+import Data.SBV.List+import Data.SBV.Tuple+import Data.SBV.TP++#ifdef DOCTEST+-- $setup+-- >>> :set -XOverloadedLists+-- >>> :set -XTypeApplications+-- >>> import Data.SBV+-- >>> import Data.SBV.Tuple+-- >>> import Data.SBV.TP+#endif++-- * Definitions++-- | Run-length decode: expand each (value, count) pair into a run of that element.+--+-- >>> decode (tuple (1,3) .: tuple (2,2) .: tuple (3,1) .: []) :: SList Integer+-- [1,1,1,2,2,3] :: [SInteger]+-- >>> decode ([] :: SList (Integer, Integer))+-- [] :: [SInteger]+decode :: forall a. SymVal a => SList (a, Integer) -> SList a+decode = smtFunction "decode"+       $ \ps -> [sCase| ps of+                   []            -> []+                   (e, c) : rest -> replicate c e ++ decode rest+                |]++-- | Prepend an element to a run-length encoded list. If the head run has the+-- same value, we increment its count; otherwise we create a new singleton run.+--+-- >>> encodeCons 1 (encode [1,1,2,2]) :: SList (Integer, Integer)+-- [(1,3),(2,2)] :: [(SInteger, SInteger)]+-- >>> encodeCons 5 (encode [1,1,2,2]) :: SList (Integer, Integer)+-- [(5,1),(1,2),(2,2)] :: [(SInteger, SInteger)]+encodeCons :: forall a. SymVal a => SBV a -> SList (a, Integer) -> SList (a, Integer)+encodeCons = smtFunction "encodeCons"+           $ \x ps -> [sCase| ps of+                         []                      -> [tuple (x, 1)]+                         (e, c) : rest | x .== e -> tuple (x, c + 1) .: rest+                                       | True    -> tuple (x,     1) .: ps+                      |]++-- | Run-length encode: fold from the right, using 'encodeCons' to merge+-- each element into the growing encoding.+--+-- >>> encode [1,1,1,2,2,3] :: SList (Integer, Integer)+-- [(1,3),(2,2),(3,1)] :: [(SInteger, SInteger)]+-- >>> encode ([] :: SList Integer)+-- [] :: [(SInteger, SInteger)]+-- >>> encode [4] :: SList (Integer, Integer)+-- [(4,1)] :: [(SInteger, SInteger)]+encode :: forall a. SymVal a => SList a -> SList (a, Integer)+encode = smtFunction "encode"+       $ \xs -> [sCase| xs of+                   []       -> []+                   x : rest -> encodeCons x (encode rest)+                |]++-- * Correctness++-- | @decode (encode xs) == xs@+--+-- The proof proceeds by induction on @xs@. The key helper shows that+-- decoding after 'encodeCons' is the same as consing the element,+-- provided the head count in the encoded list is positive (which+-- 'encode' always guarantees).+--+-- >>> runTPWith cvc5 $ correctness @Integer+-- Lemma: decodeEncodeCons+--   Step: 1 (3 way case split)+--     Step: 1.1.1                         Q.E.D.+--     Step: 1.1.2                         Q.E.D.+--     Step: 1.1.3                         Q.E.D.+--     Step: 1.1.4                         Q.E.D.+--     Step: 1.2.1                         Q.E.D.+--     Step: 1.2.2                         Q.E.D.+--     Step: 1.2.3                         Q.E.D.+--     Step: 1.2.4                         Q.E.D.+--     Step: 1.3.1                         Q.E.D.+--     Step: 1.3.2                         Q.E.D.+--     Step: 1.Completeness                Q.E.D.+--   Result:                               Q.E.D.+-- Inductive lemma: encodeHeadPos+--   Step: Base                            Q.E.D.+--   Step: 1 (3 way case split)+--     Step: 1.1                           Q.E.D.+--     Step: 1.2.1                         Q.E.D.+--     Step: 1.2.2                         Q.E.D.+--     Step: 1.2.3                         Q.E.D.+--     Step: 1.3                           Q.E.D.+--     Step: 1.Completeness                Q.E.D.+--   Result:                               Q.E.D.+-- Inductive lemma (strong): rleCorrect+--   Step: Measure is non-negative         Q.E.D.+--   Step: 1 (2 way case split)+--     Step: 1.1                           Q.E.D.+--     Step: 1.2.1                         Q.E.D.+--     Step: 1.2.2                         Q.E.D.+--     Step: 1.2.3                         Q.E.D.+--     Step: 1.2.4                         Q.E.D.+--     Step: 1.Completeness                Q.E.D.+--   Result:                               Q.E.D.+-- Functions proven terminating: decode, encode, sbv.replicate+-- [Proven] rleCorrect :: Ɐxs ∷ [Integer] → Bool+correctness :: forall a. SymVal a => TP (Proof (Forall "xs" [a] -> SBool))+correctness = do++  -- Key helper: encodeCons followed by decode is the same as consing.+  -- The condition ensures the head count is positive so that+  -- replicate (n+1) unfolds correctly.+  helper <- calc "decodeEncodeCons"+                 (\(Forall @"x" (x :: SBV a)) (Forall @"ps" ps) ->+                      (null ps .|| snd (head ps) .>= 1)+                      .=> decode (encodeCons x ps) .== x .: decode ps) $+                 \x ps -> [null ps .|| snd (head ps) .>= 1]+                       |- decode (encodeCons x ps)+                       =: [pCase| ps of+                             []                       -> decode [tuple (x, 1)]+                                                      =: replicate 1 x ++ decode []+                                                      =: [x] ++ decode []+                                                      =: x .: decode []+                                                      =: qed+                             ((e, c) : ecs) | x .== e -> decode (tuple (x, c + 1) .: ecs)+                                                      =: replicate (c + 1) x ++ decode ecs+                                                      =: x .: replicate c x ++ decode ecs+                                                      =: x .: decode (tuple (e, c) .: ecs)+                                                      =: qed+                                            | True    -> decode (tuple (x, 1) .: ps)+                                                      =: x .: decode ps+                                                      =: qed+                          |]++  -- encode always produces a list whose head (if any) has count >= 1+  -- (This is needed as a precondition for helper above.)+  encPos <- induct "encodeHeadPos"+                   (\(Forall @"xs" (xs :: SList a)) ->+                        null (encode xs) .|| snd (head (encode xs)) .>= 1) $+                   \ih (x, xs) -> []+                               |- (null (encodeCons x (encode xs)) .|| snd (head (encodeCons x (encode xs))) .>= 1)+                               =: cases [ null (encode xs)        ==> trivial+                                        , sNot (null (encode xs)) .&& x .== fst (head (encode xs))+                                           ==> snd (head (encodeCons x (encode xs))) .>= 1+                                            =: snd (head (encode xs)) + 1 .>= 1+                                            ?? ih+                                            =: sTrue+                                            =: qed+                                        , sNot (null (encode xs)) .&& x ./= fst (head (encode xs))+                                           ==> trivial+                                        ]++  -- Main theorem: decode . encode == id+  sInduct "rleCorrect"+          (\(Forall xs) -> decode @a (encode xs) .== xs)+          (length @a, []) $+          \ih xs -> [] |- decode (encode xs)+                      =: [pCase| xs of+                            []             -> trivial+                            whole@(x : ys) -> decode (encode whole)+                                           =: decode (encodeCons x (encode ys))+                                           ?? helper `at` (Inst @"x" x, Inst @"ps" (encode ys))+                                           ?? encPos `at` Inst @"xs" ys+                                           =: x .: decode (encode ys)+                                           ?? ih `at` Inst @"xs" ys+                                           =: x .: ys+                                           =: qed+                         |]
Documentation/SBV/Examples/TP/ShefferStroke.hs view
@@ -11,15 +11,12 @@ -- logic), imply it is a boolean algebra. ----------------------------------------------------------------------------- -{-# LANGUAGE DataKinds            #-}-{-# LANGUAGE DeriveDataTypeable   #-}-{-# LANGUAGE DeriveAnyClass       #-}-{-# LANGUAGE FlexibleInstances    #-}-{-# LANGUAGE NamedFieldPuns       #-}-{-# LANGUAGE ScopedTypeVariables  #-}-{-# LANGUAGE StandaloneDeriving   #-}-{-# LANGUAGE TemplateHaskell      #-}-{-# LANGUAGE TypeAbstractions     #-}+{-# LANGUAGE DataKinds           #-}+{-# LANGUAGE FlexibleInstances   #-}+{-# LANGUAGE NamedFieldPuns      #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TemplateHaskell     #-}+{-# LANGUAGE TypeAbstractions    #-}  {-# OPTIONS_GHC -Wall -Werror #-} @@ -101,7 +98,7 @@  -- | The abstract type for the domain. data Stroke-mkUninterpretedSort ''Stroke+mkSymbolic [''Stroke]  -- | The sheffer stroke operator. (⏐) :: SStroke -> SStroke -> SStroke@@ -145,195 +142,195 @@ -- Axiom: a ⏐ (b ⏐ ﬧb) == ﬧa -- Axiom: ﬧ(a ⏐ (b ⏐ c)) == (ﬧb ⏐ a) ⏐ (ﬧc ⏐ a) -- Lemma: a | b = b | a---   Step: 1 (ﬧﬧa == a)                                        Q.E.D.---   Step: 2 (ﬧﬧa == a)                                        Q.E.D.---   Step: 3                                                   Q.E.D.---   Step: 4 (ﬧ(a ⏐ (b ⏐ c)) == (ﬧb ⏐ a) ⏐ (ﬧc ⏐ a))           Q.E.D.---   Step: 5                                                   Q.E.D.---   Step: 6 (ﬧﬧa == a)                                        Q.E.D.---   Step: 7 (ﬧﬧa == a)                                        Q.E.D.---   Result:                                                   Q.E.D.+--   Step: 1 (ﬧﬧa == a)                                 Q.E.D.+--   Step: 2 (ﬧﬧa == a)                                 Q.E.D.+--   Step: 3                                            Q.E.D.+--   Step: 4 (ﬧ(a ⏐ (b ⏐ c)) == (ﬧb ⏐ a) ⏐ (ﬧc ⏐ a))    Q.E.D.+--   Step: 5                                            Q.E.D.+--   Step: 6 (ﬧﬧa == a)                                 Q.E.D.+--   Step: 7 (ﬧﬧa == a)                                 Q.E.D.+--   Result:                                            Q.E.D. -- Lemma: a | a′ = b | b′---   Step: 1 (ﬧﬧa == a)                                        Q.E.D.---   Step: 2 (a ⏐ (b ⏐ ﬧb) == ﬧa)                              Q.E.D.---   Step: 3                                                   Q.E.D.---   Step: 4 (a ⏐ (b ⏐ ﬧb) == ﬧa)                              Q.E.D.---   Step: 5 (ﬧﬧa == a)                                        Q.E.D.---   Result:                                                   Q.E.D.--- Lemma: a ⊔ b = b ⊔ a                                        Q.E.D.--- Lemma: a ⊓ b = b ⊓ a                                        Q.E.D.--- Lemma: a ⊔ ⲳ = a                                            Q.E.D.--- Lemma: a ⊓ т = a                                            Q.E.D.--- Lemma: a ⊔ (b ⊓ c) = (a ⊔ b) ⊓ (a ⊔ c)                      Q.E.D.--- Lemma: a ⊓ (b ⊔ c) = (a ⊓ b) ⊔ (a ⊓ c)                      Q.E.D.--- Lemma: a ⊔ aᶜ = т                                           Q.E.D.--- Lemma: a ⊓ aᶜ = ⲳ                                           Q.E.D.+--   Step: 1 (ﬧﬧa == a)                                 Q.E.D.+--   Step: 2 (a ⏐ (b ⏐ ﬧb) == ﬧa)                       Q.E.D.+--   Step: 3                                            Q.E.D.+--   Step: 4 (a ⏐ (b ⏐ ﬧb) == ﬧa)                       Q.E.D.+--   Step: 5 (ﬧﬧa == a)                                 Q.E.D.+--   Result:                                            Q.E.D.+-- Lemma: a ⊔ b = b ⊔ a                                 Q.E.D.+-- Lemma: a ⊓ b = b ⊓ a                                 Q.E.D.+-- Lemma: a ⊔ ⲳ = a                                     Q.E.D.+-- Lemma: a ⊓ т = a                                     Q.E.D.+-- Lemma: a ⊔ (b ⊓ c) = (a ⊔ b) ⊓ (a ⊔ c)               Q.E.D.+-- Lemma: a ⊓ (b ⊔ c) = (a ⊓ b) ⊔ (a ⊓ c)               Q.E.D.+-- Lemma: a ⊔ aᶜ = т                                    Q.E.D.+-- Lemma: a ⊓ aᶜ = ⲳ                                    Q.E.D. -- Lemma: a ⊔ т = т---   Step: 1                                                   Q.E.D.---   Step: 2                                                   Q.E.D.---   Step: 3                                                   Q.E.D.---   Step: 4                                                   Q.E.D.---   Step: 5                                                   Q.E.D.---   Step: 6                                                   Q.E.D.---   Result:                                                   Q.E.D.+--   Step: 1                                            Q.E.D.+--   Step: 2                                            Q.E.D.+--   Step: 3                                            Q.E.D.+--   Step: 4                                            Q.E.D.+--   Step: 5                                            Q.E.D.+--   Step: 6                                            Q.E.D.+--   Result:                                            Q.E.D. -- Lemma: a ⊓ ⲳ = ⲳ---   Step: 1                                                   Q.E.D.---   Step: 2                                                   Q.E.D.---   Step: 3                                                   Q.E.D.---   Step: 4                                                   Q.E.D.---   Step: 5                                                   Q.E.D.---   Step: 6                                                   Q.E.D.---   Result:                                                   Q.E.D.+--   Step: 1                                            Q.E.D.+--   Step: 2                                            Q.E.D.+--   Step: 3                                            Q.E.D.+--   Step: 4                                            Q.E.D.+--   Step: 5                                            Q.E.D.+--   Step: 6                                            Q.E.D.+--   Result:                                            Q.E.D. -- Lemma: a ⊔ (a ⊓ b) = a---   Step: 1                                                   Q.E.D.---   Step: 2                                                   Q.E.D.---   Step: 3                                                   Q.E.D.---   Step: 4                                                   Q.E.D.---   Step: 5                                                   Q.E.D.---   Result:                                                   Q.E.D.+--   Step: 1                                            Q.E.D.+--   Step: 2                                            Q.E.D.+--   Step: 3                                            Q.E.D.+--   Step: 4                                            Q.E.D.+--   Step: 5                                            Q.E.D.+--   Result:                                            Q.E.D. -- Lemma: a ⊓ (a ⊔ b) = a---   Step: 1                                                   Q.E.D.---   Step: 2                                                   Q.E.D.---   Step: 3                                                   Q.E.D.---   Step: 4                                                   Q.E.D.---   Step: 5                                                   Q.E.D.---   Result:                                                   Q.E.D.+--   Step: 1                                            Q.E.D.+--   Step: 2                                            Q.E.D.+--   Step: 3                                            Q.E.D.+--   Step: 4                                            Q.E.D.+--   Step: 5                                            Q.E.D.+--   Result:                                            Q.E.D. -- Lemma: a ⊓ a = a---   Step: 1                                                   Q.E.D.---   Step: 2                                                   Q.E.D.---   Result:                                                   Q.E.D.+--   Step: 1                                            Q.E.D.+--   Step: 2                                            Q.E.D.+--   Result:                                            Q.E.D. -- Lemma: a ⊔ a' = т → a ⊓ a' = ⲳ → a' = aᶜ---   Step: 1                                                   Q.E.D.---   Step: 2                                                   Q.E.D.---   Step: 3                                                   Q.E.D.---   Step: 4                                                   Q.E.D.---   Step: 5                                                   Q.E.D.---   Step: 6                                                   Q.E.D.---   Step: 7                                                   Q.E.D.---   Step: 8                                                   Q.E.D.---   Step: 9                                                   Q.E.D.---   Step: 10                                                  Q.E.D.---   Step: 11                                                  Q.E.D.---   Result:                                                   Q.E.D.--- Lemma: aᶜᶜ = a                                              Q.E.D.--- Lemma: aᶜ = bᶜ → a = b                                      Q.E.D.--- Lemma: a ⊔ bᶜ = т → a ⊓ bᶜ = ⲳ → a = b                      Q.E.D.+--   Step: 1                                            Q.E.D.+--   Step: 2                                            Q.E.D.+--   Step: 3                                            Q.E.D.+--   Step: 4                                            Q.E.D.+--   Step: 5                                            Q.E.D.+--   Step: 6                                            Q.E.D.+--   Step: 7                                            Q.E.D.+--   Step: 8                                            Q.E.D.+--   Step: 9                                            Q.E.D.+--   Step: 10                                           Q.E.D.+--   Step: 11                                           Q.E.D.+--   Result:                                            Q.E.D.+-- Lemma: aᶜᶜ = a                                       Q.E.D.+-- Lemma: aᶜ = bᶜ → a = b                               Q.E.D.+-- Lemma: a ⊔ bᶜ = т → a ⊓ bᶜ = ⲳ → a = b               Q.E.D. -- Lemma: a ⊔ (aᶜ ⊔ b) = т---   Step: 1                                                   Q.E.D.---   Step: 2                                                   Q.E.D.---   Step: 3                                                   Q.E.D.---   Step: 4                                                   Q.E.D.---   Step: 5                                                   Q.E.D.---   Step: 6                                                   Q.E.D.---   Result:                                                   Q.E.D.+--   Step: 1                                            Q.E.D.+--   Step: 2                                            Q.E.D.+--   Step: 3                                            Q.E.D.+--   Step: 4                                            Q.E.D.+--   Step: 5                                            Q.E.D.+--   Step: 6                                            Q.E.D.+--   Result:                                            Q.E.D. -- Lemma: a ⊓ (aᶜ ⊓ b) = ⲳ---   Step: 1                                                   Q.E.D.---   Step: 2                                                   Q.E.D.---   Step: 3                                                   Q.E.D.---   Step: 4                                                   Q.E.D.---   Step: 5                                                   Q.E.D.---   Step: 6                                                   Q.E.D.---   Result:                                                   Q.E.D.--- Lemma: (a ⊔ b)ᶜ = aᶜ ⊓ bᶜ                                   Q.E.D.--- Lemma: (a ⨅ b)ᶜ = aᶜ ⨆ bᶜ                                   Q.E.D.--- Lemma: (a ⊔ (b ⊔ c)) ⊔ aᶜ = т                               Q.E.D.--- Lemma: b ⊓ (a ⊔ (b ⊔ c)) = b                                Q.E.D.--- Lemma: b ⊔ (a ⊓ (b ⊓ c)) = b                                Q.E.D.+--   Step: 1                                            Q.E.D.+--   Step: 2                                            Q.E.D.+--   Step: 3                                            Q.E.D.+--   Step: 4                                            Q.E.D.+--   Step: 5                                            Q.E.D.+--   Step: 6                                            Q.E.D.+--   Result:                                            Q.E.D.+-- Lemma: (a ⊔ b)ᶜ = aᶜ ⊓ bᶜ                            Q.E.D.+-- Lemma: (a ⨅ b)ᶜ = aᶜ ⨆ bᶜ                            Q.E.D.+-- Lemma: (a ⊔ (b ⊔ c)) ⊔ aᶜ = т                        Q.E.D.+-- Lemma: b ⊓ (a ⊔ (b ⊔ c)) = b                         Q.E.D.+-- Lemma: b ⊔ (a ⊓ (b ⊓ c)) = b                         Q.E.D. -- Lemma: (a ⊔ (b ⊔ c)) ⊔ bᶜ = т---   Step: 1                                                   Q.E.D.---   Step: 2                                                   Q.E.D.---   Step: 3                                                   Q.E.D.---   Step: 4                                                   Q.E.D.---   Step: 5                                                   Q.E.D.---   Step: 6                                                   Q.E.D.---   Step: 7                                                   Q.E.D.---   Step: 8                                                   Q.E.D.---   Step: 9                                                   Q.E.D.---   Result:                                                   Q.E.D.--- Lemma: (a ⊔ (b ⊔ c)) ⊔ cᶜ = т                               Q.E.D.+--   Step: 1                                            Q.E.D.+--   Step: 2                                            Q.E.D.+--   Step: 3                                            Q.E.D.+--   Step: 4                                            Q.E.D.+--   Step: 5                                            Q.E.D.+--   Step: 6                                            Q.E.D.+--   Step: 7                                            Q.E.D.+--   Step: 8                                            Q.E.D.+--   Step: 9                                            Q.E.D.+--   Result:                                            Q.E.D.+-- Lemma: (a ⊔ (b ⊔ c)) ⊔ cᶜ = т                        Q.E.D. -- Lemma: (a ⊔ b ⊔ c)ᶜ ⊓ a = ⲳ---   Step: 1                                                   Q.E.D.---   Step: 2                                                   Q.E.D.---   Step: 3                                                   Q.E.D.---   Step: 4                                                   Q.E.D.---   Step: 5                                                   Q.E.D.---   Step: 6                                                   Q.E.D.---   Step: 7                                                   Q.E.D.---   Step: 8                                                   Q.E.D.---   Step: 9                                                   Q.E.D.---   Result:                                                   Q.E.D.--- Lemma: (a ⊔ b ⊔ c)ᶜ ⊓ b = ⲳ                                 Q.E.D.--- Lemma: (a ⊔ b ⊔ c)ᶜ ⊓ c = ⲳ                                 Q.E.D.+--   Step: 1                                            Q.E.D.+--   Step: 2                                            Q.E.D.+--   Step: 3                                            Q.E.D.+--   Step: 4                                            Q.E.D.+--   Step: 5                                            Q.E.D.+--   Step: 6                                            Q.E.D.+--   Step: 7                                            Q.E.D.+--   Step: 8                                            Q.E.D.+--   Step: 9                                            Q.E.D.+--   Result:                                            Q.E.D.+-- Lemma: (a ⊔ b ⊔ c)ᶜ ⊓ b = ⲳ                          Q.E.D.+-- Lemma: (a ⊔ b ⊔ c)ᶜ ⊓ c = ⲳ                          Q.E.D. -- Lemma: (a ⊔ (b ⊔ c)) ⊔ ((a ⊔ b) ⊔ c)ᶜ = т---   Step: 1                                                   Q.E.D.---   Step: 2                                                   Q.E.D.---   Step: 3                                                   Q.E.D.---   Step: 4                                                   Q.E.D.---   Step: 5                                                   Q.E.D.---   Step: 6                                                   Q.E.D.---   Step: 7                                                   Q.E.D.---   Step: 8                                                   Q.E.D.---   Result:                                                   Q.E.D.+--   Step: 1                                            Q.E.D.+--   Step: 2                                            Q.E.D.+--   Step: 3                                            Q.E.D.+--   Step: 4                                            Q.E.D.+--   Step: 5                                            Q.E.D.+--   Step: 6                                            Q.E.D.+--   Step: 7                                            Q.E.D.+--   Step: 8                                            Q.E.D.+--   Result:                                            Q.E.D. -- Lemma: (a ⊔ (b ⊔ c)) ⊓ ((a ⊔ b) ⊔ c)ᶜ = ⲳ---   Step: 1                                                   Q.E.D.---   Step: 2                                                   Q.E.D.---   Step: 3                                                   Q.E.D.---   Step: 4                                                   Q.E.D.---   Step: 5                                                   Q.E.D.---   Step: 6                                                   Q.E.D.---   Step: 7                                                   Q.E.D.---   Step: 8                                                   Q.E.D.---   Step: 9                                                   Q.E.D.---   Step: 10                                                  Q.E.D.---   Step: 11                                                  Q.E.D.---   Step: 12                                                  Q.E.D.---   Result:                                                   Q.E.D.--- Lemma: a ⊔ (b ⊔ c) = (a ⊔ b) ⊔ c                            Q.E.D.+--   Step: 1                                            Q.E.D.+--   Step: 2                                            Q.E.D.+--   Step: 3                                            Q.E.D.+--   Step: 4                                            Q.E.D.+--   Step: 5                                            Q.E.D.+--   Step: 6                                            Q.E.D.+--   Step: 7                                            Q.E.D.+--   Step: 8                                            Q.E.D.+--   Step: 9                                            Q.E.D.+--   Step: 10                                           Q.E.D.+--   Step: 11                                           Q.E.D.+--   Step: 12                                           Q.E.D.+--   Result:                                            Q.E.D.+-- Lemma: a ⊔ (b ⊔ c) = (a ⊔ b) ⊔ c                     Q.E.D. -- Lemma: a ⊓ (b ⊓ c) = (a ⊓ b) ⊓ c---   Step: 1                                                   Q.E.D.---   Step: 2                                                   Q.E.D.---   Step: 3                                                   Q.E.D.---   Result:                                                   Q.E.D.+--   Step: 1                                            Q.E.D.+--   Step: 2                                            Q.E.D.+--   Step: 3                                            Q.E.D.+--   Result:                                            Q.E.D. -- Lemma: a ≤ b → b ≤ a → a = b---   Step: 1                                                   Q.E.D.---   Step: 2                                                   Q.E.D.---   Step: 3                                                   Q.E.D.---   Result:                                                   Q.E.D.--- Lemma: a ≤ a                                                Q.E.D.+--   Step: 1                                            Q.E.D.+--   Step: 2                                            Q.E.D.+--   Step: 3                                            Q.E.D.+--   Result:                                            Q.E.D.+-- Lemma: a ≤ a                                         Q.E.D. -- Lemma: a ≤ b → b ≤ c → a ≤ c---   Step: 1                                                   Q.E.D.---   Step: 2                                                   Q.E.D.---   Step: 3                                                   Q.E.D.---   Step: 4                                                   Q.E.D.---   Result:                                                   Q.E.D.--- Lemma: a < b ↔ a ≤ b ∧ ¬b ≤ a                               Q.E.D.--- Lemma: a ≤ a ⊔ b                                            Q.E.D.--- Lemma: b ≤ a ⊔ b                                            Q.E.D.+--   Step: 1                                            Q.E.D.+--   Step: 2                                            Q.E.D.+--   Step: 3                                            Q.E.D.+--   Step: 4                                            Q.E.D.+--   Result:                                            Q.E.D.+-- Lemma: a < b ↔ a ≤ b ∧ ¬b ≤ a                        Q.E.D.+-- Lemma: a ≤ a ⊔ b                                     Q.E.D.+-- Lemma: b ≤ a ⊔ b                                     Q.E.D. -- Lemma: a ≤ c → b ≤ c → a ⊔ b ≤ c---   Step: 1                                                   Q.E.D.---   Step: 2                                                   Q.E.D.---   Result:                                                   Q.E.D.--- Lemma: a ⊓ b ≤ a                                            Q.E.D.--- Lemma: a ⊓ b ≤ b                                            Q.E.D.+--   Step: 1                                            Q.E.D.+--   Step: 2                                            Q.E.D.+--   Result:                                            Q.E.D.+-- Lemma: a ⊓ b ≤ a                                     Q.E.D.+-- Lemma: a ⊓ b ≤ b                                     Q.E.D. -- Lemma: a ≤ b → a ≤ c → a ≤ b ⊓ c---   Step: 1                                                   Q.E.D.---   Step: 2                                                   Q.E.D.---   Step: 3                                                   Q.E.D.---   Result:                                                   Q.E.D.--- Lemma: (x ⊔ y) ⊓ (x ⊔ z) ≤ x ⊔ y ⊓ z                        Q.E.D.--- Lemma: x ⊓ xᶜ ≤ ⊥                                           Q.E.D.--- Lemma: ⊤ ≤ x ⊔ xᶜ                                           Q.E.D.+--   Step: 1                                            Q.E.D.+--   Step: 2                                            Q.E.D.+--   Step: 3                                            Q.E.D.+--   Result:                                            Q.E.D.+-- Lemma: (x ⊔ y) ⊓ (x ⊔ z) ≤ x ⊔ y ⊓ z                 Q.E.D.+-- Lemma: x ⊓ xᶜ ≤ ⊥                                    Q.E.D.+-- Lemma: ⊤ ≤ x ⊔ xᶜ                                    Q.E.D. -- Lemma: a ≤ ⊤---   Step: 1                                                   Q.E.D.---   Step: 2                                                   Q.E.D.---   Step: 3                                                   Q.E.D.---   Result:                                                   Q.E.D.+--   Step: 1                                            Q.E.D.+--   Step: 2                                            Q.E.D.+--   Step: 3                                            Q.E.D.+--   Result:                                            Q.E.D. -- Lemma: ⊥ ≤ a---   Step: 1                                                   Q.E.D.---   Step: 2                                                   Q.E.D.---   Result:                                                   Q.E.D.--- Lemma: x \ y = x ⊓ yᶜ                                       Q.E.D.--- Lemma: x ⇨ y = y ⊔ xᶜ                                       Q.E.D.+--   Step: 1                                            Q.E.D.+--   Step: 2                                            Q.E.D.+--   Result:                                            Q.E.D.+-- Lemma: x \ y = x ⊓ yᶜ                                Q.E.D.+-- Lemma: x ⇨ y = y ⊔ xᶜ                                Q.E.D. -- BooleanAlgebraProof { --   le_refl         : [Proven] a ≤ a :: Ɐa ∷ Stroke → Bool --   le_trans        : [Proven] a ≤ b → b ≤ c → a ≤ c :: Ɐa ∷ Stroke → Ɐb ∷ Stroke → Ɐc ∷ Stroke → Bool@@ -354,7 +351,7 @@ --   himp_eq         : [Proven] x ⇨ y = y ⊔ xᶜ :: Ɐx ∷ Stroke → Ɐy ∷ Stroke → Bool -- } shefferBooleanAlgebra :: IO BooleanAlgebraProof-shefferBooleanAlgebra = runTPWith (tpRibbon 60 z3) $ do+shefferBooleanAlgebra = runTP $ do    -- shorthand   let p = proofOf
Documentation/SBV/Examples/TP/SortHelpers.hs view
@@ -12,20 +12,21 @@ {-# LANGUAGE CPP                 #-} {-# LANGUAGE DataKinds           #-} {-# LANGUAGE FlexibleContexts    #-}+{-# LANGUAGE QuasiQuotes         #-}+{-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TypeAbstractions    #-} {-# LANGUAGE TypeApplications    #-}-{-# LANGUAGE ScopedTypeVariables #-}  {-# OPTIONS_GHC -Wall -Werror #-}  module Documentation.SBV.Examples.TP.SortHelpers where -import Prelude hiding (null, tail, elem, head, (++), take, drop)+import Prelude hiding (null, length, tail, elem, head, (++), take, drop)  import Data.SBV import Data.SBV.List import Data.SBV.TP-import Data.SBV.TP.List+import Documentation.SBV.Examples.TP.Lists  #ifdef DOCTEST -- $setup@@ -35,10 +36,12 @@  -- | A predicate testing whether a given list is non-decreasing. nonDecreasing :: (OrdSymbolic (SBV a), SymVal a) => SList a -> SBool-nonDecreasing = smtFunction "nonDecreasing" $ \l ->  null l .|| null (tail l)-                                                 .|| let (x, l') = uncons l-                                                         (y, _)  = uncons l'-                                                     in x .<= y .&& nonDecreasing l'+nonDecreasing = smtFunction "nonDecreasing"+              $ \l -> [sCase| l of+                         []  -> sTrue+                         [_] -> sTrue+                         x : rest@(y : _) -> x .<= y .&& nonDecreasing rest+                      |]  -- | Are two lists permutations of each other? isPermutation :: SymVal a => SList a -> SList a -> SBool@@ -47,7 +50,8 @@ -- | The tail of a non-decreasing list is non-decreasing. We have: -- -- >>> runTP $ nonDecrTail @Integer--- Lemma: nonDecrTail                      Q.E.D.+-- Lemma: nonDecrTail    Q.E.D.+-- Functions proven terminating: nonDecreasing -- [Proven] nonDecrTail :: Ɐx ∷ Integer → Ɐxs ∷ [Integer] → Bool nonDecrTail :: forall a. (OrdSymbolic (SBV a), SymVal a) => TP (Proof (Forall "x" a -> Forall "xs" [a] -> SBool)) nonDecrTail = lemma "nonDecrTail"@@ -57,7 +61,8 @@ -- | If we insert an element that is less than the head of a nonDecreasing list, it remains nondecreasing. We have: -- -- >>> runTP $ nonDecrIns @Integer--- Lemma: nonDecrInsert                    Q.E.D.+-- Lemma: nonDecrInsert    Q.E.D.+-- Functions proven terminating: nonDecreasing -- [Proven] nonDecrInsert :: Ɐx ∷ Integer → Ɐxs ∷ [Integer] → Bool nonDecrIns :: forall a. (OrdSymbolic (SBV a), SymVal a) => TP (Proof (Forall "x" a -> Forall "xs" [a] -> SBool)) nonDecrIns = lemma "nonDecrInsert"@@ -72,34 +77,35 @@ -- -- >>> runTP $ sublistCorrect @Integer -- Inductive lemma: countNonNeg---   Step: Base                            Q.E.D.+--   Step: Base                    Q.E.D. --   Step: 1 (2 way case split)---     Step: 1.1.1                         Q.E.D.---     Step: 1.1.2                         Q.E.D.---     Step: 1.2.1                         Q.E.D.---     Step: 1.2.2                         Q.E.D.---     Step: 1.Completeness                Q.E.D.---   Result:                               Q.E.D.+--     Step: 1.1.1                 Q.E.D.+--     Step: 1.1.2                 Q.E.D.+--     Step: 1.2.1                 Q.E.D.+--     Step: 1.2.2                 Q.E.D.+--     Step: 1.Completeness        Q.E.D.+--   Result:                       Q.E.D. -- Inductive lemma: countElem---   Step: Base                            Q.E.D.+--   Step: Base                    Q.E.D. --   Step: 1 (2 way case split)---     Step: 1.1.1                         Q.E.D.---     Step: 1.1.2                         Q.E.D.---     Step: 1.2.1                         Q.E.D.---     Step: 1.2.2                         Q.E.D.---     Step: 1.Completeness                Q.E.D.---   Result:                               Q.E.D.+--     Step: 1.1.1                 Q.E.D.+--     Step: 1.1.2                 Q.E.D.+--     Step: 1.2.1                 Q.E.D.+--     Step: 1.2.2                 Q.E.D.+--     Step: 1.Completeness        Q.E.D.+--   Result:                       Q.E.D. -- Inductive lemma: elemCount---   Step: Base                            Q.E.D.+--   Step: Base                    Q.E.D. --   Step: 1 (2 way case split)---     Step: 1.1                           Q.E.D.---     Step: 1.2.1                         Q.E.D.---     Step: 1.2.2                         Q.E.D.---     Step: 1.Completeness                Q.E.D.---   Result:                               Q.E.D.+--     Step: 1.1                   Q.E.D.+--     Step: 1.2.1                 Q.E.D.+--     Step: 1.2.2                 Q.E.D.+--     Step: 1.Completeness        Q.E.D.+--   Result:                       Q.E.D. -- Lemma: sublistCorrect---   Step: 1                               Q.E.D.---   Result:                               Q.E.D.+--   Step: 1                       Q.E.D.+--   Result:                       Q.E.D.+-- Functions proven terminating: count -- [Proven] sublistCorrect :: Ɐxs ∷ [Integer] → Ɐys ∷ [Integer] → Ɐx ∷ Integer → Bool sublistCorrect :: forall a. (Eq a, SymVal a) => TP (Proof (Forall "xs" [a] -> Forall "ys" [a] -> Forall "x" a -> SBool)) sublistCorrect = do@@ -120,37 +126,38 @@ -- -- >>> runTP $ sublistElem @Integer -- Inductive lemma: countNonNeg---   Step: Base                            Q.E.D.+--   Step: Base                    Q.E.D. --   Step: 1 (2 way case split)---     Step: 1.1.1                         Q.E.D.---     Step: 1.1.2                         Q.E.D.---     Step: 1.2.1                         Q.E.D.---     Step: 1.2.2                         Q.E.D.---     Step: 1.Completeness                Q.E.D.---   Result:                               Q.E.D.+--     Step: 1.1.1                 Q.E.D.+--     Step: 1.1.2                 Q.E.D.+--     Step: 1.2.1                 Q.E.D.+--     Step: 1.2.2                 Q.E.D.+--     Step: 1.Completeness        Q.E.D.+--   Result:                       Q.E.D. -- Inductive lemma: countElem---   Step: Base                            Q.E.D.+--   Step: Base                    Q.E.D. --   Step: 1 (2 way case split)---     Step: 1.1.1                         Q.E.D.---     Step: 1.1.2                         Q.E.D.---     Step: 1.2.1                         Q.E.D.---     Step: 1.2.2                         Q.E.D.---     Step: 1.Completeness                Q.E.D.---   Result:                               Q.E.D.+--     Step: 1.1.1                 Q.E.D.+--     Step: 1.1.2                 Q.E.D.+--     Step: 1.2.1                 Q.E.D.+--     Step: 1.2.2                 Q.E.D.+--     Step: 1.Completeness        Q.E.D.+--   Result:                       Q.E.D. -- Inductive lemma: elemCount---   Step: Base                            Q.E.D.+--   Step: Base                    Q.E.D. --   Step: 1 (2 way case split)---     Step: 1.1                           Q.E.D.---     Step: 1.2.1                         Q.E.D.---     Step: 1.2.2                         Q.E.D.---     Step: 1.Completeness                Q.E.D.---   Result:                               Q.E.D.+--     Step: 1.1                   Q.E.D.+--     Step: 1.2.1                 Q.E.D.+--     Step: 1.2.2                 Q.E.D.+--     Step: 1.Completeness        Q.E.D.+--   Result:                       Q.E.D. -- Lemma: sublistCorrect---   Step: 1                               Q.E.D.---   Result:                               Q.E.D.+--   Step: 1                       Q.E.D.+--   Result:                       Q.E.D. -- Lemma: sublistElem---   Step: 1                               Q.E.D.---   Result:                               Q.E.D.+--   Step: 1                       Q.E.D.+--   Result:                       Q.E.D.+-- Functions proven terminating: count -- [Proven] sublistElem :: Ɐx ∷ Integer → Ɐxs ∷ [Integer] → Ɐys ∷ [Integer] → Bool sublistElem :: forall a. (Eq a, SymVal a) => TP (Proof (Forall "x" a -> Forall "xs" [a] -> Forall "ys" [a] -> SBool)) sublistElem = do@@ -167,7 +174,8 @@ -- | If one list is a sublist of another so is its tail. We have: -- -- >>> runTP $ sublistTail @Integer--- Lemma: sublistTail                      Q.E.D.+-- Lemma: sublistTail    Q.E.D.+-- Functions proven terminating: count -- [Proven] sublistTail :: Ɐx ∷ Integer → Ɐxs ∷ [Integer] → Ɐys ∷ [Integer] → Bool sublistTail :: forall a. (Eq a, SymVal a) => TP (Proof (Forall "x" a -> Forall "xs" [a] -> Forall "ys" [a] -> SBool)) sublistTail =@@ -178,7 +186,8 @@ -- | Permutation implies sublist. We have: -- -- >>> runTP $ sublistIfPerm @Integer--- Lemma: sublistIfPerm                    Q.E.D.+-- Lemma: sublistIfPerm    Q.E.D.+-- Functions proven terminating: count -- [Proven] sublistIfPerm :: Ɐxs ∷ [Integer] → Ɐys ∷ [Integer] → Bool sublistIfPerm :: forall a. (Eq a, SymVal a) => TP (Proof (Forall "xs" [a] -> Forall "ys" [a] -> SBool)) sublistIfPerm = lemma "sublistIfPerm"
Documentation/SBV/Examples/TP/Sqrt2IsIrrational.hs view
@@ -9,9 +9,8 @@ -- Prove that square-root of 2 is irrational. ----------------------------------------------------------------------------- -{-# LANGUAGE DataKinds           #-}-{-# LANGUAGE ScopedTypeVariables #-}-{-# LANGUAGE TypeAbstractions    #-}+{-# LANGUAGE DataKinds        #-}+{-# LANGUAGE TypeAbstractions #-}  {-# OPTIONS_GHC -Wall -Werror #-} @@ -49,15 +48,15 @@ -- -- >>> sqrt2IsIrrational -- Lemma: oddSquaredIsOdd---   Step: 1                               Q.E.D.---   Step: 2 (expand square)               Q.E.D.---   Result:                               Q.E.D.--- Lemma: squareEvenImpliesEven            Q.E.D.+--   Step: 1                       Q.E.D.+--   Step: 2 (expand square)       Q.E.D.+--   Result:                       Q.E.D.+-- Lemma: squareEvenImpliesEven    Q.E.D. -- Lemma: evenSquaredIsMult4---   Step: 1                               Q.E.D.---   Step: 2 (expand square)               Q.E.D.---   Result:                               Q.E.D.--- Lemma: sqrt2IsIrrational                Q.E.D.+--   Step: 1                       Q.E.D.+--   Step: 2 (expand square)       Q.E.D.+--   Result:                       Q.E.D.+-- Lemma: sqrt2IsIrrational        Q.E.D. -- [Proven] sqrt2IsIrrational :: Bool sqrt2IsIrrational :: IO (Proof SBool) sqrt2IsIrrational = runTP $ do@@ -84,7 +83,7 @@                                            =: 4*k*k + 4*k + 1                                            =: qed -    -- Prove that if a perfect square is even, then it be the square of an even number. For z3, the above proof+    -- Prove that if a perfect square is even, then it has to be the square of an even number. For z3, the above proof     -- is enough to establish this.     squareEvenImpliesEven <- lemma "squareEvenImpliesEven"                                    (\(Forall @"a" a) -> even (sq a) .=> even a)
Documentation/SBV/Examples/TP/StrongInduction.hs view
@@ -11,6 +11,7 @@  {-# LANGUAGE CPP                 #-} {-# LANGUAGE DataKinds           #-}+{-# LANGUAGE QuasiQuotes         #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TypeAbstractions    #-} {-# LANGUAGE TypeApplications    #-}@@ -39,29 +40,33 @@ -- -- >>> oddSequence1 -- Inductive lemma (strong): oddSequence1---   Step: Measure is non-negative         Q.E.D.+--   Step: Measure is non-negative           Q.E.D. --   Step: 1 (3 way case split)---     Step: 1.1                           Q.E.D.---     Step: 1.2                           Q.E.D.---     Step: 1.3.1                         Q.E.D.---     Step: 1.3.2                         Q.E.D.---     Step: 1.3.3                         Q.E.D.---     Step: 1.Completeness                Q.E.D.---   Result:                               Q.E.D.+--     Step: 1.1                             Q.E.D.+--     Step: 1.2                             Q.E.D.+--     Step: 1.3.1                           Q.E.D.+--     Step: 1.3.2                           Q.E.D.+--     Step: 1.3.3                           Q.E.D.+--     Step: 1.Completeness                  Q.E.D.+--   Result:                                 Q.E.D.+-- Functions proven terminating: seq -- [Proven] oddSequence1 :: Ɐn ∷ Integer → Bool oddSequence1 :: IO (Proof (Forall "n" Integer -> SBool)) oddSequence1 = runTP $ do   let s :: SInteger -> SInteger-      s = smtFunction "seq" $ \n -> ite (n .<= 0) 1-                                  $ ite (n .== 1) 3-                                  $ s (n-2) + 2 * s (n-1)+      s = smtFunction "seq"+        $ \n -> [sCase| n of+                   _ | n .<= 0 -> 1+                   _ | n .== 1 -> 3+                   _           -> s (n-2) + 2 * s (n-1)+                |]    -- z3 can't handle this, but CVC5 is proves it just fine.   -- Note also that we do a "proof-by-contradiction," by deriving that   -- the negation of the goal leads to falsehood.   sInductWith cvc5 "oddSequence1"           (\(Forall n) -> n .>= 0 .=> sNot (2 `sDivides` s n))-          abs $+          (abs, []) $           \ih n -> [n .>= 0] |- 2 `sDivides` s n                              =: cases [ n .== 0 ==> contradiction                                       , n .== 1 ==> contradiction@@ -76,39 +81,43 @@ -- We have: -- -- >>> oddSequence2--- Lemma: oddSequence_0                              Q.E.D.--- Lemma: oddSequence_1                              Q.E.D.+-- Lemma: oddSequence_0                          Q.E.D.+-- Lemma: oddSequence_1                          Q.E.D. -- Inductive lemma (strong): oddSequence_sNp2---   Step: Measure is non-negative                   Q.E.D.---   Step: 1                                         Q.E.D.---   Step: 2                                         Q.E.D.---   Step: 3 (simplify)                              Q.E.D.---   Step: 4                                         Q.E.D.---   Step: 5 (simplify)                              Q.E.D.---   Step: 6                                         Q.E.D.---   Result:                                         Q.E.D.+--   Step: Measure is non-negative               Q.E.D.+--   Step: 1                                     Q.E.D.+--   Step: 2                                     Q.E.D.+--   Step: 3 (simplify)                          Q.E.D.+--   Step: 4                                     Q.E.D.+--   Step: 5 (simplify)                          Q.E.D.+--   Step: 6                                     Q.E.D.+--   Result:                                     Q.E.D. -- Lemma: oddSequence2 --   Step: 1 (3 way case split)---     Step: 1.1                                     Q.E.D.---     Step: 1.2                                     Q.E.D.---     Step: 1.3.1                                   Q.E.D.---     Step: 1.3.2                                   Q.E.D.---     Step: 1.Completeness                          Q.E.D.---   Result:                                         Q.E.D.+--     Step: 1.1                                 Q.E.D.+--     Step: 1.2                                 Q.E.D.+--     Step: 1.3.1                               Q.E.D.+--     Step: 1.3.2                               Q.E.D.+--     Step: 1.Completeness                      Q.E.D.+--   Result:                                     Q.E.D.+-- Functions proven terminating: seq -- [Proven] oddSequence2 :: Ɐn ∷ Integer → Bool oddSequence2 :: IO (Proof (Forall "n" Integer -> SBool))-oddSequence2 = runTPWith (tpRibbon 50 z3) $ do+oddSequence2 = runTP $ do   let s :: SInteger -> SInteger-      s = smtFunction "seq" $ \n -> ite (n .<= 0) 1-                                  $ ite (n .== 1) 3-                                  $ 2 * s (n-1) - s (n-2)+      s = smtFunction "seq"+        $ \n -> [sCase| n of+                   _ | n .<= 0 -> 1+                   _ | n .== 1 -> 3+                   _           -> 2 * s (n-1) - s (n-2)+                |]    s0 <- lemma "oddSequence_0" (s 0 .== 1) []   s1 <- lemma "oddSequence_1" (s 1 .== 3) []    sNp2 <- sInduct "oddSequence_sNp2"                   (\(Forall n) -> n .>= 2 .=> s n .== 2 * n + 1)-                  abs $+                  (abs, []) $                   \ih n -> [n .>= 2] |- s n                                      =: 2 * s (n-1) - s (n-2)                                      ?? ih `at` Inst @"n" (n-1)@@ -149,12 +158,16 @@ won'tProve1 :: IO () won'tProve1 = runTP $ do    let len :: SList Integer -> SInteger-       len = smtFunction "len" $ \xs -> ite (null xs) 0 (1 + len (tail xs))+       len = smtFunction "len"+           $ \xs -> [sCase| xs of+                       []     -> 0+                       _ : as -> 1 + len as+                    |]     -- Run it for 5 seconds, as otherwise z3 will hang as it can't prove make the inductive step    _ <- sInductWith z3{extraArgs = ["-t:5000"]} "lengthGood"                 (\(Forall xs) -> len xs .== length xs)-                length $+                (length, []) $                 \ih xs -> [] |- len xs                              -- incorrectly instantiate the IH at xs!                              ?? ih `at` Inst @"xs" xs@@ -167,7 +180,7 @@ -- -- >>> won'tProve2 `catch` (\(_ :: SomeException) -> pure ()) -- Inductive lemma (strong): badLength---   Step: Measure is non-negative         Q.E.D.+--   Step: Measure is non-negative        Q.E.D. --   Step: 1 -- *** Failed to prove badLength.1. -- Falsifiable. Counter-example:@@ -175,15 +188,15 @@ won'tProve2 :: IO () won'tProve2 = runTP $ do    let len :: SList Integer -> SInteger-       len = smtFunction "badLength" $ \xs -> ite (null xs)-                                                  123-                                                  (ite (null xs)-                                                       0-                                                       (1 + len (tail xs)))+       len = smtFunction "badLength"+           $ \xs -> [sCase| xs of+                       []     -> 123+                       _ : as -> 1 + len as+                    |]     _ <- sInduct "badLength"                 (\(Forall xs) -> len xs .== length xs)-                length $+                (length, []) $                 \ih xs -> [] |- len xs                              ?? ih `at` Inst @"xs" xs                              =: length xs@@ -204,7 +217,7 @@ won'tProve3 = runTP $ do    _ <- sInduct "badMeasure"                 (\(Forall @"x" (x :: SInteger)) -> x .== x)-                id $+                (id, []) $                 \_ih x -> [] |- x                              =: x                              =: qed@@ -229,13 +242,17 @@     let -- a bizarre (but valid!) way to sum two integers        weirdSum :: SInteger -> SInteger -> SInteger-       weirdSum = smtFunction "weirdSum" (\x y -> ite (x .<= 0) y (weirdSum (x - 1) (y + 1)))+       weirdSum = smtFunction "weirdSum"+                $ \x y -> [sCase| x of+                              _ | x .<= 0 -> y+                              _           -> weirdSum (x - 1) (y + 1)+                           |]     _ <- sInductWith z3{extraArgs = ["-t:5000"]} "badMeasure"                 (\(Forall x) (Forall y) -> x .>= 0 .=> weirdSum x y .== x + y)                 -- This measure is not good, since it remains the same. Note that we do not get a                 -- failure, but the proof will never converge either; so we put a time bound-                (\x y -> abs x + abs y) $+                (\x y -> abs x + abs y, []) $                 \ih x y -> [x .>= 0] |- ite (x .<= 0) y (weirdSum (x - 1) (y + 1))                                      =: cases [ x .<= 0 ==> trivial                                               , x .>  0 ==> weirdSum (x - 1) (y + 1)@@ -254,33 +271,37 @@ -- -- >>> sumHalves -- Inductive lemma: sumAppend---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Result:                               Q.E.D.+--   Step: Base                           Q.E.D.+--   Step: 1                              Q.E.D.+--   Step: 2                              Q.E.D.+--   Step: 3                              Q.E.D.+--   Result:                              Q.E.D. -- Inductive lemma (strong): sumHalves---   Step: Measure is non-negative         Q.E.D.---   Step: 1 (2 way full case split)---     Step: 1.1                           Q.E.D.---     Step: 1.2 (2 way full case split)---       Step: 1.2.1                       Q.E.D.---       Step: 1.2.2.1                     Q.E.D.---       Step: 1.2.2.2                     Q.E.D.---       Step: 1.2.2.3                     Q.E.D.---       Step: 1.2.2.4                     Q.E.D.---       Step: 1.2.2.5                     Q.E.D.---       Step: 1.2.2.6 (simplify)          Q.E.D.---   Result:                               Q.E.D.+--   Step: Measure is non-negative        Q.E.D.+--   Step: 1 (3 way case split)+--     Step: 1.1                          Q.E.D.+--     Step: 1.2                          Q.E.D.+--     Step: 1.3.1                        Q.E.D.+--     Step: 1.3.2                        Q.E.D.+--     Step: 1.3.3                        Q.E.D.+--     Step: 1.3.4                        Q.E.D.+--     Step: 1.3.5                        Q.E.D.+--     Step: 1.3.6 (simplify)             Q.E.D.+--     Step: 1.Completeness               Q.E.D.+--   Result:                              Q.E.D.+-- Functions proven terminating: halvingSum, sbv.foldr -- [Proven] sumHalves :: Ɐxs ∷ [Integer] → Bool sumHalves :: IO (Proof (Forall "xs" [Integer] -> SBool)) sumHalves = runTP $ do      let halvingSum :: SList Integer -> SInteger-        halvingSum = smtFunction "halvingSum" $ \xs -> ite (null xs .|| null (tail xs))-                                                           (sum xs)-                                                           (let (f, s) = splitAt (length xs `sDiv` 2) xs-                                                            in halvingSum f + halvingSum s)+        halvingSum = smtFunction "halvingSum"+                   $ \xs -> [sCase| xs of+                                []  -> sum xs+                                [_] -> sum xs+                                _   -> let (f, s) = splitAt (length xs `sDiv` 2) xs+                                       in halvingSum f + halvingSum s+                            |]      helper <- induct "sumAppend"                      (\(Forall xs) (Forall ys) -> sum (xs ++ ys) .== sum xs + sum ys) $@@ -294,19 +315,22 @@     -- Use strong induction to prove the theorem. CVC5 solves this with ease, but z3 struggles.     sInductWith cvc5 "sumHalves"       (\(Forall xs) -> halvingSum xs .== sum xs)-      length $+      (length, []) $       \ih xs -> [] |- halvingSum xs-                   =: split xs qed-                            (\a as -> split as qed-                                            (\b bs -> halvingSum (a .: b .: bs)-                                                   =: let (f, s) = splitAt (length (a .: b .: bs) `sDiv` 2) (a .: b .: bs)-                                                   in halvingSum f + halvingSum s-                                                   ?? ih `at` Inst @"xs" f-                                                   =: sum f + halvingSum s-                                                   ?? ih `at` Inst @"xs" s-                                                   =: sum f + sum s-                                                   ?? helper `at` (Inst @"xs" f, Inst @"ys" s)-                                                   =: sum (f ++ s)-                                                   ?? "simplify"-                                                   =: sum (a .: b .: bs)-                                                   =: qed))+                   =: [pCase| xs of+                        []                -> qed+                        [_]               -> qed+                        whole@(_ : _ : _) ->+                             halvingSum whole+                          =: let (f, s) = splitAt (length whole `sDiv` 2) whole+                          in halvingSum f + halvingSum s+                          ?? ih `at` Inst @"xs" f+                          =: sum f + halvingSum s+                          ?? ih `at` Inst @"xs" s+                          =: sum f + sum s+                          ?? helper `at` (Inst @"xs" f, Inst @"ys" s)+                          =: sum (f ++ s)+                          ?? "simplify"+                          =: sum whole+                          =: qed+                      |]
Documentation/SBV/Examples/TP/SumReverse.hs view
@@ -13,7 +13,6 @@ {-# LANGUAGE DataKinds           #-} {-# LANGUAGE FlexibleContexts    #-} {-# LANGUAGE ScopedTypeVariables #-}-{-# LANGUAGE TypeAbstractions    #-} {-# LANGUAGE TypeApplications    #-} {-# LANGUAGE OverloadedLists     #-} @@ -38,21 +37,22 @@ -- -- >>> revSum @Integer -- Inductive lemma: sumAppend---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4 (associativity)               Q.E.D.---   Step: 5                               Q.E.D.---   Result:                               Q.E.D.+--   Step: Base                   Q.E.D.+--   Step: 1                      Q.E.D.+--   Step: 2                      Q.E.D.+--   Step: 3                      Q.E.D.+--   Step: 4 (associativity)      Q.E.D.+--   Step: 5                      Q.E.D.+--   Result:                      Q.E.D. -- Inductive lemma: sumReverse---   Step: Base                            Q.E.D.---   Step: 1                               Q.E.D.---   Step: 2                               Q.E.D.---   Step: 3                               Q.E.D.---   Step: 4 (commutativity)               Q.E.D.---   Step: 5                               Q.E.D.---   Result:                               Q.E.D.+--   Step: Base                   Q.E.D.+--   Step: 1                      Q.E.D.+--   Step: 2                      Q.E.D.+--   Step: 3                      Q.E.D.+--   Step: 4 (commutativity)      Q.E.D.+--   Step: 5                      Q.E.D.+--   Result:                      Q.E.D.+-- Functions proven terminating: sbv.foldr, sbv.reverse -- [Proven] sumReverse :: Ɐxs ∷ [Integer] → Bool revSum :: forall a. (SymVal a, Num (SBV a)) => IO (Proof (Forall "xs" [a] -> SBool)) revSum = runTP $ do
Documentation/SBV/Examples/TP/Tao.hs view
@@ -18,12 +18,7 @@   {-# LANGUAGE CPP                 #-}-{-# LANGUAGE DeriveAnyClass      #-}-{-# LANGUAGE DeriveDataTypeable  #-}-{-# LANGUAGE DataKinds           #-}-{-# LANGUAGE TypeAbstractions    #-} {-# LANGUAGE ScopedTypeVariables #-}-{-# LANGUAGE StandaloneDeriving  #-} {-# LANGUAGE TemplateHaskell     #-}  {-# OPTIONS_GHC -Wall -Werror #-}@@ -41,7 +36,7 @@  -- | Create an uninterpreted type to do the proofs over. data T-mkUninterpretedSort ''T+mkSymbolic [''T]  -- | Prove that: --@@ -54,7 +49,7 @@ -- We have: -- -- >>> tao @T (uninterpret "op")--- Lemma: tao                              Q.E.D.+-- Lemma: tao          Q.E.D. -- [Proven] tao :: Bool tao :: forall a. SymVal a => (SBV a -> SBV a -> SBV a) -> IO (Proof SBool) tao op = runTP $
+ Documentation/SBV/Examples/TP/TautologyChecker.hs view
@@ -0,0 +1,1124 @@+-----------------------------------------------------------------------------+-- |+-- Module    : Documentation.SBV.Examples.TP.TautologyChecker+-- Copyright : (c) Levent Erkok+-- License   : BSD3+-- Maintainer: erkokl@gmail.com+-- Stability : experimental+--+-- A verified tautology checker (unordered BDD-style SAT solver) in SBV.+-- This is a port of the Imandra proof by Grant Passmore, originally+-- inspired by Boyer-Moore '79.+-- See <https://raw.githubusercontent.com/imandra-ai/imandrax-examples/refs/heads/main/src/tautology.iml>+--+-- We define a simple formula type with If-then-else, normalize formulas into a canonical form, and prove+-- both soundness and completeness of the tautology checker. The canonical form is essentially an+-- unordered-BDD, making it easy to evaluate it.+-----------------------------------------------------------------------------++{-# LANGUAGE CPP               #-}+{-# LANGUAGE DataKinds         #-}+{-# LANGUAGE FlexibleInstances #-}+{-# LANGUAGE OverloadedLists   #-}+{-# LANGUAGE QuasiQuotes       #-}+{-# LANGUAGE TemplateHaskell   #-}+{-# LANGUAGE TypeAbstractions  #-}+{-# LANGUAGE TypeApplications  #-}++{-# OPTIONS_GHC -Wall -Werror #-}++module Documentation.SBV.Examples.TP.TautologyChecker where++import Prelude hiding (null, tail, head, (++))++import Data.SBV+import Data.SBV.List+import Data.SBV.TP+import Data.SBV.Tuple++#ifdef DOCTEST+-- $setup+-- >>> import Data.SBV+-- >>> import Data.SBV.TP+#endif++-- * Formula representation++-- | A propositional formula with variables and if-then-else.+data Formula = FTrue+             | FFalse+             | Var { fVar   :: Integer }+             | If  { ifCond :: Formula+                   , ifThen :: Formula+                   , ifElse :: Formula+                   }++-- | Make formulas symbolic.+mkSymbolic [''Formula]++-- * Measuring formulas++-- | Depth of nested If constructors in the condition position.+ifDepth :: SFormula -> SInteger+ifDepth = smtFunction "ifDepth"+        $ \f -> [sCase| f of+                   If c _ _ -> 1 + ifDepth c+                   _        -> 0+                |]++-- | \(\mathit{ifDepth}(f) \geq 0\)+--+-- >>> runTP ifDepthNonNeg+-- Lemma: ifDepthNonNeg    Q.E.D.+-- Functions proven terminating: ifDepth+-- [Proven] ifDepthNonNeg :: Ɐf ∷ Formula → Bool+ifDepthNonNeg :: TP (Proof (Forall "f" Formula -> SBool))+ifDepthNonNeg = inductiveLemma "ifDepthNonNeg" (\(Forall f) -> ifDepth f .>= 0) []++-- | Complexity of a formula (for termination measure).+ifComplexity :: SFormula -> SInteger+ifComplexity = smtFunction "ifComplexity"+             $ \f -> [sCase| f of+                        If c l r -> ifComplexity c * (ifComplexity l + ifComplexity r)+                        _        -> 1+                     |]++-- | \(\mathit{ifComplexity}(f) > 0\)+--+-- >>> runTP ifComplexityPos+-- Lemma: ifComplexityPos    Q.E.D.+-- Functions proven terminating: ifComplexity+-- [Proven] ifComplexityPos :: Ɐf ∷ Formula → Bool+ifComplexityPos :: TP (Proof (Forall "f" Formula -> SBool))+ifComplexityPos = inductiveLemma "ifComplexityPos" (\(Forall f) -> ifComplexity f .> 0) []++-- | The branches of an If have smaller complexity than the whole.+--+-- \(\mathit{ifComplexity}(c) < \mathit{ifComplexity}(\mathit{If}(c, l, r)) \land \mathit{ifComplexity}(l) < \mathit{ifComplexity}(\mathit{If}(c, l, r)) \land \mathit{ifComplexity}(r) < \mathit{ifComplexity}(\mathit{If}(c, l, r))\)+--+-- >>> runTP ifComplexitySmaller+-- Lemma: ifComplexityPos        Q.E.D.+-- Lemma: ifComplexitySmaller+--   Step: 1                     Q.E.D.+--   Result:                     Q.E.D.+-- Functions proven terminating: ifComplexity+-- [Proven] ifComplexitySmaller :: Ɐc ∷ Formula → Ɐl ∷ Formula → Ɐr ∷ Formula → Bool+ifComplexitySmaller :: TP (Proof (Forall "c" Formula -> Forall "l" Formula -> Forall "r" Formula -> SBool))+ifComplexitySmaller = do+  icp <- recall ifComplexityPos++  calc "ifComplexitySmaller"+       (\(Forall c) (Forall l) (Forall r) ->+          let ic = ifComplexity (sIf c l r)+          in ifComplexity c .< ic .&& ifComplexity l .< ic .&& ifComplexity r .< ic) $+       \c l r ->+         let ic = ifComplexity (sIf c l r)+             cc = ifComplexity c+             cl = ifComplexity l+             cr = ifComplexity r+         in [] |- cc .< ic .&& cl .< ic .&& cr .< ic+               ?? icp `at` Inst @"f" c+               ?? icp `at` Inst @"f" l+               ?? icp `at` Inst @"f" r+               =: sTrue+               =: qed++-- * Normalization++-- | Check if a formula is in normal form (no nested If in condition position).+isNormal :: SFormula -> SBool+isNormal = smtFunction "isNormal"+         $ \f -> [sCase| f of+                    If c p q  -> sNot (isIf c) .&& isNormal p .&& isNormal q+                    _         -> sTrue+                 |]++-- | Normalize a formula by eliminating nested Ifs in condition position.+--+-- The key transformation is:+--+-- @+--   If (If (p, q, r), left, right)+--     =+--   If (p, If (q, left, right), If (r, left, right))+-- @+--+-- Note that this transformation increases the size of the formula, but reduces its complexity.+normalize :: SFormula -> SFormula+normalize = smtFunctionWithMeasure "normalize"+                                   ( \f -> tuple (ifComplexity f, ifDepth f)+                                   , [ measureLemma        ifDepthNonNeg+                                     , measureLemma        ifComplexityPos+                                     , measureLemmaWith z3 ifComplexitySmaller+                                     , measureLemmaWith z3 normalizePreservesComplexity+                                     ]+                                   )+          $ \f -> [sCase| f of+                     If (If p q r) left right -> normalize (sIf p (sIf q left right) (sIf r left right))+                     If c          left right -> sIf c (normalize left) (normalize right)+                     _                        -> f+                  |]++-- | The normalization transformation preserves complexity.+--+-- \(\mathit{ifComplexity}(\mathit{If}(p, \mathit{If}(q, l, r), \mathit{If}(s, l, r))) = \mathit{ifComplexity}(\mathit{If}(\mathit{If}(p, q, s), l, r))\)+--+-- >>> runTP normalizePreservesComplexity+-- Lemma: helper                          Q.E.D.+-- Lemma: normalizePreservesComplexity+--   Step: 1                              Q.E.D.+--   Step: 2                              Q.E.D.+--   Step: 3                              Q.E.D.+--   Step: 4                              Q.E.D.+--   Step: 5                              Q.E.D.+--   Step: 6                              Q.E.D.+--   Step: 7                              Q.E.D.+--   Result:                              Q.E.D.+-- Functions proven terminating: ifComplexity+-- [Proven] normalizePreservesComplexity :: Ɐp ∷ Formula → Ɐq ∷ Formula → Ɐs ∷ Formula → Ɐl ∷ Formula → Ɐr ∷ Formula → Bool+normalizePreservesComplexity :: TP (Proof (Forall "p" Formula -> Forall "q" Formula -> Forall "s" Formula -> Forall "l" Formula -> Forall "r" Formula -> SBool))+normalizePreservesComplexity = do++  -- The following is a trivial lemma, but without it the solver don't seem to be able to make progress since+  -- it needs to instantiate it properly. So we help the solver out explicitly.+  helper <- lemma "helper"+                  (\(Forall @"a" a) (Forall @"b" b) (Forall @"c" c) -> a .== b .=> a * c .== b * (c :: SInteger))+                  []++  calc "normalizePreservesComplexity"+       (\(Forall p) (Forall q) (Forall s) (Forall l) (Forall r) ->+          ifComplexity (sIf p (sIf q l r) (sIf s l r)) .== ifComplexity (sIf (sIf p q s) l r)) $+       \p q s l r ->+         let cp = ifComplexity p+             cq = ifComplexity q+             cs = ifComplexity s+             cl = ifComplexity l+             cr = ifComplexity r+         in [] |- ifComplexity (sIf p (sIf q l r) (sIf s l r))+               =: cp * (ifComplexity (sIf q l r) + ifComplexity (sIf s l r))+               =: cp * (cq * (cl + cr) + cs * (cl + cr))+               =: cp * ((cq + cs) * (cl + cr))+               =: (cp * (cq + cs)) * (cl + cr)+               ?? helper `at` (Inst @"a" (ifComplexity (sIf p q s)), Inst @"b" (cp * (cq + cs)), Inst @"c" (cl + cr))+               =: ifComplexity (sIf p q s) * (cl + cr)+               =: ifComplexity (sIf p q s) * (ifComplexity l + ifComplexity r)+               =: ifComplexity (sIf (sIf p q s) l r)+               =: qed++-- * Variable bindings++-- | A binding associates a variable ID with a boolean value.+data Binding = Binding { varId :: Integer+                       , value :: Bool+                       }++-- | Make bindings symbolic.+mkSymbolic [''Binding]++-- | Look up a variable in the binding list. If it's not in the list, then it's false.+lookUp :: SInteger -> SList Binding -> SBool+lookUp = smtFunction "lookUp"+       $ \vid bs -> [sCase| bs of+                       []                                    -> sFalse+                       Binding bId bVal : rest | vid .== bId -> bVal+                                               | True        -> lookUp vid rest+                    |]++-- | Check if a variable is assigned in the bindings.+isAssigned :: SInteger -> SList Binding -> SBool+isAssigned = smtFunction "isAssigned"+           $ \vid bs -> [sCase| bs of+                           []                                -> sFalse+                           Binding bId _ : rst | bId .== vid -> sTrue+                                               | True        -> isAssigned vid rst+                        |]++-- | Add a binding assuming the variable is true.+assumeTrue :: SInteger -> SList Binding -> SList Binding+assumeTrue vid bs = sBinding vid sTrue .: bs++-- | Add a binding assuming the variable is false.+assumeFalse :: SInteger -> SList Binding -> SList Binding+assumeFalse vid bs = sBinding vid sFalse .: bs++-- | Adding a binding preserves existing assignments.+--+-- >>> runTP isAssignedExtends+-- Lemma: isAssignedExtends    Q.E.D.+-- Functions proven terminating: isAssigned+-- [Proven] isAssignedExtends :: Ɐi ∷ Integer → Ɐn ∷ Integer → Ɐv ∷ Bool → Ɐbs ∷ [Binding] → Bool+isAssignedExtends :: TP (Proof (Forall "i" Integer -> Forall "n" Integer -> Forall "v" Bool -> Forall "bs" [Binding] -> SBool))+isAssignedExtends = lemma "isAssignedExtends"+                          (\(Forall i) (Forall n) (Forall v) (Forall bs) -> isAssigned i bs .=> isAssigned i (sBinding n v .: bs))+                          []++-- | Looking up a variable in extended bindings: if already assigned, value is preserved.+--+-- >>> runTP lookUpExtends+-- Lemma: lookUpExtends    Q.E.D.+-- Functions proven terminating: isAssigned, lookUp+-- [Proven] lookUpExtends :: Ɐi ∷ Integer → Ɐn ∷ Integer → Ɐv ∷ Bool → Ɐbs ∷ [Binding] → Bool+lookUpExtends :: TP (Proof (Forall "i" Integer -> Forall "n" Integer -> Forall "v" Bool -> Forall "bs" [Binding] -> SBool))+lookUpExtends = lemma "lookUpExtends"+                      (\(Forall i) (Forall n) (Forall v) (Forall bs) ->+                                isAssigned i bs .&& i ./= n .=> lookUp i (sBinding n v .: bs) .== lookUp i bs)+                      []++-- | Looking up a variable that was just added returns the added value.+--+-- >>> runTP lookUpSame+-- Lemma: lookUpSame    Q.E.D.+-- Functions proven terminating: lookUp+-- [Proven] lookUpSame :: Ɐn ∷ Integer → Ɐv ∷ Bool → Ɐbs ∷ [Binding] → Bool+lookUpSame :: TP (Proof (Forall "n" Integer -> Forall "v" Bool -> Forall "bs" [Binding] -> SBool))+lookUpSame = lemma "lookUpSame" (\(Forall n) (Forall v) (Forall bs) -> lookUp n (sBinding n v .: bs) .== v) []++-- | Adding a binding for a variable makes it assigned.+--+-- >>> runTP isAssignedSame+-- Lemma: isAssignedSame    Q.E.D.+-- Functions proven terminating: isAssigned+-- [Proven] isAssignedSame :: Ɐn ∷ Integer → Ɐv ∷ Bool → Ɐbs ∷ [Binding] → Bool+isAssignedSame :: TP (Proof (Forall "n" Integer -> Forall "v" Bool -> Forall "bs" [Binding] -> SBool))+isAssignedSame = lemma "isAssignedSame" (\(Forall n) (Forall v) (Forall bs) -> isAssigned n (sBinding n v .: bs)) []++-- * Formula evaluation++-- | Evaluate a formula under a binding environment.+eval :: SFormula -> SList Binding -> SBool+eval = smtFunction "eval"+     $ \f bs -> [sCase| f of+                   Var n    -> lookUp n bs+                   If c l r | eval c bs -> eval l bs+                            | True      -> eval r bs+                   FTrue    -> sTrue+                   FFalse   -> sFalse+                |]++-- * Tautology checking++-- | Check if a normalized formula is a tautology.+isTautology' :: SFormula -> SList Binding -> SBool+isTautology' = smtFunction "isTautology'" $ \f bs ->+  [sCase| f of+    -- Trivial cases+    FTrue          -> sTrue+    FFalse         -> sFalse++    -- Variable+    Var _          -> eval f bs++    -- Constant branches+    If FTrue  l _  -> isTautology' l bs+    If FFalse _ r  -> isTautology' r bs++    -- Branching on a variable+    If (Var n) l r+      -- We have already this variable, so evaluate based on the current choice+      | isAssigned n bs, eval (sVar n) bs -> isTautology' l bs+      | isAssigned n bs                   -> isTautology' r bs++      -- We haven't yet assigned this variable. Both branches should work out:+      | True             ->     isTautology' l (assumeTrue  n bs)+                            .&& isTautology' r (assumeFalse n bs)++    If _ _ _ -> sFalse  -- Contradicts isNormal assumption+  |]++-- | Main tautology checker.+isTautology :: SFormula -> SBool+isTautology f = isTautology' (normalize f) []++-- * Soundness++-- | \(\mathit{lookUp}(x, a \mathbin{+\!\!+} b) = \mathit{if } \mathit{isAssigned}(x, a) \mathit{ then } \mathit{lookUp}(x, a) \mathit{ else } \mathit{lookUp}(x, b)\)+--+-- If we look up a variable in a concatenated binding list, we first check+-- the first list, and only if not found there, check the second.+--+-- >>> runTP lookUpStable+-- Inductive lemma: lookUpStable+--   Step: Base                     Q.E.D.+--   Step: 1 (2 way case split)+--     Step: 1.1.1                  Q.E.D.+--     Step: 1.1.2                  Q.E.D.+--     Step: 1.2.1                  Q.E.D.+--     Step: 1.2.2                  Q.E.D.+--     Step: 1.Completeness         Q.E.D.+--   Result:                        Q.E.D.+-- Functions proven terminating: isAssigned, lookUp+-- [Proven] lookUpStable :: Ɐa ∷ [Binding] → Ɐx ∷ Integer → Ɐb ∷ [Binding] → Bool+lookUpStable :: TP (Proof (Forall "a" [Binding] -> Forall "x" Integer -> Forall "b" [Binding] -> SBool))+lookUpStable =+  induct "lookUpStable"+         (\(Forall a) (Forall x) (Forall b) -> lookUp x (a ++ b) .== ite (isAssigned x a) (lookUp x a) (lookUp x b)) $+         \ih (binding, a) x b ->+           let vid = svarId binding+               val = svalue binding+           in [] |- lookUp x ((binding .: a) ++ b)+                 =: cases [ vid .== x ==> ite (isAssigned x (binding .: a)) (lookUp x (binding .: a)) (lookUp x b)+                                       =: val+                                       =: qed+                          , vid ./= x ==> lookUp x (a ++ b)+                                       ?? ih+                                       =: ite (isAssigned x a) (lookUp x a) (lookUp x b)+                                       =: qed+                          ]++-- | \(\mathit{lookUp}(x, a) \implies \mathit{isAssigned}(x, a)\)+--+-- >>> runTP trueIsAssigned+-- Inductive lemma: trueIsAssigned+--   Step: Base                       Q.E.D.+--   Step: 1 (2 way case split)+--     Step: 1.1                      Q.E.D.+--     Step: 1.2.1                    Q.E.D.+--     Step: 1.2.2                    Q.E.D.+--     Step: 1.Completeness           Q.E.D.+--   Result:                          Q.E.D.+-- Functions proven terminating: isAssigned, lookUp+-- [Proven] trueIsAssigned :: Ɐa ∷ [Binding] → Ɐx ∷ Integer → Bool+trueIsAssigned :: TP (Proof (Forall "a" [Binding] -> Forall "x" Integer -> SBool))+trueIsAssigned =+  induct "trueIsAssigned"+         (\(Forall a) (Forall x) -> lookUp x a .=> isAssigned x a) $+         \ih (binding, a) x ->+           let vid = [sCase| binding of Binding v _ -> v|]+           in [lookUp x (binding .: a)]+           |- isAssigned x (binding .: a)+           =: cases [ vid .== x ==> trivial+                    , vid ./= x ==> isAssigned x a+                                 ?? ih+                                 =: sTrue+                                 =: qed+                    ]++-- | \(\mathit{value} = \mathit{lookUp}(x, bs) \implies \mathit{eval}(f, \{x \mapsto \mathit{value}\} :: bs) = \mathit{eval}(f, bs)\)+--+-- If we add a redundant binding (same id and value) to the front, evaluation doesn't change.+--+-- >>> runTPWith cvc5 evalStable+-- Lemma: ifComplexityPos                  Q.E.D.+-- Lemma: ifComplexitySmaller              Q.E.D.+-- Inductive lemma (strong): evalStable+--   Step: Measure is non-negative         Q.E.D.+--   Step: 1 (4 way case split)+--     Step: 1.1                           Q.E.D.+--     Step: 1.2                           Q.E.D.+--     Step: 1.3                           Q.E.D.+--     Step: 1.4.1                         Q.E.D.+--     Step: 1.4.2                         Q.E.D.+--     Step: 1.4.3                         Q.E.D.+--     Step: 1.4.4                         Q.E.D.+--     Step: 1.4.5                         Q.E.D.+--     Step: 1.4.6                         Q.E.D.+--     Step: 1.Completeness                Q.E.D.+--   Result:                               Q.E.D.+-- Functions proven terminating: eval, ifComplexity, lookUp+-- [Proven] evalStable :: Ɐf ∷ Formula → Ɐx ∷ Integer → Ɐv ∷ Bool → Ɐbs ∷ [Binding] → Bool+evalStable :: TP (Proof (Forall "f" Formula -> Forall "x" Integer -> Forall "v" Bool -> Forall "bs" [Binding] -> SBool))+evalStable = do+  icp <- recall ifComplexityPos+  ibs <- recall ifComplexitySmaller++  sInduct "evalStable"+          (\(Forall f) (Forall x) (Forall v) (Forall bs) -> v .== lookUp x bs .=> eval f (sBinding x v .: bs) .== eval f bs)+          (\f _ _ _ -> ifComplexity f, [proofOf icp]) $+          \ih f x v bs ->+               let b = sBinding x v+               in [v .== lookUp x bs]+               |- cases [ isFTrue  f ==> trivial+                        , isFFalse f ==> trivial+                        , isVar    f ==> trivial+                        , isIf     f ==>+                            let c = sifCond f+                                l = sifThen f+                                r = sifElse f+                            in eval f (b .: bs)+                            =: eval (sIf c l r) (b .: bs)+                            =: ite (eval c (b .: bs)) (eval l (b .: bs)) (eval r (b .: bs))+                            ?? ih  `at` (Inst @"f" c, Inst @"x" x, Inst @"v" v, Inst @"bs" bs)+                            ?? ibs `at` (Inst @"c" c, Inst @"l" l, Inst @"r" r)+                            =: ite (eval c bs) (eval l (b .: bs)) (eval r (b .: bs))+                            ?? ih  `at` (Inst @"f" l, Inst @"x" x, Inst @"v" v, Inst @"bs" bs)+                            ?? ibs `at` (Inst @"c" c, Inst @"l" l, Inst @"r" r)+                            =: ite (eval c bs) (eval l bs) (eval r (b .: bs))+                            ?? ih  `at` (Inst @"f" r, Inst @"x" x, Inst @"v" v, Inst @"bs" bs)+                            ?? ibs `at` (Inst @"c" c, Inst @"l" l, Inst @"r" r)+                            =: ite (eval c bs) (eval l bs) (eval r bs)+                            =: eval (sIf c l r) bs+                            =: qed+                        ]++-- | Key soundness lemma: If a normalized formula is a tautology under bindings @b@,+-- then it evaluates to true under @b ++ a@ for any @a@.+--+-- >>> runTPWith cvc5 tautologyImpliesEval+-- Lemma: ifComplexityPos                            Q.E.D.+-- Lemma: ifComplexitySmaller                        Q.E.D.+-- Lemma: lookUpStable                               Q.E.D.+-- Lemma: trueIsAssigned                             Q.E.D.+-- Lemma: evalStable                                 Q.E.D.+-- Inductive lemma (strong): tautologyImpliesEval+--   Step: Measure is non-negative                   Q.E.D.+--   Step: 1 (4 way case split)+--     Step: 1.1                                     Q.E.D.+--     Step: 1.2                                     Q.E.D.+--     Step: 1.3.1                                   Q.E.D.+--     Step: 1.3.2                                   Q.E.D.+--     Step: 1.3.3                                   Q.E.D.+--     Step: 1.3.4                                   Q.E.D.+--     Step: 1.3.5                                   Q.E.D.+--     Step: 1.4 (4 way case split)+--       Step: 1.4.1.1                               Q.E.D.+--       Step: 1.4.1.2                               Q.E.D.+--       Step: 1.4.2.1                               Q.E.D.+--       Step: 1.4.2.2                               Q.E.D.+--       Step: 1.4.2.3                               Q.E.D.+--       Step: 1.4.3 (2 way case split)+--         Step: 1.4.3.1.1                           Q.E.D.+--         Step: 1.4.3.1.2                           Q.E.D.+--         Step: 1.4.3.1.3                           Q.E.D.+--         Step: 1.4.3.1.4                           Q.E.D.+--         Step: 1.4.3.2 (2 way case split)+--           Step: 1.4.3.2.1.1                       Q.E.D.+--           Step: 1.4.3.2.1.2                       Q.E.D.+--           Step: 1.4.3.2.1.3                       Q.E.D.+--           Step: 1.4.3.2.1.4                       Q.E.D.+--           Step: 1.4.3.2.1.5                       Q.E.D.+--           Step: 1.4.3.2.1.6                       Q.E.D.+--           Step: 1.4.3.2.1.7                       Q.E.D.+--           Step: 1.4.3.2.1.8                       Q.E.D.+--           Step: 1.4.3.2.2.1                       Q.E.D.+--           Step: 1.4.3.2.2.2                       Q.E.D.+--           Step: 1.4.3.2.2.3                       Q.E.D.+--           Step: 1.4.3.2.2.4                       Q.E.D.+--           Step: 1.4.3.2.2.5                       Q.E.D.+--           Step: 1.4.3.2.2.6                       Q.E.D.+--           Step: 1.4.3.2.2.7                       Q.E.D.+--           Step: 1.4.3.2.2.8                       Q.E.D.+--           Step: 1.4.3.2.Completeness              Q.E.D.+--         Step: 1.4.3.Completeness                  Q.E.D.+--       Step: 1.4.4                                 Q.E.D.+--       Step: 1.4.Completeness                      Q.E.D.+--     Step: 1.Completeness                          Q.E.D.+--   Result:                                         Q.E.D.+-- Functions proven terminating: eval, ifComplexity, isAssigned, isNormal, isTautology', lookUp+-- [Proven] tautologyImpliesEval :: Ɐf ∷ Formula → Ɐa ∷ [Binding] → Ɐb ∷ [Binding] → Bool+tautologyImpliesEval :: TP (Proof (Forall "f" Formula -> Forall "a" [Binding] -> Forall "b" [Binding] -> SBool))+tautologyImpliesEval = do++  icp <- recall ifComplexityPos+  ibs <- recall ifComplexitySmaller+  lus <- recall lookUpStable+  tia <- recall trueIsAssigned+  evs <- recall evalStable++  sInduct "tautologyImpliesEval"+          (\(Forall f) (Forall a) (Forall b) -> isNormal f .&& isTautology' f b .=> eval f (b ++ a))+          (\f _ _ -> ifComplexity f, [proofOf icp]) $+          \ih f a b ->+                [isNormal f, isTautology' f b]+             |- cases [ isFTrue  f ==> trivial+                      , isFFalse f ==> trivial+                      , isVar    f ==> let n = sfVar f+                                       in eval f (b ++ a)+                                       =: eval (sVar n) (b ++ a)+                                       =: lookUp n (b ++ a)+                                       ?? lus `at` (Inst @"a" b, Inst @"x" n, Inst @"b" a)+                                       =: ite (isAssigned n b) (lookUp n b) (lookUp n a)+                                       ?? tia `at` (Inst @"a" b, Inst @"x" n)+                                       =: lookUp n b+                                       =: sTrue+                                       =: qed+                      , isIf f     ==>+                          let c = sifCond f+                              l = sifThen f+                              r = sifElse f+                          in cases [ isFTrue  c ==> eval (sIf c l r) (b ++ a)+                                                 =: ite (eval c (b ++ a)) (eval l (b ++ a)) (eval r (b ++ a))+                                                 ?? ibs `at` (Inst @"c" c, Inst @"l" l, Inst @"r" r)+                                                 ?? ih  `at` (Inst @"f" l, Inst @"a" a, Inst @"b" b)+                                                 =: sTrue+                                                 =: qed+                                   , isFFalse c ==> eval (sIf c l r) (b ++ a)+                                                 =: ite (eval c (b ++ a)) (eval l (b ++ a)) (eval r (b ++ a))+                                                 =: eval r (b ++ a)+                                                 ?? ibs `at` (Inst @"c" c, Inst @"l" l, Inst @"r" r)+                                                 ?? ih  `at` (Inst @"f" r, Inst @"a" a, Inst @"b" b)+                                                 =: sTrue+                                                 =: qed+                                   , isVar    c ==> let n = sfVar c+                                                    in cases [ isAssigned n b ==>+                                                                    eval (sIf (sVar n) l r) (b ++ a)+                                                                 =: ite (eval (sVar n) (b ++ a)) (eval l (b ++ a)) (eval r (b ++ a))+                                                                 =: ite (lookUp n (b ++ a)) (eval l (b ++ a)) (eval r (b ++ a))+                                                                 ?? lus `at` (Inst @"a" b, Inst @"x" n, Inst @"b" a)+                                                                 =: ite (lookUp n b) (eval l (b ++ a)) (eval r (b ++ a))+                                                                 ?? ibs `at` (Inst @"c" c, Inst @"l" l, Inst @"r" r)+                                                                 ?? ih  `at` (Inst @"f" l, Inst @"a" a, Inst @"b" b)+                                                                 ?? ih  `at` (Inst @"f" r, Inst @"a" a, Inst @"b" b)+                                                                 =: sTrue+                                                                 =: qed+                                                             , sNot (isAssigned n b) ==>+                                                                 cases [ lookUp n a ==>+                                                                             eval (sIf (sVar n) l r) (b ++ a)+                                                                          =: ite (eval (sVar n) (b ++ a)) (eval l (b ++ a)) (eval r (b ++ a))+                                                                          =: ite (lookUp n (b ++ a)) (eval l (b ++ a)) (eval r (b ++ a))+                                                                          ?? lus `at` (Inst @"a" b, Inst @"x" n, Inst @"b" a)+                                                                          =: ite (lookUp n a) (eval l (b ++ a)) (eval r (b ++ a))+                                                                          =: eval l (b ++ a)+                                                                          ?? evs `at` (Inst @"f" l, Inst @"x" n, Inst @"v" (lookUp n a), Inst @"bs" (b ++ a))+                                                                          ?? lus `at` (Inst @"a" b, Inst @"x" n, Inst @"b" a)+                                                                          =: eval l (sBinding n (lookUp n a) .: (b ++ a))+                                                                          =: eval l (sBinding n sTrue .: (b ++ a))+                                                                          =: eval l (assumeTrue n b ++ a)+                                                                          ?? ibs `at` (Inst @"c" c, Inst @"l" l, Inst @"r" r)+                                                                          ?? ih  `at` (Inst @"f" l, Inst @"a" a, Inst @"b" (assumeTrue n b))+                                                                          =: sTrue+                                                                          =: qed+                                                                       , sNot (lookUp n a) ==>+                                                                             eval (sIf (sVar n) l r) (b ++ a)+                                                                          =: ite (eval (sVar n) (b ++ a)) (eval l (b ++ a)) (eval r (b ++ a))+                                                                          =: ite (lookUp n (b ++ a)) (eval l (b ++ a)) (eval r (b ++ a))+                                                                          ?? lus `at` (Inst @"a" b, Inst @"x" n, Inst @"b" a)+                                                                          =: ite (lookUp n a) (eval l (b ++ a)) (eval r (b ++ a))+                                                                          =: eval r (b ++ a)+                                                                          ?? evs `at` (Inst @"f" r, Inst @"x" n, Inst @"v" (lookUp n a), Inst @"bs" (b ++ a))+                                                                          ?? lus `at` (Inst @"a" b, Inst @"x" n, Inst @"b" a)+                                                                          =: eval r (sBinding n (lookUp n a) .: (b ++ a))+                                                                          =: eval r (sBinding n sFalse .: (b ++ a))+                                                                          =: eval r (assumeFalse n b ++ a)+                                                                          ?? ibs `at` (Inst @"c" c, Inst @"l" l, Inst @"r" r)+                                                                          ?? ih  `at` (Inst @"f" r, Inst @"a" a, Inst @"b" (assumeFalse n b))+                                                                          =: sTrue+                                                                          =: qed+                                                                       ]+                                                             ]+                                   , isIf c     ==> trivial  -- Contradicts isNormal+                                   ]+                      ]++-- * Normalization correctness++-- | \(\mathit{isNormal}(\mathit{normalize}(f))\)+--+-- Normalization produces normalized formulas.+--+-- >>> runTP normalizeCorrect+-- Lemma: ifComplexityPos                        Q.E.D.+-- Lemma: ifComplexitySmaller                    Q.E.D.+-- Lemma: normalizePreservesComplexity           Q.E.D.+-- Lemma: ifDepthNonNeg                          Q.E.D.+-- Inductive lemma (strong): normalizeCorrect+--   Step: Measure is non-negative               Q.E.D.+--   Step: 1 (4 way case split)+--     Step: 1.1                                 Q.E.D.+--     Step: 1.2                                 Q.E.D.+--     Step: 1.3                                 Q.E.D.+--     Step: 1.4 (2 way case split)+--       Step: 1.4.1.1                           Q.E.D.+--       Step: 1.4.1.2                           Q.E.D.+--       Step: 1.4.2.1                           Q.E.D.+--       Step: 1.4.2.2                           Q.E.D.+--       Step: 1.4.2.3                           Q.E.D.+--       Step: 1.4.2.4                           Q.E.D.+--       Step: 1.4.2.5                           Q.E.D.+--       Step: 1.4.Completeness                  Q.E.D.+--     Step: 1.Completeness                      Q.E.D.+--   Result:                                     Q.E.D.+-- Functions proven terminating: ifComplexity, ifDepth, isNormal, normalize+-- [Proven] normalizeCorrect :: Ɐf ∷ Formula → Bool+normalizeCorrect :: TP (Proof (Forall "f" Formula -> SBool))+normalizeCorrect = do+  icp <- recall ifComplexityPos+  ibs <- recall ifComplexitySmaller+  npc <- recall normalizePreservesComplexity+  idn <- recall ifDepthNonNeg++  sInductWith cvc5 "normalizeCorrect"+              (\(Forall f) -> isNormal (normalize f))+              (\f -> tuple (ifComplexity f, ifDepth f), [proofOf icp, proofOf idn]) $+              \ih f -> []+                    |- isNormal (normalize f)+                    =: cases [ isFTrue  f ==> trivial+                             , isFFalse f ==> trivial+                             , isVar    f ==> trivial+                             , isIf     f ==> let c = sifCond f+                                                  l = sifThen f+                                                  r = sifElse f+                                              in cases [ isIf c ==>+                                                           let p  = sifCond c+                                                               q  = sifThen c+                                                               rc = sifElse c+                                                               transformed = sIf p (sIf q l r) (sIf rc l r)+                                                           in isNormal (normalize transformed)+                                                           ?? npc `at` (Inst @"p" p, Inst @"q" q, Inst @"s" rc, Inst @"l" l, Inst @"r" r)+                                                           ?? ih `at` Inst @"f" transformed+                                                           =: sTrue+                                                           =: qed+                                                       , sNot (isIf c) ==>+                                                              isNormal (sIf c (normalize l) (normalize r))+                                                           =: sNot (isIf c) .&& isNormal (normalize l) .&& isNormal (normalize r)+                                                           =: isNormal (normalize l) .&& isNormal (normalize r)+                                                           ?? ibs `at` (Inst @"c" c, Inst @"l" l, Inst @"r" r)+                                                           ?? ih  `at` Inst @"f" l+                                                           =: isNormal (normalize r)+                                                           ?? ibs `at` (Inst @"c" c, Inst @"l" l, Inst @"r" r)+                                                           ?? ih  `at` Inst @"f" r+                                                           =: sTrue+                                                           =: qed+                                                       ]+                             ]++-- | \(\mathit{isNormal}(f) \implies \mathit{normalize}(f) = f\)+--+-- Normalizing a normalized formula is the identity.+--+-- >>> runTP normalizeSame+-- Lemma: ifComplexityPos                     Q.E.D.+-- Lemma: ifComplexitySmaller                 Q.E.D.+-- Inductive lemma (strong): normalizeSame+--   Step: Measure is non-negative            Q.E.D.+--   Step: 1 (4 way case split)+--     Step: 1.1                              Q.E.D.+--     Step: 1.2                              Q.E.D.+--     Step: 1.3                              Q.E.D.+--     Step: 1.4.1                            Q.E.D.+--     Step: 1.4.2                            Q.E.D.+--     Step: 1.Completeness                   Q.E.D.+--   Result:                                  Q.E.D.+-- Functions proven terminating: ifComplexity, isNormal, normalize+-- [Proven] normalizeSame :: Ɐf ∷ Formula → Bool+normalizeSame :: TP (Proof (Forall "f" Formula -> SBool))+normalizeSame = do+  icp <- recall ifComplexityPos+  ibs <- recall ifComplexitySmaller++  sInduct "normalizeSame"+          (\(Forall f) -> isNormal f .=> normalize f .== f)+          (ifComplexity, [proofOf icp]) $+          \ih f -> [isNormal f]+                |- cases [ isFTrue  f ==> trivial+                         , isFFalse f ==> trivial+                         , isVar    f ==> trivial+                         , isIf     f ==> let c = sifCond f+                                              l = sifThen f+                                              r = sifElse f+                                          in sIf c (normalize l) (normalize r)+                                          ?? ibs `at` (Inst @"c" c, Inst @"l" l, Inst @"r" r)+                                          ?? ih `at` Inst @"f" l+                                          =: sIf c l (normalize r)+                                          ?? ibs `at` (Inst @"c" c, Inst @"l" l, Inst @"r" r)+                                          ?? ih `at` Inst @"f" r+                                          =: sIf c l r+                                          =: qed+                         ]++-- | \(\mathit{eval}(\mathit{normalize}(f), bs) = \mathit{eval}(f, bs)\)+--+-- Normalization preserves semantics.+--+-- >>> runTP normalizeRespectsTruth+-- Lemma: ifComplexityPos                              Q.E.D.+-- Lemma: ifComplexitySmaller                          Q.E.D.+-- Lemma: normalizePreservesComplexity                 Q.E.D.+-- Lemma: ifDepthNonNeg                                Q.E.D.+-- Inductive lemma (strong): normalizeRespectsTruth+--   Step: Measure is non-negative                     Q.E.D.+--   Step: 1 (4 way case split)+--     Step: 1.1                                       Q.E.D.+--     Step: 1.2                                       Q.E.D.+--     Step: 1.3                                       Q.E.D.+--     Step: 1.4 (2 way case split)+--       Step: 1.4.1                                   Q.E.D.+--       Step: 1.4.2.1                                 Q.E.D.+--       Step: 1.4.2.2                                 Q.E.D.+--       Step: 1.4.2.3                                 Q.E.D.+--       Step: 1.4.Completeness                        Q.E.D.+--     Step: 1.Completeness                            Q.E.D.+--   Result:                                           Q.E.D.+-- Functions proven terminating: eval, ifComplexity, ifDepth, lookUp, normalize+-- [Proven] normalizeRespectsTruth :: Ɐf ∷ Formula → Ɐbs ∷ [Binding] → Bool+normalizeRespectsTruth :: TP (Proof (Forall "f" Formula -> Forall "bs" [Binding] -> SBool))+normalizeRespectsTruth = do+  icp <- recall ifComplexityPos+  ibs <- recall ifComplexitySmaller+  npc <- recall normalizePreservesComplexity+  idn <- recall ifDepthNonNeg++  sInductWith cvc5 "normalizeRespectsTruth"+              (\(Forall f) (Forall bs) -> eval (normalize f) bs .== eval f bs)+              (\f _ -> tuple (ifComplexity f, ifDepth f), [proofOf icp, proofOf idn]) $+              \ih f bs -> []+                       |- cases [ isFTrue  f ==> trivial+                                , isFFalse f ==> trivial+                                , isVar    f ==> trivial+                                , isIf     f ==> let c = sifCond f+                                                     l = sifThen f+                                                     r = sifElse f+                                                 in cases [ isIf c ==>+                                                              let p  = sifCond c+                                                                  q  = sifThen c+                                                                  rc = sifElse c+                                                                  transformed = sIf p (sIf q l r) (sIf rc l r)+                                                              in eval (normalize (sIf c l r)) bs .== eval (sIf c l r) bs+                                                              ?? npc `at` (Inst @"p" p, Inst @"q" q, Inst @"s" rc, Inst @"l" l, Inst @"r" r)+                                                              ?? ih  `at` (Inst @"f" transformed, Inst @"bs" bs)+                                                              =: sTrue+                                                              =: qed+                                                          , sNot (isIf c) ==>+                                                                 eval (normalize (sIf c l r)) bs .== eval (sIf c l r) bs+                                                              =: eval (sIf c (normalize l) (normalize r)) bs .== eval (sIf c l r) bs+                                                              =: ite (eval c bs) (eval (normalize l) bs) (eval (normalize r) bs) .== ite (eval c bs) (eval l bs) (eval r bs)+                                                              ?? ibs `at` (Inst @"c" c, Inst @"l" l, Inst @"r" r)+                                                              ?? ih  `at` (Inst @"f" l, Inst @"bs" bs)+                                                              ?? ih  `at` (Inst @"f" r, Inst @"bs" bs)+                                                              =: sTrue+                                                              =: qed+                                                          ]+                                ]++-- * Main soundness theorem++-- | \(\mathit{isTautology}(f) \implies \mathit{eval}(f, \mathit{bindings})\)+--+-- If the tautology checker says a formula is a tautology, then it evaluates+-- to true under any binding environment. This is the soundness theorem.+--+-- >>> runTP soundness+-- Lemma: tautologyImpliesEval                         Q.E.D.+-- Lemma: normalizeRespectsTruth                       Q.E.D.+-- Lemma: normalizeCorrect                             Q.E.D.+-- Lemma: soundness+--   Step: 1                                           Q.E.D.+--   Step: 2                                           Q.E.D.+--   Result:                                           Q.E.D.+-- Functions proven terminating: eval, ifComplexity, ifDepth, isAssigned, isNormal, isTautology', lookUp, normalize+-- [Proven] soundness :: Ɐf ∷ Formula → Ɐbindings ∷ [Binding] → Bool+soundness :: TP (Proof (Forall "f" Formula -> Forall "bindings" [Binding] -> SBool))+soundness = do+  tie <- recallWith cvc5 tautologyImpliesEval+  nrt <- recall normalizeRespectsTruth+  nc  <- recall normalizeCorrect++  calc "soundness"+       (\(Forall f) (Forall bindings) -> isTautology f .=> eval f bindings) $+       \f bindings -> [isTautology f]+                   |- eval f bindings+                   ?? nrt `at` (Inst @"f" f, Inst @"bs" bindings)+                   =: eval (normalize f) bindings+                   ?? nc  `at` Inst @"f" f+                   ?? tie `at` (Inst @"f" (normalize f), Inst @"a" bindings, Inst @"b" [])+                   =: sTrue+                   =: qed++-- * Completeness++-- | Result of attempting to falsify a formula.+data FalsifyResult = FalsifyResult { falsified :: Bool+                                   , cex       :: [Binding]+                                   }++-- | Make FalsifyResult symbolic.+mkSymbolic [''FalsifyResult]++-- | Attempt to falsify a normalized formula under given bindings.+-- Returns whether falsification succeeded and the counterexample bindings.+falsify' :: SFormula -> SList Binding -> SFalsifyResult+falsify' = smtFunction "falsify'" $ \f bs ->+  [sCase| f of+    FTrue  -> sFalsifyResult sFalse []+    FFalse -> sFalsifyResult sTrue bs++    Var i+      | isAssigned i bs, eval (sVar i) bs -> sFalsifyResult sFalse []+      | isAssigned i bs                   -> sFalsifyResult sTrue bs+      | True                              -> sFalsifyResult sTrue (sBinding i sFalse .: bs)++    If (Var i) l r+      | isAssigned i bs, eval (sVar i) bs -> falsify' l bs+      | isAssigned i bs                   -> falsify' r bs+      | True                              -> let resL = falsify' l (assumeTrue i bs)+                                             in ite (sNot (sfalsified resL))+                                                    (falsify' r (assumeFalse i bs))+                                                    resL+    If FTrue  l _  -> falsify' l bs+    If FFalse _ r  -> falsify' r bs+    If _      _ _  -> sFalsifyResult sFalse []  -- Shouldn't happen for normal formulas+  |]++-- | Falsify a formula by first normalizing it.+falsify :: SFormula -> SFalsifyResult+falsify f = falsify' (normalize f) []++-- * Completeness lemmas++-- | If a normalized formula is not a tautology, then falsify' returns falsified = true.+--+-- >>> runTPWith cvc5 nonTautIsFalsified+-- Lemma: ifComplexityPos                          Q.E.D.+-- Lemma: ifComplexitySmaller                      Q.E.D.+-- Inductive lemma (strong): nonTautIsFalsified+--   Step: Measure is non-negative                 Q.E.D.+--   Step: 1 (4 way case split)+--     Step: 1.1                                   Q.E.D.+--     Step: 1.2                                   Q.E.D.+--     Step: 1.3                                   Q.E.D.+--     Step: 1.4                                   Q.E.D.+--     Step: 1.Completeness                        Q.E.D.+--   Result:                                       Q.E.D.+-- Functions proven terminating: eval, falsify', ifComplexity, isAssigned, isNormal, isTautology', lookUp+-- [Proven] nonTautIsFalsified :: Ɐf ∷ Formula → Ɐbs ∷ [Binding] → Bool+nonTautIsFalsified :: TP (Proof (Forall "f" Formula -> Forall "bs" [Binding] -> SBool))+nonTautIsFalsified = do+  icp <- recall ifComplexityPos+  ibs <- recall ifComplexitySmaller++  sInduct "nonTautIsFalsified"+          (\(Forall f) (Forall bs) -> isNormal f .&& sNot (isTautology' f bs) .=> sfalsified (falsify' f bs))+          (\f _ -> ifComplexity f, [proofOf icp]) $+          \ih f bs -> [isNormal f, sNot (isTautology' f bs)]+                   |- cases [ isFTrue  f ==> trivial+                            , isFFalse f ==> trivial+                            , isVar    f ==> trivial+                            , isIf     f ==> let c = sifCond f+                                                 l = sifThen f+                                                 r = sifElse f+                                             in sfalsified (falsify' f bs)+                                             ?? ibs `at` (Inst @"c" c, Inst @"l" l, Inst @"r" r)+                                             ?? ih  `at` (Inst @"f" l, Inst @"bs" bs)+                                             ?? ih  `at` (Inst @"f" r, Inst @"bs" bs)+                                             ?? ih  `at` (Inst @"f" l, Inst @"bs" (assumeTrue (sfVar c) bs))+                                             ?? ih  `at` (Inst @"f" r, Inst @"bs" (assumeFalse (sfVar c) bs))+                                             =: sTrue+                                             =: qed+                            ]++-- | If a variable is assigned in the input bindings and falsify' succeeds,+-- the lookup value is preserved in the output bindings.+--+-- >>> runTPWith cvc5 falsifyExtendsBindings+-- Lemma: ifComplexityPos                              Q.E.D.+-- Lemma: ifComplexitySmaller                          Q.E.D.+-- Lemma: isAssignedExtends                            Q.E.D.+-- Lemma: lookUpExtends                                Q.E.D.+-- Inductive lemma (strong): falsifyExtendsBindings+--   Step: Measure is non-negative                     Q.E.D.+--   Step: 1 (4 way case split)+--     Step: 1.1                                       Q.E.D.+--     Step: 1.2                                       Q.E.D.+--     Step: 1.3                                       Q.E.D.+--     Step: 1.4                                       Q.E.D.+--     Step: 1.Completeness                            Q.E.D.+--   Result:                                           Q.E.D.+-- Functions proven terminating: eval, falsify', ifComplexity, isAssigned, lookUp+-- [Proven] falsifyExtendsBindings :: Ɐf ∷ Formula → Ɐbs ∷ [Binding] → Ɐi ∷ Integer → Bool+falsifyExtendsBindings :: TP (Proof (Forall "f" Formula -> Forall "bs" [Binding] -> Forall "i" Integer -> SBool))+falsifyExtendsBindings = do+  icp <- recall ifComplexityPos+  ibs <- recall ifComplexitySmaller+  iae <- recall isAssignedExtends+  lue <- recall lookUpExtends++  sInduct "falsifyExtendsBindings"+          (\(Forall f) (Forall bs) (Forall i) ->+             isAssigned i bs .&& sfalsified (falsify' f bs) .=>+             lookUp i (scex (falsify' f bs)) .== lookUp i bs)+          (\f _ _ -> ifComplexity f, [proofOf icp]) $+          \ih f bs i -> [isAssigned i bs, sfalsified (falsify' f bs)]+                     |- cases [ isFTrue  f ==> trivial+                              , isFFalse f ==> trivial+                              , isVar    f ==> let n = sfVar f+                                               in lookUp i (scex (falsify' f bs)) .== lookUp i bs+                                               ?? lue `at` (Inst @"i" i, Inst @"n" n, Inst @"v" sFalse, Inst @"bs" bs)+                                               =: sTrue+                                               =: qed+                              , isIf     f ==> let c = sifCond f+                                                   l = sifThen f+                                                   r = sifElse f+                                                   n = sfVar c+                                               in lookUp i (scex (falsify' f bs)) .== lookUp i bs+                                               ?? ibs `at` (Inst @"c" c, Inst @"l" l, Inst @"r" r)+                                               ?? iae `at` (Inst @"i" i, Inst @"n" n, Inst @"v" sTrue,  Inst @"bs" bs)+                                               ?? iae `at` (Inst @"i" i, Inst @"n" n, Inst @"v" sFalse, Inst @"bs" bs)+                                               ?? lue `at` (Inst @"i" i, Inst @"n" n, Inst @"v" sTrue,  Inst @"bs" bs)+                                               ?? lue `at` (Inst @"i" i, Inst @"n" n, Inst @"v" sFalse, Inst @"bs" bs)+                                               ?? ih  `at` (Inst @"f" l, Inst @"bs" bs, Inst @"i" i)+                                               ?? ih  `at` (Inst @"f" r, Inst @"bs" bs, Inst @"i" i)+                                               ?? ih  `at` (Inst @"f" l, Inst @"bs" (assumeTrue n bs), Inst @"i" i)+                                               ?? ih  `at` (Inst @"f" r, Inst @"bs" (assumeFalse n bs), Inst @"i" i)+                                               =: sTrue+                                               =: qed+                              ]++-- | If falsify' returns falsified = true, then evaluating the formula+-- with the returned bindings gives false.+--+-- >>> runTPWith cvc5 falsifyFalsifies+-- Lemma: ifComplexityPos                              Q.E.D.+-- Lemma: ifComplexitySmaller                          Q.E.D.+-- Lemma: falsifyExtendsBindings                       Q.E.D.+-- Lemma: lookUpSame                                   Q.E.D.+-- Lemma: isAssignedSame                               Q.E.D.+-- Inductive lemma (strong): falsifyFalsifies+--   Step: Measure is non-negative                     Q.E.D.+--   Step: 1 (4 way case split)+--     Step: 1.1.1                                     Q.E.D.+--     Step: 1.1.2                                     Q.E.D.+--     Step: 1.1.3                                     Q.E.D.+--     Step: 1.2.1                                     Q.E.D.+--     Step: 1.2.2                                     Q.E.D.+--     Step: 1.2.3                                     Q.E.D.+--     Step: 1.3.1                                     Q.E.D.+--     Step: 1.3.2                                     Q.E.D.+--     Step: 1.3.3                                     Q.E.D.+--     Step: 1.4 (4 way case split)+--       Step: 1.4.1                                   Q.E.D.+--       Step: 1.4.2                                   Q.E.D.+--       Step: 1.4.3 (2 way case split)+--         Step: 1.4.3.1 (2 way case split)+--           Step: 1.4.3.1.1                           Q.E.D.+--           Step: 1.4.3.1.2                           Q.E.D.+--           Step: 1.4.3.1.Completeness                Q.E.D.+--         Step: 1.4.3.2 (2 way case split)+--           Step: 1.4.3.2.1                           Q.E.D.+--           Step: 1.4.3.2.2                           Q.E.D.+--           Step: 1.4.3.2.Completeness                Q.E.D.+--         Step: 1.4.3.Completeness                    Q.E.D.+--       Step: 1.4.4                                   Q.E.D.+--       Step: 1.4.Completeness                        Q.E.D.+--     Step: 1.Completeness                            Q.E.D.+--   Result:                                           Q.E.D.+-- Functions proven terminating: eval, falsify', ifComplexity, isAssigned, isNormal, lookUp+-- [Proven] falsifyFalsifies :: Ɐf ∷ Formula → Ɐbs ∷ [Binding] → Bool+falsifyFalsifies :: TP (Proof (Forall "f" Formula -> Forall "bs" [Binding] -> SBool))+falsifyFalsifies = do+  icp <- recall ifComplexityPos+  ibs <- recall ifComplexitySmaller+  feb <- recall falsifyExtendsBindings+  lus <- recall lookUpSame+  ias <- recall isAssignedSame++  sInduct "falsifyFalsifies"+          (\(Forall f) (Forall bs) -> isNormal f .&& sfalsified (falsify' f bs) .=> sNot (eval f (scex (falsify' f bs))))+          (\f _ -> ifComplexity f, [proofOf icp]) $+          \ih f bs -> [isNormal f, sfalsified (falsify' f bs)]+                   |- cases [ isFTrue  f ==> sNot (eval f (scex (falsify' f bs)))+                                          =: sNot (eval sFTrue (scex (falsify' sFTrue bs)))+                                          =: sNot sTrue+                                          =: sFalse+                                          =: qed+                            , isFFalse f ==> sNot (eval f (scex (falsify' f bs)))+                                          =: sNot (eval sFFalse bs)+                                          =: sNot sFalse+                                          =: sTrue+                                          =: qed+                            , isVar    f ==> let n = sfVar f+                                             in sNot (eval f (scex (falsify' f bs)))+                                             =: sNot (eval (sVar n) (scex (falsify' (sVar n) bs)))+                                             =: sNot (lookUp n (scex (falsify' (sVar n) bs)))+                                             =: sTrue+                                             =: qed+                            , isIf     f ==> let c = sifCond f+                                                 l = sifThen f+                                                 r = sifElse f+                                             in cases [ isFTrue  c ==> sNot (eval f (scex (falsify' f bs)))+                                                                    ?? ibs `at` (Inst @"c" c, Inst @"l" l, Inst @"r" r)+                                                                    ?? ih  `at` (Inst @"f" l, Inst @"bs" bs)+                                                                    =: sTrue+                                                                    =: qed+                                                      , isFFalse c ==> sNot (eval f (scex (falsify' f bs)))+                                                                    ?? ibs `at` (Inst @"c" c, Inst @"l" l, Inst @"r" r)+                                                                    ?? ih  `at` (Inst @"f" r, Inst @"bs" bs)+                                                                    =: sTrue+                                                                    =: qed+                                                      , isVar    c ==> let n = sfVar c+                                                                       in cases [ isAssigned n bs ==>+                                                                                      cases [ lookUp n bs ==>+                                                                                                  sNot (eval f (scex (falsify' f bs)))+                                                                                               ?? ibs `at` (Inst @"c" c, Inst @"l" l, Inst @"r" r)+                                                                                               ?? feb `at` (Inst @"f" l, Inst @"bs" bs, Inst @"i" n)+                                                                                               ?? ih  `at` (Inst @"f" l, Inst @"bs" bs)+                                                                                               =: sTrue+                                                                                               =: qed+                                                                                            , sNot (lookUp n bs) ==>+                                                                                                  sNot (eval f (scex (falsify' f bs)))+                                                                                               ?? ibs `at` (Inst @"c" c, Inst @"l" l, Inst @"r" r)+                                                                                               ?? feb `at` (Inst @"f" r, Inst @"bs" bs, Inst @"i" n)+                                                                                               ?? ih  `at` (Inst @"f" r, Inst @"bs" bs)+                                                                                               =: sTrue+                                                                                               =: qed+                                                                                            ]+                                                                                , sNot (isAssigned n bs) ==>+                                                                                      let resL = falsify' l (assumeTrue n bs)+                                                                                      in cases [ sfalsified resL ==>+                                                                                                     sNot (eval f (scex (falsify' f bs)))+                                                                                                  ?? ibs `at` (Inst @"c" c, Inst @"l" l, Inst @"r" r)+                                                                                                  ?? ias `at` (Inst @"n" n, Inst @"v" sTrue, Inst @"bs" bs)+                                                                                                  ?? lus `at` (Inst @"n" n, Inst @"v" sTrue, Inst @"bs" bs)+                                                                                                  ?? feb `at` (Inst @"f" l, Inst @"bs" (assumeTrue n bs), Inst @"i" n)+                                                                                                  ?? ih  `at` (Inst @"f" l, Inst @"bs" (assumeTrue n bs))+                                                                                                  =: sTrue+                                                                                                  =: qed+                                                                                               , sNot (sfalsified resL) ==>+                                                                                                     sNot (eval f (scex (falsify' f bs)))+                                                                                                  ?? ibs `at` (Inst @"c" c, Inst @"l" l, Inst @"r" r)+                                                                                                  ?? ias `at` (Inst @"n" n, Inst @"v" sFalse, Inst @"bs" bs)+                                                                                                  ?? lus `at` (Inst @"n" n, Inst @"v" sFalse, Inst @"bs" bs)+                                                                                                  ?? feb `at` (Inst @"f" r, Inst @"bs" (assumeFalse n bs), Inst @"i" n)+                                                                                                  ?? ih  `at` (Inst @"f" r, Inst @"bs" (assumeFalse n bs))+                                                                                                  =: sTrue+                                                                                                  =: qed+                                                                                               ]+                                                                                ]+                                                      , isIf     c ==> sNot (eval f (scex (falsify' f bs)))+                                                                    =: sTrue  -- Contradicts isNormal+                                                                    =: qed+                                                      ]+                            ]++-- | Helper lemma for completeness: If a formula is not a tautology,+-- evaluating its normalization with falsify's bindings gives false.+--+-- >>> runTPWith cvc5 completenessHelper+-- Lemma: falsifyFalsifies                             Q.E.D.+-- Lemma: nonTautIsFalsified                           Q.E.D.+-- Lemma: normalizeCorrect                             Q.E.D.+-- Lemma: completenessHelper                           Q.E.D.+-- Functions proven terminating:+--   eval, falsify', ifComplexity, ifDepth, isAssigned, isNormal, isTautology', lookUp, normalize+-- [Proven] completenessHelper :: Ɐf ∷ Formula → Bool+completenessHelper :: TP (Proof (Forall "f" Formula -> SBool))+completenessHelper = do+  ff  <- recall falsifyFalsifies+  nti <- recall nonTautIsFalsified+  nc  <- recallWith z3 normalizeCorrect++  lemma "completenessHelper"+        (\(Forall f) -> sNot (isTautology f) .=> sNot (eval (normalize f) (scex (falsify f))))+        [proofOf ff, proofOf nti, proofOf nc]++-- * Main completeness theorem++-- | \(\lnot\mathit{isTautology}(f) \implies \lnot\mathit{eval}(f, \mathit{falsify}(f).\mathit{bindings})\)+--+-- If the tautology checker says a formula is not a tautology, then there exists+-- a binding environment (provided by falsify) under which it evaluates to false.+-- This is the completeness theorem.+--+-- >>> runTPWith cvc5 completeness+-- Lemma: completenessHelper                           Q.E.D.+-- Lemma: normalizeRespectsTruth                       Q.E.D.+-- Lemma: completeness                                 Q.E.D.+-- Functions proven terminating:+--   eval, falsify', ifComplexity, ifDepth, isAssigned, isNormal, isTautology', lookUp, normalize+-- [Proven] completeness :: Ɐf ∷ Formula → Bool+completeness :: TP (Proof (Forall "f" Formula -> SBool))+completeness = do+  ch  <- recall completenessHelper+  nrt <- recallWith z3 normalizeRespectsTruth++  lemma "completeness"+        (\(Forall f) -> sNot (isTautology f) .=> sNot (eval f (scex (falsify f))))+        [proofOf ch, proofOf nrt]
+ Documentation/SBV/Examples/TP/UpDown.hs view
@@ -0,0 +1,114 @@+-----------------------------------------------------------------------------+-- |+-- Module    : Documentation.SBV.Examples.TP.UpDown+-- Copyright : (c) Levent Erkok+-- License   : BSD3+-- Maintainer: erkokl@gmail.com+-- Stability : experimental+--+-- Proves @reverse (down n) = up n@.+--+-- This problem is motivated by an ACL2 midterm exam question, from Fall 2011.+-- See: <https://www.cs.utexas.edu/~moore/classes/cs389r/midterm-answers.lisp>.+-----------------------------------------------------------------------------++{-# LANGUAGE CPP              #-}+{-# LANGUAGE DataKinds        #-}+{-# LANGUAGE OverloadedLists  #-}+{-# LANGUAGE QuasiQuotes      #-}+{-# LANGUAGE TypeAbstractions #-}+{-# LANGUAGE TypeApplications #-}++{-# OPTIONS_GHC -Wall -Werror #-}++module Documentation.SBV.Examples.TP.UpDown where++import Prelude hiding (reverse, (++))++import Data.SBV+import Data.SBV.TP+import Data.SBV.List++import Documentation.SBV.Examples.TP.Lists+import Documentation.SBV.Examples.TP.Peano++#ifdef DOCTEST+-- $setup+-- >>> import Data.SBV.TP+#endif++-- | Construct a list of size @n@, containing numbers @1@ to @n@.+--+-- >>> up 0+-- [] :: [SInteger]+-- >>> up 5+-- [1,2,3,4,5] :: [SInteger]+up :: SNat -> SList Integer+up n = upAcc n []++-- | Keep consing the first argument on to the accumulator, until we hit zero. After that, return the second argument.+-- Normally, we'd define this as a local function, but the definition needs to be visible for the proofs.+upAcc :: SNat -> SList Integer -> SList Integer+upAcc = smtFunction "up"+      $ \n lst -> [sCase| n of+                     Zero   -> lst+                     Succ p -> upAcc p (n2i n .: lst)+                  |]++-- | Construct a list of size @n@, containing numbers @n-1@ down to @0@.+--+-- >>> down 0+-- [] :: [SInteger]+-- >>> down 5+-- [5,4,3,2,1] :: [SInteger]+down :: SNat -> SList Integer+down = smtFunction "down"+     $ \n -> [sCase| n of+                Zero   -> []+                Succ p -> n2i n .: down p+             |]++-- | Prove that @reverse (down n)@ is the same as @up n@+--+-- >>> runTP upDown+-- Lemma: n2iNonNeg                       Q.E.D.+-- Lemma: revCons                         Q.E.D.+-- Inductive lemma (strong): upDownGen+--   Step: Measure is non-negative        Q.E.D.+--   Step: 1 (2 way case split)+--     Step: 1.1                          Q.E.D.+--     Step: 1.2.1                        Q.E.D.+--     Step: 1.2.2                        Q.E.D.+--     Step: 1.2.3                        Q.E.D.+--     Step: 1.2.4                        Q.E.D.+--     Step: 1.Completeness               Q.E.D.+--   Result:                              Q.E.D.+-- Lemma: upDown                          Q.E.D.+-- Functions proven terminating: down, n2i, sbv.reverse, up+-- [Proven] upDown :: Ɐn ∷ Nat → Bool+upDown :: TP (Proof (Forall "n" Nat -> SBool))+upDown = do+   n2inn <- recall n2iNonNeg+   rc    <- recall (revCons @Integer)++   -- We first generalize the theorem, to make it inductive+   upDownGen <- sInduct "upDownGen"+           (\(Forall @"n" n) (Forall @"xs" xs) -> reverse (down n) ++ xs .== upAcc n xs)+           (\n _ -> n2i n, [proofOf n2inn]) $+           \ih n xs -> [] |- cases [ isZero n ==> trivial+                                   , isSucc n ==> let p = getSucc_1 n+                                               in reverse (down (sSucc p)) ++ xs+                                               =: reverse (n2i n .: down p) ++ xs+                                               ?? rc+                                               =: reverse (down p) ++ (n2i n .: xs)+                                               ?? ih `at` (Inst @"n" p, Inst @"xs" (n2i n .: xs))+                                               =: upAcc p (n2i n .: xs)+                                               =: upAcc n xs+                                               =: qed+                                   ]++   -- The theorem we want to prove follows by instantiating the list at empty, and+   -- the SMT solver can figure it out by itself+   lemma "upDown"+         (\(Forall n) -> reverse (down n) .== up n)+         [proofOf upDownGen]
+ Documentation/SBV/Examples/TP/VM.hs view
@@ -0,0 +1,448 @@+-----------------------------------------------------------------------------+-- |+-- Module    : Documentation.SBV.Examples.TP.VM+-- Copyright : (c) Levent Erkok+-- License   : BSD3+-- Maintainer: erkokl@gmail.com+-- Stability : experimental+--+-- Correctness of a simple interpreter vs virtual-machine interpretation of a language.+-----------------------------------------------------------------------------++{-# LANGUAGE CPP                 #-}+{-# LANGUAGE DataKinds           #-}+{-# LANGUAGE FlexibleContexts    #-}+{-# LANGUAGE FlexibleInstances   #-}+{-# LANGUAGE OverloadedLists     #-}+{-# LANGUAGE QuasiQuotes         #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TemplateHaskell     #-}+{-# LANGUAGE TypeAbstractions    #-}+{-# LANGUAGE TypeApplications    #-}++{-# OPTIONS_GHC -Wall -Werror #-}++module Documentation.SBV.Examples.TP.VM+#ifndef DOCTEST+ (   -- * Language+     Expr(..), SExpr, size+++     -- * Symbolic accessors+   , sCaseExpr+   , isVar, sVar, getVar_1,                     svar+   , isCon, sCon, getCon_1,                     scon+   , isSqr, sSqr, getSqr_1,                     ssqrVal+   , isInc, sInc, getInc_1,                     sincVal+   , isAdd, sAdd, getAdd_1, getAdd_2,           sadd1, sadd2+   , isMul, sMul, getMul_1, getMul_2,           smul1, smul2+   , isLet, sLet, getLet_1, getLet_2, getLet_3, slvar, slval, slbody++     -- * Environment and the stack+   , Env, Stack++     -- * Interpretation+   , interpInEnv, interp++     -- * Virtual machine+   , Instr(..), SInstr++     -- * Compilation+   , compile, compileAndRun++     -- * Correctness of the compiler+   , correctness)+#endif+where++import Data.SBV+import Data.SBV.Tuple as ST+import Data.SBV.List  as SL++import Data.SBV.TP++#ifdef DOCTEST+-- $setup+-- >>> import Data.SBV.TP+-- >>> :set -XTypeApplications+#endif++-- * Language++-- | Basic expression language.+data Expr nm val = Var {var    :: nm                                            } -- ^ Variables+                 | Con {con    :: val                                           } -- ^ Constants+                 | Sqr {sqrVal :: Expr nm val                                   } -- ^ Squaring+                 | Inc {incVal :: Expr nm val                                   } -- ^ Increment+                 | Add {add1   :: Expr nm val, add2 :: Expr nm val              } -- ^ Addition+                 | Mul {mul1   :: Expr nm val, mul2 :: Expr nm val              } -- ^ Addition+                 | Let {lvar   :: nm, lval ::  Expr nm val, lbody :: Expr nm val} -- ^ Let expression++-- | Create symbolic version of expressions+mkSymbolic [''Expr]++-- | Size of an expression. Used in strong induction.+size :: (SymVal nm, SymVal val) => SExpr nm val -> SInteger+size = smtFunction "exprSize"+     $ \expr -> [sCase| expr of+                   Var _     -> 0+                   Con _     -> 0+                   Sqr a     -> 1 + size a+                   Inc a     -> 1 + size a+                   Add a b   -> 1 + size a `smax` size b+                   Mul a b   -> 1 + size a `smax` size b+                   Let _ a b -> 1 + size a `smax` size b+                |]++-- | Environment, binding names to values+type Env nm val = SList (nm, val)++-- * Functional interpretation++-- | Interpreter, in the usual functional style, taking an arbitrary environment.+interpInEnv :: (SymVal nm, SymVal val, Num (SBV val)) => Env nm val -> SExpr nm val -> SBV val+interpInEnv = smtFunction "interpInEnv"+            $ \env expr ->+                 [sCase| expr of+                    Var nm    -> nm `SL.lookup` env+                    Con v     -> v+                    Sqr a     -> let av = interpInEnv env a in av * av+                    Inc a     -> let av = interpInEnv env a in av + 1+                    Add a b   -> let av = interpInEnv env a; bv = interpInEnv env b in av + bv+                    Mul a b   -> let av = interpInEnv env a; bv = interpInEnv env b in av * bv+                    Let v a b -> let av = interpInEnv env a in interpInEnv (tuple (v, av) .: env) b+                 |]++-- | Interpret starting from empty environment.+interp :: (SymVal nm, SymVal val, Num (SBV val)) => SExpr nm val -> SBV val+interp = interpInEnv []++-- * Virtual machine++-- | Instructions+data Instr nm val = IPushN { ivar :: nm  } -- ^ Push the value of nm from the environment on to the stack+                  | IPushV { ival :: val } -- ^ Push a value on to the stack+                  | IDup                   -- ^ Duplicate the top of the stack+                  | IAdd                   -- ^ Add      the top two elements and push back+                  | IMul                   -- ^ Multiply the top two elements and push back+                  | IBind nm               -- ^ Bind the value on top of stack to name+                  | IForget                -- ^ Pop and ignore the binding on the environment++-- | Create symbolic version of instructions+mkSymbolic [''Instr]++-- | Stack of values.+type Stack val = SList val++-- | Pushing on to the stack.+push :: SymVal val => SBV val -> Stack val  -> Stack val+push = (SL..:)++-- | Top of the stack. If the stack is empty, the result is underspecified.+top :: SymVal val => Stack val  -> SBV val+top = SL.head++-- | Popping from the stack. If the stack is empty, the result is underspecified.+pop :: SymVal val => Stack val  -> Stack val+pop = SL.tail++-- | A pair containing an environment and a stack+type EnvStack nm val = SBV ([(nm, val)], [val])++-- | Executing a single instruction in a given environment and the instruction stack.+-- We produce the new environment, and the new stack.+execute :: (SymVal nm, SymVal val, Num (SBV val)) => EnvStack nm val -> SInstr nm val -> EnvStack nm val+execute envStk instr = let (env, stk) = untuple envStk+                       in tuple [sCase| instr of+                                   IPushN nm   -> (env, push (nm `SL.lookup` env) stk)+                                   IPushV v    -> (env, push v stk)+                                   IDup        -> (env, push (top stk) stk)+                                   IAdd        -> (env, let a = top stk; b = top (pop stk) in push (a + b) (pop (pop stk)))+                                   IMul        -> (env, let a = top stk; b = top (pop stk) in push (a * b) (pop (pop stk)))+                                   IBind nm    -> (push (tuple (nm, top stk)) env, pop stk)+                                   IForget     -> (pop env, stk)+                                |]++-- | Execute a sequence of instructions, in a given stack and env. Returnsg the final environment and the stack. This is a+-- simple fold-left.+run :: (SymVal nm, SymVal val, Num (SBV val)) => EnvStack nm val -> SList (Instr nm val) -> EnvStack nm val+run = SL.foldl execute++-- * Compiler++-- | Convert an expression to a sequence of instructions for our virtual machine.+compile :: (SymVal nm, SymVal val, Num (SBV val)) => SExpr nm val -> SList (Instr nm val)+compile = smtFunction "compile"+        $ \expr -> [sCase| expr of+                      Var nm    -> [sIPushN nm]+                      Con v     -> [sIPushV v]+                      Sqr a     -> compile a SL.++ [sIDup,     sIMul]+                      Inc a     -> compile a SL.++ [sIPushV 1, sIAdd]+                      Add a b   -> compile a SL.++ compile b  SL.++ [sIAdd]+                      Mul a b   -> compile a SL.++ compile b  SL.++ [sIMul]+                      Let v a b -> compile a SL.++ [sIBind v] SL.++ compile b SL.++ [sIForget]+                   |]++-- | Compile and run an expression.+compileAndRun :: (SymVal nm, SymVal val, Num (SBV val)) => SExpr nm val -> SBV val+compileAndRun = top . ST.snd . run (tuple ([], [])) . compile++-- * Correctness++-- | The property we're after is that interpreting an expression is the same as+-- first compiling it to virtual-machine instructions, and then running them.+--+-- >>> runTP (correctness @String @Integer)+-- Inductive lemma: runSeq+--   Step: Base                        Q.E.D.+--   Step: 1                           Q.E.D.+--   Step: 2                           Q.E.D.+--   Step: 3                           Q.E.D.+--   Result:                           Q.E.D.+-- Lemma: runOne                       Q.E.D.+-- Lemma: runTwo+--   Step: 1                           Q.E.D.+--   Step: 2                           Q.E.D.+--   Result:                           Q.E.D.+-- Lemma: runMul                       Q.E.D.+-- Lemma: measureNonNeg                Q.E.D.+-- Inductive lemma (strong): helper+--   Step: Measure is non-negative     Q.E.D.+--   Step: 1 (7 way case split)+--     Step: 1.1.1 (case Var)          Q.E.D.+--     Step: 1.1.2                     Q.E.D.+--     Step: 1.2.1 (case Con)          Q.E.D.+--     Step: 1.2.2                     Q.E.D.+--     Step: 1.2.3                     Q.E.D.+--     Step: 1.3.1 (case Sqr)          Q.E.D.+--     Step: 1.3.2                     Q.E.D.+--     Step: 1.3.3                     Q.E.D.+--     Step: 1.3.4                     Q.E.D.+--     Step: 1.3.5                     Q.E.D.+--     Step: 1.3.6                     Q.E.D.+--     Step: 1.3.7                     Q.E.D.+--     Step: 1.4.1 (case Inc)          Q.E.D.+--     Step: 1.4.2                     Q.E.D.+--     Step: 1.4.3                     Q.E.D.+--     Step: 1.4.4                     Q.E.D.+--     Step: 1.4.5                     Q.E.D.+--     Step: 1.4.6                     Q.E.D.+--     Step: 1.4.7                     Q.E.D.+--     Step: 1.5.1 (case sAdd)         Q.E.D.+--     Step: 1.5.2                     Q.E.D.+--     Step: 1.5.3                     Q.E.D.+--     Step: 1.5.4                     Q.E.D.+--     Step: 1.5.5                     Q.E.D.+--     Step: 1.5.6                     Q.E.D.+--     Step: 1.5.7                     Q.E.D.+--     Step: 1.5.8                     Q.E.D.+--     Step: 1.5.9                     Q.E.D.+--     Step: 1.6.1 (case sMul)         Q.E.D.+--     Step: 1.6.2                     Q.E.D.+--     Step: 1.6.3                     Q.E.D.+--     Step: 1.6.4                     Q.E.D.+--     Step: 1.6.5                     Q.E.D.+--     Step: 1.6.6                     Q.E.D.+--     Step: 1.6.7                     Q.E.D.+--     Step: 1.6.8                     Q.E.D.+--     Step: 1.6.9                     Q.E.D.+--     Step: 1.7.1 (case Let)          Q.E.D.+--     Step: 1.7.2                     Q.E.D.+--     Step: 1.7.3                     Q.E.D.+--     Step: 1.7.4                     Q.E.D.+--     Step: 1.7.5                     Q.E.D.+--     Step: 1.7.6                     Q.E.D.+--     Step: 1.7.7                     Q.E.D.+--     Step: 1.7.8                     Q.E.D.+--     Step: 1.7.9                     Q.E.D.+--     Step: 1.7.10                    Q.E.D.+--     Step: 1.7.11                    Q.E.D.+--     Step: 1.Completeness            Q.E.D.+--   Result:                           Q.E.D.+-- Lemma: correctness+--   Step: 1                           Q.E.D.+--   Step: 2                           Q.E.D.+--   Step: 3                           Q.E.D.+--   Step: 4                           Q.E.D.+--   Result:                           Q.E.D.+-- Functions proven terminating: compile, exprSize, interpInEnv, sbv.foldl, sbv.lookup+-- [Proven] correctness :: Ɐexpr ∷ (Expr String Integer) → Bool+correctness :: forall nm val. (SymVal nm, SymVal val, Num (SBV val)) => TP (Proof (Forall "expr" (Expr nm val) -> SBool))+correctness = do++   -- Running a sequence of instructions that are appended is equivalent to running them in sequence:+   runSeq <- induct "runSeq"+                    (\(Forall @"xs" xs) (Forall @"ys" ys) (Forall @"es" (es :: EnvStack nm val))+                         -> run es (xs SL.++ ys) .== run (run es xs) ys) $+                    \ih (x, xs) ys es -> [] |- run es ((x .: xs) SL.++ ys)+                                            =: run es (x .: (xs SL.++ ys))+                                            =: run (execute es x) (xs SL.++ ys)+                                            ?? ih `at` (Inst @"ys" ys, Inst @"es" (execute es x))+                                            =: run (run es (x .: xs)) ys+                                            =: qed++   -- The following few lemmas make the proof go thru faster, even though they're really easy to prove themselves.++   -- Running one instruction is equal to just executing it+   runOne <- lemma "runOne"+                   (\(Forall @"es" (es :: EnvStack nm val)) (Forall @"i" i) -> run es [i] .== execute es i)+                   []++   -- Same for two+   runTwo <- calc "runTwo"+                   (\(Forall @"es" (es :: EnvStack nm val)) (Forall @"i" i) (Forall @"j" j)+                             -> run es [i, j] .== execute (execute es i) j) $+                   \es i j -> [] |- run es [i, j]+                                 =: run (execute es i) [j]+                                 =: execute (execute es i) j+                                 =: qed++   -- Provers struggle with multiplication, so help them a bit here even though this is really+   -- a trivial proof. What's hard is the correct instantiation of it, so abstracting it away helps+   -- us speed up the solver.+   runMul <- lemma "runMul"+                    (\(Forall @"a" a) (Forall @"b" b) (Forall  @"env" (env :: Env nm val)) (Forall @"stk" stk)+                                 ->   execute (tuple (env, push a (push b stk))) sIMul+                                 .==  tuple (env, push (a * b) stk))+                   []++   -- We will use the size of the expression as the measure. We need to show that it is+   -- always positive for the inductive proof to go thru.+   measureNonNeg <- inductiveLemma "measureNonNeg"+                                   (\(Forall @"e" (e :: SExpr nm val)) -> size e .>= 0)+                                   []++   -- A more general version of the theorem, starting with an arbitrary env and stack.+   -- We prove this using the induction principle for expressions.+   helper <- sInductWith cvc5 "helper"+               (\(Forall @"e" e) (Forall @"env" (env :: Env nm val)) (Forall @"stk" stk) ->+                             run (tuple (env, stk)) (compile e)+                         .== tuple (env, push (interpInEnv env e) stk))+               (\e _ _  -> size e, [proofOf measureNonNeg]) $+               \ih e env stk -> []+                 |- [pCase| e of+                      Var nm     -> run (tuple (env, stk)) (compile (sVar nm))+                                 ?? "case Var"+                                 =: run (tuple (env, stk)) [sIPushN nm]+                                 =: tuple (env, push (interpInEnv env (sVar nm)) stk)+                                 =: qed++                      Con v      -> run (tuple (env, stk)) (compile (sCon v))+                                 ?? "case Con"+                                 =: run (tuple (env, stk)) [sIPushV v]+                                 =: tuple (env, push v stk)+                                 =: tuple (env, push (interpInEnv env (sCon v)) stk)+                                 =: qed++                      Sqr a      -> run (tuple (env, stk)) (compile (sSqr a))+                                 ?? "case Sqr"+                                 =: run (tuple (env, stk)) (compile a SL.++ [sIDup, sIMul])+                                 ?? runSeq+                                 =: run (run (tuple (env, stk)) (compile a)) [sIDup, sIMul]+                                 ?? ih `at` (Inst @"e" a, Inst @"env" env, Inst @"stk" stk)+                                 =: let stk' = push (interpInEnv env a) stk+                                 in run (tuple (env, stk')) [sIDup, sIMul]+                                 ?? runTwo `at` (Inst @"es" (tuple (env, stk')), Inst @"i" sIDup, Inst @"j" sIMul)+                                 =: execute (execute (tuple (env, stk')) sIDup) sIMul+                                 =: let stk'' = push (interpInEnv env a) stk'+                                 in execute (tuple (env, stk'')) sIMul+                                 =: tuple (env, push (interpInEnv env a * interpInEnv env a) stk)+                                 =: tuple (env, push (interpInEnv env (sSqr a)) stk)+                                 =: qed++                      Inc a      -> run (tuple (env, stk)) (compile (sInc a))+                                 ?? "case Inc"+                                 =: run (tuple (env, stk)) (compile a SL.++ [sIPushV 1, sIAdd])+                                 ?? runSeq+                                 =: run (run (tuple (env, stk)) (compile a)) [sIPushV 1, sIAdd]+                                 ?? ih `at` (Inst @"e" a, Inst @"env" env, Inst @"stk" stk)+                                 =: let stk' = push (interpInEnv env a) stk+                                 in run (tuple (env, stk')) [sIPushV 1, sIAdd]+                                 ?? runTwo `at` (Inst @"es" (tuple (env, stk')), Inst @"i" (sIPushV 1), Inst @"j" sIAdd)+                                 =: execute (execute (tuple (env, stk')) (sIPushV 1)) sIAdd+                                 =: let stk'' = push 1 stk'+                                 in execute (tuple (env, stk'')) sIAdd+                                 =: tuple (env, push (1 + interpInEnv env a) stk)+                                 =: tuple (env, push (interpInEnv env (sInc a)) stk)+                                 =: qed++                      Add a b    -> run (tuple (env, stk)) (compile (sAdd a b))+                                 ?? "case sAdd"+                                 =: run (tuple (env, stk)) (compile a SL.++ compile b SL.++ [sIAdd])+                                 ?? runSeq+                                 =: run (run (tuple (env, stk)) (compile a)) (compile b SL.++ [sIAdd])+                                 ?? ih `at` (Inst @"e" a, Inst @"env" env, Inst @"stk" stk)+                                 =: let stk' = push (interpInEnv env a) stk+                                 in run (tuple (env, stk')) (compile b SL.++ [sIAdd])+                                 ?? runSeq+                                 =: run (run (tuple (env, stk')) (compile b)) [sIAdd]+                                 ?? ih `at` (Inst @"e" b, Inst @"env" env, Inst @"stk" stk')+                                 =: let stk'' = push (interpInEnv env b) stk'+                                 in run (tuple (env, stk'')) [sIAdd]+                                 ?? runOne `at` (Inst @"es" (tuple (env, stk'')), Inst @"i" sIAdd)+                                 =: execute (tuple (env, stk'')) sIAdd+                                 =: tuple (env, push (interpInEnv env b + interpInEnv env a) stk)+                                 =: tuple (env, push (interpInEnv env a + interpInEnv env b) stk)+                                 =: tuple (env, push (interpInEnv env (sAdd a b)) stk)+                                 =: qed++                      Mul a b    -> run (tuple (env, stk)) (compile (sMul a b))+                                 ?? "case sMul"+                                 =: run (tuple (env, stk)) (compile a SL.++ compile b SL.++ [sIMul])+                                 ?? runSeq+                                 =: run (run (tuple (env, stk)) (compile a)) (compile b SL.++ [sIMul])+                                 ?? ih `at` (Inst @"e" a, Inst @"env" env, Inst @"stk" stk)+                                 =: let stk' = push (interpInEnv env a) stk+                                 in run (tuple (env, stk')) (compile b SL.++ [sIMul])+                                 ?? runSeq+                                 =: run (run (tuple (env, stk')) (compile b)) [sIMul]+                                 ?? ih `at` (Inst @"e" b, Inst @"env" env, Inst @"stk" stk')+                                 =: let stk'' = push (interpInEnv env b) stk'+                                 in run (tuple (env, stk'')) [sIMul]+                                 ?? runOne `at` (Inst @"es" (tuple (env, stk'')), Inst @"i" sIMul)+                                 =: execute (tuple (env, stk'')) sIMul+                                 ?? runMul `at` ( Inst @"a"   (interpInEnv env b)+                                                , Inst @"b"   (interpInEnv env a)+                                                , Inst @"env" env+                                                , Inst @"stk" stk)+                                 =: tuple (env, push (interpInEnv env b * interpInEnv env a) stk)+                                 =: tuple (env, push (interpInEnv env a * interpInEnv env b) stk)+                                 =: tuple (env, push (interpInEnv env (sMul a b)) stk)+                                 =: qed++                      Let nm a b -> run (tuple (env, stk)) (compile (sLet nm a b))+                                 ?? "case Let"+                                 =: run (tuple (env, stk)) (compile a SL.++ [sIBind nm] SL.++ compile b SL.++ [sIForget])+                                 ?? runSeq+                                 =: run (run (tuple (env, stk)) (compile a)) ([sIBind nm] SL.++ compile b SL.++ [sIForget])+                                 ?? ih `at` (Inst @"e" a, Inst @"env" env, Inst @"stk" stk)+                                 =: let stk' = push (interpInEnv env a) stk+                                 in run (tuple (env, stk')) ([sIBind nm] SL.++ compile b SL.++ [sIForget])+                                 ?? runSeq+                                 =: run (run (tuple (env, stk')) [sIBind nm]) (compile b SL.++ [sIForget])+                                 ?? runOne+                                 =: run (execute (tuple (env, stk')) (sIBind nm)) (compile b SL.++ [sIForget])+                                 =: let env' = push (tuple (nm, interpInEnv env a)) env+                                 in run (tuple (env', stk)) (compile b SL.++ [sIForget])+                                 ?? runSeq+                                 =: run (run (tuple (env', stk)) (compile b)) [sIForget]+                                 ?? ih `at` (Inst @"e" b, Inst @"env" env', Inst @"stk" stk)+                                 =: let stk'' = push (interpInEnv env' b) stk+                                 in run (tuple (env', stk'')) [sIForget]+                                 ?? runOne+                                 =: execute (tuple (env', stk'')) sIForget+                                 =: tuple (env, stk'')+                                 =: tuple (env, push (interpInEnv env (sLet nm a b)) stk)+                                 =: qed+                    |]++   -- We can now prove the final correctness theorem, based on the helper.+   calc "correctness"+        (\(Forall @"expr" (e :: SExpr nm val)) -> compileAndRun e .== interp e) $+        \(e :: SExpr nm val) -> [] |- compileAndRun e+                                   =: top (ST.snd (run (tuple ([], [])) (compile e)))+                                   ?? helper `at` (Inst @"e" e, Inst @"env" [], Inst @"stk" [])+                                   =: top (ST.snd (tuple ([] :: Env nm val, push (interpInEnv [] e) [])))+                                   =: interpInEnv [] e+                                   =: interp e+                                   =: qed
Documentation/SBV/Examples/Transformers/SymbolicEval.hs view
@@ -20,7 +20,6 @@ -- named @x@ and @y@. ----------------------------------------------------------------------------- -{-# LANGUAGE CPP                        #-} {-# LANGUAGE DeriveFunctor              #-} {-# LANGUAGE GADTs                      #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-}@@ -41,12 +40,8 @@ import Data.SBV.Internals (SBV(SBV), unSBV) import Data.SBV.Trans.Control --- Starting with base 4.16; Data.Bits exports And, which conflicts with the definition here-#if MIN_VERSION_base(4,16,0)+-- Data.Bits exports And, which conflicts with the definition here import Data.SBV.Trans hiding(And)-#else-import Data.SBV.Trans-#endif  -- * Allocation of symbolic variables, so we can extract a model later. 
Documentation/SBV/Examples/Uninterpreted/AUF.hs view
@@ -27,8 +27,7 @@ -- The function @read@ and @write@ are usual array operations. ----------------------------------------------------------------------------- -{-# LANGUAGE CPP                 #-}-{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE CPP #-}  {-# OPTIONS_GHC -Wall -Werror #-} 
Documentation/SBV/Examples/Uninterpreted/Deduce.hs view
@@ -9,10 +9,7 @@ -- Demonstrates uninterpreted sorts and how they can be used for deduction. ----------------------------------------------------------------------------- -{-# LANGUAGE DeriveAnyClass     #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE StandaloneDeriving #-}-{-# LANGUAGE TemplateHaskell    #-}+{-# LANGUAGE TemplateHaskell #-}  {-# OPTIONS_GHC -Wall -Werror #-} @@ -33,7 +30,7 @@  -- | Make this sort uninterpreted. This splice will automatically introduce -- the type 'SB' into the environment, as a synonym for 'SBV' 'B'.-mkUninterpretedSort ''B+mkSymbolic [''B]  ----------------------------------------------------------------------------- -- * Uninterpreted connectives over 'B'@@ -67,8 +64,8 @@                   p <- free "p"                   q <- free "q"                   r <- free "r"-                  return $   not (p `or` (q `and` r))-                         .== (not p `and` not q) `or` (not p `and` not r)+                  pure $   not (p `or` (q `and` r))+                       .== (not p `and` not q) `or` (not p `and` not r)  -- Hlint gets confused and thinks the use of @not@ above is from the prelude. Sigh. {- HLint ignore test "Redundant not" -}
+ Documentation/SBV/Examples/Uninterpreted/EUFLogic.hs view
@@ -0,0 +1,340 @@+-----------------------------------------------------------------------------+-- |+-- Module    : Documentation.SBV.Examples.Uninterpreted.EUFLogic+-- License   : BSD3+-- Stability : experimental+--+-- Demonstrates the ability to generate uninterpreted functions of arbitrarily+-- many arguments, whose types are generated programmatically. The high-level+-- idea of this module is to provide a strongly-typed representation, using a+-- GADT, of a logic that includes uninterpreted functions. This module then+-- defines an interpretation of this logic into SBV, which it uses to perform+-- SMT queries in the logic.+-----------------------------------------------------------------------------++{-# LANGUAGE CPP                  #-}+{-# LANGUAGE DataKinds            #-}+{-# LANGUAGE FlexibleContexts     #-}+{-# LANGUAGE FlexibleInstances    #-}+{-# LANGUAGE GADTs                #-}+{-# LANGUAGE RankNTypes           #-}+{-# LANGUAGE TypeFamilies         #-}+{-# LANGUAGE TypeOperators        #-}+{-# LANGUAGE UndecidableInstances #-}++module Documentation.SBV.Examples.Uninterpreted.EUFLogic where++import Data.SBV++import Control.Monad.State++import Data.Kind+import Data.Type.Equality+import Data.Map (Map)+import qualified Data.Map as Map++import GHC.TypeLits++#ifdef DOCTEST+-- $setup+-- >>> import Data.SBV+#endif++----------------------------------------------------------------------+-- * Types of the EUF Logic+----------------------------------------------------------------------++-- | The datakind for the types in our EUF logic.+data EUFType = Tp_Bool | Tp_BV Natural++-- | A singleton type for natural numbers that can be used as the widths of bitvectors.+data BVWidth w = (KnownNat w, BVIsNonZero w) => BVWidth (SNat w)++-- | Create a t'BVWidth' object for a 'KnownNat' that is non-zero+knownBVWidth :: (KnownNat w, BVIsNonZero w) => BVWidth w+knownBVWidth = BVWidth natSing++-- | TestEquality instance for BVWidth.+instance TestEquality BVWidth where+  testEquality (BVWidth w1) (BVWidth w2) | Just Refl <- testEquality w1 w2 = Just Refl+                                         | True                            = Nothing++-- | A singleton type that represents type-level 'EUFType's at the object level+data TypeRepr (tp :: EUFType) where+  Repr_Bool :: TypeRepr Tp_Bool+  Repr_BV   :: BVWidth w -> TypeRepr (Tp_BV w)++-- | TestEquality instance for Type representations+instance TestEquality TypeRepr where+  testEquality Repr_Bool    Repr_Bool                                      = Just Refl+  testEquality (Repr_BV w1) (Repr_BV w2) | Just Refl <- testEquality w1 w2 = Just Refl+  testEquality _            _                                              = Nothing++-- | A list of 'TypeRepr's for each type in a type-level list+data TypeReprs tps where+  Repr_Nil  :: TypeReprs '[]+  Repr_Cons :: TypeRepr tp -> TypeReprs tps -> TypeReprs (tp ': tps)++instance TestEquality TypeReprs where+  testEquality Repr_Nil             Repr_Nil                                                    = Just Refl+  testEquality (Repr_Cons tps1 tp1) (Repr_Cons tps2 tp2) | Just Refl <- testEquality tps1 tps2+                                                         , Just Refl <- testEquality tp1  tp2   = Just Refl+  testEquality _                    _                                                           = Nothing++-- | An 'EUFType' with a known 'TypeRepr' representation+class KnownEUFType tp where+  knownEUFType :: TypeRepr tp++-- | Mapping from Tp_Bool+instance KnownEUFType Tp_Bool where+  knownEUFType = Repr_Bool++-- | Mapping from Tp_BV+instance (KnownNat w, BVIsNonZero w) => KnownEUFType (Tp_BV w) where+  knownEUFType = Repr_BV (BVWidth natSing)++-- | A sequence of types t'EUFType' with a known 'TypeReprs' representation+class KnownEUFTypes tps where+  knownEUFTypes :: TypeReprs tps++instance KnownEUFTypes '[] where+  knownEUFTypes = Repr_Nil++instance (KnownEUFType tp, KnownEUFTypes tps) => KnownEUFTypes (tp ': tps) where+  knownEUFTypes = Repr_Cons knownEUFType knownEUFTypes++----------------------------------------------------------------------+-- * Operations of the EUF Logic+----------------------------------------------------------------------++-- | An uninterpreted function in our EUF logic, which is a string name plus the input and output types.+data UnintOp (ins :: [EUFType]) (out :: EUFType) = UnintOp { unintOpName :: String+                                                           , unintOpIns :: TypeReprs ins+                                                           , unintOpOut :: TypeRepr  out+                                                           }++-- | The operations of our EUF logic, which are indexed by a list of 0 or more+-- input types and a single output type.+data Op (ins :: [EUFType]) (out :: EUFType) where+  -- Uninterpreted functions+  Op_Unint :: UnintOp ins out -> Op ins out++  -- Boolean operations+  Op_And        :: Op (Tp_Bool ': Tp_Bool ': '[]) Tp_Bool+  Op_Or         :: Op (Tp_Bool ': Tp_Bool ': '[]) Tp_Bool+  Op_Not        :: Op (Tp_Bool ': '[])            Tp_Bool+  Op_BoolLit    :: Bool -> Op '[] Tp_Bool+  Op_IfThenElse :: TypeRepr a -> Op (Tp_Bool ': a ': a ': '[]) a++  -- Bitvector operations+  Op_Plus   :: BVWidth w -> Op (Tp_BV w ': Tp_BV w ': '[]) (Tp_BV w)+  Op_Minus  :: BVWidth w -> Op (Tp_BV w ': Tp_BV w ': '[]) (Tp_BV w)+  Op_Times  :: BVWidth w -> Op (Tp_BV w ': Tp_BV w ': '[]) (Tp_BV w)++  Op_Abs    :: BVWidth w -> Op (Tp_BV w ': '[]) (Tp_BV w)+  Op_Signum :: BVWidth w -> Op (Tp_BV w ': '[]) (Tp_BV w)++  Op_BVLit  :: BVWidth w -> Integer -> Op '[] (Tp_BV w)++  Op_BVEq   :: BVWidth w -> Op (Tp_BV w ': Tp_BV w ': '[]) Tp_Bool+  Op_BVLt   :: BVWidth w -> Op (Tp_BV w ': Tp_BV w ': '[]) Tp_Bool++-- | Create an uninterpreted 'Op' of known type+mkUnintOp :: (KnownEUFTypes ins, KnownEUFType out) => String -> Op ins out+mkUnintOp nm = Op_Unint $ UnintOp nm knownEUFTypes knownEUFType++-- | Get the input types and output type of an 'Op'+opInsOut :: Op ins out -> (TypeReprs ins, TypeRepr out)+opInsOut (Op_Unint uop)                      = (unintOpIns uop, unintOpOut uop)+opInsOut Op_And                              = (knownEUFTypes, knownEUFType)+opInsOut Op_Or                               = (knownEUFTypes, knownEUFType)+opInsOut Op_Not                              = (knownEUFTypes, knownEUFType)+opInsOut (Op_BoolLit _)                      = (knownEUFTypes, knownEUFType)+opInsOut (Op_IfThenElse Repr_Bool)           = (knownEUFTypes, knownEUFType)+opInsOut (Op_IfThenElse (Repr_BV BVWidth{})) = (knownEUFTypes, knownEUFType)+opInsOut (Op_Plus       BVWidth{})           = (knownEUFTypes, knownEUFType)+opInsOut (Op_Minus      BVWidth{})           = (knownEUFTypes, knownEUFType)+opInsOut (Op_Times      BVWidth{})           = (knownEUFTypes, knownEUFType)+opInsOut (Op_Abs        BVWidth{})           = (knownEUFTypes, knownEUFType)+opInsOut (Op_Signum     BVWidth{})           = (knownEUFTypes, knownEUFType)+opInsOut (Op_BVLit      BVWidth{} _)         = (knownEUFTypes, knownEUFType)+opInsOut (Op_BVEq       BVWidth{})           = (knownEUFTypes, knownEUFType)+opInsOut (Op_BVLt       BVWidth{})           = (knownEUFTypes, knownEUFType)++-- | Get the input types of an 'Op'+opIns :: Op ins out -> TypeReprs ins+opIns = fst . opInsOut++----------------------------------------------------------------------+-- * Expressions of the EUF Logic+----------------------------------------------------------------------++-- | The expressions of our EUF logic, which are just operations applied to argument expressions.+data EUFExpr tp where+  EUFExpr :: Op ins out -> EUFExprs ins -> EUFExpr out++-- | A sequence of expressions for each type in a type-level list+data EUFExprs tps where+  EUFExprsNil  :: EUFExprs '[]+  EUFExprsCons :: EUFExpr tp -> EUFExprs tps -> EUFExprs (tp ': tps)++-- | Build the type @t'EUFExpr' in1 -> ... -> t'EUFExpr' inn -> out@+type family EUFExprFun (ins :: [EUFType]) (out :: EUFType) :: Type where+  EUFExprFun '[]         out = EUFExpr out+  EUFExprFun (tp ': tps) out = EUFExpr tp -> EUFExprFun tps out++-- | Build an t'EUFExprFun' from a function on t'EUFExprs'+lambdaEUFExprFun :: TypeReprs ins -> (EUFExprs ins -> EUFExpr out) -> EUFExprFun ins out+lambdaEUFExprFun Repr_Nil          f = f EUFExprsNil+lambdaEUFExprFun (Repr_Cons _ tps) f = \e -> lambdaEUFExprFun tps (f . EUFExprsCons e)++-- | Apply an 'Op' to t'EUFExprs' for its input types, returning an t'EUFExpr' for its output type+applyOp :: Op ins out -> EUFExprFun ins out+applyOp op = lambdaEUFExprFun (opIns op) (EUFExpr op)++instance (KnownNat w, BVIsNonZero w) => Num (EUFExpr (Tp_BV w)) where+  fromInteger i = applyOp (Op_BVLit knownBVWidth i)++  e1 + e2 = applyOp (Op_Plus  knownBVWidth) e1 e2+  e1 - e2 = applyOp (Op_Minus knownBVWidth) e1 e2+  e1 * e2 = applyOp (Op_Times knownBVWidth) e1 e2++  abs    e = applyOp (Op_Abs    knownBVWidth) e+  signum e = applyOp (Op_Signum knownBVWidth) e++-- | Build an expression from an uninterpreted operation of a known type+mkUnintExpr :: KnownEUFType tp => String -> EUFExpr tp+mkUnintExpr nm = EUFExpr (mkUnintOp nm) EUFExprsNil++----------------------------------------------------------------------+-- * Interpreting the EUF Logic into SBV+----------------------------------------------------------------------++-- | Convert an 'EUFType' to a type of SBV expressions+type family Type2SBV (tp :: EUFType) :: Type where+  Type2SBV Tp_Bool   = SBool+  Type2SBV (Tp_BV w) = SBV (WordN w)++-- | Convert the type inputs plus output of an 'Op' to a function over 'SBV' values+type family OpTypes2SBV (ins :: [EUFType]) (out :: EUFType) :: Type where+  OpTypes2SBV '[] out         = Type2SBV out+  OpTypes2SBV (tp ': tps) out = Type2SBV tp -> OpTypes2SBV tps out++-- | Create an 'SMTDefinable' instance for the type returned by 'OpTypes2SBV' and pass it to a local function+withSMTDefOpTypes :: TypeReprs ins -> TypeRepr out -> (SMTDefinable (OpTypes2SBV ins out) => a) -> a+withSMTDefOpTypes Repr_Nil                            Repr_Bool           f = f+withSMTDefOpTypes Repr_Nil                            (Repr_BV BVWidth{}) f = f+withSMTDefOpTypes (Repr_Cons Repr_Bool ins)           out                 f = withSMTDefOpTypes ins out f+withSMTDefOpTypes (Repr_Cons (Repr_BV BVWidth{}) ins) out                 f = withSMTDefOpTypes ins out f++-- | An uninterpreted function that has been resolved to an 'SBV' function+data ResolvedUnintOp = forall ins out. ResolvedUnintOp (UnintOp ins out) (OpTypes2SBV ins out)++-- | A 'Map' for resolving uninterpreted operations+type UnintMap = Map String ResolvedUnintOp++-- | Look up the uninterpreted op associated with a 'String' in an 'UnintMap' at+-- a particular type, raising an error if that 'String' is associated with a+-- different type. If the 'String' is not associated with any uninterpreted+-- function, create one and return it, updating the 'UnintMap'.+unintEnsure :: UnintOp ins out -> UnintMap -> (OpTypes2SBV ins out, UnintMap)+unintEnsure uop m+  | Just (ResolvedUnintOp uop' f) <- Map.lookup (unintOpName uop) m+  , Just Refl <- testEquality (unintOpIns uop) (unintOpIns uop')+  , Just Refl <- testEquality (unintOpOut uop) (unintOpOut uop')+  = (f, m)+unintEnsure uop m+  | Just _ <- Map.lookup (unintOpName uop) m+  = error $ "unintEnsure: uninterpreted op " ++ unintOpName uop ++ " used at incorrect type"+unintEnsure uop m =+  withSMTDefOpTypes (unintOpIns uop) (unintOpOut uop)+     $ let f = uninterpret (unintOpName uop)+       in (f, Map.insert (unintOpName uop) (ResolvedUnintOp uop f) m)++-- | The monad for interpreting t'EUFExpr's into SBV, which is just a state monad+-- over an 'UnintMap'+type InterpM = State UnintMap++-- | Run an 'InterpM' computation starting with the empty 'UnintMap'+runInterpM :: InterpM a -> a+runInterpM = flip evalState Map.empty++-- | Interpret an 'Op' into a function over SBV values+interpOp :: Op ins out -> InterpM (OpTypes2SBV ins out)+interpOp (Op_Unint uop)                      = state (unintEnsure uop)+interpOp Op_And                              = pure (.&&)+interpOp Op_Or                               = pure (.||)+interpOp Op_Not                              = pure sNot+interpOp (Op_BoolLit    b)                   = pure $ fromBool b+interpOp (Op_IfThenElse Repr_Bool)           = pure ite+interpOp (Op_IfThenElse (Repr_BV BVWidth{})) = pure ite+interpOp (Op_Plus       BVWidth{})           = pure (+)+interpOp (Op_Minus      BVWidth{})           = pure (-)+interpOp (Op_Times      BVWidth{})           = pure (*)+interpOp (Op_Abs        BVWidth{})           = pure abs+interpOp (Op_Signum     BVWidth{})           = pure signum+interpOp (Op_BVLit      BVWidth{} i)         = pure $ fromInteger i+interpOp (Op_BVEq       BVWidth{})           = pure (.==)+interpOp (Op_BVLt       BVWidth{})           = pure (.<)++-- | Interpret an t'EUFExpr' into an SBV value.+interpEUFExpr :: EUFExpr tp -> InterpM (Type2SBV tp)+interpEUFExpr (EUFExpr op args) = do f <- interpOp op+                                     interpApplyEUFExprs op f args++-- | Apply an interpretation of an operator to the interpretations of a sequence of arguments for it.+interpApplyEUFExprs :: ghost out -> OpTypes2SBV ins out -> EUFExprs ins -> InterpM (Type2SBV out)+interpApplyEUFExprs _   f EUFExprsNil         = pure f+interpApplyEUFExprs out f (EUFExprsCons e es) = do f_app <- f <$> interpEUFExpr e+                                                   interpApplyEUFExprs out f_app es++-- | Top-level call to interpret an t'EUFExpr' to an 'SBV' value+interpEUF :: EUFExpr a -> Type2SBV a+interpEUF = runInterpM . interpEUFExpr++----------------------------------------------------------------------+-- * Examples+----------------------------------------------------------------------++-- | Example EUF problem+--+-- > f (f (a) - f (b)) /= f (c), b >= a, a >= b + c, c >= 0+--+-- from <https://goto.ucsd.edu/~rjhala/classes/sp13/cse291/slides/lec-smt.markdown.pdf>+-- noting that @x >= y@ is the same as @not (x < y)@. We have:+--+-- >>> sat $ interpEUF example+-- Satisfiable. Model:+--   a =  996506182 :: Word32+--   b = 3298461113 :: Word32+--   c = 1445036292 :: Word32+-- <BLANKLINE>+--   f :: Word32 -> Word32+--   f 0          = 4188219399+--   f 1445036292 = 285239361+--   f 3298461113 = 4054018119+--   f 996506182  = 4054018119+--   f _          = 0+--+--  Note that the original example is unsatisfiable over integers. It is however satisfiable+--  over 32-bit words, hence the model above.+example :: EUFExpr Tp_Bool+example =+  applyOp Op_And (applyOp Op_Not (applyOp (Op_BVEq knownBVWidth)+                                          (applyOp f (applyOp f a - applyOp f b))+                                          (applyOp f c)))+                 (applyOp Op_And (applyOp Op_Not (applyOp (Op_BVLt knownBVWidth) b a))+                                 (applyOp Op_And+                                          (applyOp Op_Not (applyOp (Op_BVLt knownBVWidth) a (b + c)))+                                          (applyOp Op_Not (applyOp (Op_BVLt knownBVWidth) c 0))))+  where+    f :: Op '[Tp_BV 32] (Tp_BV 32)+    f = mkUnintOp "f"++    a, b, c :: EUFExpr (Tp_BV 32)+    a = mkUnintExpr "a"+    b = mkUnintExpr "b"+    c = mkUnintExpr "c"++{- HLint ignore "Use camelCase" -}+{- HLint ignore "Eta reduce"    -}
Documentation/SBV/Examples/Uninterpreted/Multiply.hs view
@@ -13,7 +13,7 @@ {-# LANGUAGE CPP                 #-} {-# LANGUAGE ScopedTypeVariables #-} -{-# OPTIONS_GHC -Wall -Werror -Wno-incomplete-uni-patterns #-}+{-# OPTIONS_GHC -Wall -Werror #-}  module Documentation.SBV.Examples.Uninterpreted.Multiply where @@ -86,5 +86,6 @@ -- and rest assured that we have a correctly synthesized circuit! synthMul22 :: ConstraintSet synthMul22 = constrain $ \(Forall (a :: SWord8)) (Forall b) -> mul22 (lsb2 a) (lsb2 b) .== lsb2 (a * b)-  where lsb2 x = let [x1, x0] = reverse $ take 2 $ blastLE x-                 in (x1, x0)+  where lsb2 x = case blastLE x of+                   (x0 : x1 : _) -> (x1, x0)+                   _             -> error "synthMul22: Can't get enough bits from x!"
Documentation/SBV/Examples/Uninterpreted/Sort.hs view
@@ -9,10 +9,7 @@ -- Demonstrates uninterpreted sorts, together with axioms. ----------------------------------------------------------------------------- -{-# LANGUAGE DeriveAnyClass     #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE StandaloneDeriving #-}-{-# LANGUAGE TemplateHaskell    #-}+{-# LANGUAGE TemplateHaskell #-}  {-# OPTIONS_GHC -Wall -Werror #-} @@ -24,10 +21,10 @@ -- in the backend SMT solver. data Q --- | Make 'Q' an uinterpreted sort. This will automatically introduce the+-- | Make 'Q' an uninterpreted sort. This will automatically introduce the -- type 'SQ' into our environment, which is the symbolic version of the -- carrier type 'Q'.-mkUninterpretedSort ''Q+mkSymbolic [''Q]  -- | Declare an uninterpreted function that works over Q's f :: SQ -> SQ@@ -45,7 +42,7 @@ --   f _ = Q_1 t1 :: IO SatResult t1 = sat $ do x <- free "x"-              return $ f x ./= x+              pure $ f x ./= x  -- | This is a variant on the first example, except we also add an axiom -- for the sort, stating that the domain 'Q' has only one element. In this case@@ -56,4 +53,4 @@ t2 :: IO SatResult t2 = sat $ do x <- free "x"               constrain $ \(Forall a) (Forall b) -> a .== (b :: SQ)-              return $ f x ./= x+              pure $ f x ./= x
Documentation/SBV/Examples/Uninterpreted/UISortAllSat.hs view
@@ -10,11 +10,8 @@ -- Thanks to Eric Seidel for the idea. ----------------------------------------------------------------------------- -{-# LANGUAGE CPP                #-}-{-# LANGUAGE DeriveAnyClass     #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE StandaloneDeriving #-}-{-# LANGUAGE TemplateHaskell    #-}+{-# LANGUAGE CPP             #-}+{-# LANGUAGE TemplateHaskell #-}  {-# OPTIONS_GHC -Wall -Werror #-} @@ -33,7 +30,7 @@  -- | Make 'L' into an uninterpreted sort, automatically introducing 'SL' -- as a synonym for 'SBV' 'L'.-mkUninterpretedSort ''L+mkSymbolic [''L]  -- | An uninterpreted "classify" function. Really, we only care about -- the fact that such a function exists, not what it does.@@ -88,4 +85,4 @@            constrain $ classify l0 .== 0            constrain $ classify l1 .== 1            constrain $ classify l2 .== 2-           return $ l .== l0 .|| l .== l1 .|| l .== l2+           pure $ l .== l0 .|| l .== l1 .|| l .== l2
Documentation/SBV/Examples/WeakestPreconditions/Append.hs view
@@ -37,7 +37,7 @@  -- * Program state --- | The state of the length program, paramaterized over the element type @a@+-- | The state of the length program, parameterized over the element type @a@ data AppS a = AppS { xs :: a  -- ^ The first input list                    , ys :: a  -- ^ The second input list                    , ts :: a  -- ^ Temporary variable@@ -89,7 +89,7 @@  -- | A program is the algorithm, together with its pre- and post-conditions. imperativeAppend :: Program A-imperativeAppend = Program { setup         = return ()+imperativeAppend = Program { setup         = pure ()                            , precondition  = const sTrue  -- no precondition                            , program       = algorithm                            , postcondition = postcondition
Documentation/SBV/Examples/WeakestPreconditions/Basics.hs view
@@ -90,7 +90,7 @@  -- | A program is the algorithm, together with its pre- and post-conditions. imperativeInc :: Stmt I -> Stmt I -> Program I-imperativeInc before after = Program { setup         = return ()+imperativeInc before after = Program { setup         = pure ()                                      , precondition  = pre                                      , program       = algorithm before after                                      , postcondition = post
Documentation/SBV/Examples/WeakestPreconditions/Fib.hs view
@@ -39,7 +39,7 @@  -- * Program state --- | The state for the sum program, parameterized over a base type @a@.+-- | The state for the fibonacci program, parameterized over a base type @a@. data FibS a = FibS { n :: a    -- ^ The input value                    , i :: a    -- ^ Loop counter                    , k :: a    -- ^ tracks @fib (i+1)@
Documentation/SBV/Examples/WeakestPreconditions/GCD.hs view
@@ -45,7 +45,7 @@  -- * Program state --- | The state for the sum program, parameterized over a base type @a@.+-- | The state for the GCD program, parameterized over a base type @a@. data GCDS a = GCDS { x :: a    -- ^ First value                    , y :: a    -- ^ Second value                    , i :: a    -- ^ Copy of x to be modified
Documentation/SBV/Examples/WeakestPreconditions/IntDiv.hs view
@@ -66,7 +66,7 @@ -- -- Note that we need to explicitly annotate each loop with its invariant and the termination -- measure. For convenience, we take those two as parameters for simplicity.-algorithm :: Invariant D -> Maybe (Measure D) -> Stmt D+algorithm :: Invariant D -> Maybe (WPMeasure D) -> Stmt D algorithm inv msr = Seq [ assert "x, y >= 0" $ \DivS{x, y} -> x .>= 0 .&& y .>= 0                         , Assign $ \st@DivS{x} -> st{r = x, q = 0}                         , While "y <= r"@@ -92,8 +92,8 @@ noChange = [stable "x" x, stable "y" y]  -- | A program is the algorithm, together with its pre- and post-conditions.-imperativeDiv :: Invariant D -> Maybe (Measure D) -> Program D-imperativeDiv inv msr = Program { setup         = return ()+imperativeDiv :: Invariant D -> Maybe (WPMeasure D) -> Program D+imperativeDiv inv msr = Program { setup         = pure ()                                 , precondition  = pre                                 , program       = algorithm inv msr                                 , postcondition = post@@ -110,7 +110,7 @@  -- | The measure. In each iteration @r@ decreases, but always remains positive. -- Since @y@ is strictly positive, @r@ can serve as a measure for the loop.-measure :: Measure D+measure :: WPMeasure D measure DivS{r} = [r]  -- | Check that the program terminates and the post condition holds. We have:
Documentation/SBV/Examples/WeakestPreconditions/IntSqrt.hs view
@@ -72,7 +72,7 @@ -- -- Note that we need to explicitly annotate each loop with its invariant and the termination -- measure. For convenience, we take those two as parameters for simplicity.-algorithm :: Invariant S -> Maybe (Measure S) -> Stmt S+algorithm :: Invariant S -> Maybe (WPMeasure S) -> Stmt S algorithm inv msr = Seq [ assert "x >= 0" $ \SqrtS{x} -> x .>= 0                         , Assign $ \st -> st{sqrt = 0, i = 1, j = 1}                         , While "i <= x"@@ -102,8 +102,8 @@ noChange = [stable "x" x]  -- | A program is the algorithm, together with its pre- and post-conditions.-imperativeSqrt :: Invariant S -> Maybe (Measure S) -> Program S-imperativeSqrt inv msr = Program { setup         = return ()+imperativeSqrt :: Invariant S -> Maybe (WPMeasure S) -> Program S+imperativeSqrt inv msr = Program { setup         = pure ()                                  , precondition  = pre                                  , program       = algorithm inv msr                                  , postcondition = post@@ -123,7 +123,7 @@   where sq n = n * n  -- | The measure. In each iteration @i@ strictly increases, thus reducing the differential @x - i@-measure :: Measure S+measure :: WPMeasure S measure SqrtS{x, i} = [x - i]  -- | Check that the program terminates and the post condition holds. We have:
Documentation/SBV/Examples/WeakestPreconditions/Length.hs view
@@ -31,7 +31,7 @@  -- * Program state --- | The state of the length program, paramaterized over the element type @a@+-- | The state of the length program, parameterized over the element type @a@ data LenS a b = LenS { xs :: a  -- ^ The input list                      , ys :: a  -- ^ Copy of input                      , l  :: b  -- ^ Running length@@ -67,7 +67,7 @@ -- -- Note that we need to explicitly annotate each loop with its invariant and the termination -- measure. For convenience, we take those two as parameters, so we can experiment later.-algorithm :: Invariant S -> Maybe (Measure S) -> Stmt S+algorithm :: Invariant S -> Maybe (WPMeasure S) -> Stmt S algorithm inv msr = Seq [ Assign $ \st@LenS{xs} -> st{ys = xs, l = 0}                         , While "! (null ys)"                                 inv@@ -91,8 +91,8 @@ noChange = [stable "xs" xs]  -- | A program is the algorithm, together with its pre- and post-conditions.-imperativeLength :: Invariant S -> Maybe (Measure S) -> Program S-imperativeLength inv msr = Program { setup         = return ()+imperativeLength :: Invariant S -> Maybe (WPMeasure S) -> Program S+imperativeLength inv msr = Program { setup         = pure ()                                    , precondition  = pre                                    , program       = algorithm inv msr                                    , postcondition = post@@ -105,7 +105,7 @@ invariant LenS{xs, ys, l} = L.length xs .== l + L.length ys  -- | The measure is obviously the length of @ys@, as we peel elements off of it through the loop.-measure :: Measure S+measure :: WPMeasure S measure LenS{ys} = [L.length ys]  -- * Correctness
Documentation/SBV/Examples/WeakestPreconditions/Sum.hs view
@@ -71,7 +71,7 @@ -- -- Note that we need to explicitly annotate each loop with its invariant and the termination -- measure. For convenience, we take those two as parameters, so we can experiment later.-algorithm :: Invariant S -> Maybe (Measure S) -> Stmt S+algorithm :: Invariant S -> Maybe (WPMeasure S) -> Stmt S algorithm inv msr = Seq [ Assign $ \st -> st{i = 0, s = 0}                         , assert "n >= 0" $ \SumS{n} -> n .>= 0                         , While "i < n"@@ -99,8 +99,8 @@ noChange = [stable "n" n]  -- | A program is the algorithm, together with its pre- and post-conditions.-imperativeSum :: Invariant S -> Maybe (Measure S) -> Program S-imperativeSum inv msr = Program { setup         = return ()+imperativeSum :: Invariant S -> Maybe (WPMeasure S) -> Program S+imperativeSum inv msr = Program { setup         = pure ()                                 , precondition  = pre                                 , program       = algorithm inv msr                                 , postcondition = post@@ -143,7 +143,7 @@ -- >>> correctness invariant (Just measure) -- Total correctness is established. -- Q.E.D.-correctness :: Invariant S -> Maybe (Measure S) -> IO (ProofResult (SumS Integer))+correctness :: Invariant S -> Maybe (WPMeasure S) -> IO (ProofResult (SumS Integer)) correctness inv msr = wpProveWith defaultWPCfg{wpVerbose=True} (imperativeSum inv msr)  -- * Example proof attempts@@ -224,8 +224,8 @@ Following proof obligation failed: ==================================   Measure for loop "i < n" is negative:-    State  : SumS {n = 3, i = 2, s = 3}-    Measure: -1+    State  : SumS {n = 7, i = 6, s = 21}+    Measure: -5  The failure is pretty obvious in this case: Measure produces a negative value. @@ -239,9 +239,9 @@ Following proof obligation failed: ==================================   Measure for loop "i < n" does not decrease:-    Before : SumS {n = 2, i = -2, s = 1}+    Before : SumS {n = 1, i = -1, s = 0}     Measure: 0-    After  : SumS {n = 2, i = -1, s = 0}+    After  : SumS {n = 1, i = 0, s = 0}     Measure: 1  Clearly, as @i@ increases, so does our bogus measure @n+i@. (Note that in this case the counterexample might have @i@ and @n@ as negative values, as the SMT solver finds a counter-example to induction, not
LICENSE view
@@ -1,6 +1,6 @@ SBV: SMT Based Verification in Haskell -Copyright (c) 2010-2025, Levent Erkok (erkokl@gmail.com)+Copyright (c) 2010-2026, Levent Erkok (erkokl@gmail.com) All rights reserved.  Redistribution and use in source and binary forms, with or without
README.md view
@@ -1,26 +1,82 @@ # SBV: SMT Based Verification in Haskell -[![Build Status](https://github.com/LeventErkok/sbv/actions/workflows/haskell-ci.yml/badge.svg)](https://github.com/LeventErkok/sbv/actions/workflows/haskell-ci.yml)+[![Build Status](https://github.com/LeventErkok/sbv/actions/workflows/ci.yml/badge.svg)](https://github.com/LeventErkok/sbv/actions/workflows/ci.yml) -On Hackage: http://hackage.haskell.org/package/sbv+***Express properties about Haskell programs and automatically prove them using SMT solvers.*** -Express properties about Haskell programs and automatically prove them using SMT solvers.+[Hackage](http://hackage.haskell.org/package/sbv) | [Release Notes](http://github.com/LeventErkok/sbv/tree/master/CHANGES.md) | [Documentation](http://hackage.haskell.org/package/sbv/docs/Data-SBV.html) -On one end, SBV can be used as a push-button prover over many types:+SBV provides symbolic versions of Haskell types. Programs written with these types can be automatically verified, checked for satisfiability, optimized, or compiled to C — all via SMT solvers. +## SBV in 5 Minutes++Fire up GHCi with SBV:++```+$ cabal repl --build-depends sbv+```++For unbounded integers, `x + 1 .> x` is always true:+ ```haskell-$ ghci ghci> :m Data.SBV-ghci> prove $ \x -> x `shiftL` 2 .== 4 * (x::SWord8)+ghci> prove $ \x -> x + 1 .> (x :: SInteger) Q.E.D.-ghci> prove $ \x -> x `shiftL` 2 .== 2 * (x::SWord8)+```++But with machine arithmetic, overflow lurks:++```haskell+ghci> prove $ \x -> x + 1 .> (x :: SInt8) Falsifiable. Counter-example:-  s0 = 32 :: Word8+  s0 = 127 :: Int8 ``` -On the other extreme, SBV can be used as an SMT-based proof assistant to prove equational and inductive program properties:+IEEE-754 floats break reflexivity of equality:  ```haskell+ghci> prove $ \x -> (x :: SFloat) .== x+Falsifiable. Counter-example:+  s0 = NaN :: Float+```++What's the multiplicative inverse of 3 modulo 256?++```haskell+ghci> sat $ \x -> x * 3 .== (1 :: SWord8)+Satisfiable. Model:+  s0 = 171 :: Word8+```++Use quantifiers for named results:++```haskell+ghci> sat $ skolemize $ \(Exists @"x" x) (Exists @"y" y) -> x * y .== (96::SInteger) .&& x + y .== 28+Satisfiable. Model:+  x = 24 :: Integer+  y =  4 :: Integer+```++Optimize a cost function subject to constraints:++```haskell+ghci> :{+optimize Lexicographic $ do x <- sInteger "x"+                            y <- sInteger "y"+                            constrain $ x + y .== 20+                            constrain $ x .>= 5+                            constrain $ y .>= 5+                            minimize "cost" $ x * y+:}+Optimal in an extension field:+  x    =  5 :: Integer+  y    = 15 :: Integer+  cost = 75 :: Integer+```++For inductive proofs and equational reasoning, SBV includes a theorem prover:++```haskell revApp :: forall a. SymVal a => TP (Proof (Forall "xs" [a] -> Forall "ys" [a] -> SBool)) revApp = induct "revApp"                  (\(Forall xs) (Forall ys) -> reverse (xs ++ ys) .== reverse ys ++ reverse xs) $@@ -34,9 +90,7 @@                                       =: qed ``` -Running this proof produces:--```haskell+``` ghci> runTP $ revApp @Integer Inductive lemma: revApp   Step: Base                            Q.E.D.@@ -46,111 +100,103 @@   Step: 4                               Q.E.D.   Step: 5                               Q.E.D.   Result:                               Q.E.D.+Functions proven terminating: sbv.reverse [Proven] revApp :: Ɐxs ∷ [Integer] → Ɐys ∷ [Integer] → Bool ``` -Establishing how `reverse` distributes over `++` (at the monomorpic type of list of integers).+## Features -The function `prove` establishes theorem-hood, while `sat` finds a satisfying model if it exists. The `runTP` function-runs a proof script, establishing theorems with user guidance.+**Symbolic types** — Booleans, signed/unsigned integers (8/16/32/64-bit and arbitrary-width), unbounded integers, reals, rationals, IEEE-754 floats, characters, strings, lists, tuples, sums, optionals, sets, enumerations, algebraic data types, and uninterpreted sorts. -All satisfying models can be computed using `allSat`.-SBV can also perform static assertion checks, such as absence of division-by-0, and other user given properties.-Furthermore, SBV can perform optimization, minimizing/maximizing arithmetic goals for their optimal values.+**Verification** — `prove`/`sat`/`allSat` for property checking and model finding, `safe`/`sAssert` for assertion verification, `dsat`/`dprove` for delta-satisfiability, and QuickCheck integration. -SBV also allows for an incremental mode: Users are given a handle to the SMT solver as their programs execute, and they can issue SMTLib commands programmatically, query values, and direct the interaction using a high-level typed API. The incremental mode also allows for creation of constraints based on the current model, and access to internals of SMT solvers for advanced users. See the `runSMT` and `query` commands for details.+**Optimization** — Minimize/maximize cost functions subject to constraints via `optimize`/`maximize`/`minimize`, with support for lexicographic, independent, and Pareto objectives. -## Overview+**Quantifiers and functions** — Universal and existential quantifiers (including alternating), with skolemization for named bindings. Define SMT-level functions directly from Haskell via `smtFunction`, including recursive and mutually recursive definitions with automatic termination checking. - - [Hackage](http://hackage.haskell.org/package/sbv)- - [Release Notes](http://github.com/LeventErkok/sbv/tree/master/CHANGES.md)-   -SBV library provides support for dealing with symbolic values in Haskell. It introduces the types:+**Theorem proving (TP)** — Semi-automated inductive proofs (including strong induction) with equational reasoning chains. Includes termination checking, recursive and mutually recursive definitions, productive (co-recursive) functions, and user-defined measures. - - `SBool`: Symbolic Booleans (bits).- - `SWord8`, `SWord16`, `SWord32`, `SWord64`: Symbolic Words (unsigned).- - `SInt8`, `SInt16`, `SInt32`, `SInt64`: Symbolic Ints (signed).- - `SWord N`, `SInt N`, for `N > 0`: Arbitrary sized unsigned/signed bit-vectors, parameterized by the bitsize. (Using DataKinds extension.)- - `SInteger`: Symbolic unbounded integers (signed).- - `SReal`: Symbolic infinite precision algebraic reals (signed).- - `SRational`: Symbolic rationals, ratio of two symbolic integers. (`Rational`.)- - `SFloat`: IEEE-754 single precision floating point number. (`Float`.)- - `SDouble`: IEEE-754 double precision floating point number. (`Double`.)- - `SFloatingPoint`: IEEE-754 floating point number with user specified exponent and significand sizes. (`FloatingPoint`)- - `SChar`: Symbolic characters, supporting unicode.- - `SString`: Symbolic strings.- - `SList`: Symbolic lists. (Which can be nested, i.e., lists of lists.)- - `STuple`: Symbolic tuples (upto 8-tuples, can be nested)- - `SEither`: Symbolic sums- - `SMaybe`: Symbolic optional values- - `SSet`: Symbolic sets- - Arrays of symbolic values.- - Symbolic enumerations, for arbitrary user-defined enumerated types.- - Symbolic polynomials over GF(2^n ), polynomial arithmetic, and CRCs.- - Uninterpreted constants and functions over symbolic values, with user defined axioms.- - Uninterpreted sorts, and proofs over such sorts, potentially with axioms.- - Ability to define SMTLib functions, generated directly from Haskell versions, including support for recursive and mutually recursive functions.- - Reasoning with universal and existential quantifiers, including alternating quantifiers.-   -The user can construct ordinary Haskell programs using these types, which behave like ordinary Haskell values when used concretely. However, when used with symbolic arguments, functions built out of these types can also be:+**Code generation** — Compile symbolic programs to C as straight-line programs or libraries (`compileToC`, `compileToCLib`), and generate test vectors (`genTest`). - - proven correct via an external SMT solver (the `prove` function),- - checked for satisfiability (the `sat`, and `allSat` functions),- - checked for assertion violations (the `safe` function with `sAssert` calls),- - checked for delta-satisfiability (the `dsat` and `dprove` functions),- - used in synthesis (the `sat`function with existentials),- - checked for machine-arithmetic overflow/underflow conditions,- - optimized with respect to cost functions (the `optimize`, `maximize`, and `minimize` functions),- - quick-checked,- - used for generating Haskell and C test vectors (the `genTest` function),- - compiled down to C, rendered as straight-line programs or libraries (`compileToC` and `compileToCLib` functions).-   -## Picking the SMT solver to use+**SMT interaction** — Incremental mode via `runSMT`/`query` for programmatic solver interaction with a high-level typed API. Run multiple solvers simultaneously with `proveWithAny`/`proveWithAll`. -The SBV library uses third-party SMT solvers via the standard SMT-Lib interface. The following solvers are supported:+## Algebraic Data Types - - [ABC](http://www.eecs.berkeley.edu/~alanmi/abc) from University of Berkeley- - [Boolector](http://boolector.github.io/) from Johannes Kepler University- - [Bitwuzla](http://bitwuzla.github.io/) from Stanford University- - [CVC4](http://cvc4.github.io/) from Stanford University and the University of Iowa- - [CVC5](http://cvc5.github.io/) from Stanford University and the University of Iowa- - [DReal](http://dreal.github.io/) from CMU- - [MathSAT](http://mathsat.fbk.eu/) from FBK and DISI-University of Trento- - [OpenSMT](http://verify.inf.usi.ch/opensmt) from Università della Svizzera italiana- - [Yices](http://github.com/SRI-CSL/yices2) from SRI- - [Z3](http://github.com/Z3Prover/z3/wiki) from Microsoft-   -Most functions have two variants: For instance `prove`/`proveWith`. The former uses the default solver, which is currently Z3. The latter expects you to pass it a configuration that picks the solver.-The valid values are `abc`, `boolector`, `bitwuzla`, `cvc4`, `cvc5`, `dReal`, `mathSAT`, `openSMT`, `yices`, and `z3`.+User-defined algebraic data types — including enumerations, recursive, and parametric types — are supported via `mkSymbolic`, with pattern matching via `sCase` (and its proof counterpart `pCase`): -See [versions](http://github.com/LeventErkok/sbv/blob/master/SMTSolverVersions.md) for a listing of the versions of these tools SBV has been tested with. Please report if you see any discrepancies!+```haskell+{-# LANGUAGE QuasiQuotes     #-}+{-# LANGUAGE TemplateHaskell #-} -Other SMT solvers can be used with SBV as well, with a relatively easy hook-up mechanism. Please do get in touch if you plan to use SBV with any other solver.+import Data.SBV -## Using multiple solvers, simultaneously+data Expr a = Val a+            | Add (Expr a) (Expr a)+            | Mul (Expr a) (Expr a)+            deriving Show -SBV also allows for running multiple solvers at the same time, either picking the result of the first to complete, or getting results from all.-See `proveWithAny`/`proveWithAll` and `satWithAny`/`satWithAll` functions. The function `sbvAvailableSolvers` can be used to query the available solvers at run-time.+-- Make Expr symbolically available, named SExpr+mkSymbolic [''Expr] -## TP: Semi-automated theorem proving+eval :: SymVal a => (SBV a -> SBV a -> SBV a) -> (SBV a -> SBV a -> SBV a) -> SBV (Expr a) -> SBV a+eval add mul = smtFunction "eval" $ \e ->+    [sCase| e of+       Val v   -> v+       Add x y -> eval add mul x `add` eval add mul y+       Mul x y -> eval add mul x `mul` eval add mul y+    |]+``` -While SMT solvers are quite powerful, there is a certain class of problems that they are just not well suited for. In particular, SMT-solvers are not good at proofs that require induction, or those that require complex chains of reasoning. Induction is necessary to reason about-any recursive algorithm, and most such proofs require carefully constructed equational steps.+The `sCase` construct supports nested pattern matching, as-patterns, guards, and wildcards, making programming with algebraic data types natural. Plain `case` expressions inside `sCase` are automatically treated as symbolic case-splits. The `pCase` variant provides the same features for proof case-splits in the theorem proving context. -SBV allows for a style of semi-automated theorem proving, called TP. which can be used to construct such proofs.-The documentation includes example proofs for many list functions, and even inductive proofs for-the familiar insertion, merge, quick-sort algorithms, along with a proof that the square-root of 2 is irrational.-While a proper theorem prover (such as Lean, Isabelle etc.) is a more appropriate choice for such proofs, with some-guidance (and acceptance of a much larger trusted code base!), SBV can be used to establish correctness of various mathematical-claims and algorithms that are usually beyond the scope of SMT solvers alone. See the documentation under-the `Documentation.SBV.Examples.TP` directory.+## Supported SMT Solvers -## Copyright, License+SBV communicates with solvers via the standard SMT-Lib interface: -The SBV library is distributed with the BSD3 license. See [COPYRIGHT](http://github.com/LeventErkok/sbv/tree/master/COPYRIGHT) for details.-The [LICENSE](http://github.com/LeventErkok/sbv/tree/master/LICENSE) file contains the [BSD3](http://en.wikipedia.org/wiki/BSD_licenses) verbiage.+| Solver | From | | Solver | From |+|--------|------|-|--------|------|+| [ABC](http://www.eecs.berkeley.edu/~alanmi/abc) | Berkeley | | [DReal](http://dreal.github.io/) | CMU |+| [Bitwuzla](http://bitwuzla.github.io/) | Stanford | | [MathSAT](http://mathsat.fbk.eu/) | FBK / Trento |+| [Boolector](http://boolector.github.io/) | JKU | | [OpenSMT](http://verify.inf.usi.ch/opensmt) | USI |+| [CVC4](http://cvc4.github.io/) | Stanford / Iowa | | [Yices](http://github.com/SRI-CSL/yices2) | SRI |+| [CVC5](http://cvc5.github.io/) | Stanford / Iowa | | [Z3](http://github.com/Z3Prover/z3/wiki) | Microsoft | +**Z3** is the default solver. Use `proveWith`, `satWith`, etc. to select a different one (e.g., `proveWith cvc5`). See [tested versions](http://github.com/LeventErkok/sbv/blob/master/SMTSolverVersions.md) for details. Other SMT-Lib compatible solvers can be hooked up with minimal effort — get in touch if you'd like to use one not listed here.++## A Selection of Examples++SBV ships with many worked examples. Here are some highlights:++| Example | Description |+|---------|-------------|+| [Sudoku](http://hackage.haskell.org/package/sbv/docs/Documentation-SBV-Examples-Puzzles-Sudoku.html) | Solve Sudoku puzzles using SMT constraints |+| [N-Queens](http://hackage.haskell.org/package/sbv/docs/Documentation-SBV-Examples-Puzzles-NQueens.html) | Solve the N-Queens placement puzzle |+| [SEND + MORE = MONEY](http://hackage.haskell.org/package/sbv/docs/Documentation-SBV-Examples-Puzzles-SendMoreMoney.html) | The classic cryptarithmetic puzzle |+| [Fish/Zebra](http://hackage.haskell.org/package/sbv/docs/Documentation-SBV-Examples-Puzzles-Fish.html) | Einstein's logic puzzle |+| [SQL Injection](http://hackage.haskell.org/package/sbv/docs/Documentation-SBV-Examples-Strings-SQLInjection.html) | Find inputs that cause SQL injection vulnerabilities |+| [Regex Crossword](http://hackage.haskell.org/package/sbv/docs/Documentation-SBV-Examples-Strings-RegexCrossword.html) | Solve regex crossword puzzles |+| [BitTricks](http://hackage.haskell.org/package/sbv/docs/Documentation-SBV-Examples-BitPrecise-BitTricks.html) | Verify bit-manipulation tricks from Stanford's bithacks collection |+| [Legato multiplier](http://hackage.haskell.org/package/sbv/docs/Documentation-SBV-Examples-BitPrecise-Legato.html) | Correctness proof of Legato's 8-bit multiplier |+| [Prefix sum](http://hackage.haskell.org/package/sbv/docs/Documentation-SBV-Examples-BitPrecise-PrefixSum.html) | Ladner-Fischer prefix-sum implementation proof |+| [AES](http://hackage.haskell.org/package/sbv/docs/Documentation-SBV-Examples-Crypto-AES.html) | AES encryption with C code generation |+| [CRC](http://hackage.haskell.org/package/sbv/docs/Documentation-SBV-Examples-CodeGeneration-CRC_USB5.html) | Symbolic CRC computation with C code generation |+| [Sqrt2 irrational](http://hackage.haskell.org/package/sbv/docs/Documentation-SBV-Examples-TP-Sqrt2IsIrrational.html) | Prove that the square root of 2 is irrational |+| [Sorting](http://hackage.haskell.org/package/sbv/docs/Documentation-SBV-Examples-TP-InsertionSort.html) | Prove [insertion sort](http://hackage.haskell.org/package/sbv/docs/Documentation-SBV-Examples-TP-InsertionSort.html), [merge sort](http://hackage.haskell.org/package/sbv/docs/Documentation-SBV-Examples-TP-MergeSort.html), and [quick sort](http://hackage.haskell.org/package/sbv/docs/Documentation-SBV-Examples-TP-QuickSort.html) correct |+| [Kadane](http://hackage.haskell.org/package/sbv/docs/Documentation-SBV-Examples-TP-Kadane.html) | Prove Kadane's maximum segment-sum algorithm correct |+| [McCarthy91](http://hackage.haskell.org/package/sbv/docs/Documentation-SBV-Examples-TP-McCarthy91.html) | Prove McCarthy's 91 function meets its specification |+| [Binary search](http://hackage.haskell.org/package/sbv/docs/Documentation-SBV-Examples-TP-BinarySearch.html) | Prove binary search correct |+| [Collatz](http://hackage.haskell.org/package/sbv/docs/Documentation-SBV-Examples-TP-Collatz.html) | Explore properties of the Collatz sequence |+| [Infinitely many primes](http://hackage.haskell.org/package/sbv/docs/Documentation-SBV-Examples-TP-Primes.html) | Prove there are infinitely many primes |+| [Tautology checker](http://hackage.haskell.org/package/sbv/docs/Documentation-SBV-Examples-TP-TautologyChecker.html) | A verified BDD-style tautology checker |++Browse the full collection in `Documentation.SBV.Examples` [on Hackage](http://hackage.haskell.org/package/sbv).++## License++SBV is distributed under the [BSD3](http://en.wikipedia.org/wiki/BSD_licenses) license. See [COPYRIGHT](http://github.com/LeventErkok/sbv/tree/master/COPYRIGHT) and [LICENSE](http://github.com/LeventErkok/sbv/tree/master/LICENSE) for details.++Please report bugs and feature requests at the [GitHub issue tracker](http://github.com/LeventErkok/sbv/issues).+ ## Thanks  The following people made major contributions to SBV, by developing new features and contributing to the design in significant ways: Joel Burget, Brian Huffman, Brian Schroeder, and Jeffrey Young.@@ -230,6 +276,8 @@ May Torrence, Daniel Wagner, Sean Weaver,+Robin Webbers,+Eddy Westbrook, Nis Wegmann, Jared Ziegler, and Marco Zocca.
SBVBenchSuite/BenchSuite/Bench/Bench.hs view
@@ -10,7 +10,7 @@ -- Assessing the overhead of calling solving examples via sbv vs individual solvers ----------------------------------------------------------------------------- -{-# OPTIONS_GHC -Wall -Werror -fno-warn-orphans #-}+{-# OPTIONS_GHC -Wall -Werror -Wno-orphans #-} {-# LANGUAGE CPP                       #-} {-# LANGUAGE ExistentialQuantification #-} {-# LANGUAGE FlexibleContexts          #-}
SBVBenchSuite/BenchSuite/CodeGeneration/Uninterpreted.hs view
@@ -26,3 +26,5 @@   , runIO "CodeGen" genCCode   ]   where testLeft = \x y -> tstShiftLeft x y 0 .== x + y++{- HLint ignore module "Redundant lambda" -}
SBVBenchSuite/BenchSuite/Crypto/AES.hs view
@@ -33,3 +33,5 @@   , runIO   "CodeGen.AES128Lib" cgAES128Library   ]   where inverseGFPrf = \x -> x ./= 0 .=> x `gf28Mult` gf28Inverse x .== 1++{- HLint ignore module "Redundant lambda" -}
SBVBenchSuite/BenchSuite/Existentials/Diophantine.hs view
@@ -10,7 +10,7 @@ -- Bench suite for Documentation.SBV.Examples.Existentials.Diophantine ----------------------------------------------------------------------------- -{-# OPTIONS_GHC -Wall -Werror -fno-warn-orphans #-}+{-# OPTIONS_GHC -Wall -Werror -Wno-orphans #-}  module BenchSuite.Existentials.Diophantine(benchmarks) where 
SBVBenchSuite/BenchSuite/Misc/Enumerate.hs view
@@ -35,3 +35,5 @@                    constrain $ \(Forall e) -> mx .>= (e::SE)         _minE = do mx <- free "minE"                    constrain $ \(Forall e) -> mx .<= (e::SE)++{- HLint ignore module "Redundant lambda" -}
SBVBenchSuite/BenchSuite/Misc/NoDiv0.hs view
@@ -10,7 +10,7 @@ -- Bench suite for Documentation.SBV.Examples.Misc.NoDiv0 ----------------------------------------------------------------------------- -{-# OPTIONS_GHC -Wall -Werror -fno-warn-orphans #-}+{-# OPTIONS_GHC -Wall -Werror -Wno-orphans #-}  module BenchSuite.Misc.NoDiv0(benchmarks) where 
SBVBenchSuite/BenchSuite/Misc/SetAlgebra.hs view
@@ -129,3 +129,5 @@         relCompFull    = \(a :: SI) -> a \\ full .== empty         distSubset1    = \(a :: SI) b c -> a `isSubsetOf` (b `union` c) .=> a `isSubsetOf` b .&& a `isSubsetOf` c         distSubset2    = \(a :: SI) b c -> (b `intersection` c) `isSubsetOf` a .=> b `isSubsetOf` a .&& c `isSubsetOf` a++{- HLint ignore module "Redundant lambda" -}
SBVBenchSuite/BenchSuite/Optimization/Instances.hs view
@@ -10,7 +10,7 @@ -- Helper file to provide common orphaned instances for Optimization benchmarks ----------------------------------------------------------------------------- -{-# OPTIONS_GHC -Wall -Werror -fno-warn-orphans #-}+{-# OPTIONS_GHC -Wall -Werror -Wno-orphans #-}  module BenchSuite.Optimization.Instances where 
SBVBenchSuite/BenchSuite/ProofTools/BMC.hs view
@@ -10,7 +10,7 @@ -- Bench suite for Documentation.SBV.Examples.ProofTools.BMC ----------------------------------------------------------------------------- -{-# OPTIONS_GHC -Wall -Werror -fno-warn-orphans #-}+{-# OPTIONS_GHC -Wall -Werror -Wno-orphans #-}  module BenchSuite.ProofTools.BMC(benchmarks) where 
SBVBenchSuite/BenchSuite/ProofTools/Fibonacci.hs view
@@ -10,7 +10,7 @@ -- Bench suite for Documentation.SBV.Examples.ProofTools.Fibonacci ----------------------------------------------------------------------------- -{-# OPTIONS_GHC -Wall -Werror -fno-warn-orphans #-}+{-# OPTIONS_GHC -Wall -Werror -Wno-orphans #-}  module BenchSuite.ProofTools.Fibonacci(benchmarks) where 
SBVBenchSuite/BenchSuite/ProofTools/Strengthen.hs view
@@ -10,7 +10,7 @@ -- Bench suite for Documentation.SBV.Examples.ProofTools.Strengthen ----------------------------------------------------------------------------- -{-# OPTIONS_GHC -Wall -Werror -fno-warn-orphans #-}+{-# OPTIONS_GHC -Wall -Werror -Wno-orphans #-}  module BenchSuite.ProofTools.Strengthen(benchmarks) where 
SBVBenchSuite/BenchSuite/ProofTools/Sum.hs view
@@ -10,7 +10,7 @@ -- Bench suite for Documentation.SBV.Examples.ProofTools.Sum ----------------------------------------------------------------------------- -{-# OPTIONS_GHC -Wall -Werror -fno-warn-orphans #-}+{-# OPTIONS_GHC -Wall -Werror -Wno-orphans #-}  module BenchSuite.ProofTools.Sum(benchmarks) where 
SBVBenchSuite/BenchSuite/Puzzles/Sudoku.hs view
@@ -19,9 +19,6 @@ import Utils.SBVBenchFramework import BenchSuite.Bench.Bench as S -import Data.Maybe (fromMaybe)-- -- benchmark suite benchmarks :: Runner benchmarks = rGroup@@ -32,4 +29,4 @@ checkPuzzle :: Puzzle -> IO Bool checkPuzzle p = do final <- fillBoard p                    let vld = valid (map (map literal) final)-                   pure $ fromMaybe False (unliteral vld)+                   pure $ Just True == unliteral vld
SBVBenchSuite/BenchSuite/Queries/Enums.hs view
@@ -10,7 +10,7 @@ -- Bench suite for Documentation.SBV.Examples.Queries.Enums ----------------------------------------------------------------------------- -{-# OPTIONS_GHC -Wall -Werror -fno-warn-orphans #-}+{-# OPTIONS_GHC -Wall -Werror -Wno-orphans #-}  module BenchSuite.Queries.Enums(benchmarks) where 
SBVBenchSuite/BenchSuite/Queries/GuessNumber.hs view
@@ -10,7 +10,7 @@ -- Bench suite for Documentation.SBV.Examples.Queries.GuessNumber ----------------------------------------------------------------------------- -{-# OPTIONS_GHC -Wall -Werror -fno-warn-orphans #-}+{-# OPTIONS_GHC -Wall -Werror -Wno-orphans #-}  module BenchSuite.Queries.GuessNumber(benchmarks) where 
SBVBenchSuite/BenchSuite/Transformers/SymbolicEval.hs view
@@ -10,7 +10,7 @@ -- Bench suite for Documentation.SBV.Examples.Transformers.SymbolicEval ----------------------------------------------------------------------------- -{-# OPTIONS_GHC -Wall -Werror -fno-warn-orphans #-}+{-# OPTIONS_GHC -Wall -Werror -Wno-orphans #-}  module BenchSuite.Transformers.SymbolicEval(benchmarks) where 
SBVBenchSuite/BenchSuite/Uninterpreted/AUF.hs view
@@ -10,7 +10,7 @@ -- Bench suite for Documentation.SBV.Examples.Uninterpreted.AUF ----------------------------------------------------------------------------- -{-# OPTIONS_GHC -Wall -Werror -fno-warn-orphans #-}+{-# OPTIONS_GHC -Wall -Werror -Wno-orphans #-} {-# LANGUAGE ScopedTypeVariables #-}  module BenchSuite.Uninterpreted.AUF(benchmarks) where
SBVBenchSuite/BenchSuite/Uninterpreted/Deduce.hs view
@@ -10,7 +10,7 @@ -- Bench suite for Documentation.SBV.Examples.Uninterpreted.Deduce ----------------------------------------------------------------------------- -{-# OPTIONS_GHC -Wall -Werror -fno-warn-orphans #-}+{-# OPTIONS_GHC -Wall -Werror -Wno-orphans #-} {-# LANGUAGE ScopedTypeVariables #-}  module BenchSuite.Uninterpreted.Deduce(benchmarks) where@@ -33,3 +33,6 @@                r <- free "r"                return $ not (p `or` (q `and` r))                  .== (not p `and` not q) `or` (not p `and` not r)++{- HLint ignore module "Redundant lambda" -}+{- HLint ignore module "Redundant not"    -}
SBVBenchSuite/BenchSuite/Uninterpreted/Multiply.hs view
@@ -36,3 +36,5 @@                            sFalse      correct = \a1 a0 b1 b0 -> mul22_hi a1 a0 b1 b0 .== (a1 .&& b0) .<+> (a0 .&& b1)++{- HLint ignore module "Redundant lambda" -}
SBVBenchSuite/BenchSuite/Uninterpreted/Shannon.hs view
@@ -41,3 +41,5 @@ f'   = derivative f f''  = universal f f''' = existential f++{- HLint ignore module "Redundant lambda" -}
SBVBenchSuite/BenchSuite/WeakestPreconditions/Append.hs view
@@ -10,7 +10,7 @@ -- Bench suite for Documentation.SBV.Examples.WeakestPreconditions.Append ----------------------------------------------------------------------------- -{-# OPTIONS_GHC -Wall -Werror -fno-warn-orphans #-}+{-# OPTIONS_GHC -Wall -Werror -Wno-orphans #-}  module BenchSuite.WeakestPreconditions.Append(benchmarks) where 
SBVBenchSuite/BenchSuite/WeakestPreconditions/Basics.hs view
@@ -10,7 +10,7 @@ -- Bench suite for Documentation.SBV.Examples.WeakestPreconditions.Basics ----------------------------------------------------------------------------- -{-# OPTIONS_GHC -fno-warn-orphans #-}+{-# OPTIONS_GHC -Wno-orphans #-} {-# LANGUAGE NamedFieldPuns #-}  module BenchSuite.WeakestPreconditions.Basics(benchmarks) where
SBVBenchSuite/BenchSuite/WeakestPreconditions/Fib.hs view
@@ -10,7 +10,7 @@ -- Bench suite for Documentation.SBV.Examples.WeakestPreconditions.Fig ----------------------------------------------------------------------------- -{-# OPTIONS_GHC -Wall -Werror -fno-warn-orphans #-}+{-# OPTIONS_GHC -Wall -Werror -Wno-orphans #-}  module BenchSuite.WeakestPreconditions.Fib(benchmarks) where 
SBVBenchSuite/BenchSuite/WeakestPreconditions/GCD.hs view
@@ -10,7 +10,7 @@ -- Bench suite for Documentation.SBV.Examples.WeakestPreconditions.GCD ----------------------------------------------------------------------------- -{-# OPTIONS_GHC -Wall -Werror -fno-warn-orphans #-}+{-# OPTIONS_GHC -Wall -Werror -Wno-orphans #-}  module BenchSuite.WeakestPreconditions.GCD(benchmarks) where 
SBVBenchSuite/BenchSuite/WeakestPreconditions/Instances.hs view
@@ -10,7 +10,7 @@ -- Helper file to provide common orphaned instances for WeakestPrecondition benchmarks ----------------------------------------------------------------------------- -{-# OPTIONS_GHC -Wall -Werror -fno-warn-orphans #-}+{-# OPTIONS_GHC -Wall -Werror -Wno-orphans #-}  module BenchSuite.WeakestPreconditions.Instances where 
SBVBenchSuite/BenchSuite/WeakestPreconditions/IntDiv.hs view
@@ -10,7 +10,7 @@ -- Bench suite for Documentation.SBV.Examples.WeakestPreconditions.IntDiv ----------------------------------------------------------------------------- -{-# OPTIONS_GHC -Wall -Werror -fno-warn-orphans #-}+{-# OPTIONS_GHC -Wall -Werror -Wno-orphans #-}  module BenchSuite.WeakestPreconditions.IntDiv(benchmarks) where 
SBVBenchSuite/BenchSuite/WeakestPreconditions/IntSqrt.hs view
@@ -10,7 +10,7 @@ -- Bench suite for Documentation.SBV.Examples.WeakestPreconditions.IntSqrt ----------------------------------------------------------------------------- -{-# OPTIONS_GHC -Wall -Werror -fno-warn-orphans #-}+{-# OPTIONS_GHC -Wall -Werror -Wno-orphans #-}  module BenchSuite.WeakestPreconditions.IntSqrt(benchmarks) where 
SBVBenchSuite/BenchSuite/WeakestPreconditions/Length.hs view
@@ -10,7 +10,7 @@ -- Bench suite for Documentation.SBV.Examples.WeakestPreconditions.Length ----------------------------------------------------------------------------- -{-# OPTIONS_GHC -Wall -Werror -fno-warn-orphans #-}+{-# OPTIONS_GHC -Wall -Werror -Wno-orphans #-}  module BenchSuite.WeakestPreconditions.Length(benchmarks) where 
SBVBenchSuite/BenchSuite/WeakestPreconditions/Sum.hs view
@@ -10,7 +10,7 @@ -- Bench suite for Documentation.SBV.Examples.WeakestPreconditions.Sum ----------------------------------------------------------------------------- -{-# OPTIONS_GHC -Wall -Werror -fno-warn-orphans #-}+{-# OPTIONS_GHC -Wall -Werror -Wno-orphans #-} {-# LANGUAGE NamedFieldPuns #-}  module BenchSuite.WeakestPreconditions.Sum(benchmarks) where
SBVBenchSuite/Utils/SBVBenchFramework.hs view
@@ -14,7 +14,7 @@ {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE MultiParamTypeClasses #-} -{-# OPTIONS_GHC -fno-warn-orphans -fno-warn-missing-methods #-} -- for ProvableM orphan+{-# OPTIONS_GHC -Wno-orphans -Wno-missing-methods #-} -- for ProvableM orphan  module Utils.SBVBenchFramework   ( mkExecString@@ -73,7 +73,7 @@  spaceTo :: Char -> Char -> Char spaceTo c x | isSpace x = c-            | otherwise = x+            | True      = x  -- | Construct a benchmark file name. The input name should be a time stamp or -- whatever you want to name the benchmark
+ SBVTestSuite/GoldFiles/adt00.gold view
@@ -0,0 +1,94 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] (declare-datatypes ((SBVTuple3 3)) ((par (T1 T2 T3)+                                           ((mkSBVTuple3 (proj_1_SBVTuple3 T1)+                                                         (proj_2_SBVTuple3 T2)+                                                         (proj_3_SBVTuple3 T3))))))+[GOOD] ; --- sums ---+[GOOD] (declare-datatype SBVRational ((SBV.Rational (sbv.rat.numerator Int) (sbv.rat.denominator Int))))++[GOOD] (define-fun sbv.rat.eq ((x SBVRational) (y SBVRational)) Bool+          (= (* (sbv.rat.numerator   x) (sbv.rat.denominator y))+             (* (sbv.rat.denominator x) (sbv.rat.numerator   y)))+       )++[GOOD] (define-fun sbv.rat.notEq ((x SBVRational) (y SBVRational)) Bool+          (not (sbv.rat.eq x y))+       )+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Maybe+[GOOD] (declare-datatype Maybe (par (a) (+           (Nothing)+           (Just (getJust_1 a))+       )))+[GOOD] ; User defined ADT: Either+[GOOD] (declare-datatype Either (par (a b) (+           (Left (getLeft_1 a))+           (Right (getRight_1 b))+       )))+[GOOD] ; User defined ADT: ADT+[GOOD] (declare-datatype ADT (+           (AEmpty)+           (ABool (getABool_1 Bool))+           (AInteger (getAInteger_1 Int))+           (AWord8 (getAWord8_1 (_ BitVec 8)))+           (AWord16 (getAWord16_1 (_ BitVec 16)))+           (AWord32 (getAWord32_1 (_ BitVec 32)))+           (AWord64 (getAWord64_1 (_ BitVec 64)))+           (AInt8 (getAInt8_1 (_ BitVec 8)))+           (AInt16 (getAInt16_1 (_ BitVec 16)))+           (AInt32 (getAInt32_1 (_ BitVec 32)))+           (AInt64 (getAInt64_1 (_ BitVec 64)))+           (AWord1 (getAWord1_1 (_ BitVec 1)))+           (AWord5 (getAWord5_1 (_ BitVec 5)))+           (AWord30 (getAWord30_1 (_ BitVec 30)))+           (AInt1 (getAInt1_1 (_ BitVec 1)))+           (AInt5 (getAInt5_1 (_ BitVec 5)))+           (AInt30 (getAInt30_1 (_ BitVec 30)))+           (AReal (getAReal_1 Real))+           (AFloat (getAFloat_1 (_ FloatingPoint  8 24)))+           (ADouble (getADouble_1 (_ FloatingPoint 11 53)))+           (AFP (getAFP_1 (_ FloatingPoint 5 12)))+           (AString (getAString_1 String))+           (AList (getAList_1 (Seq Int)))+           (ATuple (getATuple_1 (SBVTuple2 (_ FloatingPoint 11 53) (Seq (SBVTuple2 (_ BitVec 5) (Seq (_ FloatingPoint  8 24)))))))+           (AMaybe (getAMaybe_1 (Maybe (SBVTuple3 Real (_ FloatingPoint  8 24) (SBVTuple2 (Either Int (_ FloatingPoint  8 24)) (Seq Bool))))))+           (AEither (getAEither_1 (Either (SBVTuple2 (Maybe Int) Bool) (Seq Int))))+           (APair (getAPair_1 ADT) (getAPair_2 ADT))+           (KChar (getKChar_1 String))+           (KRational (getKRational_1 SBVRational))+       ))+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () ADT) ; tracks user variable "e"+[GOOD] (assert (and (= 1 (str.len (getKChar_1 s0)))+                    (< 0 (sbv.rat.denominator (getKRational_1 s0)))+               ))+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s1 () Bool (= s0 s0))+[GOOD] (define-fun s2 () Bool (not s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[SEND] (check-sat)+[RECV] unsat++UNSAT*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt01.gold view
@@ -0,0 +1,102 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] (declare-datatypes ((SBVTuple3 3)) ((par (T1 T2 T3)+                                           ((mkSBVTuple3 (proj_1_SBVTuple3 T1)+                                                         (proj_2_SBVTuple3 T2)+                                                         (proj_3_SBVTuple3 T3))))))+[GOOD] ; --- sums ---+[GOOD] (declare-datatype SBVRational ((SBV.Rational (sbv.rat.numerator Int) (sbv.rat.denominator Int))))++[GOOD] (define-fun sbv.rat.eq ((x SBVRational) (y SBVRational)) Bool+          (= (* (sbv.rat.numerator   x) (sbv.rat.denominator y))+             (* (sbv.rat.denominator x) (sbv.rat.numerator   y)))+       )++[GOOD] (define-fun sbv.rat.notEq ((x SBVRational) (y SBVRational)) Bool+          (not (sbv.rat.eq x y))+       )+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Maybe+[GOOD] (declare-datatype Maybe (par (a) (+           (Nothing)+           (Just (getJust_1 a))+       )))+[GOOD] ; User defined ADT: Either+[GOOD] (declare-datatype Either (par (a b) (+           (Left (getLeft_1 a))+           (Right (getRight_1 b))+       )))+[GOOD] ; User defined ADT: ADT+[GOOD] (declare-datatype ADT (+           (AEmpty)+           (ABool (getABool_1 Bool))+           (AInteger (getAInteger_1 Int))+           (AWord8 (getAWord8_1 (_ BitVec 8)))+           (AWord16 (getAWord16_1 (_ BitVec 16)))+           (AWord32 (getAWord32_1 (_ BitVec 32)))+           (AWord64 (getAWord64_1 (_ BitVec 64)))+           (AInt8 (getAInt8_1 (_ BitVec 8)))+           (AInt16 (getAInt16_1 (_ BitVec 16)))+           (AInt32 (getAInt32_1 (_ BitVec 32)))+           (AInt64 (getAInt64_1 (_ BitVec 64)))+           (AWord1 (getAWord1_1 (_ BitVec 1)))+           (AWord5 (getAWord5_1 (_ BitVec 5)))+           (AWord30 (getAWord30_1 (_ BitVec 30)))+           (AInt1 (getAInt1_1 (_ BitVec 1)))+           (AInt5 (getAInt5_1 (_ BitVec 5)))+           (AInt30 (getAInt30_1 (_ BitVec 30)))+           (AReal (getAReal_1 Real))+           (AFloat (getAFloat_1 (_ FloatingPoint  8 24)))+           (ADouble (getADouble_1 (_ FloatingPoint 11 53)))+           (AFP (getAFP_1 (_ FloatingPoint 5 12)))+           (AString (getAString_1 String))+           (AList (getAList_1 (Seq Int)))+           (ATuple (getATuple_1 (SBVTuple2 (_ FloatingPoint 11 53) (Seq (SBVTuple2 (_ BitVec 5) (Seq (_ FloatingPoint  8 24)))))))+           (AMaybe (getAMaybe_1 (Maybe (SBVTuple3 Real (_ FloatingPoint  8 24) (SBVTuple2 (Either Int (_ FloatingPoint  8 24)) (Seq Bool))))))+           (AEither (getAEither_1 (Either (SBVTuple2 (Maybe Int) Bool) (Seq Int))))+           (APair (getAPair_1 ADT) (getAPair_2 ADT))+           (KChar (getKChar_1 String))+           (KRational (getKRational_1 SBVRational))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () ADT ((as APair ADT) ((as AInt64 ADT) #x0000000000000004) ((as AMaybe ADT) ((as Just (Maybe (SBVTuple3 Real (_ FloatingPoint  8 24) (SBVTuple2 (Either Int (_ FloatingPoint  8 24)) (Seq Bool))))) (mkSBVTuple3 0.0 (fp #b0 #b10000010 #b10000000000000000000000) (mkSBVTuple2 ((as Left (Either Int (_ FloatingPoint  8 24))) 3) (seq.++ (seq.unit false) (seq.unit true))))))))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () ADT) ; tracks user variable "e"+[GOOD] (assert (and (= 1 (str.len (getKChar_1 s0)))+                    (< 0 (sbv.rat.denominator (getKRational_1 s0)))+               ))+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 (APair (AInt64 #x0000000000000004)+              (AMaybe (Just (mkSBVTuple3 0.0+                                         (fp #b0 #x82 #b10000000000000000000000)+                                         (mkSBVTuple2 (Left 3)+                                                      (seq.++ (seq.unit false)+                                                              (seq.unit true)))))))))++MODEL: SMTModel {modelObjectives = [], modelBindings = Nothing, modelAssocs = [("e",APair (AInt64 4) (AMaybe (Just (0.0,12.0,(Left 3,[False,True])))) :: ADT)], modelUIFuns = []}+DONE.*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt02.gold view
@@ -0,0 +1,96 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] (declare-datatypes ((SBVTuple3 3)) ((par (T1 T2 T3)+                                           ((mkSBVTuple3 (proj_1_SBVTuple3 T1)+                                                         (proj_2_SBVTuple3 T2)+                                                         (proj_3_SBVTuple3 T3))))))+[GOOD] ; --- sums ---+[GOOD] (declare-datatype SBVRational ((SBV.Rational (sbv.rat.numerator Int) (sbv.rat.denominator Int))))++[GOOD] (define-fun sbv.rat.eq ((x SBVRational) (y SBVRational)) Bool+          (= (* (sbv.rat.numerator   x) (sbv.rat.denominator y))+             (* (sbv.rat.denominator x) (sbv.rat.numerator   y)))+       )++[GOOD] (define-fun sbv.rat.notEq ((x SBVRational) (y SBVRational)) Bool+          (not (sbv.rat.eq x y))+       )+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Maybe+[GOOD] (declare-datatype Maybe (par (a) (+           (Nothing)+           (Just (getJust_1 a))+       )))+[GOOD] ; User defined ADT: Either+[GOOD] (declare-datatype Either (par (a b) (+           (Left (getLeft_1 a))+           (Right (getRight_1 b))+       )))+[GOOD] ; User defined ADT: ADT+[GOOD] (declare-datatype ADT (+           (AEmpty)+           (ABool (getABool_1 Bool))+           (AInteger (getAInteger_1 Int))+           (AWord8 (getAWord8_1 (_ BitVec 8)))+           (AWord16 (getAWord16_1 (_ BitVec 16)))+           (AWord32 (getAWord32_1 (_ BitVec 32)))+           (AWord64 (getAWord64_1 (_ BitVec 64)))+           (AInt8 (getAInt8_1 (_ BitVec 8)))+           (AInt16 (getAInt16_1 (_ BitVec 16)))+           (AInt32 (getAInt32_1 (_ BitVec 32)))+           (AInt64 (getAInt64_1 (_ BitVec 64)))+           (AWord1 (getAWord1_1 (_ BitVec 1)))+           (AWord5 (getAWord5_1 (_ BitVec 5)))+           (AWord30 (getAWord30_1 (_ BitVec 30)))+           (AInt1 (getAInt1_1 (_ BitVec 1)))+           (AInt5 (getAInt5_1 (_ BitVec 5)))+           (AInt30 (getAInt30_1 (_ BitVec 30)))+           (AReal (getAReal_1 Real))+           (AFloat (getAFloat_1 (_ FloatingPoint  8 24)))+           (ADouble (getADouble_1 (_ FloatingPoint 11 53)))+           (AFP (getAFP_1 (_ FloatingPoint 5 12)))+           (AString (getAString_1 String))+           (AList (getAList_1 (Seq Int)))+           (ATuple (getATuple_1 (SBVTuple2 (_ FloatingPoint 11 53) (Seq (SBVTuple2 (_ BitVec 5) (Seq (_ FloatingPoint  8 24)))))))+           (AMaybe (getAMaybe_1 (Maybe (SBVTuple3 Real (_ FloatingPoint  8 24) (SBVTuple2 (Either Int (_ FloatingPoint  8 24)) (Seq Bool))))))+           (AEither (getAEither_1 (Either (SBVTuple2 (Maybe Int) Bool) (Seq Int))))+           (APair (getAPair_1 ADT) (getAPair_2 ADT))+           (KChar (getKChar_1 String))+           (KRational (getKRational_1 SBVRational))+       ))+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () ADT) ; tracks user variable "e"+[GOOD] (assert (and (= 1 (str.len (getKChar_1 s0)))+                    (< 0 (sbv.rat.denominator (getKRational_1 s0)))+               ))+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s1 () Bool ((as is-AList Bool) s0))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s1)+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 (AList (seq.unit 2))))++MODEL: SMTModel {modelObjectives = [], modelBindings = Nothing, modelAssocs = [("e",AList [2] :: ADT)], modelUIFuns = []}+DONE.*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt03.gold view
@@ -0,0 +1,95 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] (declare-datatypes ((SBVTuple3 3)) ((par (T1 T2 T3)+                                           ((mkSBVTuple3 (proj_1_SBVTuple3 T1)+                                                         (proj_2_SBVTuple3 T2)+                                                         (proj_3_SBVTuple3 T3))))))+[GOOD] ; --- sums ---+[GOOD] (declare-datatype SBVRational ((SBV.Rational (sbv.rat.numerator Int) (sbv.rat.denominator Int))))++[GOOD] (define-fun sbv.rat.eq ((x SBVRational) (y SBVRational)) Bool+          (= (* (sbv.rat.numerator   x) (sbv.rat.denominator y))+             (* (sbv.rat.denominator x) (sbv.rat.numerator   y)))+       )++[GOOD] (define-fun sbv.rat.notEq ((x SBVRational) (y SBVRational)) Bool+          (not (sbv.rat.eq x y))+       )+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Maybe+[GOOD] (declare-datatype Maybe (par (a) (+           (Nothing)+           (Just (getJust_1 a))+       )))+[GOOD] ; User defined ADT: Either+[GOOD] (declare-datatype Either (par (a b) (+           (Left (getLeft_1 a))+           (Right (getRight_1 b))+       )))+[GOOD] ; User defined ADT: ADT+[GOOD] (declare-datatype ADT (+           (AEmpty)+           (ABool (getABool_1 Bool))+           (AInteger (getAInteger_1 Int))+           (AWord8 (getAWord8_1 (_ BitVec 8)))+           (AWord16 (getAWord16_1 (_ BitVec 16)))+           (AWord32 (getAWord32_1 (_ BitVec 32)))+           (AWord64 (getAWord64_1 (_ BitVec 64)))+           (AInt8 (getAInt8_1 (_ BitVec 8)))+           (AInt16 (getAInt16_1 (_ BitVec 16)))+           (AInt32 (getAInt32_1 (_ BitVec 32)))+           (AInt64 (getAInt64_1 (_ BitVec 64)))+           (AWord1 (getAWord1_1 (_ BitVec 1)))+           (AWord5 (getAWord5_1 (_ BitVec 5)))+           (AWord30 (getAWord30_1 (_ BitVec 30)))+           (AInt1 (getAInt1_1 (_ BitVec 1)))+           (AInt5 (getAInt5_1 (_ BitVec 5)))+           (AInt30 (getAInt30_1 (_ BitVec 30)))+           (AReal (getAReal_1 Real))+           (AFloat (getAFloat_1 (_ FloatingPoint  8 24)))+           (ADouble (getADouble_1 (_ FloatingPoint 11 53)))+           (AFP (getAFP_1 (_ FloatingPoint 5 12)))+           (AString (getAString_1 String))+           (AList (getAList_1 (Seq Int)))+           (ATuple (getATuple_1 (SBVTuple2 (_ FloatingPoint 11 53) (Seq (SBVTuple2 (_ BitVec 5) (Seq (_ FloatingPoint  8 24)))))))+           (AMaybe (getAMaybe_1 (Maybe (SBVTuple3 Real (_ FloatingPoint  8 24) (SBVTuple2 (Either Int (_ FloatingPoint  8 24)) (Seq Bool))))))+           (AEither (getAEither_1 (Either (SBVTuple2 (Maybe Int) Bool) (Seq Int))))+           (APair (getAPair_1 ADT) (getAPair_2 ADT))+           (KChar (getKChar_1 String))+           (KRational (getKRational_1 SBVRational))+       ))+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () ADT) ; tracks user variable "e"+[GOOD] (assert (and (= 1 (str.len (getKChar_1 s0)))+                    (< 0 (sbv.rat.denominator (getKRational_1 s0)))+               ))+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s1 () Bool ((as is-AList Bool) s0))+[GOOD] (define-fun s2 () Bool ((as is-AFP Bool) s0))+[GOOD] (define-fun s3 () Bool (and s1 s2))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s3)+[SEND] (check-sat)+[RECV] unsat++UNSAT*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt04.gold view
@@ -0,0 +1,180 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] (declare-datatypes ((SBVTuple3 3)) ((par (T1 T2 T3)+                                           ((mkSBVTuple3 (proj_1_SBVTuple3 T1)+                                                         (proj_2_SBVTuple3 T2)+                                                         (proj_3_SBVTuple3 T3))))))+[GOOD] ; --- sums ---+[GOOD] (declare-datatype SBVRational ((SBV.Rational (sbv.rat.numerator Int) (sbv.rat.denominator Int))))++[GOOD] (define-fun sbv.rat.eq ((x SBVRational) (y SBVRational)) Bool+          (= (* (sbv.rat.numerator   x) (sbv.rat.denominator y))+             (* (sbv.rat.denominator x) (sbv.rat.numerator   y)))+       )++[GOOD] (define-fun sbv.rat.notEq ((x SBVRational) (y SBVRational)) Bool+          (not (sbv.rat.eq x y))+       )+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Maybe+[GOOD] (declare-datatype Maybe (par (a) (+           (Nothing)+           (Just (getJust_1 a))+       )))+[GOOD] ; User defined ADT: Either+[GOOD] (declare-datatype Either (par (a b) (+           (Left (getLeft_1 a))+           (Right (getRight_1 b))+       )))+[GOOD] ; User defined ADT: ADT+[GOOD] (declare-datatype ADT (+           (AEmpty)+           (ABool (getABool_1 Bool))+           (AInteger (getAInteger_1 Int))+           (AWord8 (getAWord8_1 (_ BitVec 8)))+           (AWord16 (getAWord16_1 (_ BitVec 16)))+           (AWord32 (getAWord32_1 (_ BitVec 32)))+           (AWord64 (getAWord64_1 (_ BitVec 64)))+           (AInt8 (getAInt8_1 (_ BitVec 8)))+           (AInt16 (getAInt16_1 (_ BitVec 16)))+           (AInt32 (getAInt32_1 (_ BitVec 32)))+           (AInt64 (getAInt64_1 (_ BitVec 64)))+           (AWord1 (getAWord1_1 (_ BitVec 1)))+           (AWord5 (getAWord5_1 (_ BitVec 5)))+           (AWord30 (getAWord30_1 (_ BitVec 30)))+           (AInt1 (getAInt1_1 (_ BitVec 1)))+           (AInt5 (getAInt5_1 (_ BitVec 5)))+           (AInt30 (getAInt30_1 (_ BitVec 30)))+           (AReal (getAReal_1 Real))+           (AFloat (getAFloat_1 (_ FloatingPoint  8 24)))+           (ADouble (getADouble_1 (_ FloatingPoint 11 53)))+           (AFP (getAFP_1 (_ FloatingPoint 5 12)))+           (AString (getAString_1 String))+           (AList (getAList_1 (Seq Int)))+           (ATuple (getATuple_1 (SBVTuple2 (_ FloatingPoint 11 53) (Seq (SBVTuple2 (_ BitVec 5) (Seq (_ FloatingPoint  8 24)))))))+           (AMaybe (getAMaybe_1 (Maybe (SBVTuple3 Real (_ FloatingPoint  8 24) (SBVTuple2 (Either Int (_ FloatingPoint  8 24)) (Seq Bool))))))+           (AEither (getAEither_1 (Either (SBVTuple2 (Maybe Int) Bool) (Seq Int))))+           (APair (getAPair_1 ADT) (getAPair_2 ADT))+           (KChar (getKChar_1 String))+           (KRational (getKRational_1 SBVRational))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s3 () Int 0)+[GOOD] (define-fun s5 () Int 5)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () ADT) ; tracks user variable "a"+[GOOD] (assert (and (= 1 (str.len (getKChar_1 s0)))+                    (< 0 (sbv.rat.denominator (getKRational_1 s0)))+               ))+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s1 () Bool ((as is-AInteger Bool) s0))+[GOOD] (define-fun s2 () Int (getAInteger_1 s0))+[GOOD] (define-fun s4 () Bool (>= s2 s3))+[GOOD] (define-fun s6 () Bool (<= s2 s5))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s1)+[GOOD] (assert s4)+[GOOD] (assert s6)+*** Checking Satisfiability, all solutions..+Fast allSat, Looking for solution 1+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 (AInteger 4)))+[GOOD] (push 1)+[GOOD] (define-fun s7 () ADT ((as AInteger ADT) 4))+[GOOD] (define-fun s8 () Bool (= s0 s7))+[GOOD] (define-fun s9 () Bool (not s8))+[GOOD] (assert s9)+Fast allSat, Looking for solution 2+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 (AInteger 0)))+[GOOD] (push 1)+[GOOD] (define-fun s10 () ADT ((as AInteger ADT) 0))+[GOOD] (define-fun s11 () Bool (= s0 s10))+[GOOD] (define-fun s12 () Bool (not s11))+[GOOD] (assert s12)+Fast allSat, Looking for solution 3+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 (AInteger 3)))+[GOOD] (push 1)+[GOOD] (define-fun s13 () ADT ((as AInteger ADT) 3))+[GOOD] (define-fun s14 () Bool (= s0 s13))+[GOOD] (define-fun s15 () Bool (not s14))+[GOOD] (assert s15)+Fast allSat, Looking for solution 4+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 (AInteger 5)))+[GOOD] (push 1)+[GOOD] (define-fun s16 () ADT ((as AInteger ADT) 5))+[GOOD] (define-fun s17 () Bool (= s0 s16))+[GOOD] (define-fun s18 () Bool (not s17))+[GOOD] (assert s18)+Fast allSat, Looking for solution 5+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 (AInteger 2)))+[GOOD] (push 1)+[GOOD] (define-fun s19 () ADT ((as AInteger ADT) 2))+[GOOD] (define-fun s20 () Bool (= s0 s19))+[GOOD] (define-fun s21 () Bool (not s20))+[GOOD] (assert s21)+Fast allSat, Looking for solution 6+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 (AInteger 1)))+[GOOD] (push 1)+[GOOD] (define-fun s22 () ADT ((as AInteger ADT) 1))+[GOOD] (define-fun s23 () Bool (= s0 s22))+[GOOD] (define-fun s24 () Bool (not s23))+[GOOD] (assert s24)+Fast allSat, Looking for solution 7+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+*** Solver   : Z3+*** Exit code: ExitSuccess++MODEL:Satisfiable. Model:+  a = AInteger 1 :: ADT+MODEL:Satisfiable. Model:+  a = AInteger 2 :: ADT+MODEL:Satisfiable. Model:+  a = AInteger 5 :: ADT+MODEL:Satisfiable. Model:+  a = AInteger 3 :: ADT+MODEL:Satisfiable. Model:+  a = AInteger 0 :: ADT+MODEL:Satisfiable. Model:+  a = AInteger 4 :: ADT
+ SBVTestSuite/GoldFiles/adt05.gold view
@@ -0,0 +1,130 @@+** Calling: cvc5 --lang smt --incremental --nl-cov+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic HO_ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] (declare-datatypes ((SBVTuple3 3)) ((par (T1 T2 T3)+                                           ((mkSBVTuple3 (proj_1_SBVTuple3 T1)+                                                         (proj_2_SBVTuple3 T2)+                                                         (proj_3_SBVTuple3 T3))))))+[GOOD] ; --- sums ---+[GOOD] (declare-datatype SBVRational ((SBV.Rational (sbv.rat.numerator Int) (sbv.rat.denominator Int))))++[GOOD] (define-fun sbv.rat.eq ((x SBVRational) (y SBVRational)) Bool+          (= (* (sbv.rat.numerator   x) (sbv.rat.denominator y))+             (* (sbv.rat.denominator x) (sbv.rat.numerator   y)))+       )++[GOOD] (define-fun sbv.rat.notEq ((x SBVRational) (y SBVRational)) Bool+          (not (sbv.rat.eq x y))+       )+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Maybe+[GOOD] (declare-datatype Maybe (par (a) (+           (Nothing)+           (Just (getJust_1 a))+       )))+[GOOD] ; User defined ADT: Either+[GOOD] (declare-datatype Either (par (a b) (+           (Left (getLeft_1 a))+           (Right (getRight_1 b))+       )))+[GOOD] ; User defined ADT: ADT+[GOOD] (declare-datatype ADT (+           (AEmpty)+           (ABool (getABool_1 Bool))+           (AInteger (getAInteger_1 Int))+           (AWord8 (getAWord8_1 (_ BitVec 8)))+           (AWord16 (getAWord16_1 (_ BitVec 16)))+           (AWord32 (getAWord32_1 (_ BitVec 32)))+           (AWord64 (getAWord64_1 (_ BitVec 64)))+           (AInt8 (getAInt8_1 (_ BitVec 8)))+           (AInt16 (getAInt16_1 (_ BitVec 16)))+           (AInt32 (getAInt32_1 (_ BitVec 32)))+           (AInt64 (getAInt64_1 (_ BitVec 64)))+           (AWord1 (getAWord1_1 (_ BitVec 1)))+           (AWord5 (getAWord5_1 (_ BitVec 5)))+           (AWord30 (getAWord30_1 (_ BitVec 30)))+           (AInt1 (getAInt1_1 (_ BitVec 1)))+           (AInt5 (getAInt5_1 (_ BitVec 5)))+           (AInt30 (getAInt30_1 (_ BitVec 30)))+           (AReal (getAReal_1 Real))+           (AFloat (getAFloat_1 (_ FloatingPoint  8 24)))+           (ADouble (getADouble_1 (_ FloatingPoint 11 53)))+           (AFP (getAFP_1 (_ FloatingPoint 5 12)))+           (AString (getAString_1 String))+           (AList (getAList_1 (Seq Int)))+           (ATuple (getATuple_1 (SBVTuple2 (_ FloatingPoint 11 53) (Seq (SBVTuple2 (_ BitVec 5) (Seq (_ FloatingPoint  8 24)))))))+           (AMaybe (getAMaybe_1 (Maybe (SBVTuple3 Real (_ FloatingPoint  8 24) (SBVTuple2 (Either Int (_ FloatingPoint  8 24)) (Seq Bool))))))+           (AEither (getAEither_1 (Either (SBVTuple2 (Maybe Int) Bool) (Seq Int))))+           (APair (getAPair_1 ADT) (getAPair_2 ADT))+           (KChar (getKChar_1 String))+           (KRational (getKRational_1 SBVRational))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s4 () (_ FloatingPoint  8 24) (fp #b0 #b10000001 #b00000000000000000000000))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () ADT) ; tracks user variable "a"+[GOOD] (assert (and (= 1 (str.len (getKChar_1 s0)))+                    (< 0 (sbv.rat.denominator (getKRational_1 s0)))+               ))+[GOOD] (declare-fun s1 () ADT) ; tracks user variable "b"+[GOOD] (assert (and (= 1 (str.len (getKChar_1 s1)))+                    (< 0 (sbv.rat.denominator (getKRational_1 s1)))+               ))+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (is-AFloat s0))+[GOOD] (define-fun s3 () (_ FloatingPoint  8 24) (getAFloat_1 s0))+[GOOD] (define-fun s5 () Bool (fp.eq s3 s4))+[GOOD] (define-fun s6 () Bool (and s2 s5))+[GOOD] (define-fun s7 () Bool (is-AFloat s1))+[GOOD] (define-fun s8 () (_ FloatingPoint  8 24) (getAFloat_1 s1))+[GOOD] (define-fun s9 () Bool (fp.isNaN s8))+[GOOD] (define-fun s10 () Bool (and s7 s9))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s6)+[GOOD] (assert s10)+*** Checking Satisfiability, all solutions..+Fast allSat, Looking for solution 1+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 (AFloat (fp #b0 #b10000001 #b00000000000000000000000))))+[SEND] (get-value (s1))+[RECV] ((s1 (AFloat (fp #b0 #b11111111 #b10000000000000000000000))))+[GOOD] (push 1)+[GOOD] (define-fun s11 () ADT ((as AFloat ADT) (fp #b0 #b10000001 #b00000000000000000000000)))+[GOOD] (define-fun s12 () Bool (= s0 s11))+[GOOD] (define-fun s13 () Bool (not s12))+[GOOD] (assert s13)+Fast allSat, Looking for solution 2+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (define-fun s14 () ADT ((as AFloat ADT) (_ NaN 8 24)))+[GOOD] (define-fun s15 () Bool (= s1 s14))+[GOOD] (define-fun s16 () Bool (not s15))+[GOOD] (assert s16)+[GOOD] (assert s12)+Fast allSat, Looking for solution 2+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+*** Solver   : CVC5+*** Exit code: ExitSuccess++MODEL:Satisfiable. Model:+  a = AFloat 4.0 :: ADT+  b = AFloat NaN :: ADT
+ SBVTestSuite/GoldFiles/adt06.gold view
@@ -0,0 +1,103 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] (declare-datatypes ((SBVTuple3 3)) ((par (T1 T2 T3)+                                           ((mkSBVTuple3 (proj_1_SBVTuple3 T1)+                                                         (proj_2_SBVTuple3 T2)+                                                         (proj_3_SBVTuple3 T3))))))+[GOOD] ; --- sums ---+[GOOD] (declare-datatype SBVRational ((SBV.Rational (sbv.rat.numerator Int) (sbv.rat.denominator Int))))++[GOOD] (define-fun sbv.rat.eq ((x SBVRational) (y SBVRational)) Bool+          (= (* (sbv.rat.numerator   x) (sbv.rat.denominator y))+             (* (sbv.rat.denominator x) (sbv.rat.numerator   y)))+       )++[GOOD] (define-fun sbv.rat.notEq ((x SBVRational) (y SBVRational)) Bool+          (not (sbv.rat.eq x y))+       )+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Maybe+[GOOD] (declare-datatype Maybe (par (a) (+           (Nothing)+           (Just (getJust_1 a))+       )))+[GOOD] ; User defined ADT: Either+[GOOD] (declare-datatype Either (par (a b) (+           (Left (getLeft_1 a))+           (Right (getRight_1 b))+       )))+[GOOD] ; User defined ADT: ADT+[GOOD] (declare-datatype ADT (+           (AEmpty)+           (ABool (getABool_1 Bool))+           (AInteger (getAInteger_1 Int))+           (AWord8 (getAWord8_1 (_ BitVec 8)))+           (AWord16 (getAWord16_1 (_ BitVec 16)))+           (AWord32 (getAWord32_1 (_ BitVec 32)))+           (AWord64 (getAWord64_1 (_ BitVec 64)))+           (AInt8 (getAInt8_1 (_ BitVec 8)))+           (AInt16 (getAInt16_1 (_ BitVec 16)))+           (AInt32 (getAInt32_1 (_ BitVec 32)))+           (AInt64 (getAInt64_1 (_ BitVec 64)))+           (AWord1 (getAWord1_1 (_ BitVec 1)))+           (AWord5 (getAWord5_1 (_ BitVec 5)))+           (AWord30 (getAWord30_1 (_ BitVec 30)))+           (AInt1 (getAInt1_1 (_ BitVec 1)))+           (AInt5 (getAInt5_1 (_ BitVec 5)))+           (AInt30 (getAInt30_1 (_ BitVec 30)))+           (AReal (getAReal_1 Real))+           (AFloat (getAFloat_1 (_ FloatingPoint  8 24)))+           (ADouble (getADouble_1 (_ FloatingPoint 11 53)))+           (AFP (getAFP_1 (_ FloatingPoint 5 12)))+           (AString (getAString_1 String))+           (AList (getAList_1 (Seq Int)))+           (ATuple (getATuple_1 (SBVTuple2 (_ FloatingPoint 11 53) (Seq (SBVTuple2 (_ BitVec 5) (Seq (_ FloatingPoint  8 24)))))))+           (AMaybe (getAMaybe_1 (Maybe (SBVTuple3 Real (_ FloatingPoint  8 24) (SBVTuple2 (Either Int (_ FloatingPoint  8 24)) (Seq Bool))))))+           (AEither (getAEither_1 (Either (SBVTuple2 (Maybe Int) Bool) (Seq Int))))+           (APair (getAPair_1 ADT) (getAPair_2 ADT))+           (KChar (getKChar_1 String))+           (KRational (getKRational_1 SBVRational))+       ))+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () ADT) ; tracks user variable "a"+[GOOD] (assert (and (= 1 (str.len (getKChar_1 s0)))+                    (< 0 (sbv.rat.denominator (getKRational_1 s0)))+               ))+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s1 () Bool ((as is-AMaybe Bool) s0))+[GOOD] (define-fun s2 () (Maybe (SBVTuple3 Real (_ FloatingPoint  8 24) (SBVTuple2 (Either Int (_ FloatingPoint  8 24)) (Seq Bool)))) (getAMaybe_1 s0))+[GOOD] (define-fun s3 () Bool ((as is-Just Bool) s2))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s1)+[GOOD] (assert s3)+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 (AMaybe (Just (mkSBVTuple3 2.0+                                  (fp #b0 #x00 #b00000000000000000000001)+                                  (mkSBVTuple2 (Right (fp #b0 #x00 #b00000000000000000100000))+                                               (seq.unit true)))))))++getValue: AMaybe (Just (2.0,1.0e-45,(Right 4.5e-44,[True])))+DONE+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_chk01.gold view
@@ -0,0 +1,40 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: A+[GOOD] (declare-datatype A (+           (A (getA_1 Int))+           (B (getB_1 (_ BitVec 8)))+           (C (getC_1 A) (getC_2 A))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () A ((as A A) 13))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () A) ; tracks user variable "res"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 (A 13)))+Result: A 13+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_expr00.gold view
@@ -0,0 +1,219 @@+[MEASURE] Verifying termination measures for: eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer), eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer), get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)+[MEASURE] Checking: eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): not in a multi-member cycle, skipping mutual check+[MEASURE] Passed (terminating): eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)+[MEASURE] Checking: eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): barified = "|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|"+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): Uninterpreted ops in DAG: [("|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2)]+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): recursive calls found = 6+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): trying sbv.dt.size.Expr arg2+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): sbv.dt.size.Expr arg2 -> OK (structural recursion)+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): sbv.dt.size.Expr arg2 -> OK+[MEASURE] Passed (terminating): eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)+[MEASURE] Checking: get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): barified = "|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|"+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): Uninterpreted ops in DAG: [("|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|",2)]+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): recursive calls found = 1+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): trying length arg1+[MEASURE] replayDAG {get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)}: replaying 13 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq (SBVTuple2 String Int))) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () String) ; tracks user variable "arg1"+[GOOD] (declare-fun s14 () Int) ; tracks user variable "__internal_sbv_s14"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Int (seq.len s0))+[GOOD] (define-fun s5 () Bool (= s2 s4))+[GOOD] (define-fun s6 () Bool (not s5))+[GOOD] (define-fun s7 () (SBVTuple2 String Int) (seq.nth s0 s2))+[GOOD] (define-fun s8 () String (proj_1_SBVTuple2 s7))+[GOOD] (define-fun s9 () Bool (= s1 s8))+[GOOD] (define-fun s10 () Bool (and s6 s9))+[GOOD] (define-fun s11 () Int (proj_2_SBVTuple2 s7))+[GOOD] (define-fun s12 () Int (- s4 s3))+[GOOD] (define-fun s13 () (Seq (SBVTuple2 String Int)) (seq.extract s0 s3 s12))+[GOOD] (define-fun s15 () Int (ite s10 s11 s14))+[GOOD] (define-fun s16 () Int (ite s5 s2 s15))+[GOOD] (define-fun s17 () Bool (>= s4 s2))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s17))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)}: replaying 13 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq (SBVTuple2 String Int))) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () String) ; tracks user variable "arg1"+[GOOD] (declare-fun s14 () Int) ; tracks user variable "__internal_sbv_s14"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Int (seq.len s0))+[GOOD] (define-fun s5 () Bool (= s2 s4))+[GOOD] (define-fun s6 () Bool (not s5))+[GOOD] (define-fun s7 () (SBVTuple2 String Int) (seq.nth s0 s2))+[GOOD] (define-fun s8 () String (proj_1_SBVTuple2 s7))+[GOOD] (define-fun s9 () Bool (= s1 s8))+[GOOD] (define-fun s10 () Bool (and s6 s9))+[GOOD] (define-fun s11 () Int (proj_2_SBVTuple2 s7))+[GOOD] (define-fun s12 () Int (- s4 s3))+[GOOD] (define-fun s13 () (Seq (SBVTuple2 String Int)) (seq.extract s0 s3 s12))+[GOOD] (define-fun s15 () Int (ite s10 s11 s14))+[GOOD] (define-fun s16 () Int (ite s5 s2 s15))+[GOOD] (define-fun s17 () Int (seq.len s13))+[GOOD] (define-fun s18 () Bool (not s10))+[GOOD] (define-fun s19 () Bool (and s6 s18))+[GOOD] (define-fun s20 () Bool (> s4 s17))+[GOOD] (define-fun s21 () Bool (=> s19 s20))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s21))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): length arg1 -> OK+[MEASURE] Passed (terminating): get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Expr ((as Val Expr) 3))+[GOOD] (define-fun s3 () (Seq (SBVTuple2 String Int)) (as seq.empty (Seq (SBVTuple2 String Int))))+[GOOD] (define-fun s5 () Int 3)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; |get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| :: [(SString, SInteger)] -> SString -> SInteger [Recursive]+[GOOD] (define-fun-rec |get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| ((l2_s0 (Seq (SBVTuple2 String Int))) (l2_s1 String)) Int+                                                 (let ((l2_s3 0))+                                                 (let ((l2_s11 1))+                                                 (let ((l2_s2 (seq.len l2_s0)))+                                                 (let ((l2_s4 (= l2_s2 l2_s3)))+                                                 (let ((l2_s5 (not l2_s4)))+                                                 (let ((l2_s6 (seq.nth l2_s0 l2_s3)))+                                                 (let ((l2_s7 (proj_1_SBVTuple2 l2_s6)))+                                                 (let ((l2_s8 (= l2_s1 l2_s7)))+                                                 (let ((l2_s9 (and l2_s5 l2_s8)))+                                                 (let ((l2_s10 (proj_2_SBVTuple2 l2_s6)))+                                                 (let ((l2_s12 (- l2_s2 l2_s11)))+                                                 (let ((l2_s13 (seq.extract l2_s0 l2_s11 l2_s12)))+                                                 (let ((l2_s14 (|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| l2_s13 l2_s1)))+                                                 (let ((l2_s15 (ite l2_s9 l2_s10 l2_s14)))+                                                 (let ((l2_s16 (ite l2_s4 l2_s3 l2_s15)))+                                                 l2_s16))))))))))))))))+[GOOD] ; |eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| :: [(SString, SInteger)] -> Expr -> SInteger [Recursive] [Refers to: |get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|]+[GOOD] (define-fun-rec |eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| ((l1_s0 (Seq (SBVTuple2 String Int))) (l1_s1 Expr)) Int+                                 (let ((l1_s2 ((as is-Val Bool) l1_s1)))+                                 (let ((l1_s3 (getVal_1 l1_s1)))+                                 (let ((l1_s4 ((as is-Var Bool) l1_s1)))+                                 (let ((l1_s5 (getVar_1 l1_s1)))+                                 (let ((l1_s6 (|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| l1_s0 l1_s5)))+                                 (let ((l1_s7 ((as is-Add Bool) l1_s1)))+                                 (let ((l1_s8 (getAdd_1 l1_s1)))+                                 (let ((l1_s9 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s8)))+                                 (let ((l1_s10 (getAdd_2 l1_s1)))+                                 (let ((l1_s11 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s10)))+                                 (let ((l1_s12 (+ l1_s9 l1_s11)))+                                 (let ((l1_s13 ((as is-Mul Bool) l1_s1)))+                                 (let ((l1_s14 (getMul_1 l1_s1)))+                                 (let ((l1_s15 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s14)))+                                 (let ((l1_s16 (getMul_2 l1_s1)))+                                 (let ((l1_s17 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s16)))+                                 (let ((l1_s18 (* l1_s15 l1_s17)))+                                 (let ((l1_s19 (getLet_1 l1_s1)))+                                 (let ((l1_s20 (getLet_2 l1_s1)))+                                 (let ((l1_s21 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s20)))+                                 (let ((l1_s22 ((as mkSBVTuple2 (SBVTuple2 String Int)) l1_s19 l1_s21)))+                                 (let ((l1_s23 (seq.unit l1_s22)))+                                 (let ((l1_s24 (seq.++ l1_s23 l1_s0)))+                                 (let ((l1_s25 (getLet_3 l1_s1)))+                                 (let ((l1_s26 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s24 l1_s25)))+                                 (let ((l1_s27 (ite l1_s13 l1_s18 l1_s26)))+                                 (let ((l1_s28 (ite l1_s7 l1_s12 l1_s27)))+                                 (let ((l1_s29 (ite l1_s4 l1_s6 l1_s28)))+                                 (let ((l1_s30 (ite l1_s2 l1_s3 l1_s29)))+                                 l1_s30))))))))))))))))))))))))))))))+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s4 () Int (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| s3 s0))+[GOOD] (define-fun s6 () Bool (distinct s4 s5))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s6)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_expr00c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_expr01.gold view
@@ -0,0 +1,219 @@+[MEASURE] Verifying termination measures for: eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer), eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer), get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)+[MEASURE] Checking: eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): not in a multi-member cycle, skipping mutual check+[MEASURE] Passed (terminating): eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)+[MEASURE] Checking: eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): barified = "|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|"+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): Uninterpreted ops in DAG: [("|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2)]+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): recursive calls found = 6+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): trying sbv.dt.size.Expr arg2+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): sbv.dt.size.Expr arg2 -> OK (structural recursion)+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): sbv.dt.size.Expr arg2 -> OK+[MEASURE] Passed (terminating): eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)+[MEASURE] Checking: get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): barified = "|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|"+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): Uninterpreted ops in DAG: [("|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|",2)]+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): recursive calls found = 1+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): trying length arg1+[MEASURE] replayDAG {get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)}: replaying 13 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq (SBVTuple2 String Int))) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () String) ; tracks user variable "arg1"+[GOOD] (declare-fun s14 () Int) ; tracks user variable "__internal_sbv_s14"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Int (seq.len s0))+[GOOD] (define-fun s5 () Bool (= s2 s4))+[GOOD] (define-fun s6 () Bool (not s5))+[GOOD] (define-fun s7 () (SBVTuple2 String Int) (seq.nth s0 s2))+[GOOD] (define-fun s8 () String (proj_1_SBVTuple2 s7))+[GOOD] (define-fun s9 () Bool (= s1 s8))+[GOOD] (define-fun s10 () Bool (and s6 s9))+[GOOD] (define-fun s11 () Int (proj_2_SBVTuple2 s7))+[GOOD] (define-fun s12 () Int (- s4 s3))+[GOOD] (define-fun s13 () (Seq (SBVTuple2 String Int)) (seq.extract s0 s3 s12))+[GOOD] (define-fun s15 () Int (ite s10 s11 s14))+[GOOD] (define-fun s16 () Int (ite s5 s2 s15))+[GOOD] (define-fun s17 () Bool (>= s4 s2))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s17))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)}: replaying 13 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq (SBVTuple2 String Int))) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () String) ; tracks user variable "arg1"+[GOOD] (declare-fun s14 () Int) ; tracks user variable "__internal_sbv_s14"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Int (seq.len s0))+[GOOD] (define-fun s5 () Bool (= s2 s4))+[GOOD] (define-fun s6 () Bool (not s5))+[GOOD] (define-fun s7 () (SBVTuple2 String Int) (seq.nth s0 s2))+[GOOD] (define-fun s8 () String (proj_1_SBVTuple2 s7))+[GOOD] (define-fun s9 () Bool (= s1 s8))+[GOOD] (define-fun s10 () Bool (and s6 s9))+[GOOD] (define-fun s11 () Int (proj_2_SBVTuple2 s7))+[GOOD] (define-fun s12 () Int (- s4 s3))+[GOOD] (define-fun s13 () (Seq (SBVTuple2 String Int)) (seq.extract s0 s3 s12))+[GOOD] (define-fun s15 () Int (ite s10 s11 s14))+[GOOD] (define-fun s16 () Int (ite s5 s2 s15))+[GOOD] (define-fun s17 () Int (seq.len s13))+[GOOD] (define-fun s18 () Bool (not s10))+[GOOD] (define-fun s19 () Bool (and s6 s18))+[GOOD] (define-fun s20 () Bool (> s4 s17))+[GOOD] (define-fun s21 () Bool (=> s19 s20))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s21))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): length arg1 -> OK+[MEASURE] Passed (terminating): get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Expr ((as Add Expr) ((as Val Expr) 3) ((as Val Expr) 4)))+[GOOD] (define-fun s3 () (Seq (SBVTuple2 String Int)) (as seq.empty (Seq (SBVTuple2 String Int))))+[GOOD] (define-fun s5 () Int 7)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; |get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| :: [(SString, SInteger)] -> SString -> SInteger [Recursive]+[GOOD] (define-fun-rec |get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| ((l2_s0 (Seq (SBVTuple2 String Int))) (l2_s1 String)) Int+                                                 (let ((l2_s3 0))+                                                 (let ((l2_s11 1))+                                                 (let ((l2_s2 (seq.len l2_s0)))+                                                 (let ((l2_s4 (= l2_s2 l2_s3)))+                                                 (let ((l2_s5 (not l2_s4)))+                                                 (let ((l2_s6 (seq.nth l2_s0 l2_s3)))+                                                 (let ((l2_s7 (proj_1_SBVTuple2 l2_s6)))+                                                 (let ((l2_s8 (= l2_s1 l2_s7)))+                                                 (let ((l2_s9 (and l2_s5 l2_s8)))+                                                 (let ((l2_s10 (proj_2_SBVTuple2 l2_s6)))+                                                 (let ((l2_s12 (- l2_s2 l2_s11)))+                                                 (let ((l2_s13 (seq.extract l2_s0 l2_s11 l2_s12)))+                                                 (let ((l2_s14 (|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| l2_s13 l2_s1)))+                                                 (let ((l2_s15 (ite l2_s9 l2_s10 l2_s14)))+                                                 (let ((l2_s16 (ite l2_s4 l2_s3 l2_s15)))+                                                 l2_s16))))))))))))))))+[GOOD] ; |eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| :: [(SString, SInteger)] -> Expr -> SInteger [Recursive] [Refers to: |get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|]+[GOOD] (define-fun-rec |eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| ((l1_s0 (Seq (SBVTuple2 String Int))) (l1_s1 Expr)) Int+                                 (let ((l1_s2 ((as is-Val Bool) l1_s1)))+                                 (let ((l1_s3 (getVal_1 l1_s1)))+                                 (let ((l1_s4 ((as is-Var Bool) l1_s1)))+                                 (let ((l1_s5 (getVar_1 l1_s1)))+                                 (let ((l1_s6 (|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| l1_s0 l1_s5)))+                                 (let ((l1_s7 ((as is-Add Bool) l1_s1)))+                                 (let ((l1_s8 (getAdd_1 l1_s1)))+                                 (let ((l1_s9 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s8)))+                                 (let ((l1_s10 (getAdd_2 l1_s1)))+                                 (let ((l1_s11 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s10)))+                                 (let ((l1_s12 (+ l1_s9 l1_s11)))+                                 (let ((l1_s13 ((as is-Mul Bool) l1_s1)))+                                 (let ((l1_s14 (getMul_1 l1_s1)))+                                 (let ((l1_s15 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s14)))+                                 (let ((l1_s16 (getMul_2 l1_s1)))+                                 (let ((l1_s17 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s16)))+                                 (let ((l1_s18 (* l1_s15 l1_s17)))+                                 (let ((l1_s19 (getLet_1 l1_s1)))+                                 (let ((l1_s20 (getLet_2 l1_s1)))+                                 (let ((l1_s21 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s20)))+                                 (let ((l1_s22 ((as mkSBVTuple2 (SBVTuple2 String Int)) l1_s19 l1_s21)))+                                 (let ((l1_s23 (seq.unit l1_s22)))+                                 (let ((l1_s24 (seq.++ l1_s23 l1_s0)))+                                 (let ((l1_s25 (getLet_3 l1_s1)))+                                 (let ((l1_s26 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s24 l1_s25)))+                                 (let ((l1_s27 (ite l1_s13 l1_s18 l1_s26)))+                                 (let ((l1_s28 (ite l1_s7 l1_s12 l1_s27)))+                                 (let ((l1_s29 (ite l1_s4 l1_s6 l1_s28)))+                                 (let ((l1_s30 (ite l1_s2 l1_s3 l1_s29)))+                                 l1_s30))))))))))))))))))))))))))))))+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s4 () Int (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| s3 s0))+[GOOD] (define-fun s6 () Bool (distinct s4 s5))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s6)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_expr01c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_expr02.gold view
@@ -0,0 +1,219 @@+[MEASURE] Verifying termination measures for: eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer), eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer), get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)+[MEASURE] Checking: eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): not in a multi-member cycle, skipping mutual check+[MEASURE] Passed (terminating): eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)+[MEASURE] Checking: eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): barified = "|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|"+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): Uninterpreted ops in DAG: [("|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2)]+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): recursive calls found = 6+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): trying sbv.dt.size.Expr arg2+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): sbv.dt.size.Expr arg2 -> OK (structural recursion)+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): sbv.dt.size.Expr arg2 -> OK+[MEASURE] Passed (terminating): eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)+[MEASURE] Checking: get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): barified = "|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|"+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): Uninterpreted ops in DAG: [("|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|",2)]+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): recursive calls found = 1+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): trying length arg1+[MEASURE] replayDAG {get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)}: replaying 13 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq (SBVTuple2 String Int))) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () String) ; tracks user variable "arg1"+[GOOD] (declare-fun s14 () Int) ; tracks user variable "__internal_sbv_s14"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Int (seq.len s0))+[GOOD] (define-fun s5 () Bool (= s2 s4))+[GOOD] (define-fun s6 () Bool (not s5))+[GOOD] (define-fun s7 () (SBVTuple2 String Int) (seq.nth s0 s2))+[GOOD] (define-fun s8 () String (proj_1_SBVTuple2 s7))+[GOOD] (define-fun s9 () Bool (= s1 s8))+[GOOD] (define-fun s10 () Bool (and s6 s9))+[GOOD] (define-fun s11 () Int (proj_2_SBVTuple2 s7))+[GOOD] (define-fun s12 () Int (- s4 s3))+[GOOD] (define-fun s13 () (Seq (SBVTuple2 String Int)) (seq.extract s0 s3 s12))+[GOOD] (define-fun s15 () Int (ite s10 s11 s14))+[GOOD] (define-fun s16 () Int (ite s5 s2 s15))+[GOOD] (define-fun s17 () Bool (>= s4 s2))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s17))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)}: replaying 13 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq (SBVTuple2 String Int))) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () String) ; tracks user variable "arg1"+[GOOD] (declare-fun s14 () Int) ; tracks user variable "__internal_sbv_s14"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Int (seq.len s0))+[GOOD] (define-fun s5 () Bool (= s2 s4))+[GOOD] (define-fun s6 () Bool (not s5))+[GOOD] (define-fun s7 () (SBVTuple2 String Int) (seq.nth s0 s2))+[GOOD] (define-fun s8 () String (proj_1_SBVTuple2 s7))+[GOOD] (define-fun s9 () Bool (= s1 s8))+[GOOD] (define-fun s10 () Bool (and s6 s9))+[GOOD] (define-fun s11 () Int (proj_2_SBVTuple2 s7))+[GOOD] (define-fun s12 () Int (- s4 s3))+[GOOD] (define-fun s13 () (Seq (SBVTuple2 String Int)) (seq.extract s0 s3 s12))+[GOOD] (define-fun s15 () Int (ite s10 s11 s14))+[GOOD] (define-fun s16 () Int (ite s5 s2 s15))+[GOOD] (define-fun s17 () Int (seq.len s13))+[GOOD] (define-fun s18 () Bool (not s10))+[GOOD] (define-fun s19 () Bool (and s6 s18))+[GOOD] (define-fun s20 () Bool (> s4 s17))+[GOOD] (define-fun s21 () Bool (=> s19 s20))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s21))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): length arg1 -> OK+[MEASURE] Passed (terminating): get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Expr ((as Mul Expr) ((as Val Expr) 3) ((as Add Expr) ((as Val Expr) 3) ((as Val Expr) 4))))+[GOOD] (define-fun s3 () (Seq (SBVTuple2 String Int)) (as seq.empty (Seq (SBVTuple2 String Int))))+[GOOD] (define-fun s5 () Int 21)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; |get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| :: [(SString, SInteger)] -> SString -> SInteger [Recursive]+[GOOD] (define-fun-rec |get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| ((l2_s0 (Seq (SBVTuple2 String Int))) (l2_s1 String)) Int+                                                 (let ((l2_s3 0))+                                                 (let ((l2_s11 1))+                                                 (let ((l2_s2 (seq.len l2_s0)))+                                                 (let ((l2_s4 (= l2_s2 l2_s3)))+                                                 (let ((l2_s5 (not l2_s4)))+                                                 (let ((l2_s6 (seq.nth l2_s0 l2_s3)))+                                                 (let ((l2_s7 (proj_1_SBVTuple2 l2_s6)))+                                                 (let ((l2_s8 (= l2_s1 l2_s7)))+                                                 (let ((l2_s9 (and l2_s5 l2_s8)))+                                                 (let ((l2_s10 (proj_2_SBVTuple2 l2_s6)))+                                                 (let ((l2_s12 (- l2_s2 l2_s11)))+                                                 (let ((l2_s13 (seq.extract l2_s0 l2_s11 l2_s12)))+                                                 (let ((l2_s14 (|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| l2_s13 l2_s1)))+                                                 (let ((l2_s15 (ite l2_s9 l2_s10 l2_s14)))+                                                 (let ((l2_s16 (ite l2_s4 l2_s3 l2_s15)))+                                                 l2_s16))))))))))))))))+[GOOD] ; |eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| :: [(SString, SInteger)] -> Expr -> SInteger [Recursive] [Refers to: |get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|]+[GOOD] (define-fun-rec |eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| ((l1_s0 (Seq (SBVTuple2 String Int))) (l1_s1 Expr)) Int+                                 (let ((l1_s2 ((as is-Val Bool) l1_s1)))+                                 (let ((l1_s3 (getVal_1 l1_s1)))+                                 (let ((l1_s4 ((as is-Var Bool) l1_s1)))+                                 (let ((l1_s5 (getVar_1 l1_s1)))+                                 (let ((l1_s6 (|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| l1_s0 l1_s5)))+                                 (let ((l1_s7 ((as is-Add Bool) l1_s1)))+                                 (let ((l1_s8 (getAdd_1 l1_s1)))+                                 (let ((l1_s9 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s8)))+                                 (let ((l1_s10 (getAdd_2 l1_s1)))+                                 (let ((l1_s11 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s10)))+                                 (let ((l1_s12 (+ l1_s9 l1_s11)))+                                 (let ((l1_s13 ((as is-Mul Bool) l1_s1)))+                                 (let ((l1_s14 (getMul_1 l1_s1)))+                                 (let ((l1_s15 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s14)))+                                 (let ((l1_s16 (getMul_2 l1_s1)))+                                 (let ((l1_s17 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s16)))+                                 (let ((l1_s18 (* l1_s15 l1_s17)))+                                 (let ((l1_s19 (getLet_1 l1_s1)))+                                 (let ((l1_s20 (getLet_2 l1_s1)))+                                 (let ((l1_s21 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s20)))+                                 (let ((l1_s22 ((as mkSBVTuple2 (SBVTuple2 String Int)) l1_s19 l1_s21)))+                                 (let ((l1_s23 (seq.unit l1_s22)))+                                 (let ((l1_s24 (seq.++ l1_s23 l1_s0)))+                                 (let ((l1_s25 (getLet_3 l1_s1)))+                                 (let ((l1_s26 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s24 l1_s25)))+                                 (let ((l1_s27 (ite l1_s13 l1_s18 l1_s26)))+                                 (let ((l1_s28 (ite l1_s7 l1_s12 l1_s27)))+                                 (let ((l1_s29 (ite l1_s4 l1_s6 l1_s28)))+                                 (let ((l1_s30 (ite l1_s2 l1_s3 l1_s29)))+                                 l1_s30))))))))))))))))))))))))))))))+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s4 () Int (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| s3 s0))+[GOOD] (define-fun s6 () Bool (distinct s4 s5))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s6)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_expr02c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_expr03.gold view
@@ -0,0 +1,219 @@+[MEASURE] Verifying termination measures for: eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer), eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer), get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)+[MEASURE] Checking: eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): not in a multi-member cycle, skipping mutual check+[MEASURE] Passed (terminating): eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)+[MEASURE] Checking: eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): barified = "|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|"+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): Uninterpreted ops in DAG: [("|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2)]+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): recursive calls found = 6+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): trying sbv.dt.size.Expr arg2+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): sbv.dt.size.Expr arg2 -> OK (structural recursion)+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): sbv.dt.size.Expr arg2 -> OK+[MEASURE] Passed (terminating): eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)+[MEASURE] Checking: get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): barified = "|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|"+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): Uninterpreted ops in DAG: [("|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|",2)]+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): recursive calls found = 1+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): trying length arg1+[MEASURE] replayDAG {get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)}: replaying 13 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq (SBVTuple2 String Int))) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () String) ; tracks user variable "arg1"+[GOOD] (declare-fun s14 () Int) ; tracks user variable "__internal_sbv_s14"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Int (seq.len s0))+[GOOD] (define-fun s5 () Bool (= s2 s4))+[GOOD] (define-fun s6 () Bool (not s5))+[GOOD] (define-fun s7 () (SBVTuple2 String Int) (seq.nth s0 s2))+[GOOD] (define-fun s8 () String (proj_1_SBVTuple2 s7))+[GOOD] (define-fun s9 () Bool (= s1 s8))+[GOOD] (define-fun s10 () Bool (and s6 s9))+[GOOD] (define-fun s11 () Int (proj_2_SBVTuple2 s7))+[GOOD] (define-fun s12 () Int (- s4 s3))+[GOOD] (define-fun s13 () (Seq (SBVTuple2 String Int)) (seq.extract s0 s3 s12))+[GOOD] (define-fun s15 () Int (ite s10 s11 s14))+[GOOD] (define-fun s16 () Int (ite s5 s2 s15))+[GOOD] (define-fun s17 () Bool (>= s4 s2))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s17))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)}: replaying 13 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq (SBVTuple2 String Int))) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () String) ; tracks user variable "arg1"+[GOOD] (declare-fun s14 () Int) ; tracks user variable "__internal_sbv_s14"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Int (seq.len s0))+[GOOD] (define-fun s5 () Bool (= s2 s4))+[GOOD] (define-fun s6 () Bool (not s5))+[GOOD] (define-fun s7 () (SBVTuple2 String Int) (seq.nth s0 s2))+[GOOD] (define-fun s8 () String (proj_1_SBVTuple2 s7))+[GOOD] (define-fun s9 () Bool (= s1 s8))+[GOOD] (define-fun s10 () Bool (and s6 s9))+[GOOD] (define-fun s11 () Int (proj_2_SBVTuple2 s7))+[GOOD] (define-fun s12 () Int (- s4 s3))+[GOOD] (define-fun s13 () (Seq (SBVTuple2 String Int)) (seq.extract s0 s3 s12))+[GOOD] (define-fun s15 () Int (ite s10 s11 s14))+[GOOD] (define-fun s16 () Int (ite s5 s2 s15))+[GOOD] (define-fun s17 () Int (seq.len s13))+[GOOD] (define-fun s18 () Bool (not s10))+[GOOD] (define-fun s19 () Bool (and s6 s18))+[GOOD] (define-fun s20 () Bool (> s4 s17))+[GOOD] (define-fun s21 () Bool (=> s19 s20))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s21))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): length arg1 -> OK+[MEASURE] Passed (terminating): get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Expr ((as Let Expr) "a" ((as Mul Expr) ((as Val Expr) 3) ((as Add Expr) ((as Val Expr) 3) ((as Val Expr) 4))) ((as Add Expr) ((as Var Expr) "a") ((as Add Expr) ((as Val Expr) 3) ((as Val Expr) 4)))))+[GOOD] (define-fun s3 () (Seq (SBVTuple2 String Int)) (as seq.empty (Seq (SBVTuple2 String Int))))+[GOOD] (define-fun s5 () Int 28)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; |get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| :: [(SString, SInteger)] -> SString -> SInteger [Recursive]+[GOOD] (define-fun-rec |get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| ((l2_s0 (Seq (SBVTuple2 String Int))) (l2_s1 String)) Int+                                                 (let ((l2_s3 0))+                                                 (let ((l2_s11 1))+                                                 (let ((l2_s2 (seq.len l2_s0)))+                                                 (let ((l2_s4 (= l2_s2 l2_s3)))+                                                 (let ((l2_s5 (not l2_s4)))+                                                 (let ((l2_s6 (seq.nth l2_s0 l2_s3)))+                                                 (let ((l2_s7 (proj_1_SBVTuple2 l2_s6)))+                                                 (let ((l2_s8 (= l2_s1 l2_s7)))+                                                 (let ((l2_s9 (and l2_s5 l2_s8)))+                                                 (let ((l2_s10 (proj_2_SBVTuple2 l2_s6)))+                                                 (let ((l2_s12 (- l2_s2 l2_s11)))+                                                 (let ((l2_s13 (seq.extract l2_s0 l2_s11 l2_s12)))+                                                 (let ((l2_s14 (|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| l2_s13 l2_s1)))+                                                 (let ((l2_s15 (ite l2_s9 l2_s10 l2_s14)))+                                                 (let ((l2_s16 (ite l2_s4 l2_s3 l2_s15)))+                                                 l2_s16))))))))))))))))+[GOOD] ; |eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| :: [(SString, SInteger)] -> Expr -> SInteger [Recursive] [Refers to: |get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|]+[GOOD] (define-fun-rec |eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| ((l1_s0 (Seq (SBVTuple2 String Int))) (l1_s1 Expr)) Int+                                 (let ((l1_s2 ((as is-Val Bool) l1_s1)))+                                 (let ((l1_s3 (getVal_1 l1_s1)))+                                 (let ((l1_s4 ((as is-Var Bool) l1_s1)))+                                 (let ((l1_s5 (getVar_1 l1_s1)))+                                 (let ((l1_s6 (|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| l1_s0 l1_s5)))+                                 (let ((l1_s7 ((as is-Add Bool) l1_s1)))+                                 (let ((l1_s8 (getAdd_1 l1_s1)))+                                 (let ((l1_s9 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s8)))+                                 (let ((l1_s10 (getAdd_2 l1_s1)))+                                 (let ((l1_s11 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s10)))+                                 (let ((l1_s12 (+ l1_s9 l1_s11)))+                                 (let ((l1_s13 ((as is-Mul Bool) l1_s1)))+                                 (let ((l1_s14 (getMul_1 l1_s1)))+                                 (let ((l1_s15 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s14)))+                                 (let ((l1_s16 (getMul_2 l1_s1)))+                                 (let ((l1_s17 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s16)))+                                 (let ((l1_s18 (* l1_s15 l1_s17)))+                                 (let ((l1_s19 (getLet_1 l1_s1)))+                                 (let ((l1_s20 (getLet_2 l1_s1)))+                                 (let ((l1_s21 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s20)))+                                 (let ((l1_s22 ((as mkSBVTuple2 (SBVTuple2 String Int)) l1_s19 l1_s21)))+                                 (let ((l1_s23 (seq.unit l1_s22)))+                                 (let ((l1_s24 (seq.++ l1_s23 l1_s0)))+                                 (let ((l1_s25 (getLet_3 l1_s1)))+                                 (let ((l1_s26 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s24 l1_s25)))+                                 (let ((l1_s27 (ite l1_s13 l1_s18 l1_s26)))+                                 (let ((l1_s28 (ite l1_s7 l1_s12 l1_s27)))+                                 (let ((l1_s29 (ite l1_s4 l1_s6 l1_s28)))+                                 (let ((l1_s30 (ite l1_s2 l1_s3 l1_s29)))+                                 l1_s30))))))))))))))))))))))))))))))+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s4 () Int (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| s3 s0))+[GOOD] (define-fun s6 () Bool (distinct s4 s5))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s6)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_expr03c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_expr04.gold view
@@ -0,0 +1,30 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 63)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "res"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 63))+Result: 63+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_expr05.gold view
@@ -0,0 +1,30 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 3969)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "res"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3969))+Result: 3969+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_expr06.gold view
@@ -0,0 +1,75 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Expr ((as Var Expr) "a"))+[GOOD] (define-fun s5 () String "a")+[GOOD] (define-fun s8 () Int 0)+[GOOD] (define-fun s9 () String "b")+[GOOD] (define-fun s11 () String "c")+[GOOD] (define-fun s15 () Int 1)+[GOOD] (define-fun s16 () Int 2)+[GOOD] (define-fun s19 () Int 10)+[GOOD] (define-fun s22 () Int 3)+[GOOD] (define-fun s25 () Int 4)+[GOOD] (define-fun s28 () Int 5)+[GOOD] (define-fun s29 () Int 6)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s3 () Bool ((as is-Var Bool) s0))+[GOOD] (define-fun s4 () String (getVar_1 s0))+[GOOD] (define-fun s6 () Bool (= s4 s5))+[GOOD] (define-fun s7 () Bool (and s3 s6))+[GOOD] (define-fun s10 () Bool (= s4 s9))+[GOOD] (define-fun s12 () Bool (= s4 s11))+[GOOD] (define-fun s13 () Bool (or s10 s12))+[GOOD] (define-fun s14 () Bool (and s3 s13))+[GOOD] (define-fun s17 () Bool ((as is-Val Bool) s0))+[GOOD] (define-fun s18 () Int (getVal_1 s0))+[GOOD] (define-fun s20 () Bool (< s18 s19))+[GOOD] (define-fun s21 () Bool (and s17 s20))+[GOOD] (define-fun s23 () Bool (= s18 s19))+[GOOD] (define-fun s24 () Bool (and s17 s23))+[GOOD] (define-fun s26 () Bool (> s18 s19))+[GOOD] (define-fun s27 () Bool (and s17 s26))+[GOOD] (define-fun s30 () Int (ite s27 s28 s29))+[GOOD] (define-fun s31 () Int (ite s24 s25 s30))+[GOOD] (define-fun s32 () Int (ite s21 s22 s31))+[GOOD] (define-fun s33 () Int (ite s3 s16 s32))+[GOOD] (define-fun s34 () Int (ite s14 s15 s33))+[GOOD] (define-fun s35 () Int (ite s7 s8 s34))+[GOOD] (define-fun s36 () Bool (distinct s8 s35))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s36)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_expr06c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_expr07.gold view
@@ -0,0 +1,75 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Expr ((as Var Expr) "b"))+[GOOD] (define-fun s5 () String "a")+[GOOD] (define-fun s8 () Int 0)+[GOOD] (define-fun s9 () String "b")+[GOOD] (define-fun s11 () String "c")+[GOOD] (define-fun s15 () Int 1)+[GOOD] (define-fun s16 () Int 2)+[GOOD] (define-fun s19 () Int 10)+[GOOD] (define-fun s22 () Int 3)+[GOOD] (define-fun s25 () Int 4)+[GOOD] (define-fun s28 () Int 5)+[GOOD] (define-fun s29 () Int 6)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s3 () Bool ((as is-Var Bool) s0))+[GOOD] (define-fun s4 () String (getVar_1 s0))+[GOOD] (define-fun s6 () Bool (= s4 s5))+[GOOD] (define-fun s7 () Bool (and s3 s6))+[GOOD] (define-fun s10 () Bool (= s4 s9))+[GOOD] (define-fun s12 () Bool (= s4 s11))+[GOOD] (define-fun s13 () Bool (or s10 s12))+[GOOD] (define-fun s14 () Bool (and s3 s13))+[GOOD] (define-fun s17 () Bool ((as is-Val Bool) s0))+[GOOD] (define-fun s18 () Int (getVal_1 s0))+[GOOD] (define-fun s20 () Bool (< s18 s19))+[GOOD] (define-fun s21 () Bool (and s17 s20))+[GOOD] (define-fun s23 () Bool (= s18 s19))+[GOOD] (define-fun s24 () Bool (and s17 s23))+[GOOD] (define-fun s26 () Bool (> s18 s19))+[GOOD] (define-fun s27 () Bool (and s17 s26))+[GOOD] (define-fun s30 () Int (ite s27 s28 s29))+[GOOD] (define-fun s31 () Int (ite s24 s25 s30))+[GOOD] (define-fun s32 () Int (ite s21 s22 s31))+[GOOD] (define-fun s33 () Int (ite s3 s16 s32))+[GOOD] (define-fun s34 () Int (ite s14 s15 s33))+[GOOD] (define-fun s35 () Int (ite s7 s8 s34))+[GOOD] (define-fun s36 () Bool (distinct s15 s35))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s36)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_expr07c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_expr08.gold view
@@ -0,0 +1,75 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Expr ((as Var Expr) "c"))+[GOOD] (define-fun s5 () String "a")+[GOOD] (define-fun s8 () Int 0)+[GOOD] (define-fun s9 () String "b")+[GOOD] (define-fun s11 () String "c")+[GOOD] (define-fun s15 () Int 1)+[GOOD] (define-fun s16 () Int 2)+[GOOD] (define-fun s19 () Int 10)+[GOOD] (define-fun s22 () Int 3)+[GOOD] (define-fun s25 () Int 4)+[GOOD] (define-fun s28 () Int 5)+[GOOD] (define-fun s29 () Int 6)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s3 () Bool ((as is-Var Bool) s0))+[GOOD] (define-fun s4 () String (getVar_1 s0))+[GOOD] (define-fun s6 () Bool (= s4 s5))+[GOOD] (define-fun s7 () Bool (and s3 s6))+[GOOD] (define-fun s10 () Bool (= s4 s9))+[GOOD] (define-fun s12 () Bool (= s4 s11))+[GOOD] (define-fun s13 () Bool (or s10 s12))+[GOOD] (define-fun s14 () Bool (and s3 s13))+[GOOD] (define-fun s17 () Bool ((as is-Val Bool) s0))+[GOOD] (define-fun s18 () Int (getVal_1 s0))+[GOOD] (define-fun s20 () Bool (< s18 s19))+[GOOD] (define-fun s21 () Bool (and s17 s20))+[GOOD] (define-fun s23 () Bool (= s18 s19))+[GOOD] (define-fun s24 () Bool (and s17 s23))+[GOOD] (define-fun s26 () Bool (> s18 s19))+[GOOD] (define-fun s27 () Bool (and s17 s26))+[GOOD] (define-fun s30 () Int (ite s27 s28 s29))+[GOOD] (define-fun s31 () Int (ite s24 s25 s30))+[GOOD] (define-fun s32 () Int (ite s21 s22 s31))+[GOOD] (define-fun s33 () Int (ite s3 s16 s32))+[GOOD] (define-fun s34 () Int (ite s14 s15 s33))+[GOOD] (define-fun s35 () Int (ite s7 s8 s34))+[GOOD] (define-fun s36 () Bool (distinct s15 s35))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s36)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_expr08c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_expr09.gold view
@@ -0,0 +1,75 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Expr ((as Var Expr) "d"))+[GOOD] (define-fun s5 () String "a")+[GOOD] (define-fun s8 () Int 0)+[GOOD] (define-fun s9 () String "b")+[GOOD] (define-fun s11 () String "c")+[GOOD] (define-fun s15 () Int 1)+[GOOD] (define-fun s16 () Int 2)+[GOOD] (define-fun s19 () Int 10)+[GOOD] (define-fun s22 () Int 3)+[GOOD] (define-fun s25 () Int 4)+[GOOD] (define-fun s28 () Int 5)+[GOOD] (define-fun s29 () Int 6)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s3 () Bool ((as is-Var Bool) s0))+[GOOD] (define-fun s4 () String (getVar_1 s0))+[GOOD] (define-fun s6 () Bool (= s4 s5))+[GOOD] (define-fun s7 () Bool (and s3 s6))+[GOOD] (define-fun s10 () Bool (= s4 s9))+[GOOD] (define-fun s12 () Bool (= s4 s11))+[GOOD] (define-fun s13 () Bool (or s10 s12))+[GOOD] (define-fun s14 () Bool (and s3 s13))+[GOOD] (define-fun s17 () Bool ((as is-Val Bool) s0))+[GOOD] (define-fun s18 () Int (getVal_1 s0))+[GOOD] (define-fun s20 () Bool (< s18 s19))+[GOOD] (define-fun s21 () Bool (and s17 s20))+[GOOD] (define-fun s23 () Bool (= s18 s19))+[GOOD] (define-fun s24 () Bool (and s17 s23))+[GOOD] (define-fun s26 () Bool (> s18 s19))+[GOOD] (define-fun s27 () Bool (and s17 s26))+[GOOD] (define-fun s30 () Int (ite s27 s28 s29))+[GOOD] (define-fun s31 () Int (ite s24 s25 s30))+[GOOD] (define-fun s32 () Int (ite s21 s22 s31))+[GOOD] (define-fun s33 () Int (ite s3 s16 s32))+[GOOD] (define-fun s34 () Int (ite s14 s15 s33))+[GOOD] (define-fun s35 () Int (ite s7 s8 s34))+[GOOD] (define-fun s36 () Bool (distinct s16 s35))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s36)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_expr09c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_expr10.gold view
@@ -0,0 +1,454 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s15 () Expr ((as Val Expr) (- 5)))+[GOOD] (define-fun s17 () Expr ((as Val Expr) (- 4)))+[GOOD] (define-fun s19 () Expr ((as Val Expr) (- 3)))+[GOOD] (define-fun s21 () Expr ((as Val Expr) (- 2)))+[GOOD] (define-fun s23 () Expr ((as Val Expr) (- 1)))+[GOOD] (define-fun s25 () Expr ((as Val Expr) 0))+[GOOD] (define-fun s27 () Expr ((as Val Expr) 1))+[GOOD] (define-fun s29 () Expr ((as Val Expr) 2))+[GOOD] (define-fun s31 () Expr ((as Val Expr) 3))+[GOOD] (define-fun s33 () Expr ((as Val Expr) 4))+[GOOD] (define-fun s35 () Expr ((as Val Expr) 5))+[GOOD] (define-fun s37 () Expr ((as Val Expr) 6))+[GOOD] (define-fun s39 () Expr ((as Val Expr) 7))+[GOOD] (define-fun s41 () Expr ((as Val Expr) 8))+[GOOD] (define-fun s43 () Expr ((as Val Expr) 9))+[GOOD] (define-fun s61 () String "a")+[GOOD] (define-fun s64 () Int 0)+[GOOD] (define-fun s65 () String "b")+[GOOD] (define-fun s67 () String "c")+[GOOD] (define-fun s71 () Int 1)+[GOOD] (define-fun s72 () Int 2)+[GOOD] (define-fun s75 () Int 10)+[GOOD] (define-fun s78 () Int 3)+[GOOD] (define-fun s81 () Int 4)+[GOOD] (define-fun s84 () Int 5)+[GOOD] (define-fun s85 () Int 6)+[GOOD] (define-fun s414 () Int 45)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr)+[GOOD] (declare-fun s1 () Expr)+[GOOD] (declare-fun s2 () Expr)+[GOOD] (declare-fun s3 () Expr)+[GOOD] (declare-fun s4 () Expr)+[GOOD] (declare-fun s5 () Expr)+[GOOD] (declare-fun s6 () Expr)+[GOOD] (declare-fun s7 () Expr)+[GOOD] (declare-fun s8 () Expr)+[GOOD] (declare-fun s9 () Expr)+[GOOD] (declare-fun s10 () Expr)+[GOOD] (declare-fun s11 () Expr)+[GOOD] (declare-fun s12 () Expr)+[GOOD] (declare-fun s13 () Expr)+[GOOD] (declare-fun s14 () Expr)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s16 () Bool (= s0 s15))+[GOOD] (define-fun s18 () Bool (= s1 s17))+[GOOD] (define-fun s20 () Bool (= s2 s19))+[GOOD] (define-fun s22 () Bool (= s3 s21))+[GOOD] (define-fun s24 () Bool (= s4 s23))+[GOOD] (define-fun s26 () Bool (= s5 s25))+[GOOD] (define-fun s28 () Bool (= s6 s27))+[GOOD] (define-fun s30 () Bool (= s7 s29))+[GOOD] (define-fun s32 () Bool (= s8 s31))+[GOOD] (define-fun s34 () Bool (= s9 s33))+[GOOD] (define-fun s36 () Bool (= s10 s35))+[GOOD] (define-fun s38 () Bool (= s11 s37))+[GOOD] (define-fun s40 () Bool (= s12 s39))+[GOOD] (define-fun s42 () Bool (= s13 s41))+[GOOD] (define-fun s44 () Bool (= s14 s43))+[GOOD] (define-fun s45 () Bool (and s42 s44))+[GOOD] (define-fun s46 () Bool (and s40 s45))+[GOOD] (define-fun s47 () Bool (and s38 s46))+[GOOD] (define-fun s48 () Bool (and s36 s47))+[GOOD] (define-fun s49 () Bool (and s34 s48))+[GOOD] (define-fun s50 () Bool (and s32 s49))+[GOOD] (define-fun s51 () Bool (and s30 s50))+[GOOD] (define-fun s52 () Bool (and s28 s51))+[GOOD] (define-fun s53 () Bool (and s26 s52))+[GOOD] (define-fun s54 () Bool (and s24 s53))+[GOOD] (define-fun s55 () Bool (and s22 s54))+[GOOD] (define-fun s56 () Bool (and s20 s55))+[GOOD] (define-fun s57 () Bool (and s18 s56))+[GOOD] (define-fun s58 () Bool (and s16 s57))+[GOOD] (define-fun s59 () Bool ((as is-Var Bool) s0))+[GOOD] (define-fun s60 () String (getVar_1 s0))+[GOOD] (define-fun s62 () Bool (= s60 s61))+[GOOD] (define-fun s63 () Bool (and s59 s62))+[GOOD] (define-fun s66 () Bool (= s60 s65))+[GOOD] (define-fun s68 () Bool (= s60 s67))+[GOOD] (define-fun s69 () Bool (or s66 s68))+[GOOD] (define-fun s70 () Bool (and s59 s69))+[GOOD] (define-fun s73 () Bool ((as is-Val Bool) s0))+[GOOD] (define-fun s74 () Int (getVal_1 s0))+[GOOD] (define-fun s76 () Bool (< s74 s75))+[GOOD] (define-fun s77 () Bool (and s73 s76))+[GOOD] (define-fun s79 () Bool (= s74 s75))+[GOOD] (define-fun s80 () Bool (and s73 s79))+[GOOD] (define-fun s82 () Bool (> s74 s75))+[GOOD] (define-fun s83 () Bool (and s73 s82))+[GOOD] (define-fun s86 () Int (ite s83 s84 s85))+[GOOD] (define-fun s87 () Int (ite s80 s81 s86))+[GOOD] (define-fun s88 () Int (ite s77 s78 s87))+[GOOD] (define-fun s89 () Int (ite s59 s72 s88))+[GOOD] (define-fun s90 () Int (ite s70 s71 s89))+[GOOD] (define-fun s91 () Int (ite s63 s64 s90))+[GOOD] (define-fun s92 () Bool ((as is-Var Bool) s1))+[GOOD] (define-fun s93 () String (getVar_1 s1))+[GOOD] (define-fun s94 () Bool (= s61 s93))+[GOOD] (define-fun s95 () Bool (and s92 s94))+[GOOD] (define-fun s96 () Bool (= s65 s93))+[GOOD] (define-fun s97 () Bool (= s67 s93))+[GOOD] (define-fun s98 () Bool (or s96 s97))+[GOOD] (define-fun s99 () Bool (and s92 s98))+[GOOD] (define-fun s100 () Bool ((as is-Val Bool) s1))+[GOOD] (define-fun s101 () Int (getVal_1 s1))+[GOOD] (define-fun s102 () Bool (< s101 s75))+[GOOD] (define-fun s103 () Bool (and s100 s102))+[GOOD] (define-fun s104 () Bool (= s75 s101))+[GOOD] (define-fun s105 () Bool (and s100 s104))+[GOOD] (define-fun s106 () Bool (> s101 s75))+[GOOD] (define-fun s107 () Bool (and s100 s106))+[GOOD] (define-fun s108 () Int (ite s107 s84 s85))+[GOOD] (define-fun s109 () Int (ite s105 s81 s108))+[GOOD] (define-fun s110 () Int (ite s103 s78 s109))+[GOOD] (define-fun s111 () Int (ite s92 s72 s110))+[GOOD] (define-fun s112 () Int (ite s99 s71 s111))+[GOOD] (define-fun s113 () Int (ite s95 s64 s112))+[GOOD] (define-fun s114 () Int (+ s91 s113))+[GOOD] (define-fun s115 () Bool ((as is-Var Bool) s2))+[GOOD] (define-fun s116 () String (getVar_1 s2))+[GOOD] (define-fun s117 () Bool (= s61 s116))+[GOOD] (define-fun s118 () Bool (and s115 s117))+[GOOD] (define-fun s119 () Bool (= s65 s116))+[GOOD] (define-fun s120 () Bool (= s67 s116))+[GOOD] (define-fun s121 () Bool (or s119 s120))+[GOOD] (define-fun s122 () Bool (and s115 s121))+[GOOD] (define-fun s123 () Bool ((as is-Val Bool) s2))+[GOOD] (define-fun s124 () Int (getVal_1 s2))+[GOOD] (define-fun s125 () Bool (< s124 s75))+[GOOD] (define-fun s126 () Bool (and s123 s125))+[GOOD] (define-fun s127 () Bool (= s75 s124))+[GOOD] (define-fun s128 () Bool (and s123 s127))+[GOOD] (define-fun s129 () Bool (> s124 s75))+[GOOD] (define-fun s130 () Bool (and s123 s129))+[GOOD] (define-fun s131 () Int (ite s130 s84 s85))+[GOOD] (define-fun s132 () Int (ite s128 s81 s131))+[GOOD] (define-fun s133 () Int (ite s126 s78 s132))+[GOOD] (define-fun s134 () Int (ite s115 s72 s133))+[GOOD] (define-fun s135 () Int (ite s122 s71 s134))+[GOOD] (define-fun s136 () Int (ite s118 s64 s135))+[GOOD] (define-fun s137 () Int (+ s114 s136))+[GOOD] (define-fun s138 () Bool ((as is-Var Bool) s3))+[GOOD] (define-fun s139 () String (getVar_1 s3))+[GOOD] (define-fun s140 () Bool (= s61 s139))+[GOOD] (define-fun s141 () Bool (and s138 s140))+[GOOD] (define-fun s142 () Bool (= s65 s139))+[GOOD] (define-fun s143 () Bool (= s67 s139))+[GOOD] (define-fun s144 () Bool (or s142 s143))+[GOOD] (define-fun s145 () Bool (and s138 s144))+[GOOD] (define-fun s146 () Bool ((as is-Val Bool) s3))+[GOOD] (define-fun s147 () Int (getVal_1 s3))+[GOOD] (define-fun s148 () Bool (< s147 s75))+[GOOD] (define-fun s149 () Bool (and s146 s148))+[GOOD] (define-fun s150 () Bool (= s75 s147))+[GOOD] (define-fun s151 () Bool (and s146 s150))+[GOOD] (define-fun s152 () Bool (> s147 s75))+[GOOD] (define-fun s153 () Bool (and s146 s152))+[GOOD] (define-fun s154 () Int (ite s153 s84 s85))+[GOOD] (define-fun s155 () Int (ite s151 s81 s154))+[GOOD] (define-fun s156 () Int (ite s149 s78 s155))+[GOOD] (define-fun s157 () Int (ite s138 s72 s156))+[GOOD] (define-fun s158 () Int (ite s145 s71 s157))+[GOOD] (define-fun s159 () Int (ite s141 s64 s158))+[GOOD] (define-fun s160 () Int (+ s137 s159))+[GOOD] (define-fun s161 () Bool ((as is-Var Bool) s4))+[GOOD] (define-fun s162 () String (getVar_1 s4))+[GOOD] (define-fun s163 () Bool (= s61 s162))+[GOOD] (define-fun s164 () Bool (and s161 s163))+[GOOD] (define-fun s165 () Bool (= s65 s162))+[GOOD] (define-fun s166 () Bool (= s67 s162))+[GOOD] (define-fun s167 () Bool (or s165 s166))+[GOOD] (define-fun s168 () Bool (and s161 s167))+[GOOD] (define-fun s169 () Bool ((as is-Val Bool) s4))+[GOOD] (define-fun s170 () Int (getVal_1 s4))+[GOOD] (define-fun s171 () Bool (< s170 s75))+[GOOD] (define-fun s172 () Bool (and s169 s171))+[GOOD] (define-fun s173 () Bool (= s75 s170))+[GOOD] (define-fun s174 () Bool (and s169 s173))+[GOOD] (define-fun s175 () Bool (> s170 s75))+[GOOD] (define-fun s176 () Bool (and s169 s175))+[GOOD] (define-fun s177 () Int (ite s176 s84 s85))+[GOOD] (define-fun s178 () Int (ite s174 s81 s177))+[GOOD] (define-fun s179 () Int (ite s172 s78 s178))+[GOOD] (define-fun s180 () Int (ite s161 s72 s179))+[GOOD] (define-fun s181 () Int (ite s168 s71 s180))+[GOOD] (define-fun s182 () Int (ite s164 s64 s181))+[GOOD] (define-fun s183 () Int (+ s160 s182))+[GOOD] (define-fun s184 () Bool ((as is-Var Bool) s5))+[GOOD] (define-fun s185 () String (getVar_1 s5))+[GOOD] (define-fun s186 () Bool (= s61 s185))+[GOOD] (define-fun s187 () Bool (and s184 s186))+[GOOD] (define-fun s188 () Bool (= s65 s185))+[GOOD] (define-fun s189 () Bool (= s67 s185))+[GOOD] (define-fun s190 () Bool (or s188 s189))+[GOOD] (define-fun s191 () Bool (and s184 s190))+[GOOD] (define-fun s192 () Bool ((as is-Val Bool) s5))+[GOOD] (define-fun s193 () Int (getVal_1 s5))+[GOOD] (define-fun s194 () Bool (< s193 s75))+[GOOD] (define-fun s195 () Bool (and s192 s194))+[GOOD] (define-fun s196 () Bool (= s75 s193))+[GOOD] (define-fun s197 () Bool (and s192 s196))+[GOOD] (define-fun s198 () Bool (> s193 s75))+[GOOD] (define-fun s199 () Bool (and s192 s198))+[GOOD] (define-fun s200 () Int (ite s199 s84 s85))+[GOOD] (define-fun s201 () Int (ite s197 s81 s200))+[GOOD] (define-fun s202 () Int (ite s195 s78 s201))+[GOOD] (define-fun s203 () Int (ite s184 s72 s202))+[GOOD] (define-fun s204 () Int (ite s191 s71 s203))+[GOOD] (define-fun s205 () Int (ite s187 s64 s204))+[GOOD] (define-fun s206 () Int (+ s183 s205))+[GOOD] (define-fun s207 () Bool ((as is-Var Bool) s6))+[GOOD] (define-fun s208 () String (getVar_1 s6))+[GOOD] (define-fun s209 () Bool (= s61 s208))+[GOOD] (define-fun s210 () Bool (and s207 s209))+[GOOD] (define-fun s211 () Bool (= s65 s208))+[GOOD] (define-fun s212 () Bool (= s67 s208))+[GOOD] (define-fun s213 () Bool (or s211 s212))+[GOOD] (define-fun s214 () Bool (and s207 s213))+[GOOD] (define-fun s215 () Bool ((as is-Val Bool) s6))+[GOOD] (define-fun s216 () Int (getVal_1 s6))+[GOOD] (define-fun s217 () Bool (< s216 s75))+[GOOD] (define-fun s218 () Bool (and s215 s217))+[GOOD] (define-fun s219 () Bool (= s75 s216))+[GOOD] (define-fun s220 () Bool (and s215 s219))+[GOOD] (define-fun s221 () Bool (> s216 s75))+[GOOD] (define-fun s222 () Bool (and s215 s221))+[GOOD] (define-fun s223 () Int (ite s222 s84 s85))+[GOOD] (define-fun s224 () Int (ite s220 s81 s223))+[GOOD] (define-fun s225 () Int (ite s218 s78 s224))+[GOOD] (define-fun s226 () Int (ite s207 s72 s225))+[GOOD] (define-fun s227 () Int (ite s214 s71 s226))+[GOOD] (define-fun s228 () Int (ite s210 s64 s227))+[GOOD] (define-fun s229 () Int (+ s206 s228))+[GOOD] (define-fun s230 () Bool ((as is-Var Bool) s7))+[GOOD] (define-fun s231 () String (getVar_1 s7))+[GOOD] (define-fun s232 () Bool (= s61 s231))+[GOOD] (define-fun s233 () Bool (and s230 s232))+[GOOD] (define-fun s234 () Bool (= s65 s231))+[GOOD] (define-fun s235 () Bool (= s67 s231))+[GOOD] (define-fun s236 () Bool (or s234 s235))+[GOOD] (define-fun s237 () Bool (and s230 s236))+[GOOD] (define-fun s238 () Bool ((as is-Val Bool) s7))+[GOOD] (define-fun s239 () Int (getVal_1 s7))+[GOOD] (define-fun s240 () Bool (< s239 s75))+[GOOD] (define-fun s241 () Bool (and s238 s240))+[GOOD] (define-fun s242 () Bool (= s75 s239))+[GOOD] (define-fun s243 () Bool (and s238 s242))+[GOOD] (define-fun s244 () Bool (> s239 s75))+[GOOD] (define-fun s245 () Bool (and s238 s244))+[GOOD] (define-fun s246 () Int (ite s245 s84 s85))+[GOOD] (define-fun s247 () Int (ite s243 s81 s246))+[GOOD] (define-fun s248 () Int (ite s241 s78 s247))+[GOOD] (define-fun s249 () Int (ite s230 s72 s248))+[GOOD] (define-fun s250 () Int (ite s237 s71 s249))+[GOOD] (define-fun s251 () Int (ite s233 s64 s250))+[GOOD] (define-fun s252 () Int (+ s229 s251))+[GOOD] (define-fun s253 () Bool ((as is-Var Bool) s8))+[GOOD] (define-fun s254 () String (getVar_1 s8))+[GOOD] (define-fun s255 () Bool (= s61 s254))+[GOOD] (define-fun s256 () Bool (and s253 s255))+[GOOD] (define-fun s257 () Bool (= s65 s254))+[GOOD] (define-fun s258 () Bool (= s67 s254))+[GOOD] (define-fun s259 () Bool (or s257 s258))+[GOOD] (define-fun s260 () Bool (and s253 s259))+[GOOD] (define-fun s261 () Bool ((as is-Val Bool) s8))+[GOOD] (define-fun s262 () Int (getVal_1 s8))+[GOOD] (define-fun s263 () Bool (< s262 s75))+[GOOD] (define-fun s264 () Bool (and s261 s263))+[GOOD] (define-fun s265 () Bool (= s75 s262))+[GOOD] (define-fun s266 () Bool (and s261 s265))+[GOOD] (define-fun s267 () Bool (> s262 s75))+[GOOD] (define-fun s268 () Bool (and s261 s267))+[GOOD] (define-fun s269 () Int (ite s268 s84 s85))+[GOOD] (define-fun s270 () Int (ite s266 s81 s269))+[GOOD] (define-fun s271 () Int (ite s264 s78 s270))+[GOOD] (define-fun s272 () Int (ite s253 s72 s271))+[GOOD] (define-fun s273 () Int (ite s260 s71 s272))+[GOOD] (define-fun s274 () Int (ite s256 s64 s273))+[GOOD] (define-fun s275 () Int (+ s252 s274))+[GOOD] (define-fun s276 () Bool ((as is-Var Bool) s9))+[GOOD] (define-fun s277 () String (getVar_1 s9))+[GOOD] (define-fun s278 () Bool (= s61 s277))+[GOOD] (define-fun s279 () Bool (and s276 s278))+[GOOD] (define-fun s280 () Bool (= s65 s277))+[GOOD] (define-fun s281 () Bool (= s67 s277))+[GOOD] (define-fun s282 () Bool (or s280 s281))+[GOOD] (define-fun s283 () Bool (and s276 s282))+[GOOD] (define-fun s284 () Bool ((as is-Val Bool) s9))+[GOOD] (define-fun s285 () Int (getVal_1 s9))+[GOOD] (define-fun s286 () Bool (< s285 s75))+[GOOD] (define-fun s287 () Bool (and s284 s286))+[GOOD] (define-fun s288 () Bool (= s75 s285))+[GOOD] (define-fun s289 () Bool (and s284 s288))+[GOOD] (define-fun s290 () Bool (> s285 s75))+[GOOD] (define-fun s291 () Bool (and s284 s290))+[GOOD] (define-fun s292 () Int (ite s291 s84 s85))+[GOOD] (define-fun s293 () Int (ite s289 s81 s292))+[GOOD] (define-fun s294 () Int (ite s287 s78 s293))+[GOOD] (define-fun s295 () Int (ite s276 s72 s294))+[GOOD] (define-fun s296 () Int (ite s283 s71 s295))+[GOOD] (define-fun s297 () Int (ite s279 s64 s296))+[GOOD] (define-fun s298 () Int (+ s275 s297))+[GOOD] (define-fun s299 () Bool ((as is-Var Bool) s10))+[GOOD] (define-fun s300 () String (getVar_1 s10))+[GOOD] (define-fun s301 () Bool (= s61 s300))+[GOOD] (define-fun s302 () Bool (and s299 s301))+[GOOD] (define-fun s303 () Bool (= s65 s300))+[GOOD] (define-fun s304 () Bool (= s67 s300))+[GOOD] (define-fun s305 () Bool (or s303 s304))+[GOOD] (define-fun s306 () Bool (and s299 s305))+[GOOD] (define-fun s307 () Bool ((as is-Val Bool) s10))+[GOOD] (define-fun s308 () Int (getVal_1 s10))+[GOOD] (define-fun s309 () Bool (< s308 s75))+[GOOD] (define-fun s310 () Bool (and s307 s309))+[GOOD] (define-fun s311 () Bool (= s75 s308))+[GOOD] (define-fun s312 () Bool (and s307 s311))+[GOOD] (define-fun s313 () Bool (> s308 s75))+[GOOD] (define-fun s314 () Bool (and s307 s313))+[GOOD] (define-fun s315 () Int (ite s314 s84 s85))+[GOOD] (define-fun s316 () Int (ite s312 s81 s315))+[GOOD] (define-fun s317 () Int (ite s310 s78 s316))+[GOOD] (define-fun s318 () Int (ite s299 s72 s317))+[GOOD] (define-fun s319 () Int (ite s306 s71 s318))+[GOOD] (define-fun s320 () Int (ite s302 s64 s319))+[GOOD] (define-fun s321 () Int (+ s298 s320))+[GOOD] (define-fun s322 () Bool ((as is-Var Bool) s11))+[GOOD] (define-fun s323 () String (getVar_1 s11))+[GOOD] (define-fun s324 () Bool (= s61 s323))+[GOOD] (define-fun s325 () Bool (and s322 s324))+[GOOD] (define-fun s326 () Bool (= s65 s323))+[GOOD] (define-fun s327 () Bool (= s67 s323))+[GOOD] (define-fun s328 () Bool (or s326 s327))+[GOOD] (define-fun s329 () Bool (and s322 s328))+[GOOD] (define-fun s330 () Bool ((as is-Val Bool) s11))+[GOOD] (define-fun s331 () Int (getVal_1 s11))+[GOOD] (define-fun s332 () Bool (< s331 s75))+[GOOD] (define-fun s333 () Bool (and s330 s332))+[GOOD] (define-fun s334 () Bool (= s75 s331))+[GOOD] (define-fun s335 () Bool (and s330 s334))+[GOOD] (define-fun s336 () Bool (> s331 s75))+[GOOD] (define-fun s337 () Bool (and s330 s336))+[GOOD] (define-fun s338 () Int (ite s337 s84 s85))+[GOOD] (define-fun s339 () Int (ite s335 s81 s338))+[GOOD] (define-fun s340 () Int (ite s333 s78 s339))+[GOOD] (define-fun s341 () Int (ite s322 s72 s340))+[GOOD] (define-fun s342 () Int (ite s329 s71 s341))+[GOOD] (define-fun s343 () Int (ite s325 s64 s342))+[GOOD] (define-fun s344 () Int (+ s321 s343))+[GOOD] (define-fun s345 () Bool ((as is-Var Bool) s12))+[GOOD] (define-fun s346 () String (getVar_1 s12))+[GOOD] (define-fun s347 () Bool (= s61 s346))+[GOOD] (define-fun s348 () Bool (and s345 s347))+[GOOD] (define-fun s349 () Bool (= s65 s346))+[GOOD] (define-fun s350 () Bool (= s67 s346))+[GOOD] (define-fun s351 () Bool (or s349 s350))+[GOOD] (define-fun s352 () Bool (and s345 s351))+[GOOD] (define-fun s353 () Bool ((as is-Val Bool) s12))+[GOOD] (define-fun s354 () Int (getVal_1 s12))+[GOOD] (define-fun s355 () Bool (< s354 s75))+[GOOD] (define-fun s356 () Bool (and s353 s355))+[GOOD] (define-fun s357 () Bool (= s75 s354))+[GOOD] (define-fun s358 () Bool (and s353 s357))+[GOOD] (define-fun s359 () Bool (> s354 s75))+[GOOD] (define-fun s360 () Bool (and s353 s359))+[GOOD] (define-fun s361 () Int (ite s360 s84 s85))+[GOOD] (define-fun s362 () Int (ite s358 s81 s361))+[GOOD] (define-fun s363 () Int (ite s356 s78 s362))+[GOOD] (define-fun s364 () Int (ite s345 s72 s363))+[GOOD] (define-fun s365 () Int (ite s352 s71 s364))+[GOOD] (define-fun s366 () Int (ite s348 s64 s365))+[GOOD] (define-fun s367 () Int (+ s344 s366))+[GOOD] (define-fun s368 () Bool ((as is-Var Bool) s13))+[GOOD] (define-fun s369 () String (getVar_1 s13))+[GOOD] (define-fun s370 () Bool (= s61 s369))+[GOOD] (define-fun s371 () Bool (and s368 s370))+[GOOD] (define-fun s372 () Bool (= s65 s369))+[GOOD] (define-fun s373 () Bool (= s67 s369))+[GOOD] (define-fun s374 () Bool (or s372 s373))+[GOOD] (define-fun s375 () Bool (and s368 s374))+[GOOD] (define-fun s376 () Bool ((as is-Val Bool) s13))+[GOOD] (define-fun s377 () Int (getVal_1 s13))+[GOOD] (define-fun s378 () Bool (< s377 s75))+[GOOD] (define-fun s379 () Bool (and s376 s378))+[GOOD] (define-fun s380 () Bool (= s75 s377))+[GOOD] (define-fun s381 () Bool (and s376 s380))+[GOOD] (define-fun s382 () Bool (> s377 s75))+[GOOD] (define-fun s383 () Bool (and s376 s382))+[GOOD] (define-fun s384 () Int (ite s383 s84 s85))+[GOOD] (define-fun s385 () Int (ite s381 s81 s384))+[GOOD] (define-fun s386 () Int (ite s379 s78 s385))+[GOOD] (define-fun s387 () Int (ite s368 s72 s386))+[GOOD] (define-fun s388 () Int (ite s375 s71 s387))+[GOOD] (define-fun s389 () Int (ite s371 s64 s388))+[GOOD] (define-fun s390 () Int (+ s367 s389))+[GOOD] (define-fun s391 () Bool ((as is-Var Bool) s14))+[GOOD] (define-fun s392 () String (getVar_1 s14))+[GOOD] (define-fun s393 () Bool (= s61 s392))+[GOOD] (define-fun s394 () Bool (and s391 s393))+[GOOD] (define-fun s395 () Bool (= s65 s392))+[GOOD] (define-fun s396 () Bool (= s67 s392))+[GOOD] (define-fun s397 () Bool (or s395 s396))+[GOOD] (define-fun s398 () Bool (and s391 s397))+[GOOD] (define-fun s399 () Bool ((as is-Val Bool) s14))+[GOOD] (define-fun s400 () Int (getVal_1 s14))+[GOOD] (define-fun s401 () Bool (< s400 s75))+[GOOD] (define-fun s402 () Bool (and s399 s401))+[GOOD] (define-fun s403 () Bool (= s75 s400))+[GOOD] (define-fun s404 () Bool (and s399 s403))+[GOOD] (define-fun s405 () Bool (> s400 s75))+[GOOD] (define-fun s406 () Bool (and s399 s405))+[GOOD] (define-fun s407 () Int (ite s406 s84 s85))+[GOOD] (define-fun s408 () Int (ite s404 s81 s407))+[GOOD] (define-fun s409 () Int (ite s402 s78 s408))+[GOOD] (define-fun s410 () Int (ite s391 s72 s409))+[GOOD] (define-fun s411 () Int (ite s398 s71 s410))+[GOOD] (define-fun s412 () Int (ite s394 s64 s411))+[GOOD] (define-fun s413 () Int (+ s390 s412))+[GOOD] (define-fun s415 () Bool (distinct s413 s414))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s58)+[GOOD] (assert s415)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_expr10c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_expr11.gold view
@@ -0,0 +1,102 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Expr ((as Val Expr) 10))+[GOOD] (define-fun s8 () String "a")+[GOOD] (define-fun s11 () Int 0)+[GOOD] (define-fun s12 () String "b")+[GOOD] (define-fun s14 () String "c")+[GOOD] (define-fun s18 () Int 1)+[GOOD] (define-fun s19 () Int 2)+[GOOD] (define-fun s22 () Int 10)+[GOOD] (define-fun s25 () Int 3)+[GOOD] (define-fun s28 () Int 4)+[GOOD] (define-fun s31 () Int 5)+[GOOD] (define-fun s32 () Int 6)+[GOOD] (define-fun s62 () Int 8)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr)+[GOOD] (declare-fun s1 () Expr)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (= s0 s2))+[GOOD] (define-fun s4 () Bool (= s1 s2))+[GOOD] (define-fun s5 () Bool (and s3 s4))+[GOOD] (define-fun s6 () Bool ((as is-Var Bool) s0))+[GOOD] (define-fun s7 () String (getVar_1 s0))+[GOOD] (define-fun s9 () Bool (= s7 s8))+[GOOD] (define-fun s10 () Bool (and s6 s9))+[GOOD] (define-fun s13 () Bool (= s7 s12))+[GOOD] (define-fun s15 () Bool (= s7 s14))+[GOOD] (define-fun s16 () Bool (or s13 s15))+[GOOD] (define-fun s17 () Bool (and s6 s16))+[GOOD] (define-fun s20 () Bool ((as is-Val Bool) s0))+[GOOD] (define-fun s21 () Int (getVal_1 s0))+[GOOD] (define-fun s23 () Bool (< s21 s22))+[GOOD] (define-fun s24 () Bool (and s20 s23))+[GOOD] (define-fun s26 () Bool (= s21 s22))+[GOOD] (define-fun s27 () Bool (and s20 s26))+[GOOD] (define-fun s29 () Bool (> s21 s22))+[GOOD] (define-fun s30 () Bool (and s20 s29))+[GOOD] (define-fun s33 () Int (ite s30 s31 s32))+[GOOD] (define-fun s34 () Int (ite s27 s28 s33))+[GOOD] (define-fun s35 () Int (ite s24 s25 s34))+[GOOD] (define-fun s36 () Int (ite s6 s19 s35))+[GOOD] (define-fun s37 () Int (ite s17 s18 s36))+[GOOD] (define-fun s38 () Int (ite s10 s11 s37))+[GOOD] (define-fun s39 () Bool ((as is-Var Bool) s1))+[GOOD] (define-fun s40 () String (getVar_1 s1))+[GOOD] (define-fun s41 () Bool (= s8 s40))+[GOOD] (define-fun s42 () Bool (and s39 s41))+[GOOD] (define-fun s43 () Bool (= s12 s40))+[GOOD] (define-fun s44 () Bool (= s14 s40))+[GOOD] (define-fun s45 () Bool (or s43 s44))+[GOOD] (define-fun s46 () Bool (and s39 s45))+[GOOD] (define-fun s47 () Bool ((as is-Val Bool) s1))+[GOOD] (define-fun s48 () Int (getVal_1 s1))+[GOOD] (define-fun s49 () Bool (< s48 s22))+[GOOD] (define-fun s50 () Bool (and s47 s49))+[GOOD] (define-fun s51 () Bool (= s22 s48))+[GOOD] (define-fun s52 () Bool (and s47 s51))+[GOOD] (define-fun s53 () Bool (> s48 s22))+[GOOD] (define-fun s54 () Bool (and s47 s53))+[GOOD] (define-fun s55 () Int (ite s54 s31 s32))+[GOOD] (define-fun s56 () Int (ite s52 s28 s55))+[GOOD] (define-fun s57 () Int (ite s50 s25 s56))+[GOOD] (define-fun s58 () Int (ite s39 s19 s57))+[GOOD] (define-fun s59 () Int (ite s46 s18 s58))+[GOOD] (define-fun s60 () Int (ite s42 s11 s59))+[GOOD] (define-fun s61 () Int (+ s38 s60))+[GOOD] (define-fun s63 () Bool (distinct s61 s62))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s5)+[GOOD] (assert s63)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_expr11c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_expr12.gold view
@@ -0,0 +1,319 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s10 () Expr ((as Val Expr) 11))+[GOOD] (define-fun s12 () Expr ((as Val Expr) 12))+[GOOD] (define-fun s14 () Expr ((as Val Expr) 13))+[GOOD] (define-fun s16 () Expr ((as Val Expr) 14))+[GOOD] (define-fun s18 () Expr ((as Val Expr) 15))+[GOOD] (define-fun s20 () Expr ((as Val Expr) 16))+[GOOD] (define-fun s22 () Expr ((as Val Expr) 17))+[GOOD] (define-fun s24 () Expr ((as Val Expr) 18))+[GOOD] (define-fun s26 () Expr ((as Val Expr) 19))+[GOOD] (define-fun s28 () Expr ((as Val Expr) 20))+[GOOD] (define-fun s41 () String "a")+[GOOD] (define-fun s44 () Int 0)+[GOOD] (define-fun s45 () String "b")+[GOOD] (define-fun s47 () String "c")+[GOOD] (define-fun s51 () Int 1)+[GOOD] (define-fun s52 () Int 2)+[GOOD] (define-fun s55 () Int 10)+[GOOD] (define-fun s58 () Int 3)+[GOOD] (define-fun s61 () Int 4)+[GOOD] (define-fun s64 () Int 5)+[GOOD] (define-fun s65 () Int 6)+[GOOD] (define-fun s279 () Int 50)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr)+[GOOD] (declare-fun s1 () Expr)+[GOOD] (declare-fun s2 () Expr)+[GOOD] (declare-fun s3 () Expr)+[GOOD] (declare-fun s4 () Expr)+[GOOD] (declare-fun s5 () Expr)+[GOOD] (declare-fun s6 () Expr)+[GOOD] (declare-fun s7 () Expr)+[GOOD] (declare-fun s8 () Expr)+[GOOD] (declare-fun s9 () Expr)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s11 () Bool (= s0 s10))+[GOOD] (define-fun s13 () Bool (= s1 s12))+[GOOD] (define-fun s15 () Bool (= s2 s14))+[GOOD] (define-fun s17 () Bool (= s3 s16))+[GOOD] (define-fun s19 () Bool (= s4 s18))+[GOOD] (define-fun s21 () Bool (= s5 s20))+[GOOD] (define-fun s23 () Bool (= s6 s22))+[GOOD] (define-fun s25 () Bool (= s7 s24))+[GOOD] (define-fun s27 () Bool (= s8 s26))+[GOOD] (define-fun s29 () Bool (= s9 s28))+[GOOD] (define-fun s30 () Bool (and s27 s29))+[GOOD] (define-fun s31 () Bool (and s25 s30))+[GOOD] (define-fun s32 () Bool (and s23 s31))+[GOOD] (define-fun s33 () Bool (and s21 s32))+[GOOD] (define-fun s34 () Bool (and s19 s33))+[GOOD] (define-fun s35 () Bool (and s17 s34))+[GOOD] (define-fun s36 () Bool (and s15 s35))+[GOOD] (define-fun s37 () Bool (and s13 s36))+[GOOD] (define-fun s38 () Bool (and s11 s37))+[GOOD] (define-fun s39 () Bool ((as is-Var Bool) s0))+[GOOD] (define-fun s40 () String (getVar_1 s0))+[GOOD] (define-fun s42 () Bool (= s40 s41))+[GOOD] (define-fun s43 () Bool (and s39 s42))+[GOOD] (define-fun s46 () Bool (= s40 s45))+[GOOD] (define-fun s48 () Bool (= s40 s47))+[GOOD] (define-fun s49 () Bool (or s46 s48))+[GOOD] (define-fun s50 () Bool (and s39 s49))+[GOOD] (define-fun s53 () Bool ((as is-Val Bool) s0))+[GOOD] (define-fun s54 () Int (getVal_1 s0))+[GOOD] (define-fun s56 () Bool (< s54 s55))+[GOOD] (define-fun s57 () Bool (and s53 s56))+[GOOD] (define-fun s59 () Bool (= s54 s55))+[GOOD] (define-fun s60 () Bool (and s53 s59))+[GOOD] (define-fun s62 () Bool (> s54 s55))+[GOOD] (define-fun s63 () Bool (and s53 s62))+[GOOD] (define-fun s66 () Int (ite s63 s64 s65))+[GOOD] (define-fun s67 () Int (ite s60 s61 s66))+[GOOD] (define-fun s68 () Int (ite s57 s58 s67))+[GOOD] (define-fun s69 () Int (ite s39 s52 s68))+[GOOD] (define-fun s70 () Int (ite s50 s51 s69))+[GOOD] (define-fun s71 () Int (ite s43 s44 s70))+[GOOD] (define-fun s72 () Bool ((as is-Var Bool) s1))+[GOOD] (define-fun s73 () String (getVar_1 s1))+[GOOD] (define-fun s74 () Bool (= s41 s73))+[GOOD] (define-fun s75 () Bool (and s72 s74))+[GOOD] (define-fun s76 () Bool (= s45 s73))+[GOOD] (define-fun s77 () Bool (= s47 s73))+[GOOD] (define-fun s78 () Bool (or s76 s77))+[GOOD] (define-fun s79 () Bool (and s72 s78))+[GOOD] (define-fun s80 () Bool ((as is-Val Bool) s1))+[GOOD] (define-fun s81 () Int (getVal_1 s1))+[GOOD] (define-fun s82 () Bool (< s81 s55))+[GOOD] (define-fun s83 () Bool (and s80 s82))+[GOOD] (define-fun s84 () Bool (= s55 s81))+[GOOD] (define-fun s85 () Bool (and s80 s84))+[GOOD] (define-fun s86 () Bool (> s81 s55))+[GOOD] (define-fun s87 () Bool (and s80 s86))+[GOOD] (define-fun s88 () Int (ite s87 s64 s65))+[GOOD] (define-fun s89 () Int (ite s85 s61 s88))+[GOOD] (define-fun s90 () Int (ite s83 s58 s89))+[GOOD] (define-fun s91 () Int (ite s72 s52 s90))+[GOOD] (define-fun s92 () Int (ite s79 s51 s91))+[GOOD] (define-fun s93 () Int (ite s75 s44 s92))+[GOOD] (define-fun s94 () Int (+ s71 s93))+[GOOD] (define-fun s95 () Bool ((as is-Var Bool) s2))+[GOOD] (define-fun s96 () String (getVar_1 s2))+[GOOD] (define-fun s97 () Bool (= s41 s96))+[GOOD] (define-fun s98 () Bool (and s95 s97))+[GOOD] (define-fun s99 () Bool (= s45 s96))+[GOOD] (define-fun s100 () Bool (= s47 s96))+[GOOD] (define-fun s101 () Bool (or s99 s100))+[GOOD] (define-fun s102 () Bool (and s95 s101))+[GOOD] (define-fun s103 () Bool ((as is-Val Bool) s2))+[GOOD] (define-fun s104 () Int (getVal_1 s2))+[GOOD] (define-fun s105 () Bool (< s104 s55))+[GOOD] (define-fun s106 () Bool (and s103 s105))+[GOOD] (define-fun s107 () Bool (= s55 s104))+[GOOD] (define-fun s108 () Bool (and s103 s107))+[GOOD] (define-fun s109 () Bool (> s104 s55))+[GOOD] (define-fun s110 () Bool (and s103 s109))+[GOOD] (define-fun s111 () Int (ite s110 s64 s65))+[GOOD] (define-fun s112 () Int (ite s108 s61 s111))+[GOOD] (define-fun s113 () Int (ite s106 s58 s112))+[GOOD] (define-fun s114 () Int (ite s95 s52 s113))+[GOOD] (define-fun s115 () Int (ite s102 s51 s114))+[GOOD] (define-fun s116 () Int (ite s98 s44 s115))+[GOOD] (define-fun s117 () Int (+ s94 s116))+[GOOD] (define-fun s118 () Bool ((as is-Var Bool) s3))+[GOOD] (define-fun s119 () String (getVar_1 s3))+[GOOD] (define-fun s120 () Bool (= s41 s119))+[GOOD] (define-fun s121 () Bool (and s118 s120))+[GOOD] (define-fun s122 () Bool (= s45 s119))+[GOOD] (define-fun s123 () Bool (= s47 s119))+[GOOD] (define-fun s124 () Bool (or s122 s123))+[GOOD] (define-fun s125 () Bool (and s118 s124))+[GOOD] (define-fun s126 () Bool ((as is-Val Bool) s3))+[GOOD] (define-fun s127 () Int (getVal_1 s3))+[GOOD] (define-fun s128 () Bool (< s127 s55))+[GOOD] (define-fun s129 () Bool (and s126 s128))+[GOOD] (define-fun s130 () Bool (= s55 s127))+[GOOD] (define-fun s131 () Bool (and s126 s130))+[GOOD] (define-fun s132 () Bool (> s127 s55))+[GOOD] (define-fun s133 () Bool (and s126 s132))+[GOOD] (define-fun s134 () Int (ite s133 s64 s65))+[GOOD] (define-fun s135 () Int (ite s131 s61 s134))+[GOOD] (define-fun s136 () Int (ite s129 s58 s135))+[GOOD] (define-fun s137 () Int (ite s118 s52 s136))+[GOOD] (define-fun s138 () Int (ite s125 s51 s137))+[GOOD] (define-fun s139 () Int (ite s121 s44 s138))+[GOOD] (define-fun s140 () Int (+ s117 s139))+[GOOD] (define-fun s141 () Bool ((as is-Var Bool) s4))+[GOOD] (define-fun s142 () String (getVar_1 s4))+[GOOD] (define-fun s143 () Bool (= s41 s142))+[GOOD] (define-fun s144 () Bool (and s141 s143))+[GOOD] (define-fun s145 () Bool (= s45 s142))+[GOOD] (define-fun s146 () Bool (= s47 s142))+[GOOD] (define-fun s147 () Bool (or s145 s146))+[GOOD] (define-fun s148 () Bool (and s141 s147))+[GOOD] (define-fun s149 () Bool ((as is-Val Bool) s4))+[GOOD] (define-fun s150 () Int (getVal_1 s4))+[GOOD] (define-fun s151 () Bool (< s150 s55))+[GOOD] (define-fun s152 () Bool (and s149 s151))+[GOOD] (define-fun s153 () Bool (= s55 s150))+[GOOD] (define-fun s154 () Bool (and s149 s153))+[GOOD] (define-fun s155 () Bool (> s150 s55))+[GOOD] (define-fun s156 () Bool (and s149 s155))+[GOOD] (define-fun s157 () Int (ite s156 s64 s65))+[GOOD] (define-fun s158 () Int (ite s154 s61 s157))+[GOOD] (define-fun s159 () Int (ite s152 s58 s158))+[GOOD] (define-fun s160 () Int (ite s141 s52 s159))+[GOOD] (define-fun s161 () Int (ite s148 s51 s160))+[GOOD] (define-fun s162 () Int (ite s144 s44 s161))+[GOOD] (define-fun s163 () Int (+ s140 s162))+[GOOD] (define-fun s164 () Bool ((as is-Var Bool) s5))+[GOOD] (define-fun s165 () String (getVar_1 s5))+[GOOD] (define-fun s166 () Bool (= s41 s165))+[GOOD] (define-fun s167 () Bool (and s164 s166))+[GOOD] (define-fun s168 () Bool (= s45 s165))+[GOOD] (define-fun s169 () Bool (= s47 s165))+[GOOD] (define-fun s170 () Bool (or s168 s169))+[GOOD] (define-fun s171 () Bool (and s164 s170))+[GOOD] (define-fun s172 () Bool ((as is-Val Bool) s5))+[GOOD] (define-fun s173 () Int (getVal_1 s5))+[GOOD] (define-fun s174 () Bool (< s173 s55))+[GOOD] (define-fun s175 () Bool (and s172 s174))+[GOOD] (define-fun s176 () Bool (= s55 s173))+[GOOD] (define-fun s177 () Bool (and s172 s176))+[GOOD] (define-fun s178 () Bool (> s173 s55))+[GOOD] (define-fun s179 () Bool (and s172 s178))+[GOOD] (define-fun s180 () Int (ite s179 s64 s65))+[GOOD] (define-fun s181 () Int (ite s177 s61 s180))+[GOOD] (define-fun s182 () Int (ite s175 s58 s181))+[GOOD] (define-fun s183 () Int (ite s164 s52 s182))+[GOOD] (define-fun s184 () Int (ite s171 s51 s183))+[GOOD] (define-fun s185 () Int (ite s167 s44 s184))+[GOOD] (define-fun s186 () Int (+ s163 s185))+[GOOD] (define-fun s187 () Bool ((as is-Var Bool) s6))+[GOOD] (define-fun s188 () String (getVar_1 s6))+[GOOD] (define-fun s189 () Bool (= s41 s188))+[GOOD] (define-fun s190 () Bool (and s187 s189))+[GOOD] (define-fun s191 () Bool (= s45 s188))+[GOOD] (define-fun s192 () Bool (= s47 s188))+[GOOD] (define-fun s193 () Bool (or s191 s192))+[GOOD] (define-fun s194 () Bool (and s187 s193))+[GOOD] (define-fun s195 () Bool ((as is-Val Bool) s6))+[GOOD] (define-fun s196 () Int (getVal_1 s6))+[GOOD] (define-fun s197 () Bool (< s196 s55))+[GOOD] (define-fun s198 () Bool (and s195 s197))+[GOOD] (define-fun s199 () Bool (= s55 s196))+[GOOD] (define-fun s200 () Bool (and s195 s199))+[GOOD] (define-fun s201 () Bool (> s196 s55))+[GOOD] (define-fun s202 () Bool (and s195 s201))+[GOOD] (define-fun s203 () Int (ite s202 s64 s65))+[GOOD] (define-fun s204 () Int (ite s200 s61 s203))+[GOOD] (define-fun s205 () Int (ite s198 s58 s204))+[GOOD] (define-fun s206 () Int (ite s187 s52 s205))+[GOOD] (define-fun s207 () Int (ite s194 s51 s206))+[GOOD] (define-fun s208 () Int (ite s190 s44 s207))+[GOOD] (define-fun s209 () Int (+ s186 s208))+[GOOD] (define-fun s210 () Bool ((as is-Var Bool) s7))+[GOOD] (define-fun s211 () String (getVar_1 s7))+[GOOD] (define-fun s212 () Bool (= s41 s211))+[GOOD] (define-fun s213 () Bool (and s210 s212))+[GOOD] (define-fun s214 () Bool (= s45 s211))+[GOOD] (define-fun s215 () Bool (= s47 s211))+[GOOD] (define-fun s216 () Bool (or s214 s215))+[GOOD] (define-fun s217 () Bool (and s210 s216))+[GOOD] (define-fun s218 () Bool ((as is-Val Bool) s7))+[GOOD] (define-fun s219 () Int (getVal_1 s7))+[GOOD] (define-fun s220 () Bool (< s219 s55))+[GOOD] (define-fun s221 () Bool (and s218 s220))+[GOOD] (define-fun s222 () Bool (= s55 s219))+[GOOD] (define-fun s223 () Bool (and s218 s222))+[GOOD] (define-fun s224 () Bool (> s219 s55))+[GOOD] (define-fun s225 () Bool (and s218 s224))+[GOOD] (define-fun s226 () Int (ite s225 s64 s65))+[GOOD] (define-fun s227 () Int (ite s223 s61 s226))+[GOOD] (define-fun s228 () Int (ite s221 s58 s227))+[GOOD] (define-fun s229 () Int (ite s210 s52 s228))+[GOOD] (define-fun s230 () Int (ite s217 s51 s229))+[GOOD] (define-fun s231 () Int (ite s213 s44 s230))+[GOOD] (define-fun s232 () Int (+ s209 s231))+[GOOD] (define-fun s233 () Bool ((as is-Var Bool) s8))+[GOOD] (define-fun s234 () String (getVar_1 s8))+[GOOD] (define-fun s235 () Bool (= s41 s234))+[GOOD] (define-fun s236 () Bool (and s233 s235))+[GOOD] (define-fun s237 () Bool (= s45 s234))+[GOOD] (define-fun s238 () Bool (= s47 s234))+[GOOD] (define-fun s239 () Bool (or s237 s238))+[GOOD] (define-fun s240 () Bool (and s233 s239))+[GOOD] (define-fun s241 () Bool ((as is-Val Bool) s8))+[GOOD] (define-fun s242 () Int (getVal_1 s8))+[GOOD] (define-fun s243 () Bool (< s242 s55))+[GOOD] (define-fun s244 () Bool (and s241 s243))+[GOOD] (define-fun s245 () Bool (= s55 s242))+[GOOD] (define-fun s246 () Bool (and s241 s245))+[GOOD] (define-fun s247 () Bool (> s242 s55))+[GOOD] (define-fun s248 () Bool (and s241 s247))+[GOOD] (define-fun s249 () Int (ite s248 s64 s65))+[GOOD] (define-fun s250 () Int (ite s246 s61 s249))+[GOOD] (define-fun s251 () Int (ite s244 s58 s250))+[GOOD] (define-fun s252 () Int (ite s233 s52 s251))+[GOOD] (define-fun s253 () Int (ite s240 s51 s252))+[GOOD] (define-fun s254 () Int (ite s236 s44 s253))+[GOOD] (define-fun s255 () Int (+ s232 s254))+[GOOD] (define-fun s256 () Bool ((as is-Var Bool) s9))+[GOOD] (define-fun s257 () String (getVar_1 s9))+[GOOD] (define-fun s258 () Bool (= s41 s257))+[GOOD] (define-fun s259 () Bool (and s256 s258))+[GOOD] (define-fun s260 () Bool (= s45 s257))+[GOOD] (define-fun s261 () Bool (= s47 s257))+[GOOD] (define-fun s262 () Bool (or s260 s261))+[GOOD] (define-fun s263 () Bool (and s256 s262))+[GOOD] (define-fun s264 () Bool ((as is-Val Bool) s9))+[GOOD] (define-fun s265 () Int (getVal_1 s9))+[GOOD] (define-fun s266 () Bool (< s265 s55))+[GOOD] (define-fun s267 () Bool (and s264 s266))+[GOOD] (define-fun s268 () Bool (= s55 s265))+[GOOD] (define-fun s269 () Bool (and s264 s268))+[GOOD] (define-fun s270 () Bool (> s265 s55))+[GOOD] (define-fun s271 () Bool (and s264 s270))+[GOOD] (define-fun s272 () Int (ite s271 s64 s65))+[GOOD] (define-fun s273 () Int (ite s269 s61 s272))+[GOOD] (define-fun s274 () Int (ite s267 s58 s273))+[GOOD] (define-fun s275 () Int (ite s256 s52 s274))+[GOOD] (define-fun s276 () Int (ite s263 s51 s275))+[GOOD] (define-fun s277 () Int (ite s259 s44 s276))+[GOOD] (define-fun s278 () Int (+ s255 s277))+[GOOD] (define-fun s280 () Bool (distinct s278 s279))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s38)+[GOOD] (assert s280)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_expr12c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_expr13.gold view
@@ -0,0 +1,75 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Expr ((as Val Expr) 3))+[GOOD] (define-fun s5 () String "a")+[GOOD] (define-fun s8 () Int 0)+[GOOD] (define-fun s9 () String "b")+[GOOD] (define-fun s11 () String "c")+[GOOD] (define-fun s15 () Int 1)+[GOOD] (define-fun s16 () Int 2)+[GOOD] (define-fun s19 () Int 10)+[GOOD] (define-fun s22 () Int 3)+[GOOD] (define-fun s25 () Int 4)+[GOOD] (define-fun s28 () Int 5)+[GOOD] (define-fun s29 () Int 6)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s3 () Bool ((as is-Var Bool) s0))+[GOOD] (define-fun s4 () String (getVar_1 s0))+[GOOD] (define-fun s6 () Bool (= s4 s5))+[GOOD] (define-fun s7 () Bool (and s3 s6))+[GOOD] (define-fun s10 () Bool (= s4 s9))+[GOOD] (define-fun s12 () Bool (= s4 s11))+[GOOD] (define-fun s13 () Bool (or s10 s12))+[GOOD] (define-fun s14 () Bool (and s3 s13))+[GOOD] (define-fun s17 () Bool ((as is-Val Bool) s0))+[GOOD] (define-fun s18 () Int (getVal_1 s0))+[GOOD] (define-fun s20 () Bool (< s18 s19))+[GOOD] (define-fun s21 () Bool (and s17 s20))+[GOOD] (define-fun s23 () Bool (= s18 s19))+[GOOD] (define-fun s24 () Bool (and s17 s23))+[GOOD] (define-fun s26 () Bool (> s18 s19))+[GOOD] (define-fun s27 () Bool (and s17 s26))+[GOOD] (define-fun s30 () Int (ite s27 s28 s29))+[GOOD] (define-fun s31 () Int (ite s24 s25 s30))+[GOOD] (define-fun s32 () Int (ite s21 s22 s31))+[GOOD] (define-fun s33 () Int (ite s3 s16 s32))+[GOOD] (define-fun s34 () Int (ite s14 s15 s33))+[GOOD] (define-fun s35 () Int (ite s7 s8 s34))+[GOOD] (define-fun s36 () Bool (distinct s22 s35))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s36)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_expr13c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_expr14.gold view
@@ -0,0 +1,75 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Expr ((as Add Expr) ((as Val Expr) 3) ((as Val Expr) 4)))+[GOOD] (define-fun s5 () String "a")+[GOOD] (define-fun s8 () Int 0)+[GOOD] (define-fun s9 () String "b")+[GOOD] (define-fun s11 () String "c")+[GOOD] (define-fun s15 () Int 1)+[GOOD] (define-fun s16 () Int 2)+[GOOD] (define-fun s19 () Int 10)+[GOOD] (define-fun s22 () Int 3)+[GOOD] (define-fun s25 () Int 4)+[GOOD] (define-fun s28 () Int 5)+[GOOD] (define-fun s29 () Int 6)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s3 () Bool ((as is-Var Bool) s0))+[GOOD] (define-fun s4 () String (getVar_1 s0))+[GOOD] (define-fun s6 () Bool (= s4 s5))+[GOOD] (define-fun s7 () Bool (and s3 s6))+[GOOD] (define-fun s10 () Bool (= s4 s9))+[GOOD] (define-fun s12 () Bool (= s4 s11))+[GOOD] (define-fun s13 () Bool (or s10 s12))+[GOOD] (define-fun s14 () Bool (and s3 s13))+[GOOD] (define-fun s17 () Bool ((as is-Val Bool) s0))+[GOOD] (define-fun s18 () Int (getVal_1 s0))+[GOOD] (define-fun s20 () Bool (< s18 s19))+[GOOD] (define-fun s21 () Bool (and s17 s20))+[GOOD] (define-fun s23 () Bool (= s18 s19))+[GOOD] (define-fun s24 () Bool (and s17 s23))+[GOOD] (define-fun s26 () Bool (> s18 s19))+[GOOD] (define-fun s27 () Bool (and s17 s26))+[GOOD] (define-fun s30 () Int (ite s27 s28 s29))+[GOOD] (define-fun s31 () Int (ite s24 s25 s30))+[GOOD] (define-fun s32 () Int (ite s21 s22 s31))+[GOOD] (define-fun s33 () Int (ite s3 s16 s32))+[GOOD] (define-fun s34 () Int (ite s14 s15 s33))+[GOOD] (define-fun s35 () Int (ite s7 s8 s34))+[GOOD] (define-fun s36 () Bool (distinct s29 s35))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s36)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_expr14c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_expr15.gold view
@@ -0,0 +1,75 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Expr ((as Mul Expr) ((as Val Expr) 3) ((as Add Expr) ((as Val Expr) 3) ((as Val Expr) 4))))+[GOOD] (define-fun s5 () String "a")+[GOOD] (define-fun s8 () Int 0)+[GOOD] (define-fun s9 () String "b")+[GOOD] (define-fun s11 () String "c")+[GOOD] (define-fun s15 () Int 1)+[GOOD] (define-fun s16 () Int 2)+[GOOD] (define-fun s19 () Int 10)+[GOOD] (define-fun s22 () Int 3)+[GOOD] (define-fun s25 () Int 4)+[GOOD] (define-fun s28 () Int 5)+[GOOD] (define-fun s29 () Int 6)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s3 () Bool ((as is-Var Bool) s0))+[GOOD] (define-fun s4 () String (getVar_1 s0))+[GOOD] (define-fun s6 () Bool (= s4 s5))+[GOOD] (define-fun s7 () Bool (and s3 s6))+[GOOD] (define-fun s10 () Bool (= s4 s9))+[GOOD] (define-fun s12 () Bool (= s4 s11))+[GOOD] (define-fun s13 () Bool (or s10 s12))+[GOOD] (define-fun s14 () Bool (and s3 s13))+[GOOD] (define-fun s17 () Bool ((as is-Val Bool) s0))+[GOOD] (define-fun s18 () Int (getVal_1 s0))+[GOOD] (define-fun s20 () Bool (< s18 s19))+[GOOD] (define-fun s21 () Bool (and s17 s20))+[GOOD] (define-fun s23 () Bool (= s18 s19))+[GOOD] (define-fun s24 () Bool (and s17 s23))+[GOOD] (define-fun s26 () Bool (> s18 s19))+[GOOD] (define-fun s27 () Bool (and s17 s26))+[GOOD] (define-fun s30 () Int (ite s27 s28 s29))+[GOOD] (define-fun s31 () Int (ite s24 s25 s30))+[GOOD] (define-fun s32 () Int (ite s21 s22 s31))+[GOOD] (define-fun s33 () Int (ite s3 s16 s32))+[GOOD] (define-fun s34 () Int (ite s14 s15 s33))+[GOOD] (define-fun s35 () Int (ite s7 s8 s34))+[GOOD] (define-fun s36 () Bool (distinct s29 s35))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s36)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_expr15c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_expr16.gold view
@@ -0,0 +1,75 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Expr ((as Let Expr) "a" ((as Mul Expr) ((as Val Expr) 3) ((as Add Expr) ((as Val Expr) 3) ((as Val Expr) 4))) ((as Add Expr) ((as Var Expr) "a") ((as Add Expr) ((as Val Expr) 3) ((as Val Expr) 4)))))+[GOOD] (define-fun s5 () String "a")+[GOOD] (define-fun s8 () Int 0)+[GOOD] (define-fun s9 () String "b")+[GOOD] (define-fun s11 () String "c")+[GOOD] (define-fun s15 () Int 1)+[GOOD] (define-fun s16 () Int 2)+[GOOD] (define-fun s19 () Int 10)+[GOOD] (define-fun s22 () Int 3)+[GOOD] (define-fun s25 () Int 4)+[GOOD] (define-fun s28 () Int 5)+[GOOD] (define-fun s29 () Int 6)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s3 () Bool ((as is-Var Bool) s0))+[GOOD] (define-fun s4 () String (getVar_1 s0))+[GOOD] (define-fun s6 () Bool (= s4 s5))+[GOOD] (define-fun s7 () Bool (and s3 s6))+[GOOD] (define-fun s10 () Bool (= s4 s9))+[GOOD] (define-fun s12 () Bool (= s4 s11))+[GOOD] (define-fun s13 () Bool (or s10 s12))+[GOOD] (define-fun s14 () Bool (and s3 s13))+[GOOD] (define-fun s17 () Bool ((as is-Val Bool) s0))+[GOOD] (define-fun s18 () Int (getVal_1 s0))+[GOOD] (define-fun s20 () Bool (< s18 s19))+[GOOD] (define-fun s21 () Bool (and s17 s20))+[GOOD] (define-fun s23 () Bool (= s18 s19))+[GOOD] (define-fun s24 () Bool (and s17 s23))+[GOOD] (define-fun s26 () Bool (> s18 s19))+[GOOD] (define-fun s27 () Bool (and s17 s26))+[GOOD] (define-fun s30 () Int (ite s27 s28 s29))+[GOOD] (define-fun s31 () Int (ite s24 s25 s30))+[GOOD] (define-fun s32 () Int (ite s21 s22 s31))+[GOOD] (define-fun s33 () Int (ite s3 s16 s32))+[GOOD] (define-fun s34 () Int (ite s14 s15 s33))+[GOOD] (define-fun s35 () Int (ite s7 s8 s34))+[GOOD] (define-fun s36 () Bool (distinct s29 s35))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s36)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_expr16c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_expr17.gold view
@@ -0,0 +1,75 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Expr ((as Add Expr) ((as Let Expr) "a" ((as Mul Expr) ((as Val Expr) 3) ((as Add Expr) ((as Val Expr) 3) ((as Val Expr) 4))) ((as Add Expr) ((as Var Expr) "a") ((as Add Expr) ((as Val Expr) 3) ((as Val Expr) 4)))) ((as Let Expr) "a" ((as Let Expr) "a" ((as Mul Expr) ((as Val Expr) 3) ((as Add Expr) ((as Val Expr) 3) ((as Val Expr) 4))) ((as Add Expr) ((as Var Expr) "a") ((as Add Expr) ((as Val Expr) 3) ((as Val Expr) 4)))) ((as Add Expr) ((as Var Expr) "a") ((as Add Expr) ((as Val Expr) 3) ((as Val Expr) 4))))))+[GOOD] (define-fun s5 () String "a")+[GOOD] (define-fun s8 () Int 0)+[GOOD] (define-fun s9 () String "b")+[GOOD] (define-fun s11 () String "c")+[GOOD] (define-fun s15 () Int 1)+[GOOD] (define-fun s16 () Int 2)+[GOOD] (define-fun s19 () Int 10)+[GOOD] (define-fun s22 () Int 3)+[GOOD] (define-fun s25 () Int 4)+[GOOD] (define-fun s28 () Int 5)+[GOOD] (define-fun s29 () Int 6)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s3 () Bool ((as is-Var Bool) s0))+[GOOD] (define-fun s4 () String (getVar_1 s0))+[GOOD] (define-fun s6 () Bool (= s4 s5))+[GOOD] (define-fun s7 () Bool (and s3 s6))+[GOOD] (define-fun s10 () Bool (= s4 s9))+[GOOD] (define-fun s12 () Bool (= s4 s11))+[GOOD] (define-fun s13 () Bool (or s10 s12))+[GOOD] (define-fun s14 () Bool (and s3 s13))+[GOOD] (define-fun s17 () Bool ((as is-Val Bool) s0))+[GOOD] (define-fun s18 () Int (getVal_1 s0))+[GOOD] (define-fun s20 () Bool (< s18 s19))+[GOOD] (define-fun s21 () Bool (and s17 s20))+[GOOD] (define-fun s23 () Bool (= s18 s19))+[GOOD] (define-fun s24 () Bool (and s17 s23))+[GOOD] (define-fun s26 () Bool (> s18 s19))+[GOOD] (define-fun s27 () Bool (and s17 s26))+[GOOD] (define-fun s30 () Int (ite s27 s28 s29))+[GOOD] (define-fun s31 () Int (ite s24 s25 s30))+[GOOD] (define-fun s32 () Int (ite s21 s22 s31))+[GOOD] (define-fun s33 () Int (ite s3 s16 s32))+[GOOD] (define-fun s34 () Int (ite s14 s15 s33))+[GOOD] (define-fun s35 () Int (ite s7 s8 s34))+[GOOD] (define-fun s36 () Bool (distinct s29 s35))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s36)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_expr17c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_expr18.gold view
@@ -0,0 +1,75 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Expr ((as Let Expr) "a" ((as Add Expr) ((as Let Expr) "a" ((as Mul Expr) ((as Val Expr) 3) ((as Add Expr) ((as Val Expr) 3) ((as Val Expr) 4))) ((as Add Expr) ((as Var Expr) "a") ((as Add Expr) ((as Val Expr) 3) ((as Val Expr) 4)))) ((as Let Expr) "a" ((as Let Expr) "a" ((as Mul Expr) ((as Val Expr) 3) ((as Add Expr) ((as Val Expr) 3) ((as Val Expr) 4))) ((as Add Expr) ((as Var Expr) "a") ((as Add Expr) ((as Val Expr) 3) ((as Val Expr) 4)))) ((as Add Expr) ((as Var Expr) "a") ((as Add Expr) ((as Val Expr) 3) ((as Val Expr) 4))))) ((as Mul Expr) ((as Var Expr) "a") ((as Var Expr) "a"))))+[GOOD] (define-fun s5 () String "a")+[GOOD] (define-fun s8 () Int 0)+[GOOD] (define-fun s9 () String "b")+[GOOD] (define-fun s11 () String "c")+[GOOD] (define-fun s15 () Int 1)+[GOOD] (define-fun s16 () Int 2)+[GOOD] (define-fun s19 () Int 10)+[GOOD] (define-fun s22 () Int 3)+[GOOD] (define-fun s25 () Int 4)+[GOOD] (define-fun s28 () Int 5)+[GOOD] (define-fun s29 () Int 6)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s3 () Bool ((as is-Var Bool) s0))+[GOOD] (define-fun s4 () String (getVar_1 s0))+[GOOD] (define-fun s6 () Bool (= s4 s5))+[GOOD] (define-fun s7 () Bool (and s3 s6))+[GOOD] (define-fun s10 () Bool (= s4 s9))+[GOOD] (define-fun s12 () Bool (= s4 s11))+[GOOD] (define-fun s13 () Bool (or s10 s12))+[GOOD] (define-fun s14 () Bool (and s3 s13))+[GOOD] (define-fun s17 () Bool ((as is-Val Bool) s0))+[GOOD] (define-fun s18 () Int (getVal_1 s0))+[GOOD] (define-fun s20 () Bool (< s18 s19))+[GOOD] (define-fun s21 () Bool (and s17 s20))+[GOOD] (define-fun s23 () Bool (= s18 s19))+[GOOD] (define-fun s24 () Bool (and s17 s23))+[GOOD] (define-fun s26 () Bool (> s18 s19))+[GOOD] (define-fun s27 () Bool (and s17 s26))+[GOOD] (define-fun s30 () Int (ite s27 s28 s29))+[GOOD] (define-fun s31 () Int (ite s24 s25 s30))+[GOOD] (define-fun s32 () Int (ite s21 s22 s31))+[GOOD] (define-fun s33 () Int (ite s3 s16 s32))+[GOOD] (define-fun s34 () Int (ite s14 s15 s33))+[GOOD] (define-fun s35 () Int (ite s7 s8 s34))+[GOOD] (define-fun s36 () Bool (distinct s29 s35))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s36)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_expr18c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_gen00.gold view
@@ -0,0 +1,277 @@+[MEASURE] Verifying termination measures for: eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer), eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer), get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer), valid @(SBV [[Char]] -> SBV Expr -> SBV Bool)+[MEASURE] Checking: eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): not in a multi-member cycle, skipping mutual check+[MEASURE] Passed (terminating): eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)+[MEASURE] Checking: eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): barified = "|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|"+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): Uninterpreted ops in DAG: [("|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2)]+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): recursive calls found = 6+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): trying sbv.dt.size.Expr arg2+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): sbv.dt.size.Expr arg2 -> OK (structural recursion)+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): sbv.dt.size.Expr arg2 -> OK+[MEASURE] Passed (terminating): eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)+[MEASURE] Checking: get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): barified = "|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|"+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): Uninterpreted ops in DAG: [("|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|",2)]+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): recursive calls found = 1+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): trying length arg1+[MEASURE] replayDAG {get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)}: replaying 13 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq (SBVTuple2 String Int))) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () String) ; tracks user variable "arg1"+[GOOD] (declare-fun s14 () Int) ; tracks user variable "__internal_sbv_s14"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Int (seq.len s0))+[GOOD] (define-fun s5 () Bool (= s2 s4))+[GOOD] (define-fun s6 () Bool (not s5))+[GOOD] (define-fun s7 () (SBVTuple2 String Int) (seq.nth s0 s2))+[GOOD] (define-fun s8 () String (proj_1_SBVTuple2 s7))+[GOOD] (define-fun s9 () Bool (= s1 s8))+[GOOD] (define-fun s10 () Bool (and s6 s9))+[GOOD] (define-fun s11 () Int (proj_2_SBVTuple2 s7))+[GOOD] (define-fun s12 () Int (- s4 s3))+[GOOD] (define-fun s13 () (Seq (SBVTuple2 String Int)) (seq.extract s0 s3 s12))+[GOOD] (define-fun s15 () Int (ite s10 s11 s14))+[GOOD] (define-fun s16 () Int (ite s5 s2 s15))+[GOOD] (define-fun s17 () Bool (>= s4 s2))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s17))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)}: replaying 13 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq (SBVTuple2 String Int))) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () String) ; tracks user variable "arg1"+[GOOD] (declare-fun s14 () Int) ; tracks user variable "__internal_sbv_s14"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Int (seq.len s0))+[GOOD] (define-fun s5 () Bool (= s2 s4))+[GOOD] (define-fun s6 () Bool (not s5))+[GOOD] (define-fun s7 () (SBVTuple2 String Int) (seq.nth s0 s2))+[GOOD] (define-fun s8 () String (proj_1_SBVTuple2 s7))+[GOOD] (define-fun s9 () Bool (= s1 s8))+[GOOD] (define-fun s10 () Bool (and s6 s9))+[GOOD] (define-fun s11 () Int (proj_2_SBVTuple2 s7))+[GOOD] (define-fun s12 () Int (- s4 s3))+[GOOD] (define-fun s13 () (Seq (SBVTuple2 String Int)) (seq.extract s0 s3 s12))+[GOOD] (define-fun s15 () Int (ite s10 s11 s14))+[GOOD] (define-fun s16 () Int (ite s5 s2 s15))+[GOOD] (define-fun s17 () Int (seq.len s13))+[GOOD] (define-fun s18 () Bool (not s10))+[GOOD] (define-fun s19 () Bool (and s6 s18))+[GOOD] (define-fun s20 () Bool (> s4 s17))+[GOOD] (define-fun s21 () Bool (=> s19 s20))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s21))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): length arg1 -> OK+[MEASURE] Passed (terminating): get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)+[MEASURE] Checking: valid @(SBV [[Char]] -> SBV Expr -> SBV Bool)+[MEASURE] valid @(SBV [[Char]] -> SBV Expr -> SBV Bool): barified = "|valid @(SBV [[Char]] -> SBV Expr -> SBV Bool)|"+[MEASURE] valid @(SBV [[Char]] -> SBV Expr -> SBV Bool): Uninterpreted ops in DAG: [("|valid @(SBV [[Char]] -> SBV Expr -> SBV Bool)|",2),("|valid @(SBV [[Char]] -> SBV Expr -> SBV Bool)|",2),("|valid @(SBV [[Char]] -> SBV Expr -> SBV Bool)|",2),("|valid @(SBV [[Char]] -> SBV Expr -> SBV Bool)|",2),("|valid @(SBV [[Char]] -> SBV Expr -> SBV Bool)|",2),("|valid @(SBV [[Char]] -> SBV Expr -> SBV Bool)|",2)]+[MEASURE] valid @(SBV [[Char]] -> SBV Expr -> SBV Bool): recursive calls found = 6+[MEASURE] valid @(SBV [[Char]] -> SBV Expr -> SBV Bool): trying sbv.dt.size.Expr arg2+[MEASURE] valid @(SBV [[Char]] -> SBV Expr -> SBV Bool): sbv.dt.size.Expr arg2 -> OK (structural recursion)+[MEASURE] valid @(SBV [[Char]] -> SBV Expr -> SBV Bool): sbv.dt.size.Expr arg2 -> OK+[MEASURE] Passed (terminating): valid @(SBV [[Char]] -> SBV Expr -> SBV Bool)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () (Seq String) (as seq.empty (Seq String)))+[GOOD] (define-fun s3 () (Seq (SBVTuple2 String Int)) (as seq.empty (Seq (SBVTuple2 String Int))))+[GOOD] (define-fun s5 () Int 12)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr) ; tracks user variable "a"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; |valid @(SBV [[Char]] -> SBV Expr -> SBV Bool)| :: [SString] -> Expr -> SBool [Recursive]+[GOOD] (define-fun-rec |valid @(SBV [[Char]] -> SBV Expr -> SBV Bool)| ((l1_s0 (Seq String)) (l1_s1 Expr)) Bool+                                 (let ((l1_s2 ((as is-Val Bool) l1_s1)))+                                 (let ((l1_s3 ((as is-Var Bool) l1_s1)))+                                 (let ((l1_s4 (getVar_1 l1_s1)))+                                 (let ((l1_s5 (str.in_re l1_s4 (re.++ (re.range "a" "z") (re.* (re.union (re.range "a" "z") (re.range "A" "Z") (re.range "0" "9")))))))+                                 (let ((l1_s6 (seq.unit l1_s4)))+                                 (let ((l1_s7 (seq.contains l1_s0 l1_s6)))+                                 (let ((l1_s8 (and l1_s5 l1_s7)))+                                 (let ((l1_s9 ((as is-Add Bool) l1_s1)))+                                 (let ((l1_s10 (getAdd_1 l1_s1)))+                                 (let ((l1_s11 (|valid @(SBV [[Char]] -> SBV Expr -> SBV Bool)| l1_s0 l1_s10)))+                                 (let ((l1_s12 (getAdd_2 l1_s1)))+                                 (let ((l1_s13 (|valid @(SBV [[Char]] -> SBV Expr -> SBV Bool)| l1_s0 l1_s12)))+                                 (let ((l1_s14 (and l1_s11 l1_s13)))+                                 (let ((l1_s15 ((as is-Mul Bool) l1_s1)))+                                 (let ((l1_s16 (getMul_1 l1_s1)))+                                 (let ((l1_s17 (|valid @(SBV [[Char]] -> SBV Expr -> SBV Bool)| l1_s0 l1_s16)))+                                 (let ((l1_s18 (getMul_2 l1_s1)))+                                 (let ((l1_s19 (|valid @(SBV [[Char]] -> SBV Expr -> SBV Bool)| l1_s0 l1_s18)))+                                 (let ((l1_s20 (and l1_s17 l1_s19)))+                                 (let ((l1_s21 (getLet_1 l1_s1)))+                                 (let ((l1_s22 (str.in_re l1_s21 (re.++ (re.range "a" "z") (re.* (re.union (re.range "a" "z") (re.range "A" "Z") (re.range "0" "9")))))))+                                 (let ((l1_s23 (getLet_2 l1_s1)))+                                 (let ((l1_s24 (|valid @(SBV [[Char]] -> SBV Expr -> SBV Bool)| l1_s0 l1_s23)))+                                 (let ((l1_s25 (seq.unit l1_s21)))+                                 (let ((l1_s26 (seq.++ l1_s25 l1_s0)))+                                 (let ((l1_s27 (getLet_3 l1_s1)))+                                 (let ((l1_s28 (|valid @(SBV [[Char]] -> SBV Expr -> SBV Bool)| l1_s26 l1_s27)))+                                 (let ((l1_s29 (and l1_s24 l1_s28)))+                                 (let ((l1_s30 (and l1_s22 l1_s29)))+                                 (let ((l1_s31 (ite l1_s15 l1_s20 l1_s30)))+                                 (let ((l1_s32 (ite l1_s9 l1_s14 l1_s31)))+                                 (let ((l1_s33 (ite l1_s3 l1_s8 l1_s32)))+                                 (let ((l1_s34 (or l1_s2 l1_s33)))+                                 l1_s34))))))))))))))))))))))))))))))))))+[GOOD] ; |get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| :: [(SString, SInteger)] -> SString -> SInteger [Recursive]+[GOOD] (define-fun-rec |get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| ((l2_s0 (Seq (SBVTuple2 String Int))) (l2_s1 String)) Int+                                                 (let ((l2_s3 0))+                                                 (let ((l2_s11 1))+                                                 (let ((l2_s2 (seq.len l2_s0)))+                                                 (let ((l2_s4 (= l2_s2 l2_s3)))+                                                 (let ((l2_s5 (not l2_s4)))+                                                 (let ((l2_s6 (seq.nth l2_s0 l2_s3)))+                                                 (let ((l2_s7 (proj_1_SBVTuple2 l2_s6)))+                                                 (let ((l2_s8 (= l2_s1 l2_s7)))+                                                 (let ((l2_s9 (and l2_s5 l2_s8)))+                                                 (let ((l2_s10 (proj_2_SBVTuple2 l2_s6)))+                                                 (let ((l2_s12 (- l2_s2 l2_s11)))+                                                 (let ((l2_s13 (seq.extract l2_s0 l2_s11 l2_s12)))+                                                 (let ((l2_s14 (|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| l2_s13 l2_s1)))+                                                 (let ((l2_s15 (ite l2_s9 l2_s10 l2_s14)))+                                                 (let ((l2_s16 (ite l2_s4 l2_s3 l2_s15)))+                                                 l2_s16))))))))))))))))+[GOOD] ; |eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| :: [(SString, SInteger)] -> Expr -> SInteger [Recursive] [Refers to: |get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|]+[GOOD] (define-fun-rec |eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| ((l1_s0 (Seq (SBVTuple2 String Int))) (l1_s1 Expr)) Int+                                 (let ((l1_s2 ((as is-Val Bool) l1_s1)))+                                 (let ((l1_s3 (getVal_1 l1_s1)))+                                 (let ((l1_s4 ((as is-Var Bool) l1_s1)))+                                 (let ((l1_s5 (getVar_1 l1_s1)))+                                 (let ((l1_s6 (|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| l1_s0 l1_s5)))+                                 (let ((l1_s7 ((as is-Add Bool) l1_s1)))+                                 (let ((l1_s8 (getAdd_1 l1_s1)))+                                 (let ((l1_s9 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s8)))+                                 (let ((l1_s10 (getAdd_2 l1_s1)))+                                 (let ((l1_s11 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s10)))+                                 (let ((l1_s12 (+ l1_s9 l1_s11)))+                                 (let ((l1_s13 ((as is-Mul Bool) l1_s1)))+                                 (let ((l1_s14 (getMul_1 l1_s1)))+                                 (let ((l1_s15 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s14)))+                                 (let ((l1_s16 (getMul_2 l1_s1)))+                                 (let ((l1_s17 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s16)))+                                 (let ((l1_s18 (* l1_s15 l1_s17)))+                                 (let ((l1_s19 (getLet_1 l1_s1)))+                                 (let ((l1_s20 (getLet_2 l1_s1)))+                                 (let ((l1_s21 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s20)))+                                 (let ((l1_s22 ((as mkSBVTuple2 (SBVTuple2 String Int)) l1_s19 l1_s21)))+                                 (let ((l1_s23 (seq.unit l1_s22)))+                                 (let ((l1_s24 (seq.++ l1_s23 l1_s0)))+                                 (let ((l1_s25 (getLet_3 l1_s1)))+                                 (let ((l1_s26 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s24 l1_s25)))+                                 (let ((l1_s27 (ite l1_s13 l1_s18 l1_s26)))+                                 (let ((l1_s28 (ite l1_s7 l1_s12 l1_s27)))+                                 (let ((l1_s29 (ite l1_s4 l1_s6 l1_s28)))+                                 (let ((l1_s30 (ite l1_s2 l1_s3 l1_s29)))+                                 l1_s30))))))))))))))))))))))))))))))+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (|valid @(SBV [[Char]] -> SBV Expr -> SBV Bool)| s1 s0))+[GOOD] (define-fun s4 () Int (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| s3 s0))+[GOOD] (define-fun s6 () Bool (= s4 s5))+[GOOD] (define-fun s7 () Bool ((as is-Let Bool) s0))+[GOOD] (define-fun s8 () Expr (getLet_3 s0))+[GOOD] (define-fun s9 () Bool ((as is-Let Bool) s8))+[GOOD] (define-fun s10 () Expr (getLet_3 s8))+[GOOD] (define-fun s11 () Bool ((as is-Add Bool) s10))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s6)+[GOOD] (assert s7)+[GOOD] (assert s9)+[GOOD] (assert s11)+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 (Let "l"+            (Val 6)+            (Let "a" (Val 0) (Add (Mul (Val 3) (Let "p" (Val 4) (Var "p"))) (Var "a"))))))++Got: (let l = 6 in (let a = 0 in ((3 * (let p = 4 in p)) + a)))+DONE+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_gen01.gold view
@@ -0,0 +1,83 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s3 () String "a")+[GOOD] (define-fun s6 () Int 0)+[GOOD] (define-fun s7 () String "b")+[GOOD] (define-fun s9 () String "c")+[GOOD] (define-fun s13 () Int 1)+[GOOD] (define-fun s14 () Int 2)+[GOOD] (define-fun s17 () Int 10)+[GOOD] (define-fun s20 () Int 3)+[GOOD] (define-fun s23 () Int 4)+[GOOD] (define-fun s26 () Int 5)+[GOOD] (define-fun s28 () Int 6)+[GOOD] (define-fun s30 () Int 7)+[GOOD] (define-fun s32 () Int 8)+[GOOD] (define-fun s33 () Int 100)+[GOOD] (define-fun s43 () Int (- 1))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr) ; tracks user variable "a"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s1 () Bool ((as is-Var Bool) s0))+[GOOD] (define-fun s2 () String (getVar_1 s0))+[GOOD] (define-fun s4 () Bool (= s2 s3))+[GOOD] (define-fun s5 () Bool (and s1 s4))+[GOOD] (define-fun s8 () Bool (= s2 s7))+[GOOD] (define-fun s10 () Bool (= s2 s9))+[GOOD] (define-fun s11 () Bool (or s8 s10))+[GOOD] (define-fun s12 () Bool (and s1 s11))+[GOOD] (define-fun s15 () Bool ((as is-Val Bool) s0))+[GOOD] (define-fun s16 () Int (getVal_1 s0))+[GOOD] (define-fun s18 () Bool (< s16 s17))+[GOOD] (define-fun s19 () Bool (and s15 s18))+[GOOD] (define-fun s21 () Bool (= s16 s17))+[GOOD] (define-fun s22 () Bool (and s15 s21))+[GOOD] (define-fun s24 () Bool (> s16 s17))+[GOOD] (define-fun s25 () Bool (and s15 s24))+[GOOD] (define-fun s27 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s29 () Bool ((as is-Mul Bool) s0))+[GOOD] (define-fun s31 () Bool ((as is-Let Bool) s0))+[GOOD] (define-fun s34 () Int (ite s31 s32 s33))+[GOOD] (define-fun s35 () Int (ite s29 s30 s34))+[GOOD] (define-fun s36 () Int (ite s27 s28 s35))+[GOOD] (define-fun s37 () Int (ite s25 s26 s36))+[GOOD] (define-fun s38 () Int (ite s22 s23 s37))+[GOOD] (define-fun s39 () Int (ite s19 s20 s38))+[GOOD] (define-fun s40 () Int (ite s1 s14 s39))+[GOOD] (define-fun s41 () Int (ite s12 s13 s40))+[GOOD] (define-fun s42 () Int (ite s5 s6 s41))+[GOOD] (define-fun s44 () Bool (= s42 s43))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s44)+[SEND] (check-sat)+[RECV] unsat++UNSAT+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_gen02.gold view
@@ -0,0 +1,85 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s3 () String "a")+[GOOD] (define-fun s6 () Int 0)+[GOOD] (define-fun s7 () String "b")+[GOOD] (define-fun s9 () String "c")+[GOOD] (define-fun s13 () Int 1)+[GOOD] (define-fun s14 () Int 2)+[GOOD] (define-fun s17 () Int 10)+[GOOD] (define-fun s20 () Int 3)+[GOOD] (define-fun s23 () Int 4)+[GOOD] (define-fun s26 () Int 5)+[GOOD] (define-fun s28 () Int 6)+[GOOD] (define-fun s30 () Int 7)+[GOOD] (define-fun s32 () Int 8)+[GOOD] (define-fun s33 () Int 100)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr) ; tracks user variable "a"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s1 () Bool ((as is-Var Bool) s0))+[GOOD] (define-fun s2 () String (getVar_1 s0))+[GOOD] (define-fun s4 () Bool (= s2 s3))+[GOOD] (define-fun s5 () Bool (and s1 s4))+[GOOD] (define-fun s8 () Bool (= s2 s7))+[GOOD] (define-fun s10 () Bool (= s2 s9))+[GOOD] (define-fun s11 () Bool (or s8 s10))+[GOOD] (define-fun s12 () Bool (and s1 s11))+[GOOD] (define-fun s15 () Bool ((as is-Val Bool) s0))+[GOOD] (define-fun s16 () Int (getVal_1 s0))+[GOOD] (define-fun s18 () Bool (< s16 s17))+[GOOD] (define-fun s19 () Bool (and s15 s18))+[GOOD] (define-fun s21 () Bool (= s16 s17))+[GOOD] (define-fun s22 () Bool (and s15 s21))+[GOOD] (define-fun s24 () Bool (> s16 s17))+[GOOD] (define-fun s25 () Bool (and s15 s24))+[GOOD] (define-fun s27 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s29 () Bool ((as is-Mul Bool) s0))+[GOOD] (define-fun s31 () Bool ((as is-Let Bool) s0))+[GOOD] (define-fun s34 () Int (ite s31 s32 s33))+[GOOD] (define-fun s35 () Int (ite s29 s30 s34))+[GOOD] (define-fun s36 () Int (ite s27 s28 s35))+[GOOD] (define-fun s37 () Int (ite s25 s26 s36))+[GOOD] (define-fun s38 () Int (ite s22 s23 s37))+[GOOD] (define-fun s39 () Int (ite s19 s20 s38))+[GOOD] (define-fun s40 () Int (ite s1 s14 s39))+[GOOD] (define-fun s41 () Int (ite s12 s13 s40))+[GOOD] (define-fun s42 () Int (ite s5 s6 s41))+[GOOD] (define-fun s43 () Bool (= s6 s42))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s43)+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 (Var "a")))++Got: a+DONE+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_gen03.gold view
@@ -0,0 +1,85 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s3 () String "a")+[GOOD] (define-fun s6 () Int 0)+[GOOD] (define-fun s7 () String "b")+[GOOD] (define-fun s9 () String "c")+[GOOD] (define-fun s13 () Int 1)+[GOOD] (define-fun s14 () Int 2)+[GOOD] (define-fun s17 () Int 10)+[GOOD] (define-fun s20 () Int 3)+[GOOD] (define-fun s23 () Int 4)+[GOOD] (define-fun s26 () Int 5)+[GOOD] (define-fun s28 () Int 6)+[GOOD] (define-fun s30 () Int 7)+[GOOD] (define-fun s32 () Int 8)+[GOOD] (define-fun s33 () Int 100)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr) ; tracks user variable "a"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s1 () Bool ((as is-Var Bool) s0))+[GOOD] (define-fun s2 () String (getVar_1 s0))+[GOOD] (define-fun s4 () Bool (= s2 s3))+[GOOD] (define-fun s5 () Bool (and s1 s4))+[GOOD] (define-fun s8 () Bool (= s2 s7))+[GOOD] (define-fun s10 () Bool (= s2 s9))+[GOOD] (define-fun s11 () Bool (or s8 s10))+[GOOD] (define-fun s12 () Bool (and s1 s11))+[GOOD] (define-fun s15 () Bool ((as is-Val Bool) s0))+[GOOD] (define-fun s16 () Int (getVal_1 s0))+[GOOD] (define-fun s18 () Bool (< s16 s17))+[GOOD] (define-fun s19 () Bool (and s15 s18))+[GOOD] (define-fun s21 () Bool (= s16 s17))+[GOOD] (define-fun s22 () Bool (and s15 s21))+[GOOD] (define-fun s24 () Bool (> s16 s17))+[GOOD] (define-fun s25 () Bool (and s15 s24))+[GOOD] (define-fun s27 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s29 () Bool ((as is-Mul Bool) s0))+[GOOD] (define-fun s31 () Bool ((as is-Let Bool) s0))+[GOOD] (define-fun s34 () Int (ite s31 s32 s33))+[GOOD] (define-fun s35 () Int (ite s29 s30 s34))+[GOOD] (define-fun s36 () Int (ite s27 s28 s35))+[GOOD] (define-fun s37 () Int (ite s25 s26 s36))+[GOOD] (define-fun s38 () Int (ite s22 s23 s37))+[GOOD] (define-fun s39 () Int (ite s19 s20 s38))+[GOOD] (define-fun s40 () Int (ite s1 s14 s39))+[GOOD] (define-fun s41 () Int (ite s12 s13 s40))+[GOOD] (define-fun s42 () Int (ite s5 s6 s41))+[GOOD] (define-fun s43 () Bool (= s13 s42))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s43)+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 (Var "b")))++Got: b+DONE+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_gen04.gold view
@@ -0,0 +1,85 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s3 () String "a")+[GOOD] (define-fun s6 () Int 0)+[GOOD] (define-fun s7 () String "b")+[GOOD] (define-fun s9 () String "c")+[GOOD] (define-fun s13 () Int 1)+[GOOD] (define-fun s14 () Int 2)+[GOOD] (define-fun s17 () Int 10)+[GOOD] (define-fun s20 () Int 3)+[GOOD] (define-fun s23 () Int 4)+[GOOD] (define-fun s26 () Int 5)+[GOOD] (define-fun s28 () Int 6)+[GOOD] (define-fun s30 () Int 7)+[GOOD] (define-fun s32 () Int 8)+[GOOD] (define-fun s33 () Int 100)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr) ; tracks user variable "a"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s1 () Bool ((as is-Var Bool) s0))+[GOOD] (define-fun s2 () String (getVar_1 s0))+[GOOD] (define-fun s4 () Bool (= s2 s3))+[GOOD] (define-fun s5 () Bool (and s1 s4))+[GOOD] (define-fun s8 () Bool (= s2 s7))+[GOOD] (define-fun s10 () Bool (= s2 s9))+[GOOD] (define-fun s11 () Bool (or s8 s10))+[GOOD] (define-fun s12 () Bool (and s1 s11))+[GOOD] (define-fun s15 () Bool ((as is-Val Bool) s0))+[GOOD] (define-fun s16 () Int (getVal_1 s0))+[GOOD] (define-fun s18 () Bool (< s16 s17))+[GOOD] (define-fun s19 () Bool (and s15 s18))+[GOOD] (define-fun s21 () Bool (= s16 s17))+[GOOD] (define-fun s22 () Bool (and s15 s21))+[GOOD] (define-fun s24 () Bool (> s16 s17))+[GOOD] (define-fun s25 () Bool (and s15 s24))+[GOOD] (define-fun s27 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s29 () Bool ((as is-Mul Bool) s0))+[GOOD] (define-fun s31 () Bool ((as is-Let Bool) s0))+[GOOD] (define-fun s34 () Int (ite s31 s32 s33))+[GOOD] (define-fun s35 () Int (ite s29 s30 s34))+[GOOD] (define-fun s36 () Int (ite s27 s28 s35))+[GOOD] (define-fun s37 () Int (ite s25 s26 s36))+[GOOD] (define-fun s38 () Int (ite s22 s23 s37))+[GOOD] (define-fun s39 () Int (ite s19 s20 s38))+[GOOD] (define-fun s40 () Int (ite s1 s14 s39))+[GOOD] (define-fun s41 () Int (ite s12 s13 s40))+[GOOD] (define-fun s42 () Int (ite s5 s6 s41))+[GOOD] (define-fun s43 () Bool (= s14 s42))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s43)+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 (Var "")))++Got: +DONE+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_gen05.gold view
@@ -0,0 +1,85 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s3 () String "a")+[GOOD] (define-fun s6 () Int 0)+[GOOD] (define-fun s7 () String "b")+[GOOD] (define-fun s9 () String "c")+[GOOD] (define-fun s13 () Int 1)+[GOOD] (define-fun s14 () Int 2)+[GOOD] (define-fun s17 () Int 10)+[GOOD] (define-fun s20 () Int 3)+[GOOD] (define-fun s23 () Int 4)+[GOOD] (define-fun s26 () Int 5)+[GOOD] (define-fun s28 () Int 6)+[GOOD] (define-fun s30 () Int 7)+[GOOD] (define-fun s32 () Int 8)+[GOOD] (define-fun s33 () Int 100)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr) ; tracks user variable "a"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s1 () Bool ((as is-Var Bool) s0))+[GOOD] (define-fun s2 () String (getVar_1 s0))+[GOOD] (define-fun s4 () Bool (= s2 s3))+[GOOD] (define-fun s5 () Bool (and s1 s4))+[GOOD] (define-fun s8 () Bool (= s2 s7))+[GOOD] (define-fun s10 () Bool (= s2 s9))+[GOOD] (define-fun s11 () Bool (or s8 s10))+[GOOD] (define-fun s12 () Bool (and s1 s11))+[GOOD] (define-fun s15 () Bool ((as is-Val Bool) s0))+[GOOD] (define-fun s16 () Int (getVal_1 s0))+[GOOD] (define-fun s18 () Bool (< s16 s17))+[GOOD] (define-fun s19 () Bool (and s15 s18))+[GOOD] (define-fun s21 () Bool (= s16 s17))+[GOOD] (define-fun s22 () Bool (and s15 s21))+[GOOD] (define-fun s24 () Bool (> s16 s17))+[GOOD] (define-fun s25 () Bool (and s15 s24))+[GOOD] (define-fun s27 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s29 () Bool ((as is-Mul Bool) s0))+[GOOD] (define-fun s31 () Bool ((as is-Let Bool) s0))+[GOOD] (define-fun s34 () Int (ite s31 s32 s33))+[GOOD] (define-fun s35 () Int (ite s29 s30 s34))+[GOOD] (define-fun s36 () Int (ite s27 s28 s35))+[GOOD] (define-fun s37 () Int (ite s25 s26 s36))+[GOOD] (define-fun s38 () Int (ite s22 s23 s37))+[GOOD] (define-fun s39 () Int (ite s19 s20 s38))+[GOOD] (define-fun s40 () Int (ite s1 s14 s39))+[GOOD] (define-fun s41 () Int (ite s12 s13 s40))+[GOOD] (define-fun s42 () Int (ite s5 s6 s41))+[GOOD] (define-fun s43 () Bool (= s20 s42))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s43)+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 (Val 0)))++Got: 0+DONE+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_gen06.gold view
@@ -0,0 +1,85 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s3 () String "a")+[GOOD] (define-fun s6 () Int 0)+[GOOD] (define-fun s7 () String "b")+[GOOD] (define-fun s9 () String "c")+[GOOD] (define-fun s13 () Int 1)+[GOOD] (define-fun s14 () Int 2)+[GOOD] (define-fun s17 () Int 10)+[GOOD] (define-fun s20 () Int 3)+[GOOD] (define-fun s23 () Int 4)+[GOOD] (define-fun s26 () Int 5)+[GOOD] (define-fun s28 () Int 6)+[GOOD] (define-fun s30 () Int 7)+[GOOD] (define-fun s32 () Int 8)+[GOOD] (define-fun s33 () Int 100)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr) ; tracks user variable "a"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s1 () Bool ((as is-Var Bool) s0))+[GOOD] (define-fun s2 () String (getVar_1 s0))+[GOOD] (define-fun s4 () Bool (= s2 s3))+[GOOD] (define-fun s5 () Bool (and s1 s4))+[GOOD] (define-fun s8 () Bool (= s2 s7))+[GOOD] (define-fun s10 () Bool (= s2 s9))+[GOOD] (define-fun s11 () Bool (or s8 s10))+[GOOD] (define-fun s12 () Bool (and s1 s11))+[GOOD] (define-fun s15 () Bool ((as is-Val Bool) s0))+[GOOD] (define-fun s16 () Int (getVal_1 s0))+[GOOD] (define-fun s18 () Bool (< s16 s17))+[GOOD] (define-fun s19 () Bool (and s15 s18))+[GOOD] (define-fun s21 () Bool (= s16 s17))+[GOOD] (define-fun s22 () Bool (and s15 s21))+[GOOD] (define-fun s24 () Bool (> s16 s17))+[GOOD] (define-fun s25 () Bool (and s15 s24))+[GOOD] (define-fun s27 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s29 () Bool ((as is-Mul Bool) s0))+[GOOD] (define-fun s31 () Bool ((as is-Let Bool) s0))+[GOOD] (define-fun s34 () Int (ite s31 s32 s33))+[GOOD] (define-fun s35 () Int (ite s29 s30 s34))+[GOOD] (define-fun s36 () Int (ite s27 s28 s35))+[GOOD] (define-fun s37 () Int (ite s25 s26 s36))+[GOOD] (define-fun s38 () Int (ite s22 s23 s37))+[GOOD] (define-fun s39 () Int (ite s19 s20 s38))+[GOOD] (define-fun s40 () Int (ite s1 s14 s39))+[GOOD] (define-fun s41 () Int (ite s12 s13 s40))+[GOOD] (define-fun s42 () Int (ite s5 s6 s41))+[GOOD] (define-fun s43 () Bool (= s23 s42))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s43)+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 (Val 10)))++Got: 10+DONE+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_gen07.gold view
@@ -0,0 +1,85 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s3 () String "a")+[GOOD] (define-fun s6 () Int 0)+[GOOD] (define-fun s7 () String "b")+[GOOD] (define-fun s9 () String "c")+[GOOD] (define-fun s13 () Int 1)+[GOOD] (define-fun s14 () Int 2)+[GOOD] (define-fun s17 () Int 10)+[GOOD] (define-fun s20 () Int 3)+[GOOD] (define-fun s23 () Int 4)+[GOOD] (define-fun s26 () Int 5)+[GOOD] (define-fun s28 () Int 6)+[GOOD] (define-fun s30 () Int 7)+[GOOD] (define-fun s32 () Int 8)+[GOOD] (define-fun s33 () Int 100)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr) ; tracks user variable "a"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s1 () Bool ((as is-Var Bool) s0))+[GOOD] (define-fun s2 () String (getVar_1 s0))+[GOOD] (define-fun s4 () Bool (= s2 s3))+[GOOD] (define-fun s5 () Bool (and s1 s4))+[GOOD] (define-fun s8 () Bool (= s2 s7))+[GOOD] (define-fun s10 () Bool (= s2 s9))+[GOOD] (define-fun s11 () Bool (or s8 s10))+[GOOD] (define-fun s12 () Bool (and s1 s11))+[GOOD] (define-fun s15 () Bool ((as is-Val Bool) s0))+[GOOD] (define-fun s16 () Int (getVal_1 s0))+[GOOD] (define-fun s18 () Bool (< s16 s17))+[GOOD] (define-fun s19 () Bool (and s15 s18))+[GOOD] (define-fun s21 () Bool (= s16 s17))+[GOOD] (define-fun s22 () Bool (and s15 s21))+[GOOD] (define-fun s24 () Bool (> s16 s17))+[GOOD] (define-fun s25 () Bool (and s15 s24))+[GOOD] (define-fun s27 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s29 () Bool ((as is-Mul Bool) s0))+[GOOD] (define-fun s31 () Bool ((as is-Let Bool) s0))+[GOOD] (define-fun s34 () Int (ite s31 s32 s33))+[GOOD] (define-fun s35 () Int (ite s29 s30 s34))+[GOOD] (define-fun s36 () Int (ite s27 s28 s35))+[GOOD] (define-fun s37 () Int (ite s25 s26 s36))+[GOOD] (define-fun s38 () Int (ite s22 s23 s37))+[GOOD] (define-fun s39 () Int (ite s19 s20 s38))+[GOOD] (define-fun s40 () Int (ite s1 s14 s39))+[GOOD] (define-fun s41 () Int (ite s12 s13 s40))+[GOOD] (define-fun s42 () Int (ite s5 s6 s41))+[GOOD] (define-fun s43 () Bool (= s26 s42))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s43)+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 (Val 11)))++Got: 11+DONE+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_gen08.gold view
@@ -0,0 +1,85 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s3 () String "a")+[GOOD] (define-fun s6 () Int 0)+[GOOD] (define-fun s7 () String "b")+[GOOD] (define-fun s9 () String "c")+[GOOD] (define-fun s13 () Int 1)+[GOOD] (define-fun s14 () Int 2)+[GOOD] (define-fun s17 () Int 10)+[GOOD] (define-fun s20 () Int 3)+[GOOD] (define-fun s23 () Int 4)+[GOOD] (define-fun s26 () Int 5)+[GOOD] (define-fun s28 () Int 6)+[GOOD] (define-fun s30 () Int 7)+[GOOD] (define-fun s32 () Int 8)+[GOOD] (define-fun s33 () Int 100)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr) ; tracks user variable "a"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s1 () Bool ((as is-Var Bool) s0))+[GOOD] (define-fun s2 () String (getVar_1 s0))+[GOOD] (define-fun s4 () Bool (= s2 s3))+[GOOD] (define-fun s5 () Bool (and s1 s4))+[GOOD] (define-fun s8 () Bool (= s2 s7))+[GOOD] (define-fun s10 () Bool (= s2 s9))+[GOOD] (define-fun s11 () Bool (or s8 s10))+[GOOD] (define-fun s12 () Bool (and s1 s11))+[GOOD] (define-fun s15 () Bool ((as is-Val Bool) s0))+[GOOD] (define-fun s16 () Int (getVal_1 s0))+[GOOD] (define-fun s18 () Bool (< s16 s17))+[GOOD] (define-fun s19 () Bool (and s15 s18))+[GOOD] (define-fun s21 () Bool (= s16 s17))+[GOOD] (define-fun s22 () Bool (and s15 s21))+[GOOD] (define-fun s24 () Bool (> s16 s17))+[GOOD] (define-fun s25 () Bool (and s15 s24))+[GOOD] (define-fun s27 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s29 () Bool ((as is-Mul Bool) s0))+[GOOD] (define-fun s31 () Bool ((as is-Let Bool) s0))+[GOOD] (define-fun s34 () Int (ite s31 s32 s33))+[GOOD] (define-fun s35 () Int (ite s29 s30 s34))+[GOOD] (define-fun s36 () Int (ite s27 s28 s35))+[GOOD] (define-fun s37 () Int (ite s25 s26 s36))+[GOOD] (define-fun s38 () Int (ite s22 s23 s37))+[GOOD] (define-fun s39 () Int (ite s19 s20 s38))+[GOOD] (define-fun s40 () Int (ite s1 s14 s39))+[GOOD] (define-fun s41 () Int (ite s12 s13 s40))+[GOOD] (define-fun s42 () Int (ite s5 s6 s41))+[GOOD] (define-fun s43 () Bool (= s28 s42))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s43)+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 (Add (Var "!0!") (Var "!0!"))))++Got: (!0! + !0!)+DONE+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_gen09.gold view
@@ -0,0 +1,85 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s3 () String "a")+[GOOD] (define-fun s6 () Int 0)+[GOOD] (define-fun s7 () String "b")+[GOOD] (define-fun s9 () String "c")+[GOOD] (define-fun s13 () Int 1)+[GOOD] (define-fun s14 () Int 2)+[GOOD] (define-fun s17 () Int 10)+[GOOD] (define-fun s20 () Int 3)+[GOOD] (define-fun s23 () Int 4)+[GOOD] (define-fun s26 () Int 5)+[GOOD] (define-fun s28 () Int 6)+[GOOD] (define-fun s30 () Int 7)+[GOOD] (define-fun s32 () Int 8)+[GOOD] (define-fun s33 () Int 100)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr) ; tracks user variable "a"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s1 () Bool ((as is-Var Bool) s0))+[GOOD] (define-fun s2 () String (getVar_1 s0))+[GOOD] (define-fun s4 () Bool (= s2 s3))+[GOOD] (define-fun s5 () Bool (and s1 s4))+[GOOD] (define-fun s8 () Bool (= s2 s7))+[GOOD] (define-fun s10 () Bool (= s2 s9))+[GOOD] (define-fun s11 () Bool (or s8 s10))+[GOOD] (define-fun s12 () Bool (and s1 s11))+[GOOD] (define-fun s15 () Bool ((as is-Val Bool) s0))+[GOOD] (define-fun s16 () Int (getVal_1 s0))+[GOOD] (define-fun s18 () Bool (< s16 s17))+[GOOD] (define-fun s19 () Bool (and s15 s18))+[GOOD] (define-fun s21 () Bool (= s16 s17))+[GOOD] (define-fun s22 () Bool (and s15 s21))+[GOOD] (define-fun s24 () Bool (> s16 s17))+[GOOD] (define-fun s25 () Bool (and s15 s24))+[GOOD] (define-fun s27 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s29 () Bool ((as is-Mul Bool) s0))+[GOOD] (define-fun s31 () Bool ((as is-Let Bool) s0))+[GOOD] (define-fun s34 () Int (ite s31 s32 s33))+[GOOD] (define-fun s35 () Int (ite s29 s30 s34))+[GOOD] (define-fun s36 () Int (ite s27 s28 s35))+[GOOD] (define-fun s37 () Int (ite s25 s26 s36))+[GOOD] (define-fun s38 () Int (ite s22 s23 s37))+[GOOD] (define-fun s39 () Int (ite s19 s20 s38))+[GOOD] (define-fun s40 () Int (ite s1 s14 s39))+[GOOD] (define-fun s41 () Int (ite s12 s13 s40))+[GOOD] (define-fun s42 () Int (ite s5 s6 s41))+[GOOD] (define-fun s43 () Bool (= s30 s42))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s43)+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 (Mul (Var "!0!") (Var "!0!"))))++Got: (!0! * !0!)+DONE+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_gen10.gold view
@@ -0,0 +1,85 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s3 () String "a")+[GOOD] (define-fun s6 () Int 0)+[GOOD] (define-fun s7 () String "b")+[GOOD] (define-fun s9 () String "c")+[GOOD] (define-fun s13 () Int 1)+[GOOD] (define-fun s14 () Int 2)+[GOOD] (define-fun s17 () Int 10)+[GOOD] (define-fun s20 () Int 3)+[GOOD] (define-fun s23 () Int 4)+[GOOD] (define-fun s26 () Int 5)+[GOOD] (define-fun s28 () Int 6)+[GOOD] (define-fun s30 () Int 7)+[GOOD] (define-fun s32 () Int 8)+[GOOD] (define-fun s33 () Int 100)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr) ; tracks user variable "a"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s1 () Bool ((as is-Var Bool) s0))+[GOOD] (define-fun s2 () String (getVar_1 s0))+[GOOD] (define-fun s4 () Bool (= s2 s3))+[GOOD] (define-fun s5 () Bool (and s1 s4))+[GOOD] (define-fun s8 () Bool (= s2 s7))+[GOOD] (define-fun s10 () Bool (= s2 s9))+[GOOD] (define-fun s11 () Bool (or s8 s10))+[GOOD] (define-fun s12 () Bool (and s1 s11))+[GOOD] (define-fun s15 () Bool ((as is-Val Bool) s0))+[GOOD] (define-fun s16 () Int (getVal_1 s0))+[GOOD] (define-fun s18 () Bool (< s16 s17))+[GOOD] (define-fun s19 () Bool (and s15 s18))+[GOOD] (define-fun s21 () Bool (= s16 s17))+[GOOD] (define-fun s22 () Bool (and s15 s21))+[GOOD] (define-fun s24 () Bool (> s16 s17))+[GOOD] (define-fun s25 () Bool (and s15 s24))+[GOOD] (define-fun s27 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s29 () Bool ((as is-Mul Bool) s0))+[GOOD] (define-fun s31 () Bool ((as is-Let Bool) s0))+[GOOD] (define-fun s34 () Int (ite s31 s32 s33))+[GOOD] (define-fun s35 () Int (ite s29 s30 s34))+[GOOD] (define-fun s36 () Int (ite s27 s28 s35))+[GOOD] (define-fun s37 () Int (ite s25 s26 s36))+[GOOD] (define-fun s38 () Int (ite s22 s23 s37))+[GOOD] (define-fun s39 () Int (ite s19 s20 s38))+[GOOD] (define-fun s40 () Int (ite s1 s14 s39))+[GOOD] (define-fun s41 () Int (ite s12 s13 s40))+[GOOD] (define-fun s42 () Int (ite s5 s6 s41))+[GOOD] (define-fun s43 () Bool (= s32 s42))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s43)+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 (Let "!0!" (Var "!0!") (Var "!0!"))))++Got: (let !0! = !0! in !0!)+DONE+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_gen11.gold view
@@ -0,0 +1,83 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s3 () String "a")+[GOOD] (define-fun s6 () Int 0)+[GOOD] (define-fun s7 () String "b")+[GOOD] (define-fun s9 () String "c")+[GOOD] (define-fun s13 () Int 1)+[GOOD] (define-fun s14 () Int 2)+[GOOD] (define-fun s17 () Int 10)+[GOOD] (define-fun s20 () Int 3)+[GOOD] (define-fun s23 () Int 4)+[GOOD] (define-fun s26 () Int 5)+[GOOD] (define-fun s28 () Int 6)+[GOOD] (define-fun s30 () Int 7)+[GOOD] (define-fun s32 () Int 8)+[GOOD] (define-fun s33 () Int 100)+[GOOD] (define-fun s43 () Int 9)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr) ; tracks user variable "a"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s1 () Bool ((as is-Var Bool) s0))+[GOOD] (define-fun s2 () String (getVar_1 s0))+[GOOD] (define-fun s4 () Bool (= s2 s3))+[GOOD] (define-fun s5 () Bool (and s1 s4))+[GOOD] (define-fun s8 () Bool (= s2 s7))+[GOOD] (define-fun s10 () Bool (= s2 s9))+[GOOD] (define-fun s11 () Bool (or s8 s10))+[GOOD] (define-fun s12 () Bool (and s1 s11))+[GOOD] (define-fun s15 () Bool ((as is-Val Bool) s0))+[GOOD] (define-fun s16 () Int (getVal_1 s0))+[GOOD] (define-fun s18 () Bool (< s16 s17))+[GOOD] (define-fun s19 () Bool (and s15 s18))+[GOOD] (define-fun s21 () Bool (= s16 s17))+[GOOD] (define-fun s22 () Bool (and s15 s21))+[GOOD] (define-fun s24 () Bool (> s16 s17))+[GOOD] (define-fun s25 () Bool (and s15 s24))+[GOOD] (define-fun s27 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s29 () Bool ((as is-Mul Bool) s0))+[GOOD] (define-fun s31 () Bool ((as is-Let Bool) s0))+[GOOD] (define-fun s34 () Int (ite s31 s32 s33))+[GOOD] (define-fun s35 () Int (ite s29 s30 s34))+[GOOD] (define-fun s36 () Int (ite s27 s28 s35))+[GOOD] (define-fun s37 () Int (ite s25 s26 s36))+[GOOD] (define-fun s38 () Int (ite s22 s23 s37))+[GOOD] (define-fun s39 () Int (ite s19 s20 s38))+[GOOD] (define-fun s40 () Int (ite s1 s14 s39))+[GOOD] (define-fun s41 () Int (ite s12 s13 s40))+[GOOD] (define-fun s42 () Int (ite s5 s6 s41))+[GOOD] (define-fun s44 () Bool (= s42 s43))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s44)+[SEND] (check-sat)+[RECV] unsat++UNSAT+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_gen12.gold view
@@ -0,0 +1,82 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s3 () String "a")+[GOOD] (define-fun s6 () Int 0)+[GOOD] (define-fun s7 () String "b")+[GOOD] (define-fun s9 () String "c")+[GOOD] (define-fun s13 () Int 1)+[GOOD] (define-fun s14 () Int 2)+[GOOD] (define-fun s17 () Int 10)+[GOOD] (define-fun s20 () Int 3)+[GOOD] (define-fun s23 () Int 4)+[GOOD] (define-fun s26 () Int 5)+[GOOD] (define-fun s28 () Int 6)+[GOOD] (define-fun s30 () Int 7)+[GOOD] (define-fun s32 () Int 8)+[GOOD] (define-fun s33 () Int 100)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr) ; tracks user variable "a"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s1 () Bool ((as is-Var Bool) s0))+[GOOD] (define-fun s2 () String (getVar_1 s0))+[GOOD] (define-fun s4 () Bool (= s2 s3))+[GOOD] (define-fun s5 () Bool (and s1 s4))+[GOOD] (define-fun s8 () Bool (= s2 s7))+[GOOD] (define-fun s10 () Bool (= s2 s9))+[GOOD] (define-fun s11 () Bool (or s8 s10))+[GOOD] (define-fun s12 () Bool (and s1 s11))+[GOOD] (define-fun s15 () Bool ((as is-Val Bool) s0))+[GOOD] (define-fun s16 () Int (getVal_1 s0))+[GOOD] (define-fun s18 () Bool (< s16 s17))+[GOOD] (define-fun s19 () Bool (and s15 s18))+[GOOD] (define-fun s21 () Bool (= s16 s17))+[GOOD] (define-fun s22 () Bool (and s15 s21))+[GOOD] (define-fun s24 () Bool (> s16 s17))+[GOOD] (define-fun s25 () Bool (and s15 s24))+[GOOD] (define-fun s27 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s29 () Bool ((as is-Mul Bool) s0))+[GOOD] (define-fun s31 () Bool ((as is-Let Bool) s0))+[GOOD] (define-fun s34 () Int (ite s31 s32 s33))+[GOOD] (define-fun s35 () Int (ite s29 s30 s34))+[GOOD] (define-fun s36 () Int (ite s27 s28 s35))+[GOOD] (define-fun s37 () Int (ite s25 s26 s36))+[GOOD] (define-fun s38 () Int (ite s22 s23 s37))+[GOOD] (define-fun s39 () Int (ite s19 s20 s38))+[GOOD] (define-fun s40 () Int (ite s1 s14 s39))+[GOOD] (define-fun s41 () Int (ite s12 s13 s40))+[GOOD] (define-fun s42 () Int (ite s5 s6 s41))+[GOOD] (define-fun s43 () Bool (= s33 s42))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s43)+[SEND] (check-sat)+[RECV] unsat++UNSAT+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_lit00.gold view
@@ -0,0 +1,240 @@+[MEASURE] Verifying termination measures for: eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer), eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer), get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)+[MEASURE] Checking: eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): not in a multi-member cycle, skipping mutual check+[MEASURE] Passed (terminating): eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)+[MEASURE] Checking: eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): barified = "|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|"+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): Uninterpreted ops in DAG: [("|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2)]+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): recursive calls found = 6+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): trying sbv.dt.size.Expr arg2+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): sbv.dt.size.Expr arg2 -> OK (structural recursion)+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): sbv.dt.size.Expr arg2 -> OK+[MEASURE] Passed (terminating): eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)+[MEASURE] Checking: get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): barified = "|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|"+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): Uninterpreted ops in DAG: [("|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|",2)]+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): recursive calls found = 1+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): trying length arg1+[MEASURE] replayDAG {get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)}: replaying 13 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq (SBVTuple2 String Int))) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () String) ; tracks user variable "arg1"+[GOOD] (declare-fun s14 () Int) ; tracks user variable "__internal_sbv_s14"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Int (seq.len s0))+[GOOD] (define-fun s5 () Bool (= s2 s4))+[GOOD] (define-fun s6 () Bool (not s5))+[GOOD] (define-fun s7 () (SBVTuple2 String Int) (seq.nth s0 s2))+[GOOD] (define-fun s8 () String (proj_1_SBVTuple2 s7))+[GOOD] (define-fun s9 () Bool (= s1 s8))+[GOOD] (define-fun s10 () Bool (and s6 s9))+[GOOD] (define-fun s11 () Int (proj_2_SBVTuple2 s7))+[GOOD] (define-fun s12 () Int (- s4 s3))+[GOOD] (define-fun s13 () (Seq (SBVTuple2 String Int)) (seq.extract s0 s3 s12))+[GOOD] (define-fun s15 () Int (ite s10 s11 s14))+[GOOD] (define-fun s16 () Int (ite s5 s2 s15))+[GOOD] (define-fun s17 () Bool (>= s4 s2))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s17))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)}: replaying 13 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq (SBVTuple2 String Int))) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () String) ; tracks user variable "arg1"+[GOOD] (declare-fun s14 () Int) ; tracks user variable "__internal_sbv_s14"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Int (seq.len s0))+[GOOD] (define-fun s5 () Bool (= s2 s4))+[GOOD] (define-fun s6 () Bool (not s5))+[GOOD] (define-fun s7 () (SBVTuple2 String Int) (seq.nth s0 s2))+[GOOD] (define-fun s8 () String (proj_1_SBVTuple2 s7))+[GOOD] (define-fun s9 () Bool (= s1 s8))+[GOOD] (define-fun s10 () Bool (and s6 s9))+[GOOD] (define-fun s11 () Int (proj_2_SBVTuple2 s7))+[GOOD] (define-fun s12 () Int (- s4 s3))+[GOOD] (define-fun s13 () (Seq (SBVTuple2 String Int)) (seq.extract s0 s3 s12))+[GOOD] (define-fun s15 () Int (ite s10 s11 s14))+[GOOD] (define-fun s16 () Int (ite s5 s2 s15))+[GOOD] (define-fun s17 () Int (seq.len s13))+[GOOD] (define-fun s18 () Bool (not s10))+[GOOD] (define-fun s19 () Bool (and s6 s18))+[GOOD] (define-fun s20 () Bool (> s4 s17))+[GOOD] (define-fun s21 () Bool (=> s19 s20))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s21))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): length arg1 -> OK+[MEASURE] Passed (terminating): get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Expr ((as Val Expr) 0))+[GOOD] (define-fun s5 () Int 0)+[GOOD] (define-fun s8 () Int 100)+[GOOD] (define-fun s9 () Int 1)+[GOOD] (define-fun s12 () Int 200)+[GOOD] (define-fun s20 () (Seq (SBVTuple2 String Int)) (as seq.empty (Seq (SBVTuple2 String Int))))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; |get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| :: [(SString, SInteger)] -> SString -> SInteger [Recursive]+[GOOD] (define-fun-rec |get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| ((l2_s0 (Seq (SBVTuple2 String Int))) (l2_s1 String)) Int+                                                 (let ((l2_s3 0))+                                                 (let ((l2_s11 1))+                                                 (let ((l2_s2 (seq.len l2_s0)))+                                                 (let ((l2_s4 (= l2_s2 l2_s3)))+                                                 (let ((l2_s5 (not l2_s4)))+                                                 (let ((l2_s6 (seq.nth l2_s0 l2_s3)))+                                                 (let ((l2_s7 (proj_1_SBVTuple2 l2_s6)))+                                                 (let ((l2_s8 (= l2_s1 l2_s7)))+                                                 (let ((l2_s9 (and l2_s5 l2_s8)))+                                                 (let ((l2_s10 (proj_2_SBVTuple2 l2_s6)))+                                                 (let ((l2_s12 (- l2_s2 l2_s11)))+                                                 (let ((l2_s13 (seq.extract l2_s0 l2_s11 l2_s12)))+                                                 (let ((l2_s14 (|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| l2_s13 l2_s1)))+                                                 (let ((l2_s15 (ite l2_s9 l2_s10 l2_s14)))+                                                 (let ((l2_s16 (ite l2_s4 l2_s3 l2_s15)))+                                                 l2_s16))))))))))))))))+[GOOD] ; |eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| :: [(SString, SInteger)] -> Expr -> SInteger [Recursive] [Refers to: |get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|]+[GOOD] (define-fun-rec |eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| ((l1_s0 (Seq (SBVTuple2 String Int))) (l1_s1 Expr)) Int+                                 (let ((l1_s2 ((as is-Val Bool) l1_s1)))+                                 (let ((l1_s3 (getVal_1 l1_s1)))+                                 (let ((l1_s4 ((as is-Var Bool) l1_s1)))+                                 (let ((l1_s5 (getVar_1 l1_s1)))+                                 (let ((l1_s6 (|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| l1_s0 l1_s5)))+                                 (let ((l1_s7 ((as is-Add Bool) l1_s1)))+                                 (let ((l1_s8 (getAdd_1 l1_s1)))+                                 (let ((l1_s9 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s8)))+                                 (let ((l1_s10 (getAdd_2 l1_s1)))+                                 (let ((l1_s11 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s10)))+                                 (let ((l1_s12 (+ l1_s9 l1_s11)))+                                 (let ((l1_s13 ((as is-Mul Bool) l1_s1)))+                                 (let ((l1_s14 (getMul_1 l1_s1)))+                                 (let ((l1_s15 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s14)))+                                 (let ((l1_s16 (getMul_2 l1_s1)))+                                 (let ((l1_s17 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s16)))+                                 (let ((l1_s18 (* l1_s15 l1_s17)))+                                 (let ((l1_s19 (getLet_1 l1_s1)))+                                 (let ((l1_s20 (getLet_2 l1_s1)))+                                 (let ((l1_s21 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s20)))+                                 (let ((l1_s22 ((as mkSBVTuple2 (SBVTuple2 String Int)) l1_s19 l1_s21)))+                                 (let ((l1_s23 (seq.unit l1_s22)))+                                 (let ((l1_s24 (seq.++ l1_s23 l1_s0)))+                                 (let ((l1_s25 (getLet_3 l1_s1)))+                                 (let ((l1_s26 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s24 l1_s25)))+                                 (let ((l1_s27 (ite l1_s13 l1_s18 l1_s26)))+                                 (let ((l1_s28 (ite l1_s7 l1_s12 l1_s27)))+                                 (let ((l1_s29 (ite l1_s4 l1_s6 l1_s28)))+                                 (let ((l1_s30 (ite l1_s2 l1_s3 l1_s29)))+                                 l1_s30))))))))))))))))))))))))))))))+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s3 () Bool ((as is-Val Bool) s0))+[GOOD] (define-fun s4 () Int (getVal_1 s0))+[GOOD] (define-fun s6 () Bool (= s4 s5))+[GOOD] (define-fun s7 () Bool (and s3 s6))+[GOOD] (define-fun s10 () Bool (= s4 s9))+[GOOD] (define-fun s11 () Bool (and s3 s10))+[GOOD] (define-fun s13 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s14 () Expr (getAdd_1 s0))+[GOOD] (define-fun s15 () Bool ((as is-Val Bool) s14))+[GOOD] (define-fun s16 () Int (getVal_1 s14))+[GOOD] (define-fun s17 () Bool (= s5 s16))+[GOOD] (define-fun s18 () Bool (and s15 s17))+[GOOD] (define-fun s19 () Bool (and s13 s18))+[GOOD] (define-fun s21 () Expr (getAdd_2 s0))+[GOOD] (define-fun s22 () Int (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| s20 s21))+[GOOD] (define-fun s23 () Int (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| s20 s0))+[GOOD] (define-fun s24 () Int (ite s19 s22 s23))+[GOOD] (define-fun s25 () Int (ite s11 s12 s24))+[GOOD] (define-fun s26 () Int (ite s7 s8 s25))+[GOOD] (define-fun s27 () Bool (distinct s8 s26))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s27)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_lit00c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_lit01.gold view
@@ -0,0 +1,240 @@+[MEASURE] Verifying termination measures for: eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer), eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer), get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)+[MEASURE] Checking: eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): not in a multi-member cycle, skipping mutual check+[MEASURE] Passed (terminating): eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)+[MEASURE] Checking: eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): barified = "|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|"+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): Uninterpreted ops in DAG: [("|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2)]+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): recursive calls found = 6+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): trying sbv.dt.size.Expr arg2+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): sbv.dt.size.Expr arg2 -> OK (structural recursion)+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): sbv.dt.size.Expr arg2 -> OK+[MEASURE] Passed (terminating): eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)+[MEASURE] Checking: get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): barified = "|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|"+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): Uninterpreted ops in DAG: [("|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|",2)]+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): recursive calls found = 1+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): trying length arg1+[MEASURE] replayDAG {get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)}: replaying 13 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq (SBVTuple2 String Int))) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () String) ; tracks user variable "arg1"+[GOOD] (declare-fun s14 () Int) ; tracks user variable "__internal_sbv_s14"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Int (seq.len s0))+[GOOD] (define-fun s5 () Bool (= s2 s4))+[GOOD] (define-fun s6 () Bool (not s5))+[GOOD] (define-fun s7 () (SBVTuple2 String Int) (seq.nth s0 s2))+[GOOD] (define-fun s8 () String (proj_1_SBVTuple2 s7))+[GOOD] (define-fun s9 () Bool (= s1 s8))+[GOOD] (define-fun s10 () Bool (and s6 s9))+[GOOD] (define-fun s11 () Int (proj_2_SBVTuple2 s7))+[GOOD] (define-fun s12 () Int (- s4 s3))+[GOOD] (define-fun s13 () (Seq (SBVTuple2 String Int)) (seq.extract s0 s3 s12))+[GOOD] (define-fun s15 () Int (ite s10 s11 s14))+[GOOD] (define-fun s16 () Int (ite s5 s2 s15))+[GOOD] (define-fun s17 () Bool (>= s4 s2))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s17))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)}: replaying 13 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq (SBVTuple2 String Int))) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () String) ; tracks user variable "arg1"+[GOOD] (declare-fun s14 () Int) ; tracks user variable "__internal_sbv_s14"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Int (seq.len s0))+[GOOD] (define-fun s5 () Bool (= s2 s4))+[GOOD] (define-fun s6 () Bool (not s5))+[GOOD] (define-fun s7 () (SBVTuple2 String Int) (seq.nth s0 s2))+[GOOD] (define-fun s8 () String (proj_1_SBVTuple2 s7))+[GOOD] (define-fun s9 () Bool (= s1 s8))+[GOOD] (define-fun s10 () Bool (and s6 s9))+[GOOD] (define-fun s11 () Int (proj_2_SBVTuple2 s7))+[GOOD] (define-fun s12 () Int (- s4 s3))+[GOOD] (define-fun s13 () (Seq (SBVTuple2 String Int)) (seq.extract s0 s3 s12))+[GOOD] (define-fun s15 () Int (ite s10 s11 s14))+[GOOD] (define-fun s16 () Int (ite s5 s2 s15))+[GOOD] (define-fun s17 () Int (seq.len s13))+[GOOD] (define-fun s18 () Bool (not s10))+[GOOD] (define-fun s19 () Bool (and s6 s18))+[GOOD] (define-fun s20 () Bool (> s4 s17))+[GOOD] (define-fun s21 () Bool (=> s19 s20))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s21))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): length arg1 -> OK+[MEASURE] Passed (terminating): get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Expr ((as Val Expr) 1))+[GOOD] (define-fun s5 () Int 0)+[GOOD] (define-fun s8 () Int 100)+[GOOD] (define-fun s9 () Int 1)+[GOOD] (define-fun s12 () Int 200)+[GOOD] (define-fun s20 () (Seq (SBVTuple2 String Int)) (as seq.empty (Seq (SBVTuple2 String Int))))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; |get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| :: [(SString, SInteger)] -> SString -> SInteger [Recursive]+[GOOD] (define-fun-rec |get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| ((l2_s0 (Seq (SBVTuple2 String Int))) (l2_s1 String)) Int+                                                 (let ((l2_s3 0))+                                                 (let ((l2_s11 1))+                                                 (let ((l2_s2 (seq.len l2_s0)))+                                                 (let ((l2_s4 (= l2_s2 l2_s3)))+                                                 (let ((l2_s5 (not l2_s4)))+                                                 (let ((l2_s6 (seq.nth l2_s0 l2_s3)))+                                                 (let ((l2_s7 (proj_1_SBVTuple2 l2_s6)))+                                                 (let ((l2_s8 (= l2_s1 l2_s7)))+                                                 (let ((l2_s9 (and l2_s5 l2_s8)))+                                                 (let ((l2_s10 (proj_2_SBVTuple2 l2_s6)))+                                                 (let ((l2_s12 (- l2_s2 l2_s11)))+                                                 (let ((l2_s13 (seq.extract l2_s0 l2_s11 l2_s12)))+                                                 (let ((l2_s14 (|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| l2_s13 l2_s1)))+                                                 (let ((l2_s15 (ite l2_s9 l2_s10 l2_s14)))+                                                 (let ((l2_s16 (ite l2_s4 l2_s3 l2_s15)))+                                                 l2_s16))))))))))))))))+[GOOD] ; |eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| :: [(SString, SInteger)] -> Expr -> SInteger [Recursive] [Refers to: |get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|]+[GOOD] (define-fun-rec |eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| ((l1_s0 (Seq (SBVTuple2 String Int))) (l1_s1 Expr)) Int+                                 (let ((l1_s2 ((as is-Val Bool) l1_s1)))+                                 (let ((l1_s3 (getVal_1 l1_s1)))+                                 (let ((l1_s4 ((as is-Var Bool) l1_s1)))+                                 (let ((l1_s5 (getVar_1 l1_s1)))+                                 (let ((l1_s6 (|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| l1_s0 l1_s5)))+                                 (let ((l1_s7 ((as is-Add Bool) l1_s1)))+                                 (let ((l1_s8 (getAdd_1 l1_s1)))+                                 (let ((l1_s9 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s8)))+                                 (let ((l1_s10 (getAdd_2 l1_s1)))+                                 (let ((l1_s11 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s10)))+                                 (let ((l1_s12 (+ l1_s9 l1_s11)))+                                 (let ((l1_s13 ((as is-Mul Bool) l1_s1)))+                                 (let ((l1_s14 (getMul_1 l1_s1)))+                                 (let ((l1_s15 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s14)))+                                 (let ((l1_s16 (getMul_2 l1_s1)))+                                 (let ((l1_s17 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s16)))+                                 (let ((l1_s18 (* l1_s15 l1_s17)))+                                 (let ((l1_s19 (getLet_1 l1_s1)))+                                 (let ((l1_s20 (getLet_2 l1_s1)))+                                 (let ((l1_s21 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s20)))+                                 (let ((l1_s22 ((as mkSBVTuple2 (SBVTuple2 String Int)) l1_s19 l1_s21)))+                                 (let ((l1_s23 (seq.unit l1_s22)))+                                 (let ((l1_s24 (seq.++ l1_s23 l1_s0)))+                                 (let ((l1_s25 (getLet_3 l1_s1)))+                                 (let ((l1_s26 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s24 l1_s25)))+                                 (let ((l1_s27 (ite l1_s13 l1_s18 l1_s26)))+                                 (let ((l1_s28 (ite l1_s7 l1_s12 l1_s27)))+                                 (let ((l1_s29 (ite l1_s4 l1_s6 l1_s28)))+                                 (let ((l1_s30 (ite l1_s2 l1_s3 l1_s29)))+                                 l1_s30))))))))))))))))))))))))))))))+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s3 () Bool ((as is-Val Bool) s0))+[GOOD] (define-fun s4 () Int (getVal_1 s0))+[GOOD] (define-fun s6 () Bool (= s4 s5))+[GOOD] (define-fun s7 () Bool (and s3 s6))+[GOOD] (define-fun s10 () Bool (= s4 s9))+[GOOD] (define-fun s11 () Bool (and s3 s10))+[GOOD] (define-fun s13 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s14 () Expr (getAdd_1 s0))+[GOOD] (define-fun s15 () Bool ((as is-Val Bool) s14))+[GOOD] (define-fun s16 () Int (getVal_1 s14))+[GOOD] (define-fun s17 () Bool (= s5 s16))+[GOOD] (define-fun s18 () Bool (and s15 s17))+[GOOD] (define-fun s19 () Bool (and s13 s18))+[GOOD] (define-fun s21 () Expr (getAdd_2 s0))+[GOOD] (define-fun s22 () Int (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| s20 s21))+[GOOD] (define-fun s23 () Int (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| s20 s0))+[GOOD] (define-fun s24 () Int (ite s19 s22 s23))+[GOOD] (define-fun s25 () Int (ite s11 s12 s24))+[GOOD] (define-fun s26 () Int (ite s7 s8 s25))+[GOOD] (define-fun s27 () Bool (distinct s12 s26))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s27)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_lit01c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_lit02.gold view
@@ -0,0 +1,241 @@+[MEASURE] Verifying termination measures for: eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer), eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer), get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)+[MEASURE] Checking: eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): not in a multi-member cycle, skipping mutual check+[MEASURE] Passed (terminating): eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)+[MEASURE] Checking: eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): barified = "|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|"+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): Uninterpreted ops in DAG: [("|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2)]+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): recursive calls found = 6+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): trying sbv.dt.size.Expr arg2+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): sbv.dt.size.Expr arg2 -> OK (structural recursion)+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): sbv.dt.size.Expr arg2 -> OK+[MEASURE] Passed (terminating): eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)+[MEASURE] Checking: get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): barified = "|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|"+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): Uninterpreted ops in DAG: [("|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|",2)]+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): recursive calls found = 1+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): trying length arg1+[MEASURE] replayDAG {get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)}: replaying 13 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq (SBVTuple2 String Int))) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () String) ; tracks user variable "arg1"+[GOOD] (declare-fun s14 () Int) ; tracks user variable "__internal_sbv_s14"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Int (seq.len s0))+[GOOD] (define-fun s5 () Bool (= s2 s4))+[GOOD] (define-fun s6 () Bool (not s5))+[GOOD] (define-fun s7 () (SBVTuple2 String Int) (seq.nth s0 s2))+[GOOD] (define-fun s8 () String (proj_1_SBVTuple2 s7))+[GOOD] (define-fun s9 () Bool (= s1 s8))+[GOOD] (define-fun s10 () Bool (and s6 s9))+[GOOD] (define-fun s11 () Int (proj_2_SBVTuple2 s7))+[GOOD] (define-fun s12 () Int (- s4 s3))+[GOOD] (define-fun s13 () (Seq (SBVTuple2 String Int)) (seq.extract s0 s3 s12))+[GOOD] (define-fun s15 () Int (ite s10 s11 s14))+[GOOD] (define-fun s16 () Int (ite s5 s2 s15))+[GOOD] (define-fun s17 () Bool (>= s4 s2))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s17))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)}: replaying 13 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq (SBVTuple2 String Int))) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () String) ; tracks user variable "arg1"+[GOOD] (declare-fun s14 () Int) ; tracks user variable "__internal_sbv_s14"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Int (seq.len s0))+[GOOD] (define-fun s5 () Bool (= s2 s4))+[GOOD] (define-fun s6 () Bool (not s5))+[GOOD] (define-fun s7 () (SBVTuple2 String Int) (seq.nth s0 s2))+[GOOD] (define-fun s8 () String (proj_1_SBVTuple2 s7))+[GOOD] (define-fun s9 () Bool (= s1 s8))+[GOOD] (define-fun s10 () Bool (and s6 s9))+[GOOD] (define-fun s11 () Int (proj_2_SBVTuple2 s7))+[GOOD] (define-fun s12 () Int (- s4 s3))+[GOOD] (define-fun s13 () (Seq (SBVTuple2 String Int)) (seq.extract s0 s3 s12))+[GOOD] (define-fun s15 () Int (ite s10 s11 s14))+[GOOD] (define-fun s16 () Int (ite s5 s2 s15))+[GOOD] (define-fun s17 () Int (seq.len s13))+[GOOD] (define-fun s18 () Bool (not s10))+[GOOD] (define-fun s19 () Bool (and s6 s18))+[GOOD] (define-fun s20 () Bool (> s4 s17))+[GOOD] (define-fun s21 () Bool (=> s19 s20))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s21))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): length arg1 -> OK+[MEASURE] Passed (terminating): get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Expr ((as Val Expr) 2))+[GOOD] (define-fun s5 () Int 0)+[GOOD] (define-fun s8 () Int 100)+[GOOD] (define-fun s9 () Int 1)+[GOOD] (define-fun s12 () Int 200)+[GOOD] (define-fun s20 () (Seq (SBVTuple2 String Int)) (as seq.empty (Seq (SBVTuple2 String Int))))+[GOOD] (define-fun s27 () Int 2)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; |get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| :: [(SString, SInteger)] -> SString -> SInteger [Recursive]+[GOOD] (define-fun-rec |get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| ((l2_s0 (Seq (SBVTuple2 String Int))) (l2_s1 String)) Int+                                                 (let ((l2_s3 0))+                                                 (let ((l2_s11 1))+                                                 (let ((l2_s2 (seq.len l2_s0)))+                                                 (let ((l2_s4 (= l2_s2 l2_s3)))+                                                 (let ((l2_s5 (not l2_s4)))+                                                 (let ((l2_s6 (seq.nth l2_s0 l2_s3)))+                                                 (let ((l2_s7 (proj_1_SBVTuple2 l2_s6)))+                                                 (let ((l2_s8 (= l2_s1 l2_s7)))+                                                 (let ((l2_s9 (and l2_s5 l2_s8)))+                                                 (let ((l2_s10 (proj_2_SBVTuple2 l2_s6)))+                                                 (let ((l2_s12 (- l2_s2 l2_s11)))+                                                 (let ((l2_s13 (seq.extract l2_s0 l2_s11 l2_s12)))+                                                 (let ((l2_s14 (|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| l2_s13 l2_s1)))+                                                 (let ((l2_s15 (ite l2_s9 l2_s10 l2_s14)))+                                                 (let ((l2_s16 (ite l2_s4 l2_s3 l2_s15)))+                                                 l2_s16))))))))))))))))+[GOOD] ; |eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| :: [(SString, SInteger)] -> Expr -> SInteger [Recursive] [Refers to: |get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|]+[GOOD] (define-fun-rec |eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| ((l1_s0 (Seq (SBVTuple2 String Int))) (l1_s1 Expr)) Int+                                 (let ((l1_s2 ((as is-Val Bool) l1_s1)))+                                 (let ((l1_s3 (getVal_1 l1_s1)))+                                 (let ((l1_s4 ((as is-Var Bool) l1_s1)))+                                 (let ((l1_s5 (getVar_1 l1_s1)))+                                 (let ((l1_s6 (|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| l1_s0 l1_s5)))+                                 (let ((l1_s7 ((as is-Add Bool) l1_s1)))+                                 (let ((l1_s8 (getAdd_1 l1_s1)))+                                 (let ((l1_s9 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s8)))+                                 (let ((l1_s10 (getAdd_2 l1_s1)))+                                 (let ((l1_s11 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s10)))+                                 (let ((l1_s12 (+ l1_s9 l1_s11)))+                                 (let ((l1_s13 ((as is-Mul Bool) l1_s1)))+                                 (let ((l1_s14 (getMul_1 l1_s1)))+                                 (let ((l1_s15 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s14)))+                                 (let ((l1_s16 (getMul_2 l1_s1)))+                                 (let ((l1_s17 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s16)))+                                 (let ((l1_s18 (* l1_s15 l1_s17)))+                                 (let ((l1_s19 (getLet_1 l1_s1)))+                                 (let ((l1_s20 (getLet_2 l1_s1)))+                                 (let ((l1_s21 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s20)))+                                 (let ((l1_s22 ((as mkSBVTuple2 (SBVTuple2 String Int)) l1_s19 l1_s21)))+                                 (let ((l1_s23 (seq.unit l1_s22)))+                                 (let ((l1_s24 (seq.++ l1_s23 l1_s0)))+                                 (let ((l1_s25 (getLet_3 l1_s1)))+                                 (let ((l1_s26 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s24 l1_s25)))+                                 (let ((l1_s27 (ite l1_s13 l1_s18 l1_s26)))+                                 (let ((l1_s28 (ite l1_s7 l1_s12 l1_s27)))+                                 (let ((l1_s29 (ite l1_s4 l1_s6 l1_s28)))+                                 (let ((l1_s30 (ite l1_s2 l1_s3 l1_s29)))+                                 l1_s30))))))))))))))))))))))))))))))+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s3 () Bool ((as is-Val Bool) s0))+[GOOD] (define-fun s4 () Int (getVal_1 s0))+[GOOD] (define-fun s6 () Bool (= s4 s5))+[GOOD] (define-fun s7 () Bool (and s3 s6))+[GOOD] (define-fun s10 () Bool (= s4 s9))+[GOOD] (define-fun s11 () Bool (and s3 s10))+[GOOD] (define-fun s13 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s14 () Expr (getAdd_1 s0))+[GOOD] (define-fun s15 () Bool ((as is-Val Bool) s14))+[GOOD] (define-fun s16 () Int (getVal_1 s14))+[GOOD] (define-fun s17 () Bool (= s5 s16))+[GOOD] (define-fun s18 () Bool (and s15 s17))+[GOOD] (define-fun s19 () Bool (and s13 s18))+[GOOD] (define-fun s21 () Expr (getAdd_2 s0))+[GOOD] (define-fun s22 () Int (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| s20 s21))+[GOOD] (define-fun s23 () Int (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| s20 s0))+[GOOD] (define-fun s24 () Int (ite s19 s22 s23))+[GOOD] (define-fun s25 () Int (ite s11 s12 s24))+[GOOD] (define-fun s26 () Int (ite s7 s8 s25))+[GOOD] (define-fun s28 () Bool (distinct s26 s27))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s28)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_lit02c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_lit03.gold view
@@ -0,0 +1,241 @@+[MEASURE] Verifying termination measures for: eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer), eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer), get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)+[MEASURE] Checking: eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): not in a multi-member cycle, skipping mutual check+[MEASURE] Passed (terminating): eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)+[MEASURE] Checking: eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): barified = "|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|"+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): Uninterpreted ops in DAG: [("|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2)]+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): recursive calls found = 6+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): trying sbv.dt.size.Expr arg2+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): sbv.dt.size.Expr arg2 -> OK (structural recursion)+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): sbv.dt.size.Expr arg2 -> OK+[MEASURE] Passed (terminating): eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)+[MEASURE] Checking: get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): barified = "|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|"+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): Uninterpreted ops in DAG: [("|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|",2)]+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): recursive calls found = 1+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): trying length arg1+[MEASURE] replayDAG {get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)}: replaying 13 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq (SBVTuple2 String Int))) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () String) ; tracks user variable "arg1"+[GOOD] (declare-fun s14 () Int) ; tracks user variable "__internal_sbv_s14"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Int (seq.len s0))+[GOOD] (define-fun s5 () Bool (= s2 s4))+[GOOD] (define-fun s6 () Bool (not s5))+[GOOD] (define-fun s7 () (SBVTuple2 String Int) (seq.nth s0 s2))+[GOOD] (define-fun s8 () String (proj_1_SBVTuple2 s7))+[GOOD] (define-fun s9 () Bool (= s1 s8))+[GOOD] (define-fun s10 () Bool (and s6 s9))+[GOOD] (define-fun s11 () Int (proj_2_SBVTuple2 s7))+[GOOD] (define-fun s12 () Int (- s4 s3))+[GOOD] (define-fun s13 () (Seq (SBVTuple2 String Int)) (seq.extract s0 s3 s12))+[GOOD] (define-fun s15 () Int (ite s10 s11 s14))+[GOOD] (define-fun s16 () Int (ite s5 s2 s15))+[GOOD] (define-fun s17 () Bool (>= s4 s2))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s17))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)}: replaying 13 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq (SBVTuple2 String Int))) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () String) ; tracks user variable "arg1"+[GOOD] (declare-fun s14 () Int) ; tracks user variable "__internal_sbv_s14"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Int (seq.len s0))+[GOOD] (define-fun s5 () Bool (= s2 s4))+[GOOD] (define-fun s6 () Bool (not s5))+[GOOD] (define-fun s7 () (SBVTuple2 String Int) (seq.nth s0 s2))+[GOOD] (define-fun s8 () String (proj_1_SBVTuple2 s7))+[GOOD] (define-fun s9 () Bool (= s1 s8))+[GOOD] (define-fun s10 () Bool (and s6 s9))+[GOOD] (define-fun s11 () Int (proj_2_SBVTuple2 s7))+[GOOD] (define-fun s12 () Int (- s4 s3))+[GOOD] (define-fun s13 () (Seq (SBVTuple2 String Int)) (seq.extract s0 s3 s12))+[GOOD] (define-fun s15 () Int (ite s10 s11 s14))+[GOOD] (define-fun s16 () Int (ite s5 s2 s15))+[GOOD] (define-fun s17 () Int (seq.len s13))+[GOOD] (define-fun s18 () Bool (not s10))+[GOOD] (define-fun s19 () Bool (and s6 s18))+[GOOD] (define-fun s20 () Bool (> s4 s17))+[GOOD] (define-fun s21 () Bool (=> s19 s20))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s21))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): length arg1 -> OK+[MEASURE] Passed (terminating): get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Expr ((as Add Expr) ((as Val Expr) 0) ((as Val Expr) 5)))+[GOOD] (define-fun s5 () Int 0)+[GOOD] (define-fun s8 () Int 100)+[GOOD] (define-fun s9 () Int 1)+[GOOD] (define-fun s12 () Int 200)+[GOOD] (define-fun s20 () (Seq (SBVTuple2 String Int)) (as seq.empty (Seq (SBVTuple2 String Int))))+[GOOD] (define-fun s27 () Int 5)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; |get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| :: [(SString, SInteger)] -> SString -> SInteger [Recursive]+[GOOD] (define-fun-rec |get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| ((l2_s0 (Seq (SBVTuple2 String Int))) (l2_s1 String)) Int+                                                 (let ((l2_s3 0))+                                                 (let ((l2_s11 1))+                                                 (let ((l2_s2 (seq.len l2_s0)))+                                                 (let ((l2_s4 (= l2_s2 l2_s3)))+                                                 (let ((l2_s5 (not l2_s4)))+                                                 (let ((l2_s6 (seq.nth l2_s0 l2_s3)))+                                                 (let ((l2_s7 (proj_1_SBVTuple2 l2_s6)))+                                                 (let ((l2_s8 (= l2_s1 l2_s7)))+                                                 (let ((l2_s9 (and l2_s5 l2_s8)))+                                                 (let ((l2_s10 (proj_2_SBVTuple2 l2_s6)))+                                                 (let ((l2_s12 (- l2_s2 l2_s11)))+                                                 (let ((l2_s13 (seq.extract l2_s0 l2_s11 l2_s12)))+                                                 (let ((l2_s14 (|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| l2_s13 l2_s1)))+                                                 (let ((l2_s15 (ite l2_s9 l2_s10 l2_s14)))+                                                 (let ((l2_s16 (ite l2_s4 l2_s3 l2_s15)))+                                                 l2_s16))))))))))))))))+[GOOD] ; |eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| :: [(SString, SInteger)] -> Expr -> SInteger [Recursive] [Refers to: |get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|]+[GOOD] (define-fun-rec |eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| ((l1_s0 (Seq (SBVTuple2 String Int))) (l1_s1 Expr)) Int+                                 (let ((l1_s2 ((as is-Val Bool) l1_s1)))+                                 (let ((l1_s3 (getVal_1 l1_s1)))+                                 (let ((l1_s4 ((as is-Var Bool) l1_s1)))+                                 (let ((l1_s5 (getVar_1 l1_s1)))+                                 (let ((l1_s6 (|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| l1_s0 l1_s5)))+                                 (let ((l1_s7 ((as is-Add Bool) l1_s1)))+                                 (let ((l1_s8 (getAdd_1 l1_s1)))+                                 (let ((l1_s9 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s8)))+                                 (let ((l1_s10 (getAdd_2 l1_s1)))+                                 (let ((l1_s11 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s10)))+                                 (let ((l1_s12 (+ l1_s9 l1_s11)))+                                 (let ((l1_s13 ((as is-Mul Bool) l1_s1)))+                                 (let ((l1_s14 (getMul_1 l1_s1)))+                                 (let ((l1_s15 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s14)))+                                 (let ((l1_s16 (getMul_2 l1_s1)))+                                 (let ((l1_s17 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s16)))+                                 (let ((l1_s18 (* l1_s15 l1_s17)))+                                 (let ((l1_s19 (getLet_1 l1_s1)))+                                 (let ((l1_s20 (getLet_2 l1_s1)))+                                 (let ((l1_s21 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s20)))+                                 (let ((l1_s22 ((as mkSBVTuple2 (SBVTuple2 String Int)) l1_s19 l1_s21)))+                                 (let ((l1_s23 (seq.unit l1_s22)))+                                 (let ((l1_s24 (seq.++ l1_s23 l1_s0)))+                                 (let ((l1_s25 (getLet_3 l1_s1)))+                                 (let ((l1_s26 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s24 l1_s25)))+                                 (let ((l1_s27 (ite l1_s13 l1_s18 l1_s26)))+                                 (let ((l1_s28 (ite l1_s7 l1_s12 l1_s27)))+                                 (let ((l1_s29 (ite l1_s4 l1_s6 l1_s28)))+                                 (let ((l1_s30 (ite l1_s2 l1_s3 l1_s29)))+                                 l1_s30))))))))))))))))))))))))))))))+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s3 () Bool ((as is-Val Bool) s0))+[GOOD] (define-fun s4 () Int (getVal_1 s0))+[GOOD] (define-fun s6 () Bool (= s4 s5))+[GOOD] (define-fun s7 () Bool (and s3 s6))+[GOOD] (define-fun s10 () Bool (= s4 s9))+[GOOD] (define-fun s11 () Bool (and s3 s10))+[GOOD] (define-fun s13 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s14 () Expr (getAdd_1 s0))+[GOOD] (define-fun s15 () Bool ((as is-Val Bool) s14))+[GOOD] (define-fun s16 () Int (getVal_1 s14))+[GOOD] (define-fun s17 () Bool (= s5 s16))+[GOOD] (define-fun s18 () Bool (and s15 s17))+[GOOD] (define-fun s19 () Bool (and s13 s18))+[GOOD] (define-fun s21 () Expr (getAdd_2 s0))+[GOOD] (define-fun s22 () Int (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| s20 s21))+[GOOD] (define-fun s23 () Int (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| s20 s0))+[GOOD] (define-fun s24 () Int (ite s19 s22 s23))+[GOOD] (define-fun s25 () Int (ite s11 s12 s24))+[GOOD] (define-fun s26 () Int (ite s7 s8 s25))+[GOOD] (define-fun s28 () Bool (distinct s26 s27))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s28)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_lit03c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_lit04.gold view
@@ -0,0 +1,241 @@+[MEASURE] Verifying termination measures for: eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer), eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer), get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)+[MEASURE] Checking: eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): not in a multi-member cycle, skipping mutual check+[MEASURE] Passed (terminating): eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)+[MEASURE] Checking: eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): barified = "|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|"+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): Uninterpreted ops in DAG: [("|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2)]+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): recursive calls found = 6+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): trying sbv.dt.size.Expr arg2+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): sbv.dt.size.Expr arg2 -> OK (structural recursion)+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): sbv.dt.size.Expr arg2 -> OK+[MEASURE] Passed (terminating): eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)+[MEASURE] Checking: get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): barified = "|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|"+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): Uninterpreted ops in DAG: [("|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|",2)]+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): recursive calls found = 1+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): trying length arg1+[MEASURE] replayDAG {get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)}: replaying 13 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq (SBVTuple2 String Int))) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () String) ; tracks user variable "arg1"+[GOOD] (declare-fun s14 () Int) ; tracks user variable "__internal_sbv_s14"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Int (seq.len s0))+[GOOD] (define-fun s5 () Bool (= s2 s4))+[GOOD] (define-fun s6 () Bool (not s5))+[GOOD] (define-fun s7 () (SBVTuple2 String Int) (seq.nth s0 s2))+[GOOD] (define-fun s8 () String (proj_1_SBVTuple2 s7))+[GOOD] (define-fun s9 () Bool (= s1 s8))+[GOOD] (define-fun s10 () Bool (and s6 s9))+[GOOD] (define-fun s11 () Int (proj_2_SBVTuple2 s7))+[GOOD] (define-fun s12 () Int (- s4 s3))+[GOOD] (define-fun s13 () (Seq (SBVTuple2 String Int)) (seq.extract s0 s3 s12))+[GOOD] (define-fun s15 () Int (ite s10 s11 s14))+[GOOD] (define-fun s16 () Int (ite s5 s2 s15))+[GOOD] (define-fun s17 () Bool (>= s4 s2))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s17))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)}: replaying 13 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq (SBVTuple2 String Int))) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () String) ; tracks user variable "arg1"+[GOOD] (declare-fun s14 () Int) ; tracks user variable "__internal_sbv_s14"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Int (seq.len s0))+[GOOD] (define-fun s5 () Bool (= s2 s4))+[GOOD] (define-fun s6 () Bool (not s5))+[GOOD] (define-fun s7 () (SBVTuple2 String Int) (seq.nth s0 s2))+[GOOD] (define-fun s8 () String (proj_1_SBVTuple2 s7))+[GOOD] (define-fun s9 () Bool (= s1 s8))+[GOOD] (define-fun s10 () Bool (and s6 s9))+[GOOD] (define-fun s11 () Int (proj_2_SBVTuple2 s7))+[GOOD] (define-fun s12 () Int (- s4 s3))+[GOOD] (define-fun s13 () (Seq (SBVTuple2 String Int)) (seq.extract s0 s3 s12))+[GOOD] (define-fun s15 () Int (ite s10 s11 s14))+[GOOD] (define-fun s16 () Int (ite s5 s2 s15))+[GOOD] (define-fun s17 () Int (seq.len s13))+[GOOD] (define-fun s18 () Bool (not s10))+[GOOD] (define-fun s19 () Bool (and s6 s18))+[GOOD] (define-fun s20 () Bool (> s4 s17))+[GOOD] (define-fun s21 () Bool (=> s19 s20))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s21))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): length arg1 -> OK+[MEASURE] Passed (terminating): get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Expr ((as Add Expr) ((as Val Expr) 1) ((as Val Expr) 5)))+[GOOD] (define-fun s5 () Int 0)+[GOOD] (define-fun s8 () Int 100)+[GOOD] (define-fun s9 () Int 1)+[GOOD] (define-fun s12 () Int 200)+[GOOD] (define-fun s20 () (Seq (SBVTuple2 String Int)) (as seq.empty (Seq (SBVTuple2 String Int))))+[GOOD] (define-fun s27 () Int 6)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; |get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| :: [(SString, SInteger)] -> SString -> SInteger [Recursive]+[GOOD] (define-fun-rec |get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| ((l2_s0 (Seq (SBVTuple2 String Int))) (l2_s1 String)) Int+                                                 (let ((l2_s3 0))+                                                 (let ((l2_s11 1))+                                                 (let ((l2_s2 (seq.len l2_s0)))+                                                 (let ((l2_s4 (= l2_s2 l2_s3)))+                                                 (let ((l2_s5 (not l2_s4)))+                                                 (let ((l2_s6 (seq.nth l2_s0 l2_s3)))+                                                 (let ((l2_s7 (proj_1_SBVTuple2 l2_s6)))+                                                 (let ((l2_s8 (= l2_s1 l2_s7)))+                                                 (let ((l2_s9 (and l2_s5 l2_s8)))+                                                 (let ((l2_s10 (proj_2_SBVTuple2 l2_s6)))+                                                 (let ((l2_s12 (- l2_s2 l2_s11)))+                                                 (let ((l2_s13 (seq.extract l2_s0 l2_s11 l2_s12)))+                                                 (let ((l2_s14 (|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| l2_s13 l2_s1)))+                                                 (let ((l2_s15 (ite l2_s9 l2_s10 l2_s14)))+                                                 (let ((l2_s16 (ite l2_s4 l2_s3 l2_s15)))+                                                 l2_s16))))))))))))))))+[GOOD] ; |eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| :: [(SString, SInteger)] -> Expr -> SInteger [Recursive] [Refers to: |get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|]+[GOOD] (define-fun-rec |eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| ((l1_s0 (Seq (SBVTuple2 String Int))) (l1_s1 Expr)) Int+                                 (let ((l1_s2 ((as is-Val Bool) l1_s1)))+                                 (let ((l1_s3 (getVal_1 l1_s1)))+                                 (let ((l1_s4 ((as is-Var Bool) l1_s1)))+                                 (let ((l1_s5 (getVar_1 l1_s1)))+                                 (let ((l1_s6 (|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| l1_s0 l1_s5)))+                                 (let ((l1_s7 ((as is-Add Bool) l1_s1)))+                                 (let ((l1_s8 (getAdd_1 l1_s1)))+                                 (let ((l1_s9 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s8)))+                                 (let ((l1_s10 (getAdd_2 l1_s1)))+                                 (let ((l1_s11 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s10)))+                                 (let ((l1_s12 (+ l1_s9 l1_s11)))+                                 (let ((l1_s13 ((as is-Mul Bool) l1_s1)))+                                 (let ((l1_s14 (getMul_1 l1_s1)))+                                 (let ((l1_s15 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s14)))+                                 (let ((l1_s16 (getMul_2 l1_s1)))+                                 (let ((l1_s17 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s16)))+                                 (let ((l1_s18 (* l1_s15 l1_s17)))+                                 (let ((l1_s19 (getLet_1 l1_s1)))+                                 (let ((l1_s20 (getLet_2 l1_s1)))+                                 (let ((l1_s21 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s20)))+                                 (let ((l1_s22 ((as mkSBVTuple2 (SBVTuple2 String Int)) l1_s19 l1_s21)))+                                 (let ((l1_s23 (seq.unit l1_s22)))+                                 (let ((l1_s24 (seq.++ l1_s23 l1_s0)))+                                 (let ((l1_s25 (getLet_3 l1_s1)))+                                 (let ((l1_s26 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s24 l1_s25)))+                                 (let ((l1_s27 (ite l1_s13 l1_s18 l1_s26)))+                                 (let ((l1_s28 (ite l1_s7 l1_s12 l1_s27)))+                                 (let ((l1_s29 (ite l1_s4 l1_s6 l1_s28)))+                                 (let ((l1_s30 (ite l1_s2 l1_s3 l1_s29)))+                                 l1_s30))))))))))))))))))))))))))))))+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s3 () Bool ((as is-Val Bool) s0))+[GOOD] (define-fun s4 () Int (getVal_1 s0))+[GOOD] (define-fun s6 () Bool (= s4 s5))+[GOOD] (define-fun s7 () Bool (and s3 s6))+[GOOD] (define-fun s10 () Bool (= s4 s9))+[GOOD] (define-fun s11 () Bool (and s3 s10))+[GOOD] (define-fun s13 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s14 () Expr (getAdd_1 s0))+[GOOD] (define-fun s15 () Bool ((as is-Val Bool) s14))+[GOOD] (define-fun s16 () Int (getVal_1 s14))+[GOOD] (define-fun s17 () Bool (= s5 s16))+[GOOD] (define-fun s18 () Bool (and s15 s17))+[GOOD] (define-fun s19 () Bool (and s13 s18))+[GOOD] (define-fun s21 () Expr (getAdd_2 s0))+[GOOD] (define-fun s22 () Int (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| s20 s21))+[GOOD] (define-fun s23 () Int (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| s20 s0))+[GOOD] (define-fun s24 () Int (ite s19 s22 s23))+[GOOD] (define-fun s25 () Int (ite s11 s12 s24))+[GOOD] (define-fun s26 () Int (ite s7 s8 s25))+[GOOD] (define-fun s28 () Bool (distinct s26 s27))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s28)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_lit04c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_lit05.gold view
@@ -0,0 +1,240 @@+[MEASURE] Verifying termination measures for: eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer), eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer), get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)+[MEASURE] Checking: eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): not in a multi-member cycle, skipping mutual check+[MEASURE] Passed (terminating): eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)+[MEASURE] Checking: eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): barified = "|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|"+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): Uninterpreted ops in DAG: [("|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2)]+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): recursive calls found = 6+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): trying sbv.dt.size.Expr arg2+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): sbv.dt.size.Expr arg2 -> OK (structural recursion)+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): sbv.dt.size.Expr arg2 -> OK+[MEASURE] Passed (terminating): eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)+[MEASURE] Checking: get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): barified = "|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|"+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): Uninterpreted ops in DAG: [("|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|",2)]+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): recursive calls found = 1+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): trying length arg1+[MEASURE] replayDAG {get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)}: replaying 13 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq (SBVTuple2 String Int))) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () String) ; tracks user variable "arg1"+[GOOD] (declare-fun s14 () Int) ; tracks user variable "__internal_sbv_s14"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Int (seq.len s0))+[GOOD] (define-fun s5 () Bool (= s2 s4))+[GOOD] (define-fun s6 () Bool (not s5))+[GOOD] (define-fun s7 () (SBVTuple2 String Int) (seq.nth s0 s2))+[GOOD] (define-fun s8 () String (proj_1_SBVTuple2 s7))+[GOOD] (define-fun s9 () Bool (= s1 s8))+[GOOD] (define-fun s10 () Bool (and s6 s9))+[GOOD] (define-fun s11 () Int (proj_2_SBVTuple2 s7))+[GOOD] (define-fun s12 () Int (- s4 s3))+[GOOD] (define-fun s13 () (Seq (SBVTuple2 String Int)) (seq.extract s0 s3 s12))+[GOOD] (define-fun s15 () Int (ite s10 s11 s14))+[GOOD] (define-fun s16 () Int (ite s5 s2 s15))+[GOOD] (define-fun s17 () Bool (>= s4 s2))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s17))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)}: replaying 13 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq (SBVTuple2 String Int))) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () String) ; tracks user variable "arg1"+[GOOD] (declare-fun s14 () Int) ; tracks user variable "__internal_sbv_s14"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Int (seq.len s0))+[GOOD] (define-fun s5 () Bool (= s2 s4))+[GOOD] (define-fun s6 () Bool (not s5))+[GOOD] (define-fun s7 () (SBVTuple2 String Int) (seq.nth s0 s2))+[GOOD] (define-fun s8 () String (proj_1_SBVTuple2 s7))+[GOOD] (define-fun s9 () Bool (= s1 s8))+[GOOD] (define-fun s10 () Bool (and s6 s9))+[GOOD] (define-fun s11 () Int (proj_2_SBVTuple2 s7))+[GOOD] (define-fun s12 () Int (- s4 s3))+[GOOD] (define-fun s13 () (Seq (SBVTuple2 String Int)) (seq.extract s0 s3 s12))+[GOOD] (define-fun s15 () Int (ite s10 s11 s14))+[GOOD] (define-fun s16 () Int (ite s5 s2 s15))+[GOOD] (define-fun s17 () Int (seq.len s13))+[GOOD] (define-fun s18 () Bool (not s10))+[GOOD] (define-fun s19 () Bool (and s6 s18))+[GOOD] (define-fun s20 () Bool (> s4 s17))+[GOOD] (define-fun s21 () Bool (=> s19 s20))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s21))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): length arg1 -> OK+[MEASURE] Passed (terminating): get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Expr ((as Var Expr) "x"))+[GOOD] (define-fun s5 () Int 0)+[GOOD] (define-fun s8 () Int 100)+[GOOD] (define-fun s9 () Int 1)+[GOOD] (define-fun s12 () Int 200)+[GOOD] (define-fun s20 () (Seq (SBVTuple2 String Int)) (as seq.empty (Seq (SBVTuple2 String Int))))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; |get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| :: [(SString, SInteger)] -> SString -> SInteger [Recursive]+[GOOD] (define-fun-rec |get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| ((l2_s0 (Seq (SBVTuple2 String Int))) (l2_s1 String)) Int+                                                 (let ((l2_s3 0))+                                                 (let ((l2_s11 1))+                                                 (let ((l2_s2 (seq.len l2_s0)))+                                                 (let ((l2_s4 (= l2_s2 l2_s3)))+                                                 (let ((l2_s5 (not l2_s4)))+                                                 (let ((l2_s6 (seq.nth l2_s0 l2_s3)))+                                                 (let ((l2_s7 (proj_1_SBVTuple2 l2_s6)))+                                                 (let ((l2_s8 (= l2_s1 l2_s7)))+                                                 (let ((l2_s9 (and l2_s5 l2_s8)))+                                                 (let ((l2_s10 (proj_2_SBVTuple2 l2_s6)))+                                                 (let ((l2_s12 (- l2_s2 l2_s11)))+                                                 (let ((l2_s13 (seq.extract l2_s0 l2_s11 l2_s12)))+                                                 (let ((l2_s14 (|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| l2_s13 l2_s1)))+                                                 (let ((l2_s15 (ite l2_s9 l2_s10 l2_s14)))+                                                 (let ((l2_s16 (ite l2_s4 l2_s3 l2_s15)))+                                                 l2_s16))))))))))))))))+[GOOD] ; |eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| :: [(SString, SInteger)] -> Expr -> SInteger [Recursive] [Refers to: |get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|]+[GOOD] (define-fun-rec |eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| ((l1_s0 (Seq (SBVTuple2 String Int))) (l1_s1 Expr)) Int+                                 (let ((l1_s2 ((as is-Val Bool) l1_s1)))+                                 (let ((l1_s3 (getVal_1 l1_s1)))+                                 (let ((l1_s4 ((as is-Var Bool) l1_s1)))+                                 (let ((l1_s5 (getVar_1 l1_s1)))+                                 (let ((l1_s6 (|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| l1_s0 l1_s5)))+                                 (let ((l1_s7 ((as is-Add Bool) l1_s1)))+                                 (let ((l1_s8 (getAdd_1 l1_s1)))+                                 (let ((l1_s9 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s8)))+                                 (let ((l1_s10 (getAdd_2 l1_s1)))+                                 (let ((l1_s11 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s10)))+                                 (let ((l1_s12 (+ l1_s9 l1_s11)))+                                 (let ((l1_s13 ((as is-Mul Bool) l1_s1)))+                                 (let ((l1_s14 (getMul_1 l1_s1)))+                                 (let ((l1_s15 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s14)))+                                 (let ((l1_s16 (getMul_2 l1_s1)))+                                 (let ((l1_s17 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s16)))+                                 (let ((l1_s18 (* l1_s15 l1_s17)))+                                 (let ((l1_s19 (getLet_1 l1_s1)))+                                 (let ((l1_s20 (getLet_2 l1_s1)))+                                 (let ((l1_s21 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s20)))+                                 (let ((l1_s22 ((as mkSBVTuple2 (SBVTuple2 String Int)) l1_s19 l1_s21)))+                                 (let ((l1_s23 (seq.unit l1_s22)))+                                 (let ((l1_s24 (seq.++ l1_s23 l1_s0)))+                                 (let ((l1_s25 (getLet_3 l1_s1)))+                                 (let ((l1_s26 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s24 l1_s25)))+                                 (let ((l1_s27 (ite l1_s13 l1_s18 l1_s26)))+                                 (let ((l1_s28 (ite l1_s7 l1_s12 l1_s27)))+                                 (let ((l1_s29 (ite l1_s4 l1_s6 l1_s28)))+                                 (let ((l1_s30 (ite l1_s2 l1_s3 l1_s29)))+                                 l1_s30))))))))))))))))))))))))))))))+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s3 () Bool ((as is-Val Bool) s0))+[GOOD] (define-fun s4 () Int (getVal_1 s0))+[GOOD] (define-fun s6 () Bool (= s4 s5))+[GOOD] (define-fun s7 () Bool (and s3 s6))+[GOOD] (define-fun s10 () Bool (= s4 s9))+[GOOD] (define-fun s11 () Bool (and s3 s10))+[GOOD] (define-fun s13 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s14 () Expr (getAdd_1 s0))+[GOOD] (define-fun s15 () Bool ((as is-Val Bool) s14))+[GOOD] (define-fun s16 () Int (getVal_1 s14))+[GOOD] (define-fun s17 () Bool (= s5 s16))+[GOOD] (define-fun s18 () Bool (and s15 s17))+[GOOD] (define-fun s19 () Bool (and s13 s18))+[GOOD] (define-fun s21 () Expr (getAdd_2 s0))+[GOOD] (define-fun s22 () Int (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| s20 s21))+[GOOD] (define-fun s23 () Int (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| s20 s0))+[GOOD] (define-fun s24 () Int (ite s19 s22 s23))+[GOOD] (define-fun s25 () Int (ite s11 s12 s24))+[GOOD] (define-fun s26 () Int (ite s7 s8 s25))+[GOOD] (define-fun s27 () Bool (distinct s5 s26))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s27)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_lit05c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_mr00.gold view
@@ -0,0 +1,69 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (par (var val) (+           (Con (getCon_1 val))+           (Var (getVar_1 var))+           (Add (getAdd_1 (Expr var val)) (getAdd_2 (Expr var val)))+           (Mul (getMul_1 (Expr var val)) (getMul_2 (Expr var val)))+       )))+[GOOD] ; User defined ADT: Stmt+[GOOD] (declare-datatype Stmt (par (var val) (+           (Assign (getAssign_1 var) (getAssign_2 (Expr var val)))+           (Seq (getSeq_1 (Stmt var val)) (getSeq_2 (Stmt var val)))+       )))+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Stmt String Int)) ; tracks user variable "p"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s1 () Bool ((as is-Seq Bool) s0))+[GOOD] (define-fun s2 () (Stmt String Int) (getSeq_2 s0))+[GOOD] (define-fun s3 () Bool ((as is-Seq Bool) s2))+[GOOD] (define-fun s4 () (Stmt String Int) (getSeq_2 s2))+[GOOD] (define-fun s5 () Bool ((as is-Seq Bool) s4))+[GOOD] (define-fun s6 () (Stmt String Int) (getSeq_2 s4))+[GOOD] (define-fun s7 () Bool ((as is-Assign Bool) s6))+[GOOD] (define-fun s8 () (Expr String Int) (getAssign_2 s6))+[GOOD] (define-fun s9 () Bool ((as is-Add Bool) s8))+[GOOD] (define-fun s10 () (Expr String Int) (getAdd_1 s8))+[GOOD] (define-fun s11 () Bool ((as is-Var Bool) s10))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s1)+[GOOD] (assert s3)+[GOOD] (assert s5)+[GOOD] (assert s7)+[GOOD] (assert s9)+[GOOD] (assert s11)+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 (Seq (Assign "!3!" (Var "!6!"))+            (Seq (Assign "!5!" (Var "!8!"))+                 (Seq (Assign "!4!" (Var "!7!"))+                      (Assign "!0!" (Add (Var "!1!") (Var "!2!"))))))))++Got:+!3! := !6!;+!5! := !8!;+!4! := !7!;+!0! := (!1! + !2!)+DONE+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_mr01.gold view
@@ -0,0 +1,73 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Maybe+[GOOD] (declare-datatype Maybe (par (a) (+           (Nothing)+           (Just (getJust_1 a))+       )))+[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (par (var val) (+           (Con (getCon_1 val))+           (Var (getVar_1 var))+           (Add (getAdd_1 (Expr var val)) (getAdd_2 (Expr var val)))+           (Mul (getMul_1 (Expr var val)) (getMul_2 (Expr var val)))+       )))+[GOOD] ; User defined ADT: Stmt+[GOOD] (declare-datatype Stmt (par (var val) (+           (Assign (getAssign_1 var) (getAssign_2 (Expr var val)))+           (Seq (getSeq_1 (Stmt var val)) (getSeq_2 (Stmt var val)))+       )))+[GOOD] ; User defined ADT: Either+[GOOD] (declare-datatype Either (par (a b) (+           (Left (getLeft_1 a))+           (Right (getRight_1 b))+       )))+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Stmt String (Maybe (Either Int Bool)))) ; tracks user variable "p"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s1 () Bool ((as is-Assign Bool) s0))+[GOOD] (define-fun s2 () (Expr String (Maybe (Either Int Bool))) (getAssign_2 s0))+[GOOD] (define-fun s3 () Bool ((as is-Add Bool) s2))+[GOOD] (define-fun s4 () (Expr String (Maybe (Either Int Bool))) (getAdd_1 s2))+[GOOD] (define-fun s5 () Bool ((as is-Con Bool) s4))+[GOOD] (define-fun s6 () (Expr String (Maybe (Either Int Bool))) (getAdd_2 s2))+[GOOD] (define-fun s7 () Bool ((as is-Con Bool) s6))+[GOOD] (define-fun s8 () (Maybe (Either Int Bool)) (getCon_1 s4))+[GOOD] (define-fun s9 () Bool ((as is-Nothing Bool) s8))+[GOOD] (define-fun s10 () (Maybe (Either Int Bool)) (getCon_1 s6))+[GOOD] (define-fun s11 () Bool ((as is-Just Bool) s10))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s1)+[GOOD] (assert s3)+[GOOD] (assert s5)+[GOOD] (assert s7)+[GOOD] (assert s9)+[GOOD] (assert s11)+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 (Assign "!0!" (Add (Con Nothing) (Con (Just (Left 2)))))))++Got:+!0! := (Nothing + Just (Left 2))+DONE+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_mr02.gold view
@@ -0,0 +1,50 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: A+[GOOD] (declare-datatype A (par (a b) (+           (Aa (getAa_1 a))+           (Ab (getAb_1 b))+           (Aab (getAab_1 a) (getAab_2 b))+           (A2 (getA2_1 (A b String)))+           (A3 (getA3_1 (A b a)))+       )))+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (A Int Bool)) ; tracks user variable "p"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s1 () Bool ((as is-A2 Bool) s0))+[GOOD] (define-fun s2 () (A Bool String) (getA2_1 s0))+[GOOD] (define-fun s3 () Bool ((as is-A2 Bool) s2))+[GOOD] (define-fun s4 () (A String String) (getA2_1 s2))+[GOOD] (define-fun s5 () Bool ((as is-Aa Bool) s4))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s1)+[GOOD] (assert s3)+[GOOD] (assert s5)+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 (A2 ((as A2 (A Bool String)) (Aa "!0!")))))++Got:+A2 {a2 = A2 {a2 = Aa {aa = "!0!"}}}+DONE+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_mr03.gold view
@@ -0,0 +1,47 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: A+[GOOD] (declare-datatype A (par (a b) (+           (Aa (getAa_1 a))+           (Ab (getAb_1 b))+           (Aab (getAab_1 a) (getAab_2 b))+           (A2 (getA2_1 (A b String)))+           (A3 (getA3_1 (A b a)))+       )))+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (A Int Bool)) ; tracks user variable "p"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s1 () Bool ((as is-A3 Bool) s0))+[GOOD] (define-fun s2 () (A Bool Int) (getA3_1 s0))+[GOOD] (define-fun s3 () Bool ((as is-Ab Bool) s2))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s1)+[GOOD] (assert s3)+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 (A3 (Ab 2))))++Got:+A3 {a3 = Ab {ab = 2}}+DONE+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_mr04.gold view
@@ -0,0 +1,51 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: A+[GOOD] (declare-datatype A (par (a b) (+           (Aa (getAa_1 a))+           (Ab (getAb_1 b))+           (Aab (getAab_1 a) (getAab_2 b))+           (A2 (getA2_1 (A b String)))+           (A3 (getA3_1 (A b a)))+       )))+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (A Int (A (_ FloatingPoint  8 24) Bool))) ; tracks user variable "p"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s1 () Bool ((as is-A2 Bool) s0))+[GOOD] (define-fun s2 () (A (A (_ FloatingPoint  8 24) Bool) String) (getA2_1 s0))+[GOOD] (define-fun s3 () Bool ((as is-A3 Bool) s2))+[GOOD] (define-fun s4 () (A String (A (_ FloatingPoint  8 24) Bool)) (getA3_1 s2))+[GOOD] (define-fun s5 () Bool ((as is-Aab Bool) s4))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s1)+[GOOD] (assert s3)+[GOOD] (assert s5)+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 ((as A2 (A Int (A (_ FloatingPoint 8 24) Bool))) (A3 (Aab "!0!"+                    (Aab (_ +zero 8 24) false))))))++Got:+A2 {a2 = A3 {a3 = Aab {aba = "!0!", abb = Aab {aba = 0.0, abb = False}}}}+DONE+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested00.gold view
@@ -0,0 +1,80 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Expr ((as Add Expr) ((as Val Expr) 0) ((as Val Expr) 5)))+[GOOD] (define-fun s7 () Int 0)+[GOOD] (define-fun s21 () Int 1)+[GOOD] (define-fun s34 () Expr ((as Val Expr) 0))+[GOOD] (define-fun s40 () Expr ((as Val Expr) 5))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s3 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s4 () Expr (getAdd_1 s0))+[GOOD] (define-fun s5 () Bool ((as is-Val Bool) s4))+[GOOD] (define-fun s6 () Int (getVal_1 s4))+[GOOD] (define-fun s8 () Bool (= s6 s7))+[GOOD] (define-fun s9 () Bool (and s5 s8))+[GOOD] (define-fun s10 () Bool (and s3 s9))+[GOOD] (define-fun s11 () Expr (getAdd_2 s0))+[GOOD] (define-fun s12 () Bool ((as is-Val Bool) s11))+[GOOD] (define-fun s13 () Int (getVal_1 s11))+[GOOD] (define-fun s14 () Bool (= s7 s13))+[GOOD] (define-fun s15 () Bool (and s12 s14))+[GOOD] (define-fun s16 () Bool (and s3 s15))+[GOOD] (define-fun s17 () Bool ((as is-Mul Bool) s0))+[GOOD] (define-fun s18 () Expr (getMul_1 s0))+[GOOD] (define-fun s19 () Bool ((as is-Val Bool) s18))+[GOOD] (define-fun s20 () Int (getVal_1 s18))+[GOOD] (define-fun s22 () Bool (= s20 s21))+[GOOD] (define-fun s23 () Bool (and s19 s22))+[GOOD] (define-fun s24 () Bool (and s17 s23))+[GOOD] (define-fun s25 () Expr (getMul_2 s0))+[GOOD] (define-fun s26 () Bool ((as is-Val Bool) s25))+[GOOD] (define-fun s27 () Int (getVal_1 s25))+[GOOD] (define-fun s28 () Bool (= s21 s27))+[GOOD] (define-fun s29 () Bool (and s26 s28))+[GOOD] (define-fun s30 () Bool (and s17 s29))+[GOOD] (define-fun s31 () Bool (= s7 s20))+[GOOD] (define-fun s32 () Bool (and s19 s31))+[GOOD] (define-fun s33 () Bool (and s17 s32))+[GOOD] (define-fun s35 () Expr (ite s33 s34 s0))+[GOOD] (define-fun s36 () Expr (ite s30 s18 s35))+[GOOD] (define-fun s37 () Expr (ite s24 s25 s36))+[GOOD] (define-fun s38 () Expr (ite s16 s4 s37))+[GOOD] (define-fun s39 () Expr (ite s10 s11 s38))+[GOOD] (define-fun s41 () Bool (distinct s39 s40))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s41)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested00c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested01.gold view
@@ -0,0 +1,80 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Expr ((as Add Expr) ((as Val Expr) 7) ((as Val Expr) 0)))+[GOOD] (define-fun s7 () Int 0)+[GOOD] (define-fun s21 () Int 1)+[GOOD] (define-fun s34 () Expr ((as Val Expr) 0))+[GOOD] (define-fun s40 () Expr ((as Val Expr) 7))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s3 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s4 () Expr (getAdd_1 s0))+[GOOD] (define-fun s5 () Bool ((as is-Val Bool) s4))+[GOOD] (define-fun s6 () Int (getVal_1 s4))+[GOOD] (define-fun s8 () Bool (= s6 s7))+[GOOD] (define-fun s9 () Bool (and s5 s8))+[GOOD] (define-fun s10 () Bool (and s3 s9))+[GOOD] (define-fun s11 () Expr (getAdd_2 s0))+[GOOD] (define-fun s12 () Bool ((as is-Val Bool) s11))+[GOOD] (define-fun s13 () Int (getVal_1 s11))+[GOOD] (define-fun s14 () Bool (= s7 s13))+[GOOD] (define-fun s15 () Bool (and s12 s14))+[GOOD] (define-fun s16 () Bool (and s3 s15))+[GOOD] (define-fun s17 () Bool ((as is-Mul Bool) s0))+[GOOD] (define-fun s18 () Expr (getMul_1 s0))+[GOOD] (define-fun s19 () Bool ((as is-Val Bool) s18))+[GOOD] (define-fun s20 () Int (getVal_1 s18))+[GOOD] (define-fun s22 () Bool (= s20 s21))+[GOOD] (define-fun s23 () Bool (and s19 s22))+[GOOD] (define-fun s24 () Bool (and s17 s23))+[GOOD] (define-fun s25 () Expr (getMul_2 s0))+[GOOD] (define-fun s26 () Bool ((as is-Val Bool) s25))+[GOOD] (define-fun s27 () Int (getVal_1 s25))+[GOOD] (define-fun s28 () Bool (= s21 s27))+[GOOD] (define-fun s29 () Bool (and s26 s28))+[GOOD] (define-fun s30 () Bool (and s17 s29))+[GOOD] (define-fun s31 () Bool (= s7 s20))+[GOOD] (define-fun s32 () Bool (and s19 s31))+[GOOD] (define-fun s33 () Bool (and s17 s32))+[GOOD] (define-fun s35 () Expr (ite s33 s34 s0))+[GOOD] (define-fun s36 () Expr (ite s30 s18 s35))+[GOOD] (define-fun s37 () Expr (ite s24 s25 s36))+[GOOD] (define-fun s38 () Expr (ite s16 s4 s37))+[GOOD] (define-fun s39 () Expr (ite s10 s11 s38))+[GOOD] (define-fun s41 () Bool (distinct s39 s40))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s41)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested01c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested02.gold view
@@ -0,0 +1,80 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Expr ((as Mul Expr) ((as Val Expr) 1) ((as Val Expr) 9)))+[GOOD] (define-fun s7 () Int 0)+[GOOD] (define-fun s21 () Int 1)+[GOOD] (define-fun s34 () Expr ((as Val Expr) 0))+[GOOD] (define-fun s40 () Expr ((as Val Expr) 9))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s3 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s4 () Expr (getAdd_1 s0))+[GOOD] (define-fun s5 () Bool ((as is-Val Bool) s4))+[GOOD] (define-fun s6 () Int (getVal_1 s4))+[GOOD] (define-fun s8 () Bool (= s6 s7))+[GOOD] (define-fun s9 () Bool (and s5 s8))+[GOOD] (define-fun s10 () Bool (and s3 s9))+[GOOD] (define-fun s11 () Expr (getAdd_2 s0))+[GOOD] (define-fun s12 () Bool ((as is-Val Bool) s11))+[GOOD] (define-fun s13 () Int (getVal_1 s11))+[GOOD] (define-fun s14 () Bool (= s7 s13))+[GOOD] (define-fun s15 () Bool (and s12 s14))+[GOOD] (define-fun s16 () Bool (and s3 s15))+[GOOD] (define-fun s17 () Bool ((as is-Mul Bool) s0))+[GOOD] (define-fun s18 () Expr (getMul_1 s0))+[GOOD] (define-fun s19 () Bool ((as is-Val Bool) s18))+[GOOD] (define-fun s20 () Int (getVal_1 s18))+[GOOD] (define-fun s22 () Bool (= s20 s21))+[GOOD] (define-fun s23 () Bool (and s19 s22))+[GOOD] (define-fun s24 () Bool (and s17 s23))+[GOOD] (define-fun s25 () Expr (getMul_2 s0))+[GOOD] (define-fun s26 () Bool ((as is-Val Bool) s25))+[GOOD] (define-fun s27 () Int (getVal_1 s25))+[GOOD] (define-fun s28 () Bool (= s21 s27))+[GOOD] (define-fun s29 () Bool (and s26 s28))+[GOOD] (define-fun s30 () Bool (and s17 s29))+[GOOD] (define-fun s31 () Bool (= s7 s20))+[GOOD] (define-fun s32 () Bool (and s19 s31))+[GOOD] (define-fun s33 () Bool (and s17 s32))+[GOOD] (define-fun s35 () Expr (ite s33 s34 s0))+[GOOD] (define-fun s36 () Expr (ite s30 s18 s35))+[GOOD] (define-fun s37 () Expr (ite s24 s25 s36))+[GOOD] (define-fun s38 () Expr (ite s16 s4 s37))+[GOOD] (define-fun s39 () Expr (ite s10 s11 s38))+[GOOD] (define-fun s41 () Bool (distinct s39 s40))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s41)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested02c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested03.gold view
@@ -0,0 +1,80 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Expr ((as Mul Expr) ((as Val Expr) 4) ((as Val Expr) 1)))+[GOOD] (define-fun s7 () Int 0)+[GOOD] (define-fun s21 () Int 1)+[GOOD] (define-fun s34 () Expr ((as Val Expr) 0))+[GOOD] (define-fun s40 () Expr ((as Val Expr) 4))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s3 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s4 () Expr (getAdd_1 s0))+[GOOD] (define-fun s5 () Bool ((as is-Val Bool) s4))+[GOOD] (define-fun s6 () Int (getVal_1 s4))+[GOOD] (define-fun s8 () Bool (= s6 s7))+[GOOD] (define-fun s9 () Bool (and s5 s8))+[GOOD] (define-fun s10 () Bool (and s3 s9))+[GOOD] (define-fun s11 () Expr (getAdd_2 s0))+[GOOD] (define-fun s12 () Bool ((as is-Val Bool) s11))+[GOOD] (define-fun s13 () Int (getVal_1 s11))+[GOOD] (define-fun s14 () Bool (= s7 s13))+[GOOD] (define-fun s15 () Bool (and s12 s14))+[GOOD] (define-fun s16 () Bool (and s3 s15))+[GOOD] (define-fun s17 () Bool ((as is-Mul Bool) s0))+[GOOD] (define-fun s18 () Expr (getMul_1 s0))+[GOOD] (define-fun s19 () Bool ((as is-Val Bool) s18))+[GOOD] (define-fun s20 () Int (getVal_1 s18))+[GOOD] (define-fun s22 () Bool (= s20 s21))+[GOOD] (define-fun s23 () Bool (and s19 s22))+[GOOD] (define-fun s24 () Bool (and s17 s23))+[GOOD] (define-fun s25 () Expr (getMul_2 s0))+[GOOD] (define-fun s26 () Bool ((as is-Val Bool) s25))+[GOOD] (define-fun s27 () Int (getVal_1 s25))+[GOOD] (define-fun s28 () Bool (= s21 s27))+[GOOD] (define-fun s29 () Bool (and s26 s28))+[GOOD] (define-fun s30 () Bool (and s17 s29))+[GOOD] (define-fun s31 () Bool (= s7 s20))+[GOOD] (define-fun s32 () Bool (and s19 s31))+[GOOD] (define-fun s33 () Bool (and s17 s32))+[GOOD] (define-fun s35 () Expr (ite s33 s34 s0))+[GOOD] (define-fun s36 () Expr (ite s30 s18 s35))+[GOOD] (define-fun s37 () Expr (ite s24 s25 s36))+[GOOD] (define-fun s38 () Expr (ite s16 s4 s37))+[GOOD] (define-fun s39 () Expr (ite s10 s11 s38))+[GOOD] (define-fun s41 () Bool (distinct s39 s40))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s41)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested03c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested04.gold view
@@ -0,0 +1,79 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Expr ((as Mul Expr) ((as Val Expr) 0) ((as Val Expr) 99)))+[GOOD] (define-fun s7 () Int 0)+[GOOD] (define-fun s21 () Int 1)+[GOOD] (define-fun s34 () Expr ((as Val Expr) 0))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s3 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s4 () Expr (getAdd_1 s0))+[GOOD] (define-fun s5 () Bool ((as is-Val Bool) s4))+[GOOD] (define-fun s6 () Int (getVal_1 s4))+[GOOD] (define-fun s8 () Bool (= s6 s7))+[GOOD] (define-fun s9 () Bool (and s5 s8))+[GOOD] (define-fun s10 () Bool (and s3 s9))+[GOOD] (define-fun s11 () Expr (getAdd_2 s0))+[GOOD] (define-fun s12 () Bool ((as is-Val Bool) s11))+[GOOD] (define-fun s13 () Int (getVal_1 s11))+[GOOD] (define-fun s14 () Bool (= s7 s13))+[GOOD] (define-fun s15 () Bool (and s12 s14))+[GOOD] (define-fun s16 () Bool (and s3 s15))+[GOOD] (define-fun s17 () Bool ((as is-Mul Bool) s0))+[GOOD] (define-fun s18 () Expr (getMul_1 s0))+[GOOD] (define-fun s19 () Bool ((as is-Val Bool) s18))+[GOOD] (define-fun s20 () Int (getVal_1 s18))+[GOOD] (define-fun s22 () Bool (= s20 s21))+[GOOD] (define-fun s23 () Bool (and s19 s22))+[GOOD] (define-fun s24 () Bool (and s17 s23))+[GOOD] (define-fun s25 () Expr (getMul_2 s0))+[GOOD] (define-fun s26 () Bool ((as is-Val Bool) s25))+[GOOD] (define-fun s27 () Int (getVal_1 s25))+[GOOD] (define-fun s28 () Bool (= s21 s27))+[GOOD] (define-fun s29 () Bool (and s26 s28))+[GOOD] (define-fun s30 () Bool (and s17 s29))+[GOOD] (define-fun s31 () Bool (= s7 s20))+[GOOD] (define-fun s32 () Bool (and s19 s31))+[GOOD] (define-fun s33 () Bool (and s17 s32))+[GOOD] (define-fun s35 () Expr (ite s33 s34 s0))+[GOOD] (define-fun s36 () Expr (ite s30 s18 s35))+[GOOD] (define-fun s37 () Expr (ite s24 s25 s36))+[GOOD] (define-fun s38 () Expr (ite s16 s4 s37))+[GOOD] (define-fun s39 () Expr (ite s10 s11 s38))+[GOOD] (define-fun s40 () Bool (distinct s34 s39))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s40)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested04c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested05.gold view
@@ -0,0 +1,79 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Expr ((as Add Expr) ((as Val Expr) 3) ((as Val Expr) 4)))+[GOOD] (define-fun s7 () Int 0)+[GOOD] (define-fun s21 () Int 1)+[GOOD] (define-fun s34 () Expr ((as Val Expr) 0))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s3 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s4 () Expr (getAdd_1 s0))+[GOOD] (define-fun s5 () Bool ((as is-Val Bool) s4))+[GOOD] (define-fun s6 () Int (getVal_1 s4))+[GOOD] (define-fun s8 () Bool (= s6 s7))+[GOOD] (define-fun s9 () Bool (and s5 s8))+[GOOD] (define-fun s10 () Bool (and s3 s9))+[GOOD] (define-fun s11 () Expr (getAdd_2 s0))+[GOOD] (define-fun s12 () Bool ((as is-Val Bool) s11))+[GOOD] (define-fun s13 () Int (getVal_1 s11))+[GOOD] (define-fun s14 () Bool (= s7 s13))+[GOOD] (define-fun s15 () Bool (and s12 s14))+[GOOD] (define-fun s16 () Bool (and s3 s15))+[GOOD] (define-fun s17 () Bool ((as is-Mul Bool) s0))+[GOOD] (define-fun s18 () Expr (getMul_1 s0))+[GOOD] (define-fun s19 () Bool ((as is-Val Bool) s18))+[GOOD] (define-fun s20 () Int (getVal_1 s18))+[GOOD] (define-fun s22 () Bool (= s20 s21))+[GOOD] (define-fun s23 () Bool (and s19 s22))+[GOOD] (define-fun s24 () Bool (and s17 s23))+[GOOD] (define-fun s25 () Expr (getMul_2 s0))+[GOOD] (define-fun s26 () Bool ((as is-Val Bool) s25))+[GOOD] (define-fun s27 () Int (getVal_1 s25))+[GOOD] (define-fun s28 () Bool (= s21 s27))+[GOOD] (define-fun s29 () Bool (and s26 s28))+[GOOD] (define-fun s30 () Bool (and s17 s29))+[GOOD] (define-fun s31 () Bool (= s7 s20))+[GOOD] (define-fun s32 () Bool (and s19 s31))+[GOOD] (define-fun s33 () Bool (and s17 s32))+[GOOD] (define-fun s35 () Expr (ite s33 s34 s0))+[GOOD] (define-fun s36 () Expr (ite s30 s18 s35))+[GOOD] (define-fun s37 () Expr (ite s24 s25 s36))+[GOOD] (define-fun s38 () Expr (ite s16 s4 s37))+[GOOD] (define-fun s39 () Expr (ite s10 s11 s38))+[GOOD] (define-fun s40 () Bool (distinct s1 s39))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s40)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested05c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested06.gold view
@@ -0,0 +1,79 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Expr ((as Add Expr) ((as Val Expr) 1) ((as Val Expr) 5)))+[GOOD] (define-fun s7 () Int 0)+[GOOD] (define-fun s21 () Int 1)+[GOOD] (define-fun s34 () Expr ((as Val Expr) 0))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s3 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s4 () Expr (getAdd_1 s0))+[GOOD] (define-fun s5 () Bool ((as is-Val Bool) s4))+[GOOD] (define-fun s6 () Int (getVal_1 s4))+[GOOD] (define-fun s8 () Bool (= s6 s7))+[GOOD] (define-fun s9 () Bool (and s5 s8))+[GOOD] (define-fun s10 () Bool (and s3 s9))+[GOOD] (define-fun s11 () Expr (getAdd_2 s0))+[GOOD] (define-fun s12 () Bool ((as is-Val Bool) s11))+[GOOD] (define-fun s13 () Int (getVal_1 s11))+[GOOD] (define-fun s14 () Bool (= s7 s13))+[GOOD] (define-fun s15 () Bool (and s12 s14))+[GOOD] (define-fun s16 () Bool (and s3 s15))+[GOOD] (define-fun s17 () Bool ((as is-Mul Bool) s0))+[GOOD] (define-fun s18 () Expr (getMul_1 s0))+[GOOD] (define-fun s19 () Bool ((as is-Val Bool) s18))+[GOOD] (define-fun s20 () Int (getVal_1 s18))+[GOOD] (define-fun s22 () Bool (= s20 s21))+[GOOD] (define-fun s23 () Bool (and s19 s22))+[GOOD] (define-fun s24 () Bool (and s17 s23))+[GOOD] (define-fun s25 () Expr (getMul_2 s0))+[GOOD] (define-fun s26 () Bool ((as is-Val Bool) s25))+[GOOD] (define-fun s27 () Int (getVal_1 s25))+[GOOD] (define-fun s28 () Bool (= s21 s27))+[GOOD] (define-fun s29 () Bool (and s26 s28))+[GOOD] (define-fun s30 () Bool (and s17 s29))+[GOOD] (define-fun s31 () Bool (= s7 s20))+[GOOD] (define-fun s32 () Bool (and s19 s31))+[GOOD] (define-fun s33 () Bool (and s17 s32))+[GOOD] (define-fun s35 () Expr (ite s33 s34 s0))+[GOOD] (define-fun s36 () Expr (ite s30 s18 s35))+[GOOD] (define-fun s37 () Expr (ite s24 s25 s36))+[GOOD] (define-fun s38 () Expr (ite s16 s4 s37))+[GOOD] (define-fun s39 () Expr (ite s10 s11 s38))+[GOOD] (define-fun s40 () Bool (distinct s1 s39))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s40)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested06c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested07.gold view
@@ -0,0 +1,79 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Expr ((as Add Expr) ((as Val Expr) 0) ((as Val Expr) 0)))+[GOOD] (define-fun s7 () Int 0)+[GOOD] (define-fun s21 () Int 1)+[GOOD] (define-fun s34 () Expr ((as Val Expr) 0))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s3 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s4 () Expr (getAdd_1 s0))+[GOOD] (define-fun s5 () Bool ((as is-Val Bool) s4))+[GOOD] (define-fun s6 () Int (getVal_1 s4))+[GOOD] (define-fun s8 () Bool (= s6 s7))+[GOOD] (define-fun s9 () Bool (and s5 s8))+[GOOD] (define-fun s10 () Bool (and s3 s9))+[GOOD] (define-fun s11 () Expr (getAdd_2 s0))+[GOOD] (define-fun s12 () Bool ((as is-Val Bool) s11))+[GOOD] (define-fun s13 () Int (getVal_1 s11))+[GOOD] (define-fun s14 () Bool (= s7 s13))+[GOOD] (define-fun s15 () Bool (and s12 s14))+[GOOD] (define-fun s16 () Bool (and s3 s15))+[GOOD] (define-fun s17 () Bool ((as is-Mul Bool) s0))+[GOOD] (define-fun s18 () Expr (getMul_1 s0))+[GOOD] (define-fun s19 () Bool ((as is-Val Bool) s18))+[GOOD] (define-fun s20 () Int (getVal_1 s18))+[GOOD] (define-fun s22 () Bool (= s20 s21))+[GOOD] (define-fun s23 () Bool (and s19 s22))+[GOOD] (define-fun s24 () Bool (and s17 s23))+[GOOD] (define-fun s25 () Expr (getMul_2 s0))+[GOOD] (define-fun s26 () Bool ((as is-Val Bool) s25))+[GOOD] (define-fun s27 () Int (getVal_1 s25))+[GOOD] (define-fun s28 () Bool (= s21 s27))+[GOOD] (define-fun s29 () Bool (and s26 s28))+[GOOD] (define-fun s30 () Bool (and s17 s29))+[GOOD] (define-fun s31 () Bool (= s7 s20))+[GOOD] (define-fun s32 () Bool (and s19 s31))+[GOOD] (define-fun s33 () Bool (and s17 s32))+[GOOD] (define-fun s35 () Expr (ite s33 s34 s0))+[GOOD] (define-fun s36 () Expr (ite s30 s18 s35))+[GOOD] (define-fun s37 () Expr (ite s24 s25 s36))+[GOOD] (define-fun s38 () Expr (ite s16 s4 s37))+[GOOD] (define-fun s39 () Expr (ite s10 s11 s38))+[GOOD] (define-fun s40 () Bool (distinct s34 s39))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s40)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested07c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested08.gold view
@@ -0,0 +1,80 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Expr ((as Mul Expr) ((as Val Expr) 1) ((as Add Expr) ((as Val Expr) 3) ((as Val Expr) 4))))+[GOOD] (define-fun s7 () Int 0)+[GOOD] (define-fun s21 () Int 1)+[GOOD] (define-fun s34 () Expr ((as Val Expr) 0))+[GOOD] (define-fun s40 () Expr ((as Add Expr) ((as Val Expr) 3) ((as Val Expr) 4)))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s3 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s4 () Expr (getAdd_1 s0))+[GOOD] (define-fun s5 () Bool ((as is-Val Bool) s4))+[GOOD] (define-fun s6 () Int (getVal_1 s4))+[GOOD] (define-fun s8 () Bool (= s6 s7))+[GOOD] (define-fun s9 () Bool (and s5 s8))+[GOOD] (define-fun s10 () Bool (and s3 s9))+[GOOD] (define-fun s11 () Expr (getAdd_2 s0))+[GOOD] (define-fun s12 () Bool ((as is-Val Bool) s11))+[GOOD] (define-fun s13 () Int (getVal_1 s11))+[GOOD] (define-fun s14 () Bool (= s7 s13))+[GOOD] (define-fun s15 () Bool (and s12 s14))+[GOOD] (define-fun s16 () Bool (and s3 s15))+[GOOD] (define-fun s17 () Bool ((as is-Mul Bool) s0))+[GOOD] (define-fun s18 () Expr (getMul_1 s0))+[GOOD] (define-fun s19 () Bool ((as is-Val Bool) s18))+[GOOD] (define-fun s20 () Int (getVal_1 s18))+[GOOD] (define-fun s22 () Bool (= s20 s21))+[GOOD] (define-fun s23 () Bool (and s19 s22))+[GOOD] (define-fun s24 () Bool (and s17 s23))+[GOOD] (define-fun s25 () Expr (getMul_2 s0))+[GOOD] (define-fun s26 () Bool ((as is-Val Bool) s25))+[GOOD] (define-fun s27 () Int (getVal_1 s25))+[GOOD] (define-fun s28 () Bool (= s21 s27))+[GOOD] (define-fun s29 () Bool (and s26 s28))+[GOOD] (define-fun s30 () Bool (and s17 s29))+[GOOD] (define-fun s31 () Bool (= s7 s20))+[GOOD] (define-fun s32 () Bool (and s19 s31))+[GOOD] (define-fun s33 () Bool (and s17 s32))+[GOOD] (define-fun s35 () Expr (ite s33 s34 s0))+[GOOD] (define-fun s36 () Expr (ite s30 s18 s35))+[GOOD] (define-fun s37 () Expr (ite s24 s25 s36))+[GOOD] (define-fun s38 () Expr (ite s16 s4 s37))+[GOOD] (define-fun s39 () Expr (ite s10 s11 s38))+[GOOD] (define-fun s41 () Bool (distinct s39 s40))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s41)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested08c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested09.gold view
@@ -0,0 +1,79 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Expr ((as Mul Expr) ((as Val Expr) 0) ((as Add Expr) ((as Val Expr) 3) ((as Val Expr) 4))))+[GOOD] (define-fun s7 () Int 0)+[GOOD] (define-fun s21 () Int 1)+[GOOD] (define-fun s34 () Expr ((as Val Expr) 0))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s3 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s4 () Expr (getAdd_1 s0))+[GOOD] (define-fun s5 () Bool ((as is-Val Bool) s4))+[GOOD] (define-fun s6 () Int (getVal_1 s4))+[GOOD] (define-fun s8 () Bool (= s6 s7))+[GOOD] (define-fun s9 () Bool (and s5 s8))+[GOOD] (define-fun s10 () Bool (and s3 s9))+[GOOD] (define-fun s11 () Expr (getAdd_2 s0))+[GOOD] (define-fun s12 () Bool ((as is-Val Bool) s11))+[GOOD] (define-fun s13 () Int (getVal_1 s11))+[GOOD] (define-fun s14 () Bool (= s7 s13))+[GOOD] (define-fun s15 () Bool (and s12 s14))+[GOOD] (define-fun s16 () Bool (and s3 s15))+[GOOD] (define-fun s17 () Bool ((as is-Mul Bool) s0))+[GOOD] (define-fun s18 () Expr (getMul_1 s0))+[GOOD] (define-fun s19 () Bool ((as is-Val Bool) s18))+[GOOD] (define-fun s20 () Int (getVal_1 s18))+[GOOD] (define-fun s22 () Bool (= s20 s21))+[GOOD] (define-fun s23 () Bool (and s19 s22))+[GOOD] (define-fun s24 () Bool (and s17 s23))+[GOOD] (define-fun s25 () Expr (getMul_2 s0))+[GOOD] (define-fun s26 () Bool ((as is-Val Bool) s25))+[GOOD] (define-fun s27 () Int (getVal_1 s25))+[GOOD] (define-fun s28 () Bool (= s21 s27))+[GOOD] (define-fun s29 () Bool (and s26 s28))+[GOOD] (define-fun s30 () Bool (and s17 s29))+[GOOD] (define-fun s31 () Bool (= s7 s20))+[GOOD] (define-fun s32 () Bool (and s19 s31))+[GOOD] (define-fun s33 () Bool (and s17 s32))+[GOOD] (define-fun s35 () Expr (ite s33 s34 s0))+[GOOD] (define-fun s36 () Expr (ite s30 s18 s35))+[GOOD] (define-fun s37 () Expr (ite s24 s25 s36))+[GOOD] (define-fun s38 () Expr (ite s16 s4 s37))+[GOOD] (define-fun s39 () Expr (ite s10 s11 s38))+[GOOD] (define-fun s40 () Bool (distinct s34 s39))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s40)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested09c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested10.gold view
@@ -0,0 +1,79 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Expr ((as Var Expr) "x"))+[GOOD] (define-fun s7 () Int 0)+[GOOD] (define-fun s21 () Int 1)+[GOOD] (define-fun s34 () Expr ((as Val Expr) 0))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s3 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s4 () Expr (getAdd_1 s0))+[GOOD] (define-fun s5 () Bool ((as is-Val Bool) s4))+[GOOD] (define-fun s6 () Int (getVal_1 s4))+[GOOD] (define-fun s8 () Bool (= s6 s7))+[GOOD] (define-fun s9 () Bool (and s5 s8))+[GOOD] (define-fun s10 () Bool (and s3 s9))+[GOOD] (define-fun s11 () Expr (getAdd_2 s0))+[GOOD] (define-fun s12 () Bool ((as is-Val Bool) s11))+[GOOD] (define-fun s13 () Int (getVal_1 s11))+[GOOD] (define-fun s14 () Bool (= s7 s13))+[GOOD] (define-fun s15 () Bool (and s12 s14))+[GOOD] (define-fun s16 () Bool (and s3 s15))+[GOOD] (define-fun s17 () Bool ((as is-Mul Bool) s0))+[GOOD] (define-fun s18 () Expr (getMul_1 s0))+[GOOD] (define-fun s19 () Bool ((as is-Val Bool) s18))+[GOOD] (define-fun s20 () Int (getVal_1 s18))+[GOOD] (define-fun s22 () Bool (= s20 s21))+[GOOD] (define-fun s23 () Bool (and s19 s22))+[GOOD] (define-fun s24 () Bool (and s17 s23))+[GOOD] (define-fun s25 () Expr (getMul_2 s0))+[GOOD] (define-fun s26 () Bool ((as is-Val Bool) s25))+[GOOD] (define-fun s27 () Int (getVal_1 s25))+[GOOD] (define-fun s28 () Bool (= s21 s27))+[GOOD] (define-fun s29 () Bool (and s26 s28))+[GOOD] (define-fun s30 () Bool (and s17 s29))+[GOOD] (define-fun s31 () Bool (= s7 s20))+[GOOD] (define-fun s32 () Bool (and s19 s31))+[GOOD] (define-fun s33 () Bool (and s17 s32))+[GOOD] (define-fun s35 () Expr (ite s33 s34 s0))+[GOOD] (define-fun s36 () Expr (ite s30 s18 s35))+[GOOD] (define-fun s37 () Expr (ite s24 s25 s36))+[GOOD] (define-fun s38 () Expr (ite s16 s4 s37))+[GOOD] (define-fun s39 () Expr (ite s10 s11 s38))+[GOOD] (define-fun s40 () Bool (distinct s1 s39))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s40)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested10c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested11.gold view
@@ -0,0 +1,79 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Expr ((as Val Expr) 42))+[GOOD] (define-fun s7 () Int 0)+[GOOD] (define-fun s21 () Int 1)+[GOOD] (define-fun s34 () Expr ((as Val Expr) 0))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s3 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s4 () Expr (getAdd_1 s0))+[GOOD] (define-fun s5 () Bool ((as is-Val Bool) s4))+[GOOD] (define-fun s6 () Int (getVal_1 s4))+[GOOD] (define-fun s8 () Bool (= s6 s7))+[GOOD] (define-fun s9 () Bool (and s5 s8))+[GOOD] (define-fun s10 () Bool (and s3 s9))+[GOOD] (define-fun s11 () Expr (getAdd_2 s0))+[GOOD] (define-fun s12 () Bool ((as is-Val Bool) s11))+[GOOD] (define-fun s13 () Int (getVal_1 s11))+[GOOD] (define-fun s14 () Bool (= s7 s13))+[GOOD] (define-fun s15 () Bool (and s12 s14))+[GOOD] (define-fun s16 () Bool (and s3 s15))+[GOOD] (define-fun s17 () Bool ((as is-Mul Bool) s0))+[GOOD] (define-fun s18 () Expr (getMul_1 s0))+[GOOD] (define-fun s19 () Bool ((as is-Val Bool) s18))+[GOOD] (define-fun s20 () Int (getVal_1 s18))+[GOOD] (define-fun s22 () Bool (= s20 s21))+[GOOD] (define-fun s23 () Bool (and s19 s22))+[GOOD] (define-fun s24 () Bool (and s17 s23))+[GOOD] (define-fun s25 () Expr (getMul_2 s0))+[GOOD] (define-fun s26 () Bool ((as is-Val Bool) s25))+[GOOD] (define-fun s27 () Int (getVal_1 s25))+[GOOD] (define-fun s28 () Bool (= s21 s27))+[GOOD] (define-fun s29 () Bool (and s26 s28))+[GOOD] (define-fun s30 () Bool (and s17 s29))+[GOOD] (define-fun s31 () Bool (= s7 s20))+[GOOD] (define-fun s32 () Bool (and s19 s31))+[GOOD] (define-fun s33 () Bool (and s17 s32))+[GOOD] (define-fun s35 () Expr (ite s33 s34 s0))+[GOOD] (define-fun s36 () Expr (ite s30 s18 s35))+[GOOD] (define-fun s37 () Expr (ite s24 s25 s36))+[GOOD] (define-fun s38 () Expr (ite s16 s4 s37))+[GOOD] (define-fun s39 () Expr (ite s10 s11 s38))+[GOOD] (define-fun s40 () Bool (distinct s1 s39))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s40)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested11c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested12.gold view
@@ -0,0 +1,79 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Expr ((as Let Expr) "x" ((as Val Expr) 1) ((as Var Expr) "x")))+[GOOD] (define-fun s7 () Int 0)+[GOOD] (define-fun s21 () Int 1)+[GOOD] (define-fun s34 () Expr ((as Val Expr) 0))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s3 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s4 () Expr (getAdd_1 s0))+[GOOD] (define-fun s5 () Bool ((as is-Val Bool) s4))+[GOOD] (define-fun s6 () Int (getVal_1 s4))+[GOOD] (define-fun s8 () Bool (= s6 s7))+[GOOD] (define-fun s9 () Bool (and s5 s8))+[GOOD] (define-fun s10 () Bool (and s3 s9))+[GOOD] (define-fun s11 () Expr (getAdd_2 s0))+[GOOD] (define-fun s12 () Bool ((as is-Val Bool) s11))+[GOOD] (define-fun s13 () Int (getVal_1 s11))+[GOOD] (define-fun s14 () Bool (= s7 s13))+[GOOD] (define-fun s15 () Bool (and s12 s14))+[GOOD] (define-fun s16 () Bool (and s3 s15))+[GOOD] (define-fun s17 () Bool ((as is-Mul Bool) s0))+[GOOD] (define-fun s18 () Expr (getMul_1 s0))+[GOOD] (define-fun s19 () Bool ((as is-Val Bool) s18))+[GOOD] (define-fun s20 () Int (getVal_1 s18))+[GOOD] (define-fun s22 () Bool (= s20 s21))+[GOOD] (define-fun s23 () Bool (and s19 s22))+[GOOD] (define-fun s24 () Bool (and s17 s23))+[GOOD] (define-fun s25 () Expr (getMul_2 s0))+[GOOD] (define-fun s26 () Bool ((as is-Val Bool) s25))+[GOOD] (define-fun s27 () Int (getVal_1 s25))+[GOOD] (define-fun s28 () Bool (= s21 s27))+[GOOD] (define-fun s29 () Bool (and s26 s28))+[GOOD] (define-fun s30 () Bool (and s17 s29))+[GOOD] (define-fun s31 () Bool (= s7 s20))+[GOOD] (define-fun s32 () Bool (and s19 s31))+[GOOD] (define-fun s33 () Bool (and s17 s32))+[GOOD] (define-fun s35 () Expr (ite s33 s34 s0))+[GOOD] (define-fun s36 () Expr (ite s30 s18 s35))+[GOOD] (define-fun s37 () Expr (ite s24 s25 s36))+[GOOD] (define-fun s38 () Expr (ite s16 s4 s37))+[GOOD] (define-fun s39 () Expr (ite s10 s11 s38))+[GOOD] (define-fun s40 () Bool (distinct s1 s39))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s40)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested12c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested13.gold view
@@ -0,0 +1,79 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Expr ((as Mul Expr) ((as Val Expr) 0) ((as Var Expr) "x")))+[GOOD] (define-fun s7 () Int 0)+[GOOD] (define-fun s21 () Int 1)+[GOOD] (define-fun s34 () Expr ((as Val Expr) 0))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s3 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s4 () Expr (getAdd_1 s0))+[GOOD] (define-fun s5 () Bool ((as is-Val Bool) s4))+[GOOD] (define-fun s6 () Int (getVal_1 s4))+[GOOD] (define-fun s8 () Bool (= s6 s7))+[GOOD] (define-fun s9 () Bool (and s5 s8))+[GOOD] (define-fun s10 () Bool (and s3 s9))+[GOOD] (define-fun s11 () Expr (getAdd_2 s0))+[GOOD] (define-fun s12 () Bool ((as is-Val Bool) s11))+[GOOD] (define-fun s13 () Int (getVal_1 s11))+[GOOD] (define-fun s14 () Bool (= s7 s13))+[GOOD] (define-fun s15 () Bool (and s12 s14))+[GOOD] (define-fun s16 () Bool (and s3 s15))+[GOOD] (define-fun s17 () Bool ((as is-Mul Bool) s0))+[GOOD] (define-fun s18 () Expr (getMul_1 s0))+[GOOD] (define-fun s19 () Bool ((as is-Val Bool) s18))+[GOOD] (define-fun s20 () Int (getVal_1 s18))+[GOOD] (define-fun s22 () Bool (= s20 s21))+[GOOD] (define-fun s23 () Bool (and s19 s22))+[GOOD] (define-fun s24 () Bool (and s17 s23))+[GOOD] (define-fun s25 () Expr (getMul_2 s0))+[GOOD] (define-fun s26 () Bool ((as is-Val Bool) s25))+[GOOD] (define-fun s27 () Int (getVal_1 s25))+[GOOD] (define-fun s28 () Bool (= s21 s27))+[GOOD] (define-fun s29 () Bool (and s26 s28))+[GOOD] (define-fun s30 () Bool (and s17 s29))+[GOOD] (define-fun s31 () Bool (= s7 s20))+[GOOD] (define-fun s32 () Bool (and s19 s31))+[GOOD] (define-fun s33 () Bool (and s17 s32))+[GOOD] (define-fun s35 () Expr (ite s33 s34 s0))+[GOOD] (define-fun s36 () Expr (ite s30 s18 s35))+[GOOD] (define-fun s37 () Expr (ite s24 s25 s36))+[GOOD] (define-fun s38 () Expr (ite s16 s4 s37))+[GOOD] (define-fun s39 () Expr (ite s10 s11 s38))+[GOOD] (define-fun s40 () Bool (distinct s34 s39))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s40)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested13c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested14.gold view
@@ -0,0 +1,80 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Expr ((as Add Expr) ((as Val Expr) 0) ((as Mul Expr) ((as Val Expr) 2) ((as Val Expr) 3))))+[GOOD] (define-fun s7 () Int 0)+[GOOD] (define-fun s21 () Int 1)+[GOOD] (define-fun s34 () Expr ((as Val Expr) 0))+[GOOD] (define-fun s40 () Expr ((as Mul Expr) ((as Val Expr) 2) ((as Val Expr) 3)))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s3 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s4 () Expr (getAdd_1 s0))+[GOOD] (define-fun s5 () Bool ((as is-Val Bool) s4))+[GOOD] (define-fun s6 () Int (getVal_1 s4))+[GOOD] (define-fun s8 () Bool (= s6 s7))+[GOOD] (define-fun s9 () Bool (and s5 s8))+[GOOD] (define-fun s10 () Bool (and s3 s9))+[GOOD] (define-fun s11 () Expr (getAdd_2 s0))+[GOOD] (define-fun s12 () Bool ((as is-Val Bool) s11))+[GOOD] (define-fun s13 () Int (getVal_1 s11))+[GOOD] (define-fun s14 () Bool (= s7 s13))+[GOOD] (define-fun s15 () Bool (and s12 s14))+[GOOD] (define-fun s16 () Bool (and s3 s15))+[GOOD] (define-fun s17 () Bool ((as is-Mul Bool) s0))+[GOOD] (define-fun s18 () Expr (getMul_1 s0))+[GOOD] (define-fun s19 () Bool ((as is-Val Bool) s18))+[GOOD] (define-fun s20 () Int (getVal_1 s18))+[GOOD] (define-fun s22 () Bool (= s20 s21))+[GOOD] (define-fun s23 () Bool (and s19 s22))+[GOOD] (define-fun s24 () Bool (and s17 s23))+[GOOD] (define-fun s25 () Expr (getMul_2 s0))+[GOOD] (define-fun s26 () Bool ((as is-Val Bool) s25))+[GOOD] (define-fun s27 () Int (getVal_1 s25))+[GOOD] (define-fun s28 () Bool (= s21 s27))+[GOOD] (define-fun s29 () Bool (and s26 s28))+[GOOD] (define-fun s30 () Bool (and s17 s29))+[GOOD] (define-fun s31 () Bool (= s7 s20))+[GOOD] (define-fun s32 () Bool (and s19 s31))+[GOOD] (define-fun s33 () Bool (and s17 s32))+[GOOD] (define-fun s35 () Expr (ite s33 s34 s0))+[GOOD] (define-fun s36 () Expr (ite s30 s18 s35))+[GOOD] (define-fun s37 () Expr (ite s24 s25 s36))+[GOOD] (define-fun s38 () Expr (ite s16 s4 s37))+[GOOD] (define-fun s39 () Expr (ite s10 s11 s38))+[GOOD] (define-fun s41 () Bool (distinct s39 s40))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s41)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested14c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested15.gold view
@@ -0,0 +1,114 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Expr ((as Add Expr) ((as Val Expr) 0) ((as Val Expr) 5)))+[GOOD] (define-fun s7 () Int 0)+[GOOD] (define-fun s21 () Int 1)+[GOOD] (define-fun s34 () Expr ((as Val Expr) 0))+[GOOD] (define-fun s74 () Expr ((as Val Expr) 5))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s3 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s4 () Expr (getAdd_1 s0))+[GOOD] (define-fun s5 () Bool ((as is-Val Bool) s4))+[GOOD] (define-fun s6 () Int (getVal_1 s4))+[GOOD] (define-fun s8 () Bool (= s6 s7))+[GOOD] (define-fun s9 () Bool (and s5 s8))+[GOOD] (define-fun s10 () Bool (and s3 s9))+[GOOD] (define-fun s11 () Expr (getAdd_2 s0))+[GOOD] (define-fun s12 () Bool ((as is-Val Bool) s11))+[GOOD] (define-fun s13 () Int (getVal_1 s11))+[GOOD] (define-fun s14 () Bool (= s7 s13))+[GOOD] (define-fun s15 () Bool (and s12 s14))+[GOOD] (define-fun s16 () Bool (and s3 s15))+[GOOD] (define-fun s17 () Bool ((as is-Mul Bool) s0))+[GOOD] (define-fun s18 () Expr (getMul_1 s0))+[GOOD] (define-fun s19 () Bool ((as is-Val Bool) s18))+[GOOD] (define-fun s20 () Int (getVal_1 s18))+[GOOD] (define-fun s22 () Bool (= s20 s21))+[GOOD] (define-fun s23 () Bool (and s19 s22))+[GOOD] (define-fun s24 () Bool (and s17 s23))+[GOOD] (define-fun s25 () Expr (getMul_2 s0))+[GOOD] (define-fun s26 () Bool ((as is-Val Bool) s25))+[GOOD] (define-fun s27 () Int (getVal_1 s25))+[GOOD] (define-fun s28 () Bool (= s21 s27))+[GOOD] (define-fun s29 () Bool (and s26 s28))+[GOOD] (define-fun s30 () Bool (and s17 s29))+[GOOD] (define-fun s31 () Bool (= s7 s20))+[GOOD] (define-fun s32 () Bool (and s19 s31))+[GOOD] (define-fun s33 () Bool (and s17 s32))+[GOOD] (define-fun s35 () Expr (ite s33 s34 s0))+[GOOD] (define-fun s36 () Expr (ite s30 s18 s35))+[GOOD] (define-fun s37 () Expr (ite s24 s25 s36))+[GOOD] (define-fun s38 () Expr (ite s16 s4 s37))+[GOOD] (define-fun s39 () Expr (ite s10 s11 s38))+[GOOD] (define-fun s40 () Bool ((as is-Add Bool) s39))+[GOOD] (define-fun s41 () Expr (getAdd_1 s39))+[GOOD] (define-fun s42 () Bool ((as is-Val Bool) s41))+[GOOD] (define-fun s43 () Int (getVal_1 s41))+[GOOD] (define-fun s44 () Bool (= s7 s43))+[GOOD] (define-fun s45 () Bool (and s42 s44))+[GOOD] (define-fun s46 () Bool (and s40 s45))+[GOOD] (define-fun s47 () Expr (getAdd_2 s39))+[GOOD] (define-fun s48 () Bool ((as is-Val Bool) s47))+[GOOD] (define-fun s49 () Int (getVal_1 s47))+[GOOD] (define-fun s50 () Bool (= s7 s49))+[GOOD] (define-fun s51 () Bool (and s48 s50))+[GOOD] (define-fun s52 () Bool (and s40 s51))+[GOOD] (define-fun s53 () Bool ((as is-Mul Bool) s39))+[GOOD] (define-fun s54 () Expr (getMul_1 s39))+[GOOD] (define-fun s55 () Bool ((as is-Val Bool) s54))+[GOOD] (define-fun s56 () Int (getVal_1 s54))+[GOOD] (define-fun s57 () Bool (= s21 s56))+[GOOD] (define-fun s58 () Bool (and s55 s57))+[GOOD] (define-fun s59 () Bool (and s53 s58))+[GOOD] (define-fun s60 () Expr (getMul_2 s39))+[GOOD] (define-fun s61 () Bool ((as is-Val Bool) s60))+[GOOD] (define-fun s62 () Int (getVal_1 s60))+[GOOD] (define-fun s63 () Bool (= s21 s62))+[GOOD] (define-fun s64 () Bool (and s61 s63))+[GOOD] (define-fun s65 () Bool (and s53 s64))+[GOOD] (define-fun s66 () Bool (= s7 s56))+[GOOD] (define-fun s67 () Bool (and s55 s66))+[GOOD] (define-fun s68 () Bool (and s53 s67))+[GOOD] (define-fun s69 () Expr (ite s68 s34 s39))+[GOOD] (define-fun s70 () Expr (ite s65 s54 s69))+[GOOD] (define-fun s71 () Expr (ite s59 s60 s70))+[GOOD] (define-fun s72 () Expr (ite s52 s41 s71))+[GOOD] (define-fun s73 () Expr (ite s46 s47 s72))+[GOOD] (define-fun s75 () Bool (distinct s73 s74))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s75)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested15c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested16.gold view
@@ -0,0 +1,113 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Expr ((as Add Expr) ((as Val Expr) 3) ((as Val Expr) 4)))+[GOOD] (define-fun s7 () Int 0)+[GOOD] (define-fun s21 () Int 1)+[GOOD] (define-fun s34 () Expr ((as Val Expr) 0))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s3 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s4 () Expr (getAdd_1 s0))+[GOOD] (define-fun s5 () Bool ((as is-Val Bool) s4))+[GOOD] (define-fun s6 () Int (getVal_1 s4))+[GOOD] (define-fun s8 () Bool (= s6 s7))+[GOOD] (define-fun s9 () Bool (and s5 s8))+[GOOD] (define-fun s10 () Bool (and s3 s9))+[GOOD] (define-fun s11 () Expr (getAdd_2 s0))+[GOOD] (define-fun s12 () Bool ((as is-Val Bool) s11))+[GOOD] (define-fun s13 () Int (getVal_1 s11))+[GOOD] (define-fun s14 () Bool (= s7 s13))+[GOOD] (define-fun s15 () Bool (and s12 s14))+[GOOD] (define-fun s16 () Bool (and s3 s15))+[GOOD] (define-fun s17 () Bool ((as is-Mul Bool) s0))+[GOOD] (define-fun s18 () Expr (getMul_1 s0))+[GOOD] (define-fun s19 () Bool ((as is-Val Bool) s18))+[GOOD] (define-fun s20 () Int (getVal_1 s18))+[GOOD] (define-fun s22 () Bool (= s20 s21))+[GOOD] (define-fun s23 () Bool (and s19 s22))+[GOOD] (define-fun s24 () Bool (and s17 s23))+[GOOD] (define-fun s25 () Expr (getMul_2 s0))+[GOOD] (define-fun s26 () Bool ((as is-Val Bool) s25))+[GOOD] (define-fun s27 () Int (getVal_1 s25))+[GOOD] (define-fun s28 () Bool (= s21 s27))+[GOOD] (define-fun s29 () Bool (and s26 s28))+[GOOD] (define-fun s30 () Bool (and s17 s29))+[GOOD] (define-fun s31 () Bool (= s7 s20))+[GOOD] (define-fun s32 () Bool (and s19 s31))+[GOOD] (define-fun s33 () Bool (and s17 s32))+[GOOD] (define-fun s35 () Expr (ite s33 s34 s0))+[GOOD] (define-fun s36 () Expr (ite s30 s18 s35))+[GOOD] (define-fun s37 () Expr (ite s24 s25 s36))+[GOOD] (define-fun s38 () Expr (ite s16 s4 s37))+[GOOD] (define-fun s39 () Expr (ite s10 s11 s38))+[GOOD] (define-fun s40 () Bool ((as is-Add Bool) s39))+[GOOD] (define-fun s41 () Expr (getAdd_1 s39))+[GOOD] (define-fun s42 () Bool ((as is-Val Bool) s41))+[GOOD] (define-fun s43 () Int (getVal_1 s41))+[GOOD] (define-fun s44 () Bool (= s7 s43))+[GOOD] (define-fun s45 () Bool (and s42 s44))+[GOOD] (define-fun s46 () Bool (and s40 s45))+[GOOD] (define-fun s47 () Expr (getAdd_2 s39))+[GOOD] (define-fun s48 () Bool ((as is-Val Bool) s47))+[GOOD] (define-fun s49 () Int (getVal_1 s47))+[GOOD] (define-fun s50 () Bool (= s7 s49))+[GOOD] (define-fun s51 () Bool (and s48 s50))+[GOOD] (define-fun s52 () Bool (and s40 s51))+[GOOD] (define-fun s53 () Bool ((as is-Mul Bool) s39))+[GOOD] (define-fun s54 () Expr (getMul_1 s39))+[GOOD] (define-fun s55 () Bool ((as is-Val Bool) s54))+[GOOD] (define-fun s56 () Int (getVal_1 s54))+[GOOD] (define-fun s57 () Bool (= s21 s56))+[GOOD] (define-fun s58 () Bool (and s55 s57))+[GOOD] (define-fun s59 () Bool (and s53 s58))+[GOOD] (define-fun s60 () Expr (getMul_2 s39))+[GOOD] (define-fun s61 () Bool ((as is-Val Bool) s60))+[GOOD] (define-fun s62 () Int (getVal_1 s60))+[GOOD] (define-fun s63 () Bool (= s21 s62))+[GOOD] (define-fun s64 () Bool (and s61 s63))+[GOOD] (define-fun s65 () Bool (and s53 s64))+[GOOD] (define-fun s66 () Bool (= s7 s56))+[GOOD] (define-fun s67 () Bool (and s55 s66))+[GOOD] (define-fun s68 () Bool (and s53 s67))+[GOOD] (define-fun s69 () Expr (ite s68 s34 s39))+[GOOD] (define-fun s70 () Expr (ite s65 s54 s69))+[GOOD] (define-fun s71 () Expr (ite s59 s60 s70))+[GOOD] (define-fun s72 () Expr (ite s52 s41 s71))+[GOOD] (define-fun s73 () Expr (ite s46 s47 s72))+[GOOD] (define-fun s74 () Bool (distinct s1 s73))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s74)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested16c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested17.gold view
@@ -0,0 +1,114 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Expr ((as Mul Expr) ((as Val Expr) 1) ((as Add Expr) ((as Val Expr) 0) ((as Val Expr) 5))))+[GOOD] (define-fun s7 () Int 0)+[GOOD] (define-fun s21 () Int 1)+[GOOD] (define-fun s34 () Expr ((as Val Expr) 0))+[GOOD] (define-fun s74 () Expr ((as Val Expr) 5))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s3 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s4 () Expr (getAdd_1 s0))+[GOOD] (define-fun s5 () Bool ((as is-Val Bool) s4))+[GOOD] (define-fun s6 () Int (getVal_1 s4))+[GOOD] (define-fun s8 () Bool (= s6 s7))+[GOOD] (define-fun s9 () Bool (and s5 s8))+[GOOD] (define-fun s10 () Bool (and s3 s9))+[GOOD] (define-fun s11 () Expr (getAdd_2 s0))+[GOOD] (define-fun s12 () Bool ((as is-Val Bool) s11))+[GOOD] (define-fun s13 () Int (getVal_1 s11))+[GOOD] (define-fun s14 () Bool (= s7 s13))+[GOOD] (define-fun s15 () Bool (and s12 s14))+[GOOD] (define-fun s16 () Bool (and s3 s15))+[GOOD] (define-fun s17 () Bool ((as is-Mul Bool) s0))+[GOOD] (define-fun s18 () Expr (getMul_1 s0))+[GOOD] (define-fun s19 () Bool ((as is-Val Bool) s18))+[GOOD] (define-fun s20 () Int (getVal_1 s18))+[GOOD] (define-fun s22 () Bool (= s20 s21))+[GOOD] (define-fun s23 () Bool (and s19 s22))+[GOOD] (define-fun s24 () Bool (and s17 s23))+[GOOD] (define-fun s25 () Expr (getMul_2 s0))+[GOOD] (define-fun s26 () Bool ((as is-Val Bool) s25))+[GOOD] (define-fun s27 () Int (getVal_1 s25))+[GOOD] (define-fun s28 () Bool (= s21 s27))+[GOOD] (define-fun s29 () Bool (and s26 s28))+[GOOD] (define-fun s30 () Bool (and s17 s29))+[GOOD] (define-fun s31 () Bool (= s7 s20))+[GOOD] (define-fun s32 () Bool (and s19 s31))+[GOOD] (define-fun s33 () Bool (and s17 s32))+[GOOD] (define-fun s35 () Expr (ite s33 s34 s0))+[GOOD] (define-fun s36 () Expr (ite s30 s18 s35))+[GOOD] (define-fun s37 () Expr (ite s24 s25 s36))+[GOOD] (define-fun s38 () Expr (ite s16 s4 s37))+[GOOD] (define-fun s39 () Expr (ite s10 s11 s38))+[GOOD] (define-fun s40 () Bool ((as is-Add Bool) s39))+[GOOD] (define-fun s41 () Expr (getAdd_1 s39))+[GOOD] (define-fun s42 () Bool ((as is-Val Bool) s41))+[GOOD] (define-fun s43 () Int (getVal_1 s41))+[GOOD] (define-fun s44 () Bool (= s7 s43))+[GOOD] (define-fun s45 () Bool (and s42 s44))+[GOOD] (define-fun s46 () Bool (and s40 s45))+[GOOD] (define-fun s47 () Expr (getAdd_2 s39))+[GOOD] (define-fun s48 () Bool ((as is-Val Bool) s47))+[GOOD] (define-fun s49 () Int (getVal_1 s47))+[GOOD] (define-fun s50 () Bool (= s7 s49))+[GOOD] (define-fun s51 () Bool (and s48 s50))+[GOOD] (define-fun s52 () Bool (and s40 s51))+[GOOD] (define-fun s53 () Bool ((as is-Mul Bool) s39))+[GOOD] (define-fun s54 () Expr (getMul_1 s39))+[GOOD] (define-fun s55 () Bool ((as is-Val Bool) s54))+[GOOD] (define-fun s56 () Int (getVal_1 s54))+[GOOD] (define-fun s57 () Bool (= s21 s56))+[GOOD] (define-fun s58 () Bool (and s55 s57))+[GOOD] (define-fun s59 () Bool (and s53 s58))+[GOOD] (define-fun s60 () Expr (getMul_2 s39))+[GOOD] (define-fun s61 () Bool ((as is-Val Bool) s60))+[GOOD] (define-fun s62 () Int (getVal_1 s60))+[GOOD] (define-fun s63 () Bool (= s21 s62))+[GOOD] (define-fun s64 () Bool (and s61 s63))+[GOOD] (define-fun s65 () Bool (and s53 s64))+[GOOD] (define-fun s66 () Bool (= s7 s56))+[GOOD] (define-fun s67 () Bool (and s55 s66))+[GOOD] (define-fun s68 () Bool (and s53 s67))+[GOOD] (define-fun s69 () Expr (ite s68 s34 s39))+[GOOD] (define-fun s70 () Expr (ite s65 s54 s69))+[GOOD] (define-fun s71 () Expr (ite s59 s60 s70))+[GOOD] (define-fun s72 () Expr (ite s52 s41 s71))+[GOOD] (define-fun s73 () Expr (ite s46 s47 s72))+[GOOD] (define-fun s75 () Bool (distinct s73 s74))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s75)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested17c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested18.gold view
@@ -0,0 +1,252 @@+[MEASURE] Verifying termination measures for: eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer), eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer), get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)+[MEASURE] Checking: eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): not in a multi-member cycle, skipping mutual check+[MEASURE] Passed (terminating): eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)+[MEASURE] Checking: eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): barified = "|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|"+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): Uninterpreted ops in DAG: [("|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2)]+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): recursive calls found = 6+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): trying sbv.dt.size.Expr arg2+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): sbv.dt.size.Expr arg2 -> OK (structural recursion)+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): sbv.dt.size.Expr arg2 -> OK+[MEASURE] Passed (terminating): eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)+[MEASURE] Checking: get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): barified = "|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|"+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): Uninterpreted ops in DAG: [("|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|",2)]+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): recursive calls found = 1+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): trying length arg1+[MEASURE] replayDAG {get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)}: replaying 13 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq (SBVTuple2 String Int))) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () String) ; tracks user variable "arg1"+[GOOD] (declare-fun s14 () Int) ; tracks user variable "__internal_sbv_s14"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Int (seq.len s0))+[GOOD] (define-fun s5 () Bool (= s2 s4))+[GOOD] (define-fun s6 () Bool (not s5))+[GOOD] (define-fun s7 () (SBVTuple2 String Int) (seq.nth s0 s2))+[GOOD] (define-fun s8 () String (proj_1_SBVTuple2 s7))+[GOOD] (define-fun s9 () Bool (= s1 s8))+[GOOD] (define-fun s10 () Bool (and s6 s9))+[GOOD] (define-fun s11 () Int (proj_2_SBVTuple2 s7))+[GOOD] (define-fun s12 () Int (- s4 s3))+[GOOD] (define-fun s13 () (Seq (SBVTuple2 String Int)) (seq.extract s0 s3 s12))+[GOOD] (define-fun s15 () Int (ite s10 s11 s14))+[GOOD] (define-fun s16 () Int (ite s5 s2 s15))+[GOOD] (define-fun s17 () Bool (>= s4 s2))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s17))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)}: replaying 13 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq (SBVTuple2 String Int))) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () String) ; tracks user variable "arg1"+[GOOD] (declare-fun s14 () Int) ; tracks user variable "__internal_sbv_s14"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Int (seq.len s0))+[GOOD] (define-fun s5 () Bool (= s2 s4))+[GOOD] (define-fun s6 () Bool (not s5))+[GOOD] (define-fun s7 () (SBVTuple2 String Int) (seq.nth s0 s2))+[GOOD] (define-fun s8 () String (proj_1_SBVTuple2 s7))+[GOOD] (define-fun s9 () Bool (= s1 s8))+[GOOD] (define-fun s10 () Bool (and s6 s9))+[GOOD] (define-fun s11 () Int (proj_2_SBVTuple2 s7))+[GOOD] (define-fun s12 () Int (- s4 s3))+[GOOD] (define-fun s13 () (Seq (SBVTuple2 String Int)) (seq.extract s0 s3 s12))+[GOOD] (define-fun s15 () Int (ite s10 s11 s14))+[GOOD] (define-fun s16 () Int (ite s5 s2 s15))+[GOOD] (define-fun s17 () Int (seq.len s13))+[GOOD] (define-fun s18 () Bool (not s10))+[GOOD] (define-fun s19 () Bool (and s6 s18))+[GOOD] (define-fun s20 () Bool (> s4 s17))+[GOOD] (define-fun s21 () Bool (=> s19 s20))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s21))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): length arg1 -> OK+[MEASURE] Passed (terminating): get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () (Seq (SBVTuple2 String Int)) (as seq.empty (Seq (SBVTuple2 String Int))))+[GOOD] (define-fun s6 () Int 0)+[GOOD] (define-fun s20 () Int 1)+[GOOD] (define-fun s33 () Expr ((as Val Expr) 0))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr) ; tracks user variable "e"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; |get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| :: [(SString, SInteger)] -> SString -> SInteger [Recursive]+[GOOD] (define-fun-rec |get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| ((l2_s0 (Seq (SBVTuple2 String Int))) (l2_s1 String)) Int+                                                 (let ((l2_s3 0))+                                                 (let ((l2_s11 1))+                                                 (let ((l2_s2 (seq.len l2_s0)))+                                                 (let ((l2_s4 (= l2_s2 l2_s3)))+                                                 (let ((l2_s5 (not l2_s4)))+                                                 (let ((l2_s6 (seq.nth l2_s0 l2_s3)))+                                                 (let ((l2_s7 (proj_1_SBVTuple2 l2_s6)))+                                                 (let ((l2_s8 (= l2_s1 l2_s7)))+                                                 (let ((l2_s9 (and l2_s5 l2_s8)))+                                                 (let ((l2_s10 (proj_2_SBVTuple2 l2_s6)))+                                                 (let ((l2_s12 (- l2_s2 l2_s11)))+                                                 (let ((l2_s13 (seq.extract l2_s0 l2_s11 l2_s12)))+                                                 (let ((l2_s14 (|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| l2_s13 l2_s1)))+                                                 (let ((l2_s15 (ite l2_s9 l2_s10 l2_s14)))+                                                 (let ((l2_s16 (ite l2_s4 l2_s3 l2_s15)))+                                                 l2_s16))))))))))))))))+[GOOD] ; |eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| :: [(SString, SInteger)] -> Expr -> SInteger [Recursive] [Refers to: |get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|]+[GOOD] (define-fun-rec |eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| ((l1_s0 (Seq (SBVTuple2 String Int))) (l1_s1 Expr)) Int+                                 (let ((l1_s2 ((as is-Val Bool) l1_s1)))+                                 (let ((l1_s3 (getVal_1 l1_s1)))+                                 (let ((l1_s4 ((as is-Var Bool) l1_s1)))+                                 (let ((l1_s5 (getVar_1 l1_s1)))+                                 (let ((l1_s6 (|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| l1_s0 l1_s5)))+                                 (let ((l1_s7 ((as is-Add Bool) l1_s1)))+                                 (let ((l1_s8 (getAdd_1 l1_s1)))+                                 (let ((l1_s9 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s8)))+                                 (let ((l1_s10 (getAdd_2 l1_s1)))+                                 (let ((l1_s11 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s10)))+                                 (let ((l1_s12 (+ l1_s9 l1_s11)))+                                 (let ((l1_s13 ((as is-Mul Bool) l1_s1)))+                                 (let ((l1_s14 (getMul_1 l1_s1)))+                                 (let ((l1_s15 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s14)))+                                 (let ((l1_s16 (getMul_2 l1_s1)))+                                 (let ((l1_s17 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s16)))+                                 (let ((l1_s18 (* l1_s15 l1_s17)))+                                 (let ((l1_s19 (getLet_1 l1_s1)))+                                 (let ((l1_s20 (getLet_2 l1_s1)))+                                 (let ((l1_s21 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s20)))+                                 (let ((l1_s22 ((as mkSBVTuple2 (SBVTuple2 String Int)) l1_s19 l1_s21)))+                                 (let ((l1_s23 (seq.unit l1_s22)))+                                 (let ((l1_s24 (seq.++ l1_s23 l1_s0)))+                                 (let ((l1_s25 (getLet_3 l1_s1)))+                                 (let ((l1_s26 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s24 l1_s25)))+                                 (let ((l1_s27 (ite l1_s13 l1_s18 l1_s26)))+                                 (let ((l1_s28 (ite l1_s7 l1_s12 l1_s27)))+                                 (let ((l1_s29 (ite l1_s4 l1_s6 l1_s28)))+                                 (let ((l1_s30 (ite l1_s2 l1_s3 l1_s29)))+                                 l1_s30))))))))))))))))))))))))))))))+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s3 () Expr (getAdd_1 s0))+[GOOD] (define-fun s4 () Bool ((as is-Val Bool) s3))+[GOOD] (define-fun s5 () Int (getVal_1 s3))+[GOOD] (define-fun s7 () Bool (= s5 s6))+[GOOD] (define-fun s8 () Bool (and s4 s7))+[GOOD] (define-fun s9 () Bool (and s2 s8))+[GOOD] (define-fun s10 () Expr (getAdd_2 s0))+[GOOD] (define-fun s11 () Bool ((as is-Val Bool) s10))+[GOOD] (define-fun s12 () Int (getVal_1 s10))+[GOOD] (define-fun s13 () Bool (= s6 s12))+[GOOD] (define-fun s14 () Bool (and s11 s13))+[GOOD] (define-fun s15 () Bool (and s2 s14))+[GOOD] (define-fun s16 () Bool ((as is-Mul Bool) s0))+[GOOD] (define-fun s17 () Expr (getMul_1 s0))+[GOOD] (define-fun s18 () Bool ((as is-Val Bool) s17))+[GOOD] (define-fun s19 () Int (getVal_1 s17))+[GOOD] (define-fun s21 () Bool (= s19 s20))+[GOOD] (define-fun s22 () Bool (and s18 s21))+[GOOD] (define-fun s23 () Bool (and s16 s22))+[GOOD] (define-fun s24 () Expr (getMul_2 s0))+[GOOD] (define-fun s25 () Bool ((as is-Val Bool) s24))+[GOOD] (define-fun s26 () Int (getVal_1 s24))+[GOOD] (define-fun s27 () Bool (= s20 s26))+[GOOD] (define-fun s28 () Bool (and s25 s27))+[GOOD] (define-fun s29 () Bool (and s16 s28))+[GOOD] (define-fun s30 () Bool (= s6 s19))+[GOOD] (define-fun s31 () Bool (and s18 s30))+[GOOD] (define-fun s32 () Bool (and s16 s31))+[GOOD] (define-fun s34 () Expr (ite s32 s33 s0))+[GOOD] (define-fun s35 () Expr (ite s29 s17 s34))+[GOOD] (define-fun s36 () Expr (ite s23 s24 s35))+[GOOD] (define-fun s37 () Expr (ite s15 s3 s36))+[GOOD] (define-fun s38 () Expr (ite s9 s10 s37))+[GOOD] (define-fun s39 () Int (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| s1 s38))+[GOOD] (define-fun s40 () Int (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| s1 s0))+[GOOD] (define-fun s41 () Bool (= s39 s40))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s41))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested19.gold view
@@ -0,0 +1,80 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Expr ((as Mul Expr) ((as Val Expr) 1) ((as Val Expr) 1)))+[GOOD] (define-fun s7 () Int 0)+[GOOD] (define-fun s21 () Int 1)+[GOOD] (define-fun s34 () Expr ((as Val Expr) 0))+[GOOD] (define-fun s40 () Expr ((as Val Expr) 1))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s3 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s4 () Expr (getAdd_1 s0))+[GOOD] (define-fun s5 () Bool ((as is-Val Bool) s4))+[GOOD] (define-fun s6 () Int (getVal_1 s4))+[GOOD] (define-fun s8 () Bool (= s6 s7))+[GOOD] (define-fun s9 () Bool (and s5 s8))+[GOOD] (define-fun s10 () Bool (and s3 s9))+[GOOD] (define-fun s11 () Expr (getAdd_2 s0))+[GOOD] (define-fun s12 () Bool ((as is-Val Bool) s11))+[GOOD] (define-fun s13 () Int (getVal_1 s11))+[GOOD] (define-fun s14 () Bool (= s7 s13))+[GOOD] (define-fun s15 () Bool (and s12 s14))+[GOOD] (define-fun s16 () Bool (and s3 s15))+[GOOD] (define-fun s17 () Bool ((as is-Mul Bool) s0))+[GOOD] (define-fun s18 () Expr (getMul_1 s0))+[GOOD] (define-fun s19 () Bool ((as is-Val Bool) s18))+[GOOD] (define-fun s20 () Int (getVal_1 s18))+[GOOD] (define-fun s22 () Bool (= s20 s21))+[GOOD] (define-fun s23 () Bool (and s19 s22))+[GOOD] (define-fun s24 () Bool (and s17 s23))+[GOOD] (define-fun s25 () Expr (getMul_2 s0))+[GOOD] (define-fun s26 () Bool ((as is-Val Bool) s25))+[GOOD] (define-fun s27 () Int (getVal_1 s25))+[GOOD] (define-fun s28 () Bool (= s21 s27))+[GOOD] (define-fun s29 () Bool (and s26 s28))+[GOOD] (define-fun s30 () Bool (and s17 s29))+[GOOD] (define-fun s31 () Bool (= s7 s20))+[GOOD] (define-fun s32 () Bool (and s19 s31))+[GOOD] (define-fun s33 () Bool (and s17 s32))+[GOOD] (define-fun s35 () Expr (ite s33 s34 s0))+[GOOD] (define-fun s36 () Expr (ite s30 s18 s35))+[GOOD] (define-fun s37 () Expr (ite s24 s25 s36))+[GOOD] (define-fun s38 () Expr (ite s16 s4 s37))+[GOOD] (define-fun s39 () Expr (ite s10 s11 s38))+[GOOD] (define-fun s41 () Bool (distinct s39 s40))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s41)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested19c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested20.gold view
@@ -0,0 +1,79 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Expr ((as Mul Expr) ((as Val Expr) 2) ((as Val Expr) 3)))+[GOOD] (define-fun s7 () Int 0)+[GOOD] (define-fun s21 () Int 1)+[GOOD] (define-fun s34 () Expr ((as Val Expr) 0))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s3 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s4 () Expr (getAdd_1 s0))+[GOOD] (define-fun s5 () Bool ((as is-Val Bool) s4))+[GOOD] (define-fun s6 () Int (getVal_1 s4))+[GOOD] (define-fun s8 () Bool (= s6 s7))+[GOOD] (define-fun s9 () Bool (and s5 s8))+[GOOD] (define-fun s10 () Bool (and s3 s9))+[GOOD] (define-fun s11 () Expr (getAdd_2 s0))+[GOOD] (define-fun s12 () Bool ((as is-Val Bool) s11))+[GOOD] (define-fun s13 () Int (getVal_1 s11))+[GOOD] (define-fun s14 () Bool (= s7 s13))+[GOOD] (define-fun s15 () Bool (and s12 s14))+[GOOD] (define-fun s16 () Bool (and s3 s15))+[GOOD] (define-fun s17 () Bool ((as is-Mul Bool) s0))+[GOOD] (define-fun s18 () Expr (getMul_1 s0))+[GOOD] (define-fun s19 () Bool ((as is-Val Bool) s18))+[GOOD] (define-fun s20 () Int (getVal_1 s18))+[GOOD] (define-fun s22 () Bool (= s20 s21))+[GOOD] (define-fun s23 () Bool (and s19 s22))+[GOOD] (define-fun s24 () Bool (and s17 s23))+[GOOD] (define-fun s25 () Expr (getMul_2 s0))+[GOOD] (define-fun s26 () Bool ((as is-Val Bool) s25))+[GOOD] (define-fun s27 () Int (getVal_1 s25))+[GOOD] (define-fun s28 () Bool (= s21 s27))+[GOOD] (define-fun s29 () Bool (and s26 s28))+[GOOD] (define-fun s30 () Bool (and s17 s29))+[GOOD] (define-fun s31 () Bool (= s7 s20))+[GOOD] (define-fun s32 () Bool (and s19 s31))+[GOOD] (define-fun s33 () Bool (and s17 s32))+[GOOD] (define-fun s35 () Expr (ite s33 s34 s0))+[GOOD] (define-fun s36 () Expr (ite s30 s18 s35))+[GOOD] (define-fun s37 () Expr (ite s24 s25 s36))+[GOOD] (define-fun s38 () Expr (ite s16 s4 s37))+[GOOD] (define-fun s39 () Expr (ite s10 s11 s38))+[GOOD] (define-fun s40 () Bool (distinct s1 s39))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s40)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested20c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested21.gold view
@@ -0,0 +1,80 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Expr ((as Mul Expr) ((as Val Expr) 1) ((as Var Expr) "x")))+[GOOD] (define-fun s7 () Int 0)+[GOOD] (define-fun s21 () Int 1)+[GOOD] (define-fun s34 () Expr ((as Val Expr) 0))+[GOOD] (define-fun s40 () Expr ((as Var Expr) "x"))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s3 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s4 () Expr (getAdd_1 s0))+[GOOD] (define-fun s5 () Bool ((as is-Val Bool) s4))+[GOOD] (define-fun s6 () Int (getVal_1 s4))+[GOOD] (define-fun s8 () Bool (= s6 s7))+[GOOD] (define-fun s9 () Bool (and s5 s8))+[GOOD] (define-fun s10 () Bool (and s3 s9))+[GOOD] (define-fun s11 () Expr (getAdd_2 s0))+[GOOD] (define-fun s12 () Bool ((as is-Val Bool) s11))+[GOOD] (define-fun s13 () Int (getVal_1 s11))+[GOOD] (define-fun s14 () Bool (= s7 s13))+[GOOD] (define-fun s15 () Bool (and s12 s14))+[GOOD] (define-fun s16 () Bool (and s3 s15))+[GOOD] (define-fun s17 () Bool ((as is-Mul Bool) s0))+[GOOD] (define-fun s18 () Expr (getMul_1 s0))+[GOOD] (define-fun s19 () Bool ((as is-Val Bool) s18))+[GOOD] (define-fun s20 () Int (getVal_1 s18))+[GOOD] (define-fun s22 () Bool (= s20 s21))+[GOOD] (define-fun s23 () Bool (and s19 s22))+[GOOD] (define-fun s24 () Bool (and s17 s23))+[GOOD] (define-fun s25 () Expr (getMul_2 s0))+[GOOD] (define-fun s26 () Bool ((as is-Val Bool) s25))+[GOOD] (define-fun s27 () Int (getVal_1 s25))+[GOOD] (define-fun s28 () Bool (= s21 s27))+[GOOD] (define-fun s29 () Bool (and s26 s28))+[GOOD] (define-fun s30 () Bool (and s17 s29))+[GOOD] (define-fun s31 () Bool (= s7 s20))+[GOOD] (define-fun s32 () Bool (and s19 s31))+[GOOD] (define-fun s33 () Bool (and s17 s32))+[GOOD] (define-fun s35 () Expr (ite s33 s34 s0))+[GOOD] (define-fun s36 () Expr (ite s30 s18 s35))+[GOOD] (define-fun s37 () Expr (ite s24 s25 s36))+[GOOD] (define-fun s38 () Expr (ite s16 s4 s37))+[GOOD] (define-fun s39 () Expr (ite s10 s11 s38))+[GOOD] (define-fun s41 () Bool (distinct s39 s40))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s41)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested21c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested22.gold view
@@ -0,0 +1,80 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Expr ((as Add Expr) ((as Val Expr) 0) ((as Var Expr) "x")))+[GOOD] (define-fun s7 () Int 0)+[GOOD] (define-fun s21 () Int 1)+[GOOD] (define-fun s34 () Expr ((as Val Expr) 0))+[GOOD] (define-fun s40 () Expr ((as Var Expr) "x"))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s3 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s4 () Expr (getAdd_1 s0))+[GOOD] (define-fun s5 () Bool ((as is-Val Bool) s4))+[GOOD] (define-fun s6 () Int (getVal_1 s4))+[GOOD] (define-fun s8 () Bool (= s6 s7))+[GOOD] (define-fun s9 () Bool (and s5 s8))+[GOOD] (define-fun s10 () Bool (and s3 s9))+[GOOD] (define-fun s11 () Expr (getAdd_2 s0))+[GOOD] (define-fun s12 () Bool ((as is-Val Bool) s11))+[GOOD] (define-fun s13 () Int (getVal_1 s11))+[GOOD] (define-fun s14 () Bool (= s7 s13))+[GOOD] (define-fun s15 () Bool (and s12 s14))+[GOOD] (define-fun s16 () Bool (and s3 s15))+[GOOD] (define-fun s17 () Bool ((as is-Mul Bool) s0))+[GOOD] (define-fun s18 () Expr (getMul_1 s0))+[GOOD] (define-fun s19 () Bool ((as is-Val Bool) s18))+[GOOD] (define-fun s20 () Int (getVal_1 s18))+[GOOD] (define-fun s22 () Bool (= s20 s21))+[GOOD] (define-fun s23 () Bool (and s19 s22))+[GOOD] (define-fun s24 () Bool (and s17 s23))+[GOOD] (define-fun s25 () Expr (getMul_2 s0))+[GOOD] (define-fun s26 () Bool ((as is-Val Bool) s25))+[GOOD] (define-fun s27 () Int (getVal_1 s25))+[GOOD] (define-fun s28 () Bool (= s21 s27))+[GOOD] (define-fun s29 () Bool (and s26 s28))+[GOOD] (define-fun s30 () Bool (and s17 s29))+[GOOD] (define-fun s31 () Bool (= s7 s20))+[GOOD] (define-fun s32 () Bool (and s19 s31))+[GOOD] (define-fun s33 () Bool (and s17 s32))+[GOOD] (define-fun s35 () Expr (ite s33 s34 s0))+[GOOD] (define-fun s36 () Expr (ite s30 s18 s35))+[GOOD] (define-fun s37 () Expr (ite s24 s25 s36))+[GOOD] (define-fun s38 () Expr (ite s16 s4 s37))+[GOOD] (define-fun s39 () Expr (ite s10 s11 s38))+[GOOD] (define-fun s41 () Bool (distinct s39 s40))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s41)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested22c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested23.gold view
@@ -0,0 +1,253 @@+[MEASURE] Verifying termination measures for: eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer), eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer), get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)+[MEASURE] Checking: eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): not in a multi-member cycle, skipping mutual check+[MEASURE] Passed (terminating): eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)+[MEASURE] Checking: eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): barified = "|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|"+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): Uninterpreted ops in DAG: [("|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2)]+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): recursive calls found = 6+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): trying sbv.dt.size.Expr arg2+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): sbv.dt.size.Expr arg2 -> OK (structural recursion)+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): sbv.dt.size.Expr arg2 -> OK+[MEASURE] Passed (terminating): eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)+[MEASURE] Checking: get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): barified = "|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|"+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): Uninterpreted ops in DAG: [("|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|",2)]+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): recursive calls found = 1+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): trying length arg1+[MEASURE] replayDAG {get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)}: replaying 13 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq (SBVTuple2 String Int))) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () String) ; tracks user variable "arg1"+[GOOD] (declare-fun s14 () Int) ; tracks user variable "__internal_sbv_s14"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Int (seq.len s0))+[GOOD] (define-fun s5 () Bool (= s2 s4))+[GOOD] (define-fun s6 () Bool (not s5))+[GOOD] (define-fun s7 () (SBVTuple2 String Int) (seq.nth s0 s2))+[GOOD] (define-fun s8 () String (proj_1_SBVTuple2 s7))+[GOOD] (define-fun s9 () Bool (= s1 s8))+[GOOD] (define-fun s10 () Bool (and s6 s9))+[GOOD] (define-fun s11 () Int (proj_2_SBVTuple2 s7))+[GOOD] (define-fun s12 () Int (- s4 s3))+[GOOD] (define-fun s13 () (Seq (SBVTuple2 String Int)) (seq.extract s0 s3 s12))+[GOOD] (define-fun s15 () Int (ite s10 s11 s14))+[GOOD] (define-fun s16 () Int (ite s5 s2 s15))+[GOOD] (define-fun s17 () Bool (>= s4 s2))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s17))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)}: replaying 13 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq (SBVTuple2 String Int))) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () String) ; tracks user variable "arg1"+[GOOD] (declare-fun s14 () Int) ; tracks user variable "__internal_sbv_s14"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Int (seq.len s0))+[GOOD] (define-fun s5 () Bool (= s2 s4))+[GOOD] (define-fun s6 () Bool (not s5))+[GOOD] (define-fun s7 () (SBVTuple2 String Int) (seq.nth s0 s2))+[GOOD] (define-fun s8 () String (proj_1_SBVTuple2 s7))+[GOOD] (define-fun s9 () Bool (= s1 s8))+[GOOD] (define-fun s10 () Bool (and s6 s9))+[GOOD] (define-fun s11 () Int (proj_2_SBVTuple2 s7))+[GOOD] (define-fun s12 () Int (- s4 s3))+[GOOD] (define-fun s13 () (Seq (SBVTuple2 String Int)) (seq.extract s0 s3 s12))+[GOOD] (define-fun s15 () Int (ite s10 s11 s14))+[GOOD] (define-fun s16 () Int (ite s5 s2 s15))+[GOOD] (define-fun s17 () Int (seq.len s13))+[GOOD] (define-fun s18 () Bool (not s10))+[GOOD] (define-fun s19 () Bool (and s6 s18))+[GOOD] (define-fun s20 () Bool (> s4 s17))+[GOOD] (define-fun s21 () Bool (=> s19 s20))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s21))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): length arg1 -> OK+[MEASURE] Passed (terminating): get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () (Seq (SBVTuple2 String Int)) (as seq.empty (Seq (SBVTuple2 String Int))))+[GOOD] (define-fun s6 () Int 0)+[GOOD] (define-fun s20 () Int 1)+[GOOD] (define-fun s33 () Expr ((as Val Expr) 0))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr) ; tracks user variable "e"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; |get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| :: [(SString, SInteger)] -> SString -> SInteger [Recursive]+[GOOD] (define-fun-rec |get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| ((l2_s0 (Seq (SBVTuple2 String Int))) (l2_s1 String)) Int+                                                 (let ((l2_s3 0))+                                                 (let ((l2_s11 1))+                                                 (let ((l2_s2 (seq.len l2_s0)))+                                                 (let ((l2_s4 (= l2_s2 l2_s3)))+                                                 (let ((l2_s5 (not l2_s4)))+                                                 (let ((l2_s6 (seq.nth l2_s0 l2_s3)))+                                                 (let ((l2_s7 (proj_1_SBVTuple2 l2_s6)))+                                                 (let ((l2_s8 (= l2_s1 l2_s7)))+                                                 (let ((l2_s9 (and l2_s5 l2_s8)))+                                                 (let ((l2_s10 (proj_2_SBVTuple2 l2_s6)))+                                                 (let ((l2_s12 (- l2_s2 l2_s11)))+                                                 (let ((l2_s13 (seq.extract l2_s0 l2_s11 l2_s12)))+                                                 (let ((l2_s14 (|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| l2_s13 l2_s1)))+                                                 (let ((l2_s15 (ite l2_s9 l2_s10 l2_s14)))+                                                 (let ((l2_s16 (ite l2_s4 l2_s3 l2_s15)))+                                                 l2_s16))))))))))))))))+[GOOD] ; |eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| :: [(SString, SInteger)] -> Expr -> SInteger [Recursive] [Refers to: |get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|]+[GOOD] (define-fun-rec |eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| ((l1_s0 (Seq (SBVTuple2 String Int))) (l1_s1 Expr)) Int+                                 (let ((l1_s2 ((as is-Val Bool) l1_s1)))+                                 (let ((l1_s3 (getVal_1 l1_s1)))+                                 (let ((l1_s4 ((as is-Var Bool) l1_s1)))+                                 (let ((l1_s5 (getVar_1 l1_s1)))+                                 (let ((l1_s6 (|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| l1_s0 l1_s5)))+                                 (let ((l1_s7 ((as is-Add Bool) l1_s1)))+                                 (let ((l1_s8 (getAdd_1 l1_s1)))+                                 (let ((l1_s9 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s8)))+                                 (let ((l1_s10 (getAdd_2 l1_s1)))+                                 (let ((l1_s11 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s10)))+                                 (let ((l1_s12 (+ l1_s9 l1_s11)))+                                 (let ((l1_s13 ((as is-Mul Bool) l1_s1)))+                                 (let ((l1_s14 (getMul_1 l1_s1)))+                                 (let ((l1_s15 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s14)))+                                 (let ((l1_s16 (getMul_2 l1_s1)))+                                 (let ((l1_s17 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s16)))+                                 (let ((l1_s18 (* l1_s15 l1_s17)))+                                 (let ((l1_s19 (getLet_1 l1_s1)))+                                 (let ((l1_s20 (getLet_2 l1_s1)))+                                 (let ((l1_s21 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s20)))+                                 (let ((l1_s22 ((as mkSBVTuple2 (SBVTuple2 String Int)) l1_s19 l1_s21)))+                                 (let ((l1_s23 (seq.unit l1_s22)))+                                 (let ((l1_s24 (seq.++ l1_s23 l1_s0)))+                                 (let ((l1_s25 (getLet_3 l1_s1)))+                                 (let ((l1_s26 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s24 l1_s25)))+                                 (let ((l1_s27 (ite l1_s13 l1_s18 l1_s26)))+                                 (let ((l1_s28 (ite l1_s7 l1_s12 l1_s27)))+                                 (let ((l1_s29 (ite l1_s4 l1_s6 l1_s28)))+                                 (let ((l1_s30 (ite l1_s2 l1_s3 l1_s29)))+                                 l1_s30))))))))))))))))))))))))))))))+[GOOD] ; --- assignments ---+[GOOD] (define-fun s1 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s3 () Expr (getAdd_1 s0))+[GOOD] (define-fun s4 () Bool ((as is-Val Bool) s3))+[GOOD] (define-fun s5 () Int (getVal_1 s3))+[GOOD] (define-fun s7 () Bool (= s5 s6))+[GOOD] (define-fun s8 () Bool (and s4 s7))+[GOOD] (define-fun s9 () Bool (and s1 s8))+[GOOD] (define-fun s10 () Expr (getAdd_2 s0))+[GOOD] (define-fun s11 () Bool ((as is-Val Bool) s10))+[GOOD] (define-fun s12 () Int (getVal_1 s10))+[GOOD] (define-fun s13 () Bool (= s6 s12))+[GOOD] (define-fun s14 () Bool (and s11 s13))+[GOOD] (define-fun s15 () Bool (and s1 s14))+[GOOD] (define-fun s16 () Bool ((as is-Mul Bool) s0))+[GOOD] (define-fun s17 () Expr (getMul_1 s0))+[GOOD] (define-fun s18 () Bool ((as is-Val Bool) s17))+[GOOD] (define-fun s19 () Int (getVal_1 s17))+[GOOD] (define-fun s21 () Bool (= s19 s20))+[GOOD] (define-fun s22 () Bool (and s18 s21))+[GOOD] (define-fun s23 () Bool (and s16 s22))+[GOOD] (define-fun s24 () Expr (getMul_2 s0))+[GOOD] (define-fun s25 () Bool ((as is-Val Bool) s24))+[GOOD] (define-fun s26 () Int (getVal_1 s24))+[GOOD] (define-fun s27 () Bool (= s20 s26))+[GOOD] (define-fun s28 () Bool (and s25 s27))+[GOOD] (define-fun s29 () Bool (and s16 s28))+[GOOD] (define-fun s30 () Bool (= s6 s19))+[GOOD] (define-fun s31 () Bool (and s18 s30))+[GOOD] (define-fun s32 () Bool (and s16 s31))+[GOOD] (define-fun s34 () Expr (ite s32 s33 s0))+[GOOD] (define-fun s35 () Expr (ite s29 s17 s34))+[GOOD] (define-fun s36 () Expr (ite s23 s24 s35))+[GOOD] (define-fun s37 () Expr (ite s15 s3 s36))+[GOOD] (define-fun s38 () Expr (ite s9 s10 s37))+[GOOD] (define-fun s39 () Int (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| s2 s38))+[GOOD] (define-fun s40 () Int (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| s2 s0))+[GOOD] (define-fun s41 () Bool (= s39 s40))+[GOOD] (define-fun s42 () Bool (=> s1 s41))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s42))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested24.gold view
@@ -0,0 +1,253 @@+[MEASURE] Verifying termination measures for: eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer), eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer), get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)+[MEASURE] Checking: eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): not in a multi-member cycle, skipping mutual check+[MEASURE] Passed (terminating): eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)+[MEASURE] Checking: eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): barified = "|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|"+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): Uninterpreted ops in DAG: [("|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2)]+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): recursive calls found = 6+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): trying sbv.dt.size.Expr arg2+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): sbv.dt.size.Expr arg2 -> OK (structural recursion)+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): sbv.dt.size.Expr arg2 -> OK+[MEASURE] Passed (terminating): eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)+[MEASURE] Checking: get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): barified = "|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|"+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): Uninterpreted ops in DAG: [("|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|",2)]+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): recursive calls found = 1+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): trying length arg1+[MEASURE] replayDAG {get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)}: replaying 13 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq (SBVTuple2 String Int))) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () String) ; tracks user variable "arg1"+[GOOD] (declare-fun s14 () Int) ; tracks user variable "__internal_sbv_s14"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Int (seq.len s0))+[GOOD] (define-fun s5 () Bool (= s2 s4))+[GOOD] (define-fun s6 () Bool (not s5))+[GOOD] (define-fun s7 () (SBVTuple2 String Int) (seq.nth s0 s2))+[GOOD] (define-fun s8 () String (proj_1_SBVTuple2 s7))+[GOOD] (define-fun s9 () Bool (= s1 s8))+[GOOD] (define-fun s10 () Bool (and s6 s9))+[GOOD] (define-fun s11 () Int (proj_2_SBVTuple2 s7))+[GOOD] (define-fun s12 () Int (- s4 s3))+[GOOD] (define-fun s13 () (Seq (SBVTuple2 String Int)) (seq.extract s0 s3 s12))+[GOOD] (define-fun s15 () Int (ite s10 s11 s14))+[GOOD] (define-fun s16 () Int (ite s5 s2 s15))+[GOOD] (define-fun s17 () Bool (>= s4 s2))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s17))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)}: replaying 13 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq (SBVTuple2 String Int))) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () String) ; tracks user variable "arg1"+[GOOD] (declare-fun s14 () Int) ; tracks user variable "__internal_sbv_s14"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Int (seq.len s0))+[GOOD] (define-fun s5 () Bool (= s2 s4))+[GOOD] (define-fun s6 () Bool (not s5))+[GOOD] (define-fun s7 () (SBVTuple2 String Int) (seq.nth s0 s2))+[GOOD] (define-fun s8 () String (proj_1_SBVTuple2 s7))+[GOOD] (define-fun s9 () Bool (= s1 s8))+[GOOD] (define-fun s10 () Bool (and s6 s9))+[GOOD] (define-fun s11 () Int (proj_2_SBVTuple2 s7))+[GOOD] (define-fun s12 () Int (- s4 s3))+[GOOD] (define-fun s13 () (Seq (SBVTuple2 String Int)) (seq.extract s0 s3 s12))+[GOOD] (define-fun s15 () Int (ite s10 s11 s14))+[GOOD] (define-fun s16 () Int (ite s5 s2 s15))+[GOOD] (define-fun s17 () Int (seq.len s13))+[GOOD] (define-fun s18 () Bool (not s10))+[GOOD] (define-fun s19 () Bool (and s6 s18))+[GOOD] (define-fun s20 () Bool (> s4 s17))+[GOOD] (define-fun s21 () Bool (=> s19 s20))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s21))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): length arg1 -> OK+[MEASURE] Passed (terminating): get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () (Seq (SBVTuple2 String Int)) (as seq.empty (Seq (SBVTuple2 String Int))))+[GOOD] (define-fun s7 () Int 0)+[GOOD] (define-fun s20 () Int 1)+[GOOD] (define-fun s33 () Expr ((as Val Expr) 0))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr) ; tracks user variable "e"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; |get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| :: [(SString, SInteger)] -> SString -> SInteger [Recursive]+[GOOD] (define-fun-rec |get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| ((l2_s0 (Seq (SBVTuple2 String Int))) (l2_s1 String)) Int+                                                 (let ((l2_s3 0))+                                                 (let ((l2_s11 1))+                                                 (let ((l2_s2 (seq.len l2_s0)))+                                                 (let ((l2_s4 (= l2_s2 l2_s3)))+                                                 (let ((l2_s5 (not l2_s4)))+                                                 (let ((l2_s6 (seq.nth l2_s0 l2_s3)))+                                                 (let ((l2_s7 (proj_1_SBVTuple2 l2_s6)))+                                                 (let ((l2_s8 (= l2_s1 l2_s7)))+                                                 (let ((l2_s9 (and l2_s5 l2_s8)))+                                                 (let ((l2_s10 (proj_2_SBVTuple2 l2_s6)))+                                                 (let ((l2_s12 (- l2_s2 l2_s11)))+                                                 (let ((l2_s13 (seq.extract l2_s0 l2_s11 l2_s12)))+                                                 (let ((l2_s14 (|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| l2_s13 l2_s1)))+                                                 (let ((l2_s15 (ite l2_s9 l2_s10 l2_s14)))+                                                 (let ((l2_s16 (ite l2_s4 l2_s3 l2_s15)))+                                                 l2_s16))))))))))))))))+[GOOD] ; |eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| :: [(SString, SInteger)] -> Expr -> SInteger [Recursive] [Refers to: |get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|]+[GOOD] (define-fun-rec |eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| ((l1_s0 (Seq (SBVTuple2 String Int))) (l1_s1 Expr)) Int+                                 (let ((l1_s2 ((as is-Val Bool) l1_s1)))+                                 (let ((l1_s3 (getVal_1 l1_s1)))+                                 (let ((l1_s4 ((as is-Var Bool) l1_s1)))+                                 (let ((l1_s5 (getVar_1 l1_s1)))+                                 (let ((l1_s6 (|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| l1_s0 l1_s5)))+                                 (let ((l1_s7 ((as is-Add Bool) l1_s1)))+                                 (let ((l1_s8 (getAdd_1 l1_s1)))+                                 (let ((l1_s9 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s8)))+                                 (let ((l1_s10 (getAdd_2 l1_s1)))+                                 (let ((l1_s11 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s10)))+                                 (let ((l1_s12 (+ l1_s9 l1_s11)))+                                 (let ((l1_s13 ((as is-Mul Bool) l1_s1)))+                                 (let ((l1_s14 (getMul_1 l1_s1)))+                                 (let ((l1_s15 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s14)))+                                 (let ((l1_s16 (getMul_2 l1_s1)))+                                 (let ((l1_s17 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s16)))+                                 (let ((l1_s18 (* l1_s15 l1_s17)))+                                 (let ((l1_s19 (getLet_1 l1_s1)))+                                 (let ((l1_s20 (getLet_2 l1_s1)))+                                 (let ((l1_s21 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s20)))+                                 (let ((l1_s22 ((as mkSBVTuple2 (SBVTuple2 String Int)) l1_s19 l1_s21)))+                                 (let ((l1_s23 (seq.unit l1_s22)))+                                 (let ((l1_s24 (seq.++ l1_s23 l1_s0)))+                                 (let ((l1_s25 (getLet_3 l1_s1)))+                                 (let ((l1_s26 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s24 l1_s25)))+                                 (let ((l1_s27 (ite l1_s13 l1_s18 l1_s26)))+                                 (let ((l1_s28 (ite l1_s7 l1_s12 l1_s27)))+                                 (let ((l1_s29 (ite l1_s4 l1_s6 l1_s28)))+                                 (let ((l1_s30 (ite l1_s2 l1_s3 l1_s29)))+                                 l1_s30))))))))))))))))))))))))))))))+[GOOD] ; --- assignments ---+[GOOD] (define-fun s1 () Bool ((as is-Mul Bool) s0))+[GOOD] (define-fun s3 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s4 () Expr (getAdd_1 s0))+[GOOD] (define-fun s5 () Bool ((as is-Val Bool) s4))+[GOOD] (define-fun s6 () Int (getVal_1 s4))+[GOOD] (define-fun s8 () Bool (= s6 s7))+[GOOD] (define-fun s9 () Bool (and s5 s8))+[GOOD] (define-fun s10 () Bool (and s3 s9))+[GOOD] (define-fun s11 () Expr (getAdd_2 s0))+[GOOD] (define-fun s12 () Bool ((as is-Val Bool) s11))+[GOOD] (define-fun s13 () Int (getVal_1 s11))+[GOOD] (define-fun s14 () Bool (= s7 s13))+[GOOD] (define-fun s15 () Bool (and s12 s14))+[GOOD] (define-fun s16 () Bool (and s3 s15))+[GOOD] (define-fun s17 () Expr (getMul_1 s0))+[GOOD] (define-fun s18 () Bool ((as is-Val Bool) s17))+[GOOD] (define-fun s19 () Int (getVal_1 s17))+[GOOD] (define-fun s21 () Bool (= s19 s20))+[GOOD] (define-fun s22 () Bool (and s18 s21))+[GOOD] (define-fun s23 () Bool (and s1 s22))+[GOOD] (define-fun s24 () Expr (getMul_2 s0))+[GOOD] (define-fun s25 () Bool ((as is-Val Bool) s24))+[GOOD] (define-fun s26 () Int (getVal_1 s24))+[GOOD] (define-fun s27 () Bool (= s20 s26))+[GOOD] (define-fun s28 () Bool (and s25 s27))+[GOOD] (define-fun s29 () Bool (and s1 s28))+[GOOD] (define-fun s30 () Bool (= s7 s19))+[GOOD] (define-fun s31 () Bool (and s18 s30))+[GOOD] (define-fun s32 () Bool (and s1 s31))+[GOOD] (define-fun s34 () Expr (ite s32 s33 s0))+[GOOD] (define-fun s35 () Expr (ite s29 s17 s34))+[GOOD] (define-fun s36 () Expr (ite s23 s24 s35))+[GOOD] (define-fun s37 () Expr (ite s16 s4 s36))+[GOOD] (define-fun s38 () Expr (ite s10 s11 s37))+[GOOD] (define-fun s39 () Int (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| s2 s38))+[GOOD] (define-fun s40 () Int (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| s2 s0))+[GOOD] (define-fun s41 () Bool (= s39 s40))+[GOOD] (define-fun s42 () Bool (=> s1 s41))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s42))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested25.gold view
@@ -0,0 +1,71 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Expr ((as Add Expr) ((as Mul Expr) ((as Val Expr) 2) ((as Val Expr) 3)) ((as Mul Expr) ((as Val Expr) 4) ((as Val Expr) 5))))+[GOOD] (define-fun s31 () Expr ((as Val Expr) 26))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s3 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s4 () Expr (getAdd_1 s0))+[GOOD] (define-fun s5 () Bool ((as is-Mul Bool) s4))+[GOOD] (define-fun s6 () Expr (getMul_1 s4))+[GOOD] (define-fun s7 () Bool ((as is-Val Bool) s6))+[GOOD] (define-fun s8 () Expr (getMul_2 s4))+[GOOD] (define-fun s9 () Bool ((as is-Val Bool) s8))+[GOOD] (define-fun s10 () Expr (getAdd_2 s0))+[GOOD] (define-fun s11 () Bool ((as is-Mul Bool) s10))+[GOOD] (define-fun s12 () Expr (getMul_1 s10))+[GOOD] (define-fun s13 () Bool ((as is-Val Bool) s12))+[GOOD] (define-fun s14 () Expr (getMul_2 s10))+[GOOD] (define-fun s15 () Bool ((as is-Val Bool) s14))+[GOOD] (define-fun s16 () Bool (and s13 s15))+[GOOD] (define-fun s17 () Bool (and s11 s16))+[GOOD] (define-fun s18 () Bool (and s9 s17))+[GOOD] (define-fun s19 () Bool (and s7 s18))+[GOOD] (define-fun s20 () Bool (and s5 s19))+[GOOD] (define-fun s21 () Bool (and s3 s20))+[GOOD] (define-fun s22 () Int (getVal_1 s6))+[GOOD] (define-fun s23 () Int (getVal_1 s8))+[GOOD] (define-fun s24 () Int (* s22 s23))+[GOOD] (define-fun s25 () Int (getVal_1 s12))+[GOOD] (define-fun s26 () Int (getVal_1 s14))+[GOOD] (define-fun s27 () Int (* s25 s26))+[GOOD] (define-fun s28 () Int (+ s24 s27))+[GOOD] (define-fun s29 () Expr ((as Val Expr) s28))+[GOOD] (define-fun s30 () Expr (ite s21 s29 s0))+[GOOD] (define-fun s32 () Bool (distinct s30 s31))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s32)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested25c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested26.gold view
@@ -0,0 +1,71 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Expr ((as Add Expr) ((as Mul Expr) ((as Val Expr) 0) ((as Val Expr) 99)) ((as Mul Expr) ((as Val Expr) 1) ((as Val Expr) 1))))+[GOOD] (define-fun s31 () Expr ((as Val Expr) 1))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s3 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s4 () Expr (getAdd_1 s0))+[GOOD] (define-fun s5 () Bool ((as is-Mul Bool) s4))+[GOOD] (define-fun s6 () Expr (getMul_1 s4))+[GOOD] (define-fun s7 () Bool ((as is-Val Bool) s6))+[GOOD] (define-fun s8 () Expr (getMul_2 s4))+[GOOD] (define-fun s9 () Bool ((as is-Val Bool) s8))+[GOOD] (define-fun s10 () Expr (getAdd_2 s0))+[GOOD] (define-fun s11 () Bool ((as is-Mul Bool) s10))+[GOOD] (define-fun s12 () Expr (getMul_1 s10))+[GOOD] (define-fun s13 () Bool ((as is-Val Bool) s12))+[GOOD] (define-fun s14 () Expr (getMul_2 s10))+[GOOD] (define-fun s15 () Bool ((as is-Val Bool) s14))+[GOOD] (define-fun s16 () Bool (and s13 s15))+[GOOD] (define-fun s17 () Bool (and s11 s16))+[GOOD] (define-fun s18 () Bool (and s9 s17))+[GOOD] (define-fun s19 () Bool (and s7 s18))+[GOOD] (define-fun s20 () Bool (and s5 s19))+[GOOD] (define-fun s21 () Bool (and s3 s20))+[GOOD] (define-fun s22 () Int (getVal_1 s6))+[GOOD] (define-fun s23 () Int (getVal_1 s8))+[GOOD] (define-fun s24 () Int (* s22 s23))+[GOOD] (define-fun s25 () Int (getVal_1 s12))+[GOOD] (define-fun s26 () Int (getVal_1 s14))+[GOOD] (define-fun s27 () Int (* s25 s26))+[GOOD] (define-fun s28 () Int (+ s24 s27))+[GOOD] (define-fun s29 () Expr ((as Val Expr) s28))+[GOOD] (define-fun s30 () Expr (ite s21 s29 s0))+[GOOD] (define-fun s32 () Bool (distinct s30 s31))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s32)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested26c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested27.gold view
@@ -0,0 +1,70 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Expr ((as Add Expr) ((as Mul Expr) ((as Val Expr) 2) ((as Val Expr) 3)) ((as Var Expr) "x")))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s3 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s4 () Expr (getAdd_1 s0))+[GOOD] (define-fun s5 () Bool ((as is-Mul Bool) s4))+[GOOD] (define-fun s6 () Expr (getMul_1 s4))+[GOOD] (define-fun s7 () Bool ((as is-Val Bool) s6))+[GOOD] (define-fun s8 () Expr (getMul_2 s4))+[GOOD] (define-fun s9 () Bool ((as is-Val Bool) s8))+[GOOD] (define-fun s10 () Expr (getAdd_2 s0))+[GOOD] (define-fun s11 () Bool ((as is-Mul Bool) s10))+[GOOD] (define-fun s12 () Expr (getMul_1 s10))+[GOOD] (define-fun s13 () Bool ((as is-Val Bool) s12))+[GOOD] (define-fun s14 () Expr (getMul_2 s10))+[GOOD] (define-fun s15 () Bool ((as is-Val Bool) s14))+[GOOD] (define-fun s16 () Bool (and s13 s15))+[GOOD] (define-fun s17 () Bool (and s11 s16))+[GOOD] (define-fun s18 () Bool (and s9 s17))+[GOOD] (define-fun s19 () Bool (and s7 s18))+[GOOD] (define-fun s20 () Bool (and s5 s19))+[GOOD] (define-fun s21 () Bool (and s3 s20))+[GOOD] (define-fun s22 () Int (getVal_1 s6))+[GOOD] (define-fun s23 () Int (getVal_1 s8))+[GOOD] (define-fun s24 () Int (* s22 s23))+[GOOD] (define-fun s25 () Int (getVal_1 s12))+[GOOD] (define-fun s26 () Int (getVal_1 s14))+[GOOD] (define-fun s27 () Int (* s25 s26))+[GOOD] (define-fun s28 () Int (+ s24 s27))+[GOOD] (define-fun s29 () Expr ((as Val Expr) s28))+[GOOD] (define-fun s30 () Expr (ite s21 s29 s0))+[GOOD] (define-fun s31 () Bool (distinct s1 s30))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s31)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested27c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested28.gold view
@@ -0,0 +1,70 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Expr ((as Mul Expr) ((as Val Expr) 2) ((as Val Expr) 3)))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s3 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s4 () Expr (getAdd_1 s0))+[GOOD] (define-fun s5 () Bool ((as is-Mul Bool) s4))+[GOOD] (define-fun s6 () Expr (getMul_1 s4))+[GOOD] (define-fun s7 () Bool ((as is-Val Bool) s6))+[GOOD] (define-fun s8 () Expr (getMul_2 s4))+[GOOD] (define-fun s9 () Bool ((as is-Val Bool) s8))+[GOOD] (define-fun s10 () Expr (getAdd_2 s0))+[GOOD] (define-fun s11 () Bool ((as is-Mul Bool) s10))+[GOOD] (define-fun s12 () Expr (getMul_1 s10))+[GOOD] (define-fun s13 () Bool ((as is-Val Bool) s12))+[GOOD] (define-fun s14 () Expr (getMul_2 s10))+[GOOD] (define-fun s15 () Bool ((as is-Val Bool) s14))+[GOOD] (define-fun s16 () Bool (and s13 s15))+[GOOD] (define-fun s17 () Bool (and s11 s16))+[GOOD] (define-fun s18 () Bool (and s9 s17))+[GOOD] (define-fun s19 () Bool (and s7 s18))+[GOOD] (define-fun s20 () Bool (and s5 s19))+[GOOD] (define-fun s21 () Bool (and s3 s20))+[GOOD] (define-fun s22 () Int (getVal_1 s6))+[GOOD] (define-fun s23 () Int (getVal_1 s8))+[GOOD] (define-fun s24 () Int (* s22 s23))+[GOOD] (define-fun s25 () Int (getVal_1 s12))+[GOOD] (define-fun s26 () Int (getVal_1 s14))+[GOOD] (define-fun s27 () Int (* s25 s26))+[GOOD] (define-fun s28 () Int (+ s24 s27))+[GOOD] (define-fun s29 () Expr ((as Val Expr) s28))+[GOOD] (define-fun s30 () Expr (ite s21 s29 s0))+[GOOD] (define-fun s31 () Bool (distinct s1 s30))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s31)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested28c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested29.gold view
@@ -0,0 +1,243 @@+[MEASURE] Verifying termination measures for: eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer), eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer), get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)+[MEASURE] Checking: eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): not in a multi-member cycle, skipping mutual check+[MEASURE] Passed (terminating): eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)+[MEASURE] Checking: eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): barified = "|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|"+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): Uninterpreted ops in DAG: [("|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)|",2)]+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): recursive calls found = 6+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): trying sbv.dt.size.Expr arg2+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): sbv.dt.size.Expr arg2 -> OK (structural recursion)+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer): sbv.dt.size.Expr arg2 -> OK+[MEASURE] Passed (terminating): eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)+[MEASURE] Checking: get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): barified = "|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|"+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): Uninterpreted ops in DAG: [("|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|",2)]+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): recursive calls found = 1+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): trying length arg1+[MEASURE] replayDAG {get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)}: replaying 13 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq (SBVTuple2 String Int))) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () String) ; tracks user variable "arg1"+[GOOD] (declare-fun s14 () Int) ; tracks user variable "__internal_sbv_s14"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Int (seq.len s0))+[GOOD] (define-fun s5 () Bool (= s2 s4))+[GOOD] (define-fun s6 () Bool (not s5))+[GOOD] (define-fun s7 () (SBVTuple2 String Int) (seq.nth s0 s2))+[GOOD] (define-fun s8 () String (proj_1_SBVTuple2 s7))+[GOOD] (define-fun s9 () Bool (= s1 s8))+[GOOD] (define-fun s10 () Bool (and s6 s9))+[GOOD] (define-fun s11 () Int (proj_2_SBVTuple2 s7))+[GOOD] (define-fun s12 () Int (- s4 s3))+[GOOD] (define-fun s13 () (Seq (SBVTuple2 String Int)) (seq.extract s0 s3 s12))+[GOOD] (define-fun s15 () Int (ite s10 s11 s14))+[GOOD] (define-fun s16 () Int (ite s5 s2 s15))+[GOOD] (define-fun s17 () Bool (>= s4 s2))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s17))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)}: replaying 13 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq (SBVTuple2 String Int))) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () String) ; tracks user variable "arg1"+[GOOD] (declare-fun s14 () Int) ; tracks user variable "__internal_sbv_s14"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Int (seq.len s0))+[GOOD] (define-fun s5 () Bool (= s2 s4))+[GOOD] (define-fun s6 () Bool (not s5))+[GOOD] (define-fun s7 () (SBVTuple2 String Int) (seq.nth s0 s2))+[GOOD] (define-fun s8 () String (proj_1_SBVTuple2 s7))+[GOOD] (define-fun s9 () Bool (= s1 s8))+[GOOD] (define-fun s10 () Bool (and s6 s9))+[GOOD] (define-fun s11 () Int (proj_2_SBVTuple2 s7))+[GOOD] (define-fun s12 () Int (- s4 s3))+[GOOD] (define-fun s13 () (Seq (SBVTuple2 String Int)) (seq.extract s0 s3 s12))+[GOOD] (define-fun s15 () Int (ite s10 s11 s14))+[GOOD] (define-fun s16 () Int (ite s5 s2 s15))+[GOOD] (define-fun s17 () Int (seq.len s13))+[GOOD] (define-fun s18 () Bool (not s10))+[GOOD] (define-fun s19 () Bool (and s6 s18))+[GOOD] (define-fun s20 () Bool (> s4 s17))+[GOOD] (define-fun s21 () Bool (=> s19 s20))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s21))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): length arg1 -> OK+[MEASURE] Passed (terminating): get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () (Seq (SBVTuple2 String Int)) (as seq.empty (Seq (SBVTuple2 String Int))))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr) ; tracks user variable "e"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; |get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| :: [(SString, SInteger)] -> SString -> SInteger [Recursive]+[GOOD] (define-fun-rec |get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| ((l2_s0 (Seq (SBVTuple2 String Int))) (l2_s1 String)) Int+                                                 (let ((l2_s3 0))+                                                 (let ((l2_s11 1))+                                                 (let ((l2_s2 (seq.len l2_s0)))+                                                 (let ((l2_s4 (= l2_s2 l2_s3)))+                                                 (let ((l2_s5 (not l2_s4)))+                                                 (let ((l2_s6 (seq.nth l2_s0 l2_s3)))+                                                 (let ((l2_s7 (proj_1_SBVTuple2 l2_s6)))+                                                 (let ((l2_s8 (= l2_s1 l2_s7)))+                                                 (let ((l2_s9 (and l2_s5 l2_s8)))+                                                 (let ((l2_s10 (proj_2_SBVTuple2 l2_s6)))+                                                 (let ((l2_s12 (- l2_s2 l2_s11)))+                                                 (let ((l2_s13 (seq.extract l2_s0 l2_s11 l2_s12)))+                                                 (let ((l2_s14 (|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| l2_s13 l2_s1)))+                                                 (let ((l2_s15 (ite l2_s9 l2_s10 l2_s14)))+                                                 (let ((l2_s16 (ite l2_s4 l2_s3 l2_s15)))+                                                 l2_s16))))))))))))))))+[GOOD] ; |eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| :: [(SString, SInteger)] -> Expr -> SInteger [Recursive] [Refers to: |get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|]+[GOOD] (define-fun-rec |eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| ((l1_s0 (Seq (SBVTuple2 String Int))) (l1_s1 Expr)) Int+                                 (let ((l1_s2 ((as is-Val Bool) l1_s1)))+                                 (let ((l1_s3 (getVal_1 l1_s1)))+                                 (let ((l1_s4 ((as is-Var Bool) l1_s1)))+                                 (let ((l1_s5 (getVar_1 l1_s1)))+                                 (let ((l1_s6 (|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| l1_s0 l1_s5)))+                                 (let ((l1_s7 ((as is-Add Bool) l1_s1)))+                                 (let ((l1_s8 (getAdd_1 l1_s1)))+                                 (let ((l1_s9 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s8)))+                                 (let ((l1_s10 (getAdd_2 l1_s1)))+                                 (let ((l1_s11 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s10)))+                                 (let ((l1_s12 (+ l1_s9 l1_s11)))+                                 (let ((l1_s13 ((as is-Mul Bool) l1_s1)))+                                 (let ((l1_s14 (getMul_1 l1_s1)))+                                 (let ((l1_s15 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s14)))+                                 (let ((l1_s16 (getMul_2 l1_s1)))+                                 (let ((l1_s17 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s16)))+                                 (let ((l1_s18 (* l1_s15 l1_s17)))+                                 (let ((l1_s19 (getLet_1 l1_s1)))+                                 (let ((l1_s20 (getLet_2 l1_s1)))+                                 (let ((l1_s21 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s20)))+                                 (let ((l1_s22 ((as mkSBVTuple2 (SBVTuple2 String Int)) l1_s19 l1_s21)))+                                 (let ((l1_s23 (seq.unit l1_s22)))+                                 (let ((l1_s24 (seq.++ l1_s23 l1_s0)))+                                 (let ((l1_s25 (getLet_3 l1_s1)))+                                 (let ((l1_s26 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s24 l1_s25)))+                                 (let ((l1_s27 (ite l1_s13 l1_s18 l1_s26)))+                                 (let ((l1_s28 (ite l1_s7 l1_s12 l1_s27)))+                                 (let ((l1_s29 (ite l1_s4 l1_s6 l1_s28)))+                                 (let ((l1_s30 (ite l1_s2 l1_s3 l1_s29)))+                                 l1_s30))))))))))))))))))))))))))))))+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s3 () Expr (getAdd_1 s0))+[GOOD] (define-fun s4 () Bool ((as is-Mul Bool) s3))+[GOOD] (define-fun s5 () Expr (getMul_1 s3))+[GOOD] (define-fun s6 () Bool ((as is-Val Bool) s5))+[GOOD] (define-fun s7 () Expr (getMul_2 s3))+[GOOD] (define-fun s8 () Bool ((as is-Val Bool) s7))+[GOOD] (define-fun s9 () Expr (getAdd_2 s0))+[GOOD] (define-fun s10 () Bool ((as is-Mul Bool) s9))+[GOOD] (define-fun s11 () Expr (getMul_1 s9))+[GOOD] (define-fun s12 () Bool ((as is-Val Bool) s11))+[GOOD] (define-fun s13 () Expr (getMul_2 s9))+[GOOD] (define-fun s14 () Bool ((as is-Val Bool) s13))+[GOOD] (define-fun s15 () Bool (and s12 s14))+[GOOD] (define-fun s16 () Bool (and s10 s15))+[GOOD] (define-fun s17 () Bool (and s8 s16))+[GOOD] (define-fun s18 () Bool (and s6 s17))+[GOOD] (define-fun s19 () Bool (and s4 s18))+[GOOD] (define-fun s20 () Bool (and s2 s19))+[GOOD] (define-fun s21 () Int (getVal_1 s5))+[GOOD] (define-fun s22 () Int (getVal_1 s7))+[GOOD] (define-fun s23 () Int (* s21 s22))+[GOOD] (define-fun s24 () Int (getVal_1 s11))+[GOOD] (define-fun s25 () Int (getVal_1 s13))+[GOOD] (define-fun s26 () Int (* s24 s25))+[GOOD] (define-fun s27 () Int (+ s23 s26))+[GOOD] (define-fun s28 () Expr ((as Val Expr) s27))+[GOOD] (define-fun s29 () Expr (ite s20 s28 s0))+[GOOD] (define-fun s30 () Int (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| s1 s29))+[GOOD] (define-fun s31 () Int (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| s1 s0))+[GOOD] (define-fun s32 () Bool (= s30 s31))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s32))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested30.gold view
@@ -0,0 +1,108 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Expr ((as Add Expr) ((as Mul Expr) ((as Val Expr) 2) ((as Val Expr) 3)) ((as Mul Expr) ((as Val Expr) 4) ((as Val Expr) 5))))+[GOOD] (define-fun s7 () Int 0)+[GOOD] (define-fun s21 () Int 1)+[GOOD] (define-fun s34 () Expr ((as Val Expr) 0))+[GOOD] (define-fun s68 () Expr ((as Val Expr) 26))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s3 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s4 () Expr (getAdd_1 s0))+[GOOD] (define-fun s5 () Bool ((as is-Val Bool) s4))+[GOOD] (define-fun s6 () Int (getVal_1 s4))+[GOOD] (define-fun s8 () Bool (= s6 s7))+[GOOD] (define-fun s9 () Bool (and s5 s8))+[GOOD] (define-fun s10 () Bool (and s3 s9))+[GOOD] (define-fun s11 () Expr (getAdd_2 s0))+[GOOD] (define-fun s12 () Bool ((as is-Val Bool) s11))+[GOOD] (define-fun s13 () Int (getVal_1 s11))+[GOOD] (define-fun s14 () Bool (= s7 s13))+[GOOD] (define-fun s15 () Bool (and s12 s14))+[GOOD] (define-fun s16 () Bool (and s3 s15))+[GOOD] (define-fun s17 () Bool ((as is-Mul Bool) s0))+[GOOD] (define-fun s18 () Expr (getMul_1 s0))+[GOOD] (define-fun s19 () Bool ((as is-Val Bool) s18))+[GOOD] (define-fun s20 () Int (getVal_1 s18))+[GOOD] (define-fun s22 () Bool (= s20 s21))+[GOOD] (define-fun s23 () Bool (and s19 s22))+[GOOD] (define-fun s24 () Bool (and s17 s23))+[GOOD] (define-fun s25 () Expr (getMul_2 s0))+[GOOD] (define-fun s26 () Bool ((as is-Val Bool) s25))+[GOOD] (define-fun s27 () Int (getVal_1 s25))+[GOOD] (define-fun s28 () Bool (= s21 s27))+[GOOD] (define-fun s29 () Bool (and s26 s28))+[GOOD] (define-fun s30 () Bool (and s17 s29))+[GOOD] (define-fun s31 () Bool (= s7 s20))+[GOOD] (define-fun s32 () Bool (and s19 s31))+[GOOD] (define-fun s33 () Bool (and s17 s32))+[GOOD] (define-fun s35 () Expr (ite s33 s34 s0))+[GOOD] (define-fun s36 () Expr (ite s30 s18 s35))+[GOOD] (define-fun s37 () Expr (ite s24 s25 s36))+[GOOD] (define-fun s38 () Expr (ite s16 s4 s37))+[GOOD] (define-fun s39 () Expr (ite s10 s11 s38))+[GOOD] (define-fun s40 () Bool ((as is-Add Bool) s39))+[GOOD] (define-fun s41 () Expr (getAdd_1 s39))+[GOOD] (define-fun s42 () Bool ((as is-Mul Bool) s41))+[GOOD] (define-fun s43 () Expr (getMul_1 s41))+[GOOD] (define-fun s44 () Bool ((as is-Val Bool) s43))+[GOOD] (define-fun s45 () Expr (getMul_2 s41))+[GOOD] (define-fun s46 () Bool ((as is-Val Bool) s45))+[GOOD] (define-fun s47 () Expr (getAdd_2 s39))+[GOOD] (define-fun s48 () Bool ((as is-Mul Bool) s47))+[GOOD] (define-fun s49 () Expr (getMul_1 s47))+[GOOD] (define-fun s50 () Bool ((as is-Val Bool) s49))+[GOOD] (define-fun s51 () Expr (getMul_2 s47))+[GOOD] (define-fun s52 () Bool ((as is-Val Bool) s51))+[GOOD] (define-fun s53 () Bool (and s50 s52))+[GOOD] (define-fun s54 () Bool (and s48 s53))+[GOOD] (define-fun s55 () Bool (and s46 s54))+[GOOD] (define-fun s56 () Bool (and s44 s55))+[GOOD] (define-fun s57 () Bool (and s42 s56))+[GOOD] (define-fun s58 () Bool (and s40 s57))+[GOOD] (define-fun s59 () Int (getVal_1 s43))+[GOOD] (define-fun s60 () Int (getVal_1 s45))+[GOOD] (define-fun s61 () Int (* s59 s60))+[GOOD] (define-fun s62 () Int (getVal_1 s49))+[GOOD] (define-fun s63 () Int (getVal_1 s51))+[GOOD] (define-fun s64 () Int (* s62 s63))+[GOOD] (define-fun s65 () Int (+ s61 s64))+[GOOD] (define-fun s66 () Expr ((as Val Expr) s65))+[GOOD] (define-fun s67 () Expr (ite s58 s66 s39))+[GOOD] (define-fun s69 () Bool (distinct s67 s68))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s69)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested30c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested31.gold view
@@ -0,0 +1,108 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Expr ((as Add Expr) ((as Mul Expr) ((as Val Expr) 1) ((as Val Expr) 2)) ((as Mul Expr) ((as Val Expr) 0) ((as Val Expr) 4))))+[GOOD] (define-fun s7 () Int 0)+[GOOD] (define-fun s21 () Int 1)+[GOOD] (define-fun s34 () Expr ((as Val Expr) 0))+[GOOD] (define-fun s68 () Expr ((as Val Expr) 2))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s3 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s4 () Expr (getAdd_1 s0))+[GOOD] (define-fun s5 () Bool ((as is-Val Bool) s4))+[GOOD] (define-fun s6 () Int (getVal_1 s4))+[GOOD] (define-fun s8 () Bool (= s6 s7))+[GOOD] (define-fun s9 () Bool (and s5 s8))+[GOOD] (define-fun s10 () Bool (and s3 s9))+[GOOD] (define-fun s11 () Expr (getAdd_2 s0))+[GOOD] (define-fun s12 () Bool ((as is-Val Bool) s11))+[GOOD] (define-fun s13 () Int (getVal_1 s11))+[GOOD] (define-fun s14 () Bool (= s7 s13))+[GOOD] (define-fun s15 () Bool (and s12 s14))+[GOOD] (define-fun s16 () Bool (and s3 s15))+[GOOD] (define-fun s17 () Bool ((as is-Mul Bool) s0))+[GOOD] (define-fun s18 () Expr (getMul_1 s0))+[GOOD] (define-fun s19 () Bool ((as is-Val Bool) s18))+[GOOD] (define-fun s20 () Int (getVal_1 s18))+[GOOD] (define-fun s22 () Bool (= s20 s21))+[GOOD] (define-fun s23 () Bool (and s19 s22))+[GOOD] (define-fun s24 () Bool (and s17 s23))+[GOOD] (define-fun s25 () Expr (getMul_2 s0))+[GOOD] (define-fun s26 () Bool ((as is-Val Bool) s25))+[GOOD] (define-fun s27 () Int (getVal_1 s25))+[GOOD] (define-fun s28 () Bool (= s21 s27))+[GOOD] (define-fun s29 () Bool (and s26 s28))+[GOOD] (define-fun s30 () Bool (and s17 s29))+[GOOD] (define-fun s31 () Bool (= s7 s20))+[GOOD] (define-fun s32 () Bool (and s19 s31))+[GOOD] (define-fun s33 () Bool (and s17 s32))+[GOOD] (define-fun s35 () Expr (ite s33 s34 s0))+[GOOD] (define-fun s36 () Expr (ite s30 s18 s35))+[GOOD] (define-fun s37 () Expr (ite s24 s25 s36))+[GOOD] (define-fun s38 () Expr (ite s16 s4 s37))+[GOOD] (define-fun s39 () Expr (ite s10 s11 s38))+[GOOD] (define-fun s40 () Bool ((as is-Add Bool) s39))+[GOOD] (define-fun s41 () Expr (getAdd_1 s39))+[GOOD] (define-fun s42 () Bool ((as is-Mul Bool) s41))+[GOOD] (define-fun s43 () Expr (getMul_1 s41))+[GOOD] (define-fun s44 () Bool ((as is-Val Bool) s43))+[GOOD] (define-fun s45 () Expr (getMul_2 s41))+[GOOD] (define-fun s46 () Bool ((as is-Val Bool) s45))+[GOOD] (define-fun s47 () Expr (getAdd_2 s39))+[GOOD] (define-fun s48 () Bool ((as is-Mul Bool) s47))+[GOOD] (define-fun s49 () Expr (getMul_1 s47))+[GOOD] (define-fun s50 () Bool ((as is-Val Bool) s49))+[GOOD] (define-fun s51 () Expr (getMul_2 s47))+[GOOD] (define-fun s52 () Bool ((as is-Val Bool) s51))+[GOOD] (define-fun s53 () Bool (and s50 s52))+[GOOD] (define-fun s54 () Bool (and s48 s53))+[GOOD] (define-fun s55 () Bool (and s46 s54))+[GOOD] (define-fun s56 () Bool (and s44 s55))+[GOOD] (define-fun s57 () Bool (and s42 s56))+[GOOD] (define-fun s58 () Bool (and s40 s57))+[GOOD] (define-fun s59 () Int (getVal_1 s43))+[GOOD] (define-fun s60 () Int (getVal_1 s45))+[GOOD] (define-fun s61 () Int (* s59 s60))+[GOOD] (define-fun s62 () Int (getVal_1 s49))+[GOOD] (define-fun s63 () Int (getVal_1 s51))+[GOOD] (define-fun s64 () Int (* s62 s63))+[GOOD] (define-fun s65 () Int (+ s61 s64))+[GOOD] (define-fun s66 () Expr ((as Val Expr) s65))+[GOOD] (define-fun s67 () Expr (ite s58 s66 s39))+[GOOD] (define-fun s69 () Bool (distinct s67 s68))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s69)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested31c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested32.gold view
@@ -0,0 +1,108 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Expr ((as Mul Expr) ((as Val Expr) 1) ((as Add Expr) ((as Mul Expr) ((as Val Expr) 2) ((as Val Expr) 3)) ((as Mul Expr) ((as Val Expr) 4) ((as Val Expr) 5)))))+[GOOD] (define-fun s7 () Int 0)+[GOOD] (define-fun s21 () Int 1)+[GOOD] (define-fun s34 () Expr ((as Val Expr) 0))+[GOOD] (define-fun s68 () Expr ((as Val Expr) 26))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s3 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s4 () Expr (getAdd_1 s0))+[GOOD] (define-fun s5 () Bool ((as is-Val Bool) s4))+[GOOD] (define-fun s6 () Int (getVal_1 s4))+[GOOD] (define-fun s8 () Bool (= s6 s7))+[GOOD] (define-fun s9 () Bool (and s5 s8))+[GOOD] (define-fun s10 () Bool (and s3 s9))+[GOOD] (define-fun s11 () Expr (getAdd_2 s0))+[GOOD] (define-fun s12 () Bool ((as is-Val Bool) s11))+[GOOD] (define-fun s13 () Int (getVal_1 s11))+[GOOD] (define-fun s14 () Bool (= s7 s13))+[GOOD] (define-fun s15 () Bool (and s12 s14))+[GOOD] (define-fun s16 () Bool (and s3 s15))+[GOOD] (define-fun s17 () Bool ((as is-Mul Bool) s0))+[GOOD] (define-fun s18 () Expr (getMul_1 s0))+[GOOD] (define-fun s19 () Bool ((as is-Val Bool) s18))+[GOOD] (define-fun s20 () Int (getVal_1 s18))+[GOOD] (define-fun s22 () Bool (= s20 s21))+[GOOD] (define-fun s23 () Bool (and s19 s22))+[GOOD] (define-fun s24 () Bool (and s17 s23))+[GOOD] (define-fun s25 () Expr (getMul_2 s0))+[GOOD] (define-fun s26 () Bool ((as is-Val Bool) s25))+[GOOD] (define-fun s27 () Int (getVal_1 s25))+[GOOD] (define-fun s28 () Bool (= s21 s27))+[GOOD] (define-fun s29 () Bool (and s26 s28))+[GOOD] (define-fun s30 () Bool (and s17 s29))+[GOOD] (define-fun s31 () Bool (= s7 s20))+[GOOD] (define-fun s32 () Bool (and s19 s31))+[GOOD] (define-fun s33 () Bool (and s17 s32))+[GOOD] (define-fun s35 () Expr (ite s33 s34 s0))+[GOOD] (define-fun s36 () Expr (ite s30 s18 s35))+[GOOD] (define-fun s37 () Expr (ite s24 s25 s36))+[GOOD] (define-fun s38 () Expr (ite s16 s4 s37))+[GOOD] (define-fun s39 () Expr (ite s10 s11 s38))+[GOOD] (define-fun s40 () Bool ((as is-Add Bool) s39))+[GOOD] (define-fun s41 () Expr (getAdd_1 s39))+[GOOD] (define-fun s42 () Bool ((as is-Mul Bool) s41))+[GOOD] (define-fun s43 () Expr (getMul_1 s41))+[GOOD] (define-fun s44 () Bool ((as is-Val Bool) s43))+[GOOD] (define-fun s45 () Expr (getMul_2 s41))+[GOOD] (define-fun s46 () Bool ((as is-Val Bool) s45))+[GOOD] (define-fun s47 () Expr (getAdd_2 s39))+[GOOD] (define-fun s48 () Bool ((as is-Mul Bool) s47))+[GOOD] (define-fun s49 () Expr (getMul_1 s47))+[GOOD] (define-fun s50 () Bool ((as is-Val Bool) s49))+[GOOD] (define-fun s51 () Expr (getMul_2 s47))+[GOOD] (define-fun s52 () Bool ((as is-Val Bool) s51))+[GOOD] (define-fun s53 () Bool (and s50 s52))+[GOOD] (define-fun s54 () Bool (and s48 s53))+[GOOD] (define-fun s55 () Bool (and s46 s54))+[GOOD] (define-fun s56 () Bool (and s44 s55))+[GOOD] (define-fun s57 () Bool (and s42 s56))+[GOOD] (define-fun s58 () Bool (and s40 s57))+[GOOD] (define-fun s59 () Int (getVal_1 s43))+[GOOD] (define-fun s60 () Int (getVal_1 s45))+[GOOD] (define-fun s61 () Int (* s59 s60))+[GOOD] (define-fun s62 () Int (getVal_1 s49))+[GOOD] (define-fun s63 () Int (getVal_1 s51))+[GOOD] (define-fun s64 () Int (* s62 s63))+[GOOD] (define-fun s65 () Int (+ s61 s64))+[GOOD] (define-fun s66 () Expr ((as Val Expr) s65))+[GOOD] (define-fun s67 () Expr (ite s58 s66 s39))+[GOOD] (define-fun s69 () Bool (distinct s67 s68))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s69)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested32c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested33.gold view
@@ -0,0 +1,108 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Expr ((as Add Expr) ((as Val Expr) 0) ((as Add Expr) ((as Mul Expr) ((as Val Expr) 2) ((as Val Expr) 3)) ((as Mul Expr) ((as Val Expr) 4) ((as Val Expr) 5)))))+[GOOD] (define-fun s7 () Int 0)+[GOOD] (define-fun s21 () Int 1)+[GOOD] (define-fun s34 () Expr ((as Val Expr) 0))+[GOOD] (define-fun s68 () Expr ((as Val Expr) 26))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s3 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s4 () Expr (getAdd_1 s0))+[GOOD] (define-fun s5 () Bool ((as is-Val Bool) s4))+[GOOD] (define-fun s6 () Int (getVal_1 s4))+[GOOD] (define-fun s8 () Bool (= s6 s7))+[GOOD] (define-fun s9 () Bool (and s5 s8))+[GOOD] (define-fun s10 () Bool (and s3 s9))+[GOOD] (define-fun s11 () Expr (getAdd_2 s0))+[GOOD] (define-fun s12 () Bool ((as is-Val Bool) s11))+[GOOD] (define-fun s13 () Int (getVal_1 s11))+[GOOD] (define-fun s14 () Bool (= s7 s13))+[GOOD] (define-fun s15 () Bool (and s12 s14))+[GOOD] (define-fun s16 () Bool (and s3 s15))+[GOOD] (define-fun s17 () Bool ((as is-Mul Bool) s0))+[GOOD] (define-fun s18 () Expr (getMul_1 s0))+[GOOD] (define-fun s19 () Bool ((as is-Val Bool) s18))+[GOOD] (define-fun s20 () Int (getVal_1 s18))+[GOOD] (define-fun s22 () Bool (= s20 s21))+[GOOD] (define-fun s23 () Bool (and s19 s22))+[GOOD] (define-fun s24 () Bool (and s17 s23))+[GOOD] (define-fun s25 () Expr (getMul_2 s0))+[GOOD] (define-fun s26 () Bool ((as is-Val Bool) s25))+[GOOD] (define-fun s27 () Int (getVal_1 s25))+[GOOD] (define-fun s28 () Bool (= s21 s27))+[GOOD] (define-fun s29 () Bool (and s26 s28))+[GOOD] (define-fun s30 () Bool (and s17 s29))+[GOOD] (define-fun s31 () Bool (= s7 s20))+[GOOD] (define-fun s32 () Bool (and s19 s31))+[GOOD] (define-fun s33 () Bool (and s17 s32))+[GOOD] (define-fun s35 () Expr (ite s33 s34 s0))+[GOOD] (define-fun s36 () Expr (ite s30 s18 s35))+[GOOD] (define-fun s37 () Expr (ite s24 s25 s36))+[GOOD] (define-fun s38 () Expr (ite s16 s4 s37))+[GOOD] (define-fun s39 () Expr (ite s10 s11 s38))+[GOOD] (define-fun s40 () Bool ((as is-Add Bool) s39))+[GOOD] (define-fun s41 () Expr (getAdd_1 s39))+[GOOD] (define-fun s42 () Bool ((as is-Mul Bool) s41))+[GOOD] (define-fun s43 () Expr (getMul_1 s41))+[GOOD] (define-fun s44 () Bool ((as is-Val Bool) s43))+[GOOD] (define-fun s45 () Expr (getMul_2 s41))+[GOOD] (define-fun s46 () Bool ((as is-Val Bool) s45))+[GOOD] (define-fun s47 () Expr (getAdd_2 s39))+[GOOD] (define-fun s48 () Bool ((as is-Mul Bool) s47))+[GOOD] (define-fun s49 () Expr (getMul_1 s47))+[GOOD] (define-fun s50 () Bool ((as is-Val Bool) s49))+[GOOD] (define-fun s51 () Expr (getMul_2 s47))+[GOOD] (define-fun s52 () Bool ((as is-Val Bool) s51))+[GOOD] (define-fun s53 () Bool (and s50 s52))+[GOOD] (define-fun s54 () Bool (and s48 s53))+[GOOD] (define-fun s55 () Bool (and s46 s54))+[GOOD] (define-fun s56 () Bool (and s44 s55))+[GOOD] (define-fun s57 () Bool (and s42 s56))+[GOOD] (define-fun s58 () Bool (and s40 s57))+[GOOD] (define-fun s59 () Int (getVal_1 s43))+[GOOD] (define-fun s60 () Int (getVal_1 s45))+[GOOD] (define-fun s61 () Int (* s59 s60))+[GOOD] (define-fun s62 () Int (getVal_1 s49))+[GOOD] (define-fun s63 () Int (getVal_1 s51))+[GOOD] (define-fun s64 () Int (* s62 s63))+[GOOD] (define-fun s65 () Int (+ s61 s64))+[GOOD] (define-fun s66 () Expr ((as Val Expr) s65))+[GOOD] (define-fun s67 () Expr (ite s58 s66 s39))+[GOOD] (define-fun s69 () Bool (distinct s67 s68))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s69)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested33c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_nested34.gold view
@@ -0,0 +1,157 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (+           (Val (getVal_1 Int))+           (Var (getVar_1 String))+           (Add (getAdd_1 Expr) (getAdd_2 Expr))+           (Mul (getMul_1 Expr) (getMul_2 Expr))+           (Let (getLet_1 String) (getLet_2 Expr) (getLet_3 Expr))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () (Seq (SBVTuple2 String Int)) (as seq.empty (Seq (SBVTuple2 String Int))))+[GOOD] (define-fun s6 () Int 0)+[GOOD] (define-fun s20 () Int 1)+[GOOD] (define-fun s33 () Expr ((as Val Expr) 0))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Expr) ; tracks user variable "e"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; |get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| :: [(SString, SInteger)] -> SString -> SInteger [Recursive]+[GOOD] (define-fun-rec |get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| ((l2_s0 (Seq (SBVTuple2 String Int))) (l2_s1 String)) Int+                                                 (let ((l2_s3 0))+                                                 (let ((l2_s9 1))+                                                 (let ((l2_s2 (seq.len l2_s0)))+                                                 (let ((l2_s4 (= l2_s2 l2_s3)))+                                                 (let ((l2_s5 (seq.nth l2_s0 l2_s3)))+                                                 (let ((l2_s6 (proj_1_SBVTuple2 l2_s5)))+                                                 (let ((l2_s7 (= l2_s1 l2_s6)))+                                                 (let ((l2_s8 (proj_2_SBVTuple2 l2_s5)))+                                                 (let ((l2_s10 (- l2_s2 l2_s9)))+                                                 (let ((l2_s11 (seq.extract l2_s0 l2_s9 l2_s10)))+                                                 (let ((l2_s12 (|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| l2_s11 l2_s1)))+                                                 (let ((l2_s13 (ite l2_s7 l2_s8 l2_s12)))+                                                 (let ((l2_s14 (ite l2_s4 l2_s3 l2_s13)))+                                                 l2_s14))))))))))))))+[GOOD] ; |eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| :: [(SString, SInteger)] -> Expr -> SInteger [Recursive] [Refers to: |get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|]+[GOOD] (define-fun-rec |eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| ((l1_s0 (Seq (SBVTuple2 String Int))) (l1_s1 Expr)) Int+                                 (let ((l1_s2 ((as is-Val Bool) l1_s1)))+                                 (let ((l1_s3 (getVal_1 l1_s1)))+                                 (let ((l1_s4 ((as is-Var Bool) l1_s1)))+                                 (let ((l1_s5 (getVar_1 l1_s1)))+                                 (let ((l1_s6 (|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| l1_s0 l1_s5)))+                                 (let ((l1_s7 ((as is-Add Bool) l1_s1)))+                                 (let ((l1_s8 (getAdd_1 l1_s1)))+                                 (let ((l1_s9 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s8)))+                                 (let ((l1_s10 (getAdd_2 l1_s1)))+                                 (let ((l1_s11 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s10)))+                                 (let ((l1_s12 (+ l1_s9 l1_s11)))+                                 (let ((l1_s13 ((as is-Mul Bool) l1_s1)))+                                 (let ((l1_s14 (getMul_1 l1_s1)))+                                 (let ((l1_s15 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s14)))+                                 (let ((l1_s16 (getMul_2 l1_s1)))+                                 (let ((l1_s17 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s16)))+                                 (let ((l1_s18 (* l1_s15 l1_s17)))+                                 (let ((l1_s19 (getLet_1 l1_s1)))+                                 (let ((l1_s20 (getLet_2 l1_s1)))+                                 (let ((l1_s21 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s0 l1_s20)))+                                 (let ((l1_s22 ((as mkSBVTuple2 (SBVTuple2 String Int)) l1_s19 l1_s21)))+                                 (let ((l1_s23 (seq.unit l1_s22)))+                                 (let ((l1_s24 (seq.++ l1_s23 l1_s0)))+                                 (let ((l1_s25 (getLet_3 l1_s1)))+                                 (let ((l1_s26 (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| l1_s24 l1_s25)))+                                 (let ((l1_s27 (ite l1_s13 l1_s18 l1_s26)))+                                 (let ((l1_s28 (ite l1_s7 l1_s12 l1_s27)))+                                 (let ((l1_s29 (ite l1_s4 l1_s6 l1_s28)))+                                 (let ((l1_s30 (ite l1_s2 l1_s3 l1_s29)))+                                 l1_s30))))))))))))))))))))))))))))))+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s3 () Expr (getAdd_1 s0))+[GOOD] (define-fun s4 () Bool ((as is-Val Bool) s3))+[GOOD] (define-fun s5 () Int (getVal_1 s3))+[GOOD] (define-fun s7 () Bool (= s5 s6))+[GOOD] (define-fun s8 () Bool (and s4 s7))+[GOOD] (define-fun s9 () Bool (and s2 s8))+[GOOD] (define-fun s10 () Expr (getAdd_2 s0))+[GOOD] (define-fun s11 () Bool ((as is-Val Bool) s10))+[GOOD] (define-fun s12 () Int (getVal_1 s10))+[GOOD] (define-fun s13 () Bool (= s6 s12))+[GOOD] (define-fun s14 () Bool (and s11 s13))+[GOOD] (define-fun s15 () Bool (and s2 s14))+[GOOD] (define-fun s16 () Bool ((as is-Mul Bool) s0))+[GOOD] (define-fun s17 () Expr (getMul_1 s0))+[GOOD] (define-fun s18 () Bool ((as is-Val Bool) s17))+[GOOD] (define-fun s19 () Int (getVal_1 s17))+[GOOD] (define-fun s21 () Bool (= s19 s20))+[GOOD] (define-fun s22 () Bool (and s18 s21))+[GOOD] (define-fun s23 () Bool (and s16 s22))+[GOOD] (define-fun s24 () Expr (getMul_2 s0))+[GOOD] (define-fun s25 () Bool ((as is-Val Bool) s24))+[GOOD] (define-fun s26 () Int (getVal_1 s24))+[GOOD] (define-fun s27 () Bool (= s20 s26))+[GOOD] (define-fun s28 () Bool (and s25 s27))+[GOOD] (define-fun s29 () Bool (and s16 s28))+[GOOD] (define-fun s30 () Bool (= s6 s19))+[GOOD] (define-fun s31 () Bool (and s18 s30))+[GOOD] (define-fun s32 () Bool (and s16 s31))+[GOOD] (define-fun s34 () Expr (ite s32 s33 s0))+[GOOD] (define-fun s35 () Expr (ite s29 s17 s34))+[GOOD] (define-fun s36 () Expr (ite s23 s24 s35))+[GOOD] (define-fun s37 () Expr (ite s15 s3 s36))+[GOOD] (define-fun s38 () Expr (ite s9 s10 s37))+[GOOD] (define-fun s39 () Bool ((as is-Add Bool) s38))+[GOOD] (define-fun s40 () Expr (getAdd_1 s38))+[GOOD] (define-fun s41 () Bool ((as is-Mul Bool) s40))+[GOOD] (define-fun s42 () Expr (getMul_1 s40))+[GOOD] (define-fun s43 () Bool ((as is-Val Bool) s42))+[GOOD] (define-fun s44 () Expr (getMul_2 s40))+[GOOD] (define-fun s45 () Bool ((as is-Val Bool) s44))+[GOOD] (define-fun s46 () Expr (getAdd_2 s38))+[GOOD] (define-fun s47 () Bool ((as is-Mul Bool) s46))+[GOOD] (define-fun s48 () Expr (getMul_1 s46))+[GOOD] (define-fun s49 () Bool ((as is-Val Bool) s48))+[GOOD] (define-fun s50 () Expr (getMul_2 s46))+[GOOD] (define-fun s51 () Bool ((as is-Val Bool) s50))+[GOOD] (define-fun s52 () Bool (and s49 s51))+[GOOD] (define-fun s53 () Bool (and s47 s52))+[GOOD] (define-fun s54 () Bool (and s45 s53))+[GOOD] (define-fun s55 () Bool (and s43 s54))+[GOOD] (define-fun s56 () Bool (and s41 s55))+[GOOD] (define-fun s57 () Bool (and s39 s56))+[GOOD] (define-fun s58 () Int (getVal_1 s42))+[GOOD] (define-fun s59 () Int (getVal_1 s44))+[GOOD] (define-fun s60 () Int (* s58 s59))+[GOOD] (define-fun s61 () Int (getVal_1 s48))+[GOOD] (define-fun s62 () Int (getVal_1 s50))+[GOOD] (define-fun s63 () Int (* s61 s62))+[GOOD] (define-fun s64 () Int (+ s60 s63))+[GOOD] (define-fun s65 () Expr ((as Val Expr) s64))+[GOOD] (define-fun s66 () Expr (ite s57 s65 s38))+[GOOD] (define-fun s67 () Int (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| s1 s66))+[GOOD] (define-fun s68 () Int (|eval @(SBV [([Char],Integer)] -> SBV Expr -> SBV Integer)| s1 s0))+[GOOD] (define-fun s69 () Bool (= s67 s68))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s69))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_pchk01.gold view
@@ -0,0 +1,40 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: A+[GOOD] (declare-datatype A (+           (A (getA_1 Int))+           (B (getB_1 (_ BitVec 8)))+           (C (getC_1 A) (getC_2 A))+       ))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () A ((as A A) 13))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () A) ; tracks user variable "res"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 (A 13)))+Result: A 13+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_pexpr00.gold view
@@ -0,0 +1,219 @@+[MEASURE] Verifying termination measures for: eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer), eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer), get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)+[MEASURE] Checking: eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer): not in a multi-member cycle, skipping mutual check+[MEASURE] Passed (terminating): eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)+[MEASURE] Checking: eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer): barified = "|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)|"+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer): Uninterpreted ops in DAG: [("|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)|",2)]+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer): recursive calls found = 6+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer): trying sbv.dt.size.Expr arg2+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer): sbv.dt.size.Expr arg2 -> OK (structural recursion)+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer): sbv.dt.size.Expr arg2 -> OK+[MEASURE] Passed (terminating): eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)+[MEASURE] Checking: get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): barified = "|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|"+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): Uninterpreted ops in DAG: [("|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|",2)]+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): recursive calls found = 1+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): trying length arg1+[MEASURE] replayDAG {get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)}: replaying 13 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq (SBVTuple2 String Int))) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () String) ; tracks user variable "arg1"+[GOOD] (declare-fun s14 () Int) ; tracks user variable "__internal_sbv_s14"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Int (seq.len s0))+[GOOD] (define-fun s5 () Bool (= s2 s4))+[GOOD] (define-fun s6 () Bool (not s5))+[GOOD] (define-fun s7 () (SBVTuple2 String Int) (seq.nth s0 s2))+[GOOD] (define-fun s8 () String (proj_1_SBVTuple2 s7))+[GOOD] (define-fun s9 () Bool (= s1 s8))+[GOOD] (define-fun s10 () Bool (and s6 s9))+[GOOD] (define-fun s11 () Int (proj_2_SBVTuple2 s7))+[GOOD] (define-fun s12 () Int (- s4 s3))+[GOOD] (define-fun s13 () (Seq (SBVTuple2 String Int)) (seq.extract s0 s3 s12))+[GOOD] (define-fun s15 () Int (ite s10 s11 s14))+[GOOD] (define-fun s16 () Int (ite s5 s2 s15))+[GOOD] (define-fun s17 () Bool (>= s4 s2))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s17))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)}: replaying 13 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq (SBVTuple2 String Int))) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () String) ; tracks user variable "arg1"+[GOOD] (declare-fun s14 () Int) ; tracks user variable "__internal_sbv_s14"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Int (seq.len s0))+[GOOD] (define-fun s5 () Bool (= s2 s4))+[GOOD] (define-fun s6 () Bool (not s5))+[GOOD] (define-fun s7 () (SBVTuple2 String Int) (seq.nth s0 s2))+[GOOD] (define-fun s8 () String (proj_1_SBVTuple2 s7))+[GOOD] (define-fun s9 () Bool (= s1 s8))+[GOOD] (define-fun s10 () Bool (and s6 s9))+[GOOD] (define-fun s11 () Int (proj_2_SBVTuple2 s7))+[GOOD] (define-fun s12 () Int (- s4 s3))+[GOOD] (define-fun s13 () (Seq (SBVTuple2 String Int)) (seq.extract s0 s3 s12))+[GOOD] (define-fun s15 () Int (ite s10 s11 s14))+[GOOD] (define-fun s16 () Int (ite s5 s2 s15))+[GOOD] (define-fun s17 () Int (seq.len s13))+[GOOD] (define-fun s18 () Bool (not s10))+[GOOD] (define-fun s19 () Bool (and s6 s18))+[GOOD] (define-fun s20 () Bool (> s4 s17))+[GOOD] (define-fun s21 () Bool (=> s19 s20))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s21))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): length arg1 -> OK+[MEASURE] Passed (terminating): get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (par (nm val) (+           (Val (getVal_1 val))+           (Var (getVar_1 nm))+           (Add (getAdd_1 (Expr nm val)) (getAdd_2 (Expr nm val)))+           (Mul (getMul_1 (Expr nm val)) (getMul_2 (Expr nm val)))+           (Let (getLet_1 nm) (getLet_2 (Expr nm val)) (getLet_3 (Expr nm val)))+       )))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () (Expr String Int) ((as Val (Expr String Int)) 3))+[GOOD] (define-fun s3 () (Seq (SBVTuple2 String Int)) (as seq.empty (Seq (SBVTuple2 String Int))))+[GOOD] (define-fun s5 () Int 3)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Expr String Int))+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; |get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| :: [(SString, SInteger)] -> SString -> SInteger [Recursive]+[GOOD] (define-fun-rec |get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| ((l2_s0 (Seq (SBVTuple2 String Int))) (l2_s1 String)) Int+                                                 (let ((l2_s3 0))+                                                 (let ((l2_s11 1))+                                                 (let ((l2_s2 (seq.len l2_s0)))+                                                 (let ((l2_s4 (= l2_s2 l2_s3)))+                                                 (let ((l2_s5 (not l2_s4)))+                                                 (let ((l2_s6 (seq.nth l2_s0 l2_s3)))+                                                 (let ((l2_s7 (proj_1_SBVTuple2 l2_s6)))+                                                 (let ((l2_s8 (= l2_s1 l2_s7)))+                                                 (let ((l2_s9 (and l2_s5 l2_s8)))+                                                 (let ((l2_s10 (proj_2_SBVTuple2 l2_s6)))+                                                 (let ((l2_s12 (- l2_s2 l2_s11)))+                                                 (let ((l2_s13 (seq.extract l2_s0 l2_s11 l2_s12)))+                                                 (let ((l2_s14 (|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| l2_s13 l2_s1)))+                                                 (let ((l2_s15 (ite l2_s9 l2_s10 l2_s14)))+                                                 (let ((l2_s16 (ite l2_s4 l2_s3 l2_s15)))+                                                 l2_s16))))))))))))))))+[GOOD] ; |eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)| :: [(SString, SInteger)] -> Expr String Integer -> SInteger [Recursive] [Refers to: |get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|]+[GOOD] (define-fun-rec |eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)| ((l1_s0 (Seq (SBVTuple2 String Int))) (l1_s1 (Expr String Int))) Int+                                 (let ((l1_s2 ((as is-Val Bool) l1_s1)))+                                 (let ((l1_s3 (getVal_1 l1_s1)))+                                 (let ((l1_s4 ((as is-Var Bool) l1_s1)))+                                 (let ((l1_s5 (getVar_1 l1_s1)))+                                 (let ((l1_s6 (|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| l1_s0 l1_s5)))+                                 (let ((l1_s7 ((as is-Add Bool) l1_s1)))+                                 (let ((l1_s8 (getAdd_1 l1_s1)))+                                 (let ((l1_s9 (|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)| l1_s0 l1_s8)))+                                 (let ((l1_s10 (getAdd_2 l1_s1)))+                                 (let ((l1_s11 (|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)| l1_s0 l1_s10)))+                                 (let ((l1_s12 (+ l1_s9 l1_s11)))+                                 (let ((l1_s13 ((as is-Mul Bool) l1_s1)))+                                 (let ((l1_s14 (getMul_1 l1_s1)))+                                 (let ((l1_s15 (|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)| l1_s0 l1_s14)))+                                 (let ((l1_s16 (getMul_2 l1_s1)))+                                 (let ((l1_s17 (|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)| l1_s0 l1_s16)))+                                 (let ((l1_s18 (* l1_s15 l1_s17)))+                                 (let ((l1_s19 (getLet_1 l1_s1)))+                                 (let ((l1_s20 (getLet_2 l1_s1)))+                                 (let ((l1_s21 (|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)| l1_s0 l1_s20)))+                                 (let ((l1_s22 ((as mkSBVTuple2 (SBVTuple2 String Int)) l1_s19 l1_s21)))+                                 (let ((l1_s23 (seq.unit l1_s22)))+                                 (let ((l1_s24 (seq.++ l1_s23 l1_s0)))+                                 (let ((l1_s25 (getLet_3 l1_s1)))+                                 (let ((l1_s26 (|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)| l1_s24 l1_s25)))+                                 (let ((l1_s27 (ite l1_s13 l1_s18 l1_s26)))+                                 (let ((l1_s28 (ite l1_s7 l1_s12 l1_s27)))+                                 (let ((l1_s29 (ite l1_s4 l1_s6 l1_s28)))+                                 (let ((l1_s30 (ite l1_s2 l1_s3 l1_s29)))+                                 l1_s30))))))))))))))))))))))))))))))+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s4 () Int (|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)| s3 s0))+[GOOD] (define-fun s6 () Bool (distinct s4 s5))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s6)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_pexpr00c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_pexpr01.gold view
@@ -0,0 +1,219 @@+[MEASURE] Verifying termination measures for: eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer), eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer), get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)+[MEASURE] Checking: eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer): not in a multi-member cycle, skipping mutual check+[MEASURE] Passed (terminating): eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)+[MEASURE] Checking: eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer): barified = "|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)|"+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer): Uninterpreted ops in DAG: [("|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)|",2)]+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer): recursive calls found = 6+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer): trying sbv.dt.size.Expr arg2+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer): sbv.dt.size.Expr arg2 -> OK (structural recursion)+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer): sbv.dt.size.Expr arg2 -> OK+[MEASURE] Passed (terminating): eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)+[MEASURE] Checking: get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): barified = "|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|"+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): Uninterpreted ops in DAG: [("|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|",2)]+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): recursive calls found = 1+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): trying length arg1+[MEASURE] replayDAG {get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)}: replaying 13 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq (SBVTuple2 String Int))) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () String) ; tracks user variable "arg1"+[GOOD] (declare-fun s14 () Int) ; tracks user variable "__internal_sbv_s14"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Int (seq.len s0))+[GOOD] (define-fun s5 () Bool (= s2 s4))+[GOOD] (define-fun s6 () Bool (not s5))+[GOOD] (define-fun s7 () (SBVTuple2 String Int) (seq.nth s0 s2))+[GOOD] (define-fun s8 () String (proj_1_SBVTuple2 s7))+[GOOD] (define-fun s9 () Bool (= s1 s8))+[GOOD] (define-fun s10 () Bool (and s6 s9))+[GOOD] (define-fun s11 () Int (proj_2_SBVTuple2 s7))+[GOOD] (define-fun s12 () Int (- s4 s3))+[GOOD] (define-fun s13 () (Seq (SBVTuple2 String Int)) (seq.extract s0 s3 s12))+[GOOD] (define-fun s15 () Int (ite s10 s11 s14))+[GOOD] (define-fun s16 () Int (ite s5 s2 s15))+[GOOD] (define-fun s17 () Bool (>= s4 s2))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s17))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)}: replaying 13 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq (SBVTuple2 String Int))) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () String) ; tracks user variable "arg1"+[GOOD] (declare-fun s14 () Int) ; tracks user variable "__internal_sbv_s14"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Int (seq.len s0))+[GOOD] (define-fun s5 () Bool (= s2 s4))+[GOOD] (define-fun s6 () Bool (not s5))+[GOOD] (define-fun s7 () (SBVTuple2 String Int) (seq.nth s0 s2))+[GOOD] (define-fun s8 () String (proj_1_SBVTuple2 s7))+[GOOD] (define-fun s9 () Bool (= s1 s8))+[GOOD] (define-fun s10 () Bool (and s6 s9))+[GOOD] (define-fun s11 () Int (proj_2_SBVTuple2 s7))+[GOOD] (define-fun s12 () Int (- s4 s3))+[GOOD] (define-fun s13 () (Seq (SBVTuple2 String Int)) (seq.extract s0 s3 s12))+[GOOD] (define-fun s15 () Int (ite s10 s11 s14))+[GOOD] (define-fun s16 () Int (ite s5 s2 s15))+[GOOD] (define-fun s17 () Int (seq.len s13))+[GOOD] (define-fun s18 () Bool (not s10))+[GOOD] (define-fun s19 () Bool (and s6 s18))+[GOOD] (define-fun s20 () Bool (> s4 s17))+[GOOD] (define-fun s21 () Bool (=> s19 s20))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s21))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): length arg1 -> OK+[MEASURE] Passed (terminating): get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (par (nm val) (+           (Val (getVal_1 val))+           (Var (getVar_1 nm))+           (Add (getAdd_1 (Expr nm val)) (getAdd_2 (Expr nm val)))+           (Mul (getMul_1 (Expr nm val)) (getMul_2 (Expr nm val)))+           (Let (getLet_1 nm) (getLet_2 (Expr nm val)) (getLet_3 (Expr nm val)))+       )))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () (Expr String Int) ((as Add (Expr String Int)) ((as Val (Expr String Int)) 3) ((as Val (Expr String Int)) 4)))+[GOOD] (define-fun s3 () (Seq (SBVTuple2 String Int)) (as seq.empty (Seq (SBVTuple2 String Int))))+[GOOD] (define-fun s5 () Int 7)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Expr String Int))+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; |get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| :: [(SString, SInteger)] -> SString -> SInteger [Recursive]+[GOOD] (define-fun-rec |get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| ((l2_s0 (Seq (SBVTuple2 String Int))) (l2_s1 String)) Int+                                                 (let ((l2_s3 0))+                                                 (let ((l2_s11 1))+                                                 (let ((l2_s2 (seq.len l2_s0)))+                                                 (let ((l2_s4 (= l2_s2 l2_s3)))+                                                 (let ((l2_s5 (not l2_s4)))+                                                 (let ((l2_s6 (seq.nth l2_s0 l2_s3)))+                                                 (let ((l2_s7 (proj_1_SBVTuple2 l2_s6)))+                                                 (let ((l2_s8 (= l2_s1 l2_s7)))+                                                 (let ((l2_s9 (and l2_s5 l2_s8)))+                                                 (let ((l2_s10 (proj_2_SBVTuple2 l2_s6)))+                                                 (let ((l2_s12 (- l2_s2 l2_s11)))+                                                 (let ((l2_s13 (seq.extract l2_s0 l2_s11 l2_s12)))+                                                 (let ((l2_s14 (|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| l2_s13 l2_s1)))+                                                 (let ((l2_s15 (ite l2_s9 l2_s10 l2_s14)))+                                                 (let ((l2_s16 (ite l2_s4 l2_s3 l2_s15)))+                                                 l2_s16))))))))))))))))+[GOOD] ; |eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)| :: [(SString, SInteger)] -> Expr String Integer -> SInteger [Recursive] [Refers to: |get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|]+[GOOD] (define-fun-rec |eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)| ((l1_s0 (Seq (SBVTuple2 String Int))) (l1_s1 (Expr String Int))) Int+                                 (let ((l1_s2 ((as is-Val Bool) l1_s1)))+                                 (let ((l1_s3 (getVal_1 l1_s1)))+                                 (let ((l1_s4 ((as is-Var Bool) l1_s1)))+                                 (let ((l1_s5 (getVar_1 l1_s1)))+                                 (let ((l1_s6 (|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| l1_s0 l1_s5)))+                                 (let ((l1_s7 ((as is-Add Bool) l1_s1)))+                                 (let ((l1_s8 (getAdd_1 l1_s1)))+                                 (let ((l1_s9 (|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)| l1_s0 l1_s8)))+                                 (let ((l1_s10 (getAdd_2 l1_s1)))+                                 (let ((l1_s11 (|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)| l1_s0 l1_s10)))+                                 (let ((l1_s12 (+ l1_s9 l1_s11)))+                                 (let ((l1_s13 ((as is-Mul Bool) l1_s1)))+                                 (let ((l1_s14 (getMul_1 l1_s1)))+                                 (let ((l1_s15 (|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)| l1_s0 l1_s14)))+                                 (let ((l1_s16 (getMul_2 l1_s1)))+                                 (let ((l1_s17 (|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)| l1_s0 l1_s16)))+                                 (let ((l1_s18 (* l1_s15 l1_s17)))+                                 (let ((l1_s19 (getLet_1 l1_s1)))+                                 (let ((l1_s20 (getLet_2 l1_s1)))+                                 (let ((l1_s21 (|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)| l1_s0 l1_s20)))+                                 (let ((l1_s22 ((as mkSBVTuple2 (SBVTuple2 String Int)) l1_s19 l1_s21)))+                                 (let ((l1_s23 (seq.unit l1_s22)))+                                 (let ((l1_s24 (seq.++ l1_s23 l1_s0)))+                                 (let ((l1_s25 (getLet_3 l1_s1)))+                                 (let ((l1_s26 (|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)| l1_s24 l1_s25)))+                                 (let ((l1_s27 (ite l1_s13 l1_s18 l1_s26)))+                                 (let ((l1_s28 (ite l1_s7 l1_s12 l1_s27)))+                                 (let ((l1_s29 (ite l1_s4 l1_s6 l1_s28)))+                                 (let ((l1_s30 (ite l1_s2 l1_s3 l1_s29)))+                                 l1_s30))))))))))))))))))))))))))))))+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s4 () Int (|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)| s3 s0))+[GOOD] (define-fun s6 () Bool (distinct s4 s5))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s6)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_pexpr01c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_pexpr02.gold view
@@ -0,0 +1,219 @@+[MEASURE] Verifying termination measures for: eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer), eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer), get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)+[MEASURE] Checking: eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer): not in a multi-member cycle, skipping mutual check+[MEASURE] Passed (terminating): eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)+[MEASURE] Checking: eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer): barified = "|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)|"+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer): Uninterpreted ops in DAG: [("|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)|",2)]+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer): recursive calls found = 6+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer): trying sbv.dt.size.Expr arg2+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer): sbv.dt.size.Expr arg2 -> OK (structural recursion)+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer): sbv.dt.size.Expr arg2 -> OK+[MEASURE] Passed (terminating): eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)+[MEASURE] Checking: get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): barified = "|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|"+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): Uninterpreted ops in DAG: [("|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|",2)]+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): recursive calls found = 1+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): trying length arg1+[MEASURE] replayDAG {get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)}: replaying 13 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq (SBVTuple2 String Int))) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () String) ; tracks user variable "arg1"+[GOOD] (declare-fun s14 () Int) ; tracks user variable "__internal_sbv_s14"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Int (seq.len s0))+[GOOD] (define-fun s5 () Bool (= s2 s4))+[GOOD] (define-fun s6 () Bool (not s5))+[GOOD] (define-fun s7 () (SBVTuple2 String Int) (seq.nth s0 s2))+[GOOD] (define-fun s8 () String (proj_1_SBVTuple2 s7))+[GOOD] (define-fun s9 () Bool (= s1 s8))+[GOOD] (define-fun s10 () Bool (and s6 s9))+[GOOD] (define-fun s11 () Int (proj_2_SBVTuple2 s7))+[GOOD] (define-fun s12 () Int (- s4 s3))+[GOOD] (define-fun s13 () (Seq (SBVTuple2 String Int)) (seq.extract s0 s3 s12))+[GOOD] (define-fun s15 () Int (ite s10 s11 s14))+[GOOD] (define-fun s16 () Int (ite s5 s2 s15))+[GOOD] (define-fun s17 () Bool (>= s4 s2))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s17))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)}: replaying 13 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq (SBVTuple2 String Int))) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () String) ; tracks user variable "arg1"+[GOOD] (declare-fun s14 () Int) ; tracks user variable "__internal_sbv_s14"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Int (seq.len s0))+[GOOD] (define-fun s5 () Bool (= s2 s4))+[GOOD] (define-fun s6 () Bool (not s5))+[GOOD] (define-fun s7 () (SBVTuple2 String Int) (seq.nth s0 s2))+[GOOD] (define-fun s8 () String (proj_1_SBVTuple2 s7))+[GOOD] (define-fun s9 () Bool (= s1 s8))+[GOOD] (define-fun s10 () Bool (and s6 s9))+[GOOD] (define-fun s11 () Int (proj_2_SBVTuple2 s7))+[GOOD] (define-fun s12 () Int (- s4 s3))+[GOOD] (define-fun s13 () (Seq (SBVTuple2 String Int)) (seq.extract s0 s3 s12))+[GOOD] (define-fun s15 () Int (ite s10 s11 s14))+[GOOD] (define-fun s16 () Int (ite s5 s2 s15))+[GOOD] (define-fun s17 () Int (seq.len s13))+[GOOD] (define-fun s18 () Bool (not s10))+[GOOD] (define-fun s19 () Bool (and s6 s18))+[GOOD] (define-fun s20 () Bool (> s4 s17))+[GOOD] (define-fun s21 () Bool (=> s19 s20))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s21))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): length arg1 -> OK+[MEASURE] Passed (terminating): get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (par (nm val) (+           (Val (getVal_1 val))+           (Var (getVar_1 nm))+           (Add (getAdd_1 (Expr nm val)) (getAdd_2 (Expr nm val)))+           (Mul (getMul_1 (Expr nm val)) (getMul_2 (Expr nm val)))+           (Let (getLet_1 nm) (getLet_2 (Expr nm val)) (getLet_3 (Expr nm val)))+       )))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () (Expr String Int) ((as Mul (Expr String Int)) ((as Val (Expr String Int)) 3) ((as Add (Expr String Int)) ((as Val (Expr String Int)) 3) ((as Val (Expr String Int)) 4))))+[GOOD] (define-fun s3 () (Seq (SBVTuple2 String Int)) (as seq.empty (Seq (SBVTuple2 String Int))))+[GOOD] (define-fun s5 () Int 21)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Expr String Int))+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; |get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| :: [(SString, SInteger)] -> SString -> SInteger [Recursive]+[GOOD] (define-fun-rec |get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| ((l2_s0 (Seq (SBVTuple2 String Int))) (l2_s1 String)) Int+                                                 (let ((l2_s3 0))+                                                 (let ((l2_s11 1))+                                                 (let ((l2_s2 (seq.len l2_s0)))+                                                 (let ((l2_s4 (= l2_s2 l2_s3)))+                                                 (let ((l2_s5 (not l2_s4)))+                                                 (let ((l2_s6 (seq.nth l2_s0 l2_s3)))+                                                 (let ((l2_s7 (proj_1_SBVTuple2 l2_s6)))+                                                 (let ((l2_s8 (= l2_s1 l2_s7)))+                                                 (let ((l2_s9 (and l2_s5 l2_s8)))+                                                 (let ((l2_s10 (proj_2_SBVTuple2 l2_s6)))+                                                 (let ((l2_s12 (- l2_s2 l2_s11)))+                                                 (let ((l2_s13 (seq.extract l2_s0 l2_s11 l2_s12)))+                                                 (let ((l2_s14 (|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| l2_s13 l2_s1)))+                                                 (let ((l2_s15 (ite l2_s9 l2_s10 l2_s14)))+                                                 (let ((l2_s16 (ite l2_s4 l2_s3 l2_s15)))+                                                 l2_s16))))))))))))))))+[GOOD] ; |eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)| :: [(SString, SInteger)] -> Expr String Integer -> SInteger [Recursive] [Refers to: |get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|]+[GOOD] (define-fun-rec |eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)| ((l1_s0 (Seq (SBVTuple2 String Int))) (l1_s1 (Expr String Int))) Int+                                 (let ((l1_s2 ((as is-Val Bool) l1_s1)))+                                 (let ((l1_s3 (getVal_1 l1_s1)))+                                 (let ((l1_s4 ((as is-Var Bool) l1_s1)))+                                 (let ((l1_s5 (getVar_1 l1_s1)))+                                 (let ((l1_s6 (|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| l1_s0 l1_s5)))+                                 (let ((l1_s7 ((as is-Add Bool) l1_s1)))+                                 (let ((l1_s8 (getAdd_1 l1_s1)))+                                 (let ((l1_s9 (|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)| l1_s0 l1_s8)))+                                 (let ((l1_s10 (getAdd_2 l1_s1)))+                                 (let ((l1_s11 (|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)| l1_s0 l1_s10)))+                                 (let ((l1_s12 (+ l1_s9 l1_s11)))+                                 (let ((l1_s13 ((as is-Mul Bool) l1_s1)))+                                 (let ((l1_s14 (getMul_1 l1_s1)))+                                 (let ((l1_s15 (|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)| l1_s0 l1_s14)))+                                 (let ((l1_s16 (getMul_2 l1_s1)))+                                 (let ((l1_s17 (|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)| l1_s0 l1_s16)))+                                 (let ((l1_s18 (* l1_s15 l1_s17)))+                                 (let ((l1_s19 (getLet_1 l1_s1)))+                                 (let ((l1_s20 (getLet_2 l1_s1)))+                                 (let ((l1_s21 (|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)| l1_s0 l1_s20)))+                                 (let ((l1_s22 ((as mkSBVTuple2 (SBVTuple2 String Int)) l1_s19 l1_s21)))+                                 (let ((l1_s23 (seq.unit l1_s22)))+                                 (let ((l1_s24 (seq.++ l1_s23 l1_s0)))+                                 (let ((l1_s25 (getLet_3 l1_s1)))+                                 (let ((l1_s26 (|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)| l1_s24 l1_s25)))+                                 (let ((l1_s27 (ite l1_s13 l1_s18 l1_s26)))+                                 (let ((l1_s28 (ite l1_s7 l1_s12 l1_s27)))+                                 (let ((l1_s29 (ite l1_s4 l1_s6 l1_s28)))+                                 (let ((l1_s30 (ite l1_s2 l1_s3 l1_s29)))+                                 l1_s30))))))))))))))))))))))))))))))+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s4 () Int (|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)| s3 s0))+[GOOD] (define-fun s6 () Bool (distinct s4 s5))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s6)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_pexpr02c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_pexpr03.gold view
@@ -0,0 +1,219 @@+[MEASURE] Verifying termination measures for: eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer), eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer), get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)+[MEASURE] Checking: eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer): not in a multi-member cycle, skipping mutual check+[MEASURE] Passed (terminating): eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)+[MEASURE] Checking: eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer): barified = "|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)|"+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer): Uninterpreted ops in DAG: [("|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)|",2)]+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer): recursive calls found = 6+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer): trying sbv.dt.size.Expr arg2+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer): sbv.dt.size.Expr arg2 -> OK (structural recursion)+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer): sbv.dt.size.Expr arg2 -> OK+[MEASURE] Passed (terminating): eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)+[MEASURE] Checking: get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): barified = "|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|"+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): Uninterpreted ops in DAG: [("|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|",2)]+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): recursive calls found = 1+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): trying length arg1+[MEASURE] replayDAG {get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)}: replaying 13 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq (SBVTuple2 String Int))) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () String) ; tracks user variable "arg1"+[GOOD] (declare-fun s14 () Int) ; tracks user variable "__internal_sbv_s14"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Int (seq.len s0))+[GOOD] (define-fun s5 () Bool (= s2 s4))+[GOOD] (define-fun s6 () Bool (not s5))+[GOOD] (define-fun s7 () (SBVTuple2 String Int) (seq.nth s0 s2))+[GOOD] (define-fun s8 () String (proj_1_SBVTuple2 s7))+[GOOD] (define-fun s9 () Bool (= s1 s8))+[GOOD] (define-fun s10 () Bool (and s6 s9))+[GOOD] (define-fun s11 () Int (proj_2_SBVTuple2 s7))+[GOOD] (define-fun s12 () Int (- s4 s3))+[GOOD] (define-fun s13 () (Seq (SBVTuple2 String Int)) (seq.extract s0 s3 s12))+[GOOD] (define-fun s15 () Int (ite s10 s11 s14))+[GOOD] (define-fun s16 () Int (ite s5 s2 s15))+[GOOD] (define-fun s17 () Bool (>= s4 s2))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s17))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)}: replaying 13 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq (SBVTuple2 String Int))) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () String) ; tracks user variable "arg1"+[GOOD] (declare-fun s14 () Int) ; tracks user variable "__internal_sbv_s14"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Int (seq.len s0))+[GOOD] (define-fun s5 () Bool (= s2 s4))+[GOOD] (define-fun s6 () Bool (not s5))+[GOOD] (define-fun s7 () (SBVTuple2 String Int) (seq.nth s0 s2))+[GOOD] (define-fun s8 () String (proj_1_SBVTuple2 s7))+[GOOD] (define-fun s9 () Bool (= s1 s8))+[GOOD] (define-fun s10 () Bool (and s6 s9))+[GOOD] (define-fun s11 () Int (proj_2_SBVTuple2 s7))+[GOOD] (define-fun s12 () Int (- s4 s3))+[GOOD] (define-fun s13 () (Seq (SBVTuple2 String Int)) (seq.extract s0 s3 s12))+[GOOD] (define-fun s15 () Int (ite s10 s11 s14))+[GOOD] (define-fun s16 () Int (ite s5 s2 s15))+[GOOD] (define-fun s17 () Int (seq.len s13))+[GOOD] (define-fun s18 () Bool (not s10))+[GOOD] (define-fun s19 () Bool (and s6 s18))+[GOOD] (define-fun s20 () Bool (> s4 s17))+[GOOD] (define-fun s21 () Bool (=> s19 s20))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s21))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): length arg1 -> OK+[MEASURE] Passed (terminating): get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (par (nm val) (+           (Val (getVal_1 val))+           (Var (getVar_1 nm))+           (Add (getAdd_1 (Expr nm val)) (getAdd_2 (Expr nm val)))+           (Mul (getMul_1 (Expr nm val)) (getMul_2 (Expr nm val)))+           (Let (getLet_1 nm) (getLet_2 (Expr nm val)) (getLet_3 (Expr nm val)))+       )))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () (Expr String Int) ((as Let (Expr String Int)) "a" ((as Mul (Expr String Int)) ((as Val (Expr String Int)) 3) ((as Add (Expr String Int)) ((as Val (Expr String Int)) 3) ((as Val (Expr String Int)) 4))) ((as Add (Expr String Int)) ((as Var (Expr String Int)) "a") ((as Add (Expr String Int)) ((as Val (Expr String Int)) 3) ((as Val (Expr String Int)) 4)))))+[GOOD] (define-fun s3 () (Seq (SBVTuple2 String Int)) (as seq.empty (Seq (SBVTuple2 String Int))))+[GOOD] (define-fun s5 () Int 28)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Expr String Int))+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; |get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| :: [(SString, SInteger)] -> SString -> SInteger [Recursive]+[GOOD] (define-fun-rec |get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| ((l2_s0 (Seq (SBVTuple2 String Int))) (l2_s1 String)) Int+                                                 (let ((l2_s3 0))+                                                 (let ((l2_s11 1))+                                                 (let ((l2_s2 (seq.len l2_s0)))+                                                 (let ((l2_s4 (= l2_s2 l2_s3)))+                                                 (let ((l2_s5 (not l2_s4)))+                                                 (let ((l2_s6 (seq.nth l2_s0 l2_s3)))+                                                 (let ((l2_s7 (proj_1_SBVTuple2 l2_s6)))+                                                 (let ((l2_s8 (= l2_s1 l2_s7)))+                                                 (let ((l2_s9 (and l2_s5 l2_s8)))+                                                 (let ((l2_s10 (proj_2_SBVTuple2 l2_s6)))+                                                 (let ((l2_s12 (- l2_s2 l2_s11)))+                                                 (let ((l2_s13 (seq.extract l2_s0 l2_s11 l2_s12)))+                                                 (let ((l2_s14 (|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| l2_s13 l2_s1)))+                                                 (let ((l2_s15 (ite l2_s9 l2_s10 l2_s14)))+                                                 (let ((l2_s16 (ite l2_s4 l2_s3 l2_s15)))+                                                 l2_s16))))))))))))))))+[GOOD] ; |eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)| :: [(SString, SInteger)] -> Expr String Integer -> SInteger [Recursive] [Refers to: |get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|]+[GOOD] (define-fun-rec |eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)| ((l1_s0 (Seq (SBVTuple2 String Int))) (l1_s1 (Expr String Int))) Int+                                 (let ((l1_s2 ((as is-Val Bool) l1_s1)))+                                 (let ((l1_s3 (getVal_1 l1_s1)))+                                 (let ((l1_s4 ((as is-Var Bool) l1_s1)))+                                 (let ((l1_s5 (getVar_1 l1_s1)))+                                 (let ((l1_s6 (|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| l1_s0 l1_s5)))+                                 (let ((l1_s7 ((as is-Add Bool) l1_s1)))+                                 (let ((l1_s8 (getAdd_1 l1_s1)))+                                 (let ((l1_s9 (|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)| l1_s0 l1_s8)))+                                 (let ((l1_s10 (getAdd_2 l1_s1)))+                                 (let ((l1_s11 (|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)| l1_s0 l1_s10)))+                                 (let ((l1_s12 (+ l1_s9 l1_s11)))+                                 (let ((l1_s13 ((as is-Mul Bool) l1_s1)))+                                 (let ((l1_s14 (getMul_1 l1_s1)))+                                 (let ((l1_s15 (|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)| l1_s0 l1_s14)))+                                 (let ((l1_s16 (getMul_2 l1_s1)))+                                 (let ((l1_s17 (|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)| l1_s0 l1_s16)))+                                 (let ((l1_s18 (* l1_s15 l1_s17)))+                                 (let ((l1_s19 (getLet_1 l1_s1)))+                                 (let ((l1_s20 (getLet_2 l1_s1)))+                                 (let ((l1_s21 (|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)| l1_s0 l1_s20)))+                                 (let ((l1_s22 ((as mkSBVTuple2 (SBVTuple2 String Int)) l1_s19 l1_s21)))+                                 (let ((l1_s23 (seq.unit l1_s22)))+                                 (let ((l1_s24 (seq.++ l1_s23 l1_s0)))+                                 (let ((l1_s25 (getLet_3 l1_s1)))+                                 (let ((l1_s26 (|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)| l1_s24 l1_s25)))+                                 (let ((l1_s27 (ite l1_s13 l1_s18 l1_s26)))+                                 (let ((l1_s28 (ite l1_s7 l1_s12 l1_s27)))+                                 (let ((l1_s29 (ite l1_s4 l1_s6 l1_s28)))+                                 (let ((l1_s30 (ite l1_s2 l1_s3 l1_s29)))+                                 l1_s30))))))))))))))))))))))))))))))+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s4 () Int (|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)| s3 s0))+[GOOD] (define-fun s6 () Bool (distinct s4 s5))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s6)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_pexpr03c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_pexpr04.gold view
@@ -0,0 +1,30 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 63)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "res"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 63))+Result: 63+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_pexpr05.gold view
@@ -0,0 +1,30 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 3969)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "res"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3969))+Result: 3969+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_pexpr06.gold view
@@ -0,0 +1,75 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (par (nm val) (+           (Val (getVal_1 val))+           (Var (getVar_1 nm))+           (Add (getAdd_1 (Expr nm val)) (getAdd_2 (Expr nm val)))+           (Mul (getMul_1 (Expr nm val)) (getMul_2 (Expr nm val)))+           (Let (getLet_1 nm) (getLet_2 (Expr nm val)) (getLet_3 (Expr nm val)))+       )))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () (Expr String Int) ((as Var (Expr String Int)) "a"))+[GOOD] (define-fun s5 () String "a")+[GOOD] (define-fun s8 () Int 0)+[GOOD] (define-fun s9 () String "b")+[GOOD] (define-fun s11 () String "c")+[GOOD] (define-fun s15 () Int 1)+[GOOD] (define-fun s16 () Int 2)+[GOOD] (define-fun s19 () Int 10)+[GOOD] (define-fun s22 () Int 3)+[GOOD] (define-fun s25 () Int 4)+[GOOD] (define-fun s28 () Int 5)+[GOOD] (define-fun s29 () Int 6)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Expr String Int))+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s3 () Bool ((as is-Var Bool) s0))+[GOOD] (define-fun s4 () String (getVar_1 s0))+[GOOD] (define-fun s6 () Bool (= s4 s5))+[GOOD] (define-fun s7 () Bool (and s3 s6))+[GOOD] (define-fun s10 () Bool (= s4 s9))+[GOOD] (define-fun s12 () Bool (= s4 s11))+[GOOD] (define-fun s13 () Bool (or s10 s12))+[GOOD] (define-fun s14 () Bool (and s3 s13))+[GOOD] (define-fun s17 () Bool ((as is-Val Bool) s0))+[GOOD] (define-fun s18 () Int (getVal_1 s0))+[GOOD] (define-fun s20 () Bool (< s18 s19))+[GOOD] (define-fun s21 () Bool (and s17 s20))+[GOOD] (define-fun s23 () Bool (= s18 s19))+[GOOD] (define-fun s24 () Bool (and s17 s23))+[GOOD] (define-fun s26 () Bool (> s18 s19))+[GOOD] (define-fun s27 () Bool (and s17 s26))+[GOOD] (define-fun s30 () Int (ite s27 s28 s29))+[GOOD] (define-fun s31 () Int (ite s24 s25 s30))+[GOOD] (define-fun s32 () Int (ite s21 s22 s31))+[GOOD] (define-fun s33 () Int (ite s3 s16 s32))+[GOOD] (define-fun s34 () Int (ite s14 s15 s33))+[GOOD] (define-fun s35 () Int (ite s7 s8 s34))+[GOOD] (define-fun s36 () Bool (distinct s8 s35))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s36)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_pexpr06c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_pexpr07.gold view
@@ -0,0 +1,75 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (par (nm val) (+           (Val (getVal_1 val))+           (Var (getVar_1 nm))+           (Add (getAdd_1 (Expr nm val)) (getAdd_2 (Expr nm val)))+           (Mul (getMul_1 (Expr nm val)) (getMul_2 (Expr nm val)))+           (Let (getLet_1 nm) (getLet_2 (Expr nm val)) (getLet_3 (Expr nm val)))+       )))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () (Expr String Int) ((as Var (Expr String Int)) "b"))+[GOOD] (define-fun s5 () String "a")+[GOOD] (define-fun s8 () Int 0)+[GOOD] (define-fun s9 () String "b")+[GOOD] (define-fun s11 () String "c")+[GOOD] (define-fun s15 () Int 1)+[GOOD] (define-fun s16 () Int 2)+[GOOD] (define-fun s19 () Int 10)+[GOOD] (define-fun s22 () Int 3)+[GOOD] (define-fun s25 () Int 4)+[GOOD] (define-fun s28 () Int 5)+[GOOD] (define-fun s29 () Int 6)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Expr String Int))+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s3 () Bool ((as is-Var Bool) s0))+[GOOD] (define-fun s4 () String (getVar_1 s0))+[GOOD] (define-fun s6 () Bool (= s4 s5))+[GOOD] (define-fun s7 () Bool (and s3 s6))+[GOOD] (define-fun s10 () Bool (= s4 s9))+[GOOD] (define-fun s12 () Bool (= s4 s11))+[GOOD] (define-fun s13 () Bool (or s10 s12))+[GOOD] (define-fun s14 () Bool (and s3 s13))+[GOOD] (define-fun s17 () Bool ((as is-Val Bool) s0))+[GOOD] (define-fun s18 () Int (getVal_1 s0))+[GOOD] (define-fun s20 () Bool (< s18 s19))+[GOOD] (define-fun s21 () Bool (and s17 s20))+[GOOD] (define-fun s23 () Bool (= s18 s19))+[GOOD] (define-fun s24 () Bool (and s17 s23))+[GOOD] (define-fun s26 () Bool (> s18 s19))+[GOOD] (define-fun s27 () Bool (and s17 s26))+[GOOD] (define-fun s30 () Int (ite s27 s28 s29))+[GOOD] (define-fun s31 () Int (ite s24 s25 s30))+[GOOD] (define-fun s32 () Int (ite s21 s22 s31))+[GOOD] (define-fun s33 () Int (ite s3 s16 s32))+[GOOD] (define-fun s34 () Int (ite s14 s15 s33))+[GOOD] (define-fun s35 () Int (ite s7 s8 s34))+[GOOD] (define-fun s36 () Bool (distinct s15 s35))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s36)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_pexpr07c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_pexpr08.gold view
@@ -0,0 +1,75 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (par (nm val) (+           (Val (getVal_1 val))+           (Var (getVar_1 nm))+           (Add (getAdd_1 (Expr nm val)) (getAdd_2 (Expr nm val)))+           (Mul (getMul_1 (Expr nm val)) (getMul_2 (Expr nm val)))+           (Let (getLet_1 nm) (getLet_2 (Expr nm val)) (getLet_3 (Expr nm val)))+       )))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () (Expr String Int) ((as Var (Expr String Int)) "c"))+[GOOD] (define-fun s5 () String "a")+[GOOD] (define-fun s8 () Int 0)+[GOOD] (define-fun s9 () String "b")+[GOOD] (define-fun s11 () String "c")+[GOOD] (define-fun s15 () Int 1)+[GOOD] (define-fun s16 () Int 2)+[GOOD] (define-fun s19 () Int 10)+[GOOD] (define-fun s22 () Int 3)+[GOOD] (define-fun s25 () Int 4)+[GOOD] (define-fun s28 () Int 5)+[GOOD] (define-fun s29 () Int 6)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Expr String Int))+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s3 () Bool ((as is-Var Bool) s0))+[GOOD] (define-fun s4 () String (getVar_1 s0))+[GOOD] (define-fun s6 () Bool (= s4 s5))+[GOOD] (define-fun s7 () Bool (and s3 s6))+[GOOD] (define-fun s10 () Bool (= s4 s9))+[GOOD] (define-fun s12 () Bool (= s4 s11))+[GOOD] (define-fun s13 () Bool (or s10 s12))+[GOOD] (define-fun s14 () Bool (and s3 s13))+[GOOD] (define-fun s17 () Bool ((as is-Val Bool) s0))+[GOOD] (define-fun s18 () Int (getVal_1 s0))+[GOOD] (define-fun s20 () Bool (< s18 s19))+[GOOD] (define-fun s21 () Bool (and s17 s20))+[GOOD] (define-fun s23 () Bool (= s18 s19))+[GOOD] (define-fun s24 () Bool (and s17 s23))+[GOOD] (define-fun s26 () Bool (> s18 s19))+[GOOD] (define-fun s27 () Bool (and s17 s26))+[GOOD] (define-fun s30 () Int (ite s27 s28 s29))+[GOOD] (define-fun s31 () Int (ite s24 s25 s30))+[GOOD] (define-fun s32 () Int (ite s21 s22 s31))+[GOOD] (define-fun s33 () Int (ite s3 s16 s32))+[GOOD] (define-fun s34 () Int (ite s14 s15 s33))+[GOOD] (define-fun s35 () Int (ite s7 s8 s34))+[GOOD] (define-fun s36 () Bool (distinct s15 s35))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s36)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_pexpr08c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_pexpr09.gold view
@@ -0,0 +1,75 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (par (nm val) (+           (Val (getVal_1 val))+           (Var (getVar_1 nm))+           (Add (getAdd_1 (Expr nm val)) (getAdd_2 (Expr nm val)))+           (Mul (getMul_1 (Expr nm val)) (getMul_2 (Expr nm val)))+           (Let (getLet_1 nm) (getLet_2 (Expr nm val)) (getLet_3 (Expr nm val)))+       )))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () (Expr String Int) ((as Var (Expr String Int)) "d"))+[GOOD] (define-fun s5 () String "a")+[GOOD] (define-fun s8 () Int 0)+[GOOD] (define-fun s9 () String "b")+[GOOD] (define-fun s11 () String "c")+[GOOD] (define-fun s15 () Int 1)+[GOOD] (define-fun s16 () Int 2)+[GOOD] (define-fun s19 () Int 10)+[GOOD] (define-fun s22 () Int 3)+[GOOD] (define-fun s25 () Int 4)+[GOOD] (define-fun s28 () Int 5)+[GOOD] (define-fun s29 () Int 6)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Expr String Int))+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s3 () Bool ((as is-Var Bool) s0))+[GOOD] (define-fun s4 () String (getVar_1 s0))+[GOOD] (define-fun s6 () Bool (= s4 s5))+[GOOD] (define-fun s7 () Bool (and s3 s6))+[GOOD] (define-fun s10 () Bool (= s4 s9))+[GOOD] (define-fun s12 () Bool (= s4 s11))+[GOOD] (define-fun s13 () Bool (or s10 s12))+[GOOD] (define-fun s14 () Bool (and s3 s13))+[GOOD] (define-fun s17 () Bool ((as is-Val Bool) s0))+[GOOD] (define-fun s18 () Int (getVal_1 s0))+[GOOD] (define-fun s20 () Bool (< s18 s19))+[GOOD] (define-fun s21 () Bool (and s17 s20))+[GOOD] (define-fun s23 () Bool (= s18 s19))+[GOOD] (define-fun s24 () Bool (and s17 s23))+[GOOD] (define-fun s26 () Bool (> s18 s19))+[GOOD] (define-fun s27 () Bool (and s17 s26))+[GOOD] (define-fun s30 () Int (ite s27 s28 s29))+[GOOD] (define-fun s31 () Int (ite s24 s25 s30))+[GOOD] (define-fun s32 () Int (ite s21 s22 s31))+[GOOD] (define-fun s33 () Int (ite s3 s16 s32))+[GOOD] (define-fun s34 () Int (ite s14 s15 s33))+[GOOD] (define-fun s35 () Int (ite s7 s8 s34))+[GOOD] (define-fun s36 () Bool (distinct s16 s35))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s36)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_pexpr09c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_pexpr10.gold view
@@ -0,0 +1,454 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (par (nm val) (+           (Val (getVal_1 val))+           (Var (getVar_1 nm))+           (Add (getAdd_1 (Expr nm val)) (getAdd_2 (Expr nm val)))+           (Mul (getMul_1 (Expr nm val)) (getMul_2 (Expr nm val)))+           (Let (getLet_1 nm) (getLet_2 (Expr nm val)) (getLet_3 (Expr nm val)))+       )))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s15 () (Expr String Int) ((as Val (Expr String Int)) (- 5)))+[GOOD] (define-fun s17 () (Expr String Int) ((as Val (Expr String Int)) (- 4)))+[GOOD] (define-fun s19 () (Expr String Int) ((as Val (Expr String Int)) (- 3)))+[GOOD] (define-fun s21 () (Expr String Int) ((as Val (Expr String Int)) (- 2)))+[GOOD] (define-fun s23 () (Expr String Int) ((as Val (Expr String Int)) (- 1)))+[GOOD] (define-fun s25 () (Expr String Int) ((as Val (Expr String Int)) 0))+[GOOD] (define-fun s27 () (Expr String Int) ((as Val (Expr String Int)) 1))+[GOOD] (define-fun s29 () (Expr String Int) ((as Val (Expr String Int)) 2))+[GOOD] (define-fun s31 () (Expr String Int) ((as Val (Expr String Int)) 3))+[GOOD] (define-fun s33 () (Expr String Int) ((as Val (Expr String Int)) 4))+[GOOD] (define-fun s35 () (Expr String Int) ((as Val (Expr String Int)) 5))+[GOOD] (define-fun s37 () (Expr String Int) ((as Val (Expr String Int)) 6))+[GOOD] (define-fun s39 () (Expr String Int) ((as Val (Expr String Int)) 7))+[GOOD] (define-fun s41 () (Expr String Int) ((as Val (Expr String Int)) 8))+[GOOD] (define-fun s43 () (Expr String Int) ((as Val (Expr String Int)) 9))+[GOOD] (define-fun s61 () String "a")+[GOOD] (define-fun s64 () Int 0)+[GOOD] (define-fun s65 () String "b")+[GOOD] (define-fun s67 () String "c")+[GOOD] (define-fun s71 () Int 1)+[GOOD] (define-fun s72 () Int 2)+[GOOD] (define-fun s75 () Int 10)+[GOOD] (define-fun s78 () Int 3)+[GOOD] (define-fun s81 () Int 4)+[GOOD] (define-fun s84 () Int 5)+[GOOD] (define-fun s85 () Int 6)+[GOOD] (define-fun s414 () Int 45)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Expr String Int))+[GOOD] (declare-fun s1 () (Expr String Int))+[GOOD] (declare-fun s2 () (Expr String Int))+[GOOD] (declare-fun s3 () (Expr String Int))+[GOOD] (declare-fun s4 () (Expr String Int))+[GOOD] (declare-fun s5 () (Expr String Int))+[GOOD] (declare-fun s6 () (Expr String Int))+[GOOD] (declare-fun s7 () (Expr String Int))+[GOOD] (declare-fun s8 () (Expr String Int))+[GOOD] (declare-fun s9 () (Expr String Int))+[GOOD] (declare-fun s10 () (Expr String Int))+[GOOD] (declare-fun s11 () (Expr String Int))+[GOOD] (declare-fun s12 () (Expr String Int))+[GOOD] (declare-fun s13 () (Expr String Int))+[GOOD] (declare-fun s14 () (Expr String Int))+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s16 () Bool (= s0 s15))+[GOOD] (define-fun s18 () Bool (= s1 s17))+[GOOD] (define-fun s20 () Bool (= s2 s19))+[GOOD] (define-fun s22 () Bool (= s3 s21))+[GOOD] (define-fun s24 () Bool (= s4 s23))+[GOOD] (define-fun s26 () Bool (= s5 s25))+[GOOD] (define-fun s28 () Bool (= s6 s27))+[GOOD] (define-fun s30 () Bool (= s7 s29))+[GOOD] (define-fun s32 () Bool (= s8 s31))+[GOOD] (define-fun s34 () Bool (= s9 s33))+[GOOD] (define-fun s36 () Bool (= s10 s35))+[GOOD] (define-fun s38 () Bool (= s11 s37))+[GOOD] (define-fun s40 () Bool (= s12 s39))+[GOOD] (define-fun s42 () Bool (= s13 s41))+[GOOD] (define-fun s44 () Bool (= s14 s43))+[GOOD] (define-fun s45 () Bool (and s42 s44))+[GOOD] (define-fun s46 () Bool (and s40 s45))+[GOOD] (define-fun s47 () Bool (and s38 s46))+[GOOD] (define-fun s48 () Bool (and s36 s47))+[GOOD] (define-fun s49 () Bool (and s34 s48))+[GOOD] (define-fun s50 () Bool (and s32 s49))+[GOOD] (define-fun s51 () Bool (and s30 s50))+[GOOD] (define-fun s52 () Bool (and s28 s51))+[GOOD] (define-fun s53 () Bool (and s26 s52))+[GOOD] (define-fun s54 () Bool (and s24 s53))+[GOOD] (define-fun s55 () Bool (and s22 s54))+[GOOD] (define-fun s56 () Bool (and s20 s55))+[GOOD] (define-fun s57 () Bool (and s18 s56))+[GOOD] (define-fun s58 () Bool (and s16 s57))+[GOOD] (define-fun s59 () Bool ((as is-Var Bool) s0))+[GOOD] (define-fun s60 () String (getVar_1 s0))+[GOOD] (define-fun s62 () Bool (= s60 s61))+[GOOD] (define-fun s63 () Bool (and s59 s62))+[GOOD] (define-fun s66 () Bool (= s60 s65))+[GOOD] (define-fun s68 () Bool (= s60 s67))+[GOOD] (define-fun s69 () Bool (or s66 s68))+[GOOD] (define-fun s70 () Bool (and s59 s69))+[GOOD] (define-fun s73 () Bool ((as is-Val Bool) s0))+[GOOD] (define-fun s74 () Int (getVal_1 s0))+[GOOD] (define-fun s76 () Bool (< s74 s75))+[GOOD] (define-fun s77 () Bool (and s73 s76))+[GOOD] (define-fun s79 () Bool (= s74 s75))+[GOOD] (define-fun s80 () Bool (and s73 s79))+[GOOD] (define-fun s82 () Bool (> s74 s75))+[GOOD] (define-fun s83 () Bool (and s73 s82))+[GOOD] (define-fun s86 () Int (ite s83 s84 s85))+[GOOD] (define-fun s87 () Int (ite s80 s81 s86))+[GOOD] (define-fun s88 () Int (ite s77 s78 s87))+[GOOD] (define-fun s89 () Int (ite s59 s72 s88))+[GOOD] (define-fun s90 () Int (ite s70 s71 s89))+[GOOD] (define-fun s91 () Int (ite s63 s64 s90))+[GOOD] (define-fun s92 () Bool ((as is-Var Bool) s1))+[GOOD] (define-fun s93 () String (getVar_1 s1))+[GOOD] (define-fun s94 () Bool (= s61 s93))+[GOOD] (define-fun s95 () Bool (and s92 s94))+[GOOD] (define-fun s96 () Bool (= s65 s93))+[GOOD] (define-fun s97 () Bool (= s67 s93))+[GOOD] (define-fun s98 () Bool (or s96 s97))+[GOOD] (define-fun s99 () Bool (and s92 s98))+[GOOD] (define-fun s100 () Bool ((as is-Val Bool) s1))+[GOOD] (define-fun s101 () Int (getVal_1 s1))+[GOOD] (define-fun s102 () Bool (< s101 s75))+[GOOD] (define-fun s103 () Bool (and s100 s102))+[GOOD] (define-fun s104 () Bool (= s75 s101))+[GOOD] (define-fun s105 () Bool (and s100 s104))+[GOOD] (define-fun s106 () Bool (> s101 s75))+[GOOD] (define-fun s107 () Bool (and s100 s106))+[GOOD] (define-fun s108 () Int (ite s107 s84 s85))+[GOOD] (define-fun s109 () Int (ite s105 s81 s108))+[GOOD] (define-fun s110 () Int (ite s103 s78 s109))+[GOOD] (define-fun s111 () Int (ite s92 s72 s110))+[GOOD] (define-fun s112 () Int (ite s99 s71 s111))+[GOOD] (define-fun s113 () Int (ite s95 s64 s112))+[GOOD] (define-fun s114 () Int (+ s91 s113))+[GOOD] (define-fun s115 () Bool ((as is-Var Bool) s2))+[GOOD] (define-fun s116 () String (getVar_1 s2))+[GOOD] (define-fun s117 () Bool (= s61 s116))+[GOOD] (define-fun s118 () Bool (and s115 s117))+[GOOD] (define-fun s119 () Bool (= s65 s116))+[GOOD] (define-fun s120 () Bool (= s67 s116))+[GOOD] (define-fun s121 () Bool (or s119 s120))+[GOOD] (define-fun s122 () Bool (and s115 s121))+[GOOD] (define-fun s123 () Bool ((as is-Val Bool) s2))+[GOOD] (define-fun s124 () Int (getVal_1 s2))+[GOOD] (define-fun s125 () Bool (< s124 s75))+[GOOD] (define-fun s126 () Bool (and s123 s125))+[GOOD] (define-fun s127 () Bool (= s75 s124))+[GOOD] (define-fun s128 () Bool (and s123 s127))+[GOOD] (define-fun s129 () Bool (> s124 s75))+[GOOD] (define-fun s130 () Bool (and s123 s129))+[GOOD] (define-fun s131 () Int (ite s130 s84 s85))+[GOOD] (define-fun s132 () Int (ite s128 s81 s131))+[GOOD] (define-fun s133 () Int (ite s126 s78 s132))+[GOOD] (define-fun s134 () Int (ite s115 s72 s133))+[GOOD] (define-fun s135 () Int (ite s122 s71 s134))+[GOOD] (define-fun s136 () Int (ite s118 s64 s135))+[GOOD] (define-fun s137 () Int (+ s114 s136))+[GOOD] (define-fun s138 () Bool ((as is-Var Bool) s3))+[GOOD] (define-fun s139 () String (getVar_1 s3))+[GOOD] (define-fun s140 () Bool (= s61 s139))+[GOOD] (define-fun s141 () Bool (and s138 s140))+[GOOD] (define-fun s142 () Bool (= s65 s139))+[GOOD] (define-fun s143 () Bool (= s67 s139))+[GOOD] (define-fun s144 () Bool (or s142 s143))+[GOOD] (define-fun s145 () Bool (and s138 s144))+[GOOD] (define-fun s146 () Bool ((as is-Val Bool) s3))+[GOOD] (define-fun s147 () Int (getVal_1 s3))+[GOOD] (define-fun s148 () Bool (< s147 s75))+[GOOD] (define-fun s149 () Bool (and s146 s148))+[GOOD] (define-fun s150 () Bool (= s75 s147))+[GOOD] (define-fun s151 () Bool (and s146 s150))+[GOOD] (define-fun s152 () Bool (> s147 s75))+[GOOD] (define-fun s153 () Bool (and s146 s152))+[GOOD] (define-fun s154 () Int (ite s153 s84 s85))+[GOOD] (define-fun s155 () Int (ite s151 s81 s154))+[GOOD] (define-fun s156 () Int (ite s149 s78 s155))+[GOOD] (define-fun s157 () Int (ite s138 s72 s156))+[GOOD] (define-fun s158 () Int (ite s145 s71 s157))+[GOOD] (define-fun s159 () Int (ite s141 s64 s158))+[GOOD] (define-fun s160 () Int (+ s137 s159))+[GOOD] (define-fun s161 () Bool ((as is-Var Bool) s4))+[GOOD] (define-fun s162 () String (getVar_1 s4))+[GOOD] (define-fun s163 () Bool (= s61 s162))+[GOOD] (define-fun s164 () Bool (and s161 s163))+[GOOD] (define-fun s165 () Bool (= s65 s162))+[GOOD] (define-fun s166 () Bool (= s67 s162))+[GOOD] (define-fun s167 () Bool (or s165 s166))+[GOOD] (define-fun s168 () Bool (and s161 s167))+[GOOD] (define-fun s169 () Bool ((as is-Val Bool) s4))+[GOOD] (define-fun s170 () Int (getVal_1 s4))+[GOOD] (define-fun s171 () Bool (< s170 s75))+[GOOD] (define-fun s172 () Bool (and s169 s171))+[GOOD] (define-fun s173 () Bool (= s75 s170))+[GOOD] (define-fun s174 () Bool (and s169 s173))+[GOOD] (define-fun s175 () Bool (> s170 s75))+[GOOD] (define-fun s176 () Bool (and s169 s175))+[GOOD] (define-fun s177 () Int (ite s176 s84 s85))+[GOOD] (define-fun s178 () Int (ite s174 s81 s177))+[GOOD] (define-fun s179 () Int (ite s172 s78 s178))+[GOOD] (define-fun s180 () Int (ite s161 s72 s179))+[GOOD] (define-fun s181 () Int (ite s168 s71 s180))+[GOOD] (define-fun s182 () Int (ite s164 s64 s181))+[GOOD] (define-fun s183 () Int (+ s160 s182))+[GOOD] (define-fun s184 () Bool ((as is-Var Bool) s5))+[GOOD] (define-fun s185 () String (getVar_1 s5))+[GOOD] (define-fun s186 () Bool (= s61 s185))+[GOOD] (define-fun s187 () Bool (and s184 s186))+[GOOD] (define-fun s188 () Bool (= s65 s185))+[GOOD] (define-fun s189 () Bool (= s67 s185))+[GOOD] (define-fun s190 () Bool (or s188 s189))+[GOOD] (define-fun s191 () Bool (and s184 s190))+[GOOD] (define-fun s192 () Bool ((as is-Val Bool) s5))+[GOOD] (define-fun s193 () Int (getVal_1 s5))+[GOOD] (define-fun s194 () Bool (< s193 s75))+[GOOD] (define-fun s195 () Bool (and s192 s194))+[GOOD] (define-fun s196 () Bool (= s75 s193))+[GOOD] (define-fun s197 () Bool (and s192 s196))+[GOOD] (define-fun s198 () Bool (> s193 s75))+[GOOD] (define-fun s199 () Bool (and s192 s198))+[GOOD] (define-fun s200 () Int (ite s199 s84 s85))+[GOOD] (define-fun s201 () Int (ite s197 s81 s200))+[GOOD] (define-fun s202 () Int (ite s195 s78 s201))+[GOOD] (define-fun s203 () Int (ite s184 s72 s202))+[GOOD] (define-fun s204 () Int (ite s191 s71 s203))+[GOOD] (define-fun s205 () Int (ite s187 s64 s204))+[GOOD] (define-fun s206 () Int (+ s183 s205))+[GOOD] (define-fun s207 () Bool ((as is-Var Bool) s6))+[GOOD] (define-fun s208 () String (getVar_1 s6))+[GOOD] (define-fun s209 () Bool (= s61 s208))+[GOOD] (define-fun s210 () Bool (and s207 s209))+[GOOD] (define-fun s211 () Bool (= s65 s208))+[GOOD] (define-fun s212 () Bool (= s67 s208))+[GOOD] (define-fun s213 () Bool (or s211 s212))+[GOOD] (define-fun s214 () Bool (and s207 s213))+[GOOD] (define-fun s215 () Bool ((as is-Val Bool) s6))+[GOOD] (define-fun s216 () Int (getVal_1 s6))+[GOOD] (define-fun s217 () Bool (< s216 s75))+[GOOD] (define-fun s218 () Bool (and s215 s217))+[GOOD] (define-fun s219 () Bool (= s75 s216))+[GOOD] (define-fun s220 () Bool (and s215 s219))+[GOOD] (define-fun s221 () Bool (> s216 s75))+[GOOD] (define-fun s222 () Bool (and s215 s221))+[GOOD] (define-fun s223 () Int (ite s222 s84 s85))+[GOOD] (define-fun s224 () Int (ite s220 s81 s223))+[GOOD] (define-fun s225 () Int (ite s218 s78 s224))+[GOOD] (define-fun s226 () Int (ite s207 s72 s225))+[GOOD] (define-fun s227 () Int (ite s214 s71 s226))+[GOOD] (define-fun s228 () Int (ite s210 s64 s227))+[GOOD] (define-fun s229 () Int (+ s206 s228))+[GOOD] (define-fun s230 () Bool ((as is-Var Bool) s7))+[GOOD] (define-fun s231 () String (getVar_1 s7))+[GOOD] (define-fun s232 () Bool (= s61 s231))+[GOOD] (define-fun s233 () Bool (and s230 s232))+[GOOD] (define-fun s234 () Bool (= s65 s231))+[GOOD] (define-fun s235 () Bool (= s67 s231))+[GOOD] (define-fun s236 () Bool (or s234 s235))+[GOOD] (define-fun s237 () Bool (and s230 s236))+[GOOD] (define-fun s238 () Bool ((as is-Val Bool) s7))+[GOOD] (define-fun s239 () Int (getVal_1 s7))+[GOOD] (define-fun s240 () Bool (< s239 s75))+[GOOD] (define-fun s241 () Bool (and s238 s240))+[GOOD] (define-fun s242 () Bool (= s75 s239))+[GOOD] (define-fun s243 () Bool (and s238 s242))+[GOOD] (define-fun s244 () Bool (> s239 s75))+[GOOD] (define-fun s245 () Bool (and s238 s244))+[GOOD] (define-fun s246 () Int (ite s245 s84 s85))+[GOOD] (define-fun s247 () Int (ite s243 s81 s246))+[GOOD] (define-fun s248 () Int (ite s241 s78 s247))+[GOOD] (define-fun s249 () Int (ite s230 s72 s248))+[GOOD] (define-fun s250 () Int (ite s237 s71 s249))+[GOOD] (define-fun s251 () Int (ite s233 s64 s250))+[GOOD] (define-fun s252 () Int (+ s229 s251))+[GOOD] (define-fun s253 () Bool ((as is-Var Bool) s8))+[GOOD] (define-fun s254 () String (getVar_1 s8))+[GOOD] (define-fun s255 () Bool (= s61 s254))+[GOOD] (define-fun s256 () Bool (and s253 s255))+[GOOD] (define-fun s257 () Bool (= s65 s254))+[GOOD] (define-fun s258 () Bool (= s67 s254))+[GOOD] (define-fun s259 () Bool (or s257 s258))+[GOOD] (define-fun s260 () Bool (and s253 s259))+[GOOD] (define-fun s261 () Bool ((as is-Val Bool) s8))+[GOOD] (define-fun s262 () Int (getVal_1 s8))+[GOOD] (define-fun s263 () Bool (< s262 s75))+[GOOD] (define-fun s264 () Bool (and s261 s263))+[GOOD] (define-fun s265 () Bool (= s75 s262))+[GOOD] (define-fun s266 () Bool (and s261 s265))+[GOOD] (define-fun s267 () Bool (> s262 s75))+[GOOD] (define-fun s268 () Bool (and s261 s267))+[GOOD] (define-fun s269 () Int (ite s268 s84 s85))+[GOOD] (define-fun s270 () Int (ite s266 s81 s269))+[GOOD] (define-fun s271 () Int (ite s264 s78 s270))+[GOOD] (define-fun s272 () Int (ite s253 s72 s271))+[GOOD] (define-fun s273 () Int (ite s260 s71 s272))+[GOOD] (define-fun s274 () Int (ite s256 s64 s273))+[GOOD] (define-fun s275 () Int (+ s252 s274))+[GOOD] (define-fun s276 () Bool ((as is-Var Bool) s9))+[GOOD] (define-fun s277 () String (getVar_1 s9))+[GOOD] (define-fun s278 () Bool (= s61 s277))+[GOOD] (define-fun s279 () Bool (and s276 s278))+[GOOD] (define-fun s280 () Bool (= s65 s277))+[GOOD] (define-fun s281 () Bool (= s67 s277))+[GOOD] (define-fun s282 () Bool (or s280 s281))+[GOOD] (define-fun s283 () Bool (and s276 s282))+[GOOD] (define-fun s284 () Bool ((as is-Val Bool) s9))+[GOOD] (define-fun s285 () Int (getVal_1 s9))+[GOOD] (define-fun s286 () Bool (< s285 s75))+[GOOD] (define-fun s287 () Bool (and s284 s286))+[GOOD] (define-fun s288 () Bool (= s75 s285))+[GOOD] (define-fun s289 () Bool (and s284 s288))+[GOOD] (define-fun s290 () Bool (> s285 s75))+[GOOD] (define-fun s291 () Bool (and s284 s290))+[GOOD] (define-fun s292 () Int (ite s291 s84 s85))+[GOOD] (define-fun s293 () Int (ite s289 s81 s292))+[GOOD] (define-fun s294 () Int (ite s287 s78 s293))+[GOOD] (define-fun s295 () Int (ite s276 s72 s294))+[GOOD] (define-fun s296 () Int (ite s283 s71 s295))+[GOOD] (define-fun s297 () Int (ite s279 s64 s296))+[GOOD] (define-fun s298 () Int (+ s275 s297))+[GOOD] (define-fun s299 () Bool ((as is-Var Bool) s10))+[GOOD] (define-fun s300 () String (getVar_1 s10))+[GOOD] (define-fun s301 () Bool (= s61 s300))+[GOOD] (define-fun s302 () Bool (and s299 s301))+[GOOD] (define-fun s303 () Bool (= s65 s300))+[GOOD] (define-fun s304 () Bool (= s67 s300))+[GOOD] (define-fun s305 () Bool (or s303 s304))+[GOOD] (define-fun s306 () Bool (and s299 s305))+[GOOD] (define-fun s307 () Bool ((as is-Val Bool) s10))+[GOOD] (define-fun s308 () Int (getVal_1 s10))+[GOOD] (define-fun s309 () Bool (< s308 s75))+[GOOD] (define-fun s310 () Bool (and s307 s309))+[GOOD] (define-fun s311 () Bool (= s75 s308))+[GOOD] (define-fun s312 () Bool (and s307 s311))+[GOOD] (define-fun s313 () Bool (> s308 s75))+[GOOD] (define-fun s314 () Bool (and s307 s313))+[GOOD] (define-fun s315 () Int (ite s314 s84 s85))+[GOOD] (define-fun s316 () Int (ite s312 s81 s315))+[GOOD] (define-fun s317 () Int (ite s310 s78 s316))+[GOOD] (define-fun s318 () Int (ite s299 s72 s317))+[GOOD] (define-fun s319 () Int (ite s306 s71 s318))+[GOOD] (define-fun s320 () Int (ite s302 s64 s319))+[GOOD] (define-fun s321 () Int (+ s298 s320))+[GOOD] (define-fun s322 () Bool ((as is-Var Bool) s11))+[GOOD] (define-fun s323 () String (getVar_1 s11))+[GOOD] (define-fun s324 () Bool (= s61 s323))+[GOOD] (define-fun s325 () Bool (and s322 s324))+[GOOD] (define-fun s326 () Bool (= s65 s323))+[GOOD] (define-fun s327 () Bool (= s67 s323))+[GOOD] (define-fun s328 () Bool (or s326 s327))+[GOOD] (define-fun s329 () Bool (and s322 s328))+[GOOD] (define-fun s330 () Bool ((as is-Val Bool) s11))+[GOOD] (define-fun s331 () Int (getVal_1 s11))+[GOOD] (define-fun s332 () Bool (< s331 s75))+[GOOD] (define-fun s333 () Bool (and s330 s332))+[GOOD] (define-fun s334 () Bool (= s75 s331))+[GOOD] (define-fun s335 () Bool (and s330 s334))+[GOOD] (define-fun s336 () Bool (> s331 s75))+[GOOD] (define-fun s337 () Bool (and s330 s336))+[GOOD] (define-fun s338 () Int (ite s337 s84 s85))+[GOOD] (define-fun s339 () Int (ite s335 s81 s338))+[GOOD] (define-fun s340 () Int (ite s333 s78 s339))+[GOOD] (define-fun s341 () Int (ite s322 s72 s340))+[GOOD] (define-fun s342 () Int (ite s329 s71 s341))+[GOOD] (define-fun s343 () Int (ite s325 s64 s342))+[GOOD] (define-fun s344 () Int (+ s321 s343))+[GOOD] (define-fun s345 () Bool ((as is-Var Bool) s12))+[GOOD] (define-fun s346 () String (getVar_1 s12))+[GOOD] (define-fun s347 () Bool (= s61 s346))+[GOOD] (define-fun s348 () Bool (and s345 s347))+[GOOD] (define-fun s349 () Bool (= s65 s346))+[GOOD] (define-fun s350 () Bool (= s67 s346))+[GOOD] (define-fun s351 () Bool (or s349 s350))+[GOOD] (define-fun s352 () Bool (and s345 s351))+[GOOD] (define-fun s353 () Bool ((as is-Val Bool) s12))+[GOOD] (define-fun s354 () Int (getVal_1 s12))+[GOOD] (define-fun s355 () Bool (< s354 s75))+[GOOD] (define-fun s356 () Bool (and s353 s355))+[GOOD] (define-fun s357 () Bool (= s75 s354))+[GOOD] (define-fun s358 () Bool (and s353 s357))+[GOOD] (define-fun s359 () Bool (> s354 s75))+[GOOD] (define-fun s360 () Bool (and s353 s359))+[GOOD] (define-fun s361 () Int (ite s360 s84 s85))+[GOOD] (define-fun s362 () Int (ite s358 s81 s361))+[GOOD] (define-fun s363 () Int (ite s356 s78 s362))+[GOOD] (define-fun s364 () Int (ite s345 s72 s363))+[GOOD] (define-fun s365 () Int (ite s352 s71 s364))+[GOOD] (define-fun s366 () Int (ite s348 s64 s365))+[GOOD] (define-fun s367 () Int (+ s344 s366))+[GOOD] (define-fun s368 () Bool ((as is-Var Bool) s13))+[GOOD] (define-fun s369 () String (getVar_1 s13))+[GOOD] (define-fun s370 () Bool (= s61 s369))+[GOOD] (define-fun s371 () Bool (and s368 s370))+[GOOD] (define-fun s372 () Bool (= s65 s369))+[GOOD] (define-fun s373 () Bool (= s67 s369))+[GOOD] (define-fun s374 () Bool (or s372 s373))+[GOOD] (define-fun s375 () Bool (and s368 s374))+[GOOD] (define-fun s376 () Bool ((as is-Val Bool) s13))+[GOOD] (define-fun s377 () Int (getVal_1 s13))+[GOOD] (define-fun s378 () Bool (< s377 s75))+[GOOD] (define-fun s379 () Bool (and s376 s378))+[GOOD] (define-fun s380 () Bool (= s75 s377))+[GOOD] (define-fun s381 () Bool (and s376 s380))+[GOOD] (define-fun s382 () Bool (> s377 s75))+[GOOD] (define-fun s383 () Bool (and s376 s382))+[GOOD] (define-fun s384 () Int (ite s383 s84 s85))+[GOOD] (define-fun s385 () Int (ite s381 s81 s384))+[GOOD] (define-fun s386 () Int (ite s379 s78 s385))+[GOOD] (define-fun s387 () Int (ite s368 s72 s386))+[GOOD] (define-fun s388 () Int (ite s375 s71 s387))+[GOOD] (define-fun s389 () Int (ite s371 s64 s388))+[GOOD] (define-fun s390 () Int (+ s367 s389))+[GOOD] (define-fun s391 () Bool ((as is-Var Bool) s14))+[GOOD] (define-fun s392 () String (getVar_1 s14))+[GOOD] (define-fun s393 () Bool (= s61 s392))+[GOOD] (define-fun s394 () Bool (and s391 s393))+[GOOD] (define-fun s395 () Bool (= s65 s392))+[GOOD] (define-fun s396 () Bool (= s67 s392))+[GOOD] (define-fun s397 () Bool (or s395 s396))+[GOOD] (define-fun s398 () Bool (and s391 s397))+[GOOD] (define-fun s399 () Bool ((as is-Val Bool) s14))+[GOOD] (define-fun s400 () Int (getVal_1 s14))+[GOOD] (define-fun s401 () Bool (< s400 s75))+[GOOD] (define-fun s402 () Bool (and s399 s401))+[GOOD] (define-fun s403 () Bool (= s75 s400))+[GOOD] (define-fun s404 () Bool (and s399 s403))+[GOOD] (define-fun s405 () Bool (> s400 s75))+[GOOD] (define-fun s406 () Bool (and s399 s405))+[GOOD] (define-fun s407 () Int (ite s406 s84 s85))+[GOOD] (define-fun s408 () Int (ite s404 s81 s407))+[GOOD] (define-fun s409 () Int (ite s402 s78 s408))+[GOOD] (define-fun s410 () Int (ite s391 s72 s409))+[GOOD] (define-fun s411 () Int (ite s398 s71 s410))+[GOOD] (define-fun s412 () Int (ite s394 s64 s411))+[GOOD] (define-fun s413 () Int (+ s390 s412))+[GOOD] (define-fun s415 () Bool (distinct s413 s414))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s58)+[GOOD] (assert s415)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_pexpr10c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_pexpr11.gold view
@@ -0,0 +1,102 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (par (nm val) (+           (Val (getVal_1 val))+           (Var (getVar_1 nm))+           (Add (getAdd_1 (Expr nm val)) (getAdd_2 (Expr nm val)))+           (Mul (getMul_1 (Expr nm val)) (getMul_2 (Expr nm val)))+           (Let (getLet_1 nm) (getLet_2 (Expr nm val)) (getLet_3 (Expr nm val)))+       )))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () (Expr String Int) ((as Val (Expr String Int)) 10))+[GOOD] (define-fun s8 () String "a")+[GOOD] (define-fun s11 () Int 0)+[GOOD] (define-fun s12 () String "b")+[GOOD] (define-fun s14 () String "c")+[GOOD] (define-fun s18 () Int 1)+[GOOD] (define-fun s19 () Int 2)+[GOOD] (define-fun s22 () Int 10)+[GOOD] (define-fun s25 () Int 3)+[GOOD] (define-fun s28 () Int 4)+[GOOD] (define-fun s31 () Int 5)+[GOOD] (define-fun s32 () Int 6)+[GOOD] (define-fun s62 () Int 8)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Expr String Int))+[GOOD] (declare-fun s1 () (Expr String Int))+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (= s0 s2))+[GOOD] (define-fun s4 () Bool (= s1 s2))+[GOOD] (define-fun s5 () Bool (and s3 s4))+[GOOD] (define-fun s6 () Bool ((as is-Var Bool) s0))+[GOOD] (define-fun s7 () String (getVar_1 s0))+[GOOD] (define-fun s9 () Bool (= s7 s8))+[GOOD] (define-fun s10 () Bool (and s6 s9))+[GOOD] (define-fun s13 () Bool (= s7 s12))+[GOOD] (define-fun s15 () Bool (= s7 s14))+[GOOD] (define-fun s16 () Bool (or s13 s15))+[GOOD] (define-fun s17 () Bool (and s6 s16))+[GOOD] (define-fun s20 () Bool ((as is-Val Bool) s0))+[GOOD] (define-fun s21 () Int (getVal_1 s0))+[GOOD] (define-fun s23 () Bool (< s21 s22))+[GOOD] (define-fun s24 () Bool (and s20 s23))+[GOOD] (define-fun s26 () Bool (= s21 s22))+[GOOD] (define-fun s27 () Bool (and s20 s26))+[GOOD] (define-fun s29 () Bool (> s21 s22))+[GOOD] (define-fun s30 () Bool (and s20 s29))+[GOOD] (define-fun s33 () Int (ite s30 s31 s32))+[GOOD] (define-fun s34 () Int (ite s27 s28 s33))+[GOOD] (define-fun s35 () Int (ite s24 s25 s34))+[GOOD] (define-fun s36 () Int (ite s6 s19 s35))+[GOOD] (define-fun s37 () Int (ite s17 s18 s36))+[GOOD] (define-fun s38 () Int (ite s10 s11 s37))+[GOOD] (define-fun s39 () Bool ((as is-Var Bool) s1))+[GOOD] (define-fun s40 () String (getVar_1 s1))+[GOOD] (define-fun s41 () Bool (= s8 s40))+[GOOD] (define-fun s42 () Bool (and s39 s41))+[GOOD] (define-fun s43 () Bool (= s12 s40))+[GOOD] (define-fun s44 () Bool (= s14 s40))+[GOOD] (define-fun s45 () Bool (or s43 s44))+[GOOD] (define-fun s46 () Bool (and s39 s45))+[GOOD] (define-fun s47 () Bool ((as is-Val Bool) s1))+[GOOD] (define-fun s48 () Int (getVal_1 s1))+[GOOD] (define-fun s49 () Bool (< s48 s22))+[GOOD] (define-fun s50 () Bool (and s47 s49))+[GOOD] (define-fun s51 () Bool (= s22 s48))+[GOOD] (define-fun s52 () Bool (and s47 s51))+[GOOD] (define-fun s53 () Bool (> s48 s22))+[GOOD] (define-fun s54 () Bool (and s47 s53))+[GOOD] (define-fun s55 () Int (ite s54 s31 s32))+[GOOD] (define-fun s56 () Int (ite s52 s28 s55))+[GOOD] (define-fun s57 () Int (ite s50 s25 s56))+[GOOD] (define-fun s58 () Int (ite s39 s19 s57))+[GOOD] (define-fun s59 () Int (ite s46 s18 s58))+[GOOD] (define-fun s60 () Int (ite s42 s11 s59))+[GOOD] (define-fun s61 () Int (+ s38 s60))+[GOOD] (define-fun s63 () Bool (distinct s61 s62))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s5)+[GOOD] (assert s63)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_pexpr11c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_pexpr12.gold view
@@ -0,0 +1,319 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (par (nm val) (+           (Val (getVal_1 val))+           (Var (getVar_1 nm))+           (Add (getAdd_1 (Expr nm val)) (getAdd_2 (Expr nm val)))+           (Mul (getMul_1 (Expr nm val)) (getMul_2 (Expr nm val)))+           (Let (getLet_1 nm) (getLet_2 (Expr nm val)) (getLet_3 (Expr nm val)))+       )))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s10 () (Expr String Int) ((as Val (Expr String Int)) 11))+[GOOD] (define-fun s12 () (Expr String Int) ((as Val (Expr String Int)) 12))+[GOOD] (define-fun s14 () (Expr String Int) ((as Val (Expr String Int)) 13))+[GOOD] (define-fun s16 () (Expr String Int) ((as Val (Expr String Int)) 14))+[GOOD] (define-fun s18 () (Expr String Int) ((as Val (Expr String Int)) 15))+[GOOD] (define-fun s20 () (Expr String Int) ((as Val (Expr String Int)) 16))+[GOOD] (define-fun s22 () (Expr String Int) ((as Val (Expr String Int)) 17))+[GOOD] (define-fun s24 () (Expr String Int) ((as Val (Expr String Int)) 18))+[GOOD] (define-fun s26 () (Expr String Int) ((as Val (Expr String Int)) 19))+[GOOD] (define-fun s28 () (Expr String Int) ((as Val (Expr String Int)) 20))+[GOOD] (define-fun s41 () String "a")+[GOOD] (define-fun s44 () Int 0)+[GOOD] (define-fun s45 () String "b")+[GOOD] (define-fun s47 () String "c")+[GOOD] (define-fun s51 () Int 1)+[GOOD] (define-fun s52 () Int 2)+[GOOD] (define-fun s55 () Int 10)+[GOOD] (define-fun s58 () Int 3)+[GOOD] (define-fun s61 () Int 4)+[GOOD] (define-fun s64 () Int 5)+[GOOD] (define-fun s65 () Int 6)+[GOOD] (define-fun s279 () Int 50)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Expr String Int))+[GOOD] (declare-fun s1 () (Expr String Int))+[GOOD] (declare-fun s2 () (Expr String Int))+[GOOD] (declare-fun s3 () (Expr String Int))+[GOOD] (declare-fun s4 () (Expr String Int))+[GOOD] (declare-fun s5 () (Expr String Int))+[GOOD] (declare-fun s6 () (Expr String Int))+[GOOD] (declare-fun s7 () (Expr String Int))+[GOOD] (declare-fun s8 () (Expr String Int))+[GOOD] (declare-fun s9 () (Expr String Int))+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s11 () Bool (= s0 s10))+[GOOD] (define-fun s13 () Bool (= s1 s12))+[GOOD] (define-fun s15 () Bool (= s2 s14))+[GOOD] (define-fun s17 () Bool (= s3 s16))+[GOOD] (define-fun s19 () Bool (= s4 s18))+[GOOD] (define-fun s21 () Bool (= s5 s20))+[GOOD] (define-fun s23 () Bool (= s6 s22))+[GOOD] (define-fun s25 () Bool (= s7 s24))+[GOOD] (define-fun s27 () Bool (= s8 s26))+[GOOD] (define-fun s29 () Bool (= s9 s28))+[GOOD] (define-fun s30 () Bool (and s27 s29))+[GOOD] (define-fun s31 () Bool (and s25 s30))+[GOOD] (define-fun s32 () Bool (and s23 s31))+[GOOD] (define-fun s33 () Bool (and s21 s32))+[GOOD] (define-fun s34 () Bool (and s19 s33))+[GOOD] (define-fun s35 () Bool (and s17 s34))+[GOOD] (define-fun s36 () Bool (and s15 s35))+[GOOD] (define-fun s37 () Bool (and s13 s36))+[GOOD] (define-fun s38 () Bool (and s11 s37))+[GOOD] (define-fun s39 () Bool ((as is-Var Bool) s0))+[GOOD] (define-fun s40 () String (getVar_1 s0))+[GOOD] (define-fun s42 () Bool (= s40 s41))+[GOOD] (define-fun s43 () Bool (and s39 s42))+[GOOD] (define-fun s46 () Bool (= s40 s45))+[GOOD] (define-fun s48 () Bool (= s40 s47))+[GOOD] (define-fun s49 () Bool (or s46 s48))+[GOOD] (define-fun s50 () Bool (and s39 s49))+[GOOD] (define-fun s53 () Bool ((as is-Val Bool) s0))+[GOOD] (define-fun s54 () Int (getVal_1 s0))+[GOOD] (define-fun s56 () Bool (< s54 s55))+[GOOD] (define-fun s57 () Bool (and s53 s56))+[GOOD] (define-fun s59 () Bool (= s54 s55))+[GOOD] (define-fun s60 () Bool (and s53 s59))+[GOOD] (define-fun s62 () Bool (> s54 s55))+[GOOD] (define-fun s63 () Bool (and s53 s62))+[GOOD] (define-fun s66 () Int (ite s63 s64 s65))+[GOOD] (define-fun s67 () Int (ite s60 s61 s66))+[GOOD] (define-fun s68 () Int (ite s57 s58 s67))+[GOOD] (define-fun s69 () Int (ite s39 s52 s68))+[GOOD] (define-fun s70 () Int (ite s50 s51 s69))+[GOOD] (define-fun s71 () Int (ite s43 s44 s70))+[GOOD] (define-fun s72 () Bool ((as is-Var Bool) s1))+[GOOD] (define-fun s73 () String (getVar_1 s1))+[GOOD] (define-fun s74 () Bool (= s41 s73))+[GOOD] (define-fun s75 () Bool (and s72 s74))+[GOOD] (define-fun s76 () Bool (= s45 s73))+[GOOD] (define-fun s77 () Bool (= s47 s73))+[GOOD] (define-fun s78 () Bool (or s76 s77))+[GOOD] (define-fun s79 () Bool (and s72 s78))+[GOOD] (define-fun s80 () Bool ((as is-Val Bool) s1))+[GOOD] (define-fun s81 () Int (getVal_1 s1))+[GOOD] (define-fun s82 () Bool (< s81 s55))+[GOOD] (define-fun s83 () Bool (and s80 s82))+[GOOD] (define-fun s84 () Bool (= s55 s81))+[GOOD] (define-fun s85 () Bool (and s80 s84))+[GOOD] (define-fun s86 () Bool (> s81 s55))+[GOOD] (define-fun s87 () Bool (and s80 s86))+[GOOD] (define-fun s88 () Int (ite s87 s64 s65))+[GOOD] (define-fun s89 () Int (ite s85 s61 s88))+[GOOD] (define-fun s90 () Int (ite s83 s58 s89))+[GOOD] (define-fun s91 () Int (ite s72 s52 s90))+[GOOD] (define-fun s92 () Int (ite s79 s51 s91))+[GOOD] (define-fun s93 () Int (ite s75 s44 s92))+[GOOD] (define-fun s94 () Int (+ s71 s93))+[GOOD] (define-fun s95 () Bool ((as is-Var Bool) s2))+[GOOD] (define-fun s96 () String (getVar_1 s2))+[GOOD] (define-fun s97 () Bool (= s41 s96))+[GOOD] (define-fun s98 () Bool (and s95 s97))+[GOOD] (define-fun s99 () Bool (= s45 s96))+[GOOD] (define-fun s100 () Bool (= s47 s96))+[GOOD] (define-fun s101 () Bool (or s99 s100))+[GOOD] (define-fun s102 () Bool (and s95 s101))+[GOOD] (define-fun s103 () Bool ((as is-Val Bool) s2))+[GOOD] (define-fun s104 () Int (getVal_1 s2))+[GOOD] (define-fun s105 () Bool (< s104 s55))+[GOOD] (define-fun s106 () Bool (and s103 s105))+[GOOD] (define-fun s107 () Bool (= s55 s104))+[GOOD] (define-fun s108 () Bool (and s103 s107))+[GOOD] (define-fun s109 () Bool (> s104 s55))+[GOOD] (define-fun s110 () Bool (and s103 s109))+[GOOD] (define-fun s111 () Int (ite s110 s64 s65))+[GOOD] (define-fun s112 () Int (ite s108 s61 s111))+[GOOD] (define-fun s113 () Int (ite s106 s58 s112))+[GOOD] (define-fun s114 () Int (ite s95 s52 s113))+[GOOD] (define-fun s115 () Int (ite s102 s51 s114))+[GOOD] (define-fun s116 () Int (ite s98 s44 s115))+[GOOD] (define-fun s117 () Int (+ s94 s116))+[GOOD] (define-fun s118 () Bool ((as is-Var Bool) s3))+[GOOD] (define-fun s119 () String (getVar_1 s3))+[GOOD] (define-fun s120 () Bool (= s41 s119))+[GOOD] (define-fun s121 () Bool (and s118 s120))+[GOOD] (define-fun s122 () Bool (= s45 s119))+[GOOD] (define-fun s123 () Bool (= s47 s119))+[GOOD] (define-fun s124 () Bool (or s122 s123))+[GOOD] (define-fun s125 () Bool (and s118 s124))+[GOOD] (define-fun s126 () Bool ((as is-Val Bool) s3))+[GOOD] (define-fun s127 () Int (getVal_1 s3))+[GOOD] (define-fun s128 () Bool (< s127 s55))+[GOOD] (define-fun s129 () Bool (and s126 s128))+[GOOD] (define-fun s130 () Bool (= s55 s127))+[GOOD] (define-fun s131 () Bool (and s126 s130))+[GOOD] (define-fun s132 () Bool (> s127 s55))+[GOOD] (define-fun s133 () Bool (and s126 s132))+[GOOD] (define-fun s134 () Int (ite s133 s64 s65))+[GOOD] (define-fun s135 () Int (ite s131 s61 s134))+[GOOD] (define-fun s136 () Int (ite s129 s58 s135))+[GOOD] (define-fun s137 () Int (ite s118 s52 s136))+[GOOD] (define-fun s138 () Int (ite s125 s51 s137))+[GOOD] (define-fun s139 () Int (ite s121 s44 s138))+[GOOD] (define-fun s140 () Int (+ s117 s139))+[GOOD] (define-fun s141 () Bool ((as is-Var Bool) s4))+[GOOD] (define-fun s142 () String (getVar_1 s4))+[GOOD] (define-fun s143 () Bool (= s41 s142))+[GOOD] (define-fun s144 () Bool (and s141 s143))+[GOOD] (define-fun s145 () Bool (= s45 s142))+[GOOD] (define-fun s146 () Bool (= s47 s142))+[GOOD] (define-fun s147 () Bool (or s145 s146))+[GOOD] (define-fun s148 () Bool (and s141 s147))+[GOOD] (define-fun s149 () Bool ((as is-Val Bool) s4))+[GOOD] (define-fun s150 () Int (getVal_1 s4))+[GOOD] (define-fun s151 () Bool (< s150 s55))+[GOOD] (define-fun s152 () Bool (and s149 s151))+[GOOD] (define-fun s153 () Bool (= s55 s150))+[GOOD] (define-fun s154 () Bool (and s149 s153))+[GOOD] (define-fun s155 () Bool (> s150 s55))+[GOOD] (define-fun s156 () Bool (and s149 s155))+[GOOD] (define-fun s157 () Int (ite s156 s64 s65))+[GOOD] (define-fun s158 () Int (ite s154 s61 s157))+[GOOD] (define-fun s159 () Int (ite s152 s58 s158))+[GOOD] (define-fun s160 () Int (ite s141 s52 s159))+[GOOD] (define-fun s161 () Int (ite s148 s51 s160))+[GOOD] (define-fun s162 () Int (ite s144 s44 s161))+[GOOD] (define-fun s163 () Int (+ s140 s162))+[GOOD] (define-fun s164 () Bool ((as is-Var Bool) s5))+[GOOD] (define-fun s165 () String (getVar_1 s5))+[GOOD] (define-fun s166 () Bool (= s41 s165))+[GOOD] (define-fun s167 () Bool (and s164 s166))+[GOOD] (define-fun s168 () Bool (= s45 s165))+[GOOD] (define-fun s169 () Bool (= s47 s165))+[GOOD] (define-fun s170 () Bool (or s168 s169))+[GOOD] (define-fun s171 () Bool (and s164 s170))+[GOOD] (define-fun s172 () Bool ((as is-Val Bool) s5))+[GOOD] (define-fun s173 () Int (getVal_1 s5))+[GOOD] (define-fun s174 () Bool (< s173 s55))+[GOOD] (define-fun s175 () Bool (and s172 s174))+[GOOD] (define-fun s176 () Bool (= s55 s173))+[GOOD] (define-fun s177 () Bool (and s172 s176))+[GOOD] (define-fun s178 () Bool (> s173 s55))+[GOOD] (define-fun s179 () Bool (and s172 s178))+[GOOD] (define-fun s180 () Int (ite s179 s64 s65))+[GOOD] (define-fun s181 () Int (ite s177 s61 s180))+[GOOD] (define-fun s182 () Int (ite s175 s58 s181))+[GOOD] (define-fun s183 () Int (ite s164 s52 s182))+[GOOD] (define-fun s184 () Int (ite s171 s51 s183))+[GOOD] (define-fun s185 () Int (ite s167 s44 s184))+[GOOD] (define-fun s186 () Int (+ s163 s185))+[GOOD] (define-fun s187 () Bool ((as is-Var Bool) s6))+[GOOD] (define-fun s188 () String (getVar_1 s6))+[GOOD] (define-fun s189 () Bool (= s41 s188))+[GOOD] (define-fun s190 () Bool (and s187 s189))+[GOOD] (define-fun s191 () Bool (= s45 s188))+[GOOD] (define-fun s192 () Bool (= s47 s188))+[GOOD] (define-fun s193 () Bool (or s191 s192))+[GOOD] (define-fun s194 () Bool (and s187 s193))+[GOOD] (define-fun s195 () Bool ((as is-Val Bool) s6))+[GOOD] (define-fun s196 () Int (getVal_1 s6))+[GOOD] (define-fun s197 () Bool (< s196 s55))+[GOOD] (define-fun s198 () Bool (and s195 s197))+[GOOD] (define-fun s199 () Bool (= s55 s196))+[GOOD] (define-fun s200 () Bool (and s195 s199))+[GOOD] (define-fun s201 () Bool (> s196 s55))+[GOOD] (define-fun s202 () Bool (and s195 s201))+[GOOD] (define-fun s203 () Int (ite s202 s64 s65))+[GOOD] (define-fun s204 () Int (ite s200 s61 s203))+[GOOD] (define-fun s205 () Int (ite s198 s58 s204))+[GOOD] (define-fun s206 () Int (ite s187 s52 s205))+[GOOD] (define-fun s207 () Int (ite s194 s51 s206))+[GOOD] (define-fun s208 () Int (ite s190 s44 s207))+[GOOD] (define-fun s209 () Int (+ s186 s208))+[GOOD] (define-fun s210 () Bool ((as is-Var Bool) s7))+[GOOD] (define-fun s211 () String (getVar_1 s7))+[GOOD] (define-fun s212 () Bool (= s41 s211))+[GOOD] (define-fun s213 () Bool (and s210 s212))+[GOOD] (define-fun s214 () Bool (= s45 s211))+[GOOD] (define-fun s215 () Bool (= s47 s211))+[GOOD] (define-fun s216 () Bool (or s214 s215))+[GOOD] (define-fun s217 () Bool (and s210 s216))+[GOOD] (define-fun s218 () Bool ((as is-Val Bool) s7))+[GOOD] (define-fun s219 () Int (getVal_1 s7))+[GOOD] (define-fun s220 () Bool (< s219 s55))+[GOOD] (define-fun s221 () Bool (and s218 s220))+[GOOD] (define-fun s222 () Bool (= s55 s219))+[GOOD] (define-fun s223 () Bool (and s218 s222))+[GOOD] (define-fun s224 () Bool (> s219 s55))+[GOOD] (define-fun s225 () Bool (and s218 s224))+[GOOD] (define-fun s226 () Int (ite s225 s64 s65))+[GOOD] (define-fun s227 () Int (ite s223 s61 s226))+[GOOD] (define-fun s228 () Int (ite s221 s58 s227))+[GOOD] (define-fun s229 () Int (ite s210 s52 s228))+[GOOD] (define-fun s230 () Int (ite s217 s51 s229))+[GOOD] (define-fun s231 () Int (ite s213 s44 s230))+[GOOD] (define-fun s232 () Int (+ s209 s231))+[GOOD] (define-fun s233 () Bool ((as is-Var Bool) s8))+[GOOD] (define-fun s234 () String (getVar_1 s8))+[GOOD] (define-fun s235 () Bool (= s41 s234))+[GOOD] (define-fun s236 () Bool (and s233 s235))+[GOOD] (define-fun s237 () Bool (= s45 s234))+[GOOD] (define-fun s238 () Bool (= s47 s234))+[GOOD] (define-fun s239 () Bool (or s237 s238))+[GOOD] (define-fun s240 () Bool (and s233 s239))+[GOOD] (define-fun s241 () Bool ((as is-Val Bool) s8))+[GOOD] (define-fun s242 () Int (getVal_1 s8))+[GOOD] (define-fun s243 () Bool (< s242 s55))+[GOOD] (define-fun s244 () Bool (and s241 s243))+[GOOD] (define-fun s245 () Bool (= s55 s242))+[GOOD] (define-fun s246 () Bool (and s241 s245))+[GOOD] (define-fun s247 () Bool (> s242 s55))+[GOOD] (define-fun s248 () Bool (and s241 s247))+[GOOD] (define-fun s249 () Int (ite s248 s64 s65))+[GOOD] (define-fun s250 () Int (ite s246 s61 s249))+[GOOD] (define-fun s251 () Int (ite s244 s58 s250))+[GOOD] (define-fun s252 () Int (ite s233 s52 s251))+[GOOD] (define-fun s253 () Int (ite s240 s51 s252))+[GOOD] (define-fun s254 () Int (ite s236 s44 s253))+[GOOD] (define-fun s255 () Int (+ s232 s254))+[GOOD] (define-fun s256 () Bool ((as is-Var Bool) s9))+[GOOD] (define-fun s257 () String (getVar_1 s9))+[GOOD] (define-fun s258 () Bool (= s41 s257))+[GOOD] (define-fun s259 () Bool (and s256 s258))+[GOOD] (define-fun s260 () Bool (= s45 s257))+[GOOD] (define-fun s261 () Bool (= s47 s257))+[GOOD] (define-fun s262 () Bool (or s260 s261))+[GOOD] (define-fun s263 () Bool (and s256 s262))+[GOOD] (define-fun s264 () Bool ((as is-Val Bool) s9))+[GOOD] (define-fun s265 () Int (getVal_1 s9))+[GOOD] (define-fun s266 () Bool (< s265 s55))+[GOOD] (define-fun s267 () Bool (and s264 s266))+[GOOD] (define-fun s268 () Bool (= s55 s265))+[GOOD] (define-fun s269 () Bool (and s264 s268))+[GOOD] (define-fun s270 () Bool (> s265 s55))+[GOOD] (define-fun s271 () Bool (and s264 s270))+[GOOD] (define-fun s272 () Int (ite s271 s64 s65))+[GOOD] (define-fun s273 () Int (ite s269 s61 s272))+[GOOD] (define-fun s274 () Int (ite s267 s58 s273))+[GOOD] (define-fun s275 () Int (ite s256 s52 s274))+[GOOD] (define-fun s276 () Int (ite s263 s51 s275))+[GOOD] (define-fun s277 () Int (ite s259 s44 s276))+[GOOD] (define-fun s278 () Int (+ s255 s277))+[GOOD] (define-fun s280 () Bool (distinct s278 s279))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s38)+[GOOD] (assert s280)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_pexpr12c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_pexpr13.gold view
@@ -0,0 +1,75 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (par (nm val) (+           (Val (getVal_1 val))+           (Var (getVar_1 nm))+           (Add (getAdd_1 (Expr nm val)) (getAdd_2 (Expr nm val)))+           (Mul (getMul_1 (Expr nm val)) (getMul_2 (Expr nm val)))+           (Let (getLet_1 nm) (getLet_2 (Expr nm val)) (getLet_3 (Expr nm val)))+       )))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () (Expr String Int) ((as Val (Expr String Int)) 3))+[GOOD] (define-fun s5 () String "a")+[GOOD] (define-fun s8 () Int 0)+[GOOD] (define-fun s9 () String "b")+[GOOD] (define-fun s11 () String "c")+[GOOD] (define-fun s15 () Int 1)+[GOOD] (define-fun s16 () Int 2)+[GOOD] (define-fun s19 () Int 10)+[GOOD] (define-fun s22 () Int 3)+[GOOD] (define-fun s25 () Int 4)+[GOOD] (define-fun s28 () Int 5)+[GOOD] (define-fun s29 () Int 6)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Expr String Int))+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s3 () Bool ((as is-Var Bool) s0))+[GOOD] (define-fun s4 () String (getVar_1 s0))+[GOOD] (define-fun s6 () Bool (= s4 s5))+[GOOD] (define-fun s7 () Bool (and s3 s6))+[GOOD] (define-fun s10 () Bool (= s4 s9))+[GOOD] (define-fun s12 () Bool (= s4 s11))+[GOOD] (define-fun s13 () Bool (or s10 s12))+[GOOD] (define-fun s14 () Bool (and s3 s13))+[GOOD] (define-fun s17 () Bool ((as is-Val Bool) s0))+[GOOD] (define-fun s18 () Int (getVal_1 s0))+[GOOD] (define-fun s20 () Bool (< s18 s19))+[GOOD] (define-fun s21 () Bool (and s17 s20))+[GOOD] (define-fun s23 () Bool (= s18 s19))+[GOOD] (define-fun s24 () Bool (and s17 s23))+[GOOD] (define-fun s26 () Bool (> s18 s19))+[GOOD] (define-fun s27 () Bool (and s17 s26))+[GOOD] (define-fun s30 () Int (ite s27 s28 s29))+[GOOD] (define-fun s31 () Int (ite s24 s25 s30))+[GOOD] (define-fun s32 () Int (ite s21 s22 s31))+[GOOD] (define-fun s33 () Int (ite s3 s16 s32))+[GOOD] (define-fun s34 () Int (ite s14 s15 s33))+[GOOD] (define-fun s35 () Int (ite s7 s8 s34))+[GOOD] (define-fun s36 () Bool (distinct s22 s35))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s36)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_pexpr13c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_pexpr14.gold view
@@ -0,0 +1,75 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (par (nm val) (+           (Val (getVal_1 val))+           (Var (getVar_1 nm))+           (Add (getAdd_1 (Expr nm val)) (getAdd_2 (Expr nm val)))+           (Mul (getMul_1 (Expr nm val)) (getMul_2 (Expr nm val)))+           (Let (getLet_1 nm) (getLet_2 (Expr nm val)) (getLet_3 (Expr nm val)))+       )))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () (Expr String Int) ((as Add (Expr String Int)) ((as Val (Expr String Int)) 3) ((as Val (Expr String Int)) 4)))+[GOOD] (define-fun s5 () String "a")+[GOOD] (define-fun s8 () Int 0)+[GOOD] (define-fun s9 () String "b")+[GOOD] (define-fun s11 () String "c")+[GOOD] (define-fun s15 () Int 1)+[GOOD] (define-fun s16 () Int 2)+[GOOD] (define-fun s19 () Int 10)+[GOOD] (define-fun s22 () Int 3)+[GOOD] (define-fun s25 () Int 4)+[GOOD] (define-fun s28 () Int 5)+[GOOD] (define-fun s29 () Int 6)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Expr String Int))+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s3 () Bool ((as is-Var Bool) s0))+[GOOD] (define-fun s4 () String (getVar_1 s0))+[GOOD] (define-fun s6 () Bool (= s4 s5))+[GOOD] (define-fun s7 () Bool (and s3 s6))+[GOOD] (define-fun s10 () Bool (= s4 s9))+[GOOD] (define-fun s12 () Bool (= s4 s11))+[GOOD] (define-fun s13 () Bool (or s10 s12))+[GOOD] (define-fun s14 () Bool (and s3 s13))+[GOOD] (define-fun s17 () Bool ((as is-Val Bool) s0))+[GOOD] (define-fun s18 () Int (getVal_1 s0))+[GOOD] (define-fun s20 () Bool (< s18 s19))+[GOOD] (define-fun s21 () Bool (and s17 s20))+[GOOD] (define-fun s23 () Bool (= s18 s19))+[GOOD] (define-fun s24 () Bool (and s17 s23))+[GOOD] (define-fun s26 () Bool (> s18 s19))+[GOOD] (define-fun s27 () Bool (and s17 s26))+[GOOD] (define-fun s30 () Int (ite s27 s28 s29))+[GOOD] (define-fun s31 () Int (ite s24 s25 s30))+[GOOD] (define-fun s32 () Int (ite s21 s22 s31))+[GOOD] (define-fun s33 () Int (ite s3 s16 s32))+[GOOD] (define-fun s34 () Int (ite s14 s15 s33))+[GOOD] (define-fun s35 () Int (ite s7 s8 s34))+[GOOD] (define-fun s36 () Bool (distinct s29 s35))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s36)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_pexpr14c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_pexpr15.gold view
@@ -0,0 +1,75 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (par (nm val) (+           (Val (getVal_1 val))+           (Var (getVar_1 nm))+           (Add (getAdd_1 (Expr nm val)) (getAdd_2 (Expr nm val)))+           (Mul (getMul_1 (Expr nm val)) (getMul_2 (Expr nm val)))+           (Let (getLet_1 nm) (getLet_2 (Expr nm val)) (getLet_3 (Expr nm val)))+       )))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () (Expr String Int) ((as Mul (Expr String Int)) ((as Val (Expr String Int)) 3) ((as Add (Expr String Int)) ((as Val (Expr String Int)) 3) ((as Val (Expr String Int)) 4))))+[GOOD] (define-fun s5 () String "a")+[GOOD] (define-fun s8 () Int 0)+[GOOD] (define-fun s9 () String "b")+[GOOD] (define-fun s11 () String "c")+[GOOD] (define-fun s15 () Int 1)+[GOOD] (define-fun s16 () Int 2)+[GOOD] (define-fun s19 () Int 10)+[GOOD] (define-fun s22 () Int 3)+[GOOD] (define-fun s25 () Int 4)+[GOOD] (define-fun s28 () Int 5)+[GOOD] (define-fun s29 () Int 6)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Expr String Int))+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s3 () Bool ((as is-Var Bool) s0))+[GOOD] (define-fun s4 () String (getVar_1 s0))+[GOOD] (define-fun s6 () Bool (= s4 s5))+[GOOD] (define-fun s7 () Bool (and s3 s6))+[GOOD] (define-fun s10 () Bool (= s4 s9))+[GOOD] (define-fun s12 () Bool (= s4 s11))+[GOOD] (define-fun s13 () Bool (or s10 s12))+[GOOD] (define-fun s14 () Bool (and s3 s13))+[GOOD] (define-fun s17 () Bool ((as is-Val Bool) s0))+[GOOD] (define-fun s18 () Int (getVal_1 s0))+[GOOD] (define-fun s20 () Bool (< s18 s19))+[GOOD] (define-fun s21 () Bool (and s17 s20))+[GOOD] (define-fun s23 () Bool (= s18 s19))+[GOOD] (define-fun s24 () Bool (and s17 s23))+[GOOD] (define-fun s26 () Bool (> s18 s19))+[GOOD] (define-fun s27 () Bool (and s17 s26))+[GOOD] (define-fun s30 () Int (ite s27 s28 s29))+[GOOD] (define-fun s31 () Int (ite s24 s25 s30))+[GOOD] (define-fun s32 () Int (ite s21 s22 s31))+[GOOD] (define-fun s33 () Int (ite s3 s16 s32))+[GOOD] (define-fun s34 () Int (ite s14 s15 s33))+[GOOD] (define-fun s35 () Int (ite s7 s8 s34))+[GOOD] (define-fun s36 () Bool (distinct s29 s35))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s36)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_pexpr15c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_pexpr16.gold view
@@ -0,0 +1,75 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (par (nm val) (+           (Val (getVal_1 val))+           (Var (getVar_1 nm))+           (Add (getAdd_1 (Expr nm val)) (getAdd_2 (Expr nm val)))+           (Mul (getMul_1 (Expr nm val)) (getMul_2 (Expr nm val)))+           (Let (getLet_1 nm) (getLet_2 (Expr nm val)) (getLet_3 (Expr nm val)))+       )))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () (Expr String Int) ((as Let (Expr String Int)) "a" ((as Mul (Expr String Int)) ((as Val (Expr String Int)) 3) ((as Add (Expr String Int)) ((as Val (Expr String Int)) 3) ((as Val (Expr String Int)) 4))) ((as Add (Expr String Int)) ((as Var (Expr String Int)) "a") ((as Add (Expr String Int)) ((as Val (Expr String Int)) 3) ((as Val (Expr String Int)) 4)))))+[GOOD] (define-fun s5 () String "a")+[GOOD] (define-fun s8 () Int 0)+[GOOD] (define-fun s9 () String "b")+[GOOD] (define-fun s11 () String "c")+[GOOD] (define-fun s15 () Int 1)+[GOOD] (define-fun s16 () Int 2)+[GOOD] (define-fun s19 () Int 10)+[GOOD] (define-fun s22 () Int 3)+[GOOD] (define-fun s25 () Int 4)+[GOOD] (define-fun s28 () Int 5)+[GOOD] (define-fun s29 () Int 6)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Expr String Int))+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s3 () Bool ((as is-Var Bool) s0))+[GOOD] (define-fun s4 () String (getVar_1 s0))+[GOOD] (define-fun s6 () Bool (= s4 s5))+[GOOD] (define-fun s7 () Bool (and s3 s6))+[GOOD] (define-fun s10 () Bool (= s4 s9))+[GOOD] (define-fun s12 () Bool (= s4 s11))+[GOOD] (define-fun s13 () Bool (or s10 s12))+[GOOD] (define-fun s14 () Bool (and s3 s13))+[GOOD] (define-fun s17 () Bool ((as is-Val Bool) s0))+[GOOD] (define-fun s18 () Int (getVal_1 s0))+[GOOD] (define-fun s20 () Bool (< s18 s19))+[GOOD] (define-fun s21 () Bool (and s17 s20))+[GOOD] (define-fun s23 () Bool (= s18 s19))+[GOOD] (define-fun s24 () Bool (and s17 s23))+[GOOD] (define-fun s26 () Bool (> s18 s19))+[GOOD] (define-fun s27 () Bool (and s17 s26))+[GOOD] (define-fun s30 () Int (ite s27 s28 s29))+[GOOD] (define-fun s31 () Int (ite s24 s25 s30))+[GOOD] (define-fun s32 () Int (ite s21 s22 s31))+[GOOD] (define-fun s33 () Int (ite s3 s16 s32))+[GOOD] (define-fun s34 () Int (ite s14 s15 s33))+[GOOD] (define-fun s35 () Int (ite s7 s8 s34))+[GOOD] (define-fun s36 () Bool (distinct s29 s35))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s36)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_pexpr16c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_pexpr17.gold view
@@ -0,0 +1,75 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (par (nm val) (+           (Val (getVal_1 val))+           (Var (getVar_1 nm))+           (Add (getAdd_1 (Expr nm val)) (getAdd_2 (Expr nm val)))+           (Mul (getMul_1 (Expr nm val)) (getMul_2 (Expr nm val)))+           (Let (getLet_1 nm) (getLet_2 (Expr nm val)) (getLet_3 (Expr nm val)))+       )))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () (Expr String Int) ((as Add (Expr String Int)) ((as Let (Expr String Int)) "a" ((as Mul (Expr String Int)) ((as Val (Expr String Int)) 3) ((as Add (Expr String Int)) ((as Val (Expr String Int)) 3) ((as Val (Expr String Int)) 4))) ((as Add (Expr String Int)) ((as Var (Expr String Int)) "a") ((as Add (Expr String Int)) ((as Val (Expr String Int)) 3) ((as Val (Expr String Int)) 4)))) ((as Let (Expr String Int)) "a" ((as Let (Expr String Int)) "a" ((as Mul (Expr String Int)) ((as Val (Expr String Int)) 3) ((as Add (Expr String Int)) ((as Val (Expr String Int)) 3) ((as Val (Expr String Int)) 4))) ((as Add (Expr String Int)) ((as Var (Expr String Int)) "a") ((as Add (Expr String Int)) ((as Val (Expr String Int)) 3) ((as Val (Expr String Int)) 4)))) ((as Add (Expr String Int)) ((as Var (Expr String Int)) "a") ((as Add (Expr String Int)) ((as Val (Expr String Int)) 3) ((as Val (Expr String Int)) 4))))))+[GOOD] (define-fun s5 () String "a")+[GOOD] (define-fun s8 () Int 0)+[GOOD] (define-fun s9 () String "b")+[GOOD] (define-fun s11 () String "c")+[GOOD] (define-fun s15 () Int 1)+[GOOD] (define-fun s16 () Int 2)+[GOOD] (define-fun s19 () Int 10)+[GOOD] (define-fun s22 () Int 3)+[GOOD] (define-fun s25 () Int 4)+[GOOD] (define-fun s28 () Int 5)+[GOOD] (define-fun s29 () Int 6)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Expr String Int))+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s3 () Bool ((as is-Var Bool) s0))+[GOOD] (define-fun s4 () String (getVar_1 s0))+[GOOD] (define-fun s6 () Bool (= s4 s5))+[GOOD] (define-fun s7 () Bool (and s3 s6))+[GOOD] (define-fun s10 () Bool (= s4 s9))+[GOOD] (define-fun s12 () Bool (= s4 s11))+[GOOD] (define-fun s13 () Bool (or s10 s12))+[GOOD] (define-fun s14 () Bool (and s3 s13))+[GOOD] (define-fun s17 () Bool ((as is-Val Bool) s0))+[GOOD] (define-fun s18 () Int (getVal_1 s0))+[GOOD] (define-fun s20 () Bool (< s18 s19))+[GOOD] (define-fun s21 () Bool (and s17 s20))+[GOOD] (define-fun s23 () Bool (= s18 s19))+[GOOD] (define-fun s24 () Bool (and s17 s23))+[GOOD] (define-fun s26 () Bool (> s18 s19))+[GOOD] (define-fun s27 () Bool (and s17 s26))+[GOOD] (define-fun s30 () Int (ite s27 s28 s29))+[GOOD] (define-fun s31 () Int (ite s24 s25 s30))+[GOOD] (define-fun s32 () Int (ite s21 s22 s31))+[GOOD] (define-fun s33 () Int (ite s3 s16 s32))+[GOOD] (define-fun s34 () Int (ite s14 s15 s33))+[GOOD] (define-fun s35 () Int (ite s7 s8 s34))+[GOOD] (define-fun s36 () Bool (distinct s29 s35))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s36)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_pexpr17c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_pexpr18.gold view
@@ -0,0 +1,75 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (par (nm val) (+           (Val (getVal_1 val))+           (Var (getVar_1 nm))+           (Add (getAdd_1 (Expr nm val)) (getAdd_2 (Expr nm val)))+           (Mul (getMul_1 (Expr nm val)) (getMul_2 (Expr nm val)))+           (Let (getLet_1 nm) (getLet_2 (Expr nm val)) (getLet_3 (Expr nm val)))+       )))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () (Expr String Int) ((as Let (Expr String Int)) "a" ((as Add (Expr String Int)) ((as Let (Expr String Int)) "a" ((as Mul (Expr String Int)) ((as Val (Expr String Int)) 3) ((as Add (Expr String Int)) ((as Val (Expr String Int)) 3) ((as Val (Expr String Int)) 4))) ((as Add (Expr String Int)) ((as Var (Expr String Int)) "a") ((as Add (Expr String Int)) ((as Val (Expr String Int)) 3) ((as Val (Expr String Int)) 4)))) ((as Let (Expr String Int)) "a" ((as Let (Expr String Int)) "a" ((as Mul (Expr String Int)) ((as Val (Expr String Int)) 3) ((as Add (Expr String Int)) ((as Val (Expr String Int)) 3) ((as Val (Expr String Int)) 4))) ((as Add (Expr String Int)) ((as Var (Expr String Int)) "a") ((as Add (Expr String Int)) ((as Val (Expr String Int)) 3) ((as Val (Expr String Int)) 4)))) ((as Add (Expr String Int)) ((as Var (Expr String Int)) "a") ((as Add (Expr String Int)) ((as Val (Expr String Int)) 3) ((as Val (Expr String Int)) 4))))) ((as Mul (Expr String Int)) ((as Var (Expr String Int)) "a") ((as Var (Expr String Int)) "a"))))+[GOOD] (define-fun s5 () String "a")+[GOOD] (define-fun s8 () Int 0)+[GOOD] (define-fun s9 () String "b")+[GOOD] (define-fun s11 () String "c")+[GOOD] (define-fun s15 () Int 1)+[GOOD] (define-fun s16 () Int 2)+[GOOD] (define-fun s19 () Int 10)+[GOOD] (define-fun s22 () Int 3)+[GOOD] (define-fun s25 () Int 4)+[GOOD] (define-fun s28 () Int 5)+[GOOD] (define-fun s29 () Int 6)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Expr String Int))+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s3 () Bool ((as is-Var Bool) s0))+[GOOD] (define-fun s4 () String (getVar_1 s0))+[GOOD] (define-fun s6 () Bool (= s4 s5))+[GOOD] (define-fun s7 () Bool (and s3 s6))+[GOOD] (define-fun s10 () Bool (= s4 s9))+[GOOD] (define-fun s12 () Bool (= s4 s11))+[GOOD] (define-fun s13 () Bool (or s10 s12))+[GOOD] (define-fun s14 () Bool (and s3 s13))+[GOOD] (define-fun s17 () Bool ((as is-Val Bool) s0))+[GOOD] (define-fun s18 () Int (getVal_1 s0))+[GOOD] (define-fun s20 () Bool (< s18 s19))+[GOOD] (define-fun s21 () Bool (and s17 s20))+[GOOD] (define-fun s23 () Bool (= s18 s19))+[GOOD] (define-fun s24 () Bool (and s17 s23))+[GOOD] (define-fun s26 () Bool (> s18 s19))+[GOOD] (define-fun s27 () Bool (and s17 s26))+[GOOD] (define-fun s30 () Int (ite s27 s28 s29))+[GOOD] (define-fun s31 () Int (ite s24 s25 s30))+[GOOD] (define-fun s32 () Int (ite s21 s22 s31))+[GOOD] (define-fun s33 () Int (ite s3 s16 s32))+[GOOD] (define-fun s34 () Int (ite s14 s15 s33))+[GOOD] (define-fun s35 () Int (ite s7 s8 s34))+[GOOD] (define-fun s36 () Bool (distinct s29 s35))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s36)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_pexpr18c.gold view
@@ -0,0 +1,25 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; external query, using all logics.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+All good.+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_pexpr19.gold view
@@ -0,0 +1,41 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (par (nm val) (+           (Val (getVal_1 val))+           (Var (getVar_1 nm))+           (Add (getAdd_1 (Expr nm val)) (getAdd_2 (Expr nm val)))+           (Mul (getMul_1 (Expr nm val)) (getMul_2 (Expr nm val)))+           (Let (getLet_1 nm) (getLet_2 (Expr nm val)) (getLet_3 (Expr nm val)))+       )))+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Expr Int (_ BitVec 8))) ; tracks user variable "x"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s1 () Bool ((as is-Let Bool) s0))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s1)+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 (Let 2 (Var 3) (Var 4))))+Result: (let 2 = 3 in 4)+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_pexpr20.gold view
@@ -0,0 +1,51 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has rational values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] (declare-datatype SBVRational ((SBV.Rational (sbv.rat.numerator Int) (sbv.rat.denominator Int))))++[GOOD] (define-fun sbv.rat.eq ((x SBVRational) (y SBVRational)) Bool+          (= (* (sbv.rat.numerator   x) (sbv.rat.denominator y))+             (* (sbv.rat.denominator x) (sbv.rat.numerator   y)))+       )++[GOOD] (define-fun sbv.rat.notEq ((x SBVRational) (y SBVRational)) Bool+          (not (sbv.rat.eq x y))+       )+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (par (nm val) (+           (Val (getVal_1 val))+           (Var (getVar_1 nm))+           (Add (getAdd_1 (Expr nm val)) (getAdd_2 (Expr nm val)))+           (Mul (getMul_1 (Expr nm val)) (getMul_2 (Expr nm val)))+           (Let (getLet_1 nm) (getLet_2 (Expr nm val)) (getLet_3 (Expr nm val)))+       )))+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Expr (_ BitVec 8) SBVRational)) ; tracks user variable "x"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s1 () Bool ((as is-Mul Bool) s0))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s1)+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 (Mul (Var #x00) (Var #x00))))+Result: (0 * 0)+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_pexpr21.gold view
@@ -0,0 +1,52 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] (declare-datatypes ((SBVEither 2)) ((par (T1 T2)+                                           ((left_SBVEither  (get_left_SBVEither  T1))+                                            (right_SBVEither (get_right_SBVEither T2))))))+[GOOD] (declare-datatypes ((SBVMaybe 1)) ((par (T)+                                           ((nothing_SBVMaybe)+                                            (just_SBVMaybe (get_just_SBVMaybe T))))))+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (par (nm val) (+           (Val (getVal_1 val))+           (Var (getVar_1 nm))+           (Add (getAdd_1 (Expr nm val)) (getAdd_2 (Expr nm val)))+           (Mul (getMul_1 (Expr nm val)) (getMul_2 (Expr nm val)))+           (Let (getLet_1 nm) (getLet_2 (Expr nm val)) (getLet_3 (Expr nm val)))+       )))+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Expr (SBVMaybe (SBVTuple2 Int String)) (SBVEither (_ BitVec 8) (_ BitVec 16)))) ; tracks user variable "x"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s1 () Bool ((as is-Let Bool) s0))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s1)+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 (Let nothing_SBVMaybe+            (Val (right_SBVEither #x0000))+            (Val (right_SBVEither #x0000)))))+Result: (let Nothing = Right 0 in Right 0)+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_pgen00.gold view
@@ -0,0 +1,277 @@+[MEASURE] Verifying termination measures for: eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer), eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer), get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer), valid @(SBV [[Char]] -> SBV (Expr [Char] Integer) -> SBV Bool)+[MEASURE] Checking: eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer): not in a multi-member cycle, skipping mutual check+[MEASURE] Passed (terminating): eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)+[MEASURE] Checking: eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer): barified = "|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)|"+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer): Uninterpreted ops in DAG: [("|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)|",2),("|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)|",2)]+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer): recursive calls found = 6+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer): trying sbv.dt.size.Expr arg2+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer): sbv.dt.size.Expr arg2 -> OK (structural recursion)+[MEASURE] eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer): sbv.dt.size.Expr arg2 -> OK+[MEASURE] Passed (terminating): eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)+[MEASURE] Checking: get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): barified = "|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|"+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): Uninterpreted ops in DAG: [("|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|",2)]+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): recursive calls found = 1+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): trying length arg1+[MEASURE] replayDAG {get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)}: replaying 13 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq (SBVTuple2 String Int))) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () String) ; tracks user variable "arg1"+[GOOD] (declare-fun s14 () Int) ; tracks user variable "__internal_sbv_s14"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Int (seq.len s0))+[GOOD] (define-fun s5 () Bool (= s2 s4))+[GOOD] (define-fun s6 () Bool (not s5))+[GOOD] (define-fun s7 () (SBVTuple2 String Int) (seq.nth s0 s2))+[GOOD] (define-fun s8 () String (proj_1_SBVTuple2 s7))+[GOOD] (define-fun s9 () Bool (= s1 s8))+[GOOD] (define-fun s10 () Bool (and s6 s9))+[GOOD] (define-fun s11 () Int (proj_2_SBVTuple2 s7))+[GOOD] (define-fun s12 () Int (- s4 s3))+[GOOD] (define-fun s13 () (Seq (SBVTuple2 String Int)) (seq.extract s0 s3 s12))+[GOOD] (define-fun s15 () Int (ite s10 s11 s14))+[GOOD] (define-fun s16 () Int (ite s5 s2 s15))+[GOOD] (define-fun s17 () Bool (>= s4 s2))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s17))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)}: replaying 13 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq (SBVTuple2 String Int))) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () String) ; tracks user variable "arg1"+[GOOD] (declare-fun s14 () Int) ; tracks user variable "__internal_sbv_s14"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Int (seq.len s0))+[GOOD] (define-fun s5 () Bool (= s2 s4))+[GOOD] (define-fun s6 () Bool (not s5))+[GOOD] (define-fun s7 () (SBVTuple2 String Int) (seq.nth s0 s2))+[GOOD] (define-fun s8 () String (proj_1_SBVTuple2 s7))+[GOOD] (define-fun s9 () Bool (= s1 s8))+[GOOD] (define-fun s10 () Bool (and s6 s9))+[GOOD] (define-fun s11 () Int (proj_2_SBVTuple2 s7))+[GOOD] (define-fun s12 () Int (- s4 s3))+[GOOD] (define-fun s13 () (Seq (SBVTuple2 String Int)) (seq.extract s0 s3 s12))+[GOOD] (define-fun s15 () Int (ite s10 s11 s14))+[GOOD] (define-fun s16 () Int (ite s5 s2 s15))+[GOOD] (define-fun s17 () Int (seq.len s13))+[GOOD] (define-fun s18 () Bool (not s10))+[GOOD] (define-fun s19 () Bool (and s6 s18))+[GOOD] (define-fun s20 () Bool (> s4 s17))+[GOOD] (define-fun s21 () Bool (=> s19 s20))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s21))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer): length arg1 -> OK+[MEASURE] Passed (terminating): get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)+[MEASURE] Checking: valid @(SBV [[Char]] -> SBV (Expr [Char] Integer) -> SBV Bool)+[MEASURE] valid @(SBV [[Char]] -> SBV (Expr [Char] Integer) -> SBV Bool): barified = "|valid @(SBV [[Char]] -> SBV (Expr [Char] Integer) -> SBV Bool)|"+[MEASURE] valid @(SBV [[Char]] -> SBV (Expr [Char] Integer) -> SBV Bool): Uninterpreted ops in DAG: [("|valid @(SBV [[Char]] -> SBV (Expr [Char] Integer) -> SBV Bool)|",2),("|valid @(SBV [[Char]] -> SBV (Expr [Char] Integer) -> SBV Bool)|",2),("|valid @(SBV [[Char]] -> SBV (Expr [Char] Integer) -> SBV Bool)|",2),("|valid @(SBV [[Char]] -> SBV (Expr [Char] Integer) -> SBV Bool)|",2),("|valid @(SBV [[Char]] -> SBV (Expr [Char] Integer) -> SBV Bool)|",2),("|valid @(SBV [[Char]] -> SBV (Expr [Char] Integer) -> SBV Bool)|",2)]+[MEASURE] valid @(SBV [[Char]] -> SBV (Expr [Char] Integer) -> SBV Bool): recursive calls found = 6+[MEASURE] valid @(SBV [[Char]] -> SBV (Expr [Char] Integer) -> SBV Bool): trying sbv.dt.size.Expr arg2+[MEASURE] valid @(SBV [[Char]] -> SBV (Expr [Char] Integer) -> SBV Bool): sbv.dt.size.Expr arg2 -> OK (structural recursion)+[MEASURE] valid @(SBV [[Char]] -> SBV (Expr [Char] Integer) -> SBV Bool): sbv.dt.size.Expr arg2 -> OK+[MEASURE] Passed (terminating): valid @(SBV [[Char]] -> SBV (Expr [Char] Integer) -> SBV Bool)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (par (nm val) (+           (Val (getVal_1 val))+           (Var (getVar_1 nm))+           (Add (getAdd_1 (Expr nm val)) (getAdd_2 (Expr nm val)))+           (Mul (getMul_1 (Expr nm val)) (getMul_2 (Expr nm val)))+           (Let (getLet_1 nm) (getLet_2 (Expr nm val)) (getLet_3 (Expr nm val)))+       )))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () (Seq String) (as seq.empty (Seq String)))+[GOOD] (define-fun s3 () (Seq (SBVTuple2 String Int)) (as seq.empty (Seq (SBVTuple2 String Int))))+[GOOD] (define-fun s5 () Int 12)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Expr String Int)) ; tracks user variable "a"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; |valid @(SBV [[Char]] -> SBV (Expr [Char] Integer) -> SBV Bool)| :: [SString] -> Expr String Integer -> SBool [Recursive]+[GOOD] (define-fun-rec |valid @(SBV [[Char]] -> SBV (Expr [Char] Integer) -> SBV Bool)| ((l1_s0 (Seq String)) (l1_s1 (Expr String Int))) Bool+                                 (let ((l1_s2 ((as is-Val Bool) l1_s1)))+                                 (let ((l1_s3 ((as is-Var Bool) l1_s1)))+                                 (let ((l1_s4 (getVar_1 l1_s1)))+                                 (let ((l1_s5 (str.in_re l1_s4 (re.++ (re.range "a" "z") (re.* (re.union (re.range "a" "z") (re.range "A" "Z") (re.range "0" "9")))))))+                                 (let ((l1_s6 (seq.unit l1_s4)))+                                 (let ((l1_s7 (seq.contains l1_s0 l1_s6)))+                                 (let ((l1_s8 (and l1_s5 l1_s7)))+                                 (let ((l1_s9 ((as is-Add Bool) l1_s1)))+                                 (let ((l1_s10 (getAdd_1 l1_s1)))+                                 (let ((l1_s11 (|valid @(SBV [[Char]] -> SBV (Expr [Char] Integer) -> SBV Bool)| l1_s0 l1_s10)))+                                 (let ((l1_s12 (getAdd_2 l1_s1)))+                                 (let ((l1_s13 (|valid @(SBV [[Char]] -> SBV (Expr [Char] Integer) -> SBV Bool)| l1_s0 l1_s12)))+                                 (let ((l1_s14 (and l1_s11 l1_s13)))+                                 (let ((l1_s15 ((as is-Mul Bool) l1_s1)))+                                 (let ((l1_s16 (getMul_1 l1_s1)))+                                 (let ((l1_s17 (|valid @(SBV [[Char]] -> SBV (Expr [Char] Integer) -> SBV Bool)| l1_s0 l1_s16)))+                                 (let ((l1_s18 (getMul_2 l1_s1)))+                                 (let ((l1_s19 (|valid @(SBV [[Char]] -> SBV (Expr [Char] Integer) -> SBV Bool)| l1_s0 l1_s18)))+                                 (let ((l1_s20 (and l1_s17 l1_s19)))+                                 (let ((l1_s21 (getLet_1 l1_s1)))+                                 (let ((l1_s22 (str.in_re l1_s21 (re.++ (re.range "a" "z") (re.* (re.union (re.range "a" "z") (re.range "A" "Z") (re.range "0" "9")))))))+                                 (let ((l1_s23 (getLet_2 l1_s1)))+                                 (let ((l1_s24 (|valid @(SBV [[Char]] -> SBV (Expr [Char] Integer) -> SBV Bool)| l1_s0 l1_s23)))+                                 (let ((l1_s25 (seq.unit l1_s21)))+                                 (let ((l1_s26 (seq.++ l1_s25 l1_s0)))+                                 (let ((l1_s27 (getLet_3 l1_s1)))+                                 (let ((l1_s28 (|valid @(SBV [[Char]] -> SBV (Expr [Char] Integer) -> SBV Bool)| l1_s26 l1_s27)))+                                 (let ((l1_s29 (and l1_s24 l1_s28)))+                                 (let ((l1_s30 (and l1_s22 l1_s29)))+                                 (let ((l1_s31 (ite l1_s15 l1_s20 l1_s30)))+                                 (let ((l1_s32 (ite l1_s9 l1_s14 l1_s31)))+                                 (let ((l1_s33 (ite l1_s3 l1_s8 l1_s32)))+                                 (let ((l1_s34 (or l1_s2 l1_s33)))+                                 l1_s34))))))))))))))))))))))))))))))))))+[GOOD] ; |get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| :: [(SString, SInteger)] -> SString -> SInteger [Recursive]+[GOOD] (define-fun-rec |get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| ((l2_s0 (Seq (SBVTuple2 String Int))) (l2_s1 String)) Int+                                                 (let ((l2_s3 0))+                                                 (let ((l2_s11 1))+                                                 (let ((l2_s2 (seq.len l2_s0)))+                                                 (let ((l2_s4 (= l2_s2 l2_s3)))+                                                 (let ((l2_s5 (not l2_s4)))+                                                 (let ((l2_s6 (seq.nth l2_s0 l2_s3)))+                                                 (let ((l2_s7 (proj_1_SBVTuple2 l2_s6)))+                                                 (let ((l2_s8 (= l2_s1 l2_s7)))+                                                 (let ((l2_s9 (and l2_s5 l2_s8)))+                                                 (let ((l2_s10 (proj_2_SBVTuple2 l2_s6)))+                                                 (let ((l2_s12 (- l2_s2 l2_s11)))+                                                 (let ((l2_s13 (seq.extract l2_s0 l2_s11 l2_s12)))+                                                 (let ((l2_s14 (|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| l2_s13 l2_s1)))+                                                 (let ((l2_s15 (ite l2_s9 l2_s10 l2_s14)))+                                                 (let ((l2_s16 (ite l2_s4 l2_s3 l2_s15)))+                                                 l2_s16))))))))))))))))+[GOOD] ; |eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)| :: [(SString, SInteger)] -> Expr String Integer -> SInteger [Recursive] [Refers to: |get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)|]+[GOOD] (define-fun-rec |eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)| ((l1_s0 (Seq (SBVTuple2 String Int))) (l1_s1 (Expr String Int))) Int+                                 (let ((l1_s2 ((as is-Val Bool) l1_s1)))+                                 (let ((l1_s3 (getVal_1 l1_s1)))+                                 (let ((l1_s4 ((as is-Var Bool) l1_s1)))+                                 (let ((l1_s5 (getVar_1 l1_s1)))+                                 (let ((l1_s6 (|get @(SBV [([Char],Integer)] -> SBV [Char] -> SBV Integer)| l1_s0 l1_s5)))+                                 (let ((l1_s7 ((as is-Add Bool) l1_s1)))+                                 (let ((l1_s8 (getAdd_1 l1_s1)))+                                 (let ((l1_s9 (|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)| l1_s0 l1_s8)))+                                 (let ((l1_s10 (getAdd_2 l1_s1)))+                                 (let ((l1_s11 (|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)| l1_s0 l1_s10)))+                                 (let ((l1_s12 (+ l1_s9 l1_s11)))+                                 (let ((l1_s13 ((as is-Mul Bool) l1_s1)))+                                 (let ((l1_s14 (getMul_1 l1_s1)))+                                 (let ((l1_s15 (|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)| l1_s0 l1_s14)))+                                 (let ((l1_s16 (getMul_2 l1_s1)))+                                 (let ((l1_s17 (|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)| l1_s0 l1_s16)))+                                 (let ((l1_s18 (* l1_s15 l1_s17)))+                                 (let ((l1_s19 (getLet_1 l1_s1)))+                                 (let ((l1_s20 (getLet_2 l1_s1)))+                                 (let ((l1_s21 (|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)| l1_s0 l1_s20)))+                                 (let ((l1_s22 ((as mkSBVTuple2 (SBVTuple2 String Int)) l1_s19 l1_s21)))+                                 (let ((l1_s23 (seq.unit l1_s22)))+                                 (let ((l1_s24 (seq.++ l1_s23 l1_s0)))+                                 (let ((l1_s25 (getLet_3 l1_s1)))+                                 (let ((l1_s26 (|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)| l1_s24 l1_s25)))+                                 (let ((l1_s27 (ite l1_s13 l1_s18 l1_s26)))+                                 (let ((l1_s28 (ite l1_s7 l1_s12 l1_s27)))+                                 (let ((l1_s29 (ite l1_s4 l1_s6 l1_s28)))+                                 (let ((l1_s30 (ite l1_s2 l1_s3 l1_s29)))+                                 l1_s30))))))))))))))))))))))))))))))+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (|valid @(SBV [[Char]] -> SBV (Expr [Char] Integer) -> SBV Bool)| s1 s0))+[GOOD] (define-fun s4 () Int (|eval @(SBV [([Char],Integer)] -> SBV (Expr [Char] Integer) -> SBV Integer)| s3 s0))+[GOOD] (define-fun s6 () Bool (= s4 s5))+[GOOD] (define-fun s7 () Bool ((as is-Let Bool) s0))+[GOOD] (define-fun s8 () (Expr String Int) (getLet_3 s0))+[GOOD] (define-fun s9 () Bool ((as is-Let Bool) s8))+[GOOD] (define-fun s10 () (Expr String Int) (getLet_3 s8))+[GOOD] (define-fun s11 () Bool ((as is-Add Bool) s10))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s6)+[GOOD] (assert s7)+[GOOD] (assert s9)+[GOOD] (assert s11)+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 (Let "t"+            (Val 4)+            (Let "l" (Val 7) (Add (Val (- 28281)) (Let "x" (Val 28293) (Var "x")))))))++Got: (let t = 4 in (let l = 7 in (-28281 + (let x = 28293 in x))))+DONE+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_pgen01.gold view
@@ -0,0 +1,83 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (par (nm val) (+           (Val (getVal_1 val))+           (Var (getVar_1 nm))+           (Add (getAdd_1 (Expr nm val)) (getAdd_2 (Expr nm val)))+           (Mul (getMul_1 (Expr nm val)) (getMul_2 (Expr nm val)))+           (Let (getLet_1 nm) (getLet_2 (Expr nm val)) (getLet_3 (Expr nm val)))+       )))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s3 () String "a")+[GOOD] (define-fun s6 () Int 0)+[GOOD] (define-fun s7 () String "b")+[GOOD] (define-fun s9 () String "c")+[GOOD] (define-fun s13 () Int 1)+[GOOD] (define-fun s14 () Int 2)+[GOOD] (define-fun s17 () Int 10)+[GOOD] (define-fun s20 () Int 3)+[GOOD] (define-fun s23 () Int 4)+[GOOD] (define-fun s26 () Int 5)+[GOOD] (define-fun s28 () Int 6)+[GOOD] (define-fun s30 () Int 7)+[GOOD] (define-fun s32 () Int 8)+[GOOD] (define-fun s33 () Int 100)+[GOOD] (define-fun s43 () Int (- 1))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Expr String Int)) ; tracks user variable "a"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s1 () Bool ((as is-Var Bool) s0))+[GOOD] (define-fun s2 () String (getVar_1 s0))+[GOOD] (define-fun s4 () Bool (= s2 s3))+[GOOD] (define-fun s5 () Bool (and s1 s4))+[GOOD] (define-fun s8 () Bool (= s2 s7))+[GOOD] (define-fun s10 () Bool (= s2 s9))+[GOOD] (define-fun s11 () Bool (or s8 s10))+[GOOD] (define-fun s12 () Bool (and s1 s11))+[GOOD] (define-fun s15 () Bool ((as is-Val Bool) s0))+[GOOD] (define-fun s16 () Int (getVal_1 s0))+[GOOD] (define-fun s18 () Bool (< s16 s17))+[GOOD] (define-fun s19 () Bool (and s15 s18))+[GOOD] (define-fun s21 () Bool (= s16 s17))+[GOOD] (define-fun s22 () Bool (and s15 s21))+[GOOD] (define-fun s24 () Bool (> s16 s17))+[GOOD] (define-fun s25 () Bool (and s15 s24))+[GOOD] (define-fun s27 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s29 () Bool ((as is-Mul Bool) s0))+[GOOD] (define-fun s31 () Bool ((as is-Let Bool) s0))+[GOOD] (define-fun s34 () Int (ite s31 s32 s33))+[GOOD] (define-fun s35 () Int (ite s29 s30 s34))+[GOOD] (define-fun s36 () Int (ite s27 s28 s35))+[GOOD] (define-fun s37 () Int (ite s25 s26 s36))+[GOOD] (define-fun s38 () Int (ite s22 s23 s37))+[GOOD] (define-fun s39 () Int (ite s19 s20 s38))+[GOOD] (define-fun s40 () Int (ite s1 s14 s39))+[GOOD] (define-fun s41 () Int (ite s12 s13 s40))+[GOOD] (define-fun s42 () Int (ite s5 s6 s41))+[GOOD] (define-fun s44 () Bool (= s42 s43))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s44)+[SEND] (check-sat)+[RECV] unsat++UNSAT+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_pgen02.gold view
@@ -0,0 +1,85 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (par (nm val) (+           (Val (getVal_1 val))+           (Var (getVar_1 nm))+           (Add (getAdd_1 (Expr nm val)) (getAdd_2 (Expr nm val)))+           (Mul (getMul_1 (Expr nm val)) (getMul_2 (Expr nm val)))+           (Let (getLet_1 nm) (getLet_2 (Expr nm val)) (getLet_3 (Expr nm val)))+       )))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s3 () String "a")+[GOOD] (define-fun s6 () Int 0)+[GOOD] (define-fun s7 () String "b")+[GOOD] (define-fun s9 () String "c")+[GOOD] (define-fun s13 () Int 1)+[GOOD] (define-fun s14 () Int 2)+[GOOD] (define-fun s17 () Int 10)+[GOOD] (define-fun s20 () Int 3)+[GOOD] (define-fun s23 () Int 4)+[GOOD] (define-fun s26 () Int 5)+[GOOD] (define-fun s28 () Int 6)+[GOOD] (define-fun s30 () Int 7)+[GOOD] (define-fun s32 () Int 8)+[GOOD] (define-fun s33 () Int 100)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Expr String Int)) ; tracks user variable "a"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s1 () Bool ((as is-Var Bool) s0))+[GOOD] (define-fun s2 () String (getVar_1 s0))+[GOOD] (define-fun s4 () Bool (= s2 s3))+[GOOD] (define-fun s5 () Bool (and s1 s4))+[GOOD] (define-fun s8 () Bool (= s2 s7))+[GOOD] (define-fun s10 () Bool (= s2 s9))+[GOOD] (define-fun s11 () Bool (or s8 s10))+[GOOD] (define-fun s12 () Bool (and s1 s11))+[GOOD] (define-fun s15 () Bool ((as is-Val Bool) s0))+[GOOD] (define-fun s16 () Int (getVal_1 s0))+[GOOD] (define-fun s18 () Bool (< s16 s17))+[GOOD] (define-fun s19 () Bool (and s15 s18))+[GOOD] (define-fun s21 () Bool (= s16 s17))+[GOOD] (define-fun s22 () Bool (and s15 s21))+[GOOD] (define-fun s24 () Bool (> s16 s17))+[GOOD] (define-fun s25 () Bool (and s15 s24))+[GOOD] (define-fun s27 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s29 () Bool ((as is-Mul Bool) s0))+[GOOD] (define-fun s31 () Bool ((as is-Let Bool) s0))+[GOOD] (define-fun s34 () Int (ite s31 s32 s33))+[GOOD] (define-fun s35 () Int (ite s29 s30 s34))+[GOOD] (define-fun s36 () Int (ite s27 s28 s35))+[GOOD] (define-fun s37 () Int (ite s25 s26 s36))+[GOOD] (define-fun s38 () Int (ite s22 s23 s37))+[GOOD] (define-fun s39 () Int (ite s19 s20 s38))+[GOOD] (define-fun s40 () Int (ite s1 s14 s39))+[GOOD] (define-fun s41 () Int (ite s12 s13 s40))+[GOOD] (define-fun s42 () Int (ite s5 s6 s41))+[GOOD] (define-fun s43 () Bool (= s6 s42))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s43)+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 (Var "a")))++Got: a+DONE+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_pgen03.gold view
@@ -0,0 +1,85 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (par (nm val) (+           (Val (getVal_1 val))+           (Var (getVar_1 nm))+           (Add (getAdd_1 (Expr nm val)) (getAdd_2 (Expr nm val)))+           (Mul (getMul_1 (Expr nm val)) (getMul_2 (Expr nm val)))+           (Let (getLet_1 nm) (getLet_2 (Expr nm val)) (getLet_3 (Expr nm val)))+       )))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s3 () String "a")+[GOOD] (define-fun s6 () Int 0)+[GOOD] (define-fun s7 () String "b")+[GOOD] (define-fun s9 () String "c")+[GOOD] (define-fun s13 () Int 1)+[GOOD] (define-fun s14 () Int 2)+[GOOD] (define-fun s17 () Int 10)+[GOOD] (define-fun s20 () Int 3)+[GOOD] (define-fun s23 () Int 4)+[GOOD] (define-fun s26 () Int 5)+[GOOD] (define-fun s28 () Int 6)+[GOOD] (define-fun s30 () Int 7)+[GOOD] (define-fun s32 () Int 8)+[GOOD] (define-fun s33 () Int 100)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Expr String Int)) ; tracks user variable "a"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s1 () Bool ((as is-Var Bool) s0))+[GOOD] (define-fun s2 () String (getVar_1 s0))+[GOOD] (define-fun s4 () Bool (= s2 s3))+[GOOD] (define-fun s5 () Bool (and s1 s4))+[GOOD] (define-fun s8 () Bool (= s2 s7))+[GOOD] (define-fun s10 () Bool (= s2 s9))+[GOOD] (define-fun s11 () Bool (or s8 s10))+[GOOD] (define-fun s12 () Bool (and s1 s11))+[GOOD] (define-fun s15 () Bool ((as is-Val Bool) s0))+[GOOD] (define-fun s16 () Int (getVal_1 s0))+[GOOD] (define-fun s18 () Bool (< s16 s17))+[GOOD] (define-fun s19 () Bool (and s15 s18))+[GOOD] (define-fun s21 () Bool (= s16 s17))+[GOOD] (define-fun s22 () Bool (and s15 s21))+[GOOD] (define-fun s24 () Bool (> s16 s17))+[GOOD] (define-fun s25 () Bool (and s15 s24))+[GOOD] (define-fun s27 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s29 () Bool ((as is-Mul Bool) s0))+[GOOD] (define-fun s31 () Bool ((as is-Let Bool) s0))+[GOOD] (define-fun s34 () Int (ite s31 s32 s33))+[GOOD] (define-fun s35 () Int (ite s29 s30 s34))+[GOOD] (define-fun s36 () Int (ite s27 s28 s35))+[GOOD] (define-fun s37 () Int (ite s25 s26 s36))+[GOOD] (define-fun s38 () Int (ite s22 s23 s37))+[GOOD] (define-fun s39 () Int (ite s19 s20 s38))+[GOOD] (define-fun s40 () Int (ite s1 s14 s39))+[GOOD] (define-fun s41 () Int (ite s12 s13 s40))+[GOOD] (define-fun s42 () Int (ite s5 s6 s41))+[GOOD] (define-fun s43 () Bool (= s13 s42))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s43)+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 (Var "b")))++Got: b+DONE+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_pgen04.gold view
@@ -0,0 +1,85 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (par (nm val) (+           (Val (getVal_1 val))+           (Var (getVar_1 nm))+           (Add (getAdd_1 (Expr nm val)) (getAdd_2 (Expr nm val)))+           (Mul (getMul_1 (Expr nm val)) (getMul_2 (Expr nm val)))+           (Let (getLet_1 nm) (getLet_2 (Expr nm val)) (getLet_3 (Expr nm val)))+       )))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s3 () String "a")+[GOOD] (define-fun s6 () Int 0)+[GOOD] (define-fun s7 () String "b")+[GOOD] (define-fun s9 () String "c")+[GOOD] (define-fun s13 () Int 1)+[GOOD] (define-fun s14 () Int 2)+[GOOD] (define-fun s17 () Int 10)+[GOOD] (define-fun s20 () Int 3)+[GOOD] (define-fun s23 () Int 4)+[GOOD] (define-fun s26 () Int 5)+[GOOD] (define-fun s28 () Int 6)+[GOOD] (define-fun s30 () Int 7)+[GOOD] (define-fun s32 () Int 8)+[GOOD] (define-fun s33 () Int 100)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Expr String Int)) ; tracks user variable "a"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s1 () Bool ((as is-Var Bool) s0))+[GOOD] (define-fun s2 () String (getVar_1 s0))+[GOOD] (define-fun s4 () Bool (= s2 s3))+[GOOD] (define-fun s5 () Bool (and s1 s4))+[GOOD] (define-fun s8 () Bool (= s2 s7))+[GOOD] (define-fun s10 () Bool (= s2 s9))+[GOOD] (define-fun s11 () Bool (or s8 s10))+[GOOD] (define-fun s12 () Bool (and s1 s11))+[GOOD] (define-fun s15 () Bool ((as is-Val Bool) s0))+[GOOD] (define-fun s16 () Int (getVal_1 s0))+[GOOD] (define-fun s18 () Bool (< s16 s17))+[GOOD] (define-fun s19 () Bool (and s15 s18))+[GOOD] (define-fun s21 () Bool (= s16 s17))+[GOOD] (define-fun s22 () Bool (and s15 s21))+[GOOD] (define-fun s24 () Bool (> s16 s17))+[GOOD] (define-fun s25 () Bool (and s15 s24))+[GOOD] (define-fun s27 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s29 () Bool ((as is-Mul Bool) s0))+[GOOD] (define-fun s31 () Bool ((as is-Let Bool) s0))+[GOOD] (define-fun s34 () Int (ite s31 s32 s33))+[GOOD] (define-fun s35 () Int (ite s29 s30 s34))+[GOOD] (define-fun s36 () Int (ite s27 s28 s35))+[GOOD] (define-fun s37 () Int (ite s25 s26 s36))+[GOOD] (define-fun s38 () Int (ite s22 s23 s37))+[GOOD] (define-fun s39 () Int (ite s19 s20 s38))+[GOOD] (define-fun s40 () Int (ite s1 s14 s39))+[GOOD] (define-fun s41 () Int (ite s12 s13 s40))+[GOOD] (define-fun s42 () Int (ite s5 s6 s41))+[GOOD] (define-fun s43 () Bool (= s14 s42))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s43)+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 (Var "")))++Got: +DONE+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_pgen05.gold view
@@ -0,0 +1,85 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (par (nm val) (+           (Val (getVal_1 val))+           (Var (getVar_1 nm))+           (Add (getAdd_1 (Expr nm val)) (getAdd_2 (Expr nm val)))+           (Mul (getMul_1 (Expr nm val)) (getMul_2 (Expr nm val)))+           (Let (getLet_1 nm) (getLet_2 (Expr nm val)) (getLet_3 (Expr nm val)))+       )))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s3 () String "a")+[GOOD] (define-fun s6 () Int 0)+[GOOD] (define-fun s7 () String "b")+[GOOD] (define-fun s9 () String "c")+[GOOD] (define-fun s13 () Int 1)+[GOOD] (define-fun s14 () Int 2)+[GOOD] (define-fun s17 () Int 10)+[GOOD] (define-fun s20 () Int 3)+[GOOD] (define-fun s23 () Int 4)+[GOOD] (define-fun s26 () Int 5)+[GOOD] (define-fun s28 () Int 6)+[GOOD] (define-fun s30 () Int 7)+[GOOD] (define-fun s32 () Int 8)+[GOOD] (define-fun s33 () Int 100)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Expr String Int)) ; tracks user variable "a"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s1 () Bool ((as is-Var Bool) s0))+[GOOD] (define-fun s2 () String (getVar_1 s0))+[GOOD] (define-fun s4 () Bool (= s2 s3))+[GOOD] (define-fun s5 () Bool (and s1 s4))+[GOOD] (define-fun s8 () Bool (= s2 s7))+[GOOD] (define-fun s10 () Bool (= s2 s9))+[GOOD] (define-fun s11 () Bool (or s8 s10))+[GOOD] (define-fun s12 () Bool (and s1 s11))+[GOOD] (define-fun s15 () Bool ((as is-Val Bool) s0))+[GOOD] (define-fun s16 () Int (getVal_1 s0))+[GOOD] (define-fun s18 () Bool (< s16 s17))+[GOOD] (define-fun s19 () Bool (and s15 s18))+[GOOD] (define-fun s21 () Bool (= s16 s17))+[GOOD] (define-fun s22 () Bool (and s15 s21))+[GOOD] (define-fun s24 () Bool (> s16 s17))+[GOOD] (define-fun s25 () Bool (and s15 s24))+[GOOD] (define-fun s27 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s29 () Bool ((as is-Mul Bool) s0))+[GOOD] (define-fun s31 () Bool ((as is-Let Bool) s0))+[GOOD] (define-fun s34 () Int (ite s31 s32 s33))+[GOOD] (define-fun s35 () Int (ite s29 s30 s34))+[GOOD] (define-fun s36 () Int (ite s27 s28 s35))+[GOOD] (define-fun s37 () Int (ite s25 s26 s36))+[GOOD] (define-fun s38 () Int (ite s22 s23 s37))+[GOOD] (define-fun s39 () Int (ite s19 s20 s38))+[GOOD] (define-fun s40 () Int (ite s1 s14 s39))+[GOOD] (define-fun s41 () Int (ite s12 s13 s40))+[GOOD] (define-fun s42 () Int (ite s5 s6 s41))+[GOOD] (define-fun s43 () Bool (= s20 s42))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s43)+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 (Val 0)))++Got: 0+DONE+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_pgen06.gold view
@@ -0,0 +1,85 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (par (nm val) (+           (Val (getVal_1 val))+           (Var (getVar_1 nm))+           (Add (getAdd_1 (Expr nm val)) (getAdd_2 (Expr nm val)))+           (Mul (getMul_1 (Expr nm val)) (getMul_2 (Expr nm val)))+           (Let (getLet_1 nm) (getLet_2 (Expr nm val)) (getLet_3 (Expr nm val)))+       )))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s3 () String "a")+[GOOD] (define-fun s6 () Int 0)+[GOOD] (define-fun s7 () String "b")+[GOOD] (define-fun s9 () String "c")+[GOOD] (define-fun s13 () Int 1)+[GOOD] (define-fun s14 () Int 2)+[GOOD] (define-fun s17 () Int 10)+[GOOD] (define-fun s20 () Int 3)+[GOOD] (define-fun s23 () Int 4)+[GOOD] (define-fun s26 () Int 5)+[GOOD] (define-fun s28 () Int 6)+[GOOD] (define-fun s30 () Int 7)+[GOOD] (define-fun s32 () Int 8)+[GOOD] (define-fun s33 () Int 100)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Expr String Int)) ; tracks user variable "a"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s1 () Bool ((as is-Var Bool) s0))+[GOOD] (define-fun s2 () String (getVar_1 s0))+[GOOD] (define-fun s4 () Bool (= s2 s3))+[GOOD] (define-fun s5 () Bool (and s1 s4))+[GOOD] (define-fun s8 () Bool (= s2 s7))+[GOOD] (define-fun s10 () Bool (= s2 s9))+[GOOD] (define-fun s11 () Bool (or s8 s10))+[GOOD] (define-fun s12 () Bool (and s1 s11))+[GOOD] (define-fun s15 () Bool ((as is-Val Bool) s0))+[GOOD] (define-fun s16 () Int (getVal_1 s0))+[GOOD] (define-fun s18 () Bool (< s16 s17))+[GOOD] (define-fun s19 () Bool (and s15 s18))+[GOOD] (define-fun s21 () Bool (= s16 s17))+[GOOD] (define-fun s22 () Bool (and s15 s21))+[GOOD] (define-fun s24 () Bool (> s16 s17))+[GOOD] (define-fun s25 () Bool (and s15 s24))+[GOOD] (define-fun s27 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s29 () Bool ((as is-Mul Bool) s0))+[GOOD] (define-fun s31 () Bool ((as is-Let Bool) s0))+[GOOD] (define-fun s34 () Int (ite s31 s32 s33))+[GOOD] (define-fun s35 () Int (ite s29 s30 s34))+[GOOD] (define-fun s36 () Int (ite s27 s28 s35))+[GOOD] (define-fun s37 () Int (ite s25 s26 s36))+[GOOD] (define-fun s38 () Int (ite s22 s23 s37))+[GOOD] (define-fun s39 () Int (ite s19 s20 s38))+[GOOD] (define-fun s40 () Int (ite s1 s14 s39))+[GOOD] (define-fun s41 () Int (ite s12 s13 s40))+[GOOD] (define-fun s42 () Int (ite s5 s6 s41))+[GOOD] (define-fun s43 () Bool (= s23 s42))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s43)+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 (Val 10)))++Got: 10+DONE+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_pgen07.gold view
@@ -0,0 +1,85 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (par (nm val) (+           (Val (getVal_1 val))+           (Var (getVar_1 nm))+           (Add (getAdd_1 (Expr nm val)) (getAdd_2 (Expr nm val)))+           (Mul (getMul_1 (Expr nm val)) (getMul_2 (Expr nm val)))+           (Let (getLet_1 nm) (getLet_2 (Expr nm val)) (getLet_3 (Expr nm val)))+       )))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s3 () String "a")+[GOOD] (define-fun s6 () Int 0)+[GOOD] (define-fun s7 () String "b")+[GOOD] (define-fun s9 () String "c")+[GOOD] (define-fun s13 () Int 1)+[GOOD] (define-fun s14 () Int 2)+[GOOD] (define-fun s17 () Int 10)+[GOOD] (define-fun s20 () Int 3)+[GOOD] (define-fun s23 () Int 4)+[GOOD] (define-fun s26 () Int 5)+[GOOD] (define-fun s28 () Int 6)+[GOOD] (define-fun s30 () Int 7)+[GOOD] (define-fun s32 () Int 8)+[GOOD] (define-fun s33 () Int 100)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Expr String Int)) ; tracks user variable "a"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s1 () Bool ((as is-Var Bool) s0))+[GOOD] (define-fun s2 () String (getVar_1 s0))+[GOOD] (define-fun s4 () Bool (= s2 s3))+[GOOD] (define-fun s5 () Bool (and s1 s4))+[GOOD] (define-fun s8 () Bool (= s2 s7))+[GOOD] (define-fun s10 () Bool (= s2 s9))+[GOOD] (define-fun s11 () Bool (or s8 s10))+[GOOD] (define-fun s12 () Bool (and s1 s11))+[GOOD] (define-fun s15 () Bool ((as is-Val Bool) s0))+[GOOD] (define-fun s16 () Int (getVal_1 s0))+[GOOD] (define-fun s18 () Bool (< s16 s17))+[GOOD] (define-fun s19 () Bool (and s15 s18))+[GOOD] (define-fun s21 () Bool (= s16 s17))+[GOOD] (define-fun s22 () Bool (and s15 s21))+[GOOD] (define-fun s24 () Bool (> s16 s17))+[GOOD] (define-fun s25 () Bool (and s15 s24))+[GOOD] (define-fun s27 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s29 () Bool ((as is-Mul Bool) s0))+[GOOD] (define-fun s31 () Bool ((as is-Let Bool) s0))+[GOOD] (define-fun s34 () Int (ite s31 s32 s33))+[GOOD] (define-fun s35 () Int (ite s29 s30 s34))+[GOOD] (define-fun s36 () Int (ite s27 s28 s35))+[GOOD] (define-fun s37 () Int (ite s25 s26 s36))+[GOOD] (define-fun s38 () Int (ite s22 s23 s37))+[GOOD] (define-fun s39 () Int (ite s19 s20 s38))+[GOOD] (define-fun s40 () Int (ite s1 s14 s39))+[GOOD] (define-fun s41 () Int (ite s12 s13 s40))+[GOOD] (define-fun s42 () Int (ite s5 s6 s41))+[GOOD] (define-fun s43 () Bool (= s26 s42))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s43)+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 (Val 11)))++Got: 11+DONE+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_pgen08.gold view
@@ -0,0 +1,85 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (par (nm val) (+           (Val (getVal_1 val))+           (Var (getVar_1 nm))+           (Add (getAdd_1 (Expr nm val)) (getAdd_2 (Expr nm val)))+           (Mul (getMul_1 (Expr nm val)) (getMul_2 (Expr nm val)))+           (Let (getLet_1 nm) (getLet_2 (Expr nm val)) (getLet_3 (Expr nm val)))+       )))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s3 () String "a")+[GOOD] (define-fun s6 () Int 0)+[GOOD] (define-fun s7 () String "b")+[GOOD] (define-fun s9 () String "c")+[GOOD] (define-fun s13 () Int 1)+[GOOD] (define-fun s14 () Int 2)+[GOOD] (define-fun s17 () Int 10)+[GOOD] (define-fun s20 () Int 3)+[GOOD] (define-fun s23 () Int 4)+[GOOD] (define-fun s26 () Int 5)+[GOOD] (define-fun s28 () Int 6)+[GOOD] (define-fun s30 () Int 7)+[GOOD] (define-fun s32 () Int 8)+[GOOD] (define-fun s33 () Int 100)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Expr String Int)) ; tracks user variable "a"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s1 () Bool ((as is-Var Bool) s0))+[GOOD] (define-fun s2 () String (getVar_1 s0))+[GOOD] (define-fun s4 () Bool (= s2 s3))+[GOOD] (define-fun s5 () Bool (and s1 s4))+[GOOD] (define-fun s8 () Bool (= s2 s7))+[GOOD] (define-fun s10 () Bool (= s2 s9))+[GOOD] (define-fun s11 () Bool (or s8 s10))+[GOOD] (define-fun s12 () Bool (and s1 s11))+[GOOD] (define-fun s15 () Bool ((as is-Val Bool) s0))+[GOOD] (define-fun s16 () Int (getVal_1 s0))+[GOOD] (define-fun s18 () Bool (< s16 s17))+[GOOD] (define-fun s19 () Bool (and s15 s18))+[GOOD] (define-fun s21 () Bool (= s16 s17))+[GOOD] (define-fun s22 () Bool (and s15 s21))+[GOOD] (define-fun s24 () Bool (> s16 s17))+[GOOD] (define-fun s25 () Bool (and s15 s24))+[GOOD] (define-fun s27 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s29 () Bool ((as is-Mul Bool) s0))+[GOOD] (define-fun s31 () Bool ((as is-Let Bool) s0))+[GOOD] (define-fun s34 () Int (ite s31 s32 s33))+[GOOD] (define-fun s35 () Int (ite s29 s30 s34))+[GOOD] (define-fun s36 () Int (ite s27 s28 s35))+[GOOD] (define-fun s37 () Int (ite s25 s26 s36))+[GOOD] (define-fun s38 () Int (ite s22 s23 s37))+[GOOD] (define-fun s39 () Int (ite s19 s20 s38))+[GOOD] (define-fun s40 () Int (ite s1 s14 s39))+[GOOD] (define-fun s41 () Int (ite s12 s13 s40))+[GOOD] (define-fun s42 () Int (ite s5 s6 s41))+[GOOD] (define-fun s43 () Bool (= s28 s42))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s43)+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 (Add (Val 3) (Val 2))))++Got: (3 + 2)+DONE+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_pgen09.gold view
@@ -0,0 +1,85 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (par (nm val) (+           (Val (getVal_1 val))+           (Var (getVar_1 nm))+           (Add (getAdd_1 (Expr nm val)) (getAdd_2 (Expr nm val)))+           (Mul (getMul_1 (Expr nm val)) (getMul_2 (Expr nm val)))+           (Let (getLet_1 nm) (getLet_2 (Expr nm val)) (getLet_3 (Expr nm val)))+       )))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s3 () String "a")+[GOOD] (define-fun s6 () Int 0)+[GOOD] (define-fun s7 () String "b")+[GOOD] (define-fun s9 () String "c")+[GOOD] (define-fun s13 () Int 1)+[GOOD] (define-fun s14 () Int 2)+[GOOD] (define-fun s17 () Int 10)+[GOOD] (define-fun s20 () Int 3)+[GOOD] (define-fun s23 () Int 4)+[GOOD] (define-fun s26 () Int 5)+[GOOD] (define-fun s28 () Int 6)+[GOOD] (define-fun s30 () Int 7)+[GOOD] (define-fun s32 () Int 8)+[GOOD] (define-fun s33 () Int 100)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Expr String Int)) ; tracks user variable "a"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s1 () Bool ((as is-Var Bool) s0))+[GOOD] (define-fun s2 () String (getVar_1 s0))+[GOOD] (define-fun s4 () Bool (= s2 s3))+[GOOD] (define-fun s5 () Bool (and s1 s4))+[GOOD] (define-fun s8 () Bool (= s2 s7))+[GOOD] (define-fun s10 () Bool (= s2 s9))+[GOOD] (define-fun s11 () Bool (or s8 s10))+[GOOD] (define-fun s12 () Bool (and s1 s11))+[GOOD] (define-fun s15 () Bool ((as is-Val Bool) s0))+[GOOD] (define-fun s16 () Int (getVal_1 s0))+[GOOD] (define-fun s18 () Bool (< s16 s17))+[GOOD] (define-fun s19 () Bool (and s15 s18))+[GOOD] (define-fun s21 () Bool (= s16 s17))+[GOOD] (define-fun s22 () Bool (and s15 s21))+[GOOD] (define-fun s24 () Bool (> s16 s17))+[GOOD] (define-fun s25 () Bool (and s15 s24))+[GOOD] (define-fun s27 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s29 () Bool ((as is-Mul Bool) s0))+[GOOD] (define-fun s31 () Bool ((as is-Let Bool) s0))+[GOOD] (define-fun s34 () Int (ite s31 s32 s33))+[GOOD] (define-fun s35 () Int (ite s29 s30 s34))+[GOOD] (define-fun s36 () Int (ite s27 s28 s35))+[GOOD] (define-fun s37 () Int (ite s25 s26 s36))+[GOOD] (define-fun s38 () Int (ite s22 s23 s37))+[GOOD] (define-fun s39 () Int (ite s19 s20 s38))+[GOOD] (define-fun s40 () Int (ite s1 s14 s39))+[GOOD] (define-fun s41 () Int (ite s12 s13 s40))+[GOOD] (define-fun s42 () Int (ite s5 s6 s41))+[GOOD] (define-fun s43 () Bool (= s30 s42))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s43)+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 (Mul (Val 3) (Val 2))))++Got: (3 * 2)+DONE+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_pgen10.gold view
@@ -0,0 +1,85 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (par (nm val) (+           (Val (getVal_1 val))+           (Var (getVar_1 nm))+           (Add (getAdd_1 (Expr nm val)) (getAdd_2 (Expr nm val)))+           (Mul (getMul_1 (Expr nm val)) (getMul_2 (Expr nm val)))+           (Let (getLet_1 nm) (getLet_2 (Expr nm val)) (getLet_3 (Expr nm val)))+       )))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s3 () String "a")+[GOOD] (define-fun s6 () Int 0)+[GOOD] (define-fun s7 () String "b")+[GOOD] (define-fun s9 () String "c")+[GOOD] (define-fun s13 () Int 1)+[GOOD] (define-fun s14 () Int 2)+[GOOD] (define-fun s17 () Int 10)+[GOOD] (define-fun s20 () Int 3)+[GOOD] (define-fun s23 () Int 4)+[GOOD] (define-fun s26 () Int 5)+[GOOD] (define-fun s28 () Int 6)+[GOOD] (define-fun s30 () Int 7)+[GOOD] (define-fun s32 () Int 8)+[GOOD] (define-fun s33 () Int 100)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Expr String Int)) ; tracks user variable "a"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s1 () Bool ((as is-Var Bool) s0))+[GOOD] (define-fun s2 () String (getVar_1 s0))+[GOOD] (define-fun s4 () Bool (= s2 s3))+[GOOD] (define-fun s5 () Bool (and s1 s4))+[GOOD] (define-fun s8 () Bool (= s2 s7))+[GOOD] (define-fun s10 () Bool (= s2 s9))+[GOOD] (define-fun s11 () Bool (or s8 s10))+[GOOD] (define-fun s12 () Bool (and s1 s11))+[GOOD] (define-fun s15 () Bool ((as is-Val Bool) s0))+[GOOD] (define-fun s16 () Int (getVal_1 s0))+[GOOD] (define-fun s18 () Bool (< s16 s17))+[GOOD] (define-fun s19 () Bool (and s15 s18))+[GOOD] (define-fun s21 () Bool (= s16 s17))+[GOOD] (define-fun s22 () Bool (and s15 s21))+[GOOD] (define-fun s24 () Bool (> s16 s17))+[GOOD] (define-fun s25 () Bool (and s15 s24))+[GOOD] (define-fun s27 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s29 () Bool ((as is-Mul Bool) s0))+[GOOD] (define-fun s31 () Bool ((as is-Let Bool) s0))+[GOOD] (define-fun s34 () Int (ite s31 s32 s33))+[GOOD] (define-fun s35 () Int (ite s29 s30 s34))+[GOOD] (define-fun s36 () Int (ite s27 s28 s35))+[GOOD] (define-fun s37 () Int (ite s25 s26 s36))+[GOOD] (define-fun s38 () Int (ite s22 s23 s37))+[GOOD] (define-fun s39 () Int (ite s19 s20 s38))+[GOOD] (define-fun s40 () Int (ite s1 s14 s39))+[GOOD] (define-fun s41 () Int (ite s12 s13 s40))+[GOOD] (define-fun s42 () Int (ite s5 s6 s41))+[GOOD] (define-fun s43 () Bool (= s32 s42))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s43)+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 (Let "!0!" (Val 3) (Val 2))))++Got: (let !0! = 3 in 2)+DONE+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_pgen11.gold view
@@ -0,0 +1,83 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (par (nm val) (+           (Val (getVal_1 val))+           (Var (getVar_1 nm))+           (Add (getAdd_1 (Expr nm val)) (getAdd_2 (Expr nm val)))+           (Mul (getMul_1 (Expr nm val)) (getMul_2 (Expr nm val)))+           (Let (getLet_1 nm) (getLet_2 (Expr nm val)) (getLet_3 (Expr nm val)))+       )))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s3 () String "a")+[GOOD] (define-fun s6 () Int 0)+[GOOD] (define-fun s7 () String "b")+[GOOD] (define-fun s9 () String "c")+[GOOD] (define-fun s13 () Int 1)+[GOOD] (define-fun s14 () Int 2)+[GOOD] (define-fun s17 () Int 10)+[GOOD] (define-fun s20 () Int 3)+[GOOD] (define-fun s23 () Int 4)+[GOOD] (define-fun s26 () Int 5)+[GOOD] (define-fun s28 () Int 6)+[GOOD] (define-fun s30 () Int 7)+[GOOD] (define-fun s32 () Int 8)+[GOOD] (define-fun s33 () Int 100)+[GOOD] (define-fun s43 () Int 9)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Expr String Int)) ; tracks user variable "a"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s1 () Bool ((as is-Var Bool) s0))+[GOOD] (define-fun s2 () String (getVar_1 s0))+[GOOD] (define-fun s4 () Bool (= s2 s3))+[GOOD] (define-fun s5 () Bool (and s1 s4))+[GOOD] (define-fun s8 () Bool (= s2 s7))+[GOOD] (define-fun s10 () Bool (= s2 s9))+[GOOD] (define-fun s11 () Bool (or s8 s10))+[GOOD] (define-fun s12 () Bool (and s1 s11))+[GOOD] (define-fun s15 () Bool ((as is-Val Bool) s0))+[GOOD] (define-fun s16 () Int (getVal_1 s0))+[GOOD] (define-fun s18 () Bool (< s16 s17))+[GOOD] (define-fun s19 () Bool (and s15 s18))+[GOOD] (define-fun s21 () Bool (= s16 s17))+[GOOD] (define-fun s22 () Bool (and s15 s21))+[GOOD] (define-fun s24 () Bool (> s16 s17))+[GOOD] (define-fun s25 () Bool (and s15 s24))+[GOOD] (define-fun s27 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s29 () Bool ((as is-Mul Bool) s0))+[GOOD] (define-fun s31 () Bool ((as is-Let Bool) s0))+[GOOD] (define-fun s34 () Int (ite s31 s32 s33))+[GOOD] (define-fun s35 () Int (ite s29 s30 s34))+[GOOD] (define-fun s36 () Int (ite s27 s28 s35))+[GOOD] (define-fun s37 () Int (ite s25 s26 s36))+[GOOD] (define-fun s38 () Int (ite s22 s23 s37))+[GOOD] (define-fun s39 () Int (ite s19 s20 s38))+[GOOD] (define-fun s40 () Int (ite s1 s14 s39))+[GOOD] (define-fun s41 () Int (ite s12 s13 s40))+[GOOD] (define-fun s42 () Int (ite s5 s6 s41))+[GOOD] (define-fun s44 () Bool (= s42 s43))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s44)+[SEND] (check-sat)+[RECV] unsat++UNSAT+*** Solver   : Z3+*** Exit code: ExitSuccess
+ SBVTestSuite/GoldFiles/adt_pgen12.gold view
@@ -0,0 +1,82 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Expr+[GOOD] (declare-datatype Expr (par (nm val) (+           (Val (getVal_1 val))+           (Var (getVar_1 nm))+           (Add (getAdd_1 (Expr nm val)) (getAdd_2 (Expr nm val)))+           (Mul (getMul_1 (Expr nm val)) (getMul_2 (Expr nm val)))+           (Let (getLet_1 nm) (getLet_2 (Expr nm val)) (getLet_3 (Expr nm val)))+       )))+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s3 () String "a")+[GOOD] (define-fun s6 () Int 0)+[GOOD] (define-fun s7 () String "b")+[GOOD] (define-fun s9 () String "c")+[GOOD] (define-fun s13 () Int 1)+[GOOD] (define-fun s14 () Int 2)+[GOOD] (define-fun s17 () Int 10)+[GOOD] (define-fun s20 () Int 3)+[GOOD] (define-fun s23 () Int 4)+[GOOD] (define-fun s26 () Int 5)+[GOOD] (define-fun s28 () Int 6)+[GOOD] (define-fun s30 () Int 7)+[GOOD] (define-fun s32 () Int 8)+[GOOD] (define-fun s33 () Int 100)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Expr String Int)) ; tracks user variable "a"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s1 () Bool ((as is-Var Bool) s0))+[GOOD] (define-fun s2 () String (getVar_1 s0))+[GOOD] (define-fun s4 () Bool (= s2 s3))+[GOOD] (define-fun s5 () Bool (and s1 s4))+[GOOD] (define-fun s8 () Bool (= s2 s7))+[GOOD] (define-fun s10 () Bool (= s2 s9))+[GOOD] (define-fun s11 () Bool (or s8 s10))+[GOOD] (define-fun s12 () Bool (and s1 s11))+[GOOD] (define-fun s15 () Bool ((as is-Val Bool) s0))+[GOOD] (define-fun s16 () Int (getVal_1 s0))+[GOOD] (define-fun s18 () Bool (< s16 s17))+[GOOD] (define-fun s19 () Bool (and s15 s18))+[GOOD] (define-fun s21 () Bool (= s16 s17))+[GOOD] (define-fun s22 () Bool (and s15 s21))+[GOOD] (define-fun s24 () Bool (> s16 s17))+[GOOD] (define-fun s25 () Bool (and s15 s24))+[GOOD] (define-fun s27 () Bool ((as is-Add Bool) s0))+[GOOD] (define-fun s29 () Bool ((as is-Mul Bool) s0))+[GOOD] (define-fun s31 () Bool ((as is-Let Bool) s0))+[GOOD] (define-fun s34 () Int (ite s31 s32 s33))+[GOOD] (define-fun s35 () Int (ite s29 s30 s34))+[GOOD] (define-fun s36 () Int (ite s27 s28 s35))+[GOOD] (define-fun s37 () Int (ite s25 s26 s36))+[GOOD] (define-fun s38 () Int (ite s22 s23 s37))+[GOOD] (define-fun s39 () Int (ite s19 s20 s38))+[GOOD] (define-fun s40 () Int (ite s1 s14 s39))+[GOOD] (define-fun s41 () Int (ite s12 s13 s40))+[GOOD] (define-fun s42 () Int (ite s5 s6 s41))+[GOOD] (define-fun s43 () Bool (= s33 s42))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s43)+[SEND] (check-sat)+[RECV] unsat++UNSAT+*** Solver   : Z3+*** Exit code: ExitSuccess
SBVTestSuite/GoldFiles/allSat7.gold view
@@ -6,34452 +6,34451 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts ----[GOOD] ; --- tuples ----[GOOD] ; --- sums ----[GOOD] ; --- literal constants ----[GOOD] (define-fun s3 () Int 1)-[GOOD] (define-fun s5 () Int 15)-[GOOD] ; --- top level inputs ----[GOOD] (declare-fun s0 () Int) ; tracks user variable "x"-[GOOD] (declare-fun s1 () Int) ; tracks user variable "y"-[GOOD] (declare-fun s2 () Int) ; tracks user variable "z"-[GOOD] ; --- constant tables ----[GOOD] ; --- non-constant tables ----[GOOD] ; --- uninterpreted constants ----[GOOD] ; --- user defined functions ----[GOOD] ; --- assignments ----[GOOD] (define-fun s4 () Bool (>= s0 s3))-[GOOD] (define-fun s6 () Bool (<= s0 s5))-[GOOD] (define-fun s7 () Bool (and s4 s6))-[GOOD] (define-fun s8 () Bool (>= s1 s3))-[GOOD] (define-fun s9 () Bool (<= s1 s5))-[GOOD] (define-fun s10 () Bool (and s8 s9))-[GOOD] (define-fun s11 () Bool (>= s2 s3))-[GOOD] (define-fun s12 () Bool (<= s2 s5))-[GOOD] (define-fun s13 () Bool (and s11 s12))-[GOOD] (define-fun s14 () Bool (distinct s0 s1 s2))-[GOOD] ; --- delayedEqualities ----[GOOD] ; --- formula ----[GOOD] (assert s7)-[GOOD] (assert s10)-[GOOD] (assert s13)-[GOOD] (assert s14)-*** Checking Satisfiability, all solutions..-Fast allSat, Looking for solution 1-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (define-fun s15 () Bool (distinct s0 s3))-[GOOD] (assert s15)-Fast allSat, Looking for solution 2-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (define-fun s16 () Int 3)-[GOOD] (define-fun s17 () Bool (distinct s0 s16))-[GOOD] (assert s17)-Fast allSat, Looking for solution 3-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (define-fun s18 () Int 2)-[GOOD] (define-fun s19 () Bool (distinct s0 s18))-[GOOD] (assert s19)-Fast allSat, Looking for solution 4-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (define-fun s20 () Int 4)-[GOOD] (define-fun s21 () Bool (distinct s0 s20))-[GOOD] (assert s21)-Fast allSat, Looking for solution 5-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (define-fun s22 () Int 5)-[GOOD] (define-fun s23 () Bool (distinct s0 s22))-[GOOD] (assert s23)-Fast allSat, Looking for solution 6-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (define-fun s24 () Int 6)-[GOOD] (define-fun s25 () Bool (distinct s0 s24))-[GOOD] (assert s25)-Fast allSat, Looking for solution 7-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (define-fun s26 () Int 7)-[GOOD] (define-fun s27 () Bool (distinct s0 s26))-[GOOD] (assert s27)-Fast allSat, Looking for solution 8-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (define-fun s28 () Int 8)-[GOOD] (define-fun s29 () Bool (distinct s0 s28))-[GOOD] (assert s29)-Fast allSat, Looking for solution 9-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (define-fun s30 () Int 9)-[GOOD] (define-fun s31 () Bool (distinct s0 s30))-[GOOD] (assert s31)-Fast allSat, Looking for solution 10-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (define-fun s32 () Int 10)-[GOOD] (define-fun s33 () Bool (distinct s0 s32))-[GOOD] (assert s33)-Fast allSat, Looking for solution 11-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (define-fun s34 () Int 11)-[GOOD] (define-fun s35 () Bool (distinct s0 s34))-[GOOD] (assert s35)-Fast allSat, Looking for solution 12-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (define-fun s36 () Int 12)-[GOOD] (define-fun s37 () Bool (distinct s0 s36))-[GOOD] (assert s37)-Fast allSat, Looking for solution 13-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (define-fun s38 () Int 13)-[GOOD] (define-fun s39 () Bool (distinct s0 s38))-[GOOD] (assert s39)-Fast allSat, Looking for solution 14-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (define-fun s40 () Int 14)-[GOOD] (define-fun s41 () Bool (distinct s0 s40))-[GOOD] (assert s41)-Fast allSat, Looking for solution 15-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (define-fun s42 () Bool (distinct s0 s5))-[GOOD] (assert s42)-Fast allSat, Looking for solution 16-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (define-fun s43 () Bool (distinct s1 s38))-[GOOD] (assert s43)-[GOOD] (define-fun s44 () Bool (= s0 s5))-[GOOD] (assert s44)-Fast allSat, Looking for solution 16-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (define-fun s45 () Bool (distinct s1 s36))-[GOOD] (assert s45)-Fast allSat, Looking for solution 17-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (define-fun s46 () Bool (distinct s1 s34))-[GOOD] (assert s46)-Fast allSat, Looking for solution 18-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (define-fun s47 () Bool (distinct s1 s32))-[GOOD] (assert s47)-Fast allSat, Looking for solution 19-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (define-fun s48 () Bool (distinct s1 s30))-[GOOD] (assert s48)-Fast allSat, Looking for solution 20-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (define-fun s49 () Bool (distinct s1 s28))-[GOOD] (assert s49)-Fast allSat, Looking for solution 21-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (define-fun s50 () Bool (distinct s1 s26))-[GOOD] (assert s50)-Fast allSat, Looking for solution 22-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (define-fun s51 () Bool (distinct s1 s24))-[GOOD] (assert s51)-Fast allSat, Looking for solution 23-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (define-fun s52 () Bool (distinct s1 s22))-[GOOD] (assert s52)-Fast allSat, Looking for solution 24-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (define-fun s53 () Bool (distinct s1 s20))-[GOOD] (assert s53)-Fast allSat, Looking for solution 25-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (define-fun s54 () Bool (distinct s1 s16))-[GOOD] (assert s54)-Fast allSat, Looking for solution 26-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (define-fun s55 () Bool (distinct s1 s18))-[GOOD] (assert s55)-Fast allSat, Looking for solution 27-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (define-fun s56 () Bool (distinct s1 s3))-[GOOD] (assert s56)-Fast allSat, Looking for solution 28-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (define-fun s57 () Bool (distinct s1 s40))-[GOOD] (assert s57)-Fast allSat, Looking for solution 29-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (define-fun s58 () Bool (distinct s2 s38))-[GOOD] (assert s58)-[GOOD] (define-fun s59 () Bool (= s1 s40))-[GOOD] (assert s59)-Fast allSat, Looking for solution 29-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (define-fun s60 () Bool (distinct s2 s36))-[GOOD] (assert s60)-Fast allSat, Looking for solution 30-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (define-fun s61 () Bool (distinct s2 s34))-[GOOD] (assert s61)-Fast allSat, Looking for solution 31-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (define-fun s62 () Bool (distinct s2 s32))-[GOOD] (assert s62)-Fast allSat, Looking for solution 32-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (define-fun s63 () Bool (distinct s2 s30))-[GOOD] (assert s63)-Fast allSat, Looking for solution 33-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (define-fun s64 () Bool (distinct s2 s28))-[GOOD] (assert s64)-Fast allSat, Looking for solution 34-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (define-fun s65 () Bool (distinct s2 s26))-[GOOD] (assert s65)-Fast allSat, Looking for solution 35-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (define-fun s66 () Bool (distinct s2 s24))-[GOOD] (assert s66)-Fast allSat, Looking for solution 36-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (define-fun s67 () Bool (distinct s2 s22))-[GOOD] (assert s67)-Fast allSat, Looking for solution 37-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (define-fun s68 () Bool (distinct s2 s20))-[GOOD] (assert s68)-Fast allSat, Looking for solution 38-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (define-fun s69 () Bool (distinct s2 s16))-[GOOD] (assert s69)-Fast allSat, Looking for solution 39-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (define-fun s70 () Bool (distinct s2 s18))-[GOOD] (assert s70)-Fast allSat, Looking for solution 40-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (define-fun s71 () Bool (distinct s2 s3))-[GOOD] (assert s71)-Fast allSat, Looking for solution 41-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (define-fun s72 () Bool (distinct s2 s40))-[GOOD] (assert s72)-[GOOD] (define-fun s73 () Bool (= s1 s3))-[GOOD] (assert s73)-Fast allSat, Looking for solution 41-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 42-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 43-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 44-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 45-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 46-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 47-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 48-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 49-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 50-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 51-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 52-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 53-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s72)-[GOOD] (define-fun s74 () Bool (= s1 s18))-[GOOD] (assert s74)-Fast allSat, Looking for solution 53-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 54-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 55-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 56-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 57-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 58-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 59-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 60-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 61-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 62-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 63-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 64-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 65-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s72)-[GOOD] (define-fun s75 () Bool (= s1 s16))-[GOOD] (assert s75)-Fast allSat, Looking for solution 65-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 66-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 67-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 68-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 69-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 70-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 71-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 72-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 73-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 74-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 75-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 76-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 77-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s72)-[GOOD] (define-fun s76 () Bool (= s1 s20))-[GOOD] (assert s76)-Fast allSat, Looking for solution 77-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 78-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 79-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 80-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 81-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 82-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 83-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 84-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 85-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 86-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 87-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 88-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 89-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s72)-[GOOD] (define-fun s77 () Bool (= s1 s22))-[GOOD] (assert s77)-Fast allSat, Looking for solution 89-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 90-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 91-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 92-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 93-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 94-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 95-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 96-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 97-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 98-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 99-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 100-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 101-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s72)-[GOOD] (define-fun s78 () Bool (= s1 s24))-[GOOD] (assert s78)-Fast allSat, Looking for solution 101-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 102-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 103-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 104-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 105-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 106-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 107-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 108-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 109-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 110-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 111-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 112-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 113-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s72)-[GOOD] (define-fun s79 () Bool (= s1 s26))-[GOOD] (assert s79)-Fast allSat, Looking for solution 113-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 114-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 115-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 116-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 117-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 118-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 119-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 120-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 121-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 122-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 123-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 124-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 125-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s72)-[GOOD] (define-fun s80 () Bool (= s1 s28))-[GOOD] (assert s80)-Fast allSat, Looking for solution 125-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 126-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 127-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 128-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 129-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 130-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 131-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 132-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 133-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 134-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 135-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 136-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 137-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s72)-[GOOD] (define-fun s81 () Bool (= s1 s30))-[GOOD] (assert s81)-Fast allSat, Looking for solution 137-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 138-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 139-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 140-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 141-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 142-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 143-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 144-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 145-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 146-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 147-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 148-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 149-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s72)-[GOOD] (define-fun s82 () Bool (= s1 s32))-[GOOD] (assert s82)-Fast allSat, Looking for solution 149-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 150-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 151-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 152-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 153-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 154-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 155-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 156-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 157-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 158-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 159-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 160-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 161-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s72)-[GOOD] (define-fun s83 () Bool (= s1 s34))-[GOOD] (assert s83)-Fast allSat, Looking for solution 161-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 162-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 163-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 164-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 165-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 166-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 167-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 168-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 169-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 170-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 171-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 172-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 173-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s72)-[GOOD] (define-fun s84 () Bool (= s1 s36))-[GOOD] (assert s84)-Fast allSat, Looking for solution 173-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 174-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 175-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 176-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 177-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 178-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 179-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 180-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 181-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 182-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 183-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 184-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 185-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s72)-[GOOD] (assert s44)-[GOOD] (define-fun s85 () Bool (= s1 s38))-[GOOD] (assert s85)-Fast allSat, Looking for solution 185-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 186-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 187-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 188-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 189-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 190-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 191-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 192-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 193-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 194-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 195-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 196-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 15))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 197-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s43)-[GOOD] (define-fun s86 () Bool (= s0 s40))-[GOOD] (assert s86)-Fast allSat, Looking for solution 197-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s45)-Fast allSat, Looking for solution 198-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s46)-Fast allSat, Looking for solution 199-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s47)-Fast allSat, Looking for solution 200-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s48)-Fast allSat, Looking for solution 201-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s49)-Fast allSat, Looking for solution 202-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s50)-Fast allSat, Looking for solution 203-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s51)-Fast allSat, Looking for solution 204-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s52)-Fast allSat, Looking for solution 205-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s53)-Fast allSat, Looking for solution 206-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s54)-Fast allSat, Looking for solution 207-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s55)-Fast allSat, Looking for solution 208-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (define-fun s87 () Bool (distinct s1 s5))-[GOOD] (assert s87)-Fast allSat, Looking for solution 209-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s56)-Fast allSat, Looking for solution 210-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s70)-[GOOD] (assert s73)-Fast allSat, Looking for solution 210-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 211-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 212-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 213-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 214-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 215-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 216-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 217-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 218-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 219-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 220-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 221-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (define-fun s88 () Bool (distinct s2 s5))-[GOOD] (assert s88)-Fast allSat, Looking for solution 222-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s58)-[GOOD] (define-fun s89 () Bool (= s1 s5))-[GOOD] (assert s89)-Fast allSat, Looking for solution 222-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 223-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 224-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 225-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 226-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 227-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 228-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 229-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 230-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 231-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 232-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 233-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 234-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s71)-[GOOD] (assert s74)-Fast allSat, Looking for solution 234-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 235-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 236-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 237-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 238-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 239-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 240-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 241-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 242-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 243-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 244-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 245-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 246-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s70)-[GOOD] (assert s75)-Fast allSat, Looking for solution 246-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 247-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 248-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 249-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 250-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 251-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 252-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 253-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 254-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 255-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 256-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 257-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 258-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s69)-[GOOD] (assert s76)-Fast allSat, Looking for solution 258-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 259-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 260-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 261-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 262-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 263-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 264-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 265-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 266-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 267-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 268-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 269-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 270-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s68)-[GOOD] (assert s77)-Fast allSat, Looking for solution 270-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 271-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 272-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 273-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 274-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 275-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 276-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 277-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 278-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 279-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 280-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 281-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 282-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s67)-[GOOD] (assert s78)-Fast allSat, Looking for solution 282-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 283-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 284-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 285-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 286-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 287-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 288-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 289-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 290-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 291-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 292-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 293-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 294-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s66)-[GOOD] (assert s79)-Fast allSat, Looking for solution 294-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 295-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 296-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 297-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 298-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 299-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 300-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 301-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 302-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 303-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 304-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 305-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 306-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s65)-[GOOD] (assert s80)-Fast allSat, Looking for solution 306-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 307-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 308-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 309-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 310-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 311-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 312-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 313-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 314-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 315-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 316-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 317-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 318-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s64)-[GOOD] (assert s81)-Fast allSat, Looking for solution 318-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 319-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 320-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 321-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 322-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 323-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 324-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 325-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 326-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 327-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 328-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 329-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 330-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s63)-[GOOD] (assert s82)-Fast allSat, Looking for solution 330-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 331-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 332-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 333-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 334-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 335-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 336-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 337-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 338-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 339-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 340-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 341-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 342-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s62)-[GOOD] (assert s83)-Fast allSat, Looking for solution 342-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 343-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 344-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 345-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 346-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 347-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 348-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 349-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 350-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 351-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 352-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 353-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 354-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s61)-[GOOD] (assert s84)-Fast allSat, Looking for solution 354-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 355-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 356-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 357-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 358-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 359-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 360-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 361-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 362-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 363-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 364-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 365-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 366-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s88)-[GOOD] (assert s86)-[GOOD] (assert s85)-Fast allSat, Looking for solution 366-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 367-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 368-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 369-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 370-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 371-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 372-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 373-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 374-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 375-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 376-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 377-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 14))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 378-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s45)-[GOOD] (define-fun s90 () Bool (= s0 s38))-[GOOD] (assert s90)-Fast allSat, Looking for solution 378-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s46)-Fast allSat, Looking for solution 379-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s47)-Fast allSat, Looking for solution 380-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s48)-Fast allSat, Looking for solution 381-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s49)-Fast allSat, Looking for solution 382-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s50)-Fast allSat, Looking for solution 383-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s51)-Fast allSat, Looking for solution 384-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s52)-Fast allSat, Looking for solution 385-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s53)-Fast allSat, Looking for solution 386-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s54)-Fast allSat, Looking for solution 387-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s55)-Fast allSat, Looking for solution 388-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s57)-Fast allSat, Looking for solution 389-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s87)-Fast allSat, Looking for solution 390-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s56)-Fast allSat, Looking for solution 391-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s70)-[GOOD] (assert s73)-Fast allSat, Looking for solution 391-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 392-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 393-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 394-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 395-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 396-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 397-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 398-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 399-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 400-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 401-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 402-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 403-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s60)-[GOOD] (assert s89)-Fast allSat, Looking for solution 403-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 404-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 405-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 406-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 407-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 408-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 409-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 410-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 411-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 412-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 413-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 414-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 415-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s60)-[GOOD] (assert s59)-Fast allSat, Looking for solution 415-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 416-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 417-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 418-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 419-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 420-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 421-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 422-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 423-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 424-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 425-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 426-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 427-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s71)-[GOOD] (assert s74)-Fast allSat, Looking for solution 427-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 428-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 429-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 430-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 431-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 432-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 433-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 434-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 435-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 436-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 437-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 438-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 439-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s70)-[GOOD] (assert s75)-Fast allSat, Looking for solution 439-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 440-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 441-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 442-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 443-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 444-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 445-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 446-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 447-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 448-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 449-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 450-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 451-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s69)-[GOOD] (assert s76)-Fast allSat, Looking for solution 451-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 452-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 453-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 454-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 455-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 456-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 457-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 458-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 459-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 460-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 461-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 462-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 463-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s68)-[GOOD] (assert s77)-Fast allSat, Looking for solution 463-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 464-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 465-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 466-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 467-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 468-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 469-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 470-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 471-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 472-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 473-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 474-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 475-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s67)-[GOOD] (assert s78)-Fast allSat, Looking for solution 475-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 476-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 477-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 478-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 479-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 480-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 481-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 482-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 483-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 484-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 485-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 486-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 487-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s66)-[GOOD] (assert s79)-Fast allSat, Looking for solution 487-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 488-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 489-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 490-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 491-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 492-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 493-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 494-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 495-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 496-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 497-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 498-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 499-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s65)-[GOOD] (assert s80)-Fast allSat, Looking for solution 499-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 500-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 501-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 502-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 503-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 504-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 505-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 506-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 507-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 508-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 509-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 510-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 511-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s64)-[GOOD] (assert s81)-Fast allSat, Looking for solution 511-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 512-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 513-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 514-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 515-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 516-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 517-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 518-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 519-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 520-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 521-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 522-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 523-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s63)-[GOOD] (assert s82)-Fast allSat, Looking for solution 523-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 524-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 525-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 526-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 527-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 528-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 529-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 530-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 531-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 532-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 533-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 534-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 535-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s62)-[GOOD] (assert s83)-Fast allSat, Looking for solution 535-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 536-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 537-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 538-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 539-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 540-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 541-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 542-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 543-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 544-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 545-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 546-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 547-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s72)-[GOOD] (assert s90)-[GOOD] (assert s84)-Fast allSat, Looking for solution 547-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 548-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 549-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 550-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 551-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 552-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 553-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 554-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 555-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 556-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 557-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 558-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 13))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 559-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s46)-[GOOD] (define-fun s91 () Bool (= s0 s36))-[GOOD] (assert s91)-Fast allSat, Looking for solution 559-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s47)-Fast allSat, Looking for solution 560-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s48)-Fast allSat, Looking for solution 561-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s49)-Fast allSat, Looking for solution 562-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s50)-Fast allSat, Looking for solution 563-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s51)-Fast allSat, Looking for solution 564-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s52)-Fast allSat, Looking for solution 565-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s53)-Fast allSat, Looking for solution 566-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s54)-Fast allSat, Looking for solution 567-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s55)-Fast allSat, Looking for solution 568-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s43)-Fast allSat, Looking for solution 569-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s57)-Fast allSat, Looking for solution 570-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s87)-Fast allSat, Looking for solution 571-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s56)-Fast allSat, Looking for solution 572-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s70)-[GOOD] (assert s73)-Fast allSat, Looking for solution 572-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 573-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 574-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 575-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 576-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 577-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 578-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 579-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 580-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 581-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 582-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 583-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 584-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s61)-[GOOD] (assert s89)-Fast allSat, Looking for solution 584-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 585-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 586-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 587-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 588-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 589-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 590-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 591-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 592-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 593-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 594-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 595-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 596-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s61)-[GOOD] (assert s59)-Fast allSat, Looking for solution 596-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 597-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 598-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 599-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 600-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 601-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 602-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 603-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 604-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 605-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 606-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 607-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 608-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s61)-[GOOD] (assert s85)-Fast allSat, Looking for solution 608-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 609-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 610-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 611-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 612-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 613-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 614-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 615-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 616-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 617-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 618-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 619-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 620-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s71)-[GOOD] (assert s74)-Fast allSat, Looking for solution 620-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 621-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 622-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 623-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 624-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 625-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 626-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 627-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 628-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 629-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 630-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 631-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 632-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s70)-[GOOD] (assert s75)-Fast allSat, Looking for solution 632-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 633-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 634-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 635-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 636-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 637-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 638-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 639-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 640-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 641-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 642-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 643-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 644-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s69)-[GOOD] (assert s76)-Fast allSat, Looking for solution 644-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 645-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 646-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 647-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 648-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 649-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 650-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 651-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 652-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 653-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 654-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 655-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 656-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s68)-[GOOD] (assert s77)-Fast allSat, Looking for solution 656-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 657-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 658-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 659-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 660-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 661-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 662-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 663-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 664-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 665-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 666-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 667-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 668-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s67)-[GOOD] (assert s78)-Fast allSat, Looking for solution 668-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 669-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 670-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 671-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 672-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 673-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 674-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 675-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 676-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 677-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 678-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 679-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 680-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s66)-[GOOD] (assert s79)-Fast allSat, Looking for solution 680-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 681-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 682-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 683-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 684-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 685-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 686-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 687-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 688-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 689-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 690-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 691-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 692-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s65)-[GOOD] (assert s80)-Fast allSat, Looking for solution 692-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 693-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 694-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 695-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 696-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 697-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 698-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 699-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 700-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 701-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 702-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 703-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 704-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s64)-[GOOD] (assert s81)-Fast allSat, Looking for solution 704-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 705-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 706-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 707-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 708-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 709-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 710-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 711-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 712-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 713-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 714-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 715-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 716-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s63)-[GOOD] (assert s82)-Fast allSat, Looking for solution 716-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 717-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 718-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 719-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 720-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 721-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 722-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 723-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 724-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 725-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 726-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 727-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 728-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s58)-[GOOD] (assert s91)-[GOOD] (assert s83)-Fast allSat, Looking for solution 728-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 729-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 730-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 731-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 732-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 733-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 734-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 735-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 736-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 737-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 738-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 739-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 12))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 740-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s47)-[GOOD] (define-fun s92 () Bool (= s0 s34))-[GOOD] (assert s92)-Fast allSat, Looking for solution 740-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s48)-Fast allSat, Looking for solution 741-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s49)-Fast allSat, Looking for solution 742-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s50)-Fast allSat, Looking for solution 743-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s51)-Fast allSat, Looking for solution 744-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s52)-Fast allSat, Looking for solution 745-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s53)-Fast allSat, Looking for solution 746-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s54)-Fast allSat, Looking for solution 747-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s55)-Fast allSat, Looking for solution 748-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s56)-Fast allSat, Looking for solution 749-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s45)-Fast allSat, Looking for solution 750-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s43)-Fast allSat, Looking for solution 751-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s57)-Fast allSat, Looking for solution 752-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s87)-Fast allSat, Looking for solution 753-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s72)-[GOOD] (assert s89)-Fast allSat, Looking for solution 753-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 754-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 755-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 756-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 757-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 758-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 759-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 760-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 761-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 762-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 763-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 764-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 765-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s88)-[GOOD] (assert s59)-Fast allSat, Looking for solution 765-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 766-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 767-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 768-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 769-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 770-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 771-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 772-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 773-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 774-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 775-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 776-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 777-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s88)-[GOOD] (assert s85)-Fast allSat, Looking for solution 777-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 778-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 779-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 780-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 781-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 782-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 783-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 784-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 785-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 786-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 787-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 788-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 789-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s88)-[GOOD] (assert s84)-Fast allSat, Looking for solution 789-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 790-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 791-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 792-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 793-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 794-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 795-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 796-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 797-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 798-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 799-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 800-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 801-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s88)-[GOOD] (assert s73)-Fast allSat, Looking for solution 801-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 802-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 803-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 804-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 805-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 806-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 807-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 808-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 809-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 810-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 811-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 812-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 813-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s88)-[GOOD] (assert s74)-Fast allSat, Looking for solution 813-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 814-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 815-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 816-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 817-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 818-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 819-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 820-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 821-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 822-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 823-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 824-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 825-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s88)-[GOOD] (assert s75)-Fast allSat, Looking for solution 825-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 826-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 827-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 828-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 829-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 830-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 831-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 832-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 833-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 834-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 835-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 836-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 837-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s88)-[GOOD] (assert s76)-Fast allSat, Looking for solution 837-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 838-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 839-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 840-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 841-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 842-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 843-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 844-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 845-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 846-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 847-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 848-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 849-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s88)-[GOOD] (assert s77)-Fast allSat, Looking for solution 849-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 850-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 851-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 852-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 853-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 854-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 855-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 856-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 857-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 858-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 859-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 860-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 861-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s88)-[GOOD] (assert s78)-Fast allSat, Looking for solution 861-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 862-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 863-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 864-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 865-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 866-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 867-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 868-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 869-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 870-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 871-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 872-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 873-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s88)-[GOOD] (assert s79)-Fast allSat, Looking for solution 873-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 874-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 875-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 876-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 877-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 878-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 879-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 880-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 881-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 882-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 883-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 884-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 885-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s88)-[GOOD] (assert s80)-Fast allSat, Looking for solution 885-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 886-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 887-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 888-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 889-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 890-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 891-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 892-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 893-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 894-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 895-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 896-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 897-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s88)-[GOOD] (assert s81)-Fast allSat, Looking for solution 897-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 898-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 899-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 900-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 901-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 902-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 903-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 904-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 905-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 906-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 907-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 908-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 909-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s60)-[GOOD] (assert s92)-[GOOD] (assert s82)-Fast allSat, Looking for solution 909-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 910-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 911-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 912-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 913-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 914-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 915-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 916-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 917-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 918-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 919-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 920-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 11))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 921-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s48)-[GOOD] (define-fun s93 () Bool (= s0 s32))-[GOOD] (assert s93)-Fast allSat, Looking for solution 921-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s49)-Fast allSat, Looking for solution 922-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s50)-Fast allSat, Looking for solution 923-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s51)-Fast allSat, Looking for solution 924-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s52)-Fast allSat, Looking for solution 925-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s53)-Fast allSat, Looking for solution 926-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s54)-Fast allSat, Looking for solution 927-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s55)-Fast allSat, Looking for solution 928-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s46)-Fast allSat, Looking for solution 929-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s45)-Fast allSat, Looking for solution 930-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s43)-Fast allSat, Looking for solution 931-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s57)-Fast allSat, Looking for solution 932-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s87)-Fast allSat, Looking for solution 933-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s56)-Fast allSat, Looking for solution 934-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s70)-[GOOD] (assert s73)-Fast allSat, Looking for solution 934-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 935-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 936-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 937-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 938-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 939-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 940-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 941-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 942-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 943-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 944-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 945-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 946-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s63)-[GOOD] (assert s89)-Fast allSat, Looking for solution 946-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 947-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 948-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 949-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 950-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 951-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 952-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 953-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 954-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 955-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 956-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 957-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 958-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s63)-[GOOD] (assert s59)-Fast allSat, Looking for solution 958-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 959-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 960-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 961-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 962-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 963-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 964-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 965-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 966-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 967-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 968-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 969-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 970-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s63)-[GOOD] (assert s85)-Fast allSat, Looking for solution 970-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 971-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 972-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 973-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 974-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 975-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 976-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 977-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 978-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 979-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 980-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 981-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 982-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s63)-[GOOD] (assert s84)-Fast allSat, Looking for solution 982-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 983-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 984-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 985-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 986-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 987-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 988-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 989-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 990-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 991-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 992-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 993-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 994-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s63)-[GOOD] (assert s83)-Fast allSat, Looking for solution 994-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 995-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 996-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 997-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 998-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 999-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 1000-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 1001-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 1002-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1003-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1004-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1005-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1006-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s71)-[GOOD] (assert s74)-Fast allSat, Looking for solution 1006-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1007-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1008-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 1009-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 1010-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 1011-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 1012-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 1013-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1014-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1015-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1016-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1017-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 1018-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s70)-[GOOD] (assert s75)-Fast allSat, Looking for solution 1018-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 1019-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1020-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1021-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1022-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1023-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 1024-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 1025-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 1026-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 1027-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 1028-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1029-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1030-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s69)-[GOOD] (assert s76)-Fast allSat, Looking for solution 1030-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1031-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1032-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 1033-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 1034-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 1035-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 1036-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 1037-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1038-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1039-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1040-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1041-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 1042-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s68)-[GOOD] (assert s77)-Fast allSat, Looking for solution 1042-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 1043-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1044-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1045-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1046-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1047-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 1048-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 1049-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 1050-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 1051-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1052-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1053-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1054-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s67)-[GOOD] (assert s78)-Fast allSat, Looking for solution 1054-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1055-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1056-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1057-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1058-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 1059-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 1060-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 1061-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1062-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1063-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1064-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1065-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 1066-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s66)-[GOOD] (assert s79)-Fast allSat, Looking for solution 1066-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 1067-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1068-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1069-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1070-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1071-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 1072-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 1073-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 1074-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1075-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1076-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1077-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1078-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s65)-[GOOD] (assert s80)-Fast allSat, Looking for solution 1078-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1079-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1080-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1081-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1082-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 1083-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 1084-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 1085-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1086-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1087-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1088-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1089-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 1090-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s61)-[GOOD] (assert s93)-[GOOD] (assert s81)-Fast allSat, Looking for solution 1090-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1091-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1092-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1093-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 1094-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 1095-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 1096-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 1097-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 1098-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1099-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1100-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1101-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 10))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1102-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s49)-[GOOD] (define-fun s94 () Bool (= s0 s30))-[GOOD] (assert s94)-Fast allSat, Looking for solution 1102-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s50)-Fast allSat, Looking for solution 1103-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s51)-Fast allSat, Looking for solution 1104-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s52)-Fast allSat, Looking for solution 1105-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s53)-Fast allSat, Looking for solution 1106-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s54)-Fast allSat, Looking for solution 1107-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s55)-Fast allSat, Looking for solution 1108-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s47)-Fast allSat, Looking for solution 1109-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s46)-Fast allSat, Looking for solution 1110-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s45)-Fast allSat, Looking for solution 1111-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s43)-Fast allSat, Looking for solution 1112-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s57)-Fast allSat, Looking for solution 1113-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s87)-Fast allSat, Looking for solution 1114-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s56)-Fast allSat, Looking for solution 1115-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s70)-[GOOD] (assert s73)-Fast allSat, Looking for solution 1115-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1116-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1117-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 1118-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 1119-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 1120-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 1121-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 1122-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1123-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1124-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1125-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1126-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 1127-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s64)-[GOOD] (assert s89)-Fast allSat, Looking for solution 1127-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1128-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1129-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1130-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1131-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 1132-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 1133-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 1134-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 1135-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1136-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1137-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1138-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1139-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s64)-[GOOD] (assert s59)-Fast allSat, Looking for solution 1139-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1140-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1141-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1142-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1143-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 1144-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 1145-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 1146-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 1147-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1148-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1149-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1150-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 1151-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s64)-[GOOD] (assert s85)-Fast allSat, Looking for solution 1151-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 1152-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1153-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1154-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 1155-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 1156-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 1157-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1158-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1159-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1160-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1161-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1162-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 1163-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s64)-[GOOD] (assert s84)-Fast allSat, Looking for solution 1163-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 1164-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1165-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1166-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1167-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 1168-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 1169-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 1170-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 1171-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1172-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1173-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1174-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1175-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s64)-[GOOD] (assert s83)-Fast allSat, Looking for solution 1175-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1176-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1177-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1178-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1179-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 1180-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 1181-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 1182-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 1183-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1184-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1185-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1186-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 1187-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s64)-[GOOD] (assert s82)-Fast allSat, Looking for solution 1187-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 1188-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 1189-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 1190-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1191-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1192-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1193-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1194-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1195-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1196-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1197-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1198-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 1199-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s71)-[GOOD] (assert s74)-Fast allSat, Looking for solution 1199-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 1200-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1201-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1202-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1203-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1204-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 1205-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 1206-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 1207-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 1208-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 1209-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1210-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1211-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s70)-[GOOD] (assert s75)-Fast allSat, Looking for solution 1211-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 1212-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 1213-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 1214-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 1215-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1216-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 1217-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1218-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1219-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1220-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1221-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 1222-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1223-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s69)-[GOOD] (assert s76)-Fast allSat, Looking for solution 1223-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1224-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1225-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 1226-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 1227-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 1228-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 1229-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 1230-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1231-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1232-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1233-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1234-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 1235-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s68)-[GOOD] (assert s77)-Fast allSat, Looking for solution 1235-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 1236-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1237-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1238-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1239-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1240-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 1241-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 1242-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 1243-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 1244-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1245-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1246-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1247-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s67)-[GOOD] (assert s78)-Fast allSat, Looking for solution 1247-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1248-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1249-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1250-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1251-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 1252-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 1253-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 1254-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1255-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1256-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1257-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1258-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 1259-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s66)-[GOOD] (assert s79)-Fast allSat, Looking for solution 1259-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 1260-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1261-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1262-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1263-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1264-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 1265-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1266-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1267-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1268-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1269-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 1270-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 1271-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s62)-[GOOD] (assert s94)-[GOOD] (assert s80)-Fast allSat, Looking for solution 1271-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 1272-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 1273-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 1274-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1275-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1276-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1277-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1278-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1279-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1280-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1281-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1282-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 9))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 1283-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s50)-[GOOD] (define-fun s95 () Bool (= s0 s28))-[GOOD] (assert s95)-Fast allSat, Looking for solution 1283-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s87)-Fast allSat, Looking for solution 1284-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s57)-Fast allSat, Looking for solution 1285-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s43)-Fast allSat, Looking for solution 1286-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s45)-Fast allSat, Looking for solution 1287-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s46)-Fast allSat, Looking for solution 1288-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s47)-Fast allSat, Looking for solution 1289-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s51)-Fast allSat, Looking for solution 1290-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s52)-Fast allSat, Looking for solution 1291-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s53)-Fast allSat, Looking for solution 1292-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s54)-Fast allSat, Looking for solution 1293-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s55)-Fast allSat, Looking for solution 1294-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s48)-Fast allSat, Looking for solution 1295-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s56)-Fast allSat, Looking for solution 1296-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s63)-[GOOD] (assert s73)-Fast allSat, Looking for solution 1296-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 1297-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1298-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1299-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1300-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1301-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 1302-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 1303-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 1304-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 1305-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1306-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1307-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1308-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s65)-[GOOD] (assert s81)-Fast allSat, Looking for solution 1308-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 1309-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 1310-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1311-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1312-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1313-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1314-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 1315-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1316-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1317-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1318-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1319-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 1320-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s71)-[GOOD] (assert s74)-Fast allSat, Looking for solution 1320-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 1321-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1322-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1323-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1324-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1325-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 1326-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 1327-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 1328-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 1329-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 1330-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1331-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1332-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s70)-[GOOD] (assert s75)-Fast allSat, Looking for solution 1332-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1333-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 1334-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 1335-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1336-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1337-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1338-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1339-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 1340-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 1341-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 1342-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 1343-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1344-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s69)-[GOOD] (assert s76)-Fast allSat, Looking for solution 1344-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1345-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1346-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 1347-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 1348-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1349-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1350-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1351-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1352-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 1353-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 1354-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 1355-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 1356-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s68)-[GOOD] (assert s77)-Fast allSat, Looking for solution 1356-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1357-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1358-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1359-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 1360-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 1361-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1362-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1363-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1364-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1365-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 1366-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 1367-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 1368-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s67)-[GOOD] (assert s78)-Fast allSat, Looking for solution 1368-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1369-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1370-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1371-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1372-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 1373-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 1374-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1375-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1376-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1377-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1378-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 1379-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 1380-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s63)-[GOOD] (assert s82)-Fast allSat, Looking for solution 1380-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 1381-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 1382-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 1383-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1384-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1385-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1386-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1387-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1388-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1389-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1390-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1391-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 1392-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s62)-[GOOD] (assert s83)-Fast allSat, Looking for solution 1392-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 1393-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 1394-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 1395-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 1396-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1397-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1398-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1399-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1400-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1401-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1402-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1403-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 1404-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s61)-[GOOD] (assert s84)-Fast allSat, Looking for solution 1404-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 1405-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 1406-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 1407-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 1408-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 1409-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1410-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1411-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1412-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1413-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1414-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1415-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 1416-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s60)-[GOOD] (assert s85)-Fast allSat, Looking for solution 1416-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1417-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 1418-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 1419-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 1420-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 1421-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 1422-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1423-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1424-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1425-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1426-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1427-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 1428-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s58)-[GOOD] (assert s59)-Fast allSat, Looking for solution 1428-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1429-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1430-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 1431-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 1432-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 1433-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 1434-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 1435-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1436-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1437-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1438-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1439-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 1440-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s72)-[GOOD] (assert s89)-Fast allSat, Looking for solution 1440-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1441-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1442-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1443-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 1444-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 1445-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 1446-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 1447-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 1448-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1449-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1450-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1451-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1452-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s63)-[GOOD] (assert s95)-[GOOD] (assert s79)-Fast allSat, Looking for solution 1452-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1453-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1454-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1455-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1456-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 1457-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 1458-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 1459-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1460-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1461-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1462-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1463-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 8))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 1464-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s51)-[GOOD] (define-fun s96 () Bool (= s0 s26))-[GOOD] (assert s96)-Fast allSat, Looking for solution 1464-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s87)-Fast allSat, Looking for solution 1465-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s57)-Fast allSat, Looking for solution 1466-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s43)-Fast allSat, Looking for solution 1467-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s45)-Fast allSat, Looking for solution 1468-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s46)-Fast allSat, Looking for solution 1469-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s47)-Fast allSat, Looking for solution 1470-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s48)-Fast allSat, Looking for solution 1471-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s52)-Fast allSat, Looking for solution 1472-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s53)-Fast allSat, Looking for solution 1473-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s54)-Fast allSat, Looking for solution 1474-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s55)-Fast allSat, Looking for solution 1475-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s49)-Fast allSat, Looking for solution 1476-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s56)-Fast allSat, Looking for solution 1477-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s64)-[GOOD] (assert s73)-Fast allSat, Looking for solution 1477-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 1478-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 1479-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1480-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1481-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1482-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1483-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 1484-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 1485-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 1486-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1487-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1488-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1489-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s66)-[GOOD] (assert s80)-Fast allSat, Looking for solution 1489-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 1490-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1491-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1492-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1493-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1494-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 1495-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 1496-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1497-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1498-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1499-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1500-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 1501-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s71)-[GOOD] (assert s74)-Fast allSat, Looking for solution 1501-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 1502-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1503-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1504-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1505-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1506-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 1507-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 1508-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 1509-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 1510-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 1511-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1512-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1513-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s70)-[GOOD] (assert s75)-Fast allSat, Looking for solution 1513-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1514-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 1515-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 1516-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 1517-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1518-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1519-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1520-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1521-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 1522-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 1523-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 1524-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1525-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s69)-[GOOD] (assert s76)-Fast allSat, Looking for solution 1525-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1526-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1527-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 1528-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 1529-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 1530-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1531-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1532-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1533-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1534-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 1535-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 1536-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 1537-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s68)-[GOOD] (assert s77)-Fast allSat, Looking for solution 1537-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1538-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1539-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1540-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 1541-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 1542-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 1543-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1544-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1545-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1546-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1547-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 1548-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 1549-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s64)-[GOOD] (assert s81)-Fast allSat, Looking for solution 1549-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 1550-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 1551-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1552-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1553-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1554-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1555-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 1556-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1557-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1558-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1559-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1560-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 1561-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s63)-[GOOD] (assert s82)-Fast allSat, Looking for solution 1561-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 1562-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1563-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1564-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1565-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1566-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 1567-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 1568-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 1569-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1570-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1571-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1572-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1573-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s62)-[GOOD] (assert s83)-Fast allSat, Looking for solution 1573-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 1574-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 1575-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1576-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1577-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1578-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1579-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 1580-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 1581-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1582-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1583-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1584-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 1585-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s61)-[GOOD] (assert s84)-Fast allSat, Looking for solution 1585-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 1586-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1587-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1588-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 1589-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 1590-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 1591-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 1592-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 1593-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1594-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1595-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1596-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1597-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s60)-[GOOD] (assert s85)-Fast allSat, Looking for solution 1597-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 1598-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 1599-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1600-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1601-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1602-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1603-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 1604-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 1605-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 1606-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1607-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1608-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 1609-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s58)-[GOOD] (assert s59)-Fast allSat, Looking for solution 1609-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 1610-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1611-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1612-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 1613-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 1614-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 1615-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 1616-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 1617-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1618-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1619-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1620-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1621-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s72)-[GOOD] (assert s89)-Fast allSat, Looking for solution 1621-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 1622-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 1623-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1624-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1625-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1626-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1627-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 1628-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 1629-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 1630-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1631-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1632-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1633-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s64)-[GOOD] (assert s96)-[GOOD] (assert s78)-Fast allSat, Looking for solution 1633-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 1634-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1635-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1636-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1637-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1638-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 1639-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 1640-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1641-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1642-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1643-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1644-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 7))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 1645-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s52)-[GOOD] (define-fun s97 () Bool (= s0 s24))-[GOOD] (assert s97)-Fast allSat, Looking for solution 1645-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s53)-Fast allSat, Looking for solution 1646-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s54)-Fast allSat, Looking for solution 1647-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s55)-Fast allSat, Looking for solution 1648-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s56)-Fast allSat, Looking for solution 1649-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s50)-Fast allSat, Looking for solution 1650-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s49)-Fast allSat, Looking for solution 1651-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s48)-Fast allSat, Looking for solution 1652-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s47)-Fast allSat, Looking for solution 1653-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s46)-Fast allSat, Looking for solution 1654-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s45)-Fast allSat, Looking for solution 1655-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s43)-Fast allSat, Looking for solution 1656-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s57)-Fast allSat, Looking for solution 1657-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s87)-Fast allSat, Looking for solution 1658-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s72)-[GOOD] (assert s89)-Fast allSat, Looking for solution 1658-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1659-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1660-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1661-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 1662-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 1663-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 1664-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 1665-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 1666-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1667-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1668-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1669-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1670-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s88)-[GOOD] (assert s59)-Fast allSat, Looking for solution 1670-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 1671-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1672-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1673-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1674-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1675-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 1676-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 1677-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 1678-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 1679-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1680-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1681-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1682-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s88)-[GOOD] (assert s85)-Fast allSat, Looking for solution 1682-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1683-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1684-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 1685-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 1686-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 1687-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 1688-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 1689-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1690-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1691-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1692-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1693-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1694-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s88)-[GOOD] (assert s84)-Fast allSat, Looking for solution 1694-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1695-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1696-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1697-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 1698-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 1699-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 1700-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 1701-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 1702-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1703-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1704-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1705-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1706-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s88)-[GOOD] (assert s83)-Fast allSat, Looking for solution 1706-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 1707-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1708-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1709-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1710-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1711-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 1712-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 1713-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 1714-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 1715-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1716-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1717-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1718-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s88)-[GOOD] (assert s82)-Fast allSat, Looking for solution 1718-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1719-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1720-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1721-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1722-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 1723-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 1724-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 1725-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 1726-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1727-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1728-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1729-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1730-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s88)-[GOOD] (assert s81)-Fast allSat, Looking for solution 1730-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 1731-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1732-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1733-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1734-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1735-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 1736-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 1737-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 1738-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1739-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1740-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1741-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1742-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s88)-[GOOD] (assert s80)-Fast allSat, Looking for solution 1742-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1743-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1744-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1745-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1746-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 1747-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 1748-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 1749-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 1750-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1751-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1752-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1753-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1754-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s88)-[GOOD] (assert s79)-Fast allSat, Looking for solution 1754-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 1755-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1756-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1757-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1758-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1759-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 1760-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 1761-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 1762-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1763-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1764-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1765-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1766-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s88)-[GOOD] (assert s73)-Fast allSat, Looking for solution 1766-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1767-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1768-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1769-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1770-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 1771-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 1772-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 1773-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 1774-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 1775-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1776-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1777-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1778-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s88)-[GOOD] (assert s74)-Fast allSat, Looking for solution 1778-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 1779-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1780-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1781-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 1782-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 1783-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 1784-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 1785-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1786-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1787-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1788-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1789-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1790-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s88)-[GOOD] (assert s75)-Fast allSat, Looking for solution 1790-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1791-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1792-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1793-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 1794-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 1795-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 1796-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 1797-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 1798-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1799-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1800-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1801-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1802-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s88)-[GOOD] (assert s76)-Fast allSat, Looking for solution 1802-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1803-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1804-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1805-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1806-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 1807-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 1808-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 1809-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 1810-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 1811-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1812-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1813-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1814-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s65)-[GOOD] (assert s97)-[GOOD] (assert s77)-Fast allSat, Looking for solution 1814-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1815-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1816-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1817-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1818-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 1819-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 1820-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 1821-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1822-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1823-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1824-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1825-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 6))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 1826-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s53)-[GOOD] (define-fun s98 () Bool (= s0 s22))-[GOOD] (assert s98)-Fast allSat, Looking for solution 1826-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s54)-Fast allSat, Looking for solution 1827-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s55)-Fast allSat, Looking for solution 1828-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s56)-Fast allSat, Looking for solution 1829-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s51)-Fast allSat, Looking for solution 1830-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s50)-Fast allSat, Looking for solution 1831-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s49)-Fast allSat, Looking for solution 1832-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s48)-Fast allSat, Looking for solution 1833-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s47)-Fast allSat, Looking for solution 1834-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s46)-Fast allSat, Looking for solution 1835-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s45)-Fast allSat, Looking for solution 1836-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s43)-Fast allSat, Looking for solution 1837-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s57)-Fast allSat, Looking for solution 1838-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s87)-Fast allSat, Looking for solution 1839-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s72)-[GOOD] (assert s89)-Fast allSat, Looking for solution 1839-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1840-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1841-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1842-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 1843-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 1844-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 1845-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 1846-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 1847-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1848-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1849-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1850-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1851-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s88)-[GOOD] (assert s59)-Fast allSat, Looking for solution 1851-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1852-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1853-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1854-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1855-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 1856-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 1857-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 1858-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 1859-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 1860-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1861-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1862-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1863-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s88)-[GOOD] (assert s85)-Fast allSat, Looking for solution 1863-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1864-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1865-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 1866-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 1867-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 1868-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 1869-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 1870-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1871-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1872-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1873-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1874-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1875-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s88)-[GOOD] (assert s84)-Fast allSat, Looking for solution 1875-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1876-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1877-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1878-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 1879-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 1880-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 1881-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 1882-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 1883-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1884-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1885-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1886-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1887-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s88)-[GOOD] (assert s83)-Fast allSat, Looking for solution 1887-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1888-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1889-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1890-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1891-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 1892-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 1893-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 1894-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 1895-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 1896-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1897-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1898-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1899-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s88)-[GOOD] (assert s82)-Fast allSat, Looking for solution 1899-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1900-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1901-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1902-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1903-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 1904-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 1905-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 1906-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 1907-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1908-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1909-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1910-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1911-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s88)-[GOOD] (assert s81)-Fast allSat, Looking for solution 1911-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1912-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1913-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1914-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1915-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 1916-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 1917-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 1918-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 1919-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1920-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1921-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1922-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1923-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s88)-[GOOD] (assert s80)-Fast allSat, Looking for solution 1923-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1924-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1925-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1926-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1927-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 1928-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 1929-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 1930-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 1931-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1932-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1933-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1934-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1935-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s88)-[GOOD] (assert s79)-Fast allSat, Looking for solution 1935-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1936-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1937-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1938-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1939-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 1940-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 1941-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 1942-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 1943-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1944-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1945-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1946-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1947-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s88)-[GOOD] (assert s78)-Fast allSat, Looking for solution 1947-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1948-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1949-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1950-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1951-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 1952-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 1953-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 1954-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 1955-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1956-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1957-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1958-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1959-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s88)-[GOOD] (assert s73)-Fast allSat, Looking for solution 1959-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1960-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1961-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1962-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 1963-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 1964-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 1965-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 1966-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 1967-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1968-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1969-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1970-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1971-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s88)-[GOOD] (assert s74)-Fast allSat, Looking for solution 1971-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1972-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1973-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1974-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1975-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 1976-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 1977-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 1978-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 1979-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 1980-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1981-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 1982-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1983-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s88)-[GOOD] (assert s75)-Fast allSat, Looking for solution 1983-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 1984-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 1985-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 1986-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 1987-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 1988-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 1989-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 1990-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 1991-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 1992-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1993-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1994-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1995-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s66)-[GOOD] (assert s98)-[GOOD] (assert s76)-Fast allSat, Looking for solution 1995-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 1996-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 1997-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 1998-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 1999-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 2000-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 2001-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 2002-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 2003-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 2004-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 2005-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 2006-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 5))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 2007-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s54)-[GOOD] (define-fun s99 () Bool (= s0 s20))-[GOOD] (assert s99)-Fast allSat, Looking for solution 2007-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s55)-Fast allSat, Looking for solution 2008-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s52)-Fast allSat, Looking for solution 2009-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s51)-Fast allSat, Looking for solution 2010-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s50)-Fast allSat, Looking for solution 2011-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s49)-Fast allSat, Looking for solution 2012-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s48)-Fast allSat, Looking for solution 2013-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s47)-Fast allSat, Looking for solution 2014-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s46)-Fast allSat, Looking for solution 2015-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s45)-Fast allSat, Looking for solution 2016-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s43)-Fast allSat, Looking for solution 2017-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s57)-Fast allSat, Looking for solution 2018-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s87)-Fast allSat, Looking for solution 2019-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s56)-Fast allSat, Looking for solution 2020-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s70)-[GOOD] (assert s73)-Fast allSat, Looking for solution 2020-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 2021-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 2022-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 2023-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 2024-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 2025-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 2026-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 2027-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 2028-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 2029-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 2030-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 2031-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 2032-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s69)-[GOOD] (assert s89)-Fast allSat, Looking for solution 2032-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 2033-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 2034-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 2035-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 2036-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 2037-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 2038-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 2039-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 2040-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 2041-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 2042-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 2043-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 2044-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s69)-[GOOD] (assert s59)-Fast allSat, Looking for solution 2044-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 2045-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 2046-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 2047-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 2048-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 2049-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 2050-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 2051-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 2052-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 2053-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 2054-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 2055-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 2056-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s69)-[GOOD] (assert s85)-Fast allSat, Looking for solution 2056-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 2057-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 2058-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 2059-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 2060-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 2061-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 2062-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 2063-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 2064-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 2065-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 2066-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 2067-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 2068-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s69)-[GOOD] (assert s84)-Fast allSat, Looking for solution 2068-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 2069-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 2070-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 2071-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 2072-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 2073-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 2074-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 2075-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 2076-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 2077-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 2078-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 2079-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 2080-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s69)-[GOOD] (assert s83)-Fast allSat, Looking for solution 2080-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 2081-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 2082-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 2083-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 2084-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 2085-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 2086-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 2087-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 2088-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 2089-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 2090-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 2091-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 2092-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s69)-[GOOD] (assert s82)-Fast allSat, Looking for solution 2092-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 2093-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 2094-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 2095-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 2096-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 2097-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 2098-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 2099-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 2100-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 2101-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 2102-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 2103-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 2104-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s69)-[GOOD] (assert s81)-Fast allSat, Looking for solution 2104-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 2105-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 2106-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 2107-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 2108-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 2109-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 2110-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 2111-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 2112-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 2113-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 2114-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 2115-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 2116-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s69)-[GOOD] (assert s80)-Fast allSat, Looking for solution 2116-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 2117-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 2118-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 2119-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 2120-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 2121-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 2122-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 2123-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 2124-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 2125-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 2126-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 2127-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 2128-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s69)-[GOOD] (assert s79)-Fast allSat, Looking for solution 2128-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 2129-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 2130-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 2131-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 2132-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 2133-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 2134-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 2135-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 2136-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 2137-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 2138-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 2139-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 2140-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s69)-[GOOD] (assert s78)-Fast allSat, Looking for solution 2140-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 2141-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 2142-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 2143-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 2144-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 2145-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 2146-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 2147-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 2148-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 2149-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 2150-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 2151-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 2152-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s69)-[GOOD] (assert s77)-Fast allSat, Looking for solution 2152-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 2153-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 2154-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 2155-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 2156-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 2157-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 2158-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 2159-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 2160-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 2161-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 2162-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 2163-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 2164-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s71)-[GOOD] (assert s74)-Fast allSat, Looking for solution 2164-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 2165-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 2166-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 2167-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 2168-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 2169-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 2170-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 2171-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 2172-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 2173-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 2174-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 2175-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 2176-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s67)-[GOOD] (assert s99)-[GOOD] (assert s75)-Fast allSat, Looking for solution 2176-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 2177-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 2178-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 2179-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 2180-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 2181-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 2182-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 2183-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 2184-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 2185-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 2186-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 2187-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 4))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 2188-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s56)-[GOOD] (define-fun s100 () Bool (= s0 s18))-[GOOD] (assert s100)-Fast allSat, Looking for solution 2188-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s54)-Fast allSat, Looking for solution 2189-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s53)-Fast allSat, Looking for solution 2190-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s52)-Fast allSat, Looking for solution 2191-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s51)-Fast allSat, Looking for solution 2192-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s50)-Fast allSat, Looking for solution 2193-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s49)-Fast allSat, Looking for solution 2194-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s48)-Fast allSat, Looking for solution 2195-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s47)-Fast allSat, Looking for solution 2196-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s46)-Fast allSat, Looking for solution 2197-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s45)-Fast allSat, Looking for solution 2198-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s43)-Fast allSat, Looking for solution 2199-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s57)-Fast allSat, Looking for solution 2200-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s87)-Fast allSat, Looking for solution 2201-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s71)-[GOOD] (assert s89)-Fast allSat, Looking for solution 2201-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 2202-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 2203-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 2204-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 2205-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 2206-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 2207-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 2208-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 2209-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 2210-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 2211-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 2212-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 2213-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s71)-[GOOD] (assert s59)-Fast allSat, Looking for solution 2213-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 2214-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 2215-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 2216-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 2217-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 2218-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 2219-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 2220-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 2221-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 2222-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 2223-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 2224-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 2225-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s71)-[GOOD] (assert s85)-Fast allSat, Looking for solution 2225-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 2226-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 2227-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 2228-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 2229-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 2230-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 2231-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 2232-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 2233-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 2234-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 2235-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 2236-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 2237-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s71)-[GOOD] (assert s84)-Fast allSat, Looking for solution 2237-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 2238-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 2239-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 2240-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 2241-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 2242-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 2243-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 2244-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 2245-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 2246-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 2247-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 2248-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 2249-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s71)-[GOOD] (assert s83)-Fast allSat, Looking for solution 2249-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 2250-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 2251-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 2252-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 2253-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 2254-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 2255-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 2256-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 2257-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 2258-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 2259-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 2260-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 2261-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s71)-[GOOD] (assert s82)-Fast allSat, Looking for solution 2261-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 2262-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 2263-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 2264-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 2265-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 2266-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 2267-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 2268-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 2269-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 2270-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 2271-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 2272-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 2273-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s71)-[GOOD] (assert s81)-Fast allSat, Looking for solution 2273-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 2274-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 2275-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 2276-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 2277-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 2278-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 2279-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 2280-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 2281-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 2282-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 2283-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 2284-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 2285-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s71)-[GOOD] (assert s80)-Fast allSat, Looking for solution 2285-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 2286-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 2287-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 2288-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 2289-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 2290-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 2291-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 2292-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 2293-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 2294-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 2295-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 2296-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 2297-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s71)-[GOOD] (assert s79)-Fast allSat, Looking for solution 2297-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 2298-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 2299-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 2300-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 2301-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 2302-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 2303-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 2304-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 2305-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 2306-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 2307-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 2308-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 2309-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s71)-[GOOD] (assert s78)-Fast allSat, Looking for solution 2309-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 2310-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 2311-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 2312-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 2313-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 2314-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 2315-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 2316-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 2317-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 2318-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 2319-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 2320-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 2321-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s71)-[GOOD] (assert s77)-Fast allSat, Looking for solution 2321-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 2322-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 2323-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 2324-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 2325-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 2326-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 2327-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 2328-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 2329-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 2330-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 2331-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 2332-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 2333-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s71)-[GOOD] (assert s76)-Fast allSat, Looking for solution 2333-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 2334-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 2335-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 2336-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 2337-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 2338-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 2339-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 2340-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 2341-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 2342-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 2343-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 2344-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 2345-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s71)-[GOOD] (assert s75)-Fast allSat, Looking for solution 2345-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 2346-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 2347-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 2348-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 2349-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 2350-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 2351-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 2352-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 2353-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 2354-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 2355-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 2356-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 2357-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s69)-[GOOD] (assert s100)-[GOOD] (assert s73)-Fast allSat, Looking for solution 2357-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 2358-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 2359-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 2360-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 2361-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 2362-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 2363-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 2364-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 2365-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 2366-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 2367-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 2368-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 2))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 2369-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s56)-[GOOD] (define-fun s101 () Bool (= s0 s16))-[GOOD] (assert s101)-Fast allSat, Looking for solution 2369-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s55)-Fast allSat, Looking for solution 2370-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s53)-Fast allSat, Looking for solution 2371-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s52)-Fast allSat, Looking for solution 2372-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s51)-Fast allSat, Looking for solution 2373-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s50)-Fast allSat, Looking for solution 2374-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s49)-Fast allSat, Looking for solution 2375-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s48)-Fast allSat, Looking for solution 2376-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s47)-Fast allSat, Looking for solution 2377-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s46)-Fast allSat, Looking for solution 2378-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s45)-Fast allSat, Looking for solution 2379-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s43)-Fast allSat, Looking for solution 2380-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s57)-Fast allSat, Looking for solution 2381-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s87)-Fast allSat, Looking for solution 2382-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s72)-[GOOD] (assert s89)-Fast allSat, Looking for solution 2382-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 2383-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 2384-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 2385-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 2386-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 2387-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 2388-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 2389-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 2390-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 2391-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 2392-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 2393-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 2394-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s88)-[GOOD] (assert s59)-Fast allSat, Looking for solution 2394-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 2395-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 2396-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 2397-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 2398-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 2399-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 2400-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 2401-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 2402-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 2403-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 2404-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 2405-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 2406-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s88)-[GOOD] (assert s85)-Fast allSat, Looking for solution 2406-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 2407-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 2408-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 2409-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 2410-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 2411-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 2412-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 2413-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 2414-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 2415-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 2416-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 2417-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 2418-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s88)-[GOOD] (assert s84)-Fast allSat, Looking for solution 2418-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 2419-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 2420-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 2421-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 2422-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 2423-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 2424-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 2425-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 2426-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 2427-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 2428-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 2429-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 2430-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s88)-[GOOD] (assert s83)-Fast allSat, Looking for solution 2430-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 2431-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 2432-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 2433-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 2434-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 2435-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 2436-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 2437-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 2438-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 2439-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 2440-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 2441-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 2442-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s88)-[GOOD] (assert s82)-Fast allSat, Looking for solution 2442-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 2443-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 2444-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 2445-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 2446-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 2447-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 2448-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 2449-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 2450-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 2451-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 2452-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 2453-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 2454-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s88)-[GOOD] (assert s81)-Fast allSat, Looking for solution 2454-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 2455-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 2456-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 2457-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 2458-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 2459-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 2460-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 2461-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 2462-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 2463-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 2464-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 2465-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 2466-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s88)-[GOOD] (assert s80)-Fast allSat, Looking for solution 2466-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 2467-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 2468-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 2469-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 2470-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 2471-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 2472-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 2473-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 2474-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 2475-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 2476-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 2477-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 2478-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s88)-[GOOD] (assert s79)-Fast allSat, Looking for solution 2478-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 2479-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 2480-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 2481-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 2482-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 2483-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 2484-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 2485-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 2486-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 2487-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 2488-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 2489-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 2490-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s88)-[GOOD] (assert s78)-Fast allSat, Looking for solution 2490-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 2491-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 2492-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 2493-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 2494-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 2495-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 2496-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 2497-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 2498-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 2499-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 2500-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 2501-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 2502-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s88)-[GOOD] (assert s77)-Fast allSat, Looking for solution 2502-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 2503-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 2504-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 2505-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 2506-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 2507-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 2508-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 2509-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 2510-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 2511-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 2512-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 2513-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 2514-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s88)-[GOOD] (assert s76)-Fast allSat, Looking for solution 2514-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 2515-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 2516-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 2517-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 2518-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 2519-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 2520-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 2521-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 2522-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 2523-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 2524-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 2525-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 2526-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s88)-[GOOD] (assert s74)-Fast allSat, Looking for solution 2526-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 2527-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 2528-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 2529-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 2530-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 2531-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 2532-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 2533-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 2534-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 2535-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 2536-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 2537-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 1))-[GOOD] (push 1)-[GOOD] (assert s71)-Fast allSat, Looking for solution 2538-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s70)-[GOOD] (assert s101)-[GOOD] (assert s73)-Fast allSat, Looking for solution 2538-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 2539-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 2540-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 2541-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 2542-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 2543-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 2544-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 2545-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 2546-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 2547-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 2548-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 2549-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 3))-[SEND] (get-value (s1))-[RECV] ((s1 1))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s88)-Fast allSat, Looking for solution 2550-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s55)-[GOOD] (define-fun s102 () Bool (= s0 s3))-[GOOD] (assert s102)-Fast allSat, Looking for solution 2550-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s54)-Fast allSat, Looking for solution 2551-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s53)-Fast allSat, Looking for solution 2552-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s52)-Fast allSat, Looking for solution 2553-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s51)-Fast allSat, Looking for solution 2554-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s50)-Fast allSat, Looking for solution 2555-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s49)-Fast allSat, Looking for solution 2556-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s48)-Fast allSat, Looking for solution 2557-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s47)-Fast allSat, Looking for solution 2558-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s46)-Fast allSat, Looking for solution 2559-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s45)-Fast allSat, Looking for solution 2560-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s43)-Fast allSat, Looking for solution 2561-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 15))-[GOOD] (push 1)-[GOOD] (assert s57)-Fast allSat, Looking for solution 2562-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s87)-Fast allSat, Looking for solution 2563-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s72)-[GOOD] (assert s89)-Fast allSat, Looking for solution 2563-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 2564-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 2565-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 2566-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 2567-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 2568-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 2569-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 2570-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 2571-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 2572-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 2573-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 2574-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 15))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 2575-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s88)-[GOOD] (assert s59)-Fast allSat, Looking for solution 2575-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 2576-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 2577-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 2578-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 2579-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 2580-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 2581-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 2582-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 2583-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 2584-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 2585-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 2586-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 14))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 2587-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s88)-[GOOD] (assert s85)-Fast allSat, Looking for solution 2587-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 2588-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 2589-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 2590-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 2591-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 2592-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 2593-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 2594-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 2595-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 2596-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 2597-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 2598-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 13))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 2599-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s88)-[GOOD] (assert s84)-Fast allSat, Looking for solution 2599-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 2600-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 2601-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 2602-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 2603-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 2604-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 2605-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 2606-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 2607-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 2608-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 2609-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 2610-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 12))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 2611-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s88)-[GOOD] (assert s83)-Fast allSat, Looking for solution 2611-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 2612-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 2613-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 2614-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 2615-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 2616-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 2617-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 2618-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 2619-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 2620-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 2621-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 2622-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 11))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 2623-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s88)-[GOOD] (assert s82)-Fast allSat, Looking for solution 2623-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 2624-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 2625-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 2626-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 2627-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 2628-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 2629-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 2630-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 2631-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 2632-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 2633-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 2634-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 10))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 2635-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s88)-[GOOD] (assert s81)-Fast allSat, Looking for solution 2635-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 2636-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 2637-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 2638-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 2639-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 2640-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 2641-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 2642-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 2643-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 2644-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 2645-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 2646-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 9))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 2647-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s88)-[GOOD] (assert s80)-Fast allSat, Looking for solution 2647-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 2648-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 2649-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 2650-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 2651-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 2652-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 2653-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 2654-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 2655-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 2656-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 2657-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 2658-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 8))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 2659-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s88)-[GOOD] (assert s79)-Fast allSat, Looking for solution 2659-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 2660-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 2661-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 2662-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 2663-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 2664-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 2665-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 2666-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 2667-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 2668-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 2669-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 2670-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 7))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 2671-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s88)-[GOOD] (assert s78)-Fast allSat, Looking for solution 2671-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 2672-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 2673-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 2674-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 2675-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 2676-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 2677-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 2678-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 2679-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 2680-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 2681-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 2682-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 6))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 2683-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s88)-[GOOD] (assert s77)-Fast allSat, Looking for solution 2683-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 2684-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 2685-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 2686-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 2687-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 2688-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 2689-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 2690-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 2691-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 2692-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 2693-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 2694-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 5))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 2695-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s88)-[GOOD] (assert s76)-Fast allSat, Looking for solution 2695-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 3))-[GOOD] (push 1)-[GOOD] (assert s69)-Fast allSat, Looking for solution 2696-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 2697-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 2698-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 2699-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 2700-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 2701-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 2702-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 2703-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 2704-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 2705-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 2706-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 4))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 2707-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s88)-[GOOD] (assert s75)-Fast allSat, Looking for solution 2707-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 2))-[GOOD] (push 1)-[GOOD] (assert s70)-Fast allSat, Looking for solution 2708-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 2709-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 2710-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 2711-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 2712-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 2713-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 2714-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 2715-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 2716-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 2717-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 2718-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 3))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)-Fast allSat, Looking for solution 2719-[SEND] (check-sat)-[RECV] unsat-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (pop 1)-[GOOD] (push 1)-[GOOD] (assert s69)-[GOOD] (assert s102)-[GOOD] (assert s74)-Fast allSat, Looking for solution 2719-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 4))-[GOOD] (push 1)-[GOOD] (assert s68)-Fast allSat, Looking for solution 2720-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 5))-[GOOD] (push 1)-[GOOD] (assert s67)-Fast allSat, Looking for solution 2721-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 6))-[GOOD] (push 1)-[GOOD] (assert s66)-Fast allSat, Looking for solution 2722-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 7))-[GOOD] (push 1)-[GOOD] (assert s65)-Fast allSat, Looking for solution 2723-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 8))-[GOOD] (push 1)-[GOOD] (assert s64)-Fast allSat, Looking for solution 2724-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 9))-[GOOD] (push 1)-[GOOD] (assert s63)-Fast allSat, Looking for solution 2725-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 10))-[GOOD] (push 1)-[GOOD] (assert s62)-Fast allSat, Looking for solution 2726-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 11))-[GOOD] (push 1)-[GOOD] (assert s61)-Fast allSat, Looking for solution 2727-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 12))-[GOOD] (push 1)-[GOOD] (assert s60)-Fast allSat, Looking for solution 2728-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 13))-[GOOD] (push 1)-[GOOD] (assert s58)-Fast allSat, Looking for solution 2729-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (s0))-[RECV] ((s0 1))-[SEND] (get-value (s1))-[RECV] ((s1 2))-[SEND] (get-value (s2))-[RECV] ((s2 14))-[GOOD] (push 1)-[GOOD] (assert s72)+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s3 () Int 1)+[GOOD] (define-fun s5 () Int 15)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "x"+[GOOD] (declare-fun s1 () Int) ; tracks user variable "y"+[GOOD] (declare-fun s2 () Int) ; tracks user variable "z"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (>= s0 s3))+[GOOD] (define-fun s6 () Bool (<= s0 s5))+[GOOD] (define-fun s7 () Bool (and s4 s6))+[GOOD] (define-fun s8 () Bool (>= s1 s3))+[GOOD] (define-fun s9 () Bool (<= s1 s5))+[GOOD] (define-fun s10 () Bool (and s8 s9))+[GOOD] (define-fun s11 () Bool (>= s2 s3))+[GOOD] (define-fun s12 () Bool (<= s2 s5))+[GOOD] (define-fun s13 () Bool (and s11 s12))+[GOOD] (define-fun s14 () Bool (distinct s0 s1 s2))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s7)+[GOOD] (assert s10)+[GOOD] (assert s13)+[GOOD] (assert s14)+*** Checking Satisfiability, all solutions..+Fast allSat, Looking for solution 1+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (define-fun s15 () Bool (distinct s0 s3))+[GOOD] (assert s15)+Fast allSat, Looking for solution 2+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (define-fun s16 () Int 2)+[GOOD] (define-fun s17 () Bool (distinct s0 s16))+[GOOD] (assert s17)+Fast allSat, Looking for solution 3+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (define-fun s18 () Int 3)+[GOOD] (define-fun s19 () Bool (distinct s0 s18))+[GOOD] (assert s19)+Fast allSat, Looking for solution 4+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (define-fun s20 () Int 4)+[GOOD] (define-fun s21 () Bool (distinct s0 s20))+[GOOD] (assert s21)+Fast allSat, Looking for solution 5+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (define-fun s22 () Int 5)+[GOOD] (define-fun s23 () Bool (distinct s0 s22))+[GOOD] (assert s23)+Fast allSat, Looking for solution 6+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (define-fun s24 () Int 6)+[GOOD] (define-fun s25 () Bool (distinct s0 s24))+[GOOD] (assert s25)+Fast allSat, Looking for solution 7+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (define-fun s26 () Int 7)+[GOOD] (define-fun s27 () Bool (distinct s0 s26))+[GOOD] (assert s27)+Fast allSat, Looking for solution 8+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (define-fun s28 () Int 8)+[GOOD] (define-fun s29 () Bool (distinct s0 s28))+[GOOD] (assert s29)+Fast allSat, Looking for solution 9+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (define-fun s30 () Int 9)+[GOOD] (define-fun s31 () Bool (distinct s0 s30))+[GOOD] (assert s31)+Fast allSat, Looking for solution 10+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (define-fun s32 () Int 10)+[GOOD] (define-fun s33 () Bool (distinct s0 s32))+[GOOD] (assert s33)+Fast allSat, Looking for solution 11+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (define-fun s34 () Int 11)+[GOOD] (define-fun s35 () Bool (distinct s0 s34))+[GOOD] (assert s35)+Fast allSat, Looking for solution 12+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (define-fun s36 () Int 12)+[GOOD] (define-fun s37 () Bool (distinct s0 s36))+[GOOD] (assert s37)+Fast allSat, Looking for solution 13+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (define-fun s38 () Int 13)+[GOOD] (define-fun s39 () Bool (distinct s0 s38))+[GOOD] (assert s39)+Fast allSat, Looking for solution 14+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (define-fun s40 () Int 14)+[GOOD] (define-fun s41 () Bool (distinct s0 s40))+[GOOD] (assert s41)+Fast allSat, Looking for solution 15+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (define-fun s42 () Bool (distinct s0 s5))+[GOOD] (assert s42)+Fast allSat, Looking for solution 16+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (define-fun s43 () Bool (distinct s1 s40))+[GOOD] (assert s43)+[GOOD] (define-fun s44 () Bool (= s0 s5))+[GOOD] (assert s44)+Fast allSat, Looking for solution 16+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (define-fun s45 () Bool (distinct s1 s38))+[GOOD] (assert s45)+Fast allSat, Looking for solution 17+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (define-fun s46 () Bool (distinct s1 s36))+[GOOD] (assert s46)+Fast allSat, Looking for solution 18+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (define-fun s47 () Bool (distinct s1 s34))+[GOOD] (assert s47)+Fast allSat, Looking for solution 19+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (define-fun s48 () Bool (distinct s1 s32))+[GOOD] (assert s48)+Fast allSat, Looking for solution 20+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (define-fun s49 () Bool (distinct s1 s30))+[GOOD] (assert s49)+Fast allSat, Looking for solution 21+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (define-fun s50 () Bool (distinct s1 s28))+[GOOD] (assert s50)+Fast allSat, Looking for solution 22+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (define-fun s51 () Bool (distinct s1 s26))+[GOOD] (assert s51)+Fast allSat, Looking for solution 23+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (define-fun s52 () Bool (distinct s1 s24))+[GOOD] (assert s52)+Fast allSat, Looking for solution 24+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (define-fun s53 () Bool (distinct s1 s22))+[GOOD] (assert s53)+Fast allSat, Looking for solution 25+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (define-fun s54 () Bool (distinct s1 s20))+[GOOD] (assert s54)+Fast allSat, Looking for solution 26+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (define-fun s55 () Bool (distinct s1 s18))+[GOOD] (assert s55)+Fast allSat, Looking for solution 27+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (define-fun s56 () Bool (distinct s1 s16))+[GOOD] (assert s56)+Fast allSat, Looking for solution 28+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (define-fun s57 () Bool (distinct s1 s3))+[GOOD] (assert s57)+Fast allSat, Looking for solution 29+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (define-fun s58 () Bool (distinct s2 s16))+[GOOD] (assert s58)+[GOOD] (define-fun s59 () Bool (= s1 s3))+[GOOD] (assert s59)+Fast allSat, Looking for solution 29+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (define-fun s60 () Bool (distinct s2 s18))+[GOOD] (assert s60)+Fast allSat, Looking for solution 30+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (define-fun s61 () Bool (distinct s2 s20))+[GOOD] (assert s61)+Fast allSat, Looking for solution 31+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (define-fun s62 () Bool (distinct s2 s22))+[GOOD] (assert s62)+Fast allSat, Looking for solution 32+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (define-fun s63 () Bool (distinct s2 s24))+[GOOD] (assert s63)+Fast allSat, Looking for solution 33+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (define-fun s64 () Bool (distinct s2 s26))+[GOOD] (assert s64)+Fast allSat, Looking for solution 34+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (define-fun s65 () Bool (distinct s2 s28))+[GOOD] (assert s65)+Fast allSat, Looking for solution 35+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (define-fun s66 () Bool (distinct s2 s30))+[GOOD] (assert s66)+Fast allSat, Looking for solution 36+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (define-fun s67 () Bool (distinct s2 s32))+[GOOD] (assert s67)+Fast allSat, Looking for solution 37+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (define-fun s68 () Bool (distinct s2 s34))+[GOOD] (assert s68)+Fast allSat, Looking for solution 38+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (define-fun s69 () Bool (distinct s2 s36))+[GOOD] (assert s69)+Fast allSat, Looking for solution 39+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (define-fun s70 () Bool (distinct s2 s38))+[GOOD] (assert s70)+Fast allSat, Looking for solution 40+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (define-fun s71 () Bool (distinct s2 s40))+[GOOD] (assert s71)+Fast allSat, Looking for solution 41+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (define-fun s72 () Bool (distinct s2 s3))+[GOOD] (assert s72)+[GOOD] (define-fun s73 () Bool (= s1 s16))+[GOOD] (assert s73)+Fast allSat, Looking for solution 41+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 42+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 43+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 44+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 45+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 46+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 47+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 48+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 49+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 50+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 51+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 52+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 53+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s58)+[GOOD] (define-fun s74 () Bool (= s1 s18))+[GOOD] (assert s74)+Fast allSat, Looking for solution 53+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 54+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 55+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 56+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 57+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 58+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 59+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 60+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 61+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 62+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 63+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 64+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 65+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s60)+[GOOD] (define-fun s75 () Bool (= s1 s20))+[GOOD] (assert s75)+Fast allSat, Looking for solution 65+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 66+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 67+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 68+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 69+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 70+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 71+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 72+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 73+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 74+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 75+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 76+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 77+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s61)+[GOOD] (define-fun s76 () Bool (= s1 s22))+[GOOD] (assert s76)+Fast allSat, Looking for solution 77+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 78+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 79+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 80+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 81+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 82+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 83+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 84+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 85+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 86+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 87+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 88+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 89+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s62)+[GOOD] (define-fun s77 () Bool (= s1 s24))+[GOOD] (assert s77)+Fast allSat, Looking for solution 89+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 90+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 91+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 92+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 93+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 94+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 95+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 96+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 97+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 98+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 99+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 100+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 101+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s63)+[GOOD] (define-fun s78 () Bool (= s1 s26))+[GOOD] (assert s78)+Fast allSat, Looking for solution 101+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 102+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 103+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 104+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 105+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 106+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 107+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 108+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 109+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 110+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 111+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 112+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 113+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s64)+[GOOD] (define-fun s79 () Bool (= s1 s28))+[GOOD] (assert s79)+Fast allSat, Looking for solution 113+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 114+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 115+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 116+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 117+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 118+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 119+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 120+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 121+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 122+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 123+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 124+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 125+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s65)+[GOOD] (define-fun s80 () Bool (= s1 s30))+[GOOD] (assert s80)+Fast allSat, Looking for solution 125+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 126+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 127+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 128+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 129+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 130+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 131+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 132+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 133+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 134+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 135+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 136+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 137+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s66)+[GOOD] (define-fun s81 () Bool (= s1 s32))+[GOOD] (assert s81)+Fast allSat, Looking for solution 137+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 138+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 139+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 140+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 141+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 142+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 143+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 144+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 145+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 146+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 147+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 148+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 149+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s67)+[GOOD] (define-fun s82 () Bool (= s1 s34))+[GOOD] (assert s82)+Fast allSat, Looking for solution 149+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 150+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 151+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 152+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 153+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 154+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 155+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 156+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 157+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 158+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 159+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 160+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 161+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s68)+[GOOD] (define-fun s83 () Bool (= s1 s36))+[GOOD] (assert s83)+Fast allSat, Looking for solution 161+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 162+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 163+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 164+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 165+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 166+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 167+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 168+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 169+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 170+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 171+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 172+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 173+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s69)+[GOOD] (define-fun s84 () Bool (= s1 s38))+[GOOD] (assert s84)+Fast allSat, Looking for solution 173+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 174+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 175+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 176+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 177+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 178+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 179+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 180+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 181+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 182+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 183+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 184+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 185+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s70)+[GOOD] (assert s44)+[GOOD] (define-fun s85 () Bool (= s1 s40))+[GOOD] (assert s85)+Fast allSat, Looking for solution 185+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 186+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 187+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 188+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 189+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 190+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 191+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 192+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 193+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 194+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 195+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 196+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 15))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 197+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (define-fun s86 () Bool (distinct s1 s5))+[GOOD] (assert s86)+[GOOD] (define-fun s87 () Bool (= s0 s40))+[GOOD] (assert s87)+Fast allSat, Looking for solution 197+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s45)+Fast allSat, Looking for solution 198+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s46)+Fast allSat, Looking for solution 199+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s47)+Fast allSat, Looking for solution 200+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s48)+Fast allSat, Looking for solution 201+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s49)+Fast allSat, Looking for solution 202+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s50)+Fast allSat, Looking for solution 203+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s51)+Fast allSat, Looking for solution 204+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s52)+Fast allSat, Looking for solution 205+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s53)+Fast allSat, Looking for solution 206+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s54)+Fast allSat, Looking for solution 207+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s55)+Fast allSat, Looking for solution 208+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s56)+Fast allSat, Looking for solution 209+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s57)+Fast allSat, Looking for solution 210+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s58)+[GOOD] (assert s59)+Fast allSat, Looking for solution 210+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 211+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 212+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 213+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 214+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 215+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 216+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 217+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 218+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 219+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 220+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 221+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (define-fun s88 () Bool (distinct s2 s5))+[GOOD] (assert s88)+Fast allSat, Looking for solution 222+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s72)+[GOOD] (assert s73)+Fast allSat, Looking for solution 222+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 223+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 224+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 225+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 226+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 227+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 228+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 229+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 230+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 231+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 232+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 233+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 234+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s58)+[GOOD] (assert s74)+Fast allSat, Looking for solution 234+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 235+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 236+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 237+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 238+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 239+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 240+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 241+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 242+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 243+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 244+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 245+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 246+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s60)+[GOOD] (assert s75)+Fast allSat, Looking for solution 246+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 247+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 248+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 249+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 250+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 251+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 252+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 253+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 254+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 255+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 256+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 257+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 258+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s61)+[GOOD] (assert s76)+Fast allSat, Looking for solution 258+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 259+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 260+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 261+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 262+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 263+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 264+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 265+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 266+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 267+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 268+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 269+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 270+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s62)+[GOOD] (assert s77)+Fast allSat, Looking for solution 270+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 271+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 272+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 273+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 274+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 275+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 276+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 277+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 278+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 279+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 280+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 281+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 282+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s63)+[GOOD] (assert s78)+Fast allSat, Looking for solution 282+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 283+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 284+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 285+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 286+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 287+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 288+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 289+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 290+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 291+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 292+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 293+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 294+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s64)+[GOOD] (assert s79)+Fast allSat, Looking for solution 294+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 295+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 296+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 297+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 298+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 299+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 300+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 301+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 302+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 303+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 304+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 305+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 306+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s65)+[GOOD] (assert s80)+Fast allSat, Looking for solution 306+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 307+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 308+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 309+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 310+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 311+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 312+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 313+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 314+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 315+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 316+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 317+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 318+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s66)+[GOOD] (assert s81)+Fast allSat, Looking for solution 318+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 319+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 320+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 321+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 322+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 323+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 324+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 325+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 326+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 327+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 328+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 329+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 330+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s67)+[GOOD] (assert s82)+Fast allSat, Looking for solution 330+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 331+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 332+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 333+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 334+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 335+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 336+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 337+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 338+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 339+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 340+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 341+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 342+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s68)+[GOOD] (assert s83)+Fast allSat, Looking for solution 342+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 343+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 344+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 345+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 346+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 347+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 348+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 349+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 350+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 351+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 352+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 353+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 354+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s69)+[GOOD] (assert s84)+Fast allSat, Looking for solution 354+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 355+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 356+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 357+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 358+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 359+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 360+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 361+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 362+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 363+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 364+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 365+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 366+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s70)+[GOOD] (assert s87)+[GOOD] (define-fun s89 () Bool (= s1 s5))+[GOOD] (assert s89)+Fast allSat, Looking for solution 366+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 367+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 368+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 369+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 370+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 371+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 372+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 373+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 374+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 375+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 376+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 377+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 14))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 378+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s43)+[GOOD] (define-fun s90 () Bool (= s0 s38))+[GOOD] (assert s90)+Fast allSat, Looking for solution 378+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s86)+Fast allSat, Looking for solution 379+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s46)+Fast allSat, Looking for solution 380+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s47)+Fast allSat, Looking for solution 381+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s48)+Fast allSat, Looking for solution 382+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s49)+Fast allSat, Looking for solution 383+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s50)+Fast allSat, Looking for solution 384+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s51)+Fast allSat, Looking for solution 385+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s52)+Fast allSat, Looking for solution 386+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s53)+Fast allSat, Looking for solution 387+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s54)+Fast allSat, Looking for solution 388+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s55)+Fast allSat, Looking for solution 389+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s56)+Fast allSat, Looking for solution 390+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s57)+Fast allSat, Looking for solution 391+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s71)+[GOOD] (assert s59)+Fast allSat, Looking for solution 391+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 392+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 393+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 394+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 395+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 396+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 397+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 398+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 399+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 400+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 401+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 402+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 403+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s72)+[GOOD] (assert s73)+Fast allSat, Looking for solution 403+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 404+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 405+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 406+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 407+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 408+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 409+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 410+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 411+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 412+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 413+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 414+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 415+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s58)+[GOOD] (assert s74)+Fast allSat, Looking for solution 415+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 416+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 417+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 418+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 419+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 420+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 421+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 422+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 423+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 424+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 425+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 426+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 427+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s60)+[GOOD] (assert s75)+Fast allSat, Looking for solution 427+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 428+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 429+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 430+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 431+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 432+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 433+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 434+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 435+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 436+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 437+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 438+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 439+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s61)+[GOOD] (assert s76)+Fast allSat, Looking for solution 439+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 440+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 441+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 442+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 443+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 444+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 445+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 446+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 447+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 448+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 449+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 450+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 451+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s62)+[GOOD] (assert s77)+Fast allSat, Looking for solution 451+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 452+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 453+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 454+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 455+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 456+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 457+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 458+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 459+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 460+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 461+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 462+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 463+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s63)+[GOOD] (assert s78)+Fast allSat, Looking for solution 463+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 464+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 465+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 466+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 467+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 468+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 469+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 470+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 471+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 472+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 473+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 474+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 475+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s63)+[GOOD] (assert s79)+Fast allSat, Looking for solution 475+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 476+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 477+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 478+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 479+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 480+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 481+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 482+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 483+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 484+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 485+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 486+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 487+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s63)+[GOOD] (assert s80)+Fast allSat, Looking for solution 487+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 488+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 489+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 490+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 491+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 492+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 493+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 494+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 495+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 496+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 497+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 498+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 499+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s63)+[GOOD] (assert s81)+Fast allSat, Looking for solution 499+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 500+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 501+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 502+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 503+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 504+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 505+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 506+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 507+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 508+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 509+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 510+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 511+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s63)+[GOOD] (assert s82)+Fast allSat, Looking for solution 511+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 512+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 513+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 514+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 515+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 516+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 517+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 518+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 519+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 520+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 521+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 522+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 523+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s63)+[GOOD] (assert s83)+Fast allSat, Looking for solution 523+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 524+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 525+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 526+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 527+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 528+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 529+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 530+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 531+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 532+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 533+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 534+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 535+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s63)+[GOOD] (assert s89)+Fast allSat, Looking for solution 535+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 536+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 537+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 538+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 539+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 540+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 541+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 542+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 543+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 544+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 545+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 546+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 547+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s88)+[GOOD] (assert s90)+[GOOD] (assert s85)+Fast allSat, Looking for solution 547+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 548+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 549+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 550+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 551+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 552+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 553+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 554+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 555+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 556+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 557+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 558+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 13))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 559+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s45)+[GOOD] (define-fun s91 () Bool (= s0 s36))+[GOOD] (assert s91)+Fast allSat, Looking for solution 559+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s43)+Fast allSat, Looking for solution 560+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s86)+Fast allSat, Looking for solution 561+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s47)+Fast allSat, Looking for solution 562+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s48)+Fast allSat, Looking for solution 563+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s49)+Fast allSat, Looking for solution 564+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s50)+Fast allSat, Looking for solution 565+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s51)+Fast allSat, Looking for solution 566+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s52)+Fast allSat, Looking for solution 567+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s53)+Fast allSat, Looking for solution 568+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s54)+Fast allSat, Looking for solution 569+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s55)+Fast allSat, Looking for solution 570+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s56)+Fast allSat, Looking for solution 571+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s57)+Fast allSat, Looking for solution 572+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s58)+[GOOD] (assert s59)+Fast allSat, Looking for solution 572+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 573+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 574+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 575+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 576+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 577+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 578+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 579+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 580+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 581+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 582+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 583+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 584+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s72)+[GOOD] (assert s73)+Fast allSat, Looking for solution 584+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 585+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 586+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 587+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 588+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 589+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 590+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 591+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 592+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 593+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 594+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 595+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 596+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s58)+[GOOD] (assert s74)+Fast allSat, Looking for solution 596+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 597+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 598+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 599+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 600+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 601+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 602+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 603+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 604+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 605+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 606+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 607+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 608+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s60)+[GOOD] (assert s75)+Fast allSat, Looking for solution 608+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 609+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 610+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 611+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 612+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 613+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 614+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 615+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 616+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 617+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 618+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 619+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 620+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s61)+[GOOD] (assert s76)+Fast allSat, Looking for solution 620+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 621+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 622+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 623+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 624+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 625+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 626+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 627+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 628+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 629+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 630+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 631+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 632+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s62)+[GOOD] (assert s77)+Fast allSat, Looking for solution 632+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 633+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 634+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 635+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 636+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 637+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 638+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 639+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 640+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 641+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 642+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 643+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 644+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s63)+[GOOD] (assert s78)+Fast allSat, Looking for solution 644+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 645+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 646+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 647+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 648+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 649+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 650+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 651+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 652+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 653+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 654+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 655+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 656+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s64)+[GOOD] (assert s79)+Fast allSat, Looking for solution 656+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 657+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 658+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 659+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 660+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 661+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 662+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 663+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 664+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 665+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 666+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 667+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 668+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s65)+[GOOD] (assert s80)+Fast allSat, Looking for solution 668+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 669+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 670+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 671+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 672+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 673+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 674+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 675+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 676+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 677+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 678+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 679+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 680+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s66)+[GOOD] (assert s81)+Fast allSat, Looking for solution 680+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 681+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 682+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 683+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 684+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 685+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 686+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 687+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 688+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 689+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 690+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 691+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 692+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s67)+[GOOD] (assert s82)+Fast allSat, Looking for solution 692+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 693+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 694+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 695+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 696+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 697+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 698+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 699+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 700+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 701+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 702+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 703+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 704+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s68)+[GOOD] (assert s89)+Fast allSat, Looking for solution 704+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 705+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 706+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 707+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 708+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 709+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 710+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 711+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 712+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 713+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 714+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 715+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 716+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s68)+[GOOD] (assert s85)+Fast allSat, Looking for solution 716+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 717+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 718+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 719+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 720+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 721+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 722+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 723+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 724+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 725+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 726+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 727+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 728+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s71)+[GOOD] (assert s91)+[GOOD] (assert s84)+Fast allSat, Looking for solution 728+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 729+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 730+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 731+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 732+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 733+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 734+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 735+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 736+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 737+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 738+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 739+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 12))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 740+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s46)+[GOOD] (define-fun s92 () Bool (= s0 s34))+[GOOD] (assert s92)+Fast allSat, Looking for solution 740+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s45)+Fast allSat, Looking for solution 741+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s43)+Fast allSat, Looking for solution 742+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s48)+Fast allSat, Looking for solution 743+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s49)+Fast allSat, Looking for solution 744+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s50)+Fast allSat, Looking for solution 745+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s51)+Fast allSat, Looking for solution 746+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s52)+Fast allSat, Looking for solution 747+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s53)+Fast allSat, Looking for solution 748+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s54)+Fast allSat, Looking for solution 749+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s55)+Fast allSat, Looking for solution 750+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s56)+Fast allSat, Looking for solution 751+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s57)+Fast allSat, Looking for solution 752+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s86)+Fast allSat, Looking for solution 753+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s71)+[GOOD] (assert s89)+Fast allSat, Looking for solution 753+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 754+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 755+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 756+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 757+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 758+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 759+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 760+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 761+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 762+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 763+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 764+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 765+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s69)+[GOOD] (assert s59)+Fast allSat, Looking for solution 765+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 766+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 767+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 768+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 769+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 770+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 771+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 772+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 773+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 774+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 775+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 776+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 777+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s69)+[GOOD] (assert s73)+Fast allSat, Looking for solution 777+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 778+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 779+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 780+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 781+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 782+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 783+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 784+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 785+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 786+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 787+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 788+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 789+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s69)+[GOOD] (assert s74)+Fast allSat, Looking for solution 789+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 790+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 791+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 792+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 793+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 794+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 795+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 796+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 797+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 798+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 799+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 800+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 801+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s69)+[GOOD] (assert s75)+Fast allSat, Looking for solution 801+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 802+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 803+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 804+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 805+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 806+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 807+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 808+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 809+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 810+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 811+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 812+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 813+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s69)+[GOOD] (assert s76)+Fast allSat, Looking for solution 813+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 814+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 815+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 816+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 817+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 818+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 819+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 820+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 821+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 822+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 823+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 824+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 825+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s69)+[GOOD] (assert s77)+Fast allSat, Looking for solution 825+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 826+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 827+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 828+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 829+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 830+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 831+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 832+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 833+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 834+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 835+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 836+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 837+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s69)+[GOOD] (assert s78)+Fast allSat, Looking for solution 837+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 838+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 839+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 840+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 841+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 842+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 843+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 844+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 845+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 846+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 847+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 848+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 849+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s69)+[GOOD] (assert s79)+Fast allSat, Looking for solution 849+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 850+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 851+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 852+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 853+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 854+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 855+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 856+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 857+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 858+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 859+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 860+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 861+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s69)+[GOOD] (assert s80)+Fast allSat, Looking for solution 861+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 862+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 863+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 864+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 865+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 866+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 867+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 868+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 869+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 870+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 871+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 872+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 873+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s69)+[GOOD] (assert s81)+Fast allSat, Looking for solution 873+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 874+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 875+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 876+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 877+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 878+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 879+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 880+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 881+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 882+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 883+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 884+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 885+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s88)+[GOOD] (assert s85)+Fast allSat, Looking for solution 885+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 886+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 887+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 888+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 889+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 890+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 891+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 892+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 893+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 894+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 895+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 896+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 897+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s71)+[GOOD] (assert s84)+Fast allSat, Looking for solution 897+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 898+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 899+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 900+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 901+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 902+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 903+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 904+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 905+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 906+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 907+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 908+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 909+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s70)+[GOOD] (assert s92)+[GOOD] (assert s83)+Fast allSat, Looking for solution 909+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 910+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 911+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 912+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 913+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 914+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 915+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 916+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 917+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 918+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 919+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 920+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 11))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 921+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s47)+[GOOD] (define-fun s93 () Bool (= s0 s32))+[GOOD] (assert s93)+Fast allSat, Looking for solution 921+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s46)+Fast allSat, Looking for solution 922+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s45)+Fast allSat, Looking for solution 923+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s43)+Fast allSat, Looking for solution 924+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s49)+Fast allSat, Looking for solution 925+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s50)+Fast allSat, Looking for solution 926+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s51)+Fast allSat, Looking for solution 927+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s52)+Fast allSat, Looking for solution 928+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s53)+Fast allSat, Looking for solution 929+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s54)+Fast allSat, Looking for solution 930+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s55)+Fast allSat, Looking for solution 931+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s56)+Fast allSat, Looking for solution 932+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s57)+Fast allSat, Looking for solution 933+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s86)+Fast allSat, Looking for solution 934+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s71)+[GOOD] (assert s89)+Fast allSat, Looking for solution 934+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 935+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 936+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 937+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 938+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 939+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 940+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 941+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 942+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 943+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 944+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 945+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 946+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s68)+[GOOD] (assert s59)+Fast allSat, Looking for solution 946+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 947+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 948+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 949+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 950+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 951+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 952+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 953+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 954+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 955+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 956+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 957+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 958+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s68)+[GOOD] (assert s73)+Fast allSat, Looking for solution 958+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 959+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 960+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 961+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 962+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 963+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 964+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 965+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 966+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 967+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 968+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 969+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 970+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s68)+[GOOD] (assert s74)+Fast allSat, Looking for solution 970+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 971+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 972+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 973+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 974+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 975+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 976+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 977+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 978+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 979+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 980+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 981+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 982+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s68)+[GOOD] (assert s75)+Fast allSat, Looking for solution 982+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 983+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 984+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 985+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 986+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 987+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 988+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 989+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 990+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 991+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 992+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 993+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 994+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s68)+[GOOD] (assert s76)+Fast allSat, Looking for solution 994+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 995+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 996+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 997+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 998+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 999+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 1000+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 1001+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 1002+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1003+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1004+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1005+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1006+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s68)+[GOOD] (assert s77)+Fast allSat, Looking for solution 1006+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1007+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1008+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 1009+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1010+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 1011+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 1012+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 1013+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 1014+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1015+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1016+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1017+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1018+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s68)+[GOOD] (assert s78)+Fast allSat, Looking for solution 1018+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1019+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1020+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 1021+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1022+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 1023+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 1024+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 1025+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 1026+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1027+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1028+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1029+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1030+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s68)+[GOOD] (assert s79)+Fast allSat, Looking for solution 1030+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1031+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1032+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 1033+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1034+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 1035+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 1036+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 1037+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 1038+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1039+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1040+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1041+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1042+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s68)+[GOOD] (assert s80)+Fast allSat, Looking for solution 1042+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1043+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1044+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 1045+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1046+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 1047+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 1048+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 1049+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 1050+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1051+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1052+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1053+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1054+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s88)+[GOOD] (assert s85)+Fast allSat, Looking for solution 1054+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1055+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1056+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1057+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 1058+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 1059+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 1060+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 1061+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 1062+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1063+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1064+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1065+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1066+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s71)+[GOOD] (assert s84)+Fast allSat, Looking for solution 1066+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1067+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1068+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1069+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 1070+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 1071+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 1072+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 1073+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 1074+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1075+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1076+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1077+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1078+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s70)+[GOOD] (assert s83)+Fast allSat, Looking for solution 1078+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 1079+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1080+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1081+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 1082+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 1083+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 1084+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 1085+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 1086+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1087+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1088+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1089+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1090+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s69)+[GOOD] (assert s93)+[GOOD] (assert s82)+Fast allSat, Looking for solution 1090+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1091+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 1092+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1093+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 1094+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 1095+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 1096+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 1097+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 1098+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1099+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1100+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1101+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 10))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1102+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s48)+[GOOD] (define-fun s94 () Bool (= s0 s30))+[GOOD] (assert s94)+Fast allSat, Looking for solution 1102+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s47)+Fast allSat, Looking for solution 1103+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s46)+Fast allSat, Looking for solution 1104+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s45)+Fast allSat, Looking for solution 1105+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s43)+Fast allSat, Looking for solution 1106+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s50)+Fast allSat, Looking for solution 1107+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s51)+Fast allSat, Looking for solution 1108+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s52)+Fast allSat, Looking for solution 1109+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s53)+Fast allSat, Looking for solution 1110+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s54)+Fast allSat, Looking for solution 1111+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s55)+Fast allSat, Looking for solution 1112+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s56)+Fast allSat, Looking for solution 1113+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s57)+Fast allSat, Looking for solution 1114+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s86)+Fast allSat, Looking for solution 1115+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s71)+[GOOD] (assert s89)+Fast allSat, Looking for solution 1115+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1116+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1117+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1118+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 1119+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 1120+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 1121+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 1122+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 1123+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1124+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1125+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1126+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1127+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s67)+[GOOD] (assert s59)+Fast allSat, Looking for solution 1127+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 1128+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 1129+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 1130+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 1131+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1132+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1133+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1134+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1135+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1136+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1137+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 1138+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1139+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s67)+[GOOD] (assert s73)+Fast allSat, Looking for solution 1139+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1140+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1141+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1142+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 1143+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1144+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 1145+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 1146+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 1147+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 1148+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1149+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1150+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1151+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s67)+[GOOD] (assert s74)+Fast allSat, Looking for solution 1151+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1152+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1153+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1154+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 1155+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1156+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 1157+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 1158+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 1159+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 1160+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1161+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1162+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1163+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s67)+[GOOD] (assert s75)+Fast allSat, Looking for solution 1163+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1164+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1165+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1166+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 1167+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1168+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 1169+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 1170+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 1171+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 1172+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1173+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1174+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1175+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s67)+[GOOD] (assert s76)+Fast allSat, Looking for solution 1175+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1176+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1177+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1178+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 1179+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1180+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 1181+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 1182+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 1183+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1184+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1185+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1186+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1187+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s67)+[GOOD] (assert s77)+Fast allSat, Looking for solution 1187+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1188+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1189+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1190+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 1191+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1192+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 1193+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 1194+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 1195+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1196+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1197+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1198+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1199+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s67)+[GOOD] (assert s78)+Fast allSat, Looking for solution 1199+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1200+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1201+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1202+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 1203+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1204+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 1205+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 1206+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 1207+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1208+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1209+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1210+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1211+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s67)+[GOOD] (assert s79)+Fast allSat, Looking for solution 1211+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1212+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1213+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1214+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 1215+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1216+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 1217+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 1218+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 1219+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1220+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1221+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1222+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1223+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s88)+[GOOD] (assert s85)+Fast allSat, Looking for solution 1223+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1224+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1225+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1226+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 1227+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 1228+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 1229+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 1230+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 1231+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1232+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1233+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1234+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1235+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s71)+[GOOD] (assert s84)+Fast allSat, Looking for solution 1235+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1236+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1237+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1238+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 1239+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 1240+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 1241+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 1242+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 1243+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1244+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1245+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1246+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1247+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s71)+[GOOD] (assert s83)+Fast allSat, Looking for solution 1247+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1248+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1249+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1250+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 1251+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 1252+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 1253+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 1254+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 1255+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1256+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1257+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1258+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1259+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s71)+[GOOD] (assert s82)+Fast allSat, Looking for solution 1259+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1260+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1261+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1262+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 1263+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 1264+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 1265+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 1266+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 1267+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1268+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1269+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1270+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1271+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s68)+[GOOD] (assert s94)+[GOOD] (assert s81)+Fast allSat, Looking for solution 1271+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1272+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1273+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 1274+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1275+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 1276+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 1277+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 1278+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 1279+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1280+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1281+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1282+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1283+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s49)+[GOOD] (define-fun s95 () Bool (= s0 s28))+[GOOD] (assert s95)+Fast allSat, Looking for solution 1283+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s48)+Fast allSat, Looking for solution 1284+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s47)+Fast allSat, Looking for solution 1285+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s46)+Fast allSat, Looking for solution 1286+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s45)+Fast allSat, Looking for solution 1287+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s43)+Fast allSat, Looking for solution 1288+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s86)+Fast allSat, Looking for solution 1289+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s51)+Fast allSat, Looking for solution 1290+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s52)+Fast allSat, Looking for solution 1291+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s53)+Fast allSat, Looking for solution 1292+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s54)+Fast allSat, Looking for solution 1293+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s55)+Fast allSat, Looking for solution 1294+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s56)+Fast allSat, Looking for solution 1295+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s57)+Fast allSat, Looking for solution 1296+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s58)+[GOOD] (assert s59)+Fast allSat, Looking for solution 1296+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1297+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1298+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 1299+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 1300+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 1301+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 1302+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 1303+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1304+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1305+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1306+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 1307+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1308+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s72)+[GOOD] (assert s73)+Fast allSat, Looking for solution 1308+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 1309+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 1310+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1311+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1312+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1313+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 1314+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1315+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 1316+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 1317+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 1318+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1319+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1320+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s58)+[GOOD] (assert s74)+Fast allSat, Looking for solution 1320+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 1321+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1322+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1323+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1324+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 1325+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 1326+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1327+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 1328+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 1329+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 1330+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1331+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1332+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s60)+[GOOD] (assert s75)+Fast allSat, Looking for solution 1332+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 1333+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 1334+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1335+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1336+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1337+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 1338+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1339+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 1340+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 1341+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 1342+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1343+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1344+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s61)+[GOOD] (assert s76)+Fast allSat, Looking for solution 1344+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 1345+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 1346+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1347+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1348+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1349+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 1350+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1351+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 1352+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 1353+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1354+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1355+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1356+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s62)+[GOOD] (assert s77)+Fast allSat, Looking for solution 1356+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 1357+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 1358+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1359+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1360+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1361+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 1362+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1363+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 1364+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1365+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1366+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1367+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1368+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s63)+[GOOD] (assert s78)+Fast allSat, Looking for solution 1368+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 1369+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 1370+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1371+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1372+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1373+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 1374+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1375+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 1376+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1377+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1378+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1379+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1380+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s71)+[GOOD] (assert s89)+Fast allSat, Looking for solution 1380+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1381+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1382+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1383+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 1384+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 1385+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 1386+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 1387+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 1388+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1389+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1390+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1391+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1392+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s88)+[GOOD] (assert s85)+Fast allSat, Looking for solution 1392+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1393+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1394+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1395+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 1396+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 1397+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 1398+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 1399+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 1400+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1401+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1402+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1403+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1404+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s71)+[GOOD] (assert s84)+Fast allSat, Looking for solution 1404+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 1405+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 1406+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1407+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1408+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 1409+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 1410+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 1411+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1412+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1413+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1414+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1415+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1416+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s70)+[GOOD] (assert s83)+Fast allSat, Looking for solution 1416+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1417+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 1418+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1419+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 1420+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 1421+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 1422+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 1423+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 1424+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1425+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1426+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1427+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1428+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s69)+[GOOD] (assert s82)+Fast allSat, Looking for solution 1428+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1429+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 1430+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1431+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 1432+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 1433+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 1434+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 1435+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 1436+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1437+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1438+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1439+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1440+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s68)+[GOOD] (assert s81)+Fast allSat, Looking for solution 1440+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 1441+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1442+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1443+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1444+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 1445+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 1446+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 1447+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 1448+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1449+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1450+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1451+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1452+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s67)+[GOOD] (assert s95)+[GOOD] (assert s80)+Fast allSat, Looking for solution 1452+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1453+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1454+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1455+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 1456+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1457+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 1458+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 1459+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 1460+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1461+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1462+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1463+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 8))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1464+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s50)+[GOOD] (define-fun s96 () Bool (= s0 s26))+[GOOD] (assert s96)+Fast allSat, Looking for solution 1464+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s49)+Fast allSat, Looking for solution 1465+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s48)+Fast allSat, Looking for solution 1466+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s47)+Fast allSat, Looking for solution 1467+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s46)+Fast allSat, Looking for solution 1468+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s45)+Fast allSat, Looking for solution 1469+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s43)+Fast allSat, Looking for solution 1470+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s52)+Fast allSat, Looking for solution 1471+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s53)+Fast allSat, Looking for solution 1472+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s54)+Fast allSat, Looking for solution 1473+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s55)+Fast allSat, Looking for solution 1474+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s56)+Fast allSat, Looking for solution 1475+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s57)+Fast allSat, Looking for solution 1476+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s86)+Fast allSat, Looking for solution 1477+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s71)+[GOOD] (assert s89)+Fast allSat, Looking for solution 1477+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1478+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1479+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1480+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 1481+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 1482+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 1483+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 1484+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 1485+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1486+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1487+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1488+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1489+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s65)+[GOOD] (assert s59)+Fast allSat, Looking for solution 1489+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 1490+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 1491+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1492+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1493+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1494+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 1495+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 1496+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1497+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1498+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1499+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 1500+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1501+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s65)+[GOOD] (assert s73)+Fast allSat, Looking for solution 1501+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1502+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 1503+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 1504+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1505+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1506+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 1507+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1508+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 1509+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 1510+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1511+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1512+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1513+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s65)+[GOOD] (assert s74)+Fast allSat, Looking for solution 1513+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 1514+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 1515+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1516+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1517+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1518+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 1519+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1520+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 1521+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 1522+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1523+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1524+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1525+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s65)+[GOOD] (assert s75)+Fast allSat, Looking for solution 1525+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 1526+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 1527+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1528+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1529+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1530+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 1531+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1532+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 1533+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 1534+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1535+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1536+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1537+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s65)+[GOOD] (assert s76)+Fast allSat, Looking for solution 1537+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 1538+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1539+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1540+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1541+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 1542+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 1543+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1544+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 1545+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1546+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1547+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1548+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1549+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s65)+[GOOD] (assert s77)+Fast allSat, Looking for solution 1549+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 1550+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 1551+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1552+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1553+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1554+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 1555+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1556+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 1557+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1558+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1559+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1560+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1561+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s88)+[GOOD] (assert s85)+Fast allSat, Looking for solution 1561+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1562+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1563+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1564+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 1565+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 1566+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 1567+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 1568+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 1569+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1570+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1571+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1572+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1573+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s71)+[GOOD] (assert s84)+Fast allSat, Looking for solution 1573+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 1574+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 1575+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 1576+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 1577+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1578+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 1579+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1580+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1581+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1582+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1583+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1584+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1585+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s70)+[GOOD] (assert s83)+Fast allSat, Looking for solution 1585+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 1586+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1587+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1588+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 1589+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 1590+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 1591+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 1592+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 1593+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1594+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1595+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1596+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1597+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s69)+[GOOD] (assert s82)+Fast allSat, Looking for solution 1597+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1598+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 1599+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 1600+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1601+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 1602+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 1603+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 1604+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 1605+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1606+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1607+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1608+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1609+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s68)+[GOOD] (assert s81)+Fast allSat, Looking for solution 1609+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1610+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1611+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 1612+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1613+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 1614+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 1615+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 1616+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 1617+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1618+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1619+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1620+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1621+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s67)+[GOOD] (assert s80)+Fast allSat, Looking for solution 1621+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1622+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1623+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1624+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 1625+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1626+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 1627+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 1628+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 1629+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1630+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1631+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1632+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1633+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s66)+[GOOD] (assert s96)+[GOOD] (assert s79)+Fast allSat, Looking for solution 1633+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 1634+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1635+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1636+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1637+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 1638+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1639+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 1640+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 1641+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1642+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1643+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1644+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 7))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1645+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s51)+[GOOD] (define-fun s97 () Bool (= s0 s24))+[GOOD] (assert s97)+Fast allSat, Looking for solution 1645+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s50)+Fast allSat, Looking for solution 1646+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s49)+Fast allSat, Looking for solution 1647+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s53)+Fast allSat, Looking for solution 1648+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s48)+Fast allSat, Looking for solution 1649+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s54)+Fast allSat, Looking for solution 1650+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s47)+Fast allSat, Looking for solution 1651+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s55)+Fast allSat, Looking for solution 1652+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s46)+Fast allSat, Looking for solution 1653+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s56)+Fast allSat, Looking for solution 1654+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s45)+Fast allSat, Looking for solution 1655+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s57)+Fast allSat, Looking for solution 1656+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s43)+Fast allSat, Looking for solution 1657+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s86)+Fast allSat, Looking for solution 1658+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s71)+[GOOD] (assert s89)+Fast allSat, Looking for solution 1658+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1659+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1660+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1661+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 1662+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 1663+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 1664+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 1665+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 1666+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1667+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1668+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1669+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1670+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s88)+[GOOD] (assert s85)+Fast allSat, Looking for solution 1670+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 1671+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 1672+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 1673+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 1674+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 1675+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1676+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1677+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1678+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1679+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1680+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1681+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1682+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s64)+[GOOD] (assert s59)+Fast allSat, Looking for solution 1682+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 1683+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 1684+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 1685+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 1686+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1687+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1688+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1689+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1690+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1691+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1692+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 1693+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1694+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s71)+[GOOD] (assert s84)+Fast allSat, Looking for solution 1694+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1695+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1696+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1697+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 1698+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 1699+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 1700+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 1701+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 1702+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1703+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1704+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1705+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1706+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s64)+[GOOD] (assert s73)+Fast allSat, Looking for solution 1706+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1707+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1708+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1709+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 1710+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 1711+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 1712+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 1713+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1714+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 1715+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1716+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1717+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1718+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s70)+[GOOD] (assert s83)+Fast allSat, Looking for solution 1718+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 1719+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1720+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1721+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 1722+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 1723+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 1724+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 1725+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 1726+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1727+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1728+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1729+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1730+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s64)+[GOOD] (assert s74)+Fast allSat, Looking for solution 1730+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 1731+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1732+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1733+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1734+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 1735+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 1736+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 1737+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1738+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 1739+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1740+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1741+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1742+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s69)+[GOOD] (assert s82)+Fast allSat, Looking for solution 1742+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1743+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 1744+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1745+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 1746+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 1747+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 1748+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 1749+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 1750+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1751+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1752+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1753+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1754+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s64)+[GOOD] (assert s75)+Fast allSat, Looking for solution 1754+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 1755+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 1756+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 1757+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1758+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1759+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1760+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 1761+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1762+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 1763+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1764+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1765+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1766+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s68)+[GOOD] (assert s81)+Fast allSat, Looking for solution 1766+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 1767+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1768+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1769+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1770+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 1771+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 1772+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 1773+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 1774+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1775+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1776+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1777+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1778+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s64)+[GOOD] (assert s76)+Fast allSat, Looking for solution 1778+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 1779+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 1780+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 1781+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1782+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1783+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1784+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 1785+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1786+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1787+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1788+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1789+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1790+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s67)+[GOOD] (assert s80)+Fast allSat, Looking for solution 1790+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 1791+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1792+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1793+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1794+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1795+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 1796+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 1797+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 1798+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1799+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1800+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1801+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1802+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s66)+[GOOD] (assert s79)+Fast allSat, Looking for solution 1802+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 1803+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1804+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1805+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1806+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 1807+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1808+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 1809+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 1810+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1811+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1812+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1813+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1814+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s65)+[GOOD] (assert s97)+[GOOD] (assert s78)+Fast allSat, Looking for solution 1814+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 1815+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 1816+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1817+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1818+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1819+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 1820+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1821+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 1822+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1823+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1824+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1825+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1826+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s52)+[GOOD] (define-fun s98 () Bool (= s0 s22))+[GOOD] (assert s98)+Fast allSat, Looking for solution 1826+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s51)+Fast allSat, Looking for solution 1827+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s50)+Fast allSat, Looking for solution 1828+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s49)+Fast allSat, Looking for solution 1829+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s48)+Fast allSat, Looking for solution 1830+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s47)+Fast allSat, Looking for solution 1831+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s46)+Fast allSat, Looking for solution 1832+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s45)+Fast allSat, Looking for solution 1833+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s43)+Fast allSat, Looking for solution 1834+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s86)+Fast allSat, Looking for solution 1835+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s54)+Fast allSat, Looking for solution 1836+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s55)+Fast allSat, Looking for solution 1837+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s56)+Fast allSat, Looking for solution 1838+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s57)+Fast allSat, Looking for solution 1839+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s58)+[GOOD] (assert s59)+Fast allSat, Looking for solution 1839+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1840+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1841+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 1842+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 1843+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 1844+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 1845+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 1846+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1847+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1848+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1849+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 1850+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1851+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s72)+[GOOD] (assert s73)+Fast allSat, Looking for solution 1851+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 1852+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 1853+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 1854+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 1855+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 1856+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1857+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1858+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1859+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 1860+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1861+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1862+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1863+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s58)+[GOOD] (assert s74)+Fast allSat, Looking for solution 1863+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 1864+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 1865+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 1866+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 1867+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 1868+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1869+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1870+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1871+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 1872+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1873+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1874+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1875+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s60)+[GOOD] (assert s75)+Fast allSat, Looking for solution 1875+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 1876+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1877+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1878+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1879+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 1880+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 1881+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 1882+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 1883+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 1884+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1885+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1886+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1887+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s71)+[GOOD] (assert s89)+Fast allSat, Looking for solution 1887+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1888+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1889+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1890+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 1891+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 1892+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 1893+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 1894+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 1895+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1896+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1897+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1898+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1899+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s88)+[GOOD] (assert s85)+Fast allSat, Looking for solution 1899+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1900+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1901+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1902+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 1903+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 1904+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 1905+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 1906+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 1907+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1908+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1909+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1910+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1911+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s71)+[GOOD] (assert s84)+Fast allSat, Looking for solution 1911+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 1912+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 1913+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 1914+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 1915+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 1916+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1917+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1918+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1919+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1920+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1921+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1922+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1923+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s71)+[GOOD] (assert s83)+Fast allSat, Looking for solution 1923+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1924+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1925+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1926+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 1927+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 1928+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 1929+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 1930+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 1931+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1932+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1933+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1934+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1935+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s71)+[GOOD] (assert s82)+Fast allSat, Looking for solution 1935+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1936+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1937+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1938+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 1939+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 1940+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 1941+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 1942+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 1943+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1944+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1945+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1946+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1947+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s71)+[GOOD] (assert s81)+Fast allSat, Looking for solution 1947+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1948+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1949+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1950+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1951+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 1952+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 1953+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 1954+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 1955+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1956+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1957+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1958+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1959+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s71)+[GOOD] (assert s80)+Fast allSat, Looking for solution 1959+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 1960+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1961+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1962+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1963+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1964+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 1965+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 1966+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 1967+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1968+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1969+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1970+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1971+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s71)+[GOOD] (assert s79)+Fast allSat, Looking for solution 1971+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 1972+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 1973+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1974+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1975+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1976+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1977+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 1978+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 1979+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1980+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1981+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1982+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1983+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s71)+[GOOD] (assert s78)+Fast allSat, Looking for solution 1983+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 1984+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 1985+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 1986+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1987+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 1988+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 1989+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 1990+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 1991+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 1992+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 1993+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 1994+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 1995+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s64)+[GOOD] (assert s98)+[GOOD] (assert s77)+Fast allSat, Looking for solution 1995+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 1996+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 1997+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 1998+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 1999+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 2000+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 2001+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 2002+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 2003+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 2004+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 2005+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 2006+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 2007+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s53)+[GOOD] (define-fun s99 () Bool (= s0 s20))+[GOOD] (assert s99)+Fast allSat, Looking for solution 2007+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s52)+Fast allSat, Looking for solution 2008+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s51)+Fast allSat, Looking for solution 2009+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s50)+Fast allSat, Looking for solution 2010+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s49)+Fast allSat, Looking for solution 2011+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s48)+Fast allSat, Looking for solution 2012+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s47)+Fast allSat, Looking for solution 2013+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s46)+Fast allSat, Looking for solution 2014+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s45)+Fast allSat, Looking for solution 2015+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s43)+Fast allSat, Looking for solution 2016+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s86)+Fast allSat, Looking for solution 2017+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s55)+Fast allSat, Looking for solution 2018+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s56)+Fast allSat, Looking for solution 2019+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s57)+Fast allSat, Looking for solution 2020+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s58)+[GOOD] (assert s59)+Fast allSat, Looking for solution 2020+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 2021+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 2022+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 2023+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 2024+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 2025+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 2026+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 2027+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 2028+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 2029+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 2030+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 2031+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 2032+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s72)+[GOOD] (assert s73)+Fast allSat, Looking for solution 2032+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 2033+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 2034+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 2035+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 2036+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 2037+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 2038+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 2039+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 2040+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 2041+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 2042+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 2043+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 2044+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s58)+[GOOD] (assert s74)+Fast allSat, Looking for solution 2044+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 2045+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 2046+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 2047+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 2048+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 2049+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 2050+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 2051+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 2052+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 2053+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 2054+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 2055+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 2056+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s71)+[GOOD] (assert s89)+Fast allSat, Looking for solution 2056+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 2057+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 2058+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 2059+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 2060+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 2061+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 2062+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 2063+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 2064+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 2065+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 2066+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 2067+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 2068+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s88)+[GOOD] (assert s85)+Fast allSat, Looking for solution 2068+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 2069+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 2070+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 2071+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 2072+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 2073+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 2074+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 2075+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 2076+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 2077+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 2078+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 2079+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 2080+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s71)+[GOOD] (assert s84)+Fast allSat, Looking for solution 2080+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 2081+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 2082+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 2083+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 2084+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 2085+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 2086+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 2087+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 2088+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 2089+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 2090+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 2091+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 2092+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s71)+[GOOD] (assert s83)+Fast allSat, Looking for solution 2092+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 2093+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 2094+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 2095+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 2096+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 2097+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 2098+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 2099+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 2100+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 2101+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 2102+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 2103+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 2104+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s71)+[GOOD] (assert s82)+Fast allSat, Looking for solution 2104+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 2105+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 2106+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 2107+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 2108+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 2109+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 2110+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 2111+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 2112+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 2113+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 2114+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 2115+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 2116+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s71)+[GOOD] (assert s81)+Fast allSat, Looking for solution 2116+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 2117+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 2118+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 2119+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 2120+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 2121+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 2122+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 2123+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 2124+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 2125+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 2126+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 2127+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 2128+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s71)+[GOOD] (assert s80)+Fast allSat, Looking for solution 2128+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 2129+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 2130+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 2131+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 2132+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 2133+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 2134+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 2135+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 2136+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 2137+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 2138+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 2139+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 2140+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s71)+[GOOD] (assert s79)+Fast allSat, Looking for solution 2140+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 2141+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 2142+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 2143+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 2144+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 2145+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 2146+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 2147+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 2148+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 2149+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 2150+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 2151+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 2152+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s71)+[GOOD] (assert s78)+Fast allSat, Looking for solution 2152+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 2153+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 2154+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 2155+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 2156+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 2157+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 2158+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 2159+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 2160+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 2161+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 2162+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 2163+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 2164+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s71)+[GOOD] (assert s77)+Fast allSat, Looking for solution 2164+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 2165+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 2166+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 2167+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 2168+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 2169+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 2170+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 2171+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 2172+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 2173+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 2174+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 2175+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 2176+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s63)+[GOOD] (assert s99)+[GOOD] (assert s76)+Fast allSat, Looking for solution 2176+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 2177+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 2178+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 2179+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 2180+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 2181+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 2182+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 2183+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 2184+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 2185+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 2186+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 2187+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 2188+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s54)+[GOOD] (define-fun s100 () Bool (= s0 s18))+[GOOD] (assert s100)+Fast allSat, Looking for solution 2188+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s53)+Fast allSat, Looking for solution 2189+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s52)+Fast allSat, Looking for solution 2190+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s51)+Fast allSat, Looking for solution 2191+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s50)+Fast allSat, Looking for solution 2192+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s49)+Fast allSat, Looking for solution 2193+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s48)+Fast allSat, Looking for solution 2194+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s47)+Fast allSat, Looking for solution 2195+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s46)+Fast allSat, Looking for solution 2196+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s45)+Fast allSat, Looking for solution 2197+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s43)+Fast allSat, Looking for solution 2198+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s86)+Fast allSat, Looking for solution 2199+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s56)+Fast allSat, Looking for solution 2200+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s57)+Fast allSat, Looking for solution 2201+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s58)+[GOOD] (assert s59)+Fast allSat, Looking for solution 2201+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 2202+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 2203+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 2204+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 2205+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 2206+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 2207+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 2208+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 2209+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 2210+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 2211+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 2212+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 2213+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s72)+[GOOD] (assert s73)+Fast allSat, Looking for solution 2213+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 2214+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 2215+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 2216+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 2217+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 2218+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 2219+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 2220+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 2221+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 2222+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 2223+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 2224+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 2225+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s71)+[GOOD] (assert s89)+Fast allSat, Looking for solution 2225+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 2226+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 2227+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 2228+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 2229+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 2230+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 2231+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 2232+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 2233+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 2234+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 2235+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 2236+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 2237+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s88)+[GOOD] (assert s85)+Fast allSat, Looking for solution 2237+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 2238+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 2239+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 2240+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 2241+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 2242+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 2243+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 2244+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 2245+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 2246+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 2247+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 2248+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 2249+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s71)+[GOOD] (assert s84)+Fast allSat, Looking for solution 2249+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 2250+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 2251+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 2252+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 2253+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 2254+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 2255+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 2256+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 2257+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 2258+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 2259+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 2260+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 2261+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s70)+[GOOD] (assert s83)+Fast allSat, Looking for solution 2261+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 2262+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 2263+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 2264+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 2265+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 2266+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 2267+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 2268+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 2269+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 2270+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 2271+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 2272+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 2273+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s69)+[GOOD] (assert s82)+Fast allSat, Looking for solution 2273+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 2274+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 2275+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 2276+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 2277+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 2278+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 2279+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 2280+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 2281+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 2282+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 2283+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 2284+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 2285+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s68)+[GOOD] (assert s81)+Fast allSat, Looking for solution 2285+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 2286+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 2287+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 2288+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 2289+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 2290+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 2291+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 2292+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 2293+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 2294+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 2295+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 2296+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 2297+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s68)+[GOOD] (assert s80)+Fast allSat, Looking for solution 2297+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 2298+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 2299+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 2300+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 2301+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 2302+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 2303+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 2304+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 2305+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 2306+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 2307+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 2308+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 2309+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s68)+[GOOD] (assert s79)+Fast allSat, Looking for solution 2309+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 2310+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 2311+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 2312+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 2313+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 2314+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 2315+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 2316+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 2317+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 2318+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 2319+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 2320+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 2321+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s68)+[GOOD] (assert s78)+Fast allSat, Looking for solution 2321+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 2322+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 2323+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 2324+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 2325+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 2326+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 2327+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 2328+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 2329+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 2330+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 2331+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 2332+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 2333+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s68)+[GOOD] (assert s77)+Fast allSat, Looking for solution 2333+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 2334+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 2335+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 2336+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 2337+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 2338+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 2339+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 2340+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 2341+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 2342+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 2343+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 2344+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 2345+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s68)+[GOOD] (assert s76)+Fast allSat, Looking for solution 2345+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 2346+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 2347+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 2348+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 2349+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 2350+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 2351+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 2352+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 2353+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 2354+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 2355+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 2356+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 2357+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s62)+[GOOD] (assert s100)+[GOOD] (assert s75)+Fast allSat, Looking for solution 2357+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 2358+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 2359+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 2360+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 2361+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 2362+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 2363+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 2364+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 2365+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 2366+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 2367+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 2368+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 2369+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s55)+[GOOD] (define-fun s101 () Bool (= s0 s16))+[GOOD] (assert s101)+Fast allSat, Looking for solution 2369+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s57)+Fast allSat, Looking for solution 2370+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s54)+Fast allSat, Looking for solution 2371+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s53)+Fast allSat, Looking for solution 2372+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s52)+Fast allSat, Looking for solution 2373+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s51)+Fast allSat, Looking for solution 2374+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s50)+Fast allSat, Looking for solution 2375+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s49)+Fast allSat, Looking for solution 2376+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s48)+Fast allSat, Looking for solution 2377+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s47)+Fast allSat, Looking for solution 2378+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s46)+Fast allSat, Looking for solution 2379+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s45)+Fast allSat, Looking for solution 2380+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s43)+Fast allSat, Looking for solution 2381+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s86)+Fast allSat, Looking for solution 2382+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s71)+[GOOD] (assert s89)+Fast allSat, Looking for solution 2382+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 2383+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 2384+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 2385+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 2386+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 2387+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 2388+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 2389+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 2390+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 2391+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 2392+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 2393+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 2394+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s88)+[GOOD] (assert s85)+Fast allSat, Looking for solution 2394+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 2395+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 2396+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 2397+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 2398+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 2399+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 2400+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 2401+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 2402+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 2403+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 2404+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 2405+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 2406+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s71)+[GOOD] (assert s84)+Fast allSat, Looking for solution 2406+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 2407+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 2408+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 2409+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 2410+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 2411+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 2412+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 2413+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 2414+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 2415+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 2416+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 2417+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 2418+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s70)+[GOOD] (assert s83)+Fast allSat, Looking for solution 2418+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 2419+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 2420+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 2421+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 2422+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 2423+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 2424+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 2425+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 2426+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 2427+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 2428+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 2429+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 2430+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s69)+[GOOD] (assert s82)+Fast allSat, Looking for solution 2430+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 2431+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 2432+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 2433+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 2434+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 2435+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 2436+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 2437+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 2438+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 2439+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 2440+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 2441+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 2442+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s68)+[GOOD] (assert s81)+Fast allSat, Looking for solution 2442+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 2443+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 2444+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 2445+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 2446+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 2447+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 2448+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 2449+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 2450+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 2451+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 2452+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 2453+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 2454+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s67)+[GOOD] (assert s80)+Fast allSat, Looking for solution 2454+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 2455+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 2456+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 2457+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 2458+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 2459+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 2460+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 2461+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 2462+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 2463+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 2464+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 2465+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 2466+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s67)+[GOOD] (assert s79)+Fast allSat, Looking for solution 2466+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 2467+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 2468+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 2469+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 2470+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 2471+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 2472+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 2473+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 2474+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 2475+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 2476+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 2477+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 2478+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s67)+[GOOD] (assert s78)+Fast allSat, Looking for solution 2478+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 2479+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 2480+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 2481+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 2482+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 2483+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 2484+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 2485+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 2486+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 2487+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 2488+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 2489+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 2490+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s67)+[GOOD] (assert s77)+Fast allSat, Looking for solution 2490+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 2491+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 2492+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 2493+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 2494+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 2495+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 2496+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 2497+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 2498+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 2499+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 2500+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 2501+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 2502+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s67)+[GOOD] (assert s76)+Fast allSat, Looking for solution 2502+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 2503+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 2504+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 2505+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 2506+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 2507+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 2508+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 2509+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 2510+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 2511+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 2512+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 2513+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 2514+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s67)+[GOOD] (assert s75)+Fast allSat, Looking for solution 2514+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 2515+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 2516+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 2517+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 2518+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 2519+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 2520+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 2521+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 2522+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 2523+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 2524+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 2525+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 2526+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s67)+[GOOD] (assert s59)+Fast allSat, Looking for solution 2526+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 2527+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 2528+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 2529+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 2530+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 2531+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 2532+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 2533+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 2534+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 2535+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 2536+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 2537+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 2538+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s61)+[GOOD] (assert s101)+[GOOD] (assert s74)+Fast allSat, Looking for solution 2538+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 2539+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 2540+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 2541+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 2542+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 2543+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 2544+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 2545+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 2546+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 2547+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71)+Fast allSat, Looking for solution 2548+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 2549+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[GOOD] (push 1)+[GOOD] (assert s72)+Fast allSat, Looking for solution 2550+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s56)+[GOOD] (define-fun s102 () Bool (= s0 s3))+[GOOD] (assert s102)+Fast allSat, Looking for solution 2550+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s55)+Fast allSat, Looking for solution 2551+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s54)+Fast allSat, Looking for solution 2552+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s53)+Fast allSat, Looking for solution 2553+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s52)+Fast allSat, Looking for solution 2554+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s51)+Fast allSat, Looking for solution 2555+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s50)+Fast allSat, Looking for solution 2556+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s49)+Fast allSat, Looking for solution 2557+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s48)+Fast allSat, Looking for solution 2558+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s47)+Fast allSat, Looking for solution 2559+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s46)+Fast allSat, Looking for solution 2560+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s45)+Fast allSat, Looking for solution 2561+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s43)+Fast allSat, Looking for solution 2562+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s86)+Fast allSat, Looking for solution 2563+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s71)+[GOOD] (assert s89)+Fast allSat, Looking for solution 2563+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 2564+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 2565+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 2566+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 2567+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 2568+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 2569+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 2570+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 2571+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 2572+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 2573+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 2574+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 15))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 2575+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s88)+[GOOD] (assert s85)+Fast allSat, Looking for solution 2575+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 2576+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 2577+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 2578+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 2579+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 2580+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 2581+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 2582+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 2583+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 2584+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 2585+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 2586+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 14))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 2587+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s71)+[GOOD] (assert s84)+Fast allSat, Looking for solution 2587+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 2588+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 2589+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 2590+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 2591+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 2592+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 2593+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 2594+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 2595+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 2596+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 2597+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 2598+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 13))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 2599+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s71)+[GOOD] (assert s83)+Fast allSat, Looking for solution 2599+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 2600+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 2601+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 2602+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 2603+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 2604+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 2605+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 2606+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 2607+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 2608+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 2609+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 2610+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 12))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 2611+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s71)+[GOOD] (assert s82)+Fast allSat, Looking for solution 2611+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 2612+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 2613+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 2614+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 2615+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 2616+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 2617+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 2618+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 2619+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 2620+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 2621+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 2622+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 11))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 2623+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s71)+[GOOD] (assert s81)+Fast allSat, Looking for solution 2623+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 2624+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 2625+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 2626+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 2627+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 2628+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 2629+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 2630+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 2631+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 2632+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 2633+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 2634+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 10))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 2635+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s71)+[GOOD] (assert s80)+Fast allSat, Looking for solution 2635+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 2636+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 2637+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 2638+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 2639+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 2640+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 2641+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 2642+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 2643+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 2644+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 2645+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 2646+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 9))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 2647+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s71)+[GOOD] (assert s79)+Fast allSat, Looking for solution 2647+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 2648+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 2649+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 2650+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 2651+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 2652+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 2653+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 2654+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 2655+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 2656+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 2657+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 2658+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 8))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 2659+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s71)+[GOOD] (assert s78)+Fast allSat, Looking for solution 2659+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 2660+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 2661+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 2662+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 2663+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 2664+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 2665+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 2666+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 2667+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 2668+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 2669+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 2670+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 7))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 2671+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s71)+[GOOD] (assert s77)+Fast allSat, Looking for solution 2671+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 2672+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 2673+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 2674+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 2675+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 2676+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 2677+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 2678+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 2679+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 2680+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 2681+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 2682+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 6))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 2683+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s71)+[GOOD] (assert s76)+Fast allSat, Looking for solution 2683+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 2684+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 2685+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 2686+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 2687+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 2688+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 2689+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 2690+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 2691+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 2692+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 2693+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 2694+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 5))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 2695+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s71)+[GOOD] (assert s75)+Fast allSat, Looking for solution 2695+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 2696+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 2697+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 2698+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 2699+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 2700+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 2701+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 2702+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 2703+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 2704+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 2705+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 3))+[GOOD] (push 1)+[GOOD] (assert s60)+Fast allSat, Looking for solution 2706+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 4))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 2707+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s71)+[GOOD] (assert s74)+Fast allSat, Looking for solution 2707+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 2708+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 2709+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 2710+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 2711+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 2712+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 2713+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 2714+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 2715+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 2716+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 2717+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 15))+[GOOD] (push 1)+[GOOD] (assert s88)+Fast allSat, Looking for solution 2718+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 3))+[SEND] (get-value (s2))+[RECV] ((s2 2))+[GOOD] (push 1)+[GOOD] (assert s58)+Fast allSat, Looking for solution 2719+[SEND] (check-sat)+[RECV] unsat+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (pop 1)+[GOOD] (push 1)+[GOOD] (assert s60)+[GOOD] (assert s102)+[GOOD] (assert s73)+Fast allSat, Looking for solution 2719+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 4))+[GOOD] (push 1)+[GOOD] (assert s61)+Fast allSat, Looking for solution 2720+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 5))+[GOOD] (push 1)+[GOOD] (assert s62)+Fast allSat, Looking for solution 2721+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 6))+[GOOD] (push 1)+[GOOD] (assert s63)+Fast allSat, Looking for solution 2722+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 7))+[GOOD] (push 1)+[GOOD] (assert s64)+Fast allSat, Looking for solution 2723+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 8))+[GOOD] (push 1)+[GOOD] (assert s65)+Fast allSat, Looking for solution 2724+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 9))+[GOOD] (push 1)+[GOOD] (assert s66)+Fast allSat, Looking for solution 2725+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 10))+[GOOD] (push 1)+[GOOD] (assert s67)+Fast allSat, Looking for solution 2726+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 11))+[GOOD] (push 1)+[GOOD] (assert s68)+Fast allSat, Looking for solution 2727+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 12))+[GOOD] (push 1)+[GOOD] (assert s69)+Fast allSat, Looking for solution 2728+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 13))+[GOOD] (push 1)+[GOOD] (assert s70)+Fast allSat, Looking for solution 2729+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s2))+[RECV] ((s2 14))+[GOOD] (push 1)+[GOOD] (assert s71) Fast allSat, Looking for solution 2730 [SEND] (check-sat) [RECV] sat
SBVTestSuite/GoldFiles/allSat8.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/arrayGetValTest1.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/array_caching_01.gold view
@@ -9,13 +9,12 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants --- [GOOD] (define-fun s1 () Int 0)-[GOOD] (define-fun s4 () Int 2)-[GOOD] (define-fun s6 () Int 1)+[GOOD] (define-fun s3 () (Array Int Int) (store ((as const (Array Int Int)) 0) 0 2))+[GOOD] (define-fun s4 () Int 1) [GOOD] ; --- top level inputs --- [GOOD] (declare-fun s0 () Int) ; tracks user variable "x" [GOOD] ; --- constant tables ---@@ -24,20 +23,17 @@ [GOOD] ; --- user defined functions --- [GOOD] ; --- assignments --- [GOOD] (define-fun s2 () Bool (= s0 s1))-[GOOD] (define-fun s3 () (Array Int Int) (lambda ((l1_s0 Int))-         0))-[GOOD] (define-fun s5 () (Array Int Int) (store s3 s1 s4))-[GOOD] (define-fun s7 () Int (+ s0 s6))-[GOOD] (define-fun s8 () Int (select s5 s7))-[GOOD] (define-fun s9 () (Array Int Int) (store s5 s1 s8))+[GOOD] (define-fun s5 () Int (+ s0 s4))+[GOOD] (define-fun s6 () Int (select s3 s5))+[GOOD] (define-fun s7 () (Array Int Int) (store s3 s1 s6))+[GOOD] (define-fun s8 () Int (select s7 s1))+[GOOD] (define-fun s9 () (Array Int Int) (store s3 s5 s4)) [GOOD] (define-fun s10 () Int (select s9 s1))-[GOOD] (define-fun s11 () (Array Int Int) (store s5 s7 s6))-[GOOD] (define-fun s12 () Int (select s11 s1))-[GOOD] (define-fun s13 () Int (ite s2 s10 s12))-[GOOD] (define-fun s14 () Bool (= s6 s13))+[GOOD] (define-fun s11 () Int (ite s2 s8 s10))+[GOOD] (define-fun s12 () Bool (= s4 s11)) [GOOD] ; --- delayedEqualities --- [GOOD] ; --- formula ----[GOOD] (assert s14)+[GOOD] (assert s12) [SEND] (check-sat) [RECV] sat [SEND] (get-value (s0))
SBVTestSuite/GoldFiles/array_caching_02.gold view
@@ -9,13 +9,12 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants --- [GOOD] (define-fun s1 () Int 0)-[GOOD] (define-fun s4 () Int 2)-[GOOD] (define-fun s6 () Int 1)+[GOOD] (define-fun s3 () (Array Int Int) (store ((as const (Array Int Int)) 0) 0 2))+[GOOD] (define-fun s4 () Int 1) [GOOD] ; --- top level inputs --- [GOOD] (declare-fun s0 () Int) ; tracks user variable "x" [GOOD] ; --- constant tables ---@@ -24,20 +23,17 @@ [GOOD] ; --- user defined functions --- [GOOD] ; --- assignments --- [GOOD] (define-fun s2 () Bool (distinct s0 s1))-[GOOD] (define-fun s3 () (Array Int Int) (lambda ((l1_s0 Int))-         0))-[GOOD] (define-fun s5 () (Array Int Int) (store s3 s1 s4))-[GOOD] (define-fun s7 () Int (+ s0 s6))-[GOOD] (define-fun s8 () (Array Int Int) (store s5 s7 s6))-[GOOD] (define-fun s9 () Int (select s8 s1))-[GOOD] (define-fun s10 () Int (select s5 s7))-[GOOD] (define-fun s11 () (Array Int Int) (store s5 s1 s10))-[GOOD] (define-fun s12 () Int (select s11 s1))-[GOOD] (define-fun s13 () Int (ite s2 s9 s12))-[GOOD] (define-fun s14 () Bool (= s6 s13))+[GOOD] (define-fun s5 () Int (+ s0 s4))+[GOOD] (define-fun s6 () (Array Int Int) (store s3 s5 s4))+[GOOD] (define-fun s7 () Int (select s6 s1))+[GOOD] (define-fun s8 () Int (select s3 s5))+[GOOD] (define-fun s9 () (Array Int Int) (store s3 s1 s8))+[GOOD] (define-fun s10 () Int (select s9 s1))+[GOOD] (define-fun s11 () Int (ite s2 s7 s10))+[GOOD] (define-fun s12 () Bool (= s4 s11)) [GOOD] ; --- delayedEqualities --- [GOOD] ; --- formula ----[GOOD] (assert s14)+[GOOD] (assert s12) [SEND] (check-sat) [RECV] sat [SEND] (get-value (s0))
SBVTestSuite/GoldFiles/array_misc_1.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/array_misc_11.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)                                            ((mkSBVTuple2 (proj_1_SBVTuple2 T1)
SBVTestSuite/GoldFiles/array_misc_12.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)                                            ((mkSBVTuple2 (proj_1_SBVTuple2 T1)
SBVTestSuite/GoldFiles/array_misc_13.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)                                            ((mkSBVTuple2 (proj_1_SBVTuple2 T1)
SBVTestSuite/GoldFiles/array_misc_14.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/array_misc_15.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/array_misc_16.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/array_misc_17.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/array_misc_18.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/array_misc_19.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/array_misc_2.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/array_misc_20.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/array_misc_21.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/array_misc_22.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/array_misc_23.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/array_misc_24.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/array_misc_25.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/array_misc_26.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/array_misc_27.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/array_misc_28.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/array_misc_29.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/array_misc_3.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_BV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/array_misc_30.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/array_misc_31.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_BV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/array_misc_5.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; NB. User specified.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/array_misc_7.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_BV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/array_misc_9.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_BV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Left_Int16_Word16.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Left_Int16_Word32.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Left_Int16_Word64.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Left_Int16_Word8.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Left_Int32_Word16.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Left_Int32_Word32.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Left_Int32_Word64.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Left_Int32_Word8.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Left_Int64_Word16.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Left_Int64_Word32.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Left_Int64_Word64.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Left_Int64_Word8.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Left_Int8_Word16.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Left_Int8_Word32.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Left_Int8_Word64.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Left_Int8_Word8.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Left_Word16_Word16.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Left_Word16_Word32.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Left_Word16_Word64.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Left_Word16_Word8.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Left_Word32_Word16.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Left_Word32_Word32.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Left_Word32_Word64.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Left_Word32_Word8.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Left_Word64_Word16.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Left_Word64_Word32.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Left_Word64_Word64.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Left_Word64_Word8.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Left_Word8_Word16.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Left_Word8_Word32.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Left_Word8_Word64.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Left_Word8_Word8.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Right_Int16_Word16.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Right_Int16_Word32.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Right_Int16_Word64.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Right_Int16_Word8.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Right_Int32_Word16.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Right_Int32_Word32.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Right_Int32_Word64.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Right_Int32_Word8.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Right_Int64_Word16.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Right_Int64_Word32.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Right_Int64_Word64.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Right_Int64_Word8.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Right_Int8_Word16.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Right_Int8_Word32.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Right_Int8_Word64.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Right_Int8_Word8.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Right_Word16_Word16.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Right_Word16_Word32.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Right_Word16_Word64.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Right_Word16_Word8.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Right_Word32_Word16.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Right_Word32_Word32.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Right_Word32_Word64.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Right_Word32_Word8.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Right_Word64_Word16.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Right_Word64_Word32.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Right_Word64_Word64.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Right_Word64_Word8.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Right_Word8_Word16.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Right_Word8_Word32.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Right_Word8_Word64.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/barrelRotate_Right_Word8_Word8.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/charConstr00.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has chars, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/charConstr01.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/charConstr02.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] (declare-datatypes ((SBVTuple3 3)) ((par (T1 T2 T3)                                            ((mkSBVTuple3 (proj_1_SBVTuple3 T1)
SBVTestSuite/GoldFiles/charConstr03.gold view
@@ -8,19 +8,21 @@ [GOOD] (set-option :pp.max_depth      4294967295) [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      )-[GOOD] (set-logic ALL) ; has either type, using catch-all.-[GOOD] ; --- uninterpreted sorts ---+[GOOD] (set-logic ALL) ; has user-defined data-types, using catch-all. [GOOD] ; --- tuples --- [GOOD] ; --- sums ----[GOOD] (declare-datatypes ((SBVEither 2)) ((par (T1 T2)-                                           ((left_SBVEither  (get_left_SBVEither  T1))-                                            (right_SBVEither (get_right_SBVEither T2))))))+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Either+[GOOD] (declare-datatype Either (par (a b) (+           (Left (getLeft_1 a))+           (Right (getRight_1 b))+       ))) [GOOD] ; --- literal constants ----[GOOD] (define-fun s1 () (SBVEither String String) ((as left_SBVEither (SBVEither String String)) (_ char #x41)))+[GOOD] (define-fun s1 () (Either String String) ((as Left (Either String String)) (_ char #x41))) [GOOD] ; --- top level inputs ----[GOOD] (declare-fun s0 () (SBVEither String String)) ; tracks user variable "x"-[GOOD] (assert (and (=> ((_ is (left_SBVEither (String) (SBVEither String String))) s0) (= 1 (str.len (get_left_SBVEither s0))))-                    (=> ((_ is (right_SBVEither (String) (SBVEither String String))) s0) (= 1 (str.len (get_right_SBVEither s0))))+[GOOD] (declare-fun s0 () (Either String String)) ; tracks user variable "x"+[GOOD] (assert (and (= 1 (str.len (getLeft_1 s0)))+                    (= 1 (str.len (getRight_1 s0)))                )) [GOOD] ; --- constant tables --- [GOOD] ; --- non-constant tables ---@@ -34,7 +36,7 @@ [SEND] (check-sat) [RECV] sat [SEND] (get-value (s0))-[RECV] ((s0 (left_SBVEither "B")))+[RECV] ((s0 (Left "B")))  MODEL: SMTModel {modelObjectives = [], modelBindings = Nothing, modelAssocs = [("x",Left 'B' :: Either Char Char)], modelUIFuns = []} DONE.*** Solver   : Z3
SBVTestSuite/GoldFiles/charConstr04.gold view
@@ -9,17 +9,19 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums ----[GOOD] (declare-datatypes ((SBVEither 2)) ((par (T1 T2)-                                           ((left_SBVEither  (get_left_SBVEither  T1))-                                            (right_SBVEither (get_right_SBVEither T2))))))+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Either+[GOOD] (declare-datatype Either (par (a b) (+           (Left (getLeft_1 a))+           (Right (getRight_1 b))+       ))) [GOOD] ; --- literal constants ----[GOOD] (define-fun s1 () (SBVEither Int String) ((as right_SBVEither (SBVEither Int String)) (_ char #x41)))+[GOOD] (define-fun s1 () (Either Int String) ((as Right (Either Int String)) (_ char #x41))) [GOOD] ; --- top level inputs ----[GOOD] (declare-fun s0 () (SBVEither Int String)) ; tracks user variable "x"-[GOOD] (assert (=> ((_ is (right_SBVEither (String) (SBVEither Int String))) s0) (= 1 (str.len (get_right_SBVEither s0)))))+[GOOD] (declare-fun s0 () (Either Int String)) ; tracks user variable "x"+[GOOD] (assert (= 1 (str.len (getRight_1 s0)))) [GOOD] ; --- constant tables --- [GOOD] ; --- non-constant tables --- [GOOD] ; --- uninterpreted constants ---@@ -32,7 +34,7 @@ [SEND] (check-sat) [RECV] sat [SEND] (get-value (s0))-[RECV] ((s0 (left_SBVEither 2)))+[RECV] ((s0 (Left 2)))  MODEL: SMTModel {modelObjectives = [], modelBindings = Nothing, modelAssocs = [("x",Left 2 :: Either Integer Char)], modelUIFuns = []} DONE.*** Solver   : Z3
SBVTestSuite/GoldFiles/charConstr05.gold view
@@ -9,17 +9,19 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums ----[GOOD] (declare-datatypes ((SBVEither 2)) ((par (T1 T2)-                                           ((left_SBVEither  (get_left_SBVEither  T1))-                                            (right_SBVEither (get_right_SBVEither T2))))))+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Either+[GOOD] (declare-datatype Either (par (a b) (+           (Left (getLeft_1 a))+           (Right (getRight_1 b))+       ))) [GOOD] ; --- literal constants ----[GOOD] (define-fun s1 () (SBVEither String Int) ((as left_SBVEither (SBVEither String Int)) (_ char #x41)))+[GOOD] (define-fun s1 () (Either String Int) ((as Left (Either String Int)) (_ char #x41))) [GOOD] ; --- top level inputs ----[GOOD] (declare-fun s0 () (SBVEither String Int)) ; tracks user variable "x"-[GOOD] (assert (=> ((_ is (left_SBVEither (String) (SBVEither String Int))) s0) (= 1 (str.len (get_left_SBVEither s0)))))+[GOOD] (declare-fun s0 () (Either String Int)) ; tracks user variable "x"+[GOOD] (assert (= 1 (str.len (getLeft_1 s0)))) [GOOD] ; --- constant tables --- [GOOD] ; --- non-constant tables --- [GOOD] ; --- uninterpreted constants ---@@ -32,8 +34,8 @@ [SEND] (check-sat) [RECV] sat [SEND] (get-value (s0))-[RECV] ((s0 (right_SBVEither 2)))+[RECV] ((s0 (Left "B"))) -MODEL: SMTModel {modelObjectives = [], modelBindings = Nothing, modelAssocs = [("x",Right 2 :: Either Char Integer)], modelUIFuns = []}+MODEL: SMTModel {modelObjectives = [], modelBindings = Nothing, modelAssocs = [("x",Left 'B' :: Either Char Integer)], modelUIFuns = []} DONE.*** Solver   : Z3 *** Exit code: ExitSuccess
SBVTestSuite/GoldFiles/charConstr06.gold view
@@ -9,18 +9,20 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums ----[GOOD] (declare-datatypes ((SBVEither 2)) ((par (T1 T2)-                                           ((left_SBVEither  (get_left_SBVEither  T1))-                                            (right_SBVEither (get_right_SBVEither T2))))))+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Either+[GOOD] (declare-datatype Either (par (a b) (+           (Left (getLeft_1 a))+           (Right (getRight_1 b))+       ))) [GOOD] ; --- literal constants ----[GOOD] (define-fun s1 () (SBVEither String (SBVEither String Int)) ((as left_SBVEither (SBVEither String (SBVEither String Int))) (_ char #x41)))+[GOOD] (define-fun s1 () (Either String (Either String Int)) ((as Left (Either String (Either String Int))) (_ char #x41))) [GOOD] ; --- top level inputs ----[GOOD] (declare-fun s0 () (SBVEither String (SBVEither String Int))) ; tracks user variable "x"-[GOOD] (assert (and (=> ((_ is (left_SBVEither (String) (SBVEither String (SBVEither String Int)))) s0) (= 1 (str.len (get_left_SBVEither s0))))-                    (=> ((_ is (right_SBVEither ((SBVEither String Int)) (SBVEither String (SBVEither String Int)))) s0) (=> ((_ is (left_SBVEither (String) (SBVEither String Int))) (get_right_SBVEither s0)) (= 1 (str.len (get_left_SBVEither (get_right_SBVEither s0))))))+[GOOD] (declare-fun s0 () (Either String (Either String Int))) ; tracks user variable "x"+[GOOD] (assert (and (= 1 (str.len (getLeft_1 s0)))+                    (= 1 (str.len (getLeft_1 (getRight_1 s0))))                )) [GOOD] ; --- constant tables --- [GOOD] ; --- non-constant tables ---@@ -34,7 +36,7 @@ [SEND] (check-sat) [RECV] sat [SEND] (get-value (s0))-[RECV] ((s0 ((as left_SBVEither (SBVEither String (SBVEither String Int))) "B")))+[RECV] ((s0 ((as Left (Either String (Either String Int))) "B")))  MODEL: SMTModel {modelObjectives = [], modelBindings = Nothing, modelAssocs = [("x",Left 'B' :: Either Char (Either Char Integer))], modelUIFuns = []} DONE.*** Solver   : Z3
SBVTestSuite/GoldFiles/charConstr07.gold view
@@ -8,34 +8,35 @@ [GOOD] (set-option :pp.max_depth      4294967295) [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      )-[GOOD] (set-logic ALL) ; has maybe type, using catch-all.-[GOOD] ; --- uninterpreted sorts ---+[GOOD] (set-logic ALL) ; has user-defined data-types, using catch-all. [GOOD] ; --- tuples --- [GOOD] ; --- sums ----[GOOD] (declare-datatypes ((SBVMaybe 1)) ((par (T)-                                           ((nothing_SBVMaybe)-                                            (just_SBVMaybe (get_just_SBVMaybe T))))))+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Maybe+[GOOD] (declare-datatype Maybe (par (a) (+           (Nothing)+           (Just (getJust_1 a))+       ))) [GOOD] ; --- literal constants ----[GOOD] (define-fun s3 () (SBVMaybe String) ((as just_SBVMaybe (SBVMaybe String)) (_ char #x41)))+[GOOD] (define-fun s2 () (Maybe String) ((as Just (Maybe String)) (_ char #x41))) [GOOD] ; --- top level inputs ----[GOOD] (declare-fun s0 () (SBVMaybe String)) ; tracks user variable "x"-[GOOD] (assert (=> ((_ is (just_SBVMaybe (String) (SBVMaybe String))) s0) (= 1 (str.len (get_just_SBVMaybe s0)))))+[GOOD] (declare-fun s0 () (Maybe String)) ; tracks user variable "x"+[GOOD] (assert (= 1 (str.len (getJust_1 s0)))) [GOOD] ; --- constant tables --- [GOOD] ; --- non-constant tables --- [GOOD] ; --- uninterpreted constants --- [GOOD] ; --- user defined functions --- [GOOD] ; --- assignments ----[GOOD] (define-fun s1 () Bool ((_ is (nothing_SBVMaybe () (SBVMaybe String))) s0))-[GOOD] (define-fun s2 () Bool (ite s1 false true))-[GOOD] (define-fun s4 () Bool (distinct s0 s3))-[GOOD] (define-fun s5 () Bool (and s2 s4))+[GOOD] (define-fun s1 () Bool ((as is-Just Bool) s0))+[GOOD] (define-fun s3 () Bool (distinct s0 s2))+[GOOD] (define-fun s4 () Bool (and s1 s3)) [GOOD] ; --- delayedEqualities --- [GOOD] ; --- formula ----[GOOD] (assert s5)+[GOOD] (assert s4) [SEND] (check-sat) [RECV] sat [SEND] (get-value (s0))-[RECV] ((s0 (just_SBVMaybe "B")))+[RECV] ((s0 (Just "B")))  MODEL: SMTModel {modelObjectives = [], modelBindings = Nothing, modelAssocs = [("x",Just 'B' :: Maybe Char)], modelUIFuns = []} DONE.*** Solver   : Z3
SBVTestSuite/GoldFiles/charConstr08.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has sets, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/charConstr09.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)                                            ((mkSBVTuple2 (proj_1_SBVTuple2 T1)
SBVTestSuite/GoldFiles/charConstr10.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)                                            ((mkSBVTuple2 (proj_1_SBVTuple2 T1)
SBVTestSuite/GoldFiles/charConstr11.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)                                            ((mkSBVTuple2 (proj_1_SBVTuple2 T1)
SBVTestSuite/GoldFiles/check1.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_BV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/check2.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_BV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/constArr2_SArray.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/constArr_SArray.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/doctest_sanity.gold view
@@ -1,3 +1,3 @@-Total:      1020; Tried: 1020; Skipped:    0; Success: 1020; Errors:    0; Failures    0-Examples:    910; Tried:  910; Skipped:    0; Success:  910; Errors:    0; Failures    0-Setup:       110; Tried:  110; Skipped:    0; Success:  110; Errors:    0; Failures    0+Total:      1238; Tried: 1238; Skipped:    0; Success: 1238; Errors:    0; Failures    0+Examples:   1086; Tried: 1086; Skipped:    0; Success: 1086; Errors:    0; Failures    0+Setup:       152; Tried:  152; Skipped:    0; Success:  152; Errors:    0; Failures    0
SBVTestSuite/GoldFiles/dsat01.gold view
@@ -6,7 +6,6 @@ [ISSUE] (set-option :smtlib2_compliant true) [ISSUE] (set-option :produce-models true) [ISSUE] (set-logic ALL) ; has unbounded values, using catch-all.-[ISSUE] ; --- uninterpreted sorts --- [ISSUE] ; --- tuples --- [ISSUE] ; --- sums --- [ISSUE] ; --- literal constants ---
SBVTestSuite/GoldFiles/exceptionLocal1.gold view
@@ -4,7 +4,6 @@ [GOOD] (set-option :global-declarations true) [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; external query, using all logics.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---@@ -49,17 +48,11 @@ [GOOD] (define-fun s31 () (_ BitVec 32) (bvmul s30 s30)) [GOOD] (define-fun s32 () (_ BitVec 32) (bvmul s31 s31)) [GOOD] (define-fun s33 () (_ BitVec 32) (bvmul s32 s32))-[FAIL] (define-fun s34 () (_ BitVec 32) (bvmul s33 s33)) CAUGHT SMT EXCEPTION-*** Data.SBV: Unexpected non-success response from Yices:+*** Data.SBV: Unexpected solver error: *** ***    Sent      : (define-fun s34 () (_ BitVec 32) (bvmul s33 s33))-***    Expected  : success-***    Received  : (error "at line 40, column 35: in bvmul: maximal polynomial degree exceeded") ***-***    Exit code : ExitSuccess+***    Stderr    : at line 40, column 35: in bvmul: maximal polynomial degree exceeded ***    Executable: /usr/local/bin/yices-smt2 ***    Options   : --incremental-***-***    Reason    : Check solver response for further information. If your code is correct,-***                please report this as an issue either with SBV or the solver itself!
SBVTestSuite/GoldFiles/exceptionLocal2.gold view
@@ -6,23 +6,16 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_LIA) ; NB. User specified.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants --- [GOOD] (define-fun s1 () Real (/ 2.0 1.0)) [GOOD] ; --- top level inputs ----[FAIL] (declare-fun s0 () Real) ; tracks user variable "x" CAUGHT SMT EXCEPTION-*** Data.SBV: Unexpected non-success response from Z3:+*** Data.SBV: Unexpected solver error: *** ***    Sent      : (declare-fun s0 () Real) ; tracks user variable "x"-***    Expected  : success-***    Received  : (error "line 8 column 23: logic does not support reals") ***-***    Exit code : ExitFailure (-15)+***    Stderr    : line 8 column 23: logic does not support reals ***    Executable: /usr/local/bin/z3 ***    Options   : -nw -in -smt2-***-***    Reason    : Check solver response for further information. If your code is correct,-***                please report this as an issue either with SBV or the solver itself!
SBVTestSuite/GoldFiles/exceptionRemote1.gold view
@@ -1,3 +1,3 @@ -FINAL: "OK, we got: Unexpected response from the solver, context: assert"+FINAL: "OK, we got: Unexpected solver error" DONE!
SBVTestSuite/GoldFiles/freshVars.gold view
@@ -8,7 +8,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---@@ -37,10 +36,15 @@ [GOOD] (declare-fun s13 () (_ FloatingPoint 11 53)) [GOOD] (declare-fun s14 () Real) [GOOD] (declare-fun s15 () Int)-[GOOD] (declare-datatypes ((BinOp 0)) (((Plus) (Minus) (Times))))-[GOOD] (define-fun BinOp_constrIndex ((x BinOp)) Int-          (ite (= x Plus) 0 (ite (= x Minus) 1 2))-       )+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] ; User defined ADT: BinOp+[GOOD] (declare-datatype BinOp (+           (Plus)+           (Minus)+           (Times)+       )) [GOOD] (declare-fun s16 () BinOp) [GOOD] (declare-fun s17 () (_ FloatingPoint 15 113)) [GOOD] (declare-fun s18 () (_ FloatingPoint 15 113))@@ -69,10 +73,10 @@ [GOOD] (define-fun s33 () (_ BitVec 64) #x0000000000000008) [GOOD] (define-fun s34 () Bool (= s11 s33)) [GOOD] (assert s34)-[GOOD] (define-fun s35 () (_ FloatingPoint  8 24) ((_ to_fp 8 24) roundNearestTiesToEven (/ 9.0 1.0)))+[GOOD] (define-fun s35 () (_ FloatingPoint  8 24) (fp #b0 #b10000010 #b00100000000000000000000)) [GOOD] (define-fun s36 () Bool (fp.eq s12 s35)) [GOOD] (assert s36)-[GOOD] (define-fun s37 () (_ FloatingPoint 11 53) ((_ to_fp 11 53) roundNearestTiesToEven (/ 10.0 1.0)))+[GOOD] (define-fun s37 () (_ FloatingPoint 11 53) (fp #b0 #b10000000010 #b0100000000000000000000000000000000000000000000000000)) [GOOD] (define-fun s38 () Bool (fp.eq s13 s37)) [GOOD] (assert s38) [GOOD] (define-fun s39 () Real (/ 11.0 1.0))@@ -81,7 +85,7 @@ [GOOD] (define-fun s41 () Int 12) [GOOD] (define-fun s42 () Bool (= s15 s41)) [GOOD] (assert s42)-[GOOD] (define-fun s43 () BinOp Plus)+[GOOD] (define-fun s43 () BinOp (as Plus BinOp)) [GOOD] (define-fun s44 () Bool (= s16 s43)) [GOOD] (assert s44) [GOOD] (define-fun s45 () Bool (fp.eq s17 s18))@@ -99,49 +103,46 @@ [GOOD] (define-fun s54 () Bool (= s52 s53)) [GOOD] (assert s54) [GOOD] (declare-fun s55 () Int)-[GOOD] (define-fun s57 () Int 96)-[GOOD] (define-fun s56 () (Array Int Int) (lambda ((l1_s0 Int))-         42))-[GOOD] (define-fun s58 () Int (select s56 s57))-[GOOD] (define-fun s59 () Bool (= s55 s58))+[GOOD] (define-fun s56 () Int 42)+[GOOD] (define-fun s57 () Bool (= s55 s56))+[GOOD] (assert s57)+[GOOD] (define-fun s58 () Int 1)+[GOOD] (define-fun s59 () Bool (= s50 s58)) [GOOD] (assert s59)-[GOOD] (define-fun s60 () Int 1)-[GOOD] (define-fun s61 () Bool (= s50 s60))-[GOOD] (assert s61)-[GOOD] (define-fun s62 () Bool (not s51))-[GOOD] (assert s62)-[GOOD] (declare-fun s63 () String)+[GOOD] (define-fun s60 () Bool (not s51))+[GOOD] (assert s60)+[GOOD] (declare-fun s61 () String) [GOOD] (set-option :pp.max_depth      4294967295) [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      )-[GOOD] (declare-fun s64 () (Seq Int))+[GOOD] (declare-fun s62 () (Seq Int)) [GOOD] (set-option :pp.max_depth      4294967295) [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      )-[GOOD] (declare-fun s65 () (Seq (Seq Int)))+[GOOD] (declare-fun s63 () (Seq (Seq Int))) [GOOD] (set-option :pp.max_depth      4294967295) [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      )-[GOOD] (declare-fun s66 () (Seq (_ BitVec 8)))+[GOOD] (declare-fun s64 () (Seq (_ BitVec 8))) [GOOD] (set-option :pp.max_depth      4294967295) [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      )-[GOOD] (declare-fun s67 () (Seq (Seq (_ BitVec 16))))-[GOOD] (define-fun s68 () String "hello")-[GOOD] (define-fun s69 () Bool (= s63 s68))+[GOOD] (declare-fun s65 () (Seq (Seq (_ BitVec 16))))+[GOOD] (define-fun s66 () String "hello")+[GOOD] (define-fun s67 () Bool (= s61 s66))+[GOOD] (assert s67)+[GOOD] (define-fun s68 () (Seq Int) (seq.++ (seq.unit 1) (seq.unit 2) (seq.unit 3) (seq.unit 4)))+[GOOD] (define-fun s69 () Bool (= s62 s68)) [GOOD] (assert s69)-[GOOD] (define-fun s70 () (Seq Int) (seq.++ (seq.unit 1) (seq.unit 2) (seq.unit 3) (seq.unit 4)))-[GOOD] (define-fun s71 () Bool (= s64 s70))+[GOOD] (define-fun s70 () (Seq (Seq Int)) (seq.++ (seq.unit (seq.++ (seq.unit 1) (seq.unit 2) (seq.unit 3))) (seq.unit (seq.++ (seq.unit 4) (seq.unit 5) (seq.unit 6) (seq.unit 7)))))+[GOOD] (define-fun s71 () Bool (= s63 s70)) [GOOD] (assert s71)-[GOOD] (define-fun s72 () (Seq (Seq Int)) (seq.++ (seq.unit (seq.++ (seq.unit 1) (seq.unit 2) (seq.unit 3))) (seq.unit (seq.++ (seq.unit 4) (seq.unit 5) (seq.unit 6) (seq.unit 7)))))-[GOOD] (define-fun s73 () Bool (= s65 s72))+[GOOD] (define-fun s72 () (Seq (_ BitVec 8)) (seq.++ (seq.unit #x01) (seq.unit #x02)))+[GOOD] (define-fun s73 () Bool (= s64 s72)) [GOOD] (assert s73)-[GOOD] (define-fun s74 () (Seq (_ BitVec 8)) (seq.++ (seq.unit #x01) (seq.unit #x02)))-[GOOD] (define-fun s75 () Bool (= s66 s74))+[GOOD] (define-fun s74 () (Seq (Seq (_ BitVec 16))) (seq.++ (seq.unit (seq.++ (seq.unit #x0001) (seq.unit #x0002) (seq.unit #x0003))) (seq.unit (as seq.empty (Seq (_ BitVec 16)))) (seq.unit (seq.++ (seq.unit #x0004) (seq.unit #x0005) (seq.unit #x0006)))))+[GOOD] (define-fun s75 () Bool (= s65 s74)) [GOOD] (assert s75)-[GOOD] (define-fun s76 () (Seq (Seq (_ BitVec 16))) (seq.++ (seq.unit (seq.++ (seq.unit #x0001) (seq.unit #x0002) (seq.unit #x0003))) (seq.unit (as seq.empty (Seq (_ BitVec 16)))) (seq.unit (seq.++ (seq.unit #x0004) (seq.unit #x0005) (seq.unit #x0006)))))-[GOOD] (define-fun s77 () Bool (= s67 s76))-[GOOD] (assert s77) [SEND] (check-sat) [RECV] sat [SEND] (get-value (s0))@@ -187,17 +188,17 @@ [RECV] ((s51 false)) [SEND] (get-value (s55)) [RECV] ((s55 42))+[SEND] (get-value (s61))+[RECV] ((s61 "hello"))+[SEND] (get-value (s62))+[RECV] ((s62 (seq.++ (seq.unit 1) (seq.unit 2) (seq.unit 3) (seq.unit 4)))) [SEND] (get-value (s63))-[RECV] ((s63 "hello"))+[RECV] ((s63 (seq.++ (seq.unit (seq.++ (seq.unit 1) (seq.unit 2) (seq.unit 3)))+               (seq.unit (seq.++ (seq.unit 4) (seq.unit 5) (seq.unit 6) (seq.unit 7)))))) [SEND] (get-value (s64))-[RECV] ((s64 (seq.++ (seq.unit 1) (seq.unit 2) (seq.unit 3) (seq.unit 4))))+[RECV] ((s64 (seq.++ (seq.unit #x01) (seq.unit #x02)))) [SEND] (get-value (s65))-[RECV] ((s65 (seq.++ (seq.unit (seq.++ (seq.unit 1) (seq.unit 2) (seq.unit 3)))-               (seq.unit (seq.++ (seq.unit 4) (seq.unit 5) (seq.unit 6) (seq.unit 7))))))-[SEND] (get-value (s66))-[RECV] ((s66 (seq.++ (seq.unit #x01) (seq.unit #x02))))-[SEND] (get-value (s67))-[RECV] ((s67 (seq.++ (seq.unit (seq.++ (seq.unit #x0001) (seq.unit #x0002) (seq.unit #x0003)))+[RECV] ((s65 (seq.++ (seq.unit (seq.++ (seq.unit #x0001) (seq.unit #x0002) (seq.unit #x0003)))                (seq.unit (as seq.empty (Seq (_ BitVec 16))))                (seq.unit (seq.++ (seq.unit #x0004) (seq.unit #x0005) (seq.unit #x0006)))))) [SEND] (get-value (s17))
SBVTestSuite/GoldFiles/genBenchMark1.gold view
@@ -2,7 +2,6 @@ (set-option :diagnostic-output-channel "stdout") (set-option :produce-models true) (set-logic QF_BV)-; --- uninterpreted sorts --- ; --- tuples --- ; --- sums --- ; --- literal constants ---
SBVTestSuite/GoldFiles/genBenchMark2.gold view
@@ -2,7 +2,6 @@ (set-option :diagnostic-output-channel "stdout") (set-option :produce-models true) (set-logic QF_BV)-; --- uninterpreted sorts --- ; --- tuples --- ; --- sums --- ; --- literal constants ---
SBVTestSuite/GoldFiles/lambda04.gold view
@@ -1,3 +1,10 @@+[MEASURE] Verifying termination measures for: sbv.map @(SBV Integer -> SBV Bool)_96a983e094 @(SBV [Integer] -> SBV [Bool])+[MEASURE] Checking: sbv.map @(SBV Integer -> SBV Bool)_96a983e094 @(SBV [Integer] -> SBV [Bool])+[MEASURE] sbv.map @(SBV Integer -> SBV Bool)_96a983e094 @(SBV [Integer] -> SBV [Bool]): barified = "|sbv.map @(SBV Integer -> SBV Bool)_96a983e094 @(SBV [Integer] -> SBV [Bool])|"+[MEASURE] sbv.map @(SBV Integer -> SBV Bool)_96a983e094 @(SBV [Integer] -> SBV [Bool]): Uninterpreted ops in DAG: [("|sbv.map @(SBV Integer -> SBV Bool)_96a983e094 @(SBV [Integer] -> SBV [Bool])|",1)]+[MEASURE] sbv.map @(SBV Integer -> SBV Bool)_96a983e094 @(SBV [Integer] -> SBV [Bool]): recursive calls found = 1+[MEASURE] sbv.map @(SBV Integer -> SBV Bool)_96a983e094 @(SBV [Integer] -> SBV [Bool]): trying length arg1+[MEASURE] replayDAG {sbv.map @(SBV Integer -> SBV Bool)_96a983e094 @(SBV [Integer] -> SBV [Bool])}: replaying 8 node(s) ** Calling: z3 -nw -in -smt2 [GOOD] ; Automatically generated by SBV. Do not edit. [GOOD] (set-option :print-success true)@@ -9,10 +16,95 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () (Seq Bool) (as seq.empty (Seq Bool)))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq Int)) ; tracks user variable "arg"+[GOOD] (declare-fun s9 () (Seq Bool)) ; tracks user variable "__internal_sbv_s9"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Int (seq.len s0))+[GOOD] (define-fun s5 () Bool (= s1 s4))+[GOOD] (define-fun s6 () (Seq Bool) (seq.unit false))+[GOOD] (define-fun s7 () Int (- s4 s2))+[GOOD] (define-fun s8 () (Seq Int) (seq.extract s0 s2 s7))+[GOOD] (define-fun s10 () (Seq Bool) (seq.++ s6 s9))+[GOOD] (define-fun s11 () (Seq Bool) (ite s5 s3 s10))+[GOOD] (define-fun s12 () Bool (>= s4 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s12))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {sbv.map @(SBV Integer -> SBV Bool)_96a983e094 @(SBV [Integer] -> SBV [Bool])}: replaying 8 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () (Seq Bool) (as seq.empty (Seq Bool)))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq Int)) ; tracks user variable "arg"+[GOOD] (declare-fun s9 () (Seq Bool)) ; tracks user variable "__internal_sbv_s9"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Int (seq.len s0))+[GOOD] (define-fun s5 () Bool (= s1 s4))+[GOOD] (define-fun s6 () (Seq Bool) (seq.unit false))+[GOOD] (define-fun s7 () Int (- s4 s2))+[GOOD] (define-fun s8 () (Seq Int) (seq.extract s0 s2 s7))+[GOOD] (define-fun s10 () (Seq Bool) (seq.++ s6 s9))+[GOOD] (define-fun s11 () (Seq Bool) (ite s5 s3 s10))+[GOOD] (define-fun s12 () Int (seq.len s8))+[GOOD] (define-fun s13 () Bool (not s5))+[GOOD] (define-fun s14 () Bool (> s4 s12))+[GOOD] (define-fun s15 () Bool (=> s13 s14))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s15))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] sbv.map @(SBV Integer -> SBV Bool)_96a983e094 @(SBV [Integer] -> SBV [Bool]): length arg1 -> OK+[MEASURE] Passed (terminating): sbv.map @(SBV Integer -> SBV Bool)_96a983e094 @(SBV [Integer] -> SBV [Bool])+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants --- [GOOD] (define-fun s2 () (Seq Int) (seq.++ (seq.unit 1) (seq.unit 2) (seq.unit 3))) [GOOD] ; --- top level inputs --- [GOOD] (declare-fun s0 () (Seq Int))@@ -25,10 +117,10 @@ [GOOD] (define-fun-rec |sbv.map @(SBV Integer -> SBV Bool)_96a983e094 @(SBV [Integer] -> SBV [Bool])| ((l1_s0 (Seq Int))) (Seq Bool)                                  (let ((l1_s2 0))                                  (let ((l1_s4 (as seq.empty (Seq Bool))))-                                 (let ((l1_s5 (seq.unit false)))                                  (let ((l1_s6 1))                                  (let ((l1_s1 (seq.len l1_s0)))                                  (let ((l1_s3 (= l1_s1 l1_s2)))+                                 (let ((l1_s5 (seq.unit false)))                                  (let ((l1_s7 (- l1_s1 l1_s6)))                                  (let ((l1_s8 (seq.extract l1_s0 l1_s6 l1_s7)))                                  (let ((l1_s9 (|sbv.map @(SBV Integer -> SBV Bool)_96a983e094 @(SBV [Integer] -> SBV [Bool])| l1_s8)))
SBVTestSuite/GoldFiles/lambda05.gold view
@@ -1,3 +1,10 @@+[MEASURE] Verifying termination measures for: sbv.map @(SBV Integer -> SBV Integer)_6e8bf9627c @(SBV [Integer] -> SBV [Integer]), sbv.map @(SBV Integer -> SBV Integer)_aaa4562f59 @(SBV [Integer] -> SBV [Integer])+[MEASURE] Checking: sbv.map @(SBV Integer -> SBV Integer)_6e8bf9627c @(SBV [Integer] -> SBV [Integer])+[MEASURE] sbv.map @(SBV Integer -> SBV Integer)_6e8bf9627c @(SBV [Integer] -> SBV [Integer]): barified = "|sbv.map @(SBV Integer -> SBV Integer)_6e8bf9627c @(SBV [Integer] -> SBV [Integer])|"+[MEASURE] sbv.map @(SBV Integer -> SBV Integer)_6e8bf9627c @(SBV [Integer] -> SBV [Integer]): Uninterpreted ops in DAG: [("|sbv.map @(SBV Integer -> SBV Integer)_6e8bf9627c @(SBV [Integer] -> SBV [Integer])|",1)]+[MEASURE] sbv.map @(SBV Integer -> SBV Integer)_6e8bf9627c @(SBV [Integer] -> SBV [Integer]): recursive calls found = 1+[MEASURE] sbv.map @(SBV Integer -> SBV Integer)_6e8bf9627c @(SBV [Integer] -> SBV [Integer]): trying length arg1+[MEASURE] replayDAG {sbv.map @(SBV Integer -> SBV Integer)_6e8bf9627c @(SBV [Integer] -> SBV [Integer])}: replaying 10 node(s) ** Calling: z3 -nw -in -smt2 [GOOD] ; Automatically generated by SBV. Do not edit. [GOOD] (set-option :print-success true)@@ -9,7 +16,194 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts ---+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () Int 2)+[GOOD] (define-fun s4 () (Seq Int) (as seq.empty (Seq Int)))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq Int)) ; tracks user variable "arg"+[GOOD] (declare-fun s12 () (Seq Int)) ; tracks user variable "__internal_sbv_s12"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s5 () Int (seq.len s0))+[GOOD] (define-fun s6 () Bool (= s1 s5))+[GOOD] (define-fun s7 () Int (seq.nth s0 s1))+[GOOD] (define-fun s8 () Int (+ s3 s7))+[GOOD] (define-fun s9 () (Seq Int) (seq.unit s8))+[GOOD] (define-fun s10 () Int (- s5 s2))+[GOOD] (define-fun s11 () (Seq Int) (seq.extract s0 s2 s10))+[GOOD] (define-fun s13 () (Seq Int) (seq.++ s9 s12))+[GOOD] (define-fun s14 () (Seq Int) (ite s6 s4 s13))+[GOOD] (define-fun s15 () Bool (>= s5 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s15))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {sbv.map @(SBV Integer -> SBV Integer)_6e8bf9627c @(SBV [Integer] -> SBV [Integer])}: replaying 10 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () Int 2)+[GOOD] (define-fun s4 () (Seq Int) (as seq.empty (Seq Int)))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq Int)) ; tracks user variable "arg"+[GOOD] (declare-fun s12 () (Seq Int)) ; tracks user variable "__internal_sbv_s12"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s5 () Int (seq.len s0))+[GOOD] (define-fun s6 () Bool (= s1 s5))+[GOOD] (define-fun s7 () Int (seq.nth s0 s1))+[GOOD] (define-fun s8 () Int (+ s3 s7))+[GOOD] (define-fun s9 () (Seq Int) (seq.unit s8))+[GOOD] (define-fun s10 () Int (- s5 s2))+[GOOD] (define-fun s11 () (Seq Int) (seq.extract s0 s2 s10))+[GOOD] (define-fun s13 () (Seq Int) (seq.++ s9 s12))+[GOOD] (define-fun s14 () (Seq Int) (ite s6 s4 s13))+[GOOD] (define-fun s15 () Int (seq.len s11))+[GOOD] (define-fun s16 () Bool (not s6))+[GOOD] (define-fun s17 () Bool (> s5 s15))+[GOOD] (define-fun s18 () Bool (=> s16 s17))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s18))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] sbv.map @(SBV Integer -> SBV Integer)_6e8bf9627c @(SBV [Integer] -> SBV [Integer]): length arg1 -> OK+[MEASURE] Passed (terminating): sbv.map @(SBV Integer -> SBV Integer)_6e8bf9627c @(SBV [Integer] -> SBV [Integer])+[MEASURE] Checking: sbv.map @(SBV Integer -> SBV Integer)_aaa4562f59 @(SBV [Integer] -> SBV [Integer])+[MEASURE] sbv.map @(SBV Integer -> SBV Integer)_aaa4562f59 @(SBV [Integer] -> SBV [Integer]): barified = "|sbv.map @(SBV Integer -> SBV Integer)_aaa4562f59 @(SBV [Integer] -> SBV [Integer])|"+[MEASURE] sbv.map @(SBV Integer -> SBV Integer)_aaa4562f59 @(SBV [Integer] -> SBV [Integer]): Uninterpreted ops in DAG: [("|sbv.map @(SBV Integer -> SBV Integer)_aaa4562f59 @(SBV [Integer] -> SBV [Integer])|",1)]+[MEASURE] sbv.map @(SBV Integer -> SBV Integer)_aaa4562f59 @(SBV [Integer] -> SBV [Integer]): recursive calls found = 1+[MEASURE] sbv.map @(SBV Integer -> SBV Integer)_aaa4562f59 @(SBV [Integer] -> SBV [Integer]): trying length arg1+[MEASURE] replayDAG {sbv.map @(SBV Integer -> SBV Integer)_aaa4562f59 @(SBV [Integer] -> SBV [Integer])}: replaying 10 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () (Seq Int) (as seq.empty (Seq Int)))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq Int)) ; tracks user variable "arg"+[GOOD] (declare-fun s11 () (Seq Int)) ; tracks user variable "__internal_sbv_s11"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Int (seq.len s0))+[GOOD] (define-fun s5 () Bool (= s1 s4))+[GOOD] (define-fun s6 () Int (seq.nth s0 s1))+[GOOD] (define-fun s7 () Int (+ s2 s6))+[GOOD] (define-fun s8 () (Seq Int) (seq.unit s7))+[GOOD] (define-fun s9 () Int (- s4 s2))+[GOOD] (define-fun s10 () (Seq Int) (seq.extract s0 s2 s9))+[GOOD] (define-fun s12 () (Seq Int) (seq.++ s8 s11))+[GOOD] (define-fun s13 () (Seq Int) (ite s5 s3 s12))+[GOOD] (define-fun s14 () Bool (>= s4 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s14))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {sbv.map @(SBV Integer -> SBV Integer)_aaa4562f59 @(SBV [Integer] -> SBV [Integer])}: replaying 10 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () (Seq Int) (as seq.empty (Seq Int)))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq Int)) ; tracks user variable "arg"+[GOOD] (declare-fun s11 () (Seq Int)) ; tracks user variable "__internal_sbv_s11"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Int (seq.len s0))+[GOOD] (define-fun s5 () Bool (= s1 s4))+[GOOD] (define-fun s6 () Int (seq.nth s0 s1))+[GOOD] (define-fun s7 () Int (+ s2 s6))+[GOOD] (define-fun s8 () (Seq Int) (seq.unit s7))+[GOOD] (define-fun s9 () Int (- s4 s2))+[GOOD] (define-fun s10 () (Seq Int) (seq.extract s0 s2 s9))+[GOOD] (define-fun s12 () (Seq Int) (seq.++ s8 s11))+[GOOD] (define-fun s13 () (Seq Int) (ite s5 s3 s12))+[GOOD] (define-fun s14 () Int (seq.len s10))+[GOOD] (define-fun s15 () Bool (not s5))+[GOOD] (define-fun s16 () Bool (> s4 s14))+[GOOD] (define-fun s17 () Bool (=> s15 s16))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s17))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] sbv.map @(SBV Integer -> SBV Integer)_aaa4562f59 @(SBV [Integer] -> SBV [Integer]): length arg1 -> OK+[MEASURE] Passed (terminating): sbv.map @(SBV Integer -> SBV Integer)_aaa4562f59 @(SBV [Integer] -> SBV [Integer])+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all. [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/lambda06.gold view
@@ -1,3 +1,10 @@+[MEASURE] Verifying termination measures for: sbv.map @(SBV Integer -> SBV Integer)_b01b78a2e9 @(SBV [Integer] -> SBV [Integer])+[MEASURE] Checking: sbv.map @(SBV Integer -> SBV Integer)_b01b78a2e9 @(SBV [Integer] -> SBV [Integer])+[MEASURE] sbv.map @(SBV Integer -> SBV Integer)_b01b78a2e9 @(SBV [Integer] -> SBV [Integer]): barified = "|sbv.map @(SBV Integer -> SBV Integer)_b01b78a2e9 @(SBV [Integer] -> SBV [Integer])|"+[MEASURE] sbv.map @(SBV Integer -> SBV Integer)_b01b78a2e9 @(SBV [Integer] -> SBV [Integer]): Uninterpreted ops in DAG: [("|sbv.map @(SBV Integer -> SBV Integer)_b01b78a2e9 @(SBV [Integer] -> SBV [Integer])|",1)]+[MEASURE] sbv.map @(SBV Integer -> SBV Integer)_b01b78a2e9 @(SBV [Integer] -> SBV [Integer]): recursive calls found = 1+[MEASURE] sbv.map @(SBV Integer -> SBV Integer)_b01b78a2e9 @(SBV [Integer] -> SBV [Integer]): trying length arg1+[MEASURE] replayDAG {sbv.map @(SBV Integer -> SBV Integer)_b01b78a2e9 @(SBV [Integer] -> SBV [Integer])}: replaying 27 node(s) ** Calling: z3 -nw -in -smt2 [GOOD] ; Automatically generated by SBV. Do not edit. [GOOD] (set-option :print-success true)@@ -9,7 +16,130 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts ---+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () (Seq Int) (as seq.empty (Seq Int)))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq Int)) ; tracks user variable "arg"+[GOOD] (declare-fun s28 () (Seq Int)) ; tracks user variable "__internal_sbv_s28"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Int (seq.len s0))+[GOOD] (define-fun s5 () Bool (= s1 s4))+[GOOD] (define-fun s6 () Int (seq.nth s0 s1))+[GOOD] (define-fun s7 () Int (* s6 s6))+[GOOD] (define-fun s8 () Int (+ s6 s7))+[GOOD] (define-fun s9 () Int (* s6 s7))+[GOOD] (define-fun s10 () Int (+ s8 s9))+[GOOD] (define-fun s11 () Int (* s7 s7))+[GOOD] (define-fun s12 () Int (+ s10 s11))+[GOOD] (define-fun s13 () Int (* s6 s11))+[GOOD] (define-fun s14 () Int (+ s12 s13))+[GOOD] (define-fun s15 () Int (* s7 s11))+[GOOD] (define-fun s16 () Int (+ s14 s15))+[GOOD] (define-fun s17 () Int (* s6 s15))+[GOOD] (define-fun s18 () Int (+ s16 s17))+[GOOD] (define-fun s19 () Int (* s11 s11))+[GOOD] (define-fun s20 () Int (+ s18 s19))+[GOOD] (define-fun s21 () Int (* s6 s19))+[GOOD] (define-fun s22 () Int (+ s20 s21))+[GOOD] (define-fun s23 () Int (* s7 s19))+[GOOD] (define-fun s24 () Int (+ s22 s23))+[GOOD] (define-fun s25 () (Seq Int) (seq.unit s24))+[GOOD] (define-fun s26 () Int (- s4 s2))+[GOOD] (define-fun s27 () (Seq Int) (seq.extract s0 s2 s26))+[GOOD] (define-fun s29 () (Seq Int) (seq.++ s25 s28))+[GOOD] (define-fun s30 () (Seq Int) (ite s5 s3 s29))+[GOOD] (define-fun s31 () Bool (>= s4 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s31))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {sbv.map @(SBV Integer -> SBV Integer)_b01b78a2e9 @(SBV [Integer] -> SBV [Integer])}: replaying 27 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () (Seq Int) (as seq.empty (Seq Int)))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq Int)) ; tracks user variable "arg"+[GOOD] (declare-fun s28 () (Seq Int)) ; tracks user variable "__internal_sbv_s28"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Int (seq.len s0))+[GOOD] (define-fun s5 () Bool (= s1 s4))+[GOOD] (define-fun s6 () Int (seq.nth s0 s1))+[GOOD] (define-fun s7 () Int (* s6 s6))+[GOOD] (define-fun s8 () Int (+ s6 s7))+[GOOD] (define-fun s9 () Int (* s6 s7))+[GOOD] (define-fun s10 () Int (+ s8 s9))+[GOOD] (define-fun s11 () Int (* s7 s7))+[GOOD] (define-fun s12 () Int (+ s10 s11))+[GOOD] (define-fun s13 () Int (* s6 s11))+[GOOD] (define-fun s14 () Int (+ s12 s13))+[GOOD] (define-fun s15 () Int (* s7 s11))+[GOOD] (define-fun s16 () Int (+ s14 s15))+[GOOD] (define-fun s17 () Int (* s6 s15))+[GOOD] (define-fun s18 () Int (+ s16 s17))+[GOOD] (define-fun s19 () Int (* s11 s11))+[GOOD] (define-fun s20 () Int (+ s18 s19))+[GOOD] (define-fun s21 () Int (* s6 s19))+[GOOD] (define-fun s22 () Int (+ s20 s21))+[GOOD] (define-fun s23 () Int (* s7 s19))+[GOOD] (define-fun s24 () Int (+ s22 s23))+[GOOD] (define-fun s25 () (Seq Int) (seq.unit s24))+[GOOD] (define-fun s26 () Int (- s4 s2))+[GOOD] (define-fun s27 () (Seq Int) (seq.extract s0 s2 s26))+[GOOD] (define-fun s29 () (Seq Int) (seq.++ s25 s28))+[GOOD] (define-fun s30 () (Seq Int) (ite s5 s3 s29))+[GOOD] (define-fun s31 () Int (seq.len s27))+[GOOD] (define-fun s32 () Bool (not s5))+[GOOD] (define-fun s33 () Bool (> s4 s31))+[GOOD] (define-fun s34 () Bool (=> s32 s33))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s34))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] sbv.map @(SBV Integer -> SBV Integer)_b01b78a2e9 @(SBV [Integer] -> SBV [Integer]): length arg1 -> OK+[MEASURE] Passed (terminating): sbv.map @(SBV Integer -> SBV Integer)_b01b78a2e9 @(SBV [Integer] -> SBV [Integer])+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all. [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/lambda07.gold view
@@ -1,3 +1,13 @@+[MEASURE] Verifying termination measures for: sbv.map @(SBV [Integer] -> SBV Integer)_1b9bf3f573 @(SBV [[Integer]] -> SBV [Integer]), sbv.map @(SBV [Integer] -> SBV Integer)_1b9bf3f573 @(SBV [[Integer]] -> SBV [Integer]), sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_b97075844e @(SBV (Integer,[Integer]) -> SBV Integer), sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer)+[MEASURE] Checking: sbv.map @(SBV [Integer] -> SBV Integer)_1b9bf3f573 @(SBV [[Integer]] -> SBV [Integer])+[MEASURE] sbv.map @(SBV [Integer] -> SBV Integer)_1b9bf3f573 @(SBV [[Integer]] -> SBV [Integer]): not in a multi-member cycle, skipping mutual check+[MEASURE] Passed (terminating): sbv.map @(SBV [Integer] -> SBV Integer)_1b9bf3f573 @(SBV [[Integer]] -> SBV [Integer])+[MEASURE] Checking: sbv.map @(SBV [Integer] -> SBV Integer)_1b9bf3f573 @(SBV [[Integer]] -> SBV [Integer])+[MEASURE] sbv.map @(SBV [Integer] -> SBV Integer)_1b9bf3f573 @(SBV [[Integer]] -> SBV [Integer]): barified = "|sbv.map @(SBV [Integer] -> SBV Integer)_1b9bf3f573 @(SBV [[Integer]] -> SBV [Integer])|"+[MEASURE] sbv.map @(SBV [Integer] -> SBV Integer)_1b9bf3f573 @(SBV [[Integer]] -> SBV [Integer]): Uninterpreted ops in DAG: [("|sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer)|",1),("|sbv.map @(SBV [Integer] -> SBV Integer)_1b9bf3f573 @(SBV [[Integer]] -> SBV [Integer])|",1)]+[MEASURE] sbv.map @(SBV [Integer] -> SBV Integer)_1b9bf3f573 @(SBV [[Integer]] -> SBV [Integer]): recursive calls found = 1+[MEASURE] sbv.map @(SBV [Integer] -> SBV Integer)_1b9bf3f573 @(SBV [[Integer]] -> SBV [Integer]): trying length arg1+[MEASURE] replayDAG {sbv.map @(SBV [Integer] -> SBV Integer)_1b9bf3f573 @(SBV [[Integer]] -> SBV [Integer])}: replaying 11 node(s) ** Calling: z3 -nw -in -smt2 [GOOD] ; Automatically generated by SBV. Do not edit. [GOOD] (set-option :print-success true)@@ -9,7 +19,322 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts ---+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () (Seq Int) (as seq.empty (Seq Int)))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq (Seq Int))) ; tracks user variable "arg"+[GOOD] (declare-fun s8 () Int) ; tracks user variable "__internal_sbv_s8"+[GOOD] (declare-fun s12 () (Seq Int)) ; tracks user variable "__internal_sbv_s12"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Int (seq.len s0))+[GOOD] (define-fun s5 () Bool (= s1 s4))+[GOOD] (define-fun s6 () (Seq Int) (seq.nth s0 s1))+[GOOD] (define-fun s7 () (SBVTuple2 Int (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 Int (Seq Int))) s1 s6))+[GOOD] (define-fun s9 () (Seq Int) (seq.unit s8))+[GOOD] (define-fun s10 () Int (- s4 s2))+[GOOD] (define-fun s11 () (Seq (Seq Int)) (seq.extract s0 s2 s10))+[GOOD] (define-fun s13 () (Seq Int) (seq.++ s9 s12))+[GOOD] (define-fun s14 () (Seq Int) (ite s5 s3 s13))+[GOOD] (define-fun s15 () Bool (>= s4 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s15))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {sbv.map @(SBV [Integer] -> SBV Integer)_1b9bf3f573 @(SBV [[Integer]] -> SBV [Integer])}: replaying 11 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () (Seq Int) (as seq.empty (Seq Int)))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq (Seq Int))) ; tracks user variable "arg"+[GOOD] (declare-fun s8 () Int) ; tracks user variable "__internal_sbv_s8"+[GOOD] (declare-fun s12 () (Seq Int)) ; tracks user variable "__internal_sbv_s12"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Int (seq.len s0))+[GOOD] (define-fun s5 () Bool (= s1 s4))+[GOOD] (define-fun s6 () (Seq Int) (seq.nth s0 s1))+[GOOD] (define-fun s7 () (SBVTuple2 Int (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 Int (Seq Int))) s1 s6))+[GOOD] (define-fun s9 () (Seq Int) (seq.unit s8))+[GOOD] (define-fun s10 () Int (- s4 s2))+[GOOD] (define-fun s11 () (Seq (Seq Int)) (seq.extract s0 s2 s10))+[GOOD] (define-fun s13 () (Seq Int) (seq.++ s9 s12))+[GOOD] (define-fun s14 () (Seq Int) (ite s5 s3 s13))+[GOOD] (define-fun s15 () Int (seq.len s11))+[GOOD] (define-fun s16 () Bool (not s5))+[GOOD] (define-fun s17 () Bool (> s4 s15))+[GOOD] (define-fun s18 () Bool (=> s16 s17))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s18))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] sbv.map @(SBV [Integer] -> SBV Integer)_1b9bf3f573 @(SBV [[Integer]] -> SBV [Integer]): length arg1 -> OK+[MEASURE] Passed (terminating): sbv.map @(SBV [Integer] -> SBV Integer)_1b9bf3f573 @(SBV [[Integer]] -> SBV [Integer])+[MEASURE] Checking: sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_b97075844e @(SBV (Integer,[Integer]) -> SBV Integer)+[MEASURE] sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_b97075844e @(SBV (Integer,[Integer]) -> SBV Integer): not in a multi-member cycle, skipping mutual check+[MEASURE] Passed (terminating): sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_b97075844e @(SBV (Integer,[Integer]) -> SBV Integer)+[MEASURE] Checking: sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer)+[MEASURE] sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer): barified = "|sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer)|"+[MEASURE] sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer): Uninterpreted ops in DAG: [("|sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer)|",1)]+[MEASURE] sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer): recursive calls found = 1+[MEASURE] sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer): trying abs arg1._1+[MEASURE] replayDAG {sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer)}: replaying 11 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (SBVTuple2 Int (Seq Int))) ; tracks user variable "arg"+[GOOD] (declare-fun s11 () Int) ; tracks user variable "__internal_sbv_s11"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () (Seq Int) (proj_2_SBVTuple2 s0))+[GOOD] (define-fun s4 () Int (seq.len s3))+[GOOD] (define-fun s5 () Bool (= s1 s4))+[GOOD] (define-fun s6 () Int (proj_1_SBVTuple2 s0))+[GOOD] (define-fun s7 () Int (seq.nth s3 s1))+[GOOD] (define-fun s8 () Int (- s4 s2))+[GOOD] (define-fun s9 () (Seq Int) (seq.extract s3 s2 s8))+[GOOD] (define-fun s10 () (SBVTuple2 Int (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 Int (Seq Int))) s6 s9))+[GOOD] (define-fun s12 () Int (+ s7 s11))+[GOOD] (define-fun s13 () Int (ite s5 s6 s12))+[GOOD] (define-fun s14 () Int (abs s6))+[GOOD] (define-fun s15 () Bool (>= s14 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s15))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer)}: replaying 11 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (SBVTuple2 Int (Seq Int))) ; tracks user variable "arg"+[GOOD] (declare-fun s11 () Int) ; tracks user variable "__internal_sbv_s11"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () (Seq Int) (proj_2_SBVTuple2 s0))+[GOOD] (define-fun s4 () Int (seq.len s3))+[GOOD] (define-fun s5 () Bool (= s1 s4))+[GOOD] (define-fun s6 () Int (proj_1_SBVTuple2 s0))+[GOOD] (define-fun s7 () Int (seq.nth s3 s1))+[GOOD] (define-fun s8 () Int (- s4 s2))+[GOOD] (define-fun s9 () (Seq Int) (seq.extract s3 s2 s8))+[GOOD] (define-fun s10 () (SBVTuple2 Int (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 Int (Seq Int))) s6 s9))+[GOOD] (define-fun s12 () Int (+ s7 s11))+[GOOD] (define-fun s13 () Int (ite s5 s6 s12))+[GOOD] (define-fun s14 () Int (abs s6))+[GOOD] (define-fun s15 () Int (proj_1_SBVTuple2 s10))+[GOOD] (define-fun s16 () Int (abs s15))+[GOOD] (define-fun s17 () Bool (not s5))+[GOOD] (define-fun s18 () Bool (> s14 s16))+[GOOD] (define-fun s19 () Bool (=> s17 s18))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s19))+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s14))+[RECV] ((s14 0))+[SEND] (get-value (s16))+[RECV] ((s16 0))+[SEND] (get-value (s0))+[RECV] ((s0 (mkSBVTuple2 0 (seq.unit 2))))+[SEND] (get-value (s11))+[RECV] ((s11 0))+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer): abs arg1._1 failed strict decrease: Falsifiable. Counter-example:+  arg    = (0,[2]) :: (Integer, [Integer])+  before =       0 :: Integer+  then   =       0 :: Integer+[MEASURE] sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer): trying next candidate..+[MEASURE] sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer): trying length arg1._2+[MEASURE] replayDAG {sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer)}: replaying 11 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (SBVTuple2 Int (Seq Int))) ; tracks user variable "arg"+[GOOD] (declare-fun s11 () Int) ; tracks user variable "__internal_sbv_s11"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () (Seq Int) (proj_2_SBVTuple2 s0))+[GOOD] (define-fun s4 () Int (seq.len s3))+[GOOD] (define-fun s5 () Bool (= s1 s4))+[GOOD] (define-fun s6 () Int (proj_1_SBVTuple2 s0))+[GOOD] (define-fun s7 () Int (seq.nth s3 s1))+[GOOD] (define-fun s8 () Int (- s4 s2))+[GOOD] (define-fun s9 () (Seq Int) (seq.extract s3 s2 s8))+[GOOD] (define-fun s10 () (SBVTuple2 Int (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 Int (Seq Int))) s6 s9))+[GOOD] (define-fun s12 () Int (+ s7 s11))+[GOOD] (define-fun s13 () Int (ite s5 s6 s12))+[GOOD] (define-fun s14 () Bool (>= s4 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s14))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer)}: replaying 11 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (SBVTuple2 Int (Seq Int))) ; tracks user variable "arg"+[GOOD] (declare-fun s11 () Int) ; tracks user variable "__internal_sbv_s11"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () (Seq Int) (proj_2_SBVTuple2 s0))+[GOOD] (define-fun s4 () Int (seq.len s3))+[GOOD] (define-fun s5 () Bool (= s1 s4))+[GOOD] (define-fun s6 () Int (proj_1_SBVTuple2 s0))+[GOOD] (define-fun s7 () Int (seq.nth s3 s1))+[GOOD] (define-fun s8 () Int (- s4 s2))+[GOOD] (define-fun s9 () (Seq Int) (seq.extract s3 s2 s8))+[GOOD] (define-fun s10 () (SBVTuple2 Int (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 Int (Seq Int))) s6 s9))+[GOOD] (define-fun s12 () Int (+ s7 s11))+[GOOD] (define-fun s13 () Int (ite s5 s6 s12))+[GOOD] (define-fun s14 () (Seq Int) (proj_2_SBVTuple2 s10))+[GOOD] (define-fun s15 () Int (seq.len s14))+[GOOD] (define-fun s16 () Bool (not s5))+[GOOD] (define-fun s17 () Bool (> s4 s15))+[GOOD] (define-fun s18 () Bool (=> s16 s17))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s18))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer): length arg1._2 -> OK+[MEASURE] Passed (terminating): sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all. [GOOD] ; --- tuples --- [GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)                                            ((mkSBVTuple2 (proj_1_SBVTuple2 T1)
SBVTestSuite/GoldFiles/lambda08.gold view
@@ -1,3 +1,10 @@+[MEASURE] Verifying termination measures for: sbv.map @(SBV Int64 -> SBV Int64)_bc2a222730 @(SBV [Int64] -> SBV [Int64])+[MEASURE] Checking: sbv.map @(SBV Int64 -> SBV Int64)_bc2a222730 @(SBV [Int64] -> SBV [Int64])+[MEASURE] sbv.map @(SBV Int64 -> SBV Int64)_bc2a222730 @(SBV [Int64] -> SBV [Int64]): barified = "|sbv.map @(SBV Int64 -> SBV Int64)_bc2a222730 @(SBV [Int64] -> SBV [Int64])|"+[MEASURE] sbv.map @(SBV Int64 -> SBV Int64)_bc2a222730 @(SBV [Int64] -> SBV [Int64]): Uninterpreted ops in DAG: [("|sbv.map @(SBV Int64 -> SBV Int64)_bc2a222730 @(SBV [Int64] -> SBV [Int64])|",1)]+[MEASURE] sbv.map @(SBV Int64 -> SBV Int64)_bc2a222730 @(SBV [Int64] -> SBV [Int64]): recursive calls found = 1+[MEASURE] sbv.map @(SBV Int64 -> SBV Int64)_bc2a222730 @(SBV [Int64] -> SBV [Int64]): trying length arg1+[MEASURE] replayDAG {sbv.map @(SBV Int64 -> SBV Int64)_bc2a222730 @(SBV [Int64] -> SBV [Int64])}: replaying 10 node(s) ** Calling: z3 -nw -in -smt2 [GOOD] ; Automatically generated by SBV. Do not edit. [GOOD] (set-option :print-success true)@@ -9,7 +16,98 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts ---+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () (_ BitVec 64) #x0000000000000001)+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] (define-fun s4 () (Seq (_ BitVec 64)) (as seq.empty (Seq (_ BitVec 64))))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq (_ BitVec 64))) ; tracks user variable "arg"+[GOOD] (declare-fun s12 () (Seq (_ BitVec 64))) ; tracks user variable "__internal_sbv_s12"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s5 () Int (seq.len s0))+[GOOD] (define-fun s6 () Bool (= s2 s5))+[GOOD] (define-fun s7 () (_ BitVec 64) (seq.nth s0 s2))+[GOOD] (define-fun s8 () (_ BitVec 64) (bvadd s1 s7))+[GOOD] (define-fun s9 () (Seq (_ BitVec 64)) (seq.unit s8))+[GOOD] (define-fun s10 () Int (- s5 s3))+[GOOD] (define-fun s11 () (Seq (_ BitVec 64)) (seq.extract s0 s3 s10))+[GOOD] (define-fun s13 () (Seq (_ BitVec 64)) (seq.++ s9 s12))+[GOOD] (define-fun s14 () (Seq (_ BitVec 64)) (ite s6 s4 s13))+[GOOD] (define-fun s15 () Bool (>= s5 s2))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s15))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {sbv.map @(SBV Int64 -> SBV Int64)_bc2a222730 @(SBV [Int64] -> SBV [Int64])}: replaying 10 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () (_ BitVec 64) #x0000000000000001)+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] (define-fun s4 () (Seq (_ BitVec 64)) (as seq.empty (Seq (_ BitVec 64))))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq (_ BitVec 64))) ; tracks user variable "arg"+[GOOD] (declare-fun s12 () (Seq (_ BitVec 64))) ; tracks user variable "__internal_sbv_s12"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s5 () Int (seq.len s0))+[GOOD] (define-fun s6 () Bool (= s2 s5))+[GOOD] (define-fun s7 () (_ BitVec 64) (seq.nth s0 s2))+[GOOD] (define-fun s8 () (_ BitVec 64) (bvadd s1 s7))+[GOOD] (define-fun s9 () (Seq (_ BitVec 64)) (seq.unit s8))+[GOOD] (define-fun s10 () Int (- s5 s3))+[GOOD] (define-fun s11 () (Seq (_ BitVec 64)) (seq.extract s0 s3 s10))+[GOOD] (define-fun s13 () (Seq (_ BitVec 64)) (seq.++ s9 s12))+[GOOD] (define-fun s14 () (Seq (_ BitVec 64)) (ite s6 s4 s13))+[GOOD] (define-fun s15 () Int (seq.len s11))+[GOOD] (define-fun s16 () Bool (not s6))+[GOOD] (define-fun s17 () Bool (> s5 s15))+[GOOD] (define-fun s18 () Bool (=> s16 s17))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s18))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] sbv.map @(SBV Int64 -> SBV Int64)_bc2a222730 @(SBV [Int64] -> SBV [Int64]): length arg1 -> OK+[MEASURE] Passed (terminating): sbv.map @(SBV Int64 -> SBV Int64)_bc2a222730 @(SBV [Int64] -> SBV [Int64])+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all. [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/lambda09.gold view
@@ -1,3 +1,10 @@+[MEASURE] Verifying termination measures for: sbv.map @(SBV Int8 -> SBV Int8)_5111aac2ea @(SBV [Int8] -> SBV [Int8])+[MEASURE] Checking: sbv.map @(SBV Int8 -> SBV Int8)_5111aac2ea @(SBV [Int8] -> SBV [Int8])+[MEASURE] sbv.map @(SBV Int8 -> SBV Int8)_5111aac2ea @(SBV [Int8] -> SBV [Int8]): barified = "|sbv.map @(SBV Int8 -> SBV Int8)_5111aac2ea @(SBV [Int8] -> SBV [Int8])|"+[MEASURE] sbv.map @(SBV Int8 -> SBV Int8)_5111aac2ea @(SBV [Int8] -> SBV [Int8]): Uninterpreted ops in DAG: [("|sbv.map @(SBV Int8 -> SBV Int8)_5111aac2ea @(SBV [Int8] -> SBV [Int8])|",1)]+[MEASURE] sbv.map @(SBV Int8 -> SBV Int8)_5111aac2ea @(SBV [Int8] -> SBV [Int8]): recursive calls found = 1+[MEASURE] sbv.map @(SBV Int8 -> SBV Int8)_5111aac2ea @(SBV [Int8] -> SBV [Int8]): trying length arg1+[MEASURE] replayDAG {sbv.map @(SBV Int8 -> SBV Int8)_5111aac2ea @(SBV [Int8] -> SBV [Int8])}: replaying 10 node(s) ** Calling: z3 -nw -in -smt2 [GOOD] ; Automatically generated by SBV. Do not edit. [GOOD] (set-option :print-success true)@@ -9,7 +16,98 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts ---+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () (_ BitVec 8) #x01)+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] (define-fun s4 () (Seq (_ BitVec 8)) (as seq.empty (Seq (_ BitVec 8))))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq (_ BitVec 8))) ; tracks user variable "arg"+[GOOD] (declare-fun s12 () (Seq (_ BitVec 8))) ; tracks user variable "__internal_sbv_s12"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s5 () Int (seq.len s0))+[GOOD] (define-fun s6 () Bool (= s2 s5))+[GOOD] (define-fun s7 () (_ BitVec 8) (seq.nth s0 s2))+[GOOD] (define-fun s8 () (_ BitVec 8) (bvadd s1 s7))+[GOOD] (define-fun s9 () (Seq (_ BitVec 8)) (seq.unit s8))+[GOOD] (define-fun s10 () Int (- s5 s3))+[GOOD] (define-fun s11 () (Seq (_ BitVec 8)) (seq.extract s0 s3 s10))+[GOOD] (define-fun s13 () (Seq (_ BitVec 8)) (seq.++ s9 s12))+[GOOD] (define-fun s14 () (Seq (_ BitVec 8)) (ite s6 s4 s13))+[GOOD] (define-fun s15 () Bool (>= s5 s2))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s15))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {sbv.map @(SBV Int8 -> SBV Int8)_5111aac2ea @(SBV [Int8] -> SBV [Int8])}: replaying 10 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () (_ BitVec 8) #x01)+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] (define-fun s4 () (Seq (_ BitVec 8)) (as seq.empty (Seq (_ BitVec 8))))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq (_ BitVec 8))) ; tracks user variable "arg"+[GOOD] (declare-fun s12 () (Seq (_ BitVec 8))) ; tracks user variable "__internal_sbv_s12"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s5 () Int (seq.len s0))+[GOOD] (define-fun s6 () Bool (= s2 s5))+[GOOD] (define-fun s7 () (_ BitVec 8) (seq.nth s0 s2))+[GOOD] (define-fun s8 () (_ BitVec 8) (bvadd s1 s7))+[GOOD] (define-fun s9 () (Seq (_ BitVec 8)) (seq.unit s8))+[GOOD] (define-fun s10 () Int (- s5 s3))+[GOOD] (define-fun s11 () (Seq (_ BitVec 8)) (seq.extract s0 s3 s10))+[GOOD] (define-fun s13 () (Seq (_ BitVec 8)) (seq.++ s9 s12))+[GOOD] (define-fun s14 () (Seq (_ BitVec 8)) (ite s6 s4 s13))+[GOOD] (define-fun s15 () Int (seq.len s11))+[GOOD] (define-fun s16 () Bool (not s6))+[GOOD] (define-fun s17 () Bool (> s5 s15))+[GOOD] (define-fun s18 () Bool (=> s16 s17))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s18))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] sbv.map @(SBV Int8 -> SBV Int8)_5111aac2ea @(SBV [Int8] -> SBV [Int8]): length arg1 -> OK+[MEASURE] Passed (terminating): sbv.map @(SBV Int8 -> SBV Int8)_5111aac2ea @(SBV [Int8] -> SBV [Int8])+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all. [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/lambda10.gold view
@@ -1,3 +1,10 @@+[MEASURE] Verifying termination measures for: sbv.map @(SBV Integer -> SBV Integer)_aaa4562f59 @(SBV [Integer] -> SBV [Integer])+[MEASURE] Checking: sbv.map @(SBV Integer -> SBV Integer)_aaa4562f59 @(SBV [Integer] -> SBV [Integer])+[MEASURE] sbv.map @(SBV Integer -> SBV Integer)_aaa4562f59 @(SBV [Integer] -> SBV [Integer]): barified = "|sbv.map @(SBV Integer -> SBV Integer)_aaa4562f59 @(SBV [Integer] -> SBV [Integer])|"+[MEASURE] sbv.map @(SBV Integer -> SBV Integer)_aaa4562f59 @(SBV [Integer] -> SBV [Integer]): Uninterpreted ops in DAG: [("|sbv.map @(SBV Integer -> SBV Integer)_aaa4562f59 @(SBV [Integer] -> SBV [Integer])|",1)]+[MEASURE] sbv.map @(SBV Integer -> SBV Integer)_aaa4562f59 @(SBV [Integer] -> SBV [Integer]): recursive calls found = 1+[MEASURE] sbv.map @(SBV Integer -> SBV Integer)_aaa4562f59 @(SBV [Integer] -> SBV [Integer]): trying length arg1+[MEASURE] replayDAG {sbv.map @(SBV Integer -> SBV Integer)_aaa4562f59 @(SBV [Integer] -> SBV [Integer])}: replaying 10 node(s) ** Calling: z3 -nw -in -smt2 [GOOD] ; Automatically generated by SBV. Do not edit. [GOOD] (set-option :print-success true)@@ -9,7 +16,96 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts ---+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () (Seq Int) (as seq.empty (Seq Int)))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq Int)) ; tracks user variable "arg"+[GOOD] (declare-fun s11 () (Seq Int)) ; tracks user variable "__internal_sbv_s11"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Int (seq.len s0))+[GOOD] (define-fun s5 () Bool (= s1 s4))+[GOOD] (define-fun s6 () Int (seq.nth s0 s1))+[GOOD] (define-fun s7 () Int (+ s2 s6))+[GOOD] (define-fun s8 () (Seq Int) (seq.unit s7))+[GOOD] (define-fun s9 () Int (- s4 s2))+[GOOD] (define-fun s10 () (Seq Int) (seq.extract s0 s2 s9))+[GOOD] (define-fun s12 () (Seq Int) (seq.++ s8 s11))+[GOOD] (define-fun s13 () (Seq Int) (ite s5 s3 s12))+[GOOD] (define-fun s14 () Bool (>= s4 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s14))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {sbv.map @(SBV Integer -> SBV Integer)_aaa4562f59 @(SBV [Integer] -> SBV [Integer])}: replaying 10 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () (Seq Int) (as seq.empty (Seq Int)))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq Int)) ; tracks user variable "arg"+[GOOD] (declare-fun s11 () (Seq Int)) ; tracks user variable "__internal_sbv_s11"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Int (seq.len s0))+[GOOD] (define-fun s5 () Bool (= s1 s4))+[GOOD] (define-fun s6 () Int (seq.nth s0 s1))+[GOOD] (define-fun s7 () Int (+ s2 s6))+[GOOD] (define-fun s8 () (Seq Int) (seq.unit s7))+[GOOD] (define-fun s9 () Int (- s4 s2))+[GOOD] (define-fun s10 () (Seq Int) (seq.extract s0 s2 s9))+[GOOD] (define-fun s12 () (Seq Int) (seq.++ s8 s11))+[GOOD] (define-fun s13 () (Seq Int) (ite s5 s3 s12))+[GOOD] (define-fun s14 () Int (seq.len s10))+[GOOD] (define-fun s15 () Bool (not s5))+[GOOD] (define-fun s16 () Bool (> s4 s14))+[GOOD] (define-fun s17 () Bool (=> s15 s16))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s17))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] sbv.map @(SBV Integer -> SBV Integer)_aaa4562f59 @(SBV [Integer] -> SBV [Integer]): length arg1 -> OK+[MEASURE] Passed (terminating): sbv.map @(SBV Integer -> SBV Integer)_aaa4562f59 @(SBV [Integer] -> SBV [Integer])+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all. [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/lambda11.gold view
@@ -1,3 +1,10 @@+[MEASURE] Verifying termination measures for: sbv.map @(SBV Word8 -> SBV Word8)_5111aac2ea @(SBV [Word8] -> SBV [Word8])+[MEASURE] Checking: sbv.map @(SBV Word8 -> SBV Word8)_5111aac2ea @(SBV [Word8] -> SBV [Word8])+[MEASURE] sbv.map @(SBV Word8 -> SBV Word8)_5111aac2ea @(SBV [Word8] -> SBV [Word8]): barified = "|sbv.map @(SBV Word8 -> SBV Word8)_5111aac2ea @(SBV [Word8] -> SBV [Word8])|"+[MEASURE] sbv.map @(SBV Word8 -> SBV Word8)_5111aac2ea @(SBV [Word8] -> SBV [Word8]): Uninterpreted ops in DAG: [("|sbv.map @(SBV Word8 -> SBV Word8)_5111aac2ea @(SBV [Word8] -> SBV [Word8])|",1)]+[MEASURE] sbv.map @(SBV Word8 -> SBV Word8)_5111aac2ea @(SBV [Word8] -> SBV [Word8]): recursive calls found = 1+[MEASURE] sbv.map @(SBV Word8 -> SBV Word8)_5111aac2ea @(SBV [Word8] -> SBV [Word8]): trying length arg1+[MEASURE] replayDAG {sbv.map @(SBV Word8 -> SBV Word8)_5111aac2ea @(SBV [Word8] -> SBV [Word8])}: replaying 10 node(s) ** Calling: z3 -nw -in -smt2 [GOOD] ; Automatically generated by SBV. Do not edit. [GOOD] (set-option :print-success true)@@ -9,7 +16,98 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts ---+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () (_ BitVec 8) #x01)+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] (define-fun s4 () (Seq (_ BitVec 8)) (as seq.empty (Seq (_ BitVec 8))))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq (_ BitVec 8))) ; tracks user variable "arg"+[GOOD] (declare-fun s12 () (Seq (_ BitVec 8))) ; tracks user variable "__internal_sbv_s12"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s5 () Int (seq.len s0))+[GOOD] (define-fun s6 () Bool (= s2 s5))+[GOOD] (define-fun s7 () (_ BitVec 8) (seq.nth s0 s2))+[GOOD] (define-fun s8 () (_ BitVec 8) (bvadd s1 s7))+[GOOD] (define-fun s9 () (Seq (_ BitVec 8)) (seq.unit s8))+[GOOD] (define-fun s10 () Int (- s5 s3))+[GOOD] (define-fun s11 () (Seq (_ BitVec 8)) (seq.extract s0 s3 s10))+[GOOD] (define-fun s13 () (Seq (_ BitVec 8)) (seq.++ s9 s12))+[GOOD] (define-fun s14 () (Seq (_ BitVec 8)) (ite s6 s4 s13))+[GOOD] (define-fun s15 () Bool (>= s5 s2))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s15))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {sbv.map @(SBV Word8 -> SBV Word8)_5111aac2ea @(SBV [Word8] -> SBV [Word8])}: replaying 10 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () (_ BitVec 8) #x01)+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] (define-fun s4 () (Seq (_ BitVec 8)) (as seq.empty (Seq (_ BitVec 8))))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq (_ BitVec 8))) ; tracks user variable "arg"+[GOOD] (declare-fun s12 () (Seq (_ BitVec 8))) ; tracks user variable "__internal_sbv_s12"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s5 () Int (seq.len s0))+[GOOD] (define-fun s6 () Bool (= s2 s5))+[GOOD] (define-fun s7 () (_ BitVec 8) (seq.nth s0 s2))+[GOOD] (define-fun s8 () (_ BitVec 8) (bvadd s1 s7))+[GOOD] (define-fun s9 () (Seq (_ BitVec 8)) (seq.unit s8))+[GOOD] (define-fun s10 () Int (- s5 s3))+[GOOD] (define-fun s11 () (Seq (_ BitVec 8)) (seq.extract s0 s3 s10))+[GOOD] (define-fun s13 () (Seq (_ BitVec 8)) (seq.++ s9 s12))+[GOOD] (define-fun s14 () (Seq (_ BitVec 8)) (ite s6 s4 s13))+[GOOD] (define-fun s15 () Int (seq.len s11))+[GOOD] (define-fun s16 () Bool (not s6))+[GOOD] (define-fun s17 () Bool (> s5 s15))+[GOOD] (define-fun s18 () Bool (=> s16 s17))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s18))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] sbv.map @(SBV Word8 -> SBV Word8)_5111aac2ea @(SBV [Word8] -> SBV [Word8]): length arg1 -> OK+[MEASURE] Passed (terminating): sbv.map @(SBV Word8 -> SBV Word8)_5111aac2ea @(SBV [Word8] -> SBV [Word8])+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all. [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/lambda12.gold view
@@ -1,3 +1,10 @@+[MEASURE] Verifying termination measures for: sbv.map @(SBV Integer -> SBV [Integer])_661d2aaa20 @(SBV [Integer] -> SBV [[Integer]])+[MEASURE] Checking: sbv.map @(SBV Integer -> SBV [Integer])_661d2aaa20 @(SBV [Integer] -> SBV [[Integer]])+[MEASURE] sbv.map @(SBV Integer -> SBV [Integer])_661d2aaa20 @(SBV [Integer] -> SBV [[Integer]]): barified = "|sbv.map @(SBV Integer -> SBV [Integer])_661d2aaa20 @(SBV [Integer] -> SBV [[Integer]])|"+[MEASURE] sbv.map @(SBV Integer -> SBV [Integer])_661d2aaa20 @(SBV [Integer] -> SBV [[Integer]]): Uninterpreted ops in DAG: [("|sbv.map @(SBV Integer -> SBV [Integer])_661d2aaa20 @(SBV [Integer] -> SBV [[Integer]])|",1)]+[MEASURE] sbv.map @(SBV Integer -> SBV [Integer])_661d2aaa20 @(SBV [Integer] -> SBV [[Integer]]): recursive calls found = 1+[MEASURE] sbv.map @(SBV Integer -> SBV [Integer])_661d2aaa20 @(SBV [Integer] -> SBV [[Integer]]): trying length arg1+[MEASURE] replayDAG {sbv.map @(SBV Integer -> SBV [Integer])_661d2aaa20 @(SBV [Integer] -> SBV [[Integer]])}: replaying 10 node(s) ** Calling: z3 -nw -in -smt2 [GOOD] ; Automatically generated by SBV. Do not edit. [GOOD] (set-option :print-success true)@@ -9,7 +16,96 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts ---+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () (Seq (Seq Int)) (as seq.empty (Seq (Seq Int))))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq Int)) ; tracks user variable "arg"+[GOOD] (declare-fun s11 () (Seq (Seq Int))) ; tracks user variable "__internal_sbv_s11"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Int (seq.len s0))+[GOOD] (define-fun s5 () Bool (= s1 s4))+[GOOD] (define-fun s6 () Int (seq.nth s0 s1))+[GOOD] (define-fun s7 () (Seq Int) (seq.unit s6))+[GOOD] (define-fun s8 () (Seq (Seq Int)) (seq.unit s7))+[GOOD] (define-fun s9 () Int (- s4 s2))+[GOOD] (define-fun s10 () (Seq Int) (seq.extract s0 s2 s9))+[GOOD] (define-fun s12 () (Seq (Seq Int)) (seq.++ s8 s11))+[GOOD] (define-fun s13 () (Seq (Seq Int)) (ite s5 s3 s12))+[GOOD] (define-fun s14 () Bool (>= s4 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s14))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {sbv.map @(SBV Integer -> SBV [Integer])_661d2aaa20 @(SBV [Integer] -> SBV [[Integer]])}: replaying 10 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () (Seq (Seq Int)) (as seq.empty (Seq (Seq Int))))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq Int)) ; tracks user variable "arg"+[GOOD] (declare-fun s11 () (Seq (Seq Int))) ; tracks user variable "__internal_sbv_s11"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Int (seq.len s0))+[GOOD] (define-fun s5 () Bool (= s1 s4))+[GOOD] (define-fun s6 () Int (seq.nth s0 s1))+[GOOD] (define-fun s7 () (Seq Int) (seq.unit s6))+[GOOD] (define-fun s8 () (Seq (Seq Int)) (seq.unit s7))+[GOOD] (define-fun s9 () Int (- s4 s2))+[GOOD] (define-fun s10 () (Seq Int) (seq.extract s0 s2 s9))+[GOOD] (define-fun s12 () (Seq (Seq Int)) (seq.++ s8 s11))+[GOOD] (define-fun s13 () (Seq (Seq Int)) (ite s5 s3 s12))+[GOOD] (define-fun s14 () Int (seq.len s10))+[GOOD] (define-fun s15 () Bool (not s5))+[GOOD] (define-fun s16 () Bool (> s4 s14))+[GOOD] (define-fun s17 () Bool (=> s15 s16))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s17))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] sbv.map @(SBV Integer -> SBV [Integer])_661d2aaa20 @(SBV [Integer] -> SBV [[Integer]]): length arg1 -> OK+[MEASURE] Passed (terminating): sbv.map @(SBV Integer -> SBV [Integer])_661d2aaa20 @(SBV [Integer] -> SBV [[Integer]])+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all. [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/lambda13.gold view
@@ -1,3 +1,10 @@+[MEASURE] Verifying termination measures for: sbv.map @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV [(Integer,Integer)] -> SBV [Integer])+[MEASURE] Checking: sbv.map @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV [(Integer,Integer)] -> SBV [Integer])+[MEASURE] sbv.map @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV [(Integer,Integer)] -> SBV [Integer]): barified = "|sbv.map @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV [(Integer,Integer)] -> SBV [Integer])|"+[MEASURE] sbv.map @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV [(Integer,Integer)] -> SBV [Integer]): Uninterpreted ops in DAG: [("|sbv.map @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV [(Integer,Integer)] -> SBV [Integer])|",1)]+[MEASURE] sbv.map @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV [(Integer,Integer)] -> SBV [Integer]): recursive calls found = 1+[MEASURE] sbv.map @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV [(Integer,Integer)] -> SBV [Integer]): trying length arg1+[MEASURE] replayDAG {sbv.map @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV [(Integer,Integer)] -> SBV [Integer])}: replaying 12 node(s) ** Calling: z3 -nw -in -smt2 [GOOD] ; Automatically generated by SBV. Do not edit. [GOOD] (set-option :print-success true)@@ -9,7 +16,106 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts ---+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () (Seq Int) (as seq.empty (Seq Int)))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq (SBVTuple2 Int Int))) ; tracks user variable "arg"+[GOOD] (declare-fun s13 () (Seq Int)) ; tracks user variable "__internal_sbv_s13"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Int (seq.len s0))+[GOOD] (define-fun s5 () Bool (= s1 s4))+[GOOD] (define-fun s6 () (SBVTuple2 Int Int) (seq.nth s0 s1))+[GOOD] (define-fun s7 () Int (proj_1_SBVTuple2 s6))+[GOOD] (define-fun s8 () Int (proj_2_SBVTuple2 s6))+[GOOD] (define-fun s9 () Int (+ s7 s8))+[GOOD] (define-fun s10 () (Seq Int) (seq.unit s9))+[GOOD] (define-fun s11 () Int (- s4 s2))+[GOOD] (define-fun s12 () (Seq (SBVTuple2 Int Int)) (seq.extract s0 s2 s11))+[GOOD] (define-fun s14 () (Seq Int) (seq.++ s10 s13))+[GOOD] (define-fun s15 () (Seq Int) (ite s5 s3 s14))+[GOOD] (define-fun s16 () Bool (>= s4 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s16))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {sbv.map @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV [(Integer,Integer)] -> SBV [Integer])}: replaying 12 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () (Seq Int) (as seq.empty (Seq Int)))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq (SBVTuple2 Int Int))) ; tracks user variable "arg"+[GOOD] (declare-fun s13 () (Seq Int)) ; tracks user variable "__internal_sbv_s13"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Int (seq.len s0))+[GOOD] (define-fun s5 () Bool (= s1 s4))+[GOOD] (define-fun s6 () (SBVTuple2 Int Int) (seq.nth s0 s1))+[GOOD] (define-fun s7 () Int (proj_1_SBVTuple2 s6))+[GOOD] (define-fun s8 () Int (proj_2_SBVTuple2 s6))+[GOOD] (define-fun s9 () Int (+ s7 s8))+[GOOD] (define-fun s10 () (Seq Int) (seq.unit s9))+[GOOD] (define-fun s11 () Int (- s4 s2))+[GOOD] (define-fun s12 () (Seq (SBVTuple2 Int Int)) (seq.extract s0 s2 s11))+[GOOD] (define-fun s14 () (Seq Int) (seq.++ s10 s13))+[GOOD] (define-fun s15 () (Seq Int) (ite s5 s3 s14))+[GOOD] (define-fun s16 () Int (seq.len s12))+[GOOD] (define-fun s17 () Bool (not s5))+[GOOD] (define-fun s18 () Bool (> s4 s16))+[GOOD] (define-fun s19 () Bool (=> s17 s18))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s19))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] sbv.map @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV [(Integer,Integer)] -> SBV [Integer]): length arg1 -> OK+[MEASURE] Passed (terminating): sbv.map @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV [(Integer,Integer)] -> SBV [Integer])+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all. [GOOD] ; --- tuples --- [GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)                                            ((mkSBVTuple2 (proj_1_SBVTuple2 T1)
SBVTestSuite/GoldFiles/lambda14.gold view
@@ -1,3 +1,10 @@+[MEASURE] Verifying termination measures for: sbv.zipWith @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV ([Integer],[Integer]) -> SBV [Integer])+[MEASURE] Checking: sbv.zipWith @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV ([Integer],[Integer]) -> SBV [Integer])+[MEASURE] sbv.zipWith @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV ([Integer],[Integer]) -> SBV [Integer]): barified = "|sbv.zipWith @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV ([Integer],[Integer]) -> SBV [Integer])|"+[MEASURE] sbv.zipWith @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV ([Integer],[Integer]) -> SBV [Integer]): Uninterpreted ops in DAG: [("|sbv.zipWith @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV ([Integer],[Integer]) -> SBV [Integer])|",1)]+[MEASURE] sbv.zipWith @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV ([Integer],[Integer]) -> SBV [Integer]): recursive calls found = 1+[MEASURE] sbv.zipWith @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV ([Integer],[Integer]) -> SBV [Integer]): trying length arg1._1+[MEASURE] replayDAG {sbv.zipWith @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV ([Integer],[Integer]) -> SBV [Integer])}: replaying 19 node(s) ** Calling: z3 -nw -in -smt2 [GOOD] ; Automatically generated by SBV. Do not edit. [GOOD] (set-option :print-success true)@@ -9,13 +16,129 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)                                            ((mkSBVTuple2 (proj_1_SBVTuple2 T1)                                                          (proj_2_SBVTuple2 T2)))))) [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () (Seq Int) (as seq.empty (Seq Int)))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (SBVTuple2 (Seq Int) (Seq Int))) ; tracks user variable "arg"+[GOOD] (declare-fun s19 () (Seq Int)) ; tracks user variable "__internal_sbv_s19"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () (Seq Int) (proj_1_SBVTuple2 s0))+[GOOD] (define-fun s5 () Int (seq.len s4))+[GOOD] (define-fun s6 () Bool (= s1 s5))+[GOOD] (define-fun s7 () (Seq Int) (proj_2_SBVTuple2 s0))+[GOOD] (define-fun s8 () Int (seq.len s7))+[GOOD] (define-fun s9 () Bool (= s1 s8))+[GOOD] (define-fun s10 () Int (seq.nth s4 s1))+[GOOD] (define-fun s11 () Int (seq.nth s7 s1))+[GOOD] (define-fun s12 () Int (+ s10 s11))+[GOOD] (define-fun s13 () (Seq Int) (seq.unit s12))+[GOOD] (define-fun s14 () Int (- s5 s2))+[GOOD] (define-fun s15 () (Seq Int) (seq.extract s4 s2 s14))+[GOOD] (define-fun s16 () Int (- s8 s2))+[GOOD] (define-fun s17 () (Seq Int) (seq.extract s7 s2 s16))+[GOOD] (define-fun s18 () (SBVTuple2 (Seq Int) (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 (Seq Int) (Seq Int))) s15 s17))+[GOOD] (define-fun s20 () (Seq Int) (seq.++ s13 s19))+[GOOD] (define-fun s21 () (Seq Int) (ite s9 s3 s20))+[GOOD] (define-fun s22 () (Seq Int) (ite s6 s3 s21))+[GOOD] (define-fun s23 () Bool (>= s5 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s23))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {sbv.zipWith @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV ([Integer],[Integer]) -> SBV [Integer])}: replaying 19 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () (Seq Int) (as seq.empty (Seq Int)))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (SBVTuple2 (Seq Int) (Seq Int))) ; tracks user variable "arg"+[GOOD] (declare-fun s19 () (Seq Int)) ; tracks user variable "__internal_sbv_s19"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () (Seq Int) (proj_1_SBVTuple2 s0))+[GOOD] (define-fun s5 () Int (seq.len s4))+[GOOD] (define-fun s6 () Bool (= s1 s5))+[GOOD] (define-fun s7 () (Seq Int) (proj_2_SBVTuple2 s0))+[GOOD] (define-fun s8 () Int (seq.len s7))+[GOOD] (define-fun s9 () Bool (= s1 s8))+[GOOD] (define-fun s10 () Int (seq.nth s4 s1))+[GOOD] (define-fun s11 () Int (seq.nth s7 s1))+[GOOD] (define-fun s12 () Int (+ s10 s11))+[GOOD] (define-fun s13 () (Seq Int) (seq.unit s12))+[GOOD] (define-fun s14 () Int (- s5 s2))+[GOOD] (define-fun s15 () (Seq Int) (seq.extract s4 s2 s14))+[GOOD] (define-fun s16 () Int (- s8 s2))+[GOOD] (define-fun s17 () (Seq Int) (seq.extract s7 s2 s16))+[GOOD] (define-fun s18 () (SBVTuple2 (Seq Int) (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 (Seq Int) (Seq Int))) s15 s17))+[GOOD] (define-fun s20 () (Seq Int) (seq.++ s13 s19))+[GOOD] (define-fun s21 () (Seq Int) (ite s9 s3 s20))+[GOOD] (define-fun s22 () (Seq Int) (ite s6 s3 s21))+[GOOD] (define-fun s23 () (Seq Int) (proj_1_SBVTuple2 s18))+[GOOD] (define-fun s24 () Int (seq.len s23))+[GOOD] (define-fun s25 () Bool (not s9))+[GOOD] (define-fun s26 () Bool (not s6))+[GOOD] (define-fun s27 () Bool (and s25 s26))+[GOOD] (define-fun s28 () Bool (> s5 s24))+[GOOD] (define-fun s29 () Bool (=> s27 s28))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s29))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] sbv.zipWith @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV ([Integer],[Integer]) -> SBV [Integer]): length arg1._1 -> OK+[MEASURE] Passed (terminating): sbv.zipWith @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV ([Integer],[Integer]) -> SBV [Integer])+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants --- [GOOD] (define-fun s2 () (Seq Int) (seq.++ (seq.unit 1) (seq.unit 2) (seq.unit 3) (seq.unit 4) (seq.unit 5))) [GOOD] (define-fun s4 () (Seq Int) (seq.++ (seq.unit 10) (seq.unit 11) (seq.unit 12) (seq.unit 13) (seq.unit 14) (seq.unit 15))) [GOOD] ; --- top level inputs ---@@ -28,27 +151,27 @@ [GOOD] ; |sbv.zipWith @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV ([Integer],[Integer]) -> SBV [Integer])| :: ([SInteger], [SInteger]) -> [SInteger] [Recursive] [GOOD] (define-fun-rec |sbv.zipWith @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV ([Integer],[Integer]) -> SBV [Integer])| ((l1_s0 (SBVTuple2 (Seq Int) (Seq Int)))) (Seq Int)                                  (let ((l1_s3 0))-                                 (let ((l1_s9 (as seq.empty (Seq Int))))-                                 (let ((l1_s14 1))+                                 (let ((l1_s5 (as seq.empty (Seq Int))))+                                 (let ((l1_s13 1))                                  (let ((l1_s1 (proj_1_SBVTuple2 l1_s0)))                                  (let ((l1_s2 (seq.len l1_s1)))                                  (let ((l1_s4 (= l1_s2 l1_s3)))-                                 (let ((l1_s5 (proj_2_SBVTuple2 l1_s0)))-                                 (let ((l1_s6 (seq.len l1_s5)))-                                 (let ((l1_s7 (= l1_s3 l1_s6)))-                                 (let ((l1_s8 (or l1_s4 l1_s7)))-                                 (let ((l1_s10 (seq.nth l1_s1 l1_s3)))-                                 (let ((l1_s11 (seq.nth l1_s5 l1_s3)))-                                 (let ((l1_s12 (+ l1_s10 l1_s11)))-                                 (let ((l1_s13 (seq.unit l1_s12)))-                                 (let ((l1_s15 (- l1_s2 l1_s14)))-                                 (let ((l1_s16 (seq.extract l1_s1 l1_s14 l1_s15)))-                                 (let ((l1_s17 (- l1_s6 l1_s14)))-                                 (let ((l1_s18 (seq.extract l1_s5 l1_s14 l1_s17)))-                                 (let ((l1_s19 ((as mkSBVTuple2 (SBVTuple2 (Seq Int) (Seq Int))) l1_s16 l1_s18)))-                                 (let ((l1_s20 (|sbv.zipWith @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV ([Integer],[Integer]) -> SBV [Integer])| l1_s19)))-                                 (let ((l1_s21 (seq.++ l1_s13 l1_s20)))-                                 (let ((l1_s22 (ite l1_s8 l1_s9 l1_s21)))+                                 (let ((l1_s6 (proj_2_SBVTuple2 l1_s0)))+                                 (let ((l1_s7 (seq.len l1_s6)))+                                 (let ((l1_s8 (= l1_s3 l1_s7)))+                                 (let ((l1_s9 (seq.nth l1_s1 l1_s3)))+                                 (let ((l1_s10 (seq.nth l1_s6 l1_s3)))+                                 (let ((l1_s11 (+ l1_s9 l1_s10)))+                                 (let ((l1_s12 (seq.unit l1_s11)))+                                 (let ((l1_s14 (- l1_s2 l1_s13)))+                                 (let ((l1_s15 (seq.extract l1_s1 l1_s13 l1_s14)))+                                 (let ((l1_s16 (- l1_s7 l1_s13)))+                                 (let ((l1_s17 (seq.extract l1_s6 l1_s13 l1_s16)))+                                 (let ((l1_s18 ((as mkSBVTuple2 (SBVTuple2 (Seq Int) (Seq Int))) l1_s15 l1_s17)))+                                 (let ((l1_s19 (|sbv.zipWith @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV ([Integer],[Integer]) -> SBV [Integer])| l1_s18)))+                                 (let ((l1_s20 (seq.++ l1_s12 l1_s19)))+                                 (let ((l1_s21 (ite l1_s8 l1_s5 l1_s20)))+                                 (let ((l1_s22 (ite l1_s4 l1_s5 l1_s21)))                                  l1_s22))))))))))))))))))))))) [GOOD] ; --- assignments --- [GOOD] (define-fun s3 () Bool (= s0 s2))
SBVTestSuite/GoldFiles/lambda15.gold view
@@ -1,3 +1,10 @@+[MEASURE] Verifying termination measures for: sbv.foldl @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer)+[MEASURE] Checking: sbv.foldl @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer)+[MEASURE] sbv.foldl @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer): barified = "|sbv.foldl @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer)|"+[MEASURE] sbv.foldl @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer): Uninterpreted ops in DAG: [("|sbv.foldl @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer)|",1)]+[MEASURE] sbv.foldl @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer): recursive calls found = 1+[MEASURE] sbv.foldl @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer): trying abs arg1._1+[MEASURE] replayDAG {sbv.foldl @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer)}: replaying 11 node(s) ** Calling: z3 -nw -in -smt2 [GOOD] ; Automatically generated by SBV. Do not edit. [GOOD] (set-option :print-success true)@@ -9,7 +16,215 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts ---+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (SBVTuple2 Int (Seq Int))) ; tracks user variable "arg"+[GOOD] (declare-fun s12 () Int) ; tracks user variable "__internal_sbv_s12"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () (Seq Int) (proj_2_SBVTuple2 s0))+[GOOD] (define-fun s4 () Int (seq.len s3))+[GOOD] (define-fun s5 () Bool (= s1 s4))+[GOOD] (define-fun s6 () Int (proj_1_SBVTuple2 s0))+[GOOD] (define-fun s7 () Int (seq.nth s3 s1))+[GOOD] (define-fun s8 () Int (+ s6 s7))+[GOOD] (define-fun s9 () Int (- s4 s2))+[GOOD] (define-fun s10 () (Seq Int) (seq.extract s3 s2 s9))+[GOOD] (define-fun s11 () (SBVTuple2 Int (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 Int (Seq Int))) s8 s10))+[GOOD] (define-fun s13 () Int (ite s5 s6 s12))+[GOOD] (define-fun s14 () Int (abs s6))+[GOOD] (define-fun s15 () Bool (>= s14 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s15))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {sbv.foldl @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer)}: replaying 11 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (SBVTuple2 Int (Seq Int))) ; tracks user variable "arg"+[GOOD] (declare-fun s12 () Int) ; tracks user variable "__internal_sbv_s12"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () (Seq Int) (proj_2_SBVTuple2 s0))+[GOOD] (define-fun s4 () Int (seq.len s3))+[GOOD] (define-fun s5 () Bool (= s1 s4))+[GOOD] (define-fun s6 () Int (proj_1_SBVTuple2 s0))+[GOOD] (define-fun s7 () Int (seq.nth s3 s1))+[GOOD] (define-fun s8 () Int (+ s6 s7))+[GOOD] (define-fun s9 () Int (- s4 s2))+[GOOD] (define-fun s10 () (Seq Int) (seq.extract s3 s2 s9))+[GOOD] (define-fun s11 () (SBVTuple2 Int (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 Int (Seq Int))) s8 s10))+[GOOD] (define-fun s13 () Int (ite s5 s6 s12))+[GOOD] (define-fun s14 () Int (abs s6))+[GOOD] (define-fun s15 () Int (proj_1_SBVTuple2 s11))+[GOOD] (define-fun s16 () Int (abs s15))+[GOOD] (define-fun s17 () Bool (not s5))+[GOOD] (define-fun s18 () Bool (> s14 s16))+[GOOD] (define-fun s19 () Bool (=> s17 s18))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s19))+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s14))+[RECV] ((s14 0))+[SEND] (get-value (s16))+[RECV] ((s16 0))+[SEND] (get-value (s0))+[RECV] ((s0 (mkSBVTuple2 0 (seq.unit 0))))+[SEND] (get-value (s12))+[RECV] ((s12 0))+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] sbv.foldl @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer): abs arg1._1 failed strict decrease: Falsifiable. Counter-example:+  arg    = (0,[0]) :: (Integer, [Integer])+  before =       0 :: Integer+  then   =       0 :: Integer+[MEASURE] sbv.foldl @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer): trying next candidate..+[MEASURE] sbv.foldl @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer): trying length arg1._2+[MEASURE] replayDAG {sbv.foldl @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer)}: replaying 11 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (SBVTuple2 Int (Seq Int))) ; tracks user variable "arg"+[GOOD] (declare-fun s12 () Int) ; tracks user variable "__internal_sbv_s12"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () (Seq Int) (proj_2_SBVTuple2 s0))+[GOOD] (define-fun s4 () Int (seq.len s3))+[GOOD] (define-fun s5 () Bool (= s1 s4))+[GOOD] (define-fun s6 () Int (proj_1_SBVTuple2 s0))+[GOOD] (define-fun s7 () Int (seq.nth s3 s1))+[GOOD] (define-fun s8 () Int (+ s6 s7))+[GOOD] (define-fun s9 () Int (- s4 s2))+[GOOD] (define-fun s10 () (Seq Int) (seq.extract s3 s2 s9))+[GOOD] (define-fun s11 () (SBVTuple2 Int (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 Int (Seq Int))) s8 s10))+[GOOD] (define-fun s13 () Int (ite s5 s6 s12))+[GOOD] (define-fun s14 () Bool (>= s4 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s14))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {sbv.foldl @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer)}: replaying 11 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (SBVTuple2 Int (Seq Int))) ; tracks user variable "arg"+[GOOD] (declare-fun s12 () Int) ; tracks user variable "__internal_sbv_s12"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () (Seq Int) (proj_2_SBVTuple2 s0))+[GOOD] (define-fun s4 () Int (seq.len s3))+[GOOD] (define-fun s5 () Bool (= s1 s4))+[GOOD] (define-fun s6 () Int (proj_1_SBVTuple2 s0))+[GOOD] (define-fun s7 () Int (seq.nth s3 s1))+[GOOD] (define-fun s8 () Int (+ s6 s7))+[GOOD] (define-fun s9 () Int (- s4 s2))+[GOOD] (define-fun s10 () (Seq Int) (seq.extract s3 s2 s9))+[GOOD] (define-fun s11 () (SBVTuple2 Int (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 Int (Seq Int))) s8 s10))+[GOOD] (define-fun s13 () Int (ite s5 s6 s12))+[GOOD] (define-fun s14 () (Seq Int) (proj_2_SBVTuple2 s11))+[GOOD] (define-fun s15 () Int (seq.len s14))+[GOOD] (define-fun s16 () Bool (not s5))+[GOOD] (define-fun s17 () Bool (> s4 s15))+[GOOD] (define-fun s18 () Bool (=> s16 s17))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s18))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] sbv.foldl @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer): length arg1._2 -> OK+[MEASURE] Passed (terminating): sbv.foldl @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all. [GOOD] ; --- tuples --- [GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)                                            ((mkSBVTuple2 (proj_1_SBVTuple2 T1)
SBVTestSuite/GoldFiles/lambda16.gold view
@@ -1,3 +1,10 @@+[MEASURE] Verifying termination measures for: sbv.foldl @(SBV (Integer,Integer) -> SBV Integer)_dd270bb7de @(SBV (Integer,[Integer]) -> SBV Integer)+[MEASURE] Checking: sbv.foldl @(SBV (Integer,Integer) -> SBV Integer)_dd270bb7de @(SBV (Integer,[Integer]) -> SBV Integer)+[MEASURE] sbv.foldl @(SBV (Integer,Integer) -> SBV Integer)_dd270bb7de @(SBV (Integer,[Integer]) -> SBV Integer): barified = "|sbv.foldl @(SBV (Integer,Integer) -> SBV Integer)_dd270bb7de @(SBV (Integer,[Integer]) -> SBV Integer)|"+[MEASURE] sbv.foldl @(SBV (Integer,Integer) -> SBV Integer)_dd270bb7de @(SBV (Integer,[Integer]) -> SBV Integer): Uninterpreted ops in DAG: [("|sbv.foldl @(SBV (Integer,Integer) -> SBV Integer)_dd270bb7de @(SBV (Integer,[Integer]) -> SBV Integer)|",1)]+[MEASURE] sbv.foldl @(SBV (Integer,Integer) -> SBV Integer)_dd270bb7de @(SBV (Integer,[Integer]) -> SBV Integer): recursive calls found = 1+[MEASURE] sbv.foldl @(SBV (Integer,Integer) -> SBV Integer)_dd270bb7de @(SBV (Integer,[Integer]) -> SBV Integer): trying abs arg1._1+[MEASURE] replayDAG {sbv.foldl @(SBV (Integer,Integer) -> SBV Integer)_dd270bb7de @(SBV (Integer,[Integer]) -> SBV Integer)}: replaying 11 node(s) ** Calling: z3 -nw -in -smt2 [GOOD] ; Automatically generated by SBV. Do not edit. [GOOD] (set-option :print-success true)@@ -9,7 +16,215 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts ---+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (SBVTuple2 Int (Seq Int))) ; tracks user variable "arg"+[GOOD] (declare-fun s12 () Int) ; tracks user variable "__internal_sbv_s12"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () (Seq Int) (proj_2_SBVTuple2 s0))+[GOOD] (define-fun s4 () Int (seq.len s3))+[GOOD] (define-fun s5 () Bool (= s1 s4))+[GOOD] (define-fun s6 () Int (proj_1_SBVTuple2 s0))+[GOOD] (define-fun s7 () Int (seq.nth s3 s1))+[GOOD] (define-fun s8 () Int (* s6 s7))+[GOOD] (define-fun s9 () Int (- s4 s2))+[GOOD] (define-fun s10 () (Seq Int) (seq.extract s3 s2 s9))+[GOOD] (define-fun s11 () (SBVTuple2 Int (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 Int (Seq Int))) s8 s10))+[GOOD] (define-fun s13 () Int (ite s5 s6 s12))+[GOOD] (define-fun s14 () Int (abs s6))+[GOOD] (define-fun s15 () Bool (>= s14 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s15))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {sbv.foldl @(SBV (Integer,Integer) -> SBV Integer)_dd270bb7de @(SBV (Integer,[Integer]) -> SBV Integer)}: replaying 11 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (SBVTuple2 Int (Seq Int))) ; tracks user variable "arg"+[GOOD] (declare-fun s12 () Int) ; tracks user variable "__internal_sbv_s12"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () (Seq Int) (proj_2_SBVTuple2 s0))+[GOOD] (define-fun s4 () Int (seq.len s3))+[GOOD] (define-fun s5 () Bool (= s1 s4))+[GOOD] (define-fun s6 () Int (proj_1_SBVTuple2 s0))+[GOOD] (define-fun s7 () Int (seq.nth s3 s1))+[GOOD] (define-fun s8 () Int (* s6 s7))+[GOOD] (define-fun s9 () Int (- s4 s2))+[GOOD] (define-fun s10 () (Seq Int) (seq.extract s3 s2 s9))+[GOOD] (define-fun s11 () (SBVTuple2 Int (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 Int (Seq Int))) s8 s10))+[GOOD] (define-fun s13 () Int (ite s5 s6 s12))+[GOOD] (define-fun s14 () Int (abs s6))+[GOOD] (define-fun s15 () Int (proj_1_SBVTuple2 s11))+[GOOD] (define-fun s16 () Int (abs s15))+[GOOD] (define-fun s17 () Bool (not s5))+[GOOD] (define-fun s18 () Bool (> s14 s16))+[GOOD] (define-fun s19 () Bool (=> s17 s18))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s19))+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s14))+[RECV] ((s14 1))+[SEND] (get-value (s16))+[RECV] ((s16 1))+[SEND] (get-value (s0))+[RECV] ((s0 (mkSBVTuple2 1 (seq.unit 1))))+[SEND] (get-value (s12))+[RECV] ((s12 0))+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] sbv.foldl @(SBV (Integer,Integer) -> SBV Integer)_dd270bb7de @(SBV (Integer,[Integer]) -> SBV Integer): abs arg1._1 failed strict decrease: Falsifiable. Counter-example:+  arg    = (1,[1]) :: (Integer, [Integer])+  before =       1 :: Integer+  then   =       1 :: Integer+[MEASURE] sbv.foldl @(SBV (Integer,Integer) -> SBV Integer)_dd270bb7de @(SBV (Integer,[Integer]) -> SBV Integer): trying next candidate..+[MEASURE] sbv.foldl @(SBV (Integer,Integer) -> SBV Integer)_dd270bb7de @(SBV (Integer,[Integer]) -> SBV Integer): trying length arg1._2+[MEASURE] replayDAG {sbv.foldl @(SBV (Integer,Integer) -> SBV Integer)_dd270bb7de @(SBV (Integer,[Integer]) -> SBV Integer)}: replaying 11 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (SBVTuple2 Int (Seq Int))) ; tracks user variable "arg"+[GOOD] (declare-fun s12 () Int) ; tracks user variable "__internal_sbv_s12"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () (Seq Int) (proj_2_SBVTuple2 s0))+[GOOD] (define-fun s4 () Int (seq.len s3))+[GOOD] (define-fun s5 () Bool (= s1 s4))+[GOOD] (define-fun s6 () Int (proj_1_SBVTuple2 s0))+[GOOD] (define-fun s7 () Int (seq.nth s3 s1))+[GOOD] (define-fun s8 () Int (* s6 s7))+[GOOD] (define-fun s9 () Int (- s4 s2))+[GOOD] (define-fun s10 () (Seq Int) (seq.extract s3 s2 s9))+[GOOD] (define-fun s11 () (SBVTuple2 Int (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 Int (Seq Int))) s8 s10))+[GOOD] (define-fun s13 () Int (ite s5 s6 s12))+[GOOD] (define-fun s14 () Bool (>= s4 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s14))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {sbv.foldl @(SBV (Integer,Integer) -> SBV Integer)_dd270bb7de @(SBV (Integer,[Integer]) -> SBV Integer)}: replaying 11 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (SBVTuple2 Int (Seq Int))) ; tracks user variable "arg"+[GOOD] (declare-fun s12 () Int) ; tracks user variable "__internal_sbv_s12"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () (Seq Int) (proj_2_SBVTuple2 s0))+[GOOD] (define-fun s4 () Int (seq.len s3))+[GOOD] (define-fun s5 () Bool (= s1 s4))+[GOOD] (define-fun s6 () Int (proj_1_SBVTuple2 s0))+[GOOD] (define-fun s7 () Int (seq.nth s3 s1))+[GOOD] (define-fun s8 () Int (* s6 s7))+[GOOD] (define-fun s9 () Int (- s4 s2))+[GOOD] (define-fun s10 () (Seq Int) (seq.extract s3 s2 s9))+[GOOD] (define-fun s11 () (SBVTuple2 Int (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 Int (Seq Int))) s8 s10))+[GOOD] (define-fun s13 () Int (ite s5 s6 s12))+[GOOD] (define-fun s14 () (Seq Int) (proj_2_SBVTuple2 s11))+[GOOD] (define-fun s15 () Int (seq.len s14))+[GOOD] (define-fun s16 () Bool (not s5))+[GOOD] (define-fun s17 () Bool (> s4 s15))+[GOOD] (define-fun s18 () Bool (=> s16 s17))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s18))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] sbv.foldl @(SBV (Integer,Integer) -> SBV Integer)_dd270bb7de @(SBV (Integer,[Integer]) -> SBV Integer): length arg1._2 -> OK+[MEASURE] Passed (terminating): sbv.foldl @(SBV (Integer,Integer) -> SBV Integer)_dd270bb7de @(SBV (Integer,[Integer]) -> SBV Integer)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all. [GOOD] ; --- tuples --- [GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)                                            ((mkSBVTuple2 (proj_1_SBVTuple2 T1)
SBVTestSuite/GoldFiles/lambda17.gold view
@@ -1,3 +1,10 @@+[MEASURE] Verifying termination measures for: sbv.foldl @(SBV ([Integer],Integer) -> SBV [Integer])_2d6951daf1 @(SBV ([Integer],[Integer]) -> SBV [Integer])+[MEASURE] Checking: sbv.foldl @(SBV ([Integer],Integer) -> SBV [Integer])_2d6951daf1 @(SBV ([Integer],[Integer]) -> SBV [Integer])+[MEASURE] sbv.foldl @(SBV ([Integer],Integer) -> SBV [Integer])_2d6951daf1 @(SBV ([Integer],[Integer]) -> SBV [Integer]): barified = "|sbv.foldl @(SBV ([Integer],Integer) -> SBV [Integer])_2d6951daf1 @(SBV ([Integer],[Integer]) -> SBV [Integer])|"+[MEASURE] sbv.foldl @(SBV ([Integer],Integer) -> SBV [Integer])_2d6951daf1 @(SBV ([Integer],[Integer]) -> SBV [Integer]): Uninterpreted ops in DAG: [("|sbv.foldl @(SBV ([Integer],Integer) -> SBV [Integer])_2d6951daf1 @(SBV ([Integer],[Integer]) -> SBV [Integer])|",1)]+[MEASURE] sbv.foldl @(SBV ([Integer],Integer) -> SBV [Integer])_2d6951daf1 @(SBV ([Integer],[Integer]) -> SBV [Integer]): recursive calls found = 1+[MEASURE] sbv.foldl @(SBV ([Integer],Integer) -> SBV [Integer])_2d6951daf1 @(SBV ([Integer],[Integer]) -> SBV [Integer]): trying length arg1._1+[MEASURE] replayDAG {sbv.foldl @(SBV ([Integer],Integer) -> SBV [Integer])_2d6951daf1 @(SBV ([Integer],[Integer]) -> SBV [Integer])}: replaying 12 node(s) ** Calling: z3 -nw -in -smt2 [GOOD] ; Automatically generated by SBV. Do not edit. [GOOD] (set-option :print-success true)@@ -9,7 +16,219 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts ---+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (SBVTuple2 (Seq Int) (Seq Int))) ; tracks user variable "arg"+[GOOD] (declare-fun s13 () (Seq Int)) ; tracks user variable "__internal_sbv_s13"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () (Seq Int) (proj_2_SBVTuple2 s0))+[GOOD] (define-fun s4 () Int (seq.len s3))+[GOOD] (define-fun s5 () Bool (= s1 s4))+[GOOD] (define-fun s6 () (Seq Int) (proj_1_SBVTuple2 s0))+[GOOD] (define-fun s7 () Int (seq.nth s3 s1))+[GOOD] (define-fun s8 () (Seq Int) (seq.unit s7))+[GOOD] (define-fun s9 () (Seq Int) (seq.++ s8 s6))+[GOOD] (define-fun s10 () Int (- s4 s2))+[GOOD] (define-fun s11 () (Seq Int) (seq.extract s3 s2 s10))+[GOOD] (define-fun s12 () (SBVTuple2 (Seq Int) (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 (Seq Int) (Seq Int))) s9 s11))+[GOOD] (define-fun s14 () (Seq Int) (ite s5 s6 s13))+[GOOD] (define-fun s15 () Int (seq.len s6))+[GOOD] (define-fun s16 () Bool (>= s15 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s16))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {sbv.foldl @(SBV ([Integer],Integer) -> SBV [Integer])_2d6951daf1 @(SBV ([Integer],[Integer]) -> SBV [Integer])}: replaying 12 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (SBVTuple2 (Seq Int) (Seq Int))) ; tracks user variable "arg"+[GOOD] (declare-fun s13 () (Seq Int)) ; tracks user variable "__internal_sbv_s13"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () (Seq Int) (proj_2_SBVTuple2 s0))+[GOOD] (define-fun s4 () Int (seq.len s3))+[GOOD] (define-fun s5 () Bool (= s1 s4))+[GOOD] (define-fun s6 () (Seq Int) (proj_1_SBVTuple2 s0))+[GOOD] (define-fun s7 () Int (seq.nth s3 s1))+[GOOD] (define-fun s8 () (Seq Int) (seq.unit s7))+[GOOD] (define-fun s9 () (Seq Int) (seq.++ s8 s6))+[GOOD] (define-fun s10 () Int (- s4 s2))+[GOOD] (define-fun s11 () (Seq Int) (seq.extract s3 s2 s10))+[GOOD] (define-fun s12 () (SBVTuple2 (Seq Int) (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 (Seq Int) (Seq Int))) s9 s11))+[GOOD] (define-fun s14 () (Seq Int) (ite s5 s6 s13))+[GOOD] (define-fun s15 () Int (seq.len s6))+[GOOD] (define-fun s16 () (Seq Int) (proj_1_SBVTuple2 s12))+[GOOD] (define-fun s17 () Int (seq.len s16))+[GOOD] (define-fun s18 () Bool (not s5))+[GOOD] (define-fun s19 () Bool (> s15 s17))+[GOOD] (define-fun s20 () Bool (=> s18 s19))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s20))+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s15))+[RECV] ((s15 0))+[SEND] (get-value (s17))+[RECV] ((s17 1))+[SEND] (get-value (s0))+[RECV] ((s0 (mkSBVTuple2 (as seq.empty (Seq Int)) (seq.unit 2))))+[SEND] (get-value (s13))+[RECV] ((s13 (as seq.empty (Seq Int))))+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] sbv.foldl @(SBV ([Integer],Integer) -> SBV [Integer])_2d6951daf1 @(SBV ([Integer],[Integer]) -> SBV [Integer]): length arg1._1 failed strict decrease: Falsifiable. Counter-example:+  arg    = ([],[2]) :: ([Integer], [Integer])+  before =        0 :: Integer+  then   =        1 :: Integer+[MEASURE] sbv.foldl @(SBV ([Integer],Integer) -> SBV [Integer])_2d6951daf1 @(SBV ([Integer],[Integer]) -> SBV [Integer]): trying next candidate..+[MEASURE] sbv.foldl @(SBV ([Integer],Integer) -> SBV [Integer])_2d6951daf1 @(SBV ([Integer],[Integer]) -> SBV [Integer]): trying length arg1._2+[MEASURE] replayDAG {sbv.foldl @(SBV ([Integer],Integer) -> SBV [Integer])_2d6951daf1 @(SBV ([Integer],[Integer]) -> SBV [Integer])}: replaying 12 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (SBVTuple2 (Seq Int) (Seq Int))) ; tracks user variable "arg"+[GOOD] (declare-fun s13 () (Seq Int)) ; tracks user variable "__internal_sbv_s13"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () (Seq Int) (proj_2_SBVTuple2 s0))+[GOOD] (define-fun s4 () Int (seq.len s3))+[GOOD] (define-fun s5 () Bool (= s1 s4))+[GOOD] (define-fun s6 () (Seq Int) (proj_1_SBVTuple2 s0))+[GOOD] (define-fun s7 () Int (seq.nth s3 s1))+[GOOD] (define-fun s8 () (Seq Int) (seq.unit s7))+[GOOD] (define-fun s9 () (Seq Int) (seq.++ s8 s6))+[GOOD] (define-fun s10 () Int (- s4 s2))+[GOOD] (define-fun s11 () (Seq Int) (seq.extract s3 s2 s10))+[GOOD] (define-fun s12 () (SBVTuple2 (Seq Int) (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 (Seq Int) (Seq Int))) s9 s11))+[GOOD] (define-fun s14 () (Seq Int) (ite s5 s6 s13))+[GOOD] (define-fun s15 () Bool (>= s4 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s15))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {sbv.foldl @(SBV ([Integer],Integer) -> SBV [Integer])_2d6951daf1 @(SBV ([Integer],[Integer]) -> SBV [Integer])}: replaying 12 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (SBVTuple2 (Seq Int) (Seq Int))) ; tracks user variable "arg"+[GOOD] (declare-fun s13 () (Seq Int)) ; tracks user variable "__internal_sbv_s13"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () (Seq Int) (proj_2_SBVTuple2 s0))+[GOOD] (define-fun s4 () Int (seq.len s3))+[GOOD] (define-fun s5 () Bool (= s1 s4))+[GOOD] (define-fun s6 () (Seq Int) (proj_1_SBVTuple2 s0))+[GOOD] (define-fun s7 () Int (seq.nth s3 s1))+[GOOD] (define-fun s8 () (Seq Int) (seq.unit s7))+[GOOD] (define-fun s9 () (Seq Int) (seq.++ s8 s6))+[GOOD] (define-fun s10 () Int (- s4 s2))+[GOOD] (define-fun s11 () (Seq Int) (seq.extract s3 s2 s10))+[GOOD] (define-fun s12 () (SBVTuple2 (Seq Int) (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 (Seq Int) (Seq Int))) s9 s11))+[GOOD] (define-fun s14 () (Seq Int) (ite s5 s6 s13))+[GOOD] (define-fun s15 () (Seq Int) (proj_2_SBVTuple2 s12))+[GOOD] (define-fun s16 () Int (seq.len s15))+[GOOD] (define-fun s17 () Bool (not s5))+[GOOD] (define-fun s18 () Bool (> s4 s16))+[GOOD] (define-fun s19 () Bool (=> s17 s18))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s19))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] sbv.foldl @(SBV ([Integer],Integer) -> SBV [Integer])_2d6951daf1 @(SBV ([Integer],[Integer]) -> SBV [Integer]): length arg1._2 -> OK+[MEASURE] Passed (terminating): sbv.foldl @(SBV ([Integer],Integer) -> SBV [Integer])_2d6951daf1 @(SBV ([Integer],[Integer]) -> SBV [Integer])+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all. [GOOD] ; --- tuples --- [GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)                                            ((mkSBVTuple2 (proj_1_SBVTuple2 T1)
SBVTestSuite/GoldFiles/lambda18.gold view
@@ -1,3 +1,10 @@+[MEASURE] Verifying termination measures for: sbv.zip @(SBV [Integer] -> SBV [Integer] -> SBV [(Integer,Integer)]), sbv.foldl @(SBV (Integer,(Integer,Integer)) -> SBV Integer)_f29a298542 @(SBV (Integer,[(Integer,Integer)]) -> SBV Integer)+[MEASURE] Checking: sbv.zip @(SBV [Integer] -> SBV [Integer] -> SBV [(Integer,Integer)])+[MEASURE] sbv.zip @(SBV [Integer] -> SBV [Integer] -> SBV [(Integer,Integer)]): barified = "|sbv.zip @(SBV [Integer] -> SBV [Integer] -> SBV [(Integer,Integer)])|"+[MEASURE] sbv.zip @(SBV [Integer] -> SBV [Integer] -> SBV [(Integer,Integer)]): Uninterpreted ops in DAG: [("|sbv.zip @(SBV [Integer] -> SBV [Integer] -> SBV [(Integer,Integer)])|",2)]+[MEASURE] sbv.zip @(SBV [Integer] -> SBV [Integer] -> SBV [(Integer,Integer)]): recursive calls found = 1+[MEASURE] sbv.zip @(SBV [Integer] -> SBV [Integer] -> SBV [(Integer,Integer)]): trying length arg1+[MEASURE] replayDAG {sbv.zip @(SBV [Integer] -> SBV [Integer] -> SBV [(Integer,Integer)])}: replaying 16 node(s) ** Calling: z3 -nw -in -smt2 [GOOD] ; Automatically generated by SBV. Do not edit. [GOOD] (set-option :print-success true)@@ -9,13 +16,351 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)                                            ((mkSBVTuple2 (proj_1_SBVTuple2 T1)                                                          (proj_2_SBVTuple2 T2)))))) [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] (define-fun s4 () (Seq (SBVTuple2 Int Int)) (as seq.empty (Seq (SBVTuple2 Int Int))))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq Int)) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () (Seq Int)) ; tracks user variable "arg1"+[GOOD] (declare-fun s17 () (Seq (SBVTuple2 Int Int))) ; tracks user variable "__internal_sbv_s17"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s5 () Int (seq.len s0))+[GOOD] (define-fun s6 () Bool (= s2 s5))+[GOOD] (define-fun s7 () Int (seq.len s1))+[GOOD] (define-fun s8 () Bool (= s2 s7))+[GOOD] (define-fun s9 () Int (seq.nth s0 s2))+[GOOD] (define-fun s10 () Int (seq.nth s1 s2))+[GOOD] (define-fun s11 () (SBVTuple2 Int Int) ((as mkSBVTuple2 (SBVTuple2 Int Int)) s9 s10))+[GOOD] (define-fun s12 () (Seq (SBVTuple2 Int Int)) (seq.unit s11))+[GOOD] (define-fun s13 () Int (- s5 s3))+[GOOD] (define-fun s14 () (Seq Int) (seq.extract s0 s3 s13))+[GOOD] (define-fun s15 () Int (- s7 s3))+[GOOD] (define-fun s16 () (Seq Int) (seq.extract s1 s3 s15))+[GOOD] (define-fun s18 () (Seq (SBVTuple2 Int Int)) (seq.++ s12 s17))+[GOOD] (define-fun s19 () (Seq (SBVTuple2 Int Int)) (ite s8 s4 s18))+[GOOD] (define-fun s20 () (Seq (SBVTuple2 Int Int)) (ite s6 s4 s19))+[GOOD] (define-fun s21 () Bool (>= s5 s2))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s21))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {sbv.zip @(SBV [Integer] -> SBV [Integer] -> SBV [(Integer,Integer)])}: replaying 16 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] (define-fun s4 () (Seq (SBVTuple2 Int Int)) (as seq.empty (Seq (SBVTuple2 Int Int))))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq Int)) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () (Seq Int)) ; tracks user variable "arg1"+[GOOD] (declare-fun s17 () (Seq (SBVTuple2 Int Int))) ; tracks user variable "__internal_sbv_s17"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s5 () Int (seq.len s0))+[GOOD] (define-fun s6 () Bool (= s2 s5))+[GOOD] (define-fun s7 () Int (seq.len s1))+[GOOD] (define-fun s8 () Bool (= s2 s7))+[GOOD] (define-fun s9 () Int (seq.nth s0 s2))+[GOOD] (define-fun s10 () Int (seq.nth s1 s2))+[GOOD] (define-fun s11 () (SBVTuple2 Int Int) ((as mkSBVTuple2 (SBVTuple2 Int Int)) s9 s10))+[GOOD] (define-fun s12 () (Seq (SBVTuple2 Int Int)) (seq.unit s11))+[GOOD] (define-fun s13 () Int (- s5 s3))+[GOOD] (define-fun s14 () (Seq Int) (seq.extract s0 s3 s13))+[GOOD] (define-fun s15 () Int (- s7 s3))+[GOOD] (define-fun s16 () (Seq Int) (seq.extract s1 s3 s15))+[GOOD] (define-fun s18 () (Seq (SBVTuple2 Int Int)) (seq.++ s12 s17))+[GOOD] (define-fun s19 () (Seq (SBVTuple2 Int Int)) (ite s8 s4 s18))+[GOOD] (define-fun s20 () (Seq (SBVTuple2 Int Int)) (ite s6 s4 s19))+[GOOD] (define-fun s21 () Int (seq.len s14))+[GOOD] (define-fun s22 () Bool (not s8))+[GOOD] (define-fun s23 () Bool (not s6))+[GOOD] (define-fun s24 () Bool (and s22 s23))+[GOOD] (define-fun s25 () Bool (> s5 s21))+[GOOD] (define-fun s26 () Bool (=> s24 s25))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s26))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] sbv.zip @(SBV [Integer] -> SBV [Integer] -> SBV [(Integer,Integer)]): length arg1 -> OK+[MEASURE] Passed (terminating): sbv.zip @(SBV [Integer] -> SBV [Integer] -> SBV [(Integer,Integer)])+[MEASURE] Checking: sbv.foldl @(SBV (Integer,(Integer,Integer)) -> SBV Integer)_f29a298542 @(SBV (Integer,[(Integer,Integer)]) -> SBV Integer)+[MEASURE] sbv.foldl @(SBV (Integer,(Integer,Integer)) -> SBV Integer)_f29a298542 @(SBV (Integer,[(Integer,Integer)]) -> SBV Integer): barified = "|sbv.foldl @(SBV (Integer,(Integer,Integer)) -> SBV Integer)_f29a298542 @(SBV (Integer,[(Integer,Integer)]) -> SBV Integer)|"+[MEASURE] sbv.foldl @(SBV (Integer,(Integer,Integer)) -> SBV Integer)_f29a298542 @(SBV (Integer,[(Integer,Integer)]) -> SBV Integer): Uninterpreted ops in DAG: [("|sbv.foldl @(SBV (Integer,(Integer,Integer)) -> SBV Integer)_f29a298542 @(SBV (Integer,[(Integer,Integer)]) -> SBV Integer)|",1)]+[MEASURE] sbv.foldl @(SBV (Integer,(Integer,Integer)) -> SBV Integer)_f29a298542 @(SBV (Integer,[(Integer,Integer)]) -> SBV Integer): recursive calls found = 1+[MEASURE] sbv.foldl @(SBV (Integer,(Integer,Integer)) -> SBV Integer)_f29a298542 @(SBV (Integer,[(Integer,Integer)]) -> SBV Integer): trying abs arg1._1+[MEASURE] replayDAG {sbv.foldl @(SBV (Integer,(Integer,Integer)) -> SBV Integer)_f29a298542 @(SBV (Integer,[(Integer,Integer)]) -> SBV Integer)}: replaying 14 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (SBVTuple2 Int (Seq (SBVTuple2 Int Int)))) ; tracks user variable "arg"+[GOOD] (declare-fun s15 () Int) ; tracks user variable "__internal_sbv_s15"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () (Seq (SBVTuple2 Int Int)) (proj_2_SBVTuple2 s0))+[GOOD] (define-fun s4 () Int (seq.len s3))+[GOOD] (define-fun s5 () Bool (= s1 s4))+[GOOD] (define-fun s6 () Int (proj_1_SBVTuple2 s0))+[GOOD] (define-fun s7 () (SBVTuple2 Int Int) (seq.nth s3 s1))+[GOOD] (define-fun s8 () Int (proj_1_SBVTuple2 s7))+[GOOD] (define-fun s9 () Int (+ s6 s8))+[GOOD] (define-fun s10 () Int (proj_2_SBVTuple2 s7))+[GOOD] (define-fun s11 () Int (+ s9 s10))+[GOOD] (define-fun s12 () Int (- s4 s2))+[GOOD] (define-fun s13 () (Seq (SBVTuple2 Int Int)) (seq.extract s3 s2 s12))+[GOOD] (define-fun s14 () (SBVTuple2 Int (Seq (SBVTuple2 Int Int))) ((as mkSBVTuple2 (SBVTuple2 Int (Seq (SBVTuple2 Int Int)))) s11 s13))+[GOOD] (define-fun s16 () Int (ite s5 s6 s15))+[GOOD] (define-fun s17 () Int (abs s6))+[GOOD] (define-fun s18 () Bool (>= s17 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s18))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {sbv.foldl @(SBV (Integer,(Integer,Integer)) -> SBV Integer)_f29a298542 @(SBV (Integer,[(Integer,Integer)]) -> SBV Integer)}: replaying 14 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (SBVTuple2 Int (Seq (SBVTuple2 Int Int)))) ; tracks user variable "arg"+[GOOD] (declare-fun s15 () Int) ; tracks user variable "__internal_sbv_s15"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () (Seq (SBVTuple2 Int Int)) (proj_2_SBVTuple2 s0))+[GOOD] (define-fun s4 () Int (seq.len s3))+[GOOD] (define-fun s5 () Bool (= s1 s4))+[GOOD] (define-fun s6 () Int (proj_1_SBVTuple2 s0))+[GOOD] (define-fun s7 () (SBVTuple2 Int Int) (seq.nth s3 s1))+[GOOD] (define-fun s8 () Int (proj_1_SBVTuple2 s7))+[GOOD] (define-fun s9 () Int (+ s6 s8))+[GOOD] (define-fun s10 () Int (proj_2_SBVTuple2 s7))+[GOOD] (define-fun s11 () Int (+ s9 s10))+[GOOD] (define-fun s12 () Int (- s4 s2))+[GOOD] (define-fun s13 () (Seq (SBVTuple2 Int Int)) (seq.extract s3 s2 s12))+[GOOD] (define-fun s14 () (SBVTuple2 Int (Seq (SBVTuple2 Int Int))) ((as mkSBVTuple2 (SBVTuple2 Int (Seq (SBVTuple2 Int Int)))) s11 s13))+[GOOD] (define-fun s16 () Int (ite s5 s6 s15))+[GOOD] (define-fun s17 () Int (abs s6))+[GOOD] (define-fun s18 () Int (proj_1_SBVTuple2 s14))+[GOOD] (define-fun s19 () Int (abs s18))+[GOOD] (define-fun s20 () Bool (not s5))+[GOOD] (define-fun s21 () Bool (> s17 s19))+[GOOD] (define-fun s22 () Bool (=> s20 s21))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s22))+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s17))+[RECV] ((s17 0))+[SEND] (get-value (s19))+[RECV] ((s19 0))+[SEND] (get-value (s0))+[RECV] ((s0 (mkSBVTuple2 0 (seq.unit (mkSBVTuple2 0 0)))))+[SEND] (get-value (s15))+[RECV] ((s15 0))+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] sbv.foldl @(SBV (Integer,(Integer,Integer)) -> SBV Integer)_f29a298542 @(SBV (Integer,[(Integer,Integer)]) -> SBV Integer): abs arg1._1 failed strict decrease: Falsifiable. Counter-example:+  arg    = (0,[(0,0)]) :: (Integer, [(Integer, Integer)])+  before =           0 :: Integer+  then   =           0 :: Integer+[MEASURE] sbv.foldl @(SBV (Integer,(Integer,Integer)) -> SBV Integer)_f29a298542 @(SBV (Integer,[(Integer,Integer)]) -> SBV Integer): trying next candidate..+[MEASURE] sbv.foldl @(SBV (Integer,(Integer,Integer)) -> SBV Integer)_f29a298542 @(SBV (Integer,[(Integer,Integer)]) -> SBV Integer): trying length arg1._2+[MEASURE] replayDAG {sbv.foldl @(SBV (Integer,(Integer,Integer)) -> SBV Integer)_f29a298542 @(SBV (Integer,[(Integer,Integer)]) -> SBV Integer)}: replaying 14 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (SBVTuple2 Int (Seq (SBVTuple2 Int Int)))) ; tracks user variable "arg"+[GOOD] (declare-fun s15 () Int) ; tracks user variable "__internal_sbv_s15"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () (Seq (SBVTuple2 Int Int)) (proj_2_SBVTuple2 s0))+[GOOD] (define-fun s4 () Int (seq.len s3))+[GOOD] (define-fun s5 () Bool (= s1 s4))+[GOOD] (define-fun s6 () Int (proj_1_SBVTuple2 s0))+[GOOD] (define-fun s7 () (SBVTuple2 Int Int) (seq.nth s3 s1))+[GOOD] (define-fun s8 () Int (proj_1_SBVTuple2 s7))+[GOOD] (define-fun s9 () Int (+ s6 s8))+[GOOD] (define-fun s10 () Int (proj_2_SBVTuple2 s7))+[GOOD] (define-fun s11 () Int (+ s9 s10))+[GOOD] (define-fun s12 () Int (- s4 s2))+[GOOD] (define-fun s13 () (Seq (SBVTuple2 Int Int)) (seq.extract s3 s2 s12))+[GOOD] (define-fun s14 () (SBVTuple2 Int (Seq (SBVTuple2 Int Int))) ((as mkSBVTuple2 (SBVTuple2 Int (Seq (SBVTuple2 Int Int)))) s11 s13))+[GOOD] (define-fun s16 () Int (ite s5 s6 s15))+[GOOD] (define-fun s17 () Bool (>= s4 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s17))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {sbv.foldl @(SBV (Integer,(Integer,Integer)) -> SBV Integer)_f29a298542 @(SBV (Integer,[(Integer,Integer)]) -> SBV Integer)}: replaying 14 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (SBVTuple2 Int (Seq (SBVTuple2 Int Int)))) ; tracks user variable "arg"+[GOOD] (declare-fun s15 () Int) ; tracks user variable "__internal_sbv_s15"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () (Seq (SBVTuple2 Int Int)) (proj_2_SBVTuple2 s0))+[GOOD] (define-fun s4 () Int (seq.len s3))+[GOOD] (define-fun s5 () Bool (= s1 s4))+[GOOD] (define-fun s6 () Int (proj_1_SBVTuple2 s0))+[GOOD] (define-fun s7 () (SBVTuple2 Int Int) (seq.nth s3 s1))+[GOOD] (define-fun s8 () Int (proj_1_SBVTuple2 s7))+[GOOD] (define-fun s9 () Int (+ s6 s8))+[GOOD] (define-fun s10 () Int (proj_2_SBVTuple2 s7))+[GOOD] (define-fun s11 () Int (+ s9 s10))+[GOOD] (define-fun s12 () Int (- s4 s2))+[GOOD] (define-fun s13 () (Seq (SBVTuple2 Int Int)) (seq.extract s3 s2 s12))+[GOOD] (define-fun s14 () (SBVTuple2 Int (Seq (SBVTuple2 Int Int))) ((as mkSBVTuple2 (SBVTuple2 Int (Seq (SBVTuple2 Int Int)))) s11 s13))+[GOOD] (define-fun s16 () Int (ite s5 s6 s15))+[GOOD] (define-fun s17 () (Seq (SBVTuple2 Int Int)) (proj_2_SBVTuple2 s14))+[GOOD] (define-fun s18 () Int (seq.len s17))+[GOOD] (define-fun s19 () Bool (not s5))+[GOOD] (define-fun s20 () Bool (> s4 s18))+[GOOD] (define-fun s21 () Bool (=> s19 s20))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s21))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] sbv.foldl @(SBV (Integer,(Integer,Integer)) -> SBV Integer)_f29a298542 @(SBV (Integer,[(Integer,Integer)]) -> SBV Integer): length arg1._2 -> OK+[MEASURE] Passed (terminating): sbv.foldl @(SBV (Integer,(Integer,Integer)) -> SBV Integer)_f29a298542 @(SBV (Integer,[(Integer,Integer)]) -> SBV Integer)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants --- [GOOD] (define-fun s2 () (Seq Int) (seq.++ (seq.unit 1) (seq.unit 2) (seq.unit 3) (seq.unit 4) (seq.unit 5))) [GOOD] (define-fun s4 () Int 0) [GOOD] (define-fun s5 () (Seq Int) (seq.++ (seq.unit 10) (seq.unit 11) (seq.unit 12) (seq.unit 13) (seq.unit 14) (seq.unit 15)))@@ -29,24 +374,24 @@ [GOOD] ; |sbv.zip @(SBV [Integer] -> SBV [Integer] -> SBV [(Integer,Integer)])| :: [SInteger] -> [SInteger] -> [(SInteger, SInteger)] [Recursive] [GOOD] (define-fun-rec |sbv.zip @(SBV [Integer] -> SBV [Integer] -> SBV [(Integer,Integer)])| ((l1_s0 (Seq Int)) (l1_s1 (Seq Int))) (Seq (SBVTuple2 Int Int))                                  (let ((l1_s3 0))-                                 (let ((l1_s8 (as seq.empty (Seq (SBVTuple2 Int Int)))))-                                 (let ((l1_s13 1))+                                 (let ((l1_s5 (as seq.empty (Seq (SBVTuple2 Int Int)))))+                                 (let ((l1_s12 1))                                  (let ((l1_s2 (seq.len l1_s0)))                                  (let ((l1_s4 (= l1_s2 l1_s3)))-                                 (let ((l1_s5 (seq.len l1_s1)))-                                 (let ((l1_s6 (= l1_s3 l1_s5)))-                                 (let ((l1_s7 (or l1_s4 l1_s6)))-                                 (let ((l1_s9 (seq.nth l1_s0 l1_s3)))-                                 (let ((l1_s10 (seq.nth l1_s1 l1_s3)))-                                 (let ((l1_s11 ((as mkSBVTuple2 (SBVTuple2 Int Int)) l1_s9 l1_s10)))-                                 (let ((l1_s12 (seq.unit l1_s11)))-                                 (let ((l1_s14 (- l1_s2 l1_s13)))-                                 (let ((l1_s15 (seq.extract l1_s0 l1_s13 l1_s14)))-                                 (let ((l1_s16 (- l1_s5 l1_s13)))-                                 (let ((l1_s17 (seq.extract l1_s1 l1_s13 l1_s16)))-                                 (let ((l1_s18 (|sbv.zip @(SBV [Integer] -> SBV [Integer] -> SBV [(Integer,Integer)])| l1_s15 l1_s17)))-                                 (let ((l1_s19 (seq.++ l1_s12 l1_s18)))-                                 (let ((l1_s20 (ite l1_s7 l1_s8 l1_s19)))+                                 (let ((l1_s6 (seq.len l1_s1)))+                                 (let ((l1_s7 (= l1_s3 l1_s6)))+                                 (let ((l1_s8 (seq.nth l1_s0 l1_s3)))+                                 (let ((l1_s9 (seq.nth l1_s1 l1_s3)))+                                 (let ((l1_s10 ((as mkSBVTuple2 (SBVTuple2 Int Int)) l1_s8 l1_s9)))+                                 (let ((l1_s11 (seq.unit l1_s10)))+                                 (let ((l1_s13 (- l1_s2 l1_s12)))+                                 (let ((l1_s14 (seq.extract l1_s0 l1_s12 l1_s13)))+                                 (let ((l1_s15 (- l1_s6 l1_s12)))+                                 (let ((l1_s16 (seq.extract l1_s1 l1_s12 l1_s15)))+                                 (let ((l1_s17 (|sbv.zip @(SBV [Integer] -> SBV [Integer] -> SBV [(Integer,Integer)])| l1_s14 l1_s16)))+                                 (let ((l1_s18 (seq.++ l1_s11 l1_s17)))+                                 (let ((l1_s19 (ite l1_s7 l1_s5 l1_s18)))+                                 (let ((l1_s20 (ite l1_s4 l1_s5 l1_s19)))                                  l1_s20)))))))))))))))))))) [GOOD] ; |sbv.foldl @(SBV (Integer,(Integer,Integer)) -> SBV Integer)_f29a298542 @(SBV (Integer,[(Integer,Integer)]) -> SBV Integer)| :: (SInteger, [(SInteger, SInteger)]) -> SInteger [Recursive] [GOOD] (define-fun-rec |sbv.foldl @(SBV (Integer,(Integer,Integer)) -> SBV Integer)_f29a298542 @(SBV (Integer,[(Integer,Integer)]) -> SBV Integer)| ((l1_s0 (SBVTuple2 Int (Seq (SBVTuple2 Int Int))))) Int
SBVTestSuite/GoldFiles/lambda19.gold view
@@ -1,3 +1,10 @@+[MEASURE] Verifying termination measures for: sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer)+[MEASURE] Checking: sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer)+[MEASURE] sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer): barified = "|sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer)|"+[MEASURE] sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer): Uninterpreted ops in DAG: [("|sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer)|",1)]+[MEASURE] sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer): recursive calls found = 1+[MEASURE] sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer): trying abs arg1._1+[MEASURE] replayDAG {sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer)}: replaying 11 node(s) ** Calling: z3 -nw -in -smt2 [GOOD] ; Automatically generated by SBV. Do not edit. [GOOD] (set-option :print-success true)@@ -9,7 +16,215 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts ---+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (SBVTuple2 Int (Seq Int))) ; tracks user variable "arg"+[GOOD] (declare-fun s11 () Int) ; tracks user variable "__internal_sbv_s11"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () (Seq Int) (proj_2_SBVTuple2 s0))+[GOOD] (define-fun s4 () Int (seq.len s3))+[GOOD] (define-fun s5 () Bool (= s1 s4))+[GOOD] (define-fun s6 () Int (proj_1_SBVTuple2 s0))+[GOOD] (define-fun s7 () Int (seq.nth s3 s1))+[GOOD] (define-fun s8 () Int (- s4 s2))+[GOOD] (define-fun s9 () (Seq Int) (seq.extract s3 s2 s8))+[GOOD] (define-fun s10 () (SBVTuple2 Int (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 Int (Seq Int))) s6 s9))+[GOOD] (define-fun s12 () Int (+ s7 s11))+[GOOD] (define-fun s13 () Int (ite s5 s6 s12))+[GOOD] (define-fun s14 () Int (abs s6))+[GOOD] (define-fun s15 () Bool (>= s14 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s15))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer)}: replaying 11 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (SBVTuple2 Int (Seq Int))) ; tracks user variable "arg"+[GOOD] (declare-fun s11 () Int) ; tracks user variable "__internal_sbv_s11"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () (Seq Int) (proj_2_SBVTuple2 s0))+[GOOD] (define-fun s4 () Int (seq.len s3))+[GOOD] (define-fun s5 () Bool (= s1 s4))+[GOOD] (define-fun s6 () Int (proj_1_SBVTuple2 s0))+[GOOD] (define-fun s7 () Int (seq.nth s3 s1))+[GOOD] (define-fun s8 () Int (- s4 s2))+[GOOD] (define-fun s9 () (Seq Int) (seq.extract s3 s2 s8))+[GOOD] (define-fun s10 () (SBVTuple2 Int (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 Int (Seq Int))) s6 s9))+[GOOD] (define-fun s12 () Int (+ s7 s11))+[GOOD] (define-fun s13 () Int (ite s5 s6 s12))+[GOOD] (define-fun s14 () Int (abs s6))+[GOOD] (define-fun s15 () Int (proj_1_SBVTuple2 s10))+[GOOD] (define-fun s16 () Int (abs s15))+[GOOD] (define-fun s17 () Bool (not s5))+[GOOD] (define-fun s18 () Bool (> s14 s16))+[GOOD] (define-fun s19 () Bool (=> s17 s18))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s19))+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s14))+[RECV] ((s14 0))+[SEND] (get-value (s16))+[RECV] ((s16 0))+[SEND] (get-value (s0))+[RECV] ((s0 (mkSBVTuple2 0 (seq.unit 2))))+[SEND] (get-value (s11))+[RECV] ((s11 0))+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer): abs arg1._1 failed strict decrease: Falsifiable. Counter-example:+  arg    = (0,[2]) :: (Integer, [Integer])+  before =       0 :: Integer+  then   =       0 :: Integer+[MEASURE] sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer): trying next candidate..+[MEASURE] sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer): trying length arg1._2+[MEASURE] replayDAG {sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer)}: replaying 11 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (SBVTuple2 Int (Seq Int))) ; tracks user variable "arg"+[GOOD] (declare-fun s11 () Int) ; tracks user variable "__internal_sbv_s11"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () (Seq Int) (proj_2_SBVTuple2 s0))+[GOOD] (define-fun s4 () Int (seq.len s3))+[GOOD] (define-fun s5 () Bool (= s1 s4))+[GOOD] (define-fun s6 () Int (proj_1_SBVTuple2 s0))+[GOOD] (define-fun s7 () Int (seq.nth s3 s1))+[GOOD] (define-fun s8 () Int (- s4 s2))+[GOOD] (define-fun s9 () (Seq Int) (seq.extract s3 s2 s8))+[GOOD] (define-fun s10 () (SBVTuple2 Int (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 Int (Seq Int))) s6 s9))+[GOOD] (define-fun s12 () Int (+ s7 s11))+[GOOD] (define-fun s13 () Int (ite s5 s6 s12))+[GOOD] (define-fun s14 () Bool (>= s4 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s14))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer)}: replaying 11 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (SBVTuple2 Int (Seq Int))) ; tracks user variable "arg"+[GOOD] (declare-fun s11 () Int) ; tracks user variable "__internal_sbv_s11"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () (Seq Int) (proj_2_SBVTuple2 s0))+[GOOD] (define-fun s4 () Int (seq.len s3))+[GOOD] (define-fun s5 () Bool (= s1 s4))+[GOOD] (define-fun s6 () Int (proj_1_SBVTuple2 s0))+[GOOD] (define-fun s7 () Int (seq.nth s3 s1))+[GOOD] (define-fun s8 () Int (- s4 s2))+[GOOD] (define-fun s9 () (Seq Int) (seq.extract s3 s2 s8))+[GOOD] (define-fun s10 () (SBVTuple2 Int (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 Int (Seq Int))) s6 s9))+[GOOD] (define-fun s12 () Int (+ s7 s11))+[GOOD] (define-fun s13 () Int (ite s5 s6 s12))+[GOOD] (define-fun s14 () (Seq Int) (proj_2_SBVTuple2 s10))+[GOOD] (define-fun s15 () Int (seq.len s14))+[GOOD] (define-fun s16 () Bool (not s5))+[GOOD] (define-fun s17 () Bool (> s4 s15))+[GOOD] (define-fun s18 () Bool (=> s16 s17))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s18))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer): length arg1._2 -> OK+[MEASURE] Passed (terminating): sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all. [GOOD] ; --- tuples --- [GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)                                            ((mkSBVTuple2 (proj_1_SBVTuple2 T1)
SBVTestSuite/GoldFiles/lambda20.gold view
@@ -1,3 +1,10 @@+[MEASURE] Verifying termination measures for: sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_dd270bb7de @(SBV (Integer,[Integer]) -> SBV Integer)+[MEASURE] Checking: sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_dd270bb7de @(SBV (Integer,[Integer]) -> SBV Integer)+[MEASURE] sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_dd270bb7de @(SBV (Integer,[Integer]) -> SBV Integer): barified = "|sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_dd270bb7de @(SBV (Integer,[Integer]) -> SBV Integer)|"+[MEASURE] sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_dd270bb7de @(SBV (Integer,[Integer]) -> SBV Integer): Uninterpreted ops in DAG: [("|sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_dd270bb7de @(SBV (Integer,[Integer]) -> SBV Integer)|",1)]+[MEASURE] sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_dd270bb7de @(SBV (Integer,[Integer]) -> SBV Integer): recursive calls found = 1+[MEASURE] sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_dd270bb7de @(SBV (Integer,[Integer]) -> SBV Integer): trying abs arg1._1+[MEASURE] replayDAG {sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_dd270bb7de @(SBV (Integer,[Integer]) -> SBV Integer)}: replaying 11 node(s) ** Calling: z3 -nw -in -smt2 [GOOD] ; Automatically generated by SBV. Do not edit. [GOOD] (set-option :print-success true)@@ -9,7 +16,215 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts ---+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (SBVTuple2 Int (Seq Int))) ; tracks user variable "arg"+[GOOD] (declare-fun s11 () Int) ; tracks user variable "__internal_sbv_s11"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () (Seq Int) (proj_2_SBVTuple2 s0))+[GOOD] (define-fun s4 () Int (seq.len s3))+[GOOD] (define-fun s5 () Bool (= s1 s4))+[GOOD] (define-fun s6 () Int (proj_1_SBVTuple2 s0))+[GOOD] (define-fun s7 () Int (seq.nth s3 s1))+[GOOD] (define-fun s8 () Int (- s4 s2))+[GOOD] (define-fun s9 () (Seq Int) (seq.extract s3 s2 s8))+[GOOD] (define-fun s10 () (SBVTuple2 Int (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 Int (Seq Int))) s6 s9))+[GOOD] (define-fun s12 () Int (* s7 s11))+[GOOD] (define-fun s13 () Int (ite s5 s6 s12))+[GOOD] (define-fun s14 () Int (abs s6))+[GOOD] (define-fun s15 () Bool (>= s14 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s15))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_dd270bb7de @(SBV (Integer,[Integer]) -> SBV Integer)}: replaying 11 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (SBVTuple2 Int (Seq Int))) ; tracks user variable "arg"+[GOOD] (declare-fun s11 () Int) ; tracks user variable "__internal_sbv_s11"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () (Seq Int) (proj_2_SBVTuple2 s0))+[GOOD] (define-fun s4 () Int (seq.len s3))+[GOOD] (define-fun s5 () Bool (= s1 s4))+[GOOD] (define-fun s6 () Int (proj_1_SBVTuple2 s0))+[GOOD] (define-fun s7 () Int (seq.nth s3 s1))+[GOOD] (define-fun s8 () Int (- s4 s2))+[GOOD] (define-fun s9 () (Seq Int) (seq.extract s3 s2 s8))+[GOOD] (define-fun s10 () (SBVTuple2 Int (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 Int (Seq Int))) s6 s9))+[GOOD] (define-fun s12 () Int (* s7 s11))+[GOOD] (define-fun s13 () Int (ite s5 s6 s12))+[GOOD] (define-fun s14 () Int (abs s6))+[GOOD] (define-fun s15 () Int (proj_1_SBVTuple2 s10))+[GOOD] (define-fun s16 () Int (abs s15))+[GOOD] (define-fun s17 () Bool (not s5))+[GOOD] (define-fun s18 () Bool (> s14 s16))+[GOOD] (define-fun s19 () Bool (=> s17 s18))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s19))+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s14))+[RECV] ((s14 0))+[SEND] (get-value (s16))+[RECV] ((s16 0))+[SEND] (get-value (s0))+[RECV] ((s0 (mkSBVTuple2 0 (seq.unit 2))))+[SEND] (get-value (s11))+[RECV] ((s11 0))+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_dd270bb7de @(SBV (Integer,[Integer]) -> SBV Integer): abs arg1._1 failed strict decrease: Falsifiable. Counter-example:+  arg    = (0,[2]) :: (Integer, [Integer])+  before =       0 :: Integer+  then   =       0 :: Integer+[MEASURE] sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_dd270bb7de @(SBV (Integer,[Integer]) -> SBV Integer): trying next candidate..+[MEASURE] sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_dd270bb7de @(SBV (Integer,[Integer]) -> SBV Integer): trying length arg1._2+[MEASURE] replayDAG {sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_dd270bb7de @(SBV (Integer,[Integer]) -> SBV Integer)}: replaying 11 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (SBVTuple2 Int (Seq Int))) ; tracks user variable "arg"+[GOOD] (declare-fun s11 () Int) ; tracks user variable "__internal_sbv_s11"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () (Seq Int) (proj_2_SBVTuple2 s0))+[GOOD] (define-fun s4 () Int (seq.len s3))+[GOOD] (define-fun s5 () Bool (= s1 s4))+[GOOD] (define-fun s6 () Int (proj_1_SBVTuple2 s0))+[GOOD] (define-fun s7 () Int (seq.nth s3 s1))+[GOOD] (define-fun s8 () Int (- s4 s2))+[GOOD] (define-fun s9 () (Seq Int) (seq.extract s3 s2 s8))+[GOOD] (define-fun s10 () (SBVTuple2 Int (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 Int (Seq Int))) s6 s9))+[GOOD] (define-fun s12 () Int (* s7 s11))+[GOOD] (define-fun s13 () Int (ite s5 s6 s12))+[GOOD] (define-fun s14 () Bool (>= s4 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s14))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_dd270bb7de @(SBV (Integer,[Integer]) -> SBV Integer)}: replaying 11 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (SBVTuple2 Int (Seq Int))) ; tracks user variable "arg"+[GOOD] (declare-fun s11 () Int) ; tracks user variable "__internal_sbv_s11"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () (Seq Int) (proj_2_SBVTuple2 s0))+[GOOD] (define-fun s4 () Int (seq.len s3))+[GOOD] (define-fun s5 () Bool (= s1 s4))+[GOOD] (define-fun s6 () Int (proj_1_SBVTuple2 s0))+[GOOD] (define-fun s7 () Int (seq.nth s3 s1))+[GOOD] (define-fun s8 () Int (- s4 s2))+[GOOD] (define-fun s9 () (Seq Int) (seq.extract s3 s2 s8))+[GOOD] (define-fun s10 () (SBVTuple2 Int (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 Int (Seq Int))) s6 s9))+[GOOD] (define-fun s12 () Int (* s7 s11))+[GOOD] (define-fun s13 () Int (ite s5 s6 s12))+[GOOD] (define-fun s14 () (Seq Int) (proj_2_SBVTuple2 s10))+[GOOD] (define-fun s15 () Int (seq.len s14))+[GOOD] (define-fun s16 () Bool (not s5))+[GOOD] (define-fun s17 () Bool (> s4 s15))+[GOOD] (define-fun s18 () Bool (=> s16 s17))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s18))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_dd270bb7de @(SBV (Integer,[Integer]) -> SBV Integer): length arg1._2 -> OK+[MEASURE] Passed (terminating): sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_dd270bb7de @(SBV (Integer,[Integer]) -> SBV Integer)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all. [GOOD] ; --- tuples --- [GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)                                            ((mkSBVTuple2 (proj_1_SBVTuple2 T1)
SBVTestSuite/GoldFiles/lambda21.gold view
@@ -1,3 +1,10 @@+[MEASURE] Verifying termination measures for: sbv.foldr @(SBV (Integer,[Integer]) -> SBV [Integer])_5c3e05abf3 @(SBV ([Integer],[Integer]) -> SBV [Integer])+[MEASURE] Checking: sbv.foldr @(SBV (Integer,[Integer]) -> SBV [Integer])_5c3e05abf3 @(SBV ([Integer],[Integer]) -> SBV [Integer])+[MEASURE] sbv.foldr @(SBV (Integer,[Integer]) -> SBV [Integer])_5c3e05abf3 @(SBV ([Integer],[Integer]) -> SBV [Integer]): barified = "|sbv.foldr @(SBV (Integer,[Integer]) -> SBV [Integer])_5c3e05abf3 @(SBV ([Integer],[Integer]) -> SBV [Integer])|"+[MEASURE] sbv.foldr @(SBV (Integer,[Integer]) -> SBV [Integer])_5c3e05abf3 @(SBV ([Integer],[Integer]) -> SBV [Integer]): Uninterpreted ops in DAG: [("|sbv.foldr @(SBV (Integer,[Integer]) -> SBV [Integer])_5c3e05abf3 @(SBV ([Integer],[Integer]) -> SBV [Integer])|",1)]+[MEASURE] sbv.foldr @(SBV (Integer,[Integer]) -> SBV [Integer])_5c3e05abf3 @(SBV ([Integer],[Integer]) -> SBV [Integer]): recursive calls found = 1+[MEASURE] sbv.foldr @(SBV (Integer,[Integer]) -> SBV [Integer])_5c3e05abf3 @(SBV ([Integer],[Integer]) -> SBV [Integer]): trying length arg1._1+[MEASURE] replayDAG {sbv.foldr @(SBV (Integer,[Integer]) -> SBV [Integer])_5c3e05abf3 @(SBV ([Integer],[Integer]) -> SBV [Integer])}: replaying 12 node(s) ** Calling: z3 -nw -in -smt2 [GOOD] ; Automatically generated by SBV. Do not edit. [GOOD] (set-option :print-success true)@@ -9,7 +16,219 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts ---+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (SBVTuple2 (Seq Int) (Seq Int))) ; tracks user variable "arg"+[GOOD] (declare-fun s10 () (Seq Int)) ; tracks user variable "__internal_sbv_s10"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () (Seq Int) (proj_2_SBVTuple2 s0))+[GOOD] (define-fun s4 () Int (seq.len s3))+[GOOD] (define-fun s5 () Bool (= s1 s4))+[GOOD] (define-fun s6 () (Seq Int) (proj_1_SBVTuple2 s0))+[GOOD] (define-fun s7 () Int (- s4 s2))+[GOOD] (define-fun s8 () (Seq Int) (seq.extract s3 s2 s7))+[GOOD] (define-fun s9 () (SBVTuple2 (Seq Int) (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 (Seq Int) (Seq Int))) s6 s8))+[GOOD] (define-fun s11 () Int (seq.nth s3 s1))+[GOOD] (define-fun s12 () (Seq Int) (seq.unit s11))+[GOOD] (define-fun s13 () (Seq Int) (seq.++ s10 s12))+[GOOD] (define-fun s14 () (Seq Int) (ite s5 s6 s13))+[GOOD] (define-fun s15 () Int (seq.len s6))+[GOOD] (define-fun s16 () Bool (>= s15 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s16))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {sbv.foldr @(SBV (Integer,[Integer]) -> SBV [Integer])_5c3e05abf3 @(SBV ([Integer],[Integer]) -> SBV [Integer])}: replaying 12 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (SBVTuple2 (Seq Int) (Seq Int))) ; tracks user variable "arg"+[GOOD] (declare-fun s10 () (Seq Int)) ; tracks user variable "__internal_sbv_s10"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () (Seq Int) (proj_2_SBVTuple2 s0))+[GOOD] (define-fun s4 () Int (seq.len s3))+[GOOD] (define-fun s5 () Bool (= s1 s4))+[GOOD] (define-fun s6 () (Seq Int) (proj_1_SBVTuple2 s0))+[GOOD] (define-fun s7 () Int (- s4 s2))+[GOOD] (define-fun s8 () (Seq Int) (seq.extract s3 s2 s7))+[GOOD] (define-fun s9 () (SBVTuple2 (Seq Int) (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 (Seq Int) (Seq Int))) s6 s8))+[GOOD] (define-fun s11 () Int (seq.nth s3 s1))+[GOOD] (define-fun s12 () (Seq Int) (seq.unit s11))+[GOOD] (define-fun s13 () (Seq Int) (seq.++ s10 s12))+[GOOD] (define-fun s14 () (Seq Int) (ite s5 s6 s13))+[GOOD] (define-fun s15 () Int (seq.len s6))+[GOOD] (define-fun s16 () (Seq Int) (proj_1_SBVTuple2 s9))+[GOOD] (define-fun s17 () Int (seq.len s16))+[GOOD] (define-fun s18 () Bool (not s5))+[GOOD] (define-fun s19 () Bool (> s15 s17))+[GOOD] (define-fun s20 () Bool (=> s18 s19))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s20))+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s15))+[RECV] ((s15 0))+[SEND] (get-value (s17))+[RECV] ((s17 0))+[SEND] (get-value (s0))+[RECV] ((s0 (mkSBVTuple2 (as seq.empty (Seq Int)) (seq.unit 2))))+[SEND] (get-value (s10))+[RECV] ((s10 (as seq.empty (Seq Int))))+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] sbv.foldr @(SBV (Integer,[Integer]) -> SBV [Integer])_5c3e05abf3 @(SBV ([Integer],[Integer]) -> SBV [Integer]): length arg1._1 failed strict decrease: Falsifiable. Counter-example:+  arg    = ([],[2]) :: ([Integer], [Integer])+  before =        0 :: Integer+  then   =        0 :: Integer+[MEASURE] sbv.foldr @(SBV (Integer,[Integer]) -> SBV [Integer])_5c3e05abf3 @(SBV ([Integer],[Integer]) -> SBV [Integer]): trying next candidate..+[MEASURE] sbv.foldr @(SBV (Integer,[Integer]) -> SBV [Integer])_5c3e05abf3 @(SBV ([Integer],[Integer]) -> SBV [Integer]): trying length arg1._2+[MEASURE] replayDAG {sbv.foldr @(SBV (Integer,[Integer]) -> SBV [Integer])_5c3e05abf3 @(SBV ([Integer],[Integer]) -> SBV [Integer])}: replaying 12 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (SBVTuple2 (Seq Int) (Seq Int))) ; tracks user variable "arg"+[GOOD] (declare-fun s10 () (Seq Int)) ; tracks user variable "__internal_sbv_s10"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () (Seq Int) (proj_2_SBVTuple2 s0))+[GOOD] (define-fun s4 () Int (seq.len s3))+[GOOD] (define-fun s5 () Bool (= s1 s4))+[GOOD] (define-fun s6 () (Seq Int) (proj_1_SBVTuple2 s0))+[GOOD] (define-fun s7 () Int (- s4 s2))+[GOOD] (define-fun s8 () (Seq Int) (seq.extract s3 s2 s7))+[GOOD] (define-fun s9 () (SBVTuple2 (Seq Int) (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 (Seq Int) (Seq Int))) s6 s8))+[GOOD] (define-fun s11 () Int (seq.nth s3 s1))+[GOOD] (define-fun s12 () (Seq Int) (seq.unit s11))+[GOOD] (define-fun s13 () (Seq Int) (seq.++ s10 s12))+[GOOD] (define-fun s14 () (Seq Int) (ite s5 s6 s13))+[GOOD] (define-fun s15 () Bool (>= s4 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s15))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {sbv.foldr @(SBV (Integer,[Integer]) -> SBV [Integer])_5c3e05abf3 @(SBV ([Integer],[Integer]) -> SBV [Integer])}: replaying 12 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (SBVTuple2 (Seq Int) (Seq Int))) ; tracks user variable "arg"+[GOOD] (declare-fun s10 () (Seq Int)) ; tracks user variable "__internal_sbv_s10"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () (Seq Int) (proj_2_SBVTuple2 s0))+[GOOD] (define-fun s4 () Int (seq.len s3))+[GOOD] (define-fun s5 () Bool (= s1 s4))+[GOOD] (define-fun s6 () (Seq Int) (proj_1_SBVTuple2 s0))+[GOOD] (define-fun s7 () Int (- s4 s2))+[GOOD] (define-fun s8 () (Seq Int) (seq.extract s3 s2 s7))+[GOOD] (define-fun s9 () (SBVTuple2 (Seq Int) (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 (Seq Int) (Seq Int))) s6 s8))+[GOOD] (define-fun s11 () Int (seq.nth s3 s1))+[GOOD] (define-fun s12 () (Seq Int) (seq.unit s11))+[GOOD] (define-fun s13 () (Seq Int) (seq.++ s10 s12))+[GOOD] (define-fun s14 () (Seq Int) (ite s5 s6 s13))+[GOOD] (define-fun s15 () (Seq Int) (proj_2_SBVTuple2 s9))+[GOOD] (define-fun s16 () Int (seq.len s15))+[GOOD] (define-fun s17 () Bool (not s5))+[GOOD] (define-fun s18 () Bool (> s4 s16))+[GOOD] (define-fun s19 () Bool (=> s17 s18))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s19))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] sbv.foldr @(SBV (Integer,[Integer]) -> SBV [Integer])_5c3e05abf3 @(SBV ([Integer],[Integer]) -> SBV [Integer]): length arg1._2 -> OK+[MEASURE] Passed (terminating): sbv.foldr @(SBV (Integer,[Integer]) -> SBV [Integer])_5c3e05abf3 @(SBV ([Integer],[Integer]) -> SBV [Integer])+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all. [GOOD] ; --- tuples --- [GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)                                            ((mkSBVTuple2 (proj_1_SBVTuple2 T1)
SBVTestSuite/GoldFiles/lambda22.gold view
@@ -1,3 +1,10 @@+[MEASURE] Verifying termination measures for: sbv.zip @(SBV [Integer] -> SBV [Integer] -> SBV [(Integer,Integer)])+[MEASURE] Checking: sbv.zip @(SBV [Integer] -> SBV [Integer] -> SBV [(Integer,Integer)])+[MEASURE] sbv.zip @(SBV [Integer] -> SBV [Integer] -> SBV [(Integer,Integer)]): barified = "|sbv.zip @(SBV [Integer] -> SBV [Integer] -> SBV [(Integer,Integer)])|"+[MEASURE] sbv.zip @(SBV [Integer] -> SBV [Integer] -> SBV [(Integer,Integer)]): Uninterpreted ops in DAG: [("|sbv.zip @(SBV [Integer] -> SBV [Integer] -> SBV [(Integer,Integer)])|",2)]+[MEASURE] sbv.zip @(SBV [Integer] -> SBV [Integer] -> SBV [(Integer,Integer)]): recursive calls found = 1+[MEASURE] sbv.zip @(SBV [Integer] -> SBV [Integer] -> SBV [(Integer,Integer)]): trying length arg1+[MEASURE] replayDAG {sbv.zip @(SBV [Integer] -> SBV [Integer] -> SBV [(Integer,Integer)])}: replaying 16 node(s) ** Calling: z3 -nw -in -smt2 [GOOD] ; Automatically generated by SBV. Do not edit. [GOOD] (set-option :print-success true)@@ -9,13 +16,124 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)                                            ((mkSBVTuple2 (proj_1_SBVTuple2 T1)                                                          (proj_2_SBVTuple2 T2)))))) [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] (define-fun s4 () (Seq (SBVTuple2 Int Int)) (as seq.empty (Seq (SBVTuple2 Int Int))))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq Int)) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () (Seq Int)) ; tracks user variable "arg1"+[GOOD] (declare-fun s17 () (Seq (SBVTuple2 Int Int))) ; tracks user variable "__internal_sbv_s17"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s5 () Int (seq.len s0))+[GOOD] (define-fun s6 () Bool (= s2 s5))+[GOOD] (define-fun s7 () Int (seq.len s1))+[GOOD] (define-fun s8 () Bool (= s2 s7))+[GOOD] (define-fun s9 () Int (seq.nth s0 s2))+[GOOD] (define-fun s10 () Int (seq.nth s1 s2))+[GOOD] (define-fun s11 () (SBVTuple2 Int Int) ((as mkSBVTuple2 (SBVTuple2 Int Int)) s9 s10))+[GOOD] (define-fun s12 () (Seq (SBVTuple2 Int Int)) (seq.unit s11))+[GOOD] (define-fun s13 () Int (- s5 s3))+[GOOD] (define-fun s14 () (Seq Int) (seq.extract s0 s3 s13))+[GOOD] (define-fun s15 () Int (- s7 s3))+[GOOD] (define-fun s16 () (Seq Int) (seq.extract s1 s3 s15))+[GOOD] (define-fun s18 () (Seq (SBVTuple2 Int Int)) (seq.++ s12 s17))+[GOOD] (define-fun s19 () (Seq (SBVTuple2 Int Int)) (ite s8 s4 s18))+[GOOD] (define-fun s20 () (Seq (SBVTuple2 Int Int)) (ite s6 s4 s19))+[GOOD] (define-fun s21 () Bool (>= s5 s2))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s21))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {sbv.zip @(SBV [Integer] -> SBV [Integer] -> SBV [(Integer,Integer)])}: replaying 16 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] (define-fun s4 () (Seq (SBVTuple2 Int Int)) (as seq.empty (Seq (SBVTuple2 Int Int))))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq Int)) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () (Seq Int)) ; tracks user variable "arg1"+[GOOD] (declare-fun s17 () (Seq (SBVTuple2 Int Int))) ; tracks user variable "__internal_sbv_s17"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s5 () Int (seq.len s0))+[GOOD] (define-fun s6 () Bool (= s2 s5))+[GOOD] (define-fun s7 () Int (seq.len s1))+[GOOD] (define-fun s8 () Bool (= s2 s7))+[GOOD] (define-fun s9 () Int (seq.nth s0 s2))+[GOOD] (define-fun s10 () Int (seq.nth s1 s2))+[GOOD] (define-fun s11 () (SBVTuple2 Int Int) ((as mkSBVTuple2 (SBVTuple2 Int Int)) s9 s10))+[GOOD] (define-fun s12 () (Seq (SBVTuple2 Int Int)) (seq.unit s11))+[GOOD] (define-fun s13 () Int (- s5 s3))+[GOOD] (define-fun s14 () (Seq Int) (seq.extract s0 s3 s13))+[GOOD] (define-fun s15 () Int (- s7 s3))+[GOOD] (define-fun s16 () (Seq Int) (seq.extract s1 s3 s15))+[GOOD] (define-fun s18 () (Seq (SBVTuple2 Int Int)) (seq.++ s12 s17))+[GOOD] (define-fun s19 () (Seq (SBVTuple2 Int Int)) (ite s8 s4 s18))+[GOOD] (define-fun s20 () (Seq (SBVTuple2 Int Int)) (ite s6 s4 s19))+[GOOD] (define-fun s21 () Int (seq.len s14))+[GOOD] (define-fun s22 () Bool (not s8))+[GOOD] (define-fun s23 () Bool (not s6))+[GOOD] (define-fun s24 () Bool (and s22 s23))+[GOOD] (define-fun s25 () Bool (> s5 s21))+[GOOD] (define-fun s26 () Bool (=> s24 s25))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s26))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] sbv.zip @(SBV [Integer] -> SBV [Integer] -> SBV [(Integer,Integer)]): length arg1 -> OK+[MEASURE] Passed (terminating): sbv.zip @(SBV [Integer] -> SBV [Integer] -> SBV [(Integer,Integer)])+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants --- [GOOD] (define-fun s3 () (Seq Int) (seq.++ (seq.unit 1) (seq.unit 2) (seq.unit 3) (seq.unit 4) (seq.unit 5) (seq.unit 6) (seq.unit 7) (seq.unit 8) (seq.unit 9) (seq.unit 10))) [GOOD] (define-fun s5 () (Seq Int) (seq.++ (seq.unit 11) (seq.unit 12) (seq.unit 13) (seq.unit 14) (seq.unit 15) (seq.unit 16) (seq.unit 17) (seq.unit 18) (seq.unit 19) (seq.unit 20))) [GOOD] ; --- top level inputs ---@@ -29,24 +147,24 @@ [GOOD] ; |sbv.zip @(SBV [Integer] -> SBV [Integer] -> SBV [(Integer,Integer)])| :: [SInteger] -> [SInteger] -> [(SInteger, SInteger)] [Recursive] [GOOD] (define-fun-rec |sbv.zip @(SBV [Integer] -> SBV [Integer] -> SBV [(Integer,Integer)])| ((l1_s0 (Seq Int)) (l1_s1 (Seq Int))) (Seq (SBVTuple2 Int Int))                                  (let ((l1_s3 0))-                                 (let ((l1_s8 (as seq.empty (Seq (SBVTuple2 Int Int)))))-                                 (let ((l1_s13 1))+                                 (let ((l1_s5 (as seq.empty (Seq (SBVTuple2 Int Int)))))+                                 (let ((l1_s12 1))                                  (let ((l1_s2 (seq.len l1_s0)))                                  (let ((l1_s4 (= l1_s2 l1_s3)))-                                 (let ((l1_s5 (seq.len l1_s1)))-                                 (let ((l1_s6 (= l1_s3 l1_s5)))-                                 (let ((l1_s7 (or l1_s4 l1_s6)))-                                 (let ((l1_s9 (seq.nth l1_s0 l1_s3)))-                                 (let ((l1_s10 (seq.nth l1_s1 l1_s3)))-                                 (let ((l1_s11 ((as mkSBVTuple2 (SBVTuple2 Int Int)) l1_s9 l1_s10)))-                                 (let ((l1_s12 (seq.unit l1_s11)))-                                 (let ((l1_s14 (- l1_s2 l1_s13)))-                                 (let ((l1_s15 (seq.extract l1_s0 l1_s13 l1_s14)))-                                 (let ((l1_s16 (- l1_s5 l1_s13)))-                                 (let ((l1_s17 (seq.extract l1_s1 l1_s13 l1_s16)))-                                 (let ((l1_s18 (|sbv.zip @(SBV [Integer] -> SBV [Integer] -> SBV [(Integer,Integer)])| l1_s15 l1_s17)))-                                 (let ((l1_s19 (seq.++ l1_s12 l1_s18)))-                                 (let ((l1_s20 (ite l1_s7 l1_s8 l1_s19)))+                                 (let ((l1_s6 (seq.len l1_s1)))+                                 (let ((l1_s7 (= l1_s3 l1_s6)))+                                 (let ((l1_s8 (seq.nth l1_s0 l1_s3)))+                                 (let ((l1_s9 (seq.nth l1_s1 l1_s3)))+                                 (let ((l1_s10 ((as mkSBVTuple2 (SBVTuple2 Int Int)) l1_s8 l1_s9)))+                                 (let ((l1_s11 (seq.unit l1_s10)))+                                 (let ((l1_s13 (- l1_s2 l1_s12)))+                                 (let ((l1_s14 (seq.extract l1_s0 l1_s12 l1_s13)))+                                 (let ((l1_s15 (- l1_s6 l1_s12)))+                                 (let ((l1_s16 (seq.extract l1_s1 l1_s12 l1_s15)))+                                 (let ((l1_s17 (|sbv.zip @(SBV [Integer] -> SBV [Integer] -> SBV [(Integer,Integer)])| l1_s14 l1_s16)))+                                 (let ((l1_s18 (seq.++ l1_s11 l1_s17)))+                                 (let ((l1_s19 (ite l1_s7 l1_s5 l1_s18)))+                                 (let ((l1_s20 (ite l1_s4 l1_s5 l1_s19)))                                  l1_s20)))))))))))))))))))) [GOOD] ; --- assignments --- [GOOD] (define-fun s4 () Bool (= s0 s3))
SBVTestSuite/GoldFiles/lambda23.gold view
@@ -1,3 +1,10 @@+[MEASURE] Verifying termination measures for: sbv.zip @(SBV [Integer] -> SBV [Integer] -> SBV [(Integer,Integer)]), sbv.map @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV [(Integer,Integer)] -> SBV [Integer]), sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer)+[MEASURE] Checking: sbv.zip @(SBV [Integer] -> SBV [Integer] -> SBV [(Integer,Integer)])+[MEASURE] sbv.zip @(SBV [Integer] -> SBV [Integer] -> SBV [(Integer,Integer)]): barified = "|sbv.zip @(SBV [Integer] -> SBV [Integer] -> SBV [(Integer,Integer)])|"+[MEASURE] sbv.zip @(SBV [Integer] -> SBV [Integer] -> SBV [(Integer,Integer)]): Uninterpreted ops in DAG: [("|sbv.zip @(SBV [Integer] -> SBV [Integer] -> SBV [(Integer,Integer)])|",2)]+[MEASURE] sbv.zip @(SBV [Integer] -> SBV [Integer] -> SBV [(Integer,Integer)]): recursive calls found = 1+[MEASURE] sbv.zip @(SBV [Integer] -> SBV [Integer] -> SBV [(Integer,Integer)]): trying length arg1+[MEASURE] replayDAG {sbv.zip @(SBV [Integer] -> SBV [Integer] -> SBV [(Integer,Integer)])}: replaying 16 node(s) ** Calling: z3 -nw -in -smt2 [GOOD] ; Automatically generated by SBV. Do not edit. [GOOD] (set-option :print-success true)@@ -9,13 +16,445 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)                                            ((mkSBVTuple2 (proj_1_SBVTuple2 T1)                                                          (proj_2_SBVTuple2 T2)))))) [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] (define-fun s4 () (Seq (SBVTuple2 Int Int)) (as seq.empty (Seq (SBVTuple2 Int Int))))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq Int)) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () (Seq Int)) ; tracks user variable "arg1"+[GOOD] (declare-fun s17 () (Seq (SBVTuple2 Int Int))) ; tracks user variable "__internal_sbv_s17"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s5 () Int (seq.len s0))+[GOOD] (define-fun s6 () Bool (= s2 s5))+[GOOD] (define-fun s7 () Int (seq.len s1))+[GOOD] (define-fun s8 () Bool (= s2 s7))+[GOOD] (define-fun s9 () Int (seq.nth s0 s2))+[GOOD] (define-fun s10 () Int (seq.nth s1 s2))+[GOOD] (define-fun s11 () (SBVTuple2 Int Int) ((as mkSBVTuple2 (SBVTuple2 Int Int)) s9 s10))+[GOOD] (define-fun s12 () (Seq (SBVTuple2 Int Int)) (seq.unit s11))+[GOOD] (define-fun s13 () Int (- s5 s3))+[GOOD] (define-fun s14 () (Seq Int) (seq.extract s0 s3 s13))+[GOOD] (define-fun s15 () Int (- s7 s3))+[GOOD] (define-fun s16 () (Seq Int) (seq.extract s1 s3 s15))+[GOOD] (define-fun s18 () (Seq (SBVTuple2 Int Int)) (seq.++ s12 s17))+[GOOD] (define-fun s19 () (Seq (SBVTuple2 Int Int)) (ite s8 s4 s18))+[GOOD] (define-fun s20 () (Seq (SBVTuple2 Int Int)) (ite s6 s4 s19))+[GOOD] (define-fun s21 () Bool (>= s5 s2))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s21))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {sbv.zip @(SBV [Integer] -> SBV [Integer] -> SBV [(Integer,Integer)])}: replaying 16 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] (define-fun s4 () (Seq (SBVTuple2 Int Int)) (as seq.empty (Seq (SBVTuple2 Int Int))))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq Int)) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () (Seq Int)) ; tracks user variable "arg1"+[GOOD] (declare-fun s17 () (Seq (SBVTuple2 Int Int))) ; tracks user variable "__internal_sbv_s17"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s5 () Int (seq.len s0))+[GOOD] (define-fun s6 () Bool (= s2 s5))+[GOOD] (define-fun s7 () Int (seq.len s1))+[GOOD] (define-fun s8 () Bool (= s2 s7))+[GOOD] (define-fun s9 () Int (seq.nth s0 s2))+[GOOD] (define-fun s10 () Int (seq.nth s1 s2))+[GOOD] (define-fun s11 () (SBVTuple2 Int Int) ((as mkSBVTuple2 (SBVTuple2 Int Int)) s9 s10))+[GOOD] (define-fun s12 () (Seq (SBVTuple2 Int Int)) (seq.unit s11))+[GOOD] (define-fun s13 () Int (- s5 s3))+[GOOD] (define-fun s14 () (Seq Int) (seq.extract s0 s3 s13))+[GOOD] (define-fun s15 () Int (- s7 s3))+[GOOD] (define-fun s16 () (Seq Int) (seq.extract s1 s3 s15))+[GOOD] (define-fun s18 () (Seq (SBVTuple2 Int Int)) (seq.++ s12 s17))+[GOOD] (define-fun s19 () (Seq (SBVTuple2 Int Int)) (ite s8 s4 s18))+[GOOD] (define-fun s20 () (Seq (SBVTuple2 Int Int)) (ite s6 s4 s19))+[GOOD] (define-fun s21 () Int (seq.len s14))+[GOOD] (define-fun s22 () Bool (not s8))+[GOOD] (define-fun s23 () Bool (not s6))+[GOOD] (define-fun s24 () Bool (and s22 s23))+[GOOD] (define-fun s25 () Bool (> s5 s21))+[GOOD] (define-fun s26 () Bool (=> s24 s25))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s26))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] sbv.zip @(SBV [Integer] -> SBV [Integer] -> SBV [(Integer,Integer)]): length arg1 -> OK+[MEASURE] Passed (terminating): sbv.zip @(SBV [Integer] -> SBV [Integer] -> SBV [(Integer,Integer)])+[MEASURE] Checking: sbv.map @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV [(Integer,Integer)] -> SBV [Integer])+[MEASURE] sbv.map @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV [(Integer,Integer)] -> SBV [Integer]): barified = "|sbv.map @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV [(Integer,Integer)] -> SBV [Integer])|"+[MEASURE] sbv.map @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV [(Integer,Integer)] -> SBV [Integer]): Uninterpreted ops in DAG: [("|sbv.map @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV [(Integer,Integer)] -> SBV [Integer])|",1)]+[MEASURE] sbv.map @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV [(Integer,Integer)] -> SBV [Integer]): recursive calls found = 1+[MEASURE] sbv.map @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV [(Integer,Integer)] -> SBV [Integer]): trying length arg1+[MEASURE] replayDAG {sbv.map @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV [(Integer,Integer)] -> SBV [Integer])}: replaying 12 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () (Seq Int) (as seq.empty (Seq Int)))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq (SBVTuple2 Int Int))) ; tracks user variable "arg"+[GOOD] (declare-fun s13 () (Seq Int)) ; tracks user variable "__internal_sbv_s13"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Int (seq.len s0))+[GOOD] (define-fun s5 () Bool (= s1 s4))+[GOOD] (define-fun s6 () (SBVTuple2 Int Int) (seq.nth s0 s1))+[GOOD] (define-fun s7 () Int (proj_1_SBVTuple2 s6))+[GOOD] (define-fun s8 () Int (proj_2_SBVTuple2 s6))+[GOOD] (define-fun s9 () Int (+ s7 s8))+[GOOD] (define-fun s10 () (Seq Int) (seq.unit s9))+[GOOD] (define-fun s11 () Int (- s4 s2))+[GOOD] (define-fun s12 () (Seq (SBVTuple2 Int Int)) (seq.extract s0 s2 s11))+[GOOD] (define-fun s14 () (Seq Int) (seq.++ s10 s13))+[GOOD] (define-fun s15 () (Seq Int) (ite s5 s3 s14))+[GOOD] (define-fun s16 () Bool (>= s4 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s16))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {sbv.map @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV [(Integer,Integer)] -> SBV [Integer])}: replaying 12 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () (Seq Int) (as seq.empty (Seq Int)))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq (SBVTuple2 Int Int))) ; tracks user variable "arg"+[GOOD] (declare-fun s13 () (Seq Int)) ; tracks user variable "__internal_sbv_s13"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Int (seq.len s0))+[GOOD] (define-fun s5 () Bool (= s1 s4))+[GOOD] (define-fun s6 () (SBVTuple2 Int Int) (seq.nth s0 s1))+[GOOD] (define-fun s7 () Int (proj_1_SBVTuple2 s6))+[GOOD] (define-fun s8 () Int (proj_2_SBVTuple2 s6))+[GOOD] (define-fun s9 () Int (+ s7 s8))+[GOOD] (define-fun s10 () (Seq Int) (seq.unit s9))+[GOOD] (define-fun s11 () Int (- s4 s2))+[GOOD] (define-fun s12 () (Seq (SBVTuple2 Int Int)) (seq.extract s0 s2 s11))+[GOOD] (define-fun s14 () (Seq Int) (seq.++ s10 s13))+[GOOD] (define-fun s15 () (Seq Int) (ite s5 s3 s14))+[GOOD] (define-fun s16 () Int (seq.len s12))+[GOOD] (define-fun s17 () Bool (not s5))+[GOOD] (define-fun s18 () Bool (> s4 s16))+[GOOD] (define-fun s19 () Bool (=> s17 s18))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s19))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] sbv.map @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV [(Integer,Integer)] -> SBV [Integer]): length arg1 -> OK+[MEASURE] Passed (terminating): sbv.map @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV [(Integer,Integer)] -> SBV [Integer])+[MEASURE] Checking: sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer)+[MEASURE] sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer): barified = "|sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer)|"+[MEASURE] sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer): Uninterpreted ops in DAG: [("|sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer)|",1)]+[MEASURE] sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer): recursive calls found = 1+[MEASURE] sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer): trying abs arg1._1+[MEASURE] replayDAG {sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer)}: replaying 11 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (SBVTuple2 Int (Seq Int))) ; tracks user variable "arg"+[GOOD] (declare-fun s11 () Int) ; tracks user variable "__internal_sbv_s11"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () (Seq Int) (proj_2_SBVTuple2 s0))+[GOOD] (define-fun s4 () Int (seq.len s3))+[GOOD] (define-fun s5 () Bool (= s1 s4))+[GOOD] (define-fun s6 () Int (proj_1_SBVTuple2 s0))+[GOOD] (define-fun s7 () Int (seq.nth s3 s1))+[GOOD] (define-fun s8 () Int (- s4 s2))+[GOOD] (define-fun s9 () (Seq Int) (seq.extract s3 s2 s8))+[GOOD] (define-fun s10 () (SBVTuple2 Int (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 Int (Seq Int))) s6 s9))+[GOOD] (define-fun s12 () Int (+ s7 s11))+[GOOD] (define-fun s13 () Int (ite s5 s6 s12))+[GOOD] (define-fun s14 () Int (abs s6))+[GOOD] (define-fun s15 () Bool (>= s14 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s15))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer)}: replaying 11 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (SBVTuple2 Int (Seq Int))) ; tracks user variable "arg"+[GOOD] (declare-fun s11 () Int) ; tracks user variable "__internal_sbv_s11"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () (Seq Int) (proj_2_SBVTuple2 s0))+[GOOD] (define-fun s4 () Int (seq.len s3))+[GOOD] (define-fun s5 () Bool (= s1 s4))+[GOOD] (define-fun s6 () Int (proj_1_SBVTuple2 s0))+[GOOD] (define-fun s7 () Int (seq.nth s3 s1))+[GOOD] (define-fun s8 () Int (- s4 s2))+[GOOD] (define-fun s9 () (Seq Int) (seq.extract s3 s2 s8))+[GOOD] (define-fun s10 () (SBVTuple2 Int (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 Int (Seq Int))) s6 s9))+[GOOD] (define-fun s12 () Int (+ s7 s11))+[GOOD] (define-fun s13 () Int (ite s5 s6 s12))+[GOOD] (define-fun s14 () Int (abs s6))+[GOOD] (define-fun s15 () Int (proj_1_SBVTuple2 s10))+[GOOD] (define-fun s16 () Int (abs s15))+[GOOD] (define-fun s17 () Bool (not s5))+[GOOD] (define-fun s18 () Bool (> s14 s16))+[GOOD] (define-fun s19 () Bool (=> s17 s18))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s19))+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s14))+[RECV] ((s14 0))+[SEND] (get-value (s16))+[RECV] ((s16 0))+[SEND] (get-value (s0))+[RECV] ((s0 (mkSBVTuple2 0 (seq.unit 2))))+[SEND] (get-value (s11))+[RECV] ((s11 0))+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer): abs arg1._1 failed strict decrease: Falsifiable. Counter-example:+  arg    = (0,[2]) :: (Integer, [Integer])+  before =       0 :: Integer+  then   =       0 :: Integer+[MEASURE] sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer): trying next candidate..+[MEASURE] sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer): trying length arg1._2+[MEASURE] replayDAG {sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer)}: replaying 11 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (SBVTuple2 Int (Seq Int))) ; tracks user variable "arg"+[GOOD] (declare-fun s11 () Int) ; tracks user variable "__internal_sbv_s11"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () (Seq Int) (proj_2_SBVTuple2 s0))+[GOOD] (define-fun s4 () Int (seq.len s3))+[GOOD] (define-fun s5 () Bool (= s1 s4))+[GOOD] (define-fun s6 () Int (proj_1_SBVTuple2 s0))+[GOOD] (define-fun s7 () Int (seq.nth s3 s1))+[GOOD] (define-fun s8 () Int (- s4 s2))+[GOOD] (define-fun s9 () (Seq Int) (seq.extract s3 s2 s8))+[GOOD] (define-fun s10 () (SBVTuple2 Int (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 Int (Seq Int))) s6 s9))+[GOOD] (define-fun s12 () Int (+ s7 s11))+[GOOD] (define-fun s13 () Int (ite s5 s6 s12))+[GOOD] (define-fun s14 () Bool (>= s4 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s14))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer)}: replaying 11 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (SBVTuple2 Int (Seq Int))) ; tracks user variable "arg"+[GOOD] (declare-fun s11 () Int) ; tracks user variable "__internal_sbv_s11"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () (Seq Int) (proj_2_SBVTuple2 s0))+[GOOD] (define-fun s4 () Int (seq.len s3))+[GOOD] (define-fun s5 () Bool (= s1 s4))+[GOOD] (define-fun s6 () Int (proj_1_SBVTuple2 s0))+[GOOD] (define-fun s7 () Int (seq.nth s3 s1))+[GOOD] (define-fun s8 () Int (- s4 s2))+[GOOD] (define-fun s9 () (Seq Int) (seq.extract s3 s2 s8))+[GOOD] (define-fun s10 () (SBVTuple2 Int (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 Int (Seq Int))) s6 s9))+[GOOD] (define-fun s12 () Int (+ s7 s11))+[GOOD] (define-fun s13 () Int (ite s5 s6 s12))+[GOOD] (define-fun s14 () (Seq Int) (proj_2_SBVTuple2 s10))+[GOOD] (define-fun s15 () Int (seq.len s14))+[GOOD] (define-fun s16 () Bool (not s5))+[GOOD] (define-fun s17 () Bool (> s4 s15))+[GOOD] (define-fun s18 () Bool (=> s16 s17))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s18))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer): length arg1._2 -> OK+[MEASURE] Passed (terminating): sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants --- [GOOD] (define-fun s3 () (Seq Int) (seq.++ (seq.unit 1) (seq.unit 2) (seq.unit 3) (seq.unit 4) (seq.unit 5) (seq.unit 6) (seq.unit 7) (seq.unit 8) (seq.unit 9) (seq.unit 10))) [GOOD] (define-fun s5 () (Seq Int) (seq.++ (seq.unit 10) (seq.unit 9) (seq.unit 8) (seq.unit 7) (seq.unit 6) (seq.unit 5) (seq.unit 4) (seq.unit 3) (seq.unit 2) (seq.unit 1))) [GOOD] (define-fun s7 () Int 0)@@ -30,24 +469,24 @@ [GOOD] ; |sbv.zip @(SBV [Integer] -> SBV [Integer] -> SBV [(Integer,Integer)])| :: [SInteger] -> [SInteger] -> [(SInteger, SInteger)] [Recursive] [GOOD] (define-fun-rec |sbv.zip @(SBV [Integer] -> SBV [Integer] -> SBV [(Integer,Integer)])| ((l1_s0 (Seq Int)) (l1_s1 (Seq Int))) (Seq (SBVTuple2 Int Int))                                  (let ((l1_s3 0))-                                 (let ((l1_s8 (as seq.empty (Seq (SBVTuple2 Int Int)))))-                                 (let ((l1_s13 1))+                                 (let ((l1_s5 (as seq.empty (Seq (SBVTuple2 Int Int)))))+                                 (let ((l1_s12 1))                                  (let ((l1_s2 (seq.len l1_s0)))                                  (let ((l1_s4 (= l1_s2 l1_s3)))-                                 (let ((l1_s5 (seq.len l1_s1)))-                                 (let ((l1_s6 (= l1_s3 l1_s5)))-                                 (let ((l1_s7 (or l1_s4 l1_s6)))-                                 (let ((l1_s9 (seq.nth l1_s0 l1_s3)))-                                 (let ((l1_s10 (seq.nth l1_s1 l1_s3)))-                                 (let ((l1_s11 ((as mkSBVTuple2 (SBVTuple2 Int Int)) l1_s9 l1_s10)))-                                 (let ((l1_s12 (seq.unit l1_s11)))-                                 (let ((l1_s14 (- l1_s2 l1_s13)))-                                 (let ((l1_s15 (seq.extract l1_s0 l1_s13 l1_s14)))-                                 (let ((l1_s16 (- l1_s5 l1_s13)))-                                 (let ((l1_s17 (seq.extract l1_s1 l1_s13 l1_s16)))-                                 (let ((l1_s18 (|sbv.zip @(SBV [Integer] -> SBV [Integer] -> SBV [(Integer,Integer)])| l1_s15 l1_s17)))-                                 (let ((l1_s19 (seq.++ l1_s12 l1_s18)))-                                 (let ((l1_s20 (ite l1_s7 l1_s8 l1_s19)))+                                 (let ((l1_s6 (seq.len l1_s1)))+                                 (let ((l1_s7 (= l1_s3 l1_s6)))+                                 (let ((l1_s8 (seq.nth l1_s0 l1_s3)))+                                 (let ((l1_s9 (seq.nth l1_s1 l1_s3)))+                                 (let ((l1_s10 ((as mkSBVTuple2 (SBVTuple2 Int Int)) l1_s8 l1_s9)))+                                 (let ((l1_s11 (seq.unit l1_s10)))+                                 (let ((l1_s13 (- l1_s2 l1_s12)))+                                 (let ((l1_s14 (seq.extract l1_s0 l1_s12 l1_s13)))+                                 (let ((l1_s15 (- l1_s6 l1_s12)))+                                 (let ((l1_s16 (seq.extract l1_s1 l1_s12 l1_s15)))+                                 (let ((l1_s17 (|sbv.zip @(SBV [Integer] -> SBV [Integer] -> SBV [(Integer,Integer)])| l1_s14 l1_s16)))+                                 (let ((l1_s18 (seq.++ l1_s11 l1_s17)))+                                 (let ((l1_s19 (ite l1_s7 l1_s5 l1_s18)))+                                 (let ((l1_s20 (ite l1_s4 l1_s5 l1_s19)))                                  l1_s20)))))))))))))))))))) [GOOD] ; |sbv.map @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV [(Integer,Integer)] -> SBV [Integer])| :: [(SInteger, SInteger)] -> [SInteger] [Recursive] [GOOD] (define-fun-rec |sbv.map @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV [(Integer,Integer)] -> SBV [Integer])| ((l1_s0 (Seq (SBVTuple2 Int Int)))) (Seq Int)
SBVTestSuite/GoldFiles/lambda24.gold view
@@ -1,3 +1,10 @@+[MEASURE] Verifying termination measures for: sbv.zipWith @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV ([Integer],[Integer]) -> SBV [Integer])+[MEASURE] Checking: sbv.zipWith @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV ([Integer],[Integer]) -> SBV [Integer])+[MEASURE] sbv.zipWith @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV ([Integer],[Integer]) -> SBV [Integer]): barified = "|sbv.zipWith @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV ([Integer],[Integer]) -> SBV [Integer])|"+[MEASURE] sbv.zipWith @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV ([Integer],[Integer]) -> SBV [Integer]): Uninterpreted ops in DAG: [("|sbv.zipWith @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV ([Integer],[Integer]) -> SBV [Integer])|",1)]+[MEASURE] sbv.zipWith @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV ([Integer],[Integer]) -> SBV [Integer]): recursive calls found = 1+[MEASURE] sbv.zipWith @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV ([Integer],[Integer]) -> SBV [Integer]): trying length arg1._1+[MEASURE] replayDAG {sbv.zipWith @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV ([Integer],[Integer]) -> SBV [Integer])}: replaying 19 node(s) ** Calling: z3 -nw -in -smt2 [GOOD] ; Automatically generated by SBV. Do not edit. [GOOD] (set-option :print-success true)@@ -9,13 +16,129 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)                                            ((mkSBVTuple2 (proj_1_SBVTuple2 T1)                                                          (proj_2_SBVTuple2 T2)))))) [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () (Seq Int) (as seq.empty (Seq Int)))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (SBVTuple2 (Seq Int) (Seq Int))) ; tracks user variable "arg"+[GOOD] (declare-fun s19 () (Seq Int)) ; tracks user variable "__internal_sbv_s19"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () (Seq Int) (proj_1_SBVTuple2 s0))+[GOOD] (define-fun s5 () Int (seq.len s4))+[GOOD] (define-fun s6 () Bool (= s1 s5))+[GOOD] (define-fun s7 () (Seq Int) (proj_2_SBVTuple2 s0))+[GOOD] (define-fun s8 () Int (seq.len s7))+[GOOD] (define-fun s9 () Bool (= s1 s8))+[GOOD] (define-fun s10 () Int (seq.nth s4 s1))+[GOOD] (define-fun s11 () Int (seq.nth s7 s1))+[GOOD] (define-fun s12 () Int (+ s10 s11))+[GOOD] (define-fun s13 () (Seq Int) (seq.unit s12))+[GOOD] (define-fun s14 () Int (- s5 s2))+[GOOD] (define-fun s15 () (Seq Int) (seq.extract s4 s2 s14))+[GOOD] (define-fun s16 () Int (- s8 s2))+[GOOD] (define-fun s17 () (Seq Int) (seq.extract s7 s2 s16))+[GOOD] (define-fun s18 () (SBVTuple2 (Seq Int) (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 (Seq Int) (Seq Int))) s15 s17))+[GOOD] (define-fun s20 () (Seq Int) (seq.++ s13 s19))+[GOOD] (define-fun s21 () (Seq Int) (ite s9 s3 s20))+[GOOD] (define-fun s22 () (Seq Int) (ite s6 s3 s21))+[GOOD] (define-fun s23 () Bool (>= s5 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s23))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {sbv.zipWith @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV ([Integer],[Integer]) -> SBV [Integer])}: replaying 19 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () (Seq Int) (as seq.empty (Seq Int)))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (SBVTuple2 (Seq Int) (Seq Int))) ; tracks user variable "arg"+[GOOD] (declare-fun s19 () (Seq Int)) ; tracks user variable "__internal_sbv_s19"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () (Seq Int) (proj_1_SBVTuple2 s0))+[GOOD] (define-fun s5 () Int (seq.len s4))+[GOOD] (define-fun s6 () Bool (= s1 s5))+[GOOD] (define-fun s7 () (Seq Int) (proj_2_SBVTuple2 s0))+[GOOD] (define-fun s8 () Int (seq.len s7))+[GOOD] (define-fun s9 () Bool (= s1 s8))+[GOOD] (define-fun s10 () Int (seq.nth s4 s1))+[GOOD] (define-fun s11 () Int (seq.nth s7 s1))+[GOOD] (define-fun s12 () Int (+ s10 s11))+[GOOD] (define-fun s13 () (Seq Int) (seq.unit s12))+[GOOD] (define-fun s14 () Int (- s5 s2))+[GOOD] (define-fun s15 () (Seq Int) (seq.extract s4 s2 s14))+[GOOD] (define-fun s16 () Int (- s8 s2))+[GOOD] (define-fun s17 () (Seq Int) (seq.extract s7 s2 s16))+[GOOD] (define-fun s18 () (SBVTuple2 (Seq Int) (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 (Seq Int) (Seq Int))) s15 s17))+[GOOD] (define-fun s20 () (Seq Int) (seq.++ s13 s19))+[GOOD] (define-fun s21 () (Seq Int) (ite s9 s3 s20))+[GOOD] (define-fun s22 () (Seq Int) (ite s6 s3 s21))+[GOOD] (define-fun s23 () (Seq Int) (proj_1_SBVTuple2 s18))+[GOOD] (define-fun s24 () Int (seq.len s23))+[GOOD] (define-fun s25 () Bool (not s9))+[GOOD] (define-fun s26 () Bool (not s6))+[GOOD] (define-fun s27 () Bool (and s25 s26))+[GOOD] (define-fun s28 () Bool (> s5 s24))+[GOOD] (define-fun s29 () Bool (=> s27 s28))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s29))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] sbv.zipWith @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV ([Integer],[Integer]) -> SBV [Integer]): length arg1._1 -> OK+[MEASURE] Passed (terminating): sbv.zipWith @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV ([Integer],[Integer]) -> SBV [Integer])+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants --- [GOOD] (define-fun s3 () (Seq Int) (seq.++ (seq.unit 1) (seq.unit 2) (seq.unit 3) (seq.unit 4) (seq.unit 5) (seq.unit 6) (seq.unit 7) (seq.unit 8) (seq.unit 9) (seq.unit 10))) [GOOD] (define-fun s5 () (Seq Int) (seq.++ (seq.unit 11) (seq.unit 12) (seq.unit 13) (seq.unit 14) (seq.unit 15) (seq.unit 16) (seq.unit 17) (seq.unit 18) (seq.unit 19) (seq.unit 20))) [GOOD] ; --- top level inputs ---@@ -29,27 +152,27 @@ [GOOD] ; |sbv.zipWith @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV ([Integer],[Integer]) -> SBV [Integer])| :: ([SInteger], [SInteger]) -> [SInteger] [Recursive] [GOOD] (define-fun-rec |sbv.zipWith @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV ([Integer],[Integer]) -> SBV [Integer])| ((l1_s0 (SBVTuple2 (Seq Int) (Seq Int)))) (Seq Int)                                  (let ((l1_s3 0))-                                 (let ((l1_s9 (as seq.empty (Seq Int))))-                                 (let ((l1_s14 1))+                                 (let ((l1_s5 (as seq.empty (Seq Int))))+                                 (let ((l1_s13 1))                                  (let ((l1_s1 (proj_1_SBVTuple2 l1_s0)))                                  (let ((l1_s2 (seq.len l1_s1)))                                  (let ((l1_s4 (= l1_s2 l1_s3)))-                                 (let ((l1_s5 (proj_2_SBVTuple2 l1_s0)))-                                 (let ((l1_s6 (seq.len l1_s5)))-                                 (let ((l1_s7 (= l1_s3 l1_s6)))-                                 (let ((l1_s8 (or l1_s4 l1_s7)))-                                 (let ((l1_s10 (seq.nth l1_s1 l1_s3)))-                                 (let ((l1_s11 (seq.nth l1_s5 l1_s3)))-                                 (let ((l1_s12 (+ l1_s10 l1_s11)))-                                 (let ((l1_s13 (seq.unit l1_s12)))-                                 (let ((l1_s15 (- l1_s2 l1_s14)))-                                 (let ((l1_s16 (seq.extract l1_s1 l1_s14 l1_s15)))-                                 (let ((l1_s17 (- l1_s6 l1_s14)))-                                 (let ((l1_s18 (seq.extract l1_s5 l1_s14 l1_s17)))-                                 (let ((l1_s19 ((as mkSBVTuple2 (SBVTuple2 (Seq Int) (Seq Int))) l1_s16 l1_s18)))-                                 (let ((l1_s20 (|sbv.zipWith @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV ([Integer],[Integer]) -> SBV [Integer])| l1_s19)))-                                 (let ((l1_s21 (seq.++ l1_s13 l1_s20)))-                                 (let ((l1_s22 (ite l1_s8 l1_s9 l1_s21)))+                                 (let ((l1_s6 (proj_2_SBVTuple2 l1_s0)))+                                 (let ((l1_s7 (seq.len l1_s6)))+                                 (let ((l1_s8 (= l1_s3 l1_s7)))+                                 (let ((l1_s9 (seq.nth l1_s1 l1_s3)))+                                 (let ((l1_s10 (seq.nth l1_s6 l1_s3)))+                                 (let ((l1_s11 (+ l1_s9 l1_s10)))+                                 (let ((l1_s12 (seq.unit l1_s11)))+                                 (let ((l1_s14 (- l1_s2 l1_s13)))+                                 (let ((l1_s15 (seq.extract l1_s1 l1_s13 l1_s14)))+                                 (let ((l1_s16 (- l1_s7 l1_s13)))+                                 (let ((l1_s17 (seq.extract l1_s6 l1_s13 l1_s16)))+                                 (let ((l1_s18 ((as mkSBVTuple2 (SBVTuple2 (Seq Int) (Seq Int))) l1_s15 l1_s17)))+                                 (let ((l1_s19 (|sbv.zipWith @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV ([Integer],[Integer]) -> SBV [Integer])| l1_s18)))+                                 (let ((l1_s20 (seq.++ l1_s12 l1_s19)))+                                 (let ((l1_s21 (ite l1_s8 l1_s5 l1_s20)))+                                 (let ((l1_s22 (ite l1_s4 l1_s5 l1_s21)))                                  l1_s22))))))))))))))))))))))) [GOOD] ; --- assignments --- [GOOD] (define-fun s4 () Bool (= s0 s3))
SBVTestSuite/GoldFiles/lambda25.gold view
@@ -1,3 +1,10 @@+[MEASURE] Verifying termination measures for: sbv.zipWith @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV ([Integer],[Integer]) -> SBV [Integer]), sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer)+[MEASURE] Checking: sbv.zipWith @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV ([Integer],[Integer]) -> SBV [Integer])+[MEASURE] sbv.zipWith @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV ([Integer],[Integer]) -> SBV [Integer]): barified = "|sbv.zipWith @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV ([Integer],[Integer]) -> SBV [Integer])|"+[MEASURE] sbv.zipWith @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV ([Integer],[Integer]) -> SBV [Integer]): Uninterpreted ops in DAG: [("|sbv.zipWith @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV ([Integer],[Integer]) -> SBV [Integer])|",1)]+[MEASURE] sbv.zipWith @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV ([Integer],[Integer]) -> SBV [Integer]): recursive calls found = 1+[MEASURE] sbv.zipWith @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV ([Integer],[Integer]) -> SBV [Integer]): trying length arg1._1+[MEASURE] replayDAG {sbv.zipWith @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV ([Integer],[Integer]) -> SBV [Integer])}: replaying 19 node(s) ** Calling: z3 -nw -in -smt2 [GOOD] ; Automatically generated by SBV. Do not edit. [GOOD] (set-option :print-success true)@@ -9,13 +16,344 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)                                            ((mkSBVTuple2 (proj_1_SBVTuple2 T1)                                                          (proj_2_SBVTuple2 T2)))))) [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () (Seq Int) (as seq.empty (Seq Int)))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (SBVTuple2 (Seq Int) (Seq Int))) ; tracks user variable "arg"+[GOOD] (declare-fun s19 () (Seq Int)) ; tracks user variable "__internal_sbv_s19"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () (Seq Int) (proj_1_SBVTuple2 s0))+[GOOD] (define-fun s5 () Int (seq.len s4))+[GOOD] (define-fun s6 () Bool (= s1 s5))+[GOOD] (define-fun s7 () (Seq Int) (proj_2_SBVTuple2 s0))+[GOOD] (define-fun s8 () Int (seq.len s7))+[GOOD] (define-fun s9 () Bool (= s1 s8))+[GOOD] (define-fun s10 () Int (seq.nth s4 s1))+[GOOD] (define-fun s11 () Int (seq.nth s7 s1))+[GOOD] (define-fun s12 () Int (+ s10 s11))+[GOOD] (define-fun s13 () (Seq Int) (seq.unit s12))+[GOOD] (define-fun s14 () Int (- s5 s2))+[GOOD] (define-fun s15 () (Seq Int) (seq.extract s4 s2 s14))+[GOOD] (define-fun s16 () Int (- s8 s2))+[GOOD] (define-fun s17 () (Seq Int) (seq.extract s7 s2 s16))+[GOOD] (define-fun s18 () (SBVTuple2 (Seq Int) (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 (Seq Int) (Seq Int))) s15 s17))+[GOOD] (define-fun s20 () (Seq Int) (seq.++ s13 s19))+[GOOD] (define-fun s21 () (Seq Int) (ite s9 s3 s20))+[GOOD] (define-fun s22 () (Seq Int) (ite s6 s3 s21))+[GOOD] (define-fun s23 () Bool (>= s5 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s23))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {sbv.zipWith @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV ([Integer],[Integer]) -> SBV [Integer])}: replaying 19 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () (Seq Int) (as seq.empty (Seq Int)))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (SBVTuple2 (Seq Int) (Seq Int))) ; tracks user variable "arg"+[GOOD] (declare-fun s19 () (Seq Int)) ; tracks user variable "__internal_sbv_s19"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () (Seq Int) (proj_1_SBVTuple2 s0))+[GOOD] (define-fun s5 () Int (seq.len s4))+[GOOD] (define-fun s6 () Bool (= s1 s5))+[GOOD] (define-fun s7 () (Seq Int) (proj_2_SBVTuple2 s0))+[GOOD] (define-fun s8 () Int (seq.len s7))+[GOOD] (define-fun s9 () Bool (= s1 s8))+[GOOD] (define-fun s10 () Int (seq.nth s4 s1))+[GOOD] (define-fun s11 () Int (seq.nth s7 s1))+[GOOD] (define-fun s12 () Int (+ s10 s11))+[GOOD] (define-fun s13 () (Seq Int) (seq.unit s12))+[GOOD] (define-fun s14 () Int (- s5 s2))+[GOOD] (define-fun s15 () (Seq Int) (seq.extract s4 s2 s14))+[GOOD] (define-fun s16 () Int (- s8 s2))+[GOOD] (define-fun s17 () (Seq Int) (seq.extract s7 s2 s16))+[GOOD] (define-fun s18 () (SBVTuple2 (Seq Int) (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 (Seq Int) (Seq Int))) s15 s17))+[GOOD] (define-fun s20 () (Seq Int) (seq.++ s13 s19))+[GOOD] (define-fun s21 () (Seq Int) (ite s9 s3 s20))+[GOOD] (define-fun s22 () (Seq Int) (ite s6 s3 s21))+[GOOD] (define-fun s23 () (Seq Int) (proj_1_SBVTuple2 s18))+[GOOD] (define-fun s24 () Int (seq.len s23))+[GOOD] (define-fun s25 () Bool (not s9))+[GOOD] (define-fun s26 () Bool (not s6))+[GOOD] (define-fun s27 () Bool (and s25 s26))+[GOOD] (define-fun s28 () Bool (> s5 s24))+[GOOD] (define-fun s29 () Bool (=> s27 s28))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s29))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] sbv.zipWith @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV ([Integer],[Integer]) -> SBV [Integer]): length arg1._1 -> OK+[MEASURE] Passed (terminating): sbv.zipWith @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV ([Integer],[Integer]) -> SBV [Integer])+[MEASURE] Checking: sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer)+[MEASURE] sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer): barified = "|sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer)|"+[MEASURE] sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer): Uninterpreted ops in DAG: [("|sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer)|",1)]+[MEASURE] sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer): recursive calls found = 1+[MEASURE] sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer): trying abs arg1._1+[MEASURE] replayDAG {sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer)}: replaying 11 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (SBVTuple2 Int (Seq Int))) ; tracks user variable "arg"+[GOOD] (declare-fun s11 () Int) ; tracks user variable "__internal_sbv_s11"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () (Seq Int) (proj_2_SBVTuple2 s0))+[GOOD] (define-fun s4 () Int (seq.len s3))+[GOOD] (define-fun s5 () Bool (= s1 s4))+[GOOD] (define-fun s6 () Int (proj_1_SBVTuple2 s0))+[GOOD] (define-fun s7 () Int (seq.nth s3 s1))+[GOOD] (define-fun s8 () Int (- s4 s2))+[GOOD] (define-fun s9 () (Seq Int) (seq.extract s3 s2 s8))+[GOOD] (define-fun s10 () (SBVTuple2 Int (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 Int (Seq Int))) s6 s9))+[GOOD] (define-fun s12 () Int (+ s7 s11))+[GOOD] (define-fun s13 () Int (ite s5 s6 s12))+[GOOD] (define-fun s14 () Int (abs s6))+[GOOD] (define-fun s15 () Bool (>= s14 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s15))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer)}: replaying 11 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (SBVTuple2 Int (Seq Int))) ; tracks user variable "arg"+[GOOD] (declare-fun s11 () Int) ; tracks user variable "__internal_sbv_s11"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () (Seq Int) (proj_2_SBVTuple2 s0))+[GOOD] (define-fun s4 () Int (seq.len s3))+[GOOD] (define-fun s5 () Bool (= s1 s4))+[GOOD] (define-fun s6 () Int (proj_1_SBVTuple2 s0))+[GOOD] (define-fun s7 () Int (seq.nth s3 s1))+[GOOD] (define-fun s8 () Int (- s4 s2))+[GOOD] (define-fun s9 () (Seq Int) (seq.extract s3 s2 s8))+[GOOD] (define-fun s10 () (SBVTuple2 Int (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 Int (Seq Int))) s6 s9))+[GOOD] (define-fun s12 () Int (+ s7 s11))+[GOOD] (define-fun s13 () Int (ite s5 s6 s12))+[GOOD] (define-fun s14 () Int (abs s6))+[GOOD] (define-fun s15 () Int (proj_1_SBVTuple2 s10))+[GOOD] (define-fun s16 () Int (abs s15))+[GOOD] (define-fun s17 () Bool (not s5))+[GOOD] (define-fun s18 () Bool (> s14 s16))+[GOOD] (define-fun s19 () Bool (=> s17 s18))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s19))+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s14))+[RECV] ((s14 0))+[SEND] (get-value (s16))+[RECV] ((s16 0))+[SEND] (get-value (s0))+[RECV] ((s0 (mkSBVTuple2 0 (seq.unit 2))))+[SEND] (get-value (s11))+[RECV] ((s11 0))+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer): abs arg1._1 failed strict decrease: Falsifiable. Counter-example:+  arg    = (0,[2]) :: (Integer, [Integer])+  before =       0 :: Integer+  then   =       0 :: Integer+[MEASURE] sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer): trying next candidate..+[MEASURE] sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer): trying length arg1._2+[MEASURE] replayDAG {sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer)}: replaying 11 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (SBVTuple2 Int (Seq Int))) ; tracks user variable "arg"+[GOOD] (declare-fun s11 () Int) ; tracks user variable "__internal_sbv_s11"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () (Seq Int) (proj_2_SBVTuple2 s0))+[GOOD] (define-fun s4 () Int (seq.len s3))+[GOOD] (define-fun s5 () Bool (= s1 s4))+[GOOD] (define-fun s6 () Int (proj_1_SBVTuple2 s0))+[GOOD] (define-fun s7 () Int (seq.nth s3 s1))+[GOOD] (define-fun s8 () Int (- s4 s2))+[GOOD] (define-fun s9 () (Seq Int) (seq.extract s3 s2 s8))+[GOOD] (define-fun s10 () (SBVTuple2 Int (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 Int (Seq Int))) s6 s9))+[GOOD] (define-fun s12 () Int (+ s7 s11))+[GOOD] (define-fun s13 () Int (ite s5 s6 s12))+[GOOD] (define-fun s14 () Bool (>= s4 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s14))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer)}: replaying 11 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (SBVTuple2 Int (Seq Int))) ; tracks user variable "arg"+[GOOD] (declare-fun s11 () Int) ; tracks user variable "__internal_sbv_s11"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () (Seq Int) (proj_2_SBVTuple2 s0))+[GOOD] (define-fun s4 () Int (seq.len s3))+[GOOD] (define-fun s5 () Bool (= s1 s4))+[GOOD] (define-fun s6 () Int (proj_1_SBVTuple2 s0))+[GOOD] (define-fun s7 () Int (seq.nth s3 s1))+[GOOD] (define-fun s8 () Int (- s4 s2))+[GOOD] (define-fun s9 () (Seq Int) (seq.extract s3 s2 s8))+[GOOD] (define-fun s10 () (SBVTuple2 Int (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 Int (Seq Int))) s6 s9))+[GOOD] (define-fun s12 () Int (+ s7 s11))+[GOOD] (define-fun s13 () Int (ite s5 s6 s12))+[GOOD] (define-fun s14 () (Seq Int) (proj_2_SBVTuple2 s10))+[GOOD] (define-fun s15 () Int (seq.len s14))+[GOOD] (define-fun s16 () Bool (not s5))+[GOOD] (define-fun s17 () Bool (> s4 s15))+[GOOD] (define-fun s18 () Bool (=> s16 s17))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s18))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer): length arg1._2 -> OK+[MEASURE] Passed (terminating): sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants --- [GOOD] (define-fun s3 () (Seq Int) (seq.++ (seq.unit 1) (seq.unit 2) (seq.unit 3) (seq.unit 4) (seq.unit 5) (seq.unit 6) (seq.unit 7) (seq.unit 8) (seq.unit 9) (seq.unit 10))) [GOOD] (define-fun s5 () (Seq Int) (seq.++ (seq.unit 10) (seq.unit 9) (seq.unit 8) (seq.unit 7) (seq.unit 6) (seq.unit 5) (seq.unit 4) (seq.unit 3) (seq.unit 2) (seq.unit 1))) [GOOD] (define-fun s7 () Int 0)@@ -30,27 +368,27 @@ [GOOD] ; |sbv.zipWith @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV ([Integer],[Integer]) -> SBV [Integer])| :: ([SInteger], [SInteger]) -> [SInteger] [Recursive] [GOOD] (define-fun-rec |sbv.zipWith @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV ([Integer],[Integer]) -> SBV [Integer])| ((l1_s0 (SBVTuple2 (Seq Int) (Seq Int)))) (Seq Int)                                  (let ((l1_s3 0))-                                 (let ((l1_s9 (as seq.empty (Seq Int))))-                                 (let ((l1_s14 1))+                                 (let ((l1_s5 (as seq.empty (Seq Int))))+                                 (let ((l1_s13 1))                                  (let ((l1_s1 (proj_1_SBVTuple2 l1_s0)))                                  (let ((l1_s2 (seq.len l1_s1)))                                  (let ((l1_s4 (= l1_s2 l1_s3)))-                                 (let ((l1_s5 (proj_2_SBVTuple2 l1_s0)))-                                 (let ((l1_s6 (seq.len l1_s5)))-                                 (let ((l1_s7 (= l1_s3 l1_s6)))-                                 (let ((l1_s8 (or l1_s4 l1_s7)))-                                 (let ((l1_s10 (seq.nth l1_s1 l1_s3)))-                                 (let ((l1_s11 (seq.nth l1_s5 l1_s3)))-                                 (let ((l1_s12 (+ l1_s10 l1_s11)))-                                 (let ((l1_s13 (seq.unit l1_s12)))-                                 (let ((l1_s15 (- l1_s2 l1_s14)))-                                 (let ((l1_s16 (seq.extract l1_s1 l1_s14 l1_s15)))-                                 (let ((l1_s17 (- l1_s6 l1_s14)))-                                 (let ((l1_s18 (seq.extract l1_s5 l1_s14 l1_s17)))-                                 (let ((l1_s19 ((as mkSBVTuple2 (SBVTuple2 (Seq Int) (Seq Int))) l1_s16 l1_s18)))-                                 (let ((l1_s20 (|sbv.zipWith @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV ([Integer],[Integer]) -> SBV [Integer])| l1_s19)))-                                 (let ((l1_s21 (seq.++ l1_s13 l1_s20)))-                                 (let ((l1_s22 (ite l1_s8 l1_s9 l1_s21)))+                                 (let ((l1_s6 (proj_2_SBVTuple2 l1_s0)))+                                 (let ((l1_s7 (seq.len l1_s6)))+                                 (let ((l1_s8 (= l1_s3 l1_s7)))+                                 (let ((l1_s9 (seq.nth l1_s1 l1_s3)))+                                 (let ((l1_s10 (seq.nth l1_s6 l1_s3)))+                                 (let ((l1_s11 (+ l1_s9 l1_s10)))+                                 (let ((l1_s12 (seq.unit l1_s11)))+                                 (let ((l1_s14 (- l1_s2 l1_s13)))+                                 (let ((l1_s15 (seq.extract l1_s1 l1_s13 l1_s14)))+                                 (let ((l1_s16 (- l1_s7 l1_s13)))+                                 (let ((l1_s17 (seq.extract l1_s6 l1_s13 l1_s16)))+                                 (let ((l1_s18 ((as mkSBVTuple2 (SBVTuple2 (Seq Int) (Seq Int))) l1_s15 l1_s17)))+                                 (let ((l1_s19 (|sbv.zipWith @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV ([Integer],[Integer]) -> SBV [Integer])| l1_s18)))+                                 (let ((l1_s20 (seq.++ l1_s12 l1_s19)))+                                 (let ((l1_s21 (ite l1_s8 l1_s5 l1_s20)))+                                 (let ((l1_s22 (ite l1_s4 l1_s5 l1_s21)))                                  l1_s22))))))))))))))))))))))) [GOOD] ; |sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer)| :: (SInteger, [SInteger]) -> SInteger [Recursive] [GOOD] (define-fun-rec |sbv.foldr @(SBV (Integer,Integer) -> SBV Integer)_1fd06f7602 @(SBV (Integer,[Integer]) -> SBV Integer)| ((l1_s0 (SBVTuple2 Int (Seq Int)))) Int
SBVTestSuite/GoldFiles/lambda26.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)                                            ((mkSBVTuple2 (proj_1_SBVTuple2 T1)
SBVTestSuite/GoldFiles/lambda27.gold view
@@ -1,3 +1,10 @@+[MEASURE] Verifying termination measures for: sbv.foldr @(SBV (Integer,Bool) -> SBV Bool)_574b56f8c4 @(SBV (Bool,[Integer]) -> SBV Bool)+[MEASURE] Checking: sbv.foldr @(SBV (Integer,Bool) -> SBV Bool)_574b56f8c4 @(SBV (Bool,[Integer]) -> SBV Bool)+[MEASURE] sbv.foldr @(SBV (Integer,Bool) -> SBV Bool)_574b56f8c4 @(SBV (Bool,[Integer]) -> SBV Bool): barified = "|sbv.foldr @(SBV (Integer,Bool) -> SBV Bool)_574b56f8c4 @(SBV (Bool,[Integer]) -> SBV Bool)|"+[MEASURE] sbv.foldr @(SBV (Integer,Bool) -> SBV Bool)_574b56f8c4 @(SBV (Bool,[Integer]) -> SBV Bool): Uninterpreted ops in DAG: [("|sbv.foldr @(SBV (Integer,Bool) -> SBV Bool)_574b56f8c4 @(SBV (Bool,[Integer]) -> SBV Bool)|",1)]+[MEASURE] sbv.foldr @(SBV (Integer,Bool) -> SBV Bool)_574b56f8c4 @(SBV (Bool,[Integer]) -> SBV Bool): recursive calls found = 1+[MEASURE] sbv.foldr @(SBV (Integer,Bool) -> SBV Bool)_574b56f8c4 @(SBV (Bool,[Integer]) -> SBV Bool): trying length arg1._2+[MEASURE] replayDAG {sbv.foldr @(SBV (Integer,Bool) -> SBV Bool)_574b56f8c4 @(SBV (Bool,[Integer]) -> SBV Bool)}: replaying 13 node(s) ** Calling: z3 -nw -in -smt2 [GOOD] ; Automatically generated by SBV. Do not edit. [GOOD] (set-option :print-success true)@@ -9,7 +16,110 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts ---+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () Int 2)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (SBVTuple2 Bool (Seq Int))) ; tracks user variable "arg"+[GOOD] (declare-fun s14 () Bool) ; tracks user variable "__internal_sbv_s14"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () (Seq Int) (proj_2_SBVTuple2 s0))+[GOOD] (define-fun s5 () Int (seq.len s4))+[GOOD] (define-fun s6 () Bool (= s1 s5))+[GOOD] (define-fun s7 () Bool (proj_1_SBVTuple2 s0))+[GOOD] (define-fun s8 () Int (seq.nth s4 s1))+[GOOD] (define-fun s9 () Int (mod s8 s3))+[GOOD] (define-fun s10 () Bool (= s1 s9))+[GOOD] (define-fun s11 () Int (- s5 s2))+[GOOD] (define-fun s12 () (Seq Int) (seq.extract s4 s2 s11))+[GOOD] (define-fun s13 () (SBVTuple2 Bool (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 Bool (Seq Int))) s7 s12))+[GOOD] (define-fun s15 () Bool (and s10 s14))+[GOOD] (define-fun s16 () Bool (ite s6 s7 s15))+[GOOD] (define-fun s17 () Bool (>= s5 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s17))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {sbv.foldr @(SBV (Integer,Bool) -> SBV Bool)_574b56f8c4 @(SBV (Bool,[Integer]) -> SBV Bool)}: replaying 13 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () Int 2)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (SBVTuple2 Bool (Seq Int))) ; tracks user variable "arg"+[GOOD] (declare-fun s14 () Bool) ; tracks user variable "__internal_sbv_s14"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () (Seq Int) (proj_2_SBVTuple2 s0))+[GOOD] (define-fun s5 () Int (seq.len s4))+[GOOD] (define-fun s6 () Bool (= s1 s5))+[GOOD] (define-fun s7 () Bool (proj_1_SBVTuple2 s0))+[GOOD] (define-fun s8 () Int (seq.nth s4 s1))+[GOOD] (define-fun s9 () Int (mod s8 s3))+[GOOD] (define-fun s10 () Bool (= s1 s9))+[GOOD] (define-fun s11 () Int (- s5 s2))+[GOOD] (define-fun s12 () (Seq Int) (seq.extract s4 s2 s11))+[GOOD] (define-fun s13 () (SBVTuple2 Bool (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 Bool (Seq Int))) s7 s12))+[GOOD] (define-fun s15 () Bool (and s10 s14))+[GOOD] (define-fun s16 () Bool (ite s6 s7 s15))+[GOOD] (define-fun s17 () (Seq Int) (proj_2_SBVTuple2 s13))+[GOOD] (define-fun s18 () Int (seq.len s17))+[GOOD] (define-fun s19 () Bool (not s6))+[GOOD] (define-fun s20 () Bool (and s10 s19))+[GOOD] (define-fun s21 () Bool (> s5 s18))+[GOOD] (define-fun s22 () Bool (=> s20 s21))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s22))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] sbv.foldr @(SBV (Integer,Bool) -> SBV Bool)_574b56f8c4 @(SBV (Bool,[Integer]) -> SBV Bool): length arg1._2 -> OK+[MEASURE] Passed (terminating): sbv.foldr @(SBV (Integer,Bool) -> SBV Bool)_574b56f8c4 @(SBV (Bool,[Integer]) -> SBV Bool)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all. [GOOD] ; --- tuples --- [GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)                                            ((mkSBVTuple2 (proj_1_SBVTuple2 T1)
SBVTestSuite/GoldFiles/lambda28.gold view
@@ -1,3 +1,10 @@+[MEASURE] Verifying termination measures for: sbv.foldr @(SBV (Integer,Bool) -> SBV Bool)_574b56f8c4 @(SBV (Bool,[Integer]) -> SBV Bool)+[MEASURE] Checking: sbv.foldr @(SBV (Integer,Bool) -> SBV Bool)_574b56f8c4 @(SBV (Bool,[Integer]) -> SBV Bool)+[MEASURE] sbv.foldr @(SBV (Integer,Bool) -> SBV Bool)_574b56f8c4 @(SBV (Bool,[Integer]) -> SBV Bool): barified = "|sbv.foldr @(SBV (Integer,Bool) -> SBV Bool)_574b56f8c4 @(SBV (Bool,[Integer]) -> SBV Bool)|"+[MEASURE] sbv.foldr @(SBV (Integer,Bool) -> SBV Bool)_574b56f8c4 @(SBV (Bool,[Integer]) -> SBV Bool): Uninterpreted ops in DAG: [("|sbv.foldr @(SBV (Integer,Bool) -> SBV Bool)_574b56f8c4 @(SBV (Bool,[Integer]) -> SBV Bool)|",1)]+[MEASURE] sbv.foldr @(SBV (Integer,Bool) -> SBV Bool)_574b56f8c4 @(SBV (Bool,[Integer]) -> SBV Bool): recursive calls found = 1+[MEASURE] sbv.foldr @(SBV (Integer,Bool) -> SBV Bool)_574b56f8c4 @(SBV (Bool,[Integer]) -> SBV Bool): trying length arg1._2+[MEASURE] replayDAG {sbv.foldr @(SBV (Integer,Bool) -> SBV Bool)_574b56f8c4 @(SBV (Bool,[Integer]) -> SBV Bool)}: replaying 13 node(s) ** Calling: z3 -nw -in -smt2 [GOOD] ; Automatically generated by SBV. Do not edit. [GOOD] (set-option :print-success true)@@ -9,7 +16,110 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts ---+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () Int 2)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (SBVTuple2 Bool (Seq Int))) ; tracks user variable "arg"+[GOOD] (declare-fun s14 () Bool) ; tracks user variable "__internal_sbv_s14"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () (Seq Int) (proj_2_SBVTuple2 s0))+[GOOD] (define-fun s5 () Int (seq.len s4))+[GOOD] (define-fun s6 () Bool (= s1 s5))+[GOOD] (define-fun s7 () Bool (proj_1_SBVTuple2 s0))+[GOOD] (define-fun s8 () Int (seq.nth s4 s1))+[GOOD] (define-fun s9 () Int (mod s8 s3))+[GOOD] (define-fun s10 () Bool (= s1 s9))+[GOOD] (define-fun s11 () Int (- s5 s2))+[GOOD] (define-fun s12 () (Seq Int) (seq.extract s4 s2 s11))+[GOOD] (define-fun s13 () (SBVTuple2 Bool (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 Bool (Seq Int))) s7 s12))+[GOOD] (define-fun s15 () Bool (and s10 s14))+[GOOD] (define-fun s16 () Bool (ite s6 s7 s15))+[GOOD] (define-fun s17 () Bool (>= s5 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s17))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {sbv.foldr @(SBV (Integer,Bool) -> SBV Bool)_574b56f8c4 @(SBV (Bool,[Integer]) -> SBV Bool)}: replaying 13 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () Int 2)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (SBVTuple2 Bool (Seq Int))) ; tracks user variable "arg"+[GOOD] (declare-fun s14 () Bool) ; tracks user variable "__internal_sbv_s14"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () (Seq Int) (proj_2_SBVTuple2 s0))+[GOOD] (define-fun s5 () Int (seq.len s4))+[GOOD] (define-fun s6 () Bool (= s1 s5))+[GOOD] (define-fun s7 () Bool (proj_1_SBVTuple2 s0))+[GOOD] (define-fun s8 () Int (seq.nth s4 s1))+[GOOD] (define-fun s9 () Int (mod s8 s3))+[GOOD] (define-fun s10 () Bool (= s1 s9))+[GOOD] (define-fun s11 () Int (- s5 s2))+[GOOD] (define-fun s12 () (Seq Int) (seq.extract s4 s2 s11))+[GOOD] (define-fun s13 () (SBVTuple2 Bool (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 Bool (Seq Int))) s7 s12))+[GOOD] (define-fun s15 () Bool (and s10 s14))+[GOOD] (define-fun s16 () Bool (ite s6 s7 s15))+[GOOD] (define-fun s17 () (Seq Int) (proj_2_SBVTuple2 s13))+[GOOD] (define-fun s18 () Int (seq.len s17))+[GOOD] (define-fun s19 () Bool (not s6))+[GOOD] (define-fun s20 () Bool (and s10 s19))+[GOOD] (define-fun s21 () Bool (> s5 s18))+[GOOD] (define-fun s22 () Bool (=> s20 s21))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s22))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] sbv.foldr @(SBV (Integer,Bool) -> SBV Bool)_574b56f8c4 @(SBV (Bool,[Integer]) -> SBV Bool): length arg1._2 -> OK+[MEASURE] Passed (terminating): sbv.foldr @(SBV (Integer,Bool) -> SBV Bool)_574b56f8c4 @(SBV (Bool,[Integer]) -> SBV Bool)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all. [GOOD] ; --- tuples --- [GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)                                            ((mkSBVTuple2 (proj_1_SBVTuple2 T1)
SBVTestSuite/GoldFiles/lambda29.gold view
@@ -1,3 +1,10 @@+[MEASURE] Verifying termination measures for: sbv.foldr @(SBV (Integer,Bool) -> SBV Bool)_01257e6724 @(SBV (Bool,[Integer]) -> SBV Bool)+[MEASURE] Checking: sbv.foldr @(SBV (Integer,Bool) -> SBV Bool)_01257e6724 @(SBV (Bool,[Integer]) -> SBV Bool)+[MEASURE] sbv.foldr @(SBV (Integer,Bool) -> SBV Bool)_01257e6724 @(SBV (Bool,[Integer]) -> SBV Bool): barified = "|sbv.foldr @(SBV (Integer,Bool) -> SBV Bool)_01257e6724 @(SBV (Bool,[Integer]) -> SBV Bool)|"+[MEASURE] sbv.foldr @(SBV (Integer,Bool) -> SBV Bool)_01257e6724 @(SBV (Bool,[Integer]) -> SBV Bool): Uninterpreted ops in DAG: [("|sbv.foldr @(SBV (Integer,Bool) -> SBV Bool)_01257e6724 @(SBV (Bool,[Integer]) -> SBV Bool)|",1)]+[MEASURE] sbv.foldr @(SBV (Integer,Bool) -> SBV Bool)_01257e6724 @(SBV (Bool,[Integer]) -> SBV Bool): recursive calls found = 1+[MEASURE] sbv.foldr @(SBV (Integer,Bool) -> SBV Bool)_01257e6724 @(SBV (Bool,[Integer]) -> SBV Bool): trying length arg1._2+[MEASURE] replayDAG {sbv.foldr @(SBV (Integer,Bool) -> SBV Bool)_01257e6724 @(SBV (Bool,[Integer]) -> SBV Bool)}: replaying 13 node(s) ** Calling: z3 -nw -in -smt2 [GOOD] ; Automatically generated by SBV. Do not edit. [GOOD] (set-option :print-success true)@@ -9,7 +16,111 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts ---+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () Int 2)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (SBVTuple2 Bool (Seq Int))) ; tracks user variable "arg"+[GOOD] (declare-fun s14 () Bool) ; tracks user variable "__internal_sbv_s14"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () (Seq Int) (proj_2_SBVTuple2 s0))+[GOOD] (define-fun s5 () Int (seq.len s4))+[GOOD] (define-fun s6 () Bool (= s1 s5))+[GOOD] (define-fun s7 () Bool (proj_1_SBVTuple2 s0))+[GOOD] (define-fun s8 () Int (seq.nth s4 s1))+[GOOD] (define-fun s9 () Int (mod s8 s3))+[GOOD] (define-fun s10 () Bool (distinct s1 s9))+[GOOD] (define-fun s11 () Int (- s5 s2))+[GOOD] (define-fun s12 () (Seq Int) (seq.extract s4 s2 s11))+[GOOD] (define-fun s13 () (SBVTuple2 Bool (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 Bool (Seq Int))) s7 s12))+[GOOD] (define-fun s15 () Bool (or s10 s14))+[GOOD] (define-fun s16 () Bool (ite s6 s7 s15))+[GOOD] (define-fun s17 () Bool (>= s5 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s17))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {sbv.foldr @(SBV (Integer,Bool) -> SBV Bool)_01257e6724 @(SBV (Bool,[Integer]) -> SBV Bool)}: replaying 13 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () Int 2)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (SBVTuple2 Bool (Seq Int))) ; tracks user variable "arg"+[GOOD] (declare-fun s14 () Bool) ; tracks user variable "__internal_sbv_s14"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () (Seq Int) (proj_2_SBVTuple2 s0))+[GOOD] (define-fun s5 () Int (seq.len s4))+[GOOD] (define-fun s6 () Bool (= s1 s5))+[GOOD] (define-fun s7 () Bool (proj_1_SBVTuple2 s0))+[GOOD] (define-fun s8 () Int (seq.nth s4 s1))+[GOOD] (define-fun s9 () Int (mod s8 s3))+[GOOD] (define-fun s10 () Bool (distinct s1 s9))+[GOOD] (define-fun s11 () Int (- s5 s2))+[GOOD] (define-fun s12 () (Seq Int) (seq.extract s4 s2 s11))+[GOOD] (define-fun s13 () (SBVTuple2 Bool (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 Bool (Seq Int))) s7 s12))+[GOOD] (define-fun s15 () Bool (or s10 s14))+[GOOD] (define-fun s16 () Bool (ite s6 s7 s15))+[GOOD] (define-fun s17 () (Seq Int) (proj_2_SBVTuple2 s13))+[GOOD] (define-fun s18 () Int (seq.len s17))+[GOOD] (define-fun s19 () Bool (not s10))+[GOOD] (define-fun s20 () Bool (not s6))+[GOOD] (define-fun s21 () Bool (and s19 s20))+[GOOD] (define-fun s22 () Bool (> s5 s18))+[GOOD] (define-fun s23 () Bool (=> s21 s22))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s23))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] sbv.foldr @(SBV (Integer,Bool) -> SBV Bool)_01257e6724 @(SBV (Bool,[Integer]) -> SBV Bool): length arg1._2 -> OK+[MEASURE] Passed (terminating): sbv.foldr @(SBV (Integer,Bool) -> SBV Bool)_01257e6724 @(SBV (Bool,[Integer]) -> SBV Bool)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all. [GOOD] ; --- tuples --- [GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)                                            ((mkSBVTuple2 (proj_1_SBVTuple2 T1)
SBVTestSuite/GoldFiles/lambda30.gold view
@@ -1,3 +1,10 @@+[MEASURE] Verifying termination measures for: sbv.foldr @(SBV (Integer,Bool) -> SBV Bool)_7182762f14 @(SBV (Bool,[Integer]) -> SBV Bool)+[MEASURE] Checking: sbv.foldr @(SBV (Integer,Bool) -> SBV Bool)_7182762f14 @(SBV (Bool,[Integer]) -> SBV Bool)+[MEASURE] sbv.foldr @(SBV (Integer,Bool) -> SBV Bool)_7182762f14 @(SBV (Bool,[Integer]) -> SBV Bool): barified = "|sbv.foldr @(SBV (Integer,Bool) -> SBV Bool)_7182762f14 @(SBV (Bool,[Integer]) -> SBV Bool)|"+[MEASURE] sbv.foldr @(SBV (Integer,Bool) -> SBV Bool)_7182762f14 @(SBV (Bool,[Integer]) -> SBV Bool): Uninterpreted ops in DAG: [("|sbv.foldr @(SBV (Integer,Bool) -> SBV Bool)_7182762f14 @(SBV (Bool,[Integer]) -> SBV Bool)|",1)]+[MEASURE] sbv.foldr @(SBV (Integer,Bool) -> SBV Bool)_7182762f14 @(SBV (Bool,[Integer]) -> SBV Bool): recursive calls found = 1+[MEASURE] sbv.foldr @(SBV (Integer,Bool) -> SBV Bool)_7182762f14 @(SBV (Bool,[Integer]) -> SBV Bool): trying length arg1._2+[MEASURE] replayDAG {sbv.foldr @(SBV (Integer,Bool) -> SBV Bool)_7182762f14 @(SBV (Bool,[Integer]) -> SBV Bool)}: replaying 13 node(s) ** Calling: z3 -nw -in -smt2 [GOOD] ; Automatically generated by SBV. Do not edit. [GOOD] (set-option :print-success true)@@ -9,7 +16,111 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts ---+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () Int 2)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (SBVTuple2 Bool (Seq Int))) ; tracks user variable "arg"+[GOOD] (declare-fun s14 () Bool) ; tracks user variable "__internal_sbv_s14"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () (Seq Int) (proj_2_SBVTuple2 s0))+[GOOD] (define-fun s5 () Int (seq.len s4))+[GOOD] (define-fun s6 () Bool (= s1 s5))+[GOOD] (define-fun s7 () Bool (proj_1_SBVTuple2 s0))+[GOOD] (define-fun s8 () Int (seq.nth s4 s1))+[GOOD] (define-fun s9 () Int (mod s8 s3))+[GOOD] (define-fun s10 () Bool (= s1 s9))+[GOOD] (define-fun s11 () Int (- s5 s2))+[GOOD] (define-fun s12 () (Seq Int) (seq.extract s4 s2 s11))+[GOOD] (define-fun s13 () (SBVTuple2 Bool (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 Bool (Seq Int))) s7 s12))+[GOOD] (define-fun s15 () Bool (or s10 s14))+[GOOD] (define-fun s16 () Bool (ite s6 s7 s15))+[GOOD] (define-fun s17 () Bool (>= s5 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s17))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {sbv.foldr @(SBV (Integer,Bool) -> SBV Bool)_7182762f14 @(SBV (Bool,[Integer]) -> SBV Bool)}: replaying 13 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () Int 2)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (SBVTuple2 Bool (Seq Int))) ; tracks user variable "arg"+[GOOD] (declare-fun s14 () Bool) ; tracks user variable "__internal_sbv_s14"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () (Seq Int) (proj_2_SBVTuple2 s0))+[GOOD] (define-fun s5 () Int (seq.len s4))+[GOOD] (define-fun s6 () Bool (= s1 s5))+[GOOD] (define-fun s7 () Bool (proj_1_SBVTuple2 s0))+[GOOD] (define-fun s8 () Int (seq.nth s4 s1))+[GOOD] (define-fun s9 () Int (mod s8 s3))+[GOOD] (define-fun s10 () Bool (= s1 s9))+[GOOD] (define-fun s11 () Int (- s5 s2))+[GOOD] (define-fun s12 () (Seq Int) (seq.extract s4 s2 s11))+[GOOD] (define-fun s13 () (SBVTuple2 Bool (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 Bool (Seq Int))) s7 s12))+[GOOD] (define-fun s15 () Bool (or s10 s14))+[GOOD] (define-fun s16 () Bool (ite s6 s7 s15))+[GOOD] (define-fun s17 () (Seq Int) (proj_2_SBVTuple2 s13))+[GOOD] (define-fun s18 () Int (seq.len s17))+[GOOD] (define-fun s19 () Bool (not s10))+[GOOD] (define-fun s20 () Bool (not s6))+[GOOD] (define-fun s21 () Bool (and s19 s20))+[GOOD] (define-fun s22 () Bool (> s5 s18))+[GOOD] (define-fun s23 () Bool (=> s21 s22))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s23))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] sbv.foldr @(SBV (Integer,Bool) -> SBV Bool)_7182762f14 @(SBV (Bool,[Integer]) -> SBV Bool): length arg1._2 -> OK+[MEASURE] Passed (terminating): sbv.foldr @(SBV (Integer,Bool) -> SBV Bool)_7182762f14 @(SBV (Bool,[Integer]) -> SBV Bool)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all. [GOOD] ; --- tuples --- [GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)                                            ((mkSBVTuple2 (proj_1_SBVTuple2 T1)
SBVTestSuite/GoldFiles/lambda31.gold view
@@ -1,3 +1,10 @@+[MEASURE] Verifying termination measures for: sbv.filter @(SBV Integer -> SBV Bool)_72b7bf5d4c @(SBV [Integer] -> SBV [Integer])+[MEASURE] Checking: sbv.filter @(SBV Integer -> SBV Bool)_72b7bf5d4c @(SBV [Integer] -> SBV [Integer])+[MEASURE] sbv.filter @(SBV Integer -> SBV Bool)_72b7bf5d4c @(SBV [Integer] -> SBV [Integer]): barified = "|sbv.filter @(SBV Integer -> SBV Bool)_72b7bf5d4c @(SBV [Integer] -> SBV [Integer])|"+[MEASURE] sbv.filter @(SBV Integer -> SBV Bool)_72b7bf5d4c @(SBV [Integer] -> SBV [Integer]): Uninterpreted ops in DAG: [("|sbv.filter @(SBV Integer -> SBV Bool)_72b7bf5d4c @(SBV [Integer] -> SBV [Integer])|",1)]+[MEASURE] sbv.filter @(SBV Integer -> SBV Bool)_72b7bf5d4c @(SBV [Integer] -> SBV [Integer]): recursive calls found = 1+[MEASURE] sbv.filter @(SBV Integer -> SBV Bool)_72b7bf5d4c @(SBV [Integer] -> SBV [Integer]): trying length arg1+[MEASURE] replayDAG {sbv.filter @(SBV Integer -> SBV Bool)_72b7bf5d4c @(SBV [Integer] -> SBV [Integer])}: replaying 12 node(s) ** Calling: z3 -nw -in -smt2 [GOOD] ; Automatically generated by SBV. Do not edit. [GOOD] (set-option :print-success true)@@ -9,7 +16,104 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts ---+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () Int 2)+[GOOD] (define-fun s4 () (Seq Int) (as seq.empty (Seq Int)))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq Int)) ; tracks user variable "arg"+[GOOD] (declare-fun s13 () (Seq Int)) ; tracks user variable "__internal_sbv_s13"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s5 () Int (seq.len s0))+[GOOD] (define-fun s6 () Bool (= s1 s5))+[GOOD] (define-fun s7 () Int (seq.nth s0 s1))+[GOOD] (define-fun s8 () Int (mod s7 s3))+[GOOD] (define-fun s9 () Bool (= s1 s8))+[GOOD] (define-fun s10 () (Seq Int) (seq.unit s7))+[GOOD] (define-fun s11 () Int (- s5 s2))+[GOOD] (define-fun s12 () (Seq Int) (seq.extract s0 s2 s11))+[GOOD] (define-fun s14 () (Seq Int) (seq.++ s10 s13))+[GOOD] (define-fun s15 () (Seq Int) (ite s9 s14 s13))+[GOOD] (define-fun s16 () (Seq Int) (ite s6 s4 s15))+[GOOD] (define-fun s17 () Bool (>= s5 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s17))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {sbv.filter @(SBV Integer -> SBV Bool)_72b7bf5d4c @(SBV [Integer] -> SBV [Integer])}: replaying 12 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () Int 2)+[GOOD] (define-fun s4 () (Seq Int) (as seq.empty (Seq Int)))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq Int)) ; tracks user variable "arg"+[GOOD] (declare-fun s13 () (Seq Int)) ; tracks user variable "__internal_sbv_s13"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s5 () Int (seq.len s0))+[GOOD] (define-fun s6 () Bool (= s1 s5))+[GOOD] (define-fun s7 () Int (seq.nth s0 s1))+[GOOD] (define-fun s8 () Int (mod s7 s3))+[GOOD] (define-fun s9 () Bool (= s1 s8))+[GOOD] (define-fun s10 () (Seq Int) (seq.unit s7))+[GOOD] (define-fun s11 () Int (- s5 s2))+[GOOD] (define-fun s12 () (Seq Int) (seq.extract s0 s2 s11))+[GOOD] (define-fun s14 () (Seq Int) (seq.++ s10 s13))+[GOOD] (define-fun s15 () (Seq Int) (ite s9 s14 s13))+[GOOD] (define-fun s16 () (Seq Int) (ite s6 s4 s15))+[GOOD] (define-fun s17 () Int (seq.len s12))+[GOOD] (define-fun s18 () Bool (not s9))+[GOOD] (define-fun s19 () Bool (not s6))+[GOOD] (define-fun s20 () Bool (and s18 s19))+[GOOD] (define-fun s21 () Bool (> s5 s17))+[GOOD] (define-fun s22 () Bool (=> s20 s21))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s22))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] sbv.filter @(SBV Integer -> SBV Bool)_72b7bf5d4c @(SBV [Integer] -> SBV [Integer]): length arg1 -> OK+[MEASURE] Passed (terminating): sbv.filter @(SBV Integer -> SBV Bool)_72b7bf5d4c @(SBV [Integer] -> SBV [Integer])+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all. [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/lambda32.gold view
@@ -1,3 +1,10 @@+[MEASURE] Verifying termination measures for: sbv.filter @(SBV Integer -> SBV Bool)_cb04f986c4 @(SBV [Integer] -> SBV [Integer])+[MEASURE] Checking: sbv.filter @(SBV Integer -> SBV Bool)_cb04f986c4 @(SBV [Integer] -> SBV [Integer])+[MEASURE] sbv.filter @(SBV Integer -> SBV Bool)_cb04f986c4 @(SBV [Integer] -> SBV [Integer]): barified = "|sbv.filter @(SBV Integer -> SBV Bool)_cb04f986c4 @(SBV [Integer] -> SBV [Integer])|"+[MEASURE] sbv.filter @(SBV Integer -> SBV Bool)_cb04f986c4 @(SBV [Integer] -> SBV [Integer]): Uninterpreted ops in DAG: [("|sbv.filter @(SBV Integer -> SBV Bool)_cb04f986c4 @(SBV [Integer] -> SBV [Integer])|",1)]+[MEASURE] sbv.filter @(SBV Integer -> SBV Bool)_cb04f986c4 @(SBV [Integer] -> SBV [Integer]): recursive calls found = 1+[MEASURE] sbv.filter @(SBV Integer -> SBV Bool)_cb04f986c4 @(SBV [Integer] -> SBV [Integer]): trying length arg1+[MEASURE] replayDAG {sbv.filter @(SBV Integer -> SBV Bool)_cb04f986c4 @(SBV [Integer] -> SBV [Integer])}: replaying 12 node(s) ** Calling: z3 -nw -in -smt2 [GOOD] ; Automatically generated by SBV. Do not edit. [GOOD] (set-option :print-success true)@@ -9,7 +16,104 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts ---+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () Int 2)+[GOOD] (define-fun s4 () (Seq Int) (as seq.empty (Seq Int)))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq Int)) ; tracks user variable "arg"+[GOOD] (declare-fun s13 () (Seq Int)) ; tracks user variable "__internal_sbv_s13"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s5 () Int (seq.len s0))+[GOOD] (define-fun s6 () Bool (= s1 s5))+[GOOD] (define-fun s7 () Int (seq.nth s0 s1))+[GOOD] (define-fun s8 () Int (mod s7 s3))+[GOOD] (define-fun s9 () Bool (distinct s1 s8))+[GOOD] (define-fun s10 () (Seq Int) (seq.unit s7))+[GOOD] (define-fun s11 () Int (- s5 s2))+[GOOD] (define-fun s12 () (Seq Int) (seq.extract s0 s2 s11))+[GOOD] (define-fun s14 () (Seq Int) (seq.++ s10 s13))+[GOOD] (define-fun s15 () (Seq Int) (ite s9 s14 s13))+[GOOD] (define-fun s16 () (Seq Int) (ite s6 s4 s15))+[GOOD] (define-fun s17 () Bool (>= s5 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s17))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {sbv.filter @(SBV Integer -> SBV Bool)_cb04f986c4 @(SBV [Integer] -> SBV [Integer])}: replaying 12 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () Int 2)+[GOOD] (define-fun s4 () (Seq Int) (as seq.empty (Seq Int)))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq Int)) ; tracks user variable "arg"+[GOOD] (declare-fun s13 () (Seq Int)) ; tracks user variable "__internal_sbv_s13"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s5 () Int (seq.len s0))+[GOOD] (define-fun s6 () Bool (= s1 s5))+[GOOD] (define-fun s7 () Int (seq.nth s0 s1))+[GOOD] (define-fun s8 () Int (mod s7 s3))+[GOOD] (define-fun s9 () Bool (distinct s1 s8))+[GOOD] (define-fun s10 () (Seq Int) (seq.unit s7))+[GOOD] (define-fun s11 () Int (- s5 s2))+[GOOD] (define-fun s12 () (Seq Int) (seq.extract s0 s2 s11))+[GOOD] (define-fun s14 () (Seq Int) (seq.++ s10 s13))+[GOOD] (define-fun s15 () (Seq Int) (ite s9 s14 s13))+[GOOD] (define-fun s16 () (Seq Int) (ite s6 s4 s15))+[GOOD] (define-fun s17 () Int (seq.len s12))+[GOOD] (define-fun s18 () Bool (not s9))+[GOOD] (define-fun s19 () Bool (not s6))+[GOOD] (define-fun s20 () Bool (and s18 s19))+[GOOD] (define-fun s21 () Bool (> s5 s17))+[GOOD] (define-fun s22 () Bool (=> s20 s21))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s22))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] sbv.filter @(SBV Integer -> SBV Bool)_cb04f986c4 @(SBV [Integer] -> SBV [Integer]): length arg1 -> OK+[MEASURE] Passed (terminating): sbv.filter @(SBV Integer -> SBV Bool)_cb04f986c4 @(SBV [Integer] -> SBV [Integer])+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all. [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/lambda46.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/lambda47.gold view
@@ -1,3 +1,10 @@+[MEASURE] Verifying termination measures for: sumToN @(SBV Integer -> SBV Integer)+[MEASURE] Checking: sumToN @(SBV Integer -> SBV Integer)+[MEASURE] sumToN @(SBV Integer -> SBV Integer): barified = "|sumToN @(SBV Integer -> SBV Integer)|"+[MEASURE] sumToN @(SBV Integer -> SBV Integer): Uninterpreted ops in DAG: [("|sumToN @(SBV Integer -> SBV Integer)|",1)]+[MEASURE] sumToN @(SBV Integer -> SBV Integer): recursive calls found = 1+[MEASURE] sumToN @(SBV Integer -> SBV Integer): trying abs arg1+[MEASURE] replayDAG {sumToN @(SBV Integer -> SBV Integer)}: replaying 5 node(s) ** Calling: z3 -nw -in -smt2 [GOOD] ; Automatically generated by SBV. Do not edit. [GOOD] (set-option :print-success true)@@ -6,7 +13,80 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts ---+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s0 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Int (abs s0))+[GOOD] (define-fun s9 () Bool (>= s8 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s9))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {sumToN @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s0 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Int (abs s0))+[GOOD] (define-fun s9 () Int (abs s4))+[GOOD] (define-fun s10 () Bool (not s3))+[GOOD] (define-fun s11 () Bool (> s8 s9))+[GOOD] (define-fun s12 () Bool (=> s10 s11))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s12))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] sumToN @(SBV Integer -> SBV Integer): abs arg1 -> OK+[MEASURE] Passed (terminating): sumToN @(SBV Integer -> SBV Integer)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all. [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/lambda47_c.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/lambda48.gold view
@@ -1,3 +1,10 @@+[MEASURE] Verifying termination measures for: list_length @(SBV [Integer] -> SBV Integer)+[MEASURE] Checking: list_length @(SBV [Integer] -> SBV Integer)+[MEASURE] list_length @(SBV [Integer] -> SBV Integer): barified = "|list_length @(SBV [Integer] -> SBV Integer)|"+[MEASURE] list_length @(SBV [Integer] -> SBV Integer): Uninterpreted ops in DAG: [("|list_length @(SBV [Integer] -> SBV Integer)|",1)]+[MEASURE] list_length @(SBV [Integer] -> SBV Integer): recursive calls found = 1+[MEASURE] list_length @(SBV [Integer] -> SBV Integer): trying length arg1+[MEASURE] replayDAG {list_length @(SBV [Integer] -> SBV Integer)}: replaying 7 node(s) ** Calling: z3 -nw -in -smt2 [GOOD] ; Automatically generated by SBV. Do not edit. [GOOD] (set-option :print-success true)@@ -9,7 +16,88 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts ---+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq Int)) ; tracks user variable "arg"+[GOOD] (declare-fun s7 () Int) ; tracks user variable "__internal_sbv_s7"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Int (seq.len s0))+[GOOD] (define-fun s4 () Bool (= s1 s3))+[GOOD] (define-fun s5 () Int (- s3 s2))+[GOOD] (define-fun s6 () (Seq Int) (seq.extract s0 s2 s5))+[GOOD] (define-fun s8 () Int (+ s2 s7))+[GOOD] (define-fun s9 () Int (ite s4 s1 s8))+[GOOD] (define-fun s10 () Bool (>= s3 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s10))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {list_length @(SBV [Integer] -> SBV Integer)}: replaying 7 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq Int)) ; tracks user variable "arg"+[GOOD] (declare-fun s7 () Int) ; tracks user variable "__internal_sbv_s7"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Int (seq.len s0))+[GOOD] (define-fun s4 () Bool (= s1 s3))+[GOOD] (define-fun s5 () Int (- s3 s2))+[GOOD] (define-fun s6 () (Seq Int) (seq.extract s0 s2 s5))+[GOOD] (define-fun s8 () Int (+ s2 s7))+[GOOD] (define-fun s9 () Int (ite s4 s1 s8))+[GOOD] (define-fun s10 () Int (seq.len s6))+[GOOD] (define-fun s11 () Bool (not s4))+[GOOD] (define-fun s12 () Bool (> s3 s10))+[GOOD] (define-fun s13 () Bool (=> s11 s12))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s13))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] list_length @(SBV [Integer] -> SBV Integer): length arg1 -> OK+[MEASURE] Passed (terminating): list_length @(SBV [Integer] -> SBV Integer)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all. [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/lambda48_c.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/lambda49.gold view
@@ -1,3 +1,8 @@+[MEASURE] Verifying termination measures for: isEvenOdd @(SBV Integer -> SBV (Bool,Bool))+[MEASURE] Checking: isEvenOdd @(SBV Integer -> SBV (Bool,Bool))+[MEASURE] isEvenOdd @(SBV Integer -> SBV (Bool,Bool)): verifying with 0 helper(s)+[MEASURE] isEvenOdd @(SBV Integer -> SBV (Bool,Bool)): 0 helper axiom(s) collected, checking measure+[MEASURE] replayDAG {isEvenOdd @(SBV Integer -> SBV (Bool,Bool))}: replaying 11 node(s) ** Calling: z3 -nw -in -smt2 [GOOD] ; Automatically generated by SBV. Do not edit. [GOOD] (set-option :print-success true)@@ -9,7 +14,139 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts ---+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () (SBVTuple2 Bool Bool) (mkSBVTuple2 true false))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s6 () (SBVTuple2 Bool Bool)) ; tracks user variable "__internal_sbv_s6"+[GOOD] (declare-fun s9 () (SBVTuple2 Bool Bool)) ; tracks user variable "__internal_sbv_s9"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (< s0 s1))+[GOOD] (define-fun s5 () Int (- s0))+[GOOD] (define-fun s7 () Bool (= s0 s1))+[GOOD] (define-fun s8 () Int (- s0 s2))+[GOOD] (define-fun s10 () Bool (proj_2_SBVTuple2 s9))+[GOOD] (define-fun s11 () Bool (proj_1_SBVTuple2 s9))+[GOOD] (define-fun s12 () (SBVTuple2 Bool Bool) ((as mkSBVTuple2 (SBVTuple2 Bool Bool)) s10 s11))+[GOOD] (define-fun s13 () (SBVTuple2 Bool Bool) (ite s7 s3 s12))+[GOOD] (define-fun s14 () (SBVTuple2 Bool Bool) (ite s4 s6 s13))+[GOOD] (define-fun s15 () Int (abs s0))+[GOOD] (define-fun s16 () Int (ite s4 s2 s1))+[GOOD] (define-fun s17 () (SBVTuple2 Int Int) ((as mkSBVTuple2 (SBVTuple2 Int Int)) s15 s16))+[GOOD] (define-fun s18 () Int (proj_1_SBVTuple2 s17))+[GOOD] (define-fun s19 () Bool (>= s18 s1))+[GOOD] (define-fun s20 () Int (proj_2_SBVTuple2 s17))+[GOOD] (define-fun s21 () Bool (>= s20 s1))+[GOOD] (define-fun s22 () Bool (and s19 s21))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s22))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {isEvenOdd @(SBV Integer -> SBV (Bool,Bool))}: replaying 11 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () (SBVTuple2 Bool Bool) (mkSBVTuple2 true false))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s6 () (SBVTuple2 Bool Bool)) ; tracks user variable "__internal_sbv_s6"+[GOOD] (declare-fun s9 () (SBVTuple2 Bool Bool)) ; tracks user variable "__internal_sbv_s9"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (< s0 s1))+[GOOD] (define-fun s5 () Int (- s0))+[GOOD] (define-fun s7 () Bool (= s0 s1))+[GOOD] (define-fun s8 () Int (- s0 s2))+[GOOD] (define-fun s10 () Bool (proj_2_SBVTuple2 s9))+[GOOD] (define-fun s11 () Bool (proj_1_SBVTuple2 s9))+[GOOD] (define-fun s12 () (SBVTuple2 Bool Bool) ((as mkSBVTuple2 (SBVTuple2 Bool Bool)) s10 s11))+[GOOD] (define-fun s13 () (SBVTuple2 Bool Bool) (ite s7 s3 s12))+[GOOD] (define-fun s14 () (SBVTuple2 Bool Bool) (ite s4 s6 s13))+[GOOD] (define-fun s15 () Int (abs s0))+[GOOD] (define-fun s16 () Int (ite s4 s2 s1))+[GOOD] (define-fun s17 () (SBVTuple2 Int Int) ((as mkSBVTuple2 (SBVTuple2 Int Int)) s15 s16))+[GOOD] (define-fun s18 () Int (abs s5))+[GOOD] (define-fun s19 () Bool (< s5 s1))+[GOOD] (define-fun s20 () Int (ite s19 s2 s1))+[GOOD] (define-fun s21 () (SBVTuple2 Int Int) ((as mkSBVTuple2 (SBVTuple2 Int Int)) s18 s20))+[GOOD] (define-fun s22 () Int (abs s8))+[GOOD] (define-fun s23 () Bool (< s8 s1))+[GOOD] (define-fun s24 () Int (ite s23 s2 s1))+[GOOD] (define-fun s25 () (SBVTuple2 Int Int) ((as mkSBVTuple2 (SBVTuple2 Int Int)) s22 s24))+[GOOD] (define-fun s26 () Int (proj_1_SBVTuple2 s21))+[GOOD] (define-fun s27 () Int (proj_1_SBVTuple2 s17))+[GOOD] (define-fun s28 () Bool (< s26 s27))+[GOOD] (define-fun s29 () Bool (= s26 s27))+[GOOD] (define-fun s30 () Int (proj_2_SBVTuple2 s21))+[GOOD] (define-fun s31 () Int (proj_2_SBVTuple2 s17))+[GOOD] (define-fun s32 () Bool (< s30 s31))+[GOOD] (define-fun s33 () Bool (and s29 s32))+[GOOD] (define-fun s34 () Bool (or s28 s33))+[GOOD] (define-fun s35 () Bool (=> s4 s34))+[GOOD] (define-fun s36 () Bool (not s7))+[GOOD] (define-fun s37 () Bool (not s4))+[GOOD] (define-fun s38 () Bool (and s36 s37))+[GOOD] (define-fun s39 () Int (proj_1_SBVTuple2 s25))+[GOOD] (define-fun s40 () Bool (< s39 s27))+[GOOD] (define-fun s41 () Bool (= s27 s39))+[GOOD] (define-fun s42 () Int (proj_2_SBVTuple2 s25))+[GOOD] (define-fun s43 () Bool (< s42 s31))+[GOOD] (define-fun s44 () Bool (and s41 s43))+[GOOD] (define-fun s45 () Bool (or s40 s44))+[GOOD] (define-fun s46 () Bool (=> s38 s45))+[GOOD] (define-fun s47 () Bool (and s35 s46))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s47))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Passed (terminating): isEvenOdd @(SBV Integer -> SBV (Bool,Bool))+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all. [GOOD] ; --- tuples --- [GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)                                            ((mkSBVTuple2 (proj_1_SBVTuple2 T1)
SBVTestSuite/GoldFiles/lambda49_c.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; external query, using all logics.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/lambda50.gold view
@@ -1,3 +1,8 @@+[MEASURE] Verifying termination measures for: isEvenOdd @(SBV Integer -> SBV (Bool,Bool))+[MEASURE] Checking: isEvenOdd @(SBV Integer -> SBV (Bool,Bool))+[MEASURE] isEvenOdd @(SBV Integer -> SBV (Bool,Bool)): verifying with 0 helper(s)+[MEASURE] isEvenOdd @(SBV Integer -> SBV (Bool,Bool)): 0 helper axiom(s) collected, checking measure+[MEASURE] replayDAG {isEvenOdd @(SBV Integer -> SBV (Bool,Bool))}: replaying 11 node(s) ** Calling: z3 -nw -in -smt2 [GOOD] ; Automatically generated by SBV. Do not edit. [GOOD] (set-option :print-success true)@@ -9,7 +14,139 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts ---+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () (SBVTuple2 Bool Bool) (mkSBVTuple2 true false))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s6 () (SBVTuple2 Bool Bool)) ; tracks user variable "__internal_sbv_s6"+[GOOD] (declare-fun s9 () (SBVTuple2 Bool Bool)) ; tracks user variable "__internal_sbv_s9"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (< s0 s1))+[GOOD] (define-fun s5 () Int (- s0))+[GOOD] (define-fun s7 () Bool (= s0 s1))+[GOOD] (define-fun s8 () Int (- s0 s2))+[GOOD] (define-fun s10 () Bool (proj_2_SBVTuple2 s9))+[GOOD] (define-fun s11 () Bool (proj_1_SBVTuple2 s9))+[GOOD] (define-fun s12 () (SBVTuple2 Bool Bool) ((as mkSBVTuple2 (SBVTuple2 Bool Bool)) s10 s11))+[GOOD] (define-fun s13 () (SBVTuple2 Bool Bool) (ite s7 s3 s12))+[GOOD] (define-fun s14 () (SBVTuple2 Bool Bool) (ite s4 s6 s13))+[GOOD] (define-fun s15 () Int (abs s0))+[GOOD] (define-fun s16 () Int (ite s4 s2 s1))+[GOOD] (define-fun s17 () (SBVTuple2 Int Int) ((as mkSBVTuple2 (SBVTuple2 Int Int)) s15 s16))+[GOOD] (define-fun s18 () Int (proj_1_SBVTuple2 s17))+[GOOD] (define-fun s19 () Bool (>= s18 s1))+[GOOD] (define-fun s20 () Int (proj_2_SBVTuple2 s17))+[GOOD] (define-fun s21 () Bool (>= s20 s1))+[GOOD] (define-fun s22 () Bool (and s19 s21))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s22))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {isEvenOdd @(SBV Integer -> SBV (Bool,Bool))}: replaying 11 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () (SBVTuple2 Bool Bool) (mkSBVTuple2 true false))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s6 () (SBVTuple2 Bool Bool)) ; tracks user variable "__internal_sbv_s6"+[GOOD] (declare-fun s9 () (SBVTuple2 Bool Bool)) ; tracks user variable "__internal_sbv_s9"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (< s0 s1))+[GOOD] (define-fun s5 () Int (- s0))+[GOOD] (define-fun s7 () Bool (= s0 s1))+[GOOD] (define-fun s8 () Int (- s0 s2))+[GOOD] (define-fun s10 () Bool (proj_2_SBVTuple2 s9))+[GOOD] (define-fun s11 () Bool (proj_1_SBVTuple2 s9))+[GOOD] (define-fun s12 () (SBVTuple2 Bool Bool) ((as mkSBVTuple2 (SBVTuple2 Bool Bool)) s10 s11))+[GOOD] (define-fun s13 () (SBVTuple2 Bool Bool) (ite s7 s3 s12))+[GOOD] (define-fun s14 () (SBVTuple2 Bool Bool) (ite s4 s6 s13))+[GOOD] (define-fun s15 () Int (abs s0))+[GOOD] (define-fun s16 () Int (ite s4 s2 s1))+[GOOD] (define-fun s17 () (SBVTuple2 Int Int) ((as mkSBVTuple2 (SBVTuple2 Int Int)) s15 s16))+[GOOD] (define-fun s18 () Int (abs s5))+[GOOD] (define-fun s19 () Bool (< s5 s1))+[GOOD] (define-fun s20 () Int (ite s19 s2 s1))+[GOOD] (define-fun s21 () (SBVTuple2 Int Int) ((as mkSBVTuple2 (SBVTuple2 Int Int)) s18 s20))+[GOOD] (define-fun s22 () Int (abs s8))+[GOOD] (define-fun s23 () Bool (< s8 s1))+[GOOD] (define-fun s24 () Int (ite s23 s2 s1))+[GOOD] (define-fun s25 () (SBVTuple2 Int Int) ((as mkSBVTuple2 (SBVTuple2 Int Int)) s22 s24))+[GOOD] (define-fun s26 () Int (proj_1_SBVTuple2 s21))+[GOOD] (define-fun s27 () Int (proj_1_SBVTuple2 s17))+[GOOD] (define-fun s28 () Bool (< s26 s27))+[GOOD] (define-fun s29 () Bool (= s26 s27))+[GOOD] (define-fun s30 () Int (proj_2_SBVTuple2 s21))+[GOOD] (define-fun s31 () Int (proj_2_SBVTuple2 s17))+[GOOD] (define-fun s32 () Bool (< s30 s31))+[GOOD] (define-fun s33 () Bool (and s29 s32))+[GOOD] (define-fun s34 () Bool (or s28 s33))+[GOOD] (define-fun s35 () Bool (=> s4 s34))+[GOOD] (define-fun s36 () Bool (not s7))+[GOOD] (define-fun s37 () Bool (not s4))+[GOOD] (define-fun s38 () Bool (and s36 s37))+[GOOD] (define-fun s39 () Int (proj_1_SBVTuple2 s25))+[GOOD] (define-fun s40 () Bool (< s39 s27))+[GOOD] (define-fun s41 () Bool (= s27 s39))+[GOOD] (define-fun s42 () Int (proj_2_SBVTuple2 s25))+[GOOD] (define-fun s43 () Bool (< s42 s31))+[GOOD] (define-fun s44 () Bool (and s41 s43))+[GOOD] (define-fun s45 () Bool (or s40 s44))+[GOOD] (define-fun s46 () Bool (=> s38 s45))+[GOOD] (define-fun s47 () Bool (and s35 s46))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s47))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Passed (terminating): isEvenOdd @(SBV Integer -> SBV (Bool,Bool))+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all. [GOOD] ; --- tuples --- [GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)                                            ((mkSBVTuple2 (proj_1_SBVTuple2 T1)
SBVTestSuite/GoldFiles/lambda50_c.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; external query, using all logics.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/lambda51.gold view
@@ -1,3 +1,8 @@+[MEASURE] Verifying termination measures for: isEvenOdd @(SBV Integer -> SBV (Bool,Bool))+[MEASURE] Checking: isEvenOdd @(SBV Integer -> SBV (Bool,Bool))+[MEASURE] isEvenOdd @(SBV Integer -> SBV (Bool,Bool)): verifying with 0 helper(s)+[MEASURE] isEvenOdd @(SBV Integer -> SBV (Bool,Bool)): 0 helper axiom(s) collected, checking measure+[MEASURE] replayDAG {isEvenOdd @(SBV Integer -> SBV (Bool,Bool))}: replaying 11 node(s) ** Calling: z3 -nw -in -smt2 [GOOD] ; Automatically generated by SBV. Do not edit. [GOOD] (set-option :print-success true)@@ -9,7 +14,139 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts ---+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () (SBVTuple2 Bool Bool) (mkSBVTuple2 true false))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s6 () (SBVTuple2 Bool Bool)) ; tracks user variable "__internal_sbv_s6"+[GOOD] (declare-fun s9 () (SBVTuple2 Bool Bool)) ; tracks user variable "__internal_sbv_s9"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (< s0 s1))+[GOOD] (define-fun s5 () Int (- s0))+[GOOD] (define-fun s7 () Bool (= s0 s1))+[GOOD] (define-fun s8 () Int (- s0 s2))+[GOOD] (define-fun s10 () Bool (proj_2_SBVTuple2 s9))+[GOOD] (define-fun s11 () Bool (proj_1_SBVTuple2 s9))+[GOOD] (define-fun s12 () (SBVTuple2 Bool Bool) ((as mkSBVTuple2 (SBVTuple2 Bool Bool)) s10 s11))+[GOOD] (define-fun s13 () (SBVTuple2 Bool Bool) (ite s7 s3 s12))+[GOOD] (define-fun s14 () (SBVTuple2 Bool Bool) (ite s4 s6 s13))+[GOOD] (define-fun s15 () Int (abs s0))+[GOOD] (define-fun s16 () Int (ite s4 s2 s1))+[GOOD] (define-fun s17 () (SBVTuple2 Int Int) ((as mkSBVTuple2 (SBVTuple2 Int Int)) s15 s16))+[GOOD] (define-fun s18 () Int (proj_1_SBVTuple2 s17))+[GOOD] (define-fun s19 () Bool (>= s18 s1))+[GOOD] (define-fun s20 () Int (proj_2_SBVTuple2 s17))+[GOOD] (define-fun s21 () Bool (>= s20 s1))+[GOOD] (define-fun s22 () Bool (and s19 s21))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s22))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {isEvenOdd @(SBV Integer -> SBV (Bool,Bool))}: replaying 11 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () (SBVTuple2 Bool Bool) (mkSBVTuple2 true false))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s6 () (SBVTuple2 Bool Bool)) ; tracks user variable "__internal_sbv_s6"+[GOOD] (declare-fun s9 () (SBVTuple2 Bool Bool)) ; tracks user variable "__internal_sbv_s9"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (< s0 s1))+[GOOD] (define-fun s5 () Int (- s0))+[GOOD] (define-fun s7 () Bool (= s0 s1))+[GOOD] (define-fun s8 () Int (- s0 s2))+[GOOD] (define-fun s10 () Bool (proj_2_SBVTuple2 s9))+[GOOD] (define-fun s11 () Bool (proj_1_SBVTuple2 s9))+[GOOD] (define-fun s12 () (SBVTuple2 Bool Bool) ((as mkSBVTuple2 (SBVTuple2 Bool Bool)) s10 s11))+[GOOD] (define-fun s13 () (SBVTuple2 Bool Bool) (ite s7 s3 s12))+[GOOD] (define-fun s14 () (SBVTuple2 Bool Bool) (ite s4 s6 s13))+[GOOD] (define-fun s15 () Int (abs s0))+[GOOD] (define-fun s16 () Int (ite s4 s2 s1))+[GOOD] (define-fun s17 () (SBVTuple2 Int Int) ((as mkSBVTuple2 (SBVTuple2 Int Int)) s15 s16))+[GOOD] (define-fun s18 () Int (abs s5))+[GOOD] (define-fun s19 () Bool (< s5 s1))+[GOOD] (define-fun s20 () Int (ite s19 s2 s1))+[GOOD] (define-fun s21 () (SBVTuple2 Int Int) ((as mkSBVTuple2 (SBVTuple2 Int Int)) s18 s20))+[GOOD] (define-fun s22 () Int (abs s8))+[GOOD] (define-fun s23 () Bool (< s8 s1))+[GOOD] (define-fun s24 () Int (ite s23 s2 s1))+[GOOD] (define-fun s25 () (SBVTuple2 Int Int) ((as mkSBVTuple2 (SBVTuple2 Int Int)) s22 s24))+[GOOD] (define-fun s26 () Int (proj_1_SBVTuple2 s21))+[GOOD] (define-fun s27 () Int (proj_1_SBVTuple2 s17))+[GOOD] (define-fun s28 () Bool (< s26 s27))+[GOOD] (define-fun s29 () Bool (= s26 s27))+[GOOD] (define-fun s30 () Int (proj_2_SBVTuple2 s21))+[GOOD] (define-fun s31 () Int (proj_2_SBVTuple2 s17))+[GOOD] (define-fun s32 () Bool (< s30 s31))+[GOOD] (define-fun s33 () Bool (and s29 s32))+[GOOD] (define-fun s34 () Bool (or s28 s33))+[GOOD] (define-fun s35 () Bool (=> s4 s34))+[GOOD] (define-fun s36 () Bool (not s7))+[GOOD] (define-fun s37 () Bool (not s4))+[GOOD] (define-fun s38 () Bool (and s36 s37))+[GOOD] (define-fun s39 () Int (proj_1_SBVTuple2 s25))+[GOOD] (define-fun s40 () Bool (< s39 s27))+[GOOD] (define-fun s41 () Bool (= s27 s39))+[GOOD] (define-fun s42 () Int (proj_2_SBVTuple2 s25))+[GOOD] (define-fun s43 () Bool (< s42 s31))+[GOOD] (define-fun s44 () Bool (and s41 s43))+[GOOD] (define-fun s45 () Bool (or s40 s44))+[GOOD] (define-fun s46 () Bool (=> s38 s45))+[GOOD] (define-fun s47 () Bool (and s35 s46))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s47))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Passed (terminating): isEvenOdd @(SBV Integer -> SBV (Bool,Bool))+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all. [GOOD] ; --- tuples --- [GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)                                            ((mkSBVTuple2 (proj_1_SBVTuple2 T1)
SBVTestSuite/GoldFiles/lambda51_c.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; external query, using all logics.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/lambda52.gold view
@@ -1,3 +1,8 @@+[MEASURE] Verifying termination measures for: isEvenOdd @(SBV Integer -> SBV (Bool,Bool))+[MEASURE] Checking: isEvenOdd @(SBV Integer -> SBV (Bool,Bool))+[MEASURE] isEvenOdd @(SBV Integer -> SBV (Bool,Bool)): verifying with 0 helper(s)+[MEASURE] isEvenOdd @(SBV Integer -> SBV (Bool,Bool)): 0 helper axiom(s) collected, checking measure+[MEASURE] replayDAG {isEvenOdd @(SBV Integer -> SBV (Bool,Bool))}: replaying 11 node(s) ** Calling: z3 -nw -in -smt2 [GOOD] ; Automatically generated by SBV. Do not edit. [GOOD] (set-option :print-success true)@@ -9,7 +14,139 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts ---+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () (SBVTuple2 Bool Bool) (mkSBVTuple2 true false))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s6 () (SBVTuple2 Bool Bool)) ; tracks user variable "__internal_sbv_s6"+[GOOD] (declare-fun s9 () (SBVTuple2 Bool Bool)) ; tracks user variable "__internal_sbv_s9"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (< s0 s1))+[GOOD] (define-fun s5 () Int (- s0))+[GOOD] (define-fun s7 () Bool (= s0 s1))+[GOOD] (define-fun s8 () Int (- s0 s2))+[GOOD] (define-fun s10 () Bool (proj_2_SBVTuple2 s9))+[GOOD] (define-fun s11 () Bool (proj_1_SBVTuple2 s9))+[GOOD] (define-fun s12 () (SBVTuple2 Bool Bool) ((as mkSBVTuple2 (SBVTuple2 Bool Bool)) s10 s11))+[GOOD] (define-fun s13 () (SBVTuple2 Bool Bool) (ite s7 s3 s12))+[GOOD] (define-fun s14 () (SBVTuple2 Bool Bool) (ite s4 s6 s13))+[GOOD] (define-fun s15 () Int (abs s0))+[GOOD] (define-fun s16 () Int (ite s4 s2 s1))+[GOOD] (define-fun s17 () (SBVTuple2 Int Int) ((as mkSBVTuple2 (SBVTuple2 Int Int)) s15 s16))+[GOOD] (define-fun s18 () Int (proj_1_SBVTuple2 s17))+[GOOD] (define-fun s19 () Bool (>= s18 s1))+[GOOD] (define-fun s20 () Int (proj_2_SBVTuple2 s17))+[GOOD] (define-fun s21 () Bool (>= s20 s1))+[GOOD] (define-fun s22 () Bool (and s19 s21))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s22))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {isEvenOdd @(SBV Integer -> SBV (Bool,Bool))}: replaying 11 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () (SBVTuple2 Bool Bool) (mkSBVTuple2 true false))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s6 () (SBVTuple2 Bool Bool)) ; tracks user variable "__internal_sbv_s6"+[GOOD] (declare-fun s9 () (SBVTuple2 Bool Bool)) ; tracks user variable "__internal_sbv_s9"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (< s0 s1))+[GOOD] (define-fun s5 () Int (- s0))+[GOOD] (define-fun s7 () Bool (= s0 s1))+[GOOD] (define-fun s8 () Int (- s0 s2))+[GOOD] (define-fun s10 () Bool (proj_2_SBVTuple2 s9))+[GOOD] (define-fun s11 () Bool (proj_1_SBVTuple2 s9))+[GOOD] (define-fun s12 () (SBVTuple2 Bool Bool) ((as mkSBVTuple2 (SBVTuple2 Bool Bool)) s10 s11))+[GOOD] (define-fun s13 () (SBVTuple2 Bool Bool) (ite s7 s3 s12))+[GOOD] (define-fun s14 () (SBVTuple2 Bool Bool) (ite s4 s6 s13))+[GOOD] (define-fun s15 () Int (abs s0))+[GOOD] (define-fun s16 () Int (ite s4 s2 s1))+[GOOD] (define-fun s17 () (SBVTuple2 Int Int) ((as mkSBVTuple2 (SBVTuple2 Int Int)) s15 s16))+[GOOD] (define-fun s18 () Int (abs s5))+[GOOD] (define-fun s19 () Bool (< s5 s1))+[GOOD] (define-fun s20 () Int (ite s19 s2 s1))+[GOOD] (define-fun s21 () (SBVTuple2 Int Int) ((as mkSBVTuple2 (SBVTuple2 Int Int)) s18 s20))+[GOOD] (define-fun s22 () Int (abs s8))+[GOOD] (define-fun s23 () Bool (< s8 s1))+[GOOD] (define-fun s24 () Int (ite s23 s2 s1))+[GOOD] (define-fun s25 () (SBVTuple2 Int Int) ((as mkSBVTuple2 (SBVTuple2 Int Int)) s22 s24))+[GOOD] (define-fun s26 () Int (proj_1_SBVTuple2 s21))+[GOOD] (define-fun s27 () Int (proj_1_SBVTuple2 s17))+[GOOD] (define-fun s28 () Bool (< s26 s27))+[GOOD] (define-fun s29 () Bool (= s26 s27))+[GOOD] (define-fun s30 () Int (proj_2_SBVTuple2 s21))+[GOOD] (define-fun s31 () Int (proj_2_SBVTuple2 s17))+[GOOD] (define-fun s32 () Bool (< s30 s31))+[GOOD] (define-fun s33 () Bool (and s29 s32))+[GOOD] (define-fun s34 () Bool (or s28 s33))+[GOOD] (define-fun s35 () Bool (=> s4 s34))+[GOOD] (define-fun s36 () Bool (not s7))+[GOOD] (define-fun s37 () Bool (not s4))+[GOOD] (define-fun s38 () Bool (and s36 s37))+[GOOD] (define-fun s39 () Int (proj_1_SBVTuple2 s25))+[GOOD] (define-fun s40 () Bool (< s39 s27))+[GOOD] (define-fun s41 () Bool (= s27 s39))+[GOOD] (define-fun s42 () Int (proj_2_SBVTuple2 s25))+[GOOD] (define-fun s43 () Bool (< s42 s31))+[GOOD] (define-fun s44 () Bool (and s41 s43))+[GOOD] (define-fun s45 () Bool (or s40 s44))+[GOOD] (define-fun s46 () Bool (=> s38 s45))+[GOOD] (define-fun s47 () Bool (and s35 s46))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s47))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Passed (terminating): isEvenOdd @(SBV Integer -> SBV (Bool,Bool))+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all. [GOOD] ; --- tuples --- [GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)                                            ((mkSBVTuple2 (proj_1_SBVTuple2 T1)
SBVTestSuite/GoldFiles/lambda52_c.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; external query, using all logics.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/lambda53.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---@@ -25,19 +24,13 @@ [GOOD] ; --- delayedEqualities --- [GOOD] ; --- formula --- [GOOD] (assert s2)-[GOOD] (declare-fun s3 () Int)-[GOOD] (define-fun s4 () Int (|foo @(SBV Integer -> SBV Integer)| s3))-[GOOD] (define-fun s5 () Bool (= s3 s4))-[GOOD] (assert s5) [SEND] (check-sat) [RECV] sat [SEND] (get-value (s0)) [RECV] ((s0 0))-[SEND] (get-value (s3))-[RECV] ((s3 0)) *** Solver   : Z3 *** Exit code: ExitSuccess  RESULT:+Satisfiable. Model:   s0 = 0 :: Integer-  s3 = 0 :: Integer
SBVTestSuite/GoldFiles/lambda54.gold view
@@ -1,3 +1,7 @@+[MEASURE] Verifying termination measures for: foo @(SBV Integer -> SBV Integer)+[MEASURE] Checking: foo @(SBV Integer -> SBV Integer)+[MEASURE] foo @(SBV Integer -> SBV Integer): not in a multi-member cycle, skipping mutual check+[MEASURE] Passed (terminating): foo @(SBV Integer -> SBV Integer) ** Calling: z3 -nw -in -smt2 [GOOD] ; Automatically generated by SBV. Do not edit. [GOOD] (set-option :print-success true)@@ -6,7 +10,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/lambda55.gold view
@@ -1,3 +1,7 @@+[MEASURE] Verifying termination measures for: foo @(SBV Integer -> SBV Integer)+[MEASURE] Checking: foo @(SBV Integer -> SBV Integer)+[MEASURE] foo @(SBV Integer -> SBV Integer): not in a multi-member cycle, skipping mutual check+[MEASURE] Passed (terminating): foo @(SBV Integer -> SBV Integer) ** Calling: z3 -nw -in -smt2 [GOOD] ; Automatically generated by SBV. Do not edit. [GOOD] (set-option :print-success true)@@ -6,7 +10,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/lambda56.gold view
@@ -1,3 +1,8 @@+[MEASURE] Verifying termination measures for: foo @(SBV Integer -> SBV Integer), bar @(SBV Integer -> SBV Integer)+[MEASURE] Checking: foo @(SBV Integer -> SBV Integer)+[MEASURE] Checking mutual recursion group: {bar :: SBV Integer -> SBV Integer, foo :: SBV Integer -> SBV Integer}+[MEASURE] Mutual group: trying measure abs arg1 for all members+[MEASURE] replayDAG {bar @(SBV Integer -> SBV Integer), foo @(SBV Integer -> SBV Integer)}: replaying 2 node(s) ** Calling: z3 -nw -in -smt2 [GOOD] ; Automatically generated by SBV. Do not edit. [GOOD] (set-option :print-success true)@@ -6,48 +11,448 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 1)+[GOOD] (define-fun s5 () Int 0) [GOOD] ; --- top level inputs ----[GOOD] (declare-fun s0 () Int)+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s2 () Int) ; tracks user variable "__internal_sbv_s2" [GOOD] ; --- constant tables --- [GOOD] ; --- non-constant tables --- [GOOD] ; --- uninterpreted constants --- [GOOD] ; --- user defined functions ----[GOOD] ; |bar @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger, |foo @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger-[GOOD] (define-funs-rec-         ((|bar @(SBV Integer -> SBV Integer)| ((l2_s0 Int)) Int)-          (|foo @(SBV Integer -> SBV Integer)| ((l1_s0 Int)) Int))-         (; Definition of: |bar @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger. [Refers to: |foo @(SBV Integer -> SBV Integer)|]-                                                  (let ((l2_s2 1))-                                                  (let ((l2_s1 (|foo @(SBV Integer -> SBV Integer)| l2_s0)))-                                                  (let ((l2_s3 (+ l2_s1 l2_s2)))-                                                  l2_s3)))-          ; Definition of: |foo @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger. [Refers to: |bar @(SBV Integer -> SBV Integer)|]-                                  (let ((l1_s2 1))-                                  (let ((l1_s1 (|bar @(SBV Integer -> SBV Integer)| l1_s0)))-                                  (let ((l1_s3 (+ l1_s1 l1_s2)))-                                  l1_s3))))) [GOOD] ; --- assignments ----[GOOD] (define-fun s1 () Int (|foo @(SBV Integer -> SBV Integer)| s0))-[GOOD] (define-fun s2 () Int (|bar @(SBV Integer -> SBV Integer)| s0)) [GOOD] (define-fun s3 () Int (+ s1 s2))-[GOOD] (define-fun s4 () Bool (= s0 s3))+[GOOD] (define-fun s4 () Int (abs s0))+[GOOD] (define-fun s6 () Bool (>= s4 s5)) [GOOD] ; --- delayedEqualities --- [GOOD] ; --- formula ----[GOOD] (assert s4)-[GOOD] (declare-fun s5 () Int)-[GOOD] (define-fun s6 () Int (|foo @(SBV Integer -> SBV Integer)| s5))-[GOOD] (define-fun s7 () Int (|bar @(SBV Integer -> SBV Integer)| s5))-[GOOD] (define-fun s8 () Int (+ s6 s7))-[GOOD] (define-fun s9 () Bool (= s5 s8))-[GOOD] (assert s9)+[GOOD] (assert (not s6)) [SEND] (check-sat) [RECV] unsat *** Solver   : Z3 *** Exit code: ExitSuccess+[MEASURE] replayDAG {bar @(SBV Integer -> SBV Integer), foo @(SBV Integer -> SBV Integer)}: replaying 2 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s2 () Int) ; tracks user variable "__internal_sbv_s2"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Int (+ s1 s2))+[GOOD] (define-fun s4 () Int (abs s0))+[GOOD] (define-fun s5 () Bool (=> true false))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s5))+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s4))+[RECV] ((s4 0))+[SEND] (get-value (s4))+[RECV] ((s4 0))+[SEND] (get-value (s0))+[RECV] ((s0 0))+[SEND] (get-value (s2))+[RECV] ((s2 0))+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Mutual group: decrease failed for bar @(SBV Integer -> SBV Integer): Falsifiable. Counter-example:+  arg    = 0 :: Integer+  before = 0 :: Integer+  then   = 0 :: Integer+[MEASURE] Mutual group: measure abs arg1 failed, trying next+[MEASURE] Mutual group: trying measure smax 0 arg1 for all members+[MEASURE] replayDAG {bar @(SBV Integer -> SBV Integer), foo @(SBV Integer -> SBV Integer)}: replaying 2 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 1)+[GOOD] (define-fun s4 () Int 0)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s2 () Int) ; tracks user variable "__internal_sbv_s2"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Int (+ s1 s2))+[GOOD] (define-fun s5 () Bool (<= s4 s0))+[GOOD] (define-fun s6 () Int (ite s5 s0 s4))+[GOOD] (define-fun s7 () Bool (>= s6 s4))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s7))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {bar @(SBV Integer -> SBV Integer), foo @(SBV Integer -> SBV Integer)}: replaying 2 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 1)+[GOOD] (define-fun s4 () Int 0)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s2 () Int) ; tracks user variable "__internal_sbv_s2"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Int (+ s1 s2))+[GOOD] (define-fun s5 () Bool (<= s4 s0))+[GOOD] (define-fun s6 () Int (ite s5 s0 s4))+[GOOD] (define-fun s7 () Bool (=> true false))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s7))+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s6))+[RECV] ((s6 0))+[SEND] (get-value (s6))+[RECV] ((s6 0))+[SEND] (get-value (s0))+[RECV] ((s0 0))+[SEND] (get-value (s2))+[RECV] ((s2 0))+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Mutual group: decrease failed for bar @(SBV Integer -> SBV Integer): Falsifiable. Counter-example:+  arg    = 0 :: Integer+  before = 0 :: Integer+  then   = 0 :: Integer+[MEASURE] Mutual group: measure smax 0 arg1 failed, trying next+[MEASURE] Mutual group: trying measure abs arg1 + smax 0 arg1 for all members+[MEASURE] replayDAG {bar @(SBV Integer -> SBV Integer), foo @(SBV Integer -> SBV Integer)}: replaying 2 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 1)+[GOOD] (define-fun s5 () Int 0)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s2 () Int) ; tracks user variable "__internal_sbv_s2"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Int (+ s1 s2))+[GOOD] (define-fun s4 () Int (abs s0))+[GOOD] (define-fun s6 () Bool (<= s5 s0))+[GOOD] (define-fun s7 () Int (ite s6 s0 s5))+[GOOD] (define-fun s8 () Int (+ s4 s7))+[GOOD] (define-fun s9 () Bool (>= s8 s5))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s9))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {bar @(SBV Integer -> SBV Integer), foo @(SBV Integer -> SBV Integer)}: replaying 2 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 1)+[GOOD] (define-fun s5 () Int 0)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s2 () Int) ; tracks user variable "__internal_sbv_s2"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Int (+ s1 s2))+[GOOD] (define-fun s4 () Int (abs s0))+[GOOD] (define-fun s6 () Bool (<= s5 s0))+[GOOD] (define-fun s7 () Int (ite s6 s0 s5))+[GOOD] (define-fun s8 () Int (+ s4 s7))+[GOOD] (define-fun s9 () Bool (=> true false))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s9))+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s8))+[RECV] ((s8 0))+[SEND] (get-value (s8))+[RECV] ((s8 0))+[SEND] (get-value (s0))+[RECV] ((s0 0))+[SEND] (get-value (s2))+[RECV] ((s2 0))+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Mutual group: decrease failed for bar @(SBV Integer -> SBV Integer): Falsifiable. Counter-example:+  arg    = 0 :: Integer+  before = 0 :: Integer+  then   = 0 :: Integer+[MEASURE] Mutual group: measure abs arg1 + smax 0 arg1 failed, trying next+[MEASURE] Mutual group: trying measure (abs arg1, smax 0 arg1) for all members+[MEASURE] replayDAG {bar @(SBV Integer -> SBV Integer), foo @(SBV Integer -> SBV Integer)}: replaying 2 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 1)+[GOOD] (define-fun s5 () Int 0)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s2 () Int) ; tracks user variable "__internal_sbv_s2"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Int (+ s1 s2))+[GOOD] (define-fun s4 () Int (abs s0))+[GOOD] (define-fun s6 () Bool (<= s5 s0))+[GOOD] (define-fun s7 () Int (ite s6 s0 s5))+[GOOD] (define-fun s8 () (SBVTuple2 Int Int) ((as mkSBVTuple2 (SBVTuple2 Int Int)) s4 s7))+[GOOD] (define-fun s9 () Int (proj_1_SBVTuple2 s8))+[GOOD] (define-fun s10 () Bool (>= s9 s5))+[GOOD] (define-fun s11 () Int (proj_2_SBVTuple2 s8))+[GOOD] (define-fun s12 () Bool (>= s11 s5))+[GOOD] (define-fun s13 () Bool (and s10 s12))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s13))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {bar @(SBV Integer -> SBV Integer), foo @(SBV Integer -> SBV Integer)}: replaying 2 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 1)+[GOOD] (define-fun s5 () Int 0)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s2 () Int) ; tracks user variable "__internal_sbv_s2"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Int (+ s1 s2))+[GOOD] (define-fun s4 () Int (abs s0))+[GOOD] (define-fun s6 () Bool (<= s5 s0))+[GOOD] (define-fun s7 () Int (ite s6 s0 s5))+[GOOD] (define-fun s8 () (SBVTuple2 Int Int) ((as mkSBVTuple2 (SBVTuple2 Int Int)) s4 s7))+[GOOD] (define-fun s9 () Int (proj_1_SBVTuple2 s8))+[GOOD] (define-fun s10 () Int (proj_2_SBVTuple2 s8))+[GOOD] (define-fun s11 () Bool (=> true false))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s11))+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s8))+[RECV] ((s8 (mkSBVTuple2 0 0)))+[SEND] (get-value (s8))+[RECV] ((s8 (mkSBVTuple2 0 0)))+[SEND] (get-value (s0))+[RECV] ((s0 0))+[SEND] (get-value (s2))+[RECV] ((s2 0))+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Mutual group: decrease failed for bar @(SBV Integer -> SBV Integer): Falsifiable. Counter-example:+  arg    =     0 :: Integer+  before = (0,0) :: (Integer, Integer)+  then   = (0,0) :: (Integer, Integer)+[MEASURE] Mutual group: measure (abs arg1, smax 0 arg1) failed, trying next+[MEASURE] Mutual group: trying measure (smax 0 arg1, abs arg1) for all members+[MEASURE] replayDAG {bar @(SBV Integer -> SBV Integer), foo @(SBV Integer -> SBV Integer)}: replaying 2 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 1)+[GOOD] (define-fun s4 () Int 0)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s2 () Int) ; tracks user variable "__internal_sbv_s2"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Int (+ s1 s2))+[GOOD] (define-fun s5 () Bool (<= s4 s0))+[GOOD] (define-fun s6 () Int (ite s5 s0 s4))+[GOOD] (define-fun s7 () Int (abs s0))+[GOOD] (define-fun s8 () (SBVTuple2 Int Int) ((as mkSBVTuple2 (SBVTuple2 Int Int)) s6 s7))+[GOOD] (define-fun s9 () Int (proj_1_SBVTuple2 s8))+[GOOD] (define-fun s10 () Bool (>= s9 s4))+[GOOD] (define-fun s11 () Int (proj_2_SBVTuple2 s8))+[GOOD] (define-fun s12 () Bool (>= s11 s4))+[GOOD] (define-fun s13 () Bool (and s10 s12))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s13))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {bar @(SBV Integer -> SBV Integer), foo @(SBV Integer -> SBV Integer)}: replaying 2 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 1)+[GOOD] (define-fun s4 () Int 0)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s2 () Int) ; tracks user variable "__internal_sbv_s2"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Int (+ s1 s2))+[GOOD] (define-fun s5 () Bool (<= s4 s0))+[GOOD] (define-fun s6 () Int (ite s5 s0 s4))+[GOOD] (define-fun s7 () Int (abs s0))+[GOOD] (define-fun s8 () (SBVTuple2 Int Int) ((as mkSBVTuple2 (SBVTuple2 Int Int)) s6 s7))+[GOOD] (define-fun s9 () Int (proj_1_SBVTuple2 s8))+[GOOD] (define-fun s10 () Int (proj_2_SBVTuple2 s8))+[GOOD] (define-fun s11 () Bool (=> true false))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s11))+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s8))+[RECV] ((s8 (mkSBVTuple2 0 0)))+[SEND] (get-value (s8))+[RECV] ((s8 (mkSBVTuple2 0 0)))+[SEND] (get-value (s0))+[RECV] ((s0 0))+[SEND] (get-value (s2))+[RECV] ((s2 0))+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Mutual group: decrease failed for bar @(SBV Integer -> SBV Integer): Falsifiable. Counter-example:+  arg    =     0 :: Integer+  before = (0,0) :: (Integer, Integer)+  then   = (0,0) :: (Integer, Integer)+[MEASURE] Mutual group: measure (smax 0 arg1, abs arg1) failed, trying next -RESULT:-All good, expecting: Unsat+EXCEPTION CAUGHT:++*** Data.SBV: Cannot determine a termination measure for mutual recursion group.+***+***     bar  :: SBV Integer -> SBV Integer+***     foo  :: SBV Integer -> SBV Integer+***+*** Please use 'smtFunctionWithMeasure' to provide explicit measures.+
SBVTestSuite/GoldFiles/lambda57.gold view
@@ -1,3 +1,8 @@+[MEASURE] Verifying termination measures for: f1 @(SBV Word8 -> SBV Word8), f1 @(SBV Word8 -> SBV Word8), f2 @(SBV Word8 -> SBV Word8), f2 @(SBV Word8 -> SBV Word8), f3 @(SBV Word8 -> SBV Word8), f3 @(SBV Word8 -> SBV Word8), f4 @(SBV Word8 -> SBV Word8), f4 @(SBV Word8 -> SBV Word8)+[MEASURE] Checking: f1 @(SBV Word8 -> SBV Word8)+[MEASURE] Checking mutual recursion group: {f1 :: SBV Word8 -> SBV Word8, f2 :: SBV Word8 -> SBV Word8, f3 :: SBV Word8 -> SBV Word8, f4 :: SBV Word8 -> SBV Word8}+[MEASURE] Mutual group: trying measure arg1 for all members+[MEASURE] replayDAG {f1 @(SBV Word8 -> SBV Word8), f2 @(SBV Word8 -> SBV Word8), f3 @(SBV Word8 -> SBV Word8), f4 @(SBV Word8 -> SBV Word8)}: replaying 8 node(s) ** Calling: z3 -nw -in -smt2 [GOOD] ; Automatically generated by SBV. Do not edit. [GOOD] (set-option :print-success true)@@ -5,94 +10,111 @@ [GOOD] (set-option :smtlib2_compliant true) [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true)-[GOOD] (set-logic ALL) ; external query, using all logics.-[GOOD] ; --- uninterpreted sorts ---+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all. [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () (_ BitVec 8) #x00)+[GOOD] (define-fun s2 () (_ BitVec 8) #x01)+[GOOD] (define-fun s3 () (_ BitVec 8) #x02)+[GOOD] (define-fun s13 () Int 0) [GOOD] ; --- top level inputs ----[GOOD] (declare-fun s0 () (_ BitVec 8))+[GOOD] (declare-fun s0 () (_ BitVec 8)) ; tracks user variable "arg"+[GOOD] (declare-fun s6 () (_ BitVec 8)) ; tracks user variable "__internal_sbv_s6"+[GOOD] (declare-fun s8 () (_ BitVec 8)) ; tracks user variable "__internal_sbv_s8" [GOOD] ; --- constant tables --- [GOOD] ; --- non-constant tables --- [GOOD] ; --- uninterpreted constants --- [GOOD] ; --- user defined functions ----[GOOD] ; |f1 @(SBV Word8 -> SBV Word8)| :: SWord8 -> SWord8, |f2 @(SBV Word8 -> SBV Word8)| :: SWord8 -> SWord8, |f3 @(SBV Word8 -> SBV Word8)| :: SWord8 -> SWord8, |f4 @(SBV Word8 -> SBV Word8)| :: SWord8 -> SWord8-[GOOD] (define-funs-rec-         ((|f1 @(SBV Word8 -> SBV Word8)| ((l1_s0 (_ BitVec 8))) (_ BitVec 8))-          (|f2 @(SBV Word8 -> SBV Word8)| ((l2_s0 (_ BitVec 8))) (_ BitVec 8))-          (|f3 @(SBV Word8 -> SBV Word8)| ((l3_s0 (_ BitVec 8))) (_ BitVec 8))-          (|f4 @(SBV Word8 -> SBV Word8)| ((l4_s0 (_ BitVec 8))) (_ BitVec 8)))-         (; Definition of: |f1 @(SBV Word8 -> SBV Word8)| :: SWord8 -> SWord8. [Refers to: |f1 @(SBV Word8 -> SBV Word8)|, |f2 @(SBV Word8 -> SBV Word8)|]-                                  (let ((l1_s1 #x00))-                                  (let ((l1_s3 #x01))-                                  (let ((l1_s6 #x02))-                                  (let ((l1_s2 (= l1_s0 l1_s1)))-                                  (let ((l1_s4 (bvsub l1_s0 l1_s3)))-                                  (let ((l1_s5 (|f1 @(SBV Word8 -> SBV Word8)| l1_s4)))-                                  (let ((l1_s7 (bvsub l1_s0 l1_s6)))-                                  (let ((l1_s8 (|f2 @(SBV Word8 -> SBV Word8)| l1_s7)))-                                  (let ((l1_s9 (bvadd l1_s5 l1_s8)))-                                  (let ((l1_s10 (bvadd l1_s3 l1_s9)))-                                  (let ((l1_s11 (ite l1_s2 l1_s1 l1_s10)))-                                  l1_s11)))))))))))-          ; Definition of: |f2 @(SBV Word8 -> SBV Word8)| :: SWord8 -> SWord8. [Refers to: |f2 @(SBV Word8 -> SBV Word8)|, |f3 @(SBV Word8 -> SBV Word8)|]-                                                  (let ((l2_s1 #x00))-                                                  (let ((l2_s3 #x01))-                                                  (let ((l2_s6 #x02))-                                                  (let ((l2_s2 (= l2_s0 l2_s1)))-                                                  (let ((l2_s4 (bvsub l2_s0 l2_s3)))-                                                  (let ((l2_s5 (|f2 @(SBV Word8 -> SBV Word8)| l2_s4)))-                                                  (let ((l2_s7 (bvsub l2_s0 l2_s6)))-                                                  (let ((l2_s8 (|f3 @(SBV Word8 -> SBV Word8)| l2_s7)))-                                                  (let ((l2_s9 (bvadd l2_s5 l2_s8)))-                                                  (let ((l2_s10 (bvadd l2_s3 l2_s9)))-                                                  (let ((l2_s11 (ite l2_s2 l2_s1 l2_s10)))-                                                  l2_s11)))))))))))-          ; Definition of: |f3 @(SBV Word8 -> SBV Word8)| :: SWord8 -> SWord8. [Refers to: |f3 @(SBV Word8 -> SBV Word8)|, |f4 @(SBV Word8 -> SBV Word8)|]-                                                                  (let ((l3_s1 #x00))-                                                                  (let ((l3_s3 #x01))-                                                                  (let ((l3_s6 #x02))-                                                                  (let ((l3_s2 (= l3_s0 l3_s1)))-                                                                  (let ((l3_s4 (bvsub l3_s0 l3_s3)))-                                                                  (let ((l3_s5 (|f3 @(SBV Word8 -> SBV Word8)| l3_s4)))-                                                                  (let ((l3_s7 (bvsub l3_s0 l3_s6)))-                                                                  (let ((l3_s8 (|f4 @(SBV Word8 -> SBV Word8)| l3_s7)))-                                                                  (let ((l3_s9 (bvadd l3_s5 l3_s8)))-                                                                  (let ((l3_s10 (bvadd l3_s3 l3_s9)))-                                                                  (let ((l3_s11 (ite l3_s2 l3_s1 l3_s10)))-                                                                  l3_s11)))))))))))-          ; Definition of: |f4 @(SBV Word8 -> SBV Word8)| :: SWord8 -> SWord8. [Refers to: |f1 @(SBV Word8 -> SBV Word8)|, |f4 @(SBV Word8 -> SBV Word8)|]-                                                                                  (let ((l4_s1 #x00))-                                                                                  (let ((l4_s3 #x01))-                                                                                  (let ((l4_s6 #x02))-                                                                                  (let ((l4_s2 (= l4_s0 l4_s1)))-                                                                                  (let ((l4_s4 (bvsub l4_s0 l4_s3)))-                                                                                  (let ((l4_s5 (|f4 @(SBV Word8 -> SBV Word8)| l4_s4)))-                                                                                  (let ((l4_s7 (bvsub l4_s0 l4_s6)))-                                                                                  (let ((l4_s8 (|f1 @(SBV Word8 -> SBV Word8)| l4_s7)))-                                                                                  (let ((l4_s9 (bvadd l4_s5 l4_s8)))-                                                                                  (let ((l4_s10 (bvadd l4_s3 l4_s9)))-                                                                                  (let ((l4_s11 (ite l4_s2 l4_s1 l4_s10)))-                                                                                  l4_s11))))))))))))) [GOOD] ; --- assignments ----[GOOD] (define-fun s1 () (_ BitVec 8) (|f1 @(SBV Word8 -> SBV Word8)| s0))-[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s4 () Bool (= s0 s1))+[GOOD] (define-fun s5 () (_ BitVec 8) (bvsub s0 s2))+[GOOD] (define-fun s7 () (_ BitVec 8) (bvsub s0 s3))+[GOOD] (define-fun s9 () (_ BitVec 8) (bvadd s6 s8))+[GOOD] (define-fun s10 () (_ BitVec 8) (bvadd s2 s9))+[GOOD] (define-fun s11 () (_ BitVec 8) (ite s4 s1 s10))+[GOOD] (define-fun s12 () Int (ubv_to_int s0))+[GOOD] (define-fun s14 () Bool (>= s12 s13)) [GOOD] ; --- delayedEqualities --- [GOOD] ; --- formula ----[GOOD] (assert s2)-[GOOD] (declare-fun s3 () (_ BitVec 8))-[GOOD] (define-fun s4 () (_ BitVec 8) (|f1 @(SBV Word8 -> SBV Word8)| s3))-[GOOD] (define-fun s5 () Bool (= s3 s4))-[GOOD] (assert s5)+[GOOD] (assert (not s14)) [SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {f1 @(SBV Word8 -> SBV Word8), f2 @(SBV Word8 -> SBV Word8), f3 @(SBV Word8 -> SBV Word8), f4 @(SBV Word8 -> SBV Word8)}: replaying 8 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () (_ BitVec 8) #x00)+[GOOD] (define-fun s2 () (_ BitVec 8) #x01)+[GOOD] (define-fun s3 () (_ BitVec 8) #x02)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (_ BitVec 8)) ; tracks user variable "arg"+[GOOD] (declare-fun s6 () (_ BitVec 8)) ; tracks user variable "__internal_sbv_s6"+[GOOD] (declare-fun s8 () (_ BitVec 8)) ; tracks user variable "__internal_sbv_s8"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (= s0 s1))+[GOOD] (define-fun s5 () (_ BitVec 8) (bvsub s0 s2))+[GOOD] (define-fun s7 () (_ BitVec 8) (bvsub s0 s3))+[GOOD] (define-fun s9 () (_ BitVec 8) (bvadd s6 s8))+[GOOD] (define-fun s10 () (_ BitVec 8) (bvadd s2 s9))+[GOOD] (define-fun s11 () (_ BitVec 8) (ite s4 s1 s10))+[GOOD] (define-fun s12 () Int (ubv_to_int s0))+[GOOD] (define-fun s13 () Int (ubv_to_int s5))+[GOOD] (define-fun s14 () Int (ubv_to_int s7))+[GOOD] (define-fun s15 () Bool (not s4))+[GOOD] (define-fun s16 () Bool (> s12 s13))+[GOOD] (define-fun s17 () Bool (=> s15 s16))+[GOOD] (define-fun s18 () Bool (> s12 s14))+[GOOD] (define-fun s19 () Bool (=> s15 s18))+[GOOD] (define-fun s20 () Bool (and s17 s19))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s20))+[SEND] (check-sat) [RECV] sat+[SEND] (get-value (s12))+[RECV] ((s12 1))+[SEND] (get-value (s13))+[RECV] ((s13 0))+[SEND] (get-value (s14))+[RECV] ((s14 255)) [SEND] (get-value (s0))-[RECV] ((s0 #x00))-[SEND] (get-value (s3))-[RECV] ((s3 #x00))+[RECV] ((s0 #x01))+[SEND] (get-value (s6))+[RECV] ((s6 #x00))+[SEND] (get-value (s8))+[RECV] ((s8 #x00)) *** Solver   : Z3 *** Exit code: ExitSuccess+[MEASURE] Mutual group: decrease failed for f1 @(SBV Word8 -> SBV Word8): Falsifiable. Counter-example:+  arg     =   1 :: Word8+  before  =   1 :: Integer+  then[1] =   0 :: Integer+  then[2] = 255 :: Integer+[MEASURE] Mutual group: measure arg1 failed, trying next -RESULT:-  s0 = 0 :: Word8-  s3 = 0 :: Word8+EXCEPTION CAUGHT:++*** Data.SBV: Cannot determine a termination measure for mutual recursion group.+***+***     f1  :: SBV Word8 -> SBV Word8+***     f2  :: SBV Word8 -> SBV Word8+***     f3  :: SBV Word8 -> SBV Word8+***     f4  :: SBV Word8 -> SBV Word8+***+*** Please use 'smtFunctionWithMeasure' to provide explicit measures.+
+ SBVTestSuite/GoldFiles/lambda57a.gold view
@@ -0,0 +1,928 @@+[MEASURE] Verifying termination measures for: f1i @(SBV Integer -> SBV Integer), f1i @(SBV Integer -> SBV Integer), f2i @(SBV Integer -> SBV Integer), f2i @(SBV Integer -> SBV Integer), f3i @(SBV Integer -> SBV Integer), f3i @(SBV Integer -> SBV Integer), f4i @(SBV Integer -> SBV Integer), f4i @(SBV Integer -> SBV Integer)+[MEASURE] Checking: f1i @(SBV Integer -> SBV Integer)+[MEASURE] Checking mutual recursion group: {f1i :: SBV Integer -> SBV Integer, f2i :: SBV Integer -> SBV Integer, f3i :: SBV Integer -> SBV Integer, f4i :: SBV Integer -> SBV Integer}+[MEASURE] Mutual group: trying measure abs arg1 for all members+[MEASURE] replayDAG {f1i @(SBV Integer -> SBV Integer), f2i @(SBV Integer -> SBV Integer), f3i @(SBV Integer -> SBV Integer), f4i @(SBV Integer -> SBV Integer)}: replaying 8 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () Int 2)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s6 () Int) ; tracks user variable "__internal_sbv_s6"+[GOOD] (declare-fun s8 () Int) ; tracks user variable "__internal_sbv_s8"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (<= s0 s1))+[GOOD] (define-fun s5 () Int (- s0 s2))+[GOOD] (define-fun s7 () Int (- s0 s3))+[GOOD] (define-fun s9 () Int (+ s6 s8))+[GOOD] (define-fun s10 () Int (+ s2 s9))+[GOOD] (define-fun s11 () Int (ite s4 s1 s10))+[GOOD] (define-fun s12 () Int (abs s0))+[GOOD] (define-fun s13 () Bool (>= s12 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s13))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {f1i @(SBV Integer -> SBV Integer), f2i @(SBV Integer -> SBV Integer), f3i @(SBV Integer -> SBV Integer), f4i @(SBV Integer -> SBV Integer)}: replaying 8 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () Int 2)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s6 () Int) ; tracks user variable "__internal_sbv_s6"+[GOOD] (declare-fun s8 () Int) ; tracks user variable "__internal_sbv_s8"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (<= s0 s1))+[GOOD] (define-fun s5 () Int (- s0 s2))+[GOOD] (define-fun s7 () Int (- s0 s3))+[GOOD] (define-fun s9 () Int (+ s6 s8))+[GOOD] (define-fun s10 () Int (+ s2 s9))+[GOOD] (define-fun s11 () Int (ite s4 s1 s10))+[GOOD] (define-fun s12 () Int (abs s0))+[GOOD] (define-fun s13 () Int (abs s5))+[GOOD] (define-fun s14 () Int (abs s7))+[GOOD] (define-fun s15 () Bool (not s4))+[GOOD] (define-fun s16 () Bool (> s12 s13))+[GOOD] (define-fun s17 () Bool (=> s15 s16))+[GOOD] (define-fun s18 () Bool (> s12 s14))+[GOOD] (define-fun s19 () Bool (=> s15 s18))+[GOOD] (define-fun s20 () Bool (and s17 s19))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s20))+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s12))+[RECV] ((s12 1))+[SEND] (get-value (s13))+[RECV] ((s13 0))+[SEND] (get-value (s14))+[RECV] ((s14 1))+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s6))+[RECV] ((s6 0))+[SEND] (get-value (s8))+[RECV] ((s8 0))+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Mutual group: decrease failed for f1i @(SBV Integer -> SBV Integer): Falsifiable. Counter-example:+  arg     = 1 :: Integer+  before  = 1 :: Integer+  then[1] = 0 :: Integer+  then[2] = 1 :: Integer+[MEASURE] Mutual group: measure abs arg1 failed, trying next+[MEASURE] Mutual group: trying measure smax 0 arg1 for all members+[MEASURE] replayDAG {f1i @(SBV Integer -> SBV Integer), f2i @(SBV Integer -> SBV Integer), f3i @(SBV Integer -> SBV Integer), f4i @(SBV Integer -> SBV Integer)}: replaying 8 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () Int 2)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s6 () Int) ; tracks user variable "__internal_sbv_s6"+[GOOD] (declare-fun s8 () Int) ; tracks user variable "__internal_sbv_s8"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (<= s0 s1))+[GOOD] (define-fun s5 () Int (- s0 s2))+[GOOD] (define-fun s7 () Int (- s0 s3))+[GOOD] (define-fun s9 () Int (+ s6 s8))+[GOOD] (define-fun s10 () Int (+ s2 s9))+[GOOD] (define-fun s11 () Int (ite s4 s1 s10))+[GOOD] (define-fun s12 () Bool (<= s1 s0))+[GOOD] (define-fun s13 () Int (ite s12 s0 s1))+[GOOD] (define-fun s14 () Bool (>= s13 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s14))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {f1i @(SBV Integer -> SBV Integer), f2i @(SBV Integer -> SBV Integer), f3i @(SBV Integer -> SBV Integer), f4i @(SBV Integer -> SBV Integer)}: replaying 8 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () Int 2)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s6 () Int) ; tracks user variable "__internal_sbv_s6"+[GOOD] (declare-fun s8 () Int) ; tracks user variable "__internal_sbv_s8"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (<= s0 s1))+[GOOD] (define-fun s5 () Int (- s0 s2))+[GOOD] (define-fun s7 () Int (- s0 s3))+[GOOD] (define-fun s9 () Int (+ s6 s8))+[GOOD] (define-fun s10 () Int (+ s2 s9))+[GOOD] (define-fun s11 () Int (ite s4 s1 s10))+[GOOD] (define-fun s12 () Bool (<= s1 s0))+[GOOD] (define-fun s13 () Int (ite s12 s0 s1))+[GOOD] (define-fun s14 () Bool (<= s1 s5))+[GOOD] (define-fun s15 () Int (ite s14 s5 s1))+[GOOD] (define-fun s16 () Bool (<= s1 s7))+[GOOD] (define-fun s17 () Int (ite s16 s7 s1))+[GOOD] (define-fun s18 () Bool (not s4))+[GOOD] (define-fun s19 () Bool (> s13 s15))+[GOOD] (define-fun s20 () Bool (=> s18 s19))+[GOOD] (define-fun s21 () Bool (> s13 s17))+[GOOD] (define-fun s22 () Bool (=> s18 s21))+[GOOD] (define-fun s23 () Bool (and s20 s22))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s23))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Mutual group: decrease verified for f1i @(SBV Integer -> SBV Integer)+[MEASURE] replayDAG {f1i @(SBV Integer -> SBV Integer), f2i @(SBV Integer -> SBV Integer), f3i @(SBV Integer -> SBV Integer), f4i @(SBV Integer -> SBV Integer)}: replaying 8 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () Int 2)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s6 () Int) ; tracks user variable "__internal_sbv_s6"+[GOOD] (declare-fun s8 () Int) ; tracks user variable "__internal_sbv_s8"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (<= s0 s1))+[GOOD] (define-fun s5 () Int (- s0 s2))+[GOOD] (define-fun s7 () Int (- s0 s3))+[GOOD] (define-fun s9 () Int (+ s6 s8))+[GOOD] (define-fun s10 () Int (+ s2 s9))+[GOOD] (define-fun s11 () Int (ite s4 s1 s10))+[GOOD] (define-fun s12 () Bool (<= s1 s0))+[GOOD] (define-fun s13 () Int (ite s12 s0 s1))+[GOOD] (define-fun s14 () Bool (>= s13 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s14))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {f1i @(SBV Integer -> SBV Integer), f2i @(SBV Integer -> SBV Integer), f3i @(SBV Integer -> SBV Integer), f4i @(SBV Integer -> SBV Integer)}: replaying 8 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () Int 2)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s6 () Int) ; tracks user variable "__internal_sbv_s6"+[GOOD] (declare-fun s8 () Int) ; tracks user variable "__internal_sbv_s8"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (<= s0 s1))+[GOOD] (define-fun s5 () Int (- s0 s2))+[GOOD] (define-fun s7 () Int (- s0 s3))+[GOOD] (define-fun s9 () Int (+ s6 s8))+[GOOD] (define-fun s10 () Int (+ s2 s9))+[GOOD] (define-fun s11 () Int (ite s4 s1 s10))+[GOOD] (define-fun s12 () Bool (<= s1 s0))+[GOOD] (define-fun s13 () Int (ite s12 s0 s1))+[GOOD] (define-fun s14 () Bool (<= s1 s5))+[GOOD] (define-fun s15 () Int (ite s14 s5 s1))+[GOOD] (define-fun s16 () Bool (<= s1 s7))+[GOOD] (define-fun s17 () Int (ite s16 s7 s1))+[GOOD] (define-fun s18 () Bool (not s4))+[GOOD] (define-fun s19 () Bool (> s13 s15))+[GOOD] (define-fun s20 () Bool (=> s18 s19))+[GOOD] (define-fun s21 () Bool (> s13 s17))+[GOOD] (define-fun s22 () Bool (=> s18 s21))+[GOOD] (define-fun s23 () Bool (and s20 s22))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s23))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Mutual group: decrease verified for f2i @(SBV Integer -> SBV Integer)+[MEASURE] replayDAG {f1i @(SBV Integer -> SBV Integer), f2i @(SBV Integer -> SBV Integer), f3i @(SBV Integer -> SBV Integer), f4i @(SBV Integer -> SBV Integer)}: replaying 8 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () Int 2)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s6 () Int) ; tracks user variable "__internal_sbv_s6"+[GOOD] (declare-fun s8 () Int) ; tracks user variable "__internal_sbv_s8"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (<= s0 s1))+[GOOD] (define-fun s5 () Int (- s0 s2))+[GOOD] (define-fun s7 () Int (- s0 s3))+[GOOD] (define-fun s9 () Int (+ s6 s8))+[GOOD] (define-fun s10 () Int (+ s2 s9))+[GOOD] (define-fun s11 () Int (ite s4 s1 s10))+[GOOD] (define-fun s12 () Bool (<= s1 s0))+[GOOD] (define-fun s13 () Int (ite s12 s0 s1))+[GOOD] (define-fun s14 () Bool (>= s13 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s14))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {f1i @(SBV Integer -> SBV Integer), f2i @(SBV Integer -> SBV Integer), f3i @(SBV Integer -> SBV Integer), f4i @(SBV Integer -> SBV Integer)}: replaying 8 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () Int 2)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s6 () Int) ; tracks user variable "__internal_sbv_s6"+[GOOD] (declare-fun s8 () Int) ; tracks user variable "__internal_sbv_s8"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (<= s0 s1))+[GOOD] (define-fun s5 () Int (- s0 s2))+[GOOD] (define-fun s7 () Int (- s0 s3))+[GOOD] (define-fun s9 () Int (+ s6 s8))+[GOOD] (define-fun s10 () Int (+ s2 s9))+[GOOD] (define-fun s11 () Int (ite s4 s1 s10))+[GOOD] (define-fun s12 () Bool (<= s1 s0))+[GOOD] (define-fun s13 () Int (ite s12 s0 s1))+[GOOD] (define-fun s14 () Bool (<= s1 s5))+[GOOD] (define-fun s15 () Int (ite s14 s5 s1))+[GOOD] (define-fun s16 () Bool (<= s1 s7))+[GOOD] (define-fun s17 () Int (ite s16 s7 s1))+[GOOD] (define-fun s18 () Bool (not s4))+[GOOD] (define-fun s19 () Bool (> s13 s15))+[GOOD] (define-fun s20 () Bool (=> s18 s19))+[GOOD] (define-fun s21 () Bool (> s13 s17))+[GOOD] (define-fun s22 () Bool (=> s18 s21))+[GOOD] (define-fun s23 () Bool (and s20 s22))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s23))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Mutual group: decrease verified for f3i @(SBV Integer -> SBV Integer)+[MEASURE] replayDAG {f1i @(SBV Integer -> SBV Integer), f2i @(SBV Integer -> SBV Integer), f3i @(SBV Integer -> SBV Integer), f4i @(SBV Integer -> SBV Integer)}: replaying 8 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () Int 2)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s6 () Int) ; tracks user variable "__internal_sbv_s6"+[GOOD] (declare-fun s8 () Int) ; tracks user variable "__internal_sbv_s8"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (<= s0 s1))+[GOOD] (define-fun s5 () Int (- s0 s2))+[GOOD] (define-fun s7 () Int (- s0 s3))+[GOOD] (define-fun s9 () Int (+ s6 s8))+[GOOD] (define-fun s10 () Int (+ s2 s9))+[GOOD] (define-fun s11 () Int (ite s4 s1 s10))+[GOOD] (define-fun s12 () Bool (<= s1 s0))+[GOOD] (define-fun s13 () Int (ite s12 s0 s1))+[GOOD] (define-fun s14 () Bool (>= s13 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s14))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {f1i @(SBV Integer -> SBV Integer), f2i @(SBV Integer -> SBV Integer), f3i @(SBV Integer -> SBV Integer), f4i @(SBV Integer -> SBV Integer)}: replaying 8 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () Int 2)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s6 () Int) ; tracks user variable "__internal_sbv_s6"+[GOOD] (declare-fun s8 () Int) ; tracks user variable "__internal_sbv_s8"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (<= s0 s1))+[GOOD] (define-fun s5 () Int (- s0 s2))+[GOOD] (define-fun s7 () Int (- s0 s3))+[GOOD] (define-fun s9 () Int (+ s6 s8))+[GOOD] (define-fun s10 () Int (+ s2 s9))+[GOOD] (define-fun s11 () Int (ite s4 s1 s10))+[GOOD] (define-fun s12 () Bool (<= s1 s0))+[GOOD] (define-fun s13 () Int (ite s12 s0 s1))+[GOOD] (define-fun s14 () Bool (<= s1 s5))+[GOOD] (define-fun s15 () Int (ite s14 s5 s1))+[GOOD] (define-fun s16 () Bool (<= s1 s7))+[GOOD] (define-fun s17 () Int (ite s16 s7 s1))+[GOOD] (define-fun s18 () Bool (not s4))+[GOOD] (define-fun s19 () Bool (> s13 s15))+[GOOD] (define-fun s20 () Bool (=> s18 s19))+[GOOD] (define-fun s21 () Bool (> s13 s17))+[GOOD] (define-fun s22 () Bool (=> s18 s21))+[GOOD] (define-fun s23 () Bool (and s20 s22))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s23))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Mutual group: decrease verified for f4i @(SBV Integer -> SBV Integer)+[MEASURE] Mutual group: measure smax 0 arg1 works for all members+[MEASURE] Passed (terminating): f1i @(SBV Integer -> SBV Integer)+[MEASURE] Checking: f1i @(SBV Integer -> SBV Integer)+[MEASURE] f1i @(SBV Integer -> SBV Integer): barified = "|f1i @(SBV Integer -> SBV Integer)|"+[MEASURE] f1i @(SBV Integer -> SBV Integer): Uninterpreted ops in DAG: [("|f1i @(SBV Integer -> SBV Integer)|",1),("|f2i @(SBV Integer -> SBV Integer)|",1)]+[MEASURE] f1i @(SBV Integer -> SBV Integer): recursive calls found = 1+[MEASURE] f1i @(SBV Integer -> SBV Integer): trying abs arg1+[MEASURE] replayDAG {f1i @(SBV Integer -> SBV Integer)}: replaying 8 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () Int 2)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s6 () Int) ; tracks user variable "__internal_sbv_s6"+[GOOD] (declare-fun s8 () Int) ; tracks user variable "__internal_sbv_s8"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (<= s0 s1))+[GOOD] (define-fun s5 () Int (- s0 s2))+[GOOD] (define-fun s7 () Int (- s0 s3))+[GOOD] (define-fun s9 () Int (+ s6 s8))+[GOOD] (define-fun s10 () Int (+ s2 s9))+[GOOD] (define-fun s11 () Int (ite s4 s1 s10))+[GOOD] (define-fun s12 () Int (abs s0))+[GOOD] (define-fun s13 () Bool (>= s12 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s13))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {f1i @(SBV Integer -> SBV Integer)}: replaying 8 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () Int 2)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s6 () Int) ; tracks user variable "__internal_sbv_s6"+[GOOD] (declare-fun s8 () Int) ; tracks user variable "__internal_sbv_s8"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (<= s0 s1))+[GOOD] (define-fun s5 () Int (- s0 s2))+[GOOD] (define-fun s7 () Int (- s0 s3))+[GOOD] (define-fun s9 () Int (+ s6 s8))+[GOOD] (define-fun s10 () Int (+ s2 s9))+[GOOD] (define-fun s11 () Int (ite s4 s1 s10))+[GOOD] (define-fun s12 () Int (abs s0))+[GOOD] (define-fun s13 () Int (abs s5))+[GOOD] (define-fun s14 () Bool (not s4))+[GOOD] (define-fun s15 () Bool (> s12 s13))+[GOOD] (define-fun s16 () Bool (=> s14 s15))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s16))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] f1i @(SBV Integer -> SBV Integer): abs arg1 -> OK+[MEASURE] Passed (terminating): f1i @(SBV Integer -> SBV Integer)+[MEASURE] Checking: f2i @(SBV Integer -> SBV Integer)+[MEASURE] f2i @(SBV Integer -> SBV Integer): mutual group already verified, skipping+[MEASURE] Passed (terminating): f2i @(SBV Integer -> SBV Integer)+[MEASURE] Checking: f2i @(SBV Integer -> SBV Integer)+[MEASURE] f2i @(SBV Integer -> SBV Integer): barified = "|f2i @(SBV Integer -> SBV Integer)|"+[MEASURE] f2i @(SBV Integer -> SBV Integer): Uninterpreted ops in DAG: [("|f2i @(SBV Integer -> SBV Integer)|",1),("|f3i @(SBV Integer -> SBV Integer)|",1)]+[MEASURE] f2i @(SBV Integer -> SBV Integer): recursive calls found = 1+[MEASURE] f2i @(SBV Integer -> SBV Integer): trying abs arg1+[MEASURE] replayDAG {f2i @(SBV Integer -> SBV Integer)}: replaying 8 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () Int 2)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s6 () Int) ; tracks user variable "__internal_sbv_s6"+[GOOD] (declare-fun s8 () Int) ; tracks user variable "__internal_sbv_s8"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (<= s0 s1))+[GOOD] (define-fun s5 () Int (- s0 s2))+[GOOD] (define-fun s7 () Int (- s0 s3))+[GOOD] (define-fun s9 () Int (+ s6 s8))+[GOOD] (define-fun s10 () Int (+ s2 s9))+[GOOD] (define-fun s11 () Int (ite s4 s1 s10))+[GOOD] (define-fun s12 () Int (abs s0))+[GOOD] (define-fun s13 () Bool (>= s12 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s13))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {f2i @(SBV Integer -> SBV Integer)}: replaying 8 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () Int 2)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s6 () Int) ; tracks user variable "__internal_sbv_s6"+[GOOD] (declare-fun s8 () Int) ; tracks user variable "__internal_sbv_s8"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (<= s0 s1))+[GOOD] (define-fun s5 () Int (- s0 s2))+[GOOD] (define-fun s7 () Int (- s0 s3))+[GOOD] (define-fun s9 () Int (+ s6 s8))+[GOOD] (define-fun s10 () Int (+ s2 s9))+[GOOD] (define-fun s11 () Int (ite s4 s1 s10))+[GOOD] (define-fun s12 () Int (abs s0))+[GOOD] (define-fun s13 () Int (abs s5))+[GOOD] (define-fun s14 () Bool (not s4))+[GOOD] (define-fun s15 () Bool (> s12 s13))+[GOOD] (define-fun s16 () Bool (=> s14 s15))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s16))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] f2i @(SBV Integer -> SBV Integer): abs arg1 -> OK+[MEASURE] Passed (terminating): f2i @(SBV Integer -> SBV Integer)+[MEASURE] Checking: f3i @(SBV Integer -> SBV Integer)+[MEASURE] f3i @(SBV Integer -> SBV Integer): mutual group already verified, skipping+[MEASURE] Passed (terminating): f3i @(SBV Integer -> SBV Integer)+[MEASURE] Checking: f3i @(SBV Integer -> SBV Integer)+[MEASURE] f3i @(SBV Integer -> SBV Integer): barified = "|f3i @(SBV Integer -> SBV Integer)|"+[MEASURE] f3i @(SBV Integer -> SBV Integer): Uninterpreted ops in DAG: [("|f3i @(SBV Integer -> SBV Integer)|",1),("|f4i @(SBV Integer -> SBV Integer)|",1)]+[MEASURE] f3i @(SBV Integer -> SBV Integer): recursive calls found = 1+[MEASURE] f3i @(SBV Integer -> SBV Integer): trying abs arg1+[MEASURE] replayDAG {f3i @(SBV Integer -> SBV Integer)}: replaying 8 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () Int 2)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s6 () Int) ; tracks user variable "__internal_sbv_s6"+[GOOD] (declare-fun s8 () Int) ; tracks user variable "__internal_sbv_s8"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (<= s0 s1))+[GOOD] (define-fun s5 () Int (- s0 s2))+[GOOD] (define-fun s7 () Int (- s0 s3))+[GOOD] (define-fun s9 () Int (+ s6 s8))+[GOOD] (define-fun s10 () Int (+ s2 s9))+[GOOD] (define-fun s11 () Int (ite s4 s1 s10))+[GOOD] (define-fun s12 () Int (abs s0))+[GOOD] (define-fun s13 () Bool (>= s12 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s13))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {f3i @(SBV Integer -> SBV Integer)}: replaying 8 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () Int 2)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s6 () Int) ; tracks user variable "__internal_sbv_s6"+[GOOD] (declare-fun s8 () Int) ; tracks user variable "__internal_sbv_s8"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (<= s0 s1))+[GOOD] (define-fun s5 () Int (- s0 s2))+[GOOD] (define-fun s7 () Int (- s0 s3))+[GOOD] (define-fun s9 () Int (+ s6 s8))+[GOOD] (define-fun s10 () Int (+ s2 s9))+[GOOD] (define-fun s11 () Int (ite s4 s1 s10))+[GOOD] (define-fun s12 () Int (abs s0))+[GOOD] (define-fun s13 () Int (abs s5))+[GOOD] (define-fun s14 () Bool (not s4))+[GOOD] (define-fun s15 () Bool (> s12 s13))+[GOOD] (define-fun s16 () Bool (=> s14 s15))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s16))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] f3i @(SBV Integer -> SBV Integer): abs arg1 -> OK+[MEASURE] Passed (terminating): f3i @(SBV Integer -> SBV Integer)+[MEASURE] Checking: f4i @(SBV Integer -> SBV Integer)+[MEASURE] f4i @(SBV Integer -> SBV Integer): mutual group already verified, skipping+[MEASURE] Passed (terminating): f4i @(SBV Integer -> SBV Integer)+[MEASURE] Checking: f4i @(SBV Integer -> SBV Integer)+[MEASURE] f4i @(SBV Integer -> SBV Integer): barified = "|f4i @(SBV Integer -> SBV Integer)|"+[MEASURE] f4i @(SBV Integer -> SBV Integer): Uninterpreted ops in DAG: [("|f4i @(SBV Integer -> SBV Integer)|",1),("|f1i @(SBV Integer -> SBV Integer)|",1)]+[MEASURE] f4i @(SBV Integer -> SBV Integer): recursive calls found = 1+[MEASURE] f4i @(SBV Integer -> SBV Integer): trying abs arg1+[MEASURE] replayDAG {f4i @(SBV Integer -> SBV Integer)}: replaying 8 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () Int 2)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s6 () Int) ; tracks user variable "__internal_sbv_s6"+[GOOD] (declare-fun s8 () Int) ; tracks user variable "__internal_sbv_s8"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (<= s0 s1))+[GOOD] (define-fun s5 () Int (- s0 s2))+[GOOD] (define-fun s7 () Int (- s0 s3))+[GOOD] (define-fun s9 () Int (+ s6 s8))+[GOOD] (define-fun s10 () Int (+ s2 s9))+[GOOD] (define-fun s11 () Int (ite s4 s1 s10))+[GOOD] (define-fun s12 () Int (abs s0))+[GOOD] (define-fun s13 () Bool (>= s12 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s13))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {f4i @(SBV Integer -> SBV Integer)}: replaying 8 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () Int 2)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s6 () Int) ; tracks user variable "__internal_sbv_s6"+[GOOD] (declare-fun s8 () Int) ; tracks user variable "__internal_sbv_s8"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (<= s0 s1))+[GOOD] (define-fun s5 () Int (- s0 s2))+[GOOD] (define-fun s7 () Int (- s0 s3))+[GOOD] (define-fun s9 () Int (+ s6 s8))+[GOOD] (define-fun s10 () Int (+ s2 s9))+[GOOD] (define-fun s11 () Int (ite s4 s1 s10))+[GOOD] (define-fun s12 () Int (abs s0))+[GOOD] (define-fun s13 () Int (abs s5))+[GOOD] (define-fun s14 () Bool (not s4))+[GOOD] (define-fun s15 () Bool (> s12 s13))+[GOOD] (define-fun s16 () Bool (=> s14 s15))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s16))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] f4i @(SBV Integer -> SBV Integer): abs arg1 -> OK+[MEASURE] Passed (terminating): f4i @(SBV Integer -> SBV Integer)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; |f1i @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger, |f2i @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger, |f3i @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger, |f4i @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger+[GOOD] (define-funs-rec+         ((|f1i @(SBV Integer -> SBV Integer)| ((l1_s0 Int)) Int)+          (|f2i @(SBV Integer -> SBV Integer)| ((l2_s0 Int)) Int)+          (|f3i @(SBV Integer -> SBV Integer)| ((l3_s0 Int)) Int)+          (|f4i @(SBV Integer -> SBV Integer)| ((l4_s0 Int)) Int))+         (; Definition of: |f1i @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger. [Refers to: |f1i @(SBV Integer -> SBV Integer)|, |f2i @(SBV Integer -> SBV Integer)|]+                                  (let ((l1_s1 0))+                                  (let ((l1_s3 1))+                                  (let ((l1_s6 2))+                                  (let ((l1_s2 (<= l1_s0 l1_s1)))+                                  (let ((l1_s4 (- l1_s0 l1_s3)))+                                  (let ((l1_s5 (|f1i @(SBV Integer -> SBV Integer)| l1_s4)))+                                  (let ((l1_s7 (- l1_s0 l1_s6)))+                                  (let ((l1_s8 (|f2i @(SBV Integer -> SBV Integer)| l1_s7)))+                                  (let ((l1_s9 (+ l1_s5 l1_s8)))+                                  (let ((l1_s10 (+ l1_s3 l1_s9)))+                                  (let ((l1_s11 (ite l1_s2 l1_s1 l1_s10)))+                                  l1_s11)))))))))))+          ; Definition of: |f2i @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger. [Refers to: |f2i @(SBV Integer -> SBV Integer)|, |f3i @(SBV Integer -> SBV Integer)|]+                                                  (let ((l2_s1 0))+                                                  (let ((l2_s3 1))+                                                  (let ((l2_s6 2))+                                                  (let ((l2_s2 (<= l2_s0 l2_s1)))+                                                  (let ((l2_s4 (- l2_s0 l2_s3)))+                                                  (let ((l2_s5 (|f2i @(SBV Integer -> SBV Integer)| l2_s4)))+                                                  (let ((l2_s7 (- l2_s0 l2_s6)))+                                                  (let ((l2_s8 (|f3i @(SBV Integer -> SBV Integer)| l2_s7)))+                                                  (let ((l2_s9 (+ l2_s5 l2_s8)))+                                                  (let ((l2_s10 (+ l2_s3 l2_s9)))+                                                  (let ((l2_s11 (ite l2_s2 l2_s1 l2_s10)))+                                                  l2_s11)))))))))))+          ; Definition of: |f3i @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger. [Refers to: |f3i @(SBV Integer -> SBV Integer)|, |f4i @(SBV Integer -> SBV Integer)|]+                                                                  (let ((l3_s1 0))+                                                                  (let ((l3_s3 1))+                                                                  (let ((l3_s6 2))+                                                                  (let ((l3_s2 (<= l3_s0 l3_s1)))+                                                                  (let ((l3_s4 (- l3_s0 l3_s3)))+                                                                  (let ((l3_s5 (|f3i @(SBV Integer -> SBV Integer)| l3_s4)))+                                                                  (let ((l3_s7 (- l3_s0 l3_s6)))+                                                                  (let ((l3_s8 (|f4i @(SBV Integer -> SBV Integer)| l3_s7)))+                                                                  (let ((l3_s9 (+ l3_s5 l3_s8)))+                                                                  (let ((l3_s10 (+ l3_s3 l3_s9)))+                                                                  (let ((l3_s11 (ite l3_s2 l3_s1 l3_s10)))+                                                                  l3_s11)))))))))))+          ; Definition of: |f4i @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger. [Refers to: |f1i @(SBV Integer -> SBV Integer)|, |f4i @(SBV Integer -> SBV Integer)|]+                                                                                  (let ((l4_s1 0))+                                                                                  (let ((l4_s3 1))+                                                                                  (let ((l4_s6 2))+                                                                                  (let ((l4_s2 (<= l4_s0 l4_s1)))+                                                                                  (let ((l4_s4 (- l4_s0 l4_s3)))+                                                                                  (let ((l4_s5 (|f4i @(SBV Integer -> SBV Integer)| l4_s4)))+                                                                                  (let ((l4_s7 (- l4_s0 l4_s6)))+                                                                                  (let ((l4_s8 (|f1i @(SBV Integer -> SBV Integer)| l4_s7)))+                                                                                  (let ((l4_s9 (+ l4_s5 l4_s8)))+                                                                                  (let ((l4_s10 (+ l4_s3 l4_s9)))+                                                                                  (let ((l4_s11 (ite l4_s2 l4_s1 l4_s10)))+                                                                                  l4_s11)))))))))))))+[GOOD] ; --- assignments ---+[GOOD] (define-fun s1 () Int (|f1i @(SBV Integer -> SBV Integer)| s0))+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (declare-fun s3 () Int)+[GOOD] (define-fun s4 () Int (|f1i @(SBV Integer -> SBV Integer)| s3))+[GOOD] (define-fun s5 () Bool (= s3 s4))+[GOOD] (assert s5)+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 0))+[SEND] (get-value (s3))+[RECV] ((s3 0))+*** Solver   : Z3+*** Exit code: ExitSuccess++RESULT:+  s0 = 0 :: Integer+  s3 = 0 :: Integer
+ SBVTestSuite/GoldFiles/lambda57b.gold view
@@ -0,0 +1,824 @@+[MEASURE] Verifying termination measures for: f1m @(SBV Integer -> SBV Integer), f1m @(SBV Integer -> SBV Integer), f2m @(SBV Integer -> SBV Integer), f2m @(SBV Integer -> SBV Integer), f3m @(SBV Integer -> SBV Integer), f3m @(SBV Integer -> SBV Integer), f4m @(SBV Integer -> SBV Integer), f4m @(SBV Integer -> SBV Integer)+[MEASURE] Checking: f1m @(SBV Integer -> SBV Integer)+[MEASURE] Checking mutual recursion group: {f1m :: SBV Integer -> SBV Integer, f2m :: SBV Integer -> SBV Integer, f3m :: SBV Integer -> SBV Integer, f4m :: SBV Integer -> SBV Integer}+[MEASURE] Mutual group: trying user-provided measure for all members+[MEASURE] replayDAG {f1m @(SBV Integer -> SBV Integer), f2m @(SBV Integer -> SBV Integer), f3m @(SBV Integer -> SBV Integer), f4m @(SBV Integer -> SBV Integer)}: replaying 8 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () Int 2)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s6 () Int) ; tracks user variable "__internal_sbv_s6"+[GOOD] (declare-fun s8 () Int) ; tracks user variable "__internal_sbv_s8"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (<= s0 s1))+[GOOD] (define-fun s5 () Int (- s0 s2))+[GOOD] (define-fun s7 () Int (- s0 s3))+[GOOD] (define-fun s9 () Int (+ s6 s8))+[GOOD] (define-fun s10 () Int (+ s2 s9))+[GOOD] (define-fun s11 () Int (ite s4 s1 s10))+[GOOD] (define-fun s12 () Bool (<= s1 s0))+[GOOD] (define-fun s13 () Int (ite s12 s0 s1))+[GOOD] (define-fun s14 () Bool (>= s13 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s14))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {f1m @(SBV Integer -> SBV Integer), f2m @(SBV Integer -> SBV Integer), f3m @(SBV Integer -> SBV Integer), f4m @(SBV Integer -> SBV Integer)}: replaying 8 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () Int 2)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s6 () Int) ; tracks user variable "__internal_sbv_s6"+[GOOD] (declare-fun s8 () Int) ; tracks user variable "__internal_sbv_s8"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (<= s0 s1))+[GOOD] (define-fun s5 () Int (- s0 s2))+[GOOD] (define-fun s7 () Int (- s0 s3))+[GOOD] (define-fun s9 () Int (+ s6 s8))+[GOOD] (define-fun s10 () Int (+ s2 s9))+[GOOD] (define-fun s11 () Int (ite s4 s1 s10))+[GOOD] (define-fun s12 () Bool (<= s1 s0))+[GOOD] (define-fun s13 () Int (ite s12 s0 s1))+[GOOD] (define-fun s14 () Bool (<= s1 s5))+[GOOD] (define-fun s15 () Int (ite s14 s5 s1))+[GOOD] (define-fun s16 () Bool (<= s1 s7))+[GOOD] (define-fun s17 () Int (ite s16 s7 s1))+[GOOD] (define-fun s18 () Bool (not s4))+[GOOD] (define-fun s19 () Bool (> s13 s15))+[GOOD] (define-fun s20 () Bool (=> s18 s19))+[GOOD] (define-fun s21 () Bool (> s13 s17))+[GOOD] (define-fun s22 () Bool (=> s18 s21))+[GOOD] (define-fun s23 () Bool (and s20 s22))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s23))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Mutual group: decrease verified for f1m @(SBV Integer -> SBV Integer)+[MEASURE] replayDAG {f1m @(SBV Integer -> SBV Integer), f2m @(SBV Integer -> SBV Integer), f3m @(SBV Integer -> SBV Integer), f4m @(SBV Integer -> SBV Integer)}: replaying 8 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () Int 2)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s6 () Int) ; tracks user variable "__internal_sbv_s6"+[GOOD] (declare-fun s8 () Int) ; tracks user variable "__internal_sbv_s8"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (<= s0 s1))+[GOOD] (define-fun s5 () Int (- s0 s2))+[GOOD] (define-fun s7 () Int (- s0 s3))+[GOOD] (define-fun s9 () Int (+ s6 s8))+[GOOD] (define-fun s10 () Int (+ s2 s9))+[GOOD] (define-fun s11 () Int (ite s4 s1 s10))+[GOOD] (define-fun s12 () Bool (<= s1 s0))+[GOOD] (define-fun s13 () Int (ite s12 s0 s1))+[GOOD] (define-fun s14 () Bool (>= s13 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s14))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {f1m @(SBV Integer -> SBV Integer), f2m @(SBV Integer -> SBV Integer), f3m @(SBV Integer -> SBV Integer), f4m @(SBV Integer -> SBV Integer)}: replaying 8 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () Int 2)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s6 () Int) ; tracks user variable "__internal_sbv_s6"+[GOOD] (declare-fun s8 () Int) ; tracks user variable "__internal_sbv_s8"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (<= s0 s1))+[GOOD] (define-fun s5 () Int (- s0 s2))+[GOOD] (define-fun s7 () Int (- s0 s3))+[GOOD] (define-fun s9 () Int (+ s6 s8))+[GOOD] (define-fun s10 () Int (+ s2 s9))+[GOOD] (define-fun s11 () Int (ite s4 s1 s10))+[GOOD] (define-fun s12 () Bool (<= s1 s0))+[GOOD] (define-fun s13 () Int (ite s12 s0 s1))+[GOOD] (define-fun s14 () Bool (<= s1 s5))+[GOOD] (define-fun s15 () Int (ite s14 s5 s1))+[GOOD] (define-fun s16 () Bool (<= s1 s7))+[GOOD] (define-fun s17 () Int (ite s16 s7 s1))+[GOOD] (define-fun s18 () Bool (not s4))+[GOOD] (define-fun s19 () Bool (> s13 s15))+[GOOD] (define-fun s20 () Bool (=> s18 s19))+[GOOD] (define-fun s21 () Bool (> s13 s17))+[GOOD] (define-fun s22 () Bool (=> s18 s21))+[GOOD] (define-fun s23 () Bool (and s20 s22))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s23))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Mutual group: decrease verified for f2m @(SBV Integer -> SBV Integer)+[MEASURE] replayDAG {f1m @(SBV Integer -> SBV Integer), f2m @(SBV Integer -> SBV Integer), f3m @(SBV Integer -> SBV Integer), f4m @(SBV Integer -> SBV Integer)}: replaying 8 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () Int 2)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s6 () Int) ; tracks user variable "__internal_sbv_s6"+[GOOD] (declare-fun s8 () Int) ; tracks user variable "__internal_sbv_s8"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (<= s0 s1))+[GOOD] (define-fun s5 () Int (- s0 s2))+[GOOD] (define-fun s7 () Int (- s0 s3))+[GOOD] (define-fun s9 () Int (+ s6 s8))+[GOOD] (define-fun s10 () Int (+ s2 s9))+[GOOD] (define-fun s11 () Int (ite s4 s1 s10))+[GOOD] (define-fun s12 () Bool (<= s1 s0))+[GOOD] (define-fun s13 () Int (ite s12 s0 s1))+[GOOD] (define-fun s14 () Bool (>= s13 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s14))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {f1m @(SBV Integer -> SBV Integer), f2m @(SBV Integer -> SBV Integer), f3m @(SBV Integer -> SBV Integer), f4m @(SBV Integer -> SBV Integer)}: replaying 8 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () Int 2)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s6 () Int) ; tracks user variable "__internal_sbv_s6"+[GOOD] (declare-fun s8 () Int) ; tracks user variable "__internal_sbv_s8"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (<= s0 s1))+[GOOD] (define-fun s5 () Int (- s0 s2))+[GOOD] (define-fun s7 () Int (- s0 s3))+[GOOD] (define-fun s9 () Int (+ s6 s8))+[GOOD] (define-fun s10 () Int (+ s2 s9))+[GOOD] (define-fun s11 () Int (ite s4 s1 s10))+[GOOD] (define-fun s12 () Bool (<= s1 s0))+[GOOD] (define-fun s13 () Int (ite s12 s0 s1))+[GOOD] (define-fun s14 () Bool (<= s1 s5))+[GOOD] (define-fun s15 () Int (ite s14 s5 s1))+[GOOD] (define-fun s16 () Bool (<= s1 s7))+[GOOD] (define-fun s17 () Int (ite s16 s7 s1))+[GOOD] (define-fun s18 () Bool (not s4))+[GOOD] (define-fun s19 () Bool (> s13 s15))+[GOOD] (define-fun s20 () Bool (=> s18 s19))+[GOOD] (define-fun s21 () Bool (> s13 s17))+[GOOD] (define-fun s22 () Bool (=> s18 s21))+[GOOD] (define-fun s23 () Bool (and s20 s22))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s23))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Mutual group: decrease verified for f3m @(SBV Integer -> SBV Integer)+[MEASURE] replayDAG {f1m @(SBV Integer -> SBV Integer), f2m @(SBV Integer -> SBV Integer), f3m @(SBV Integer -> SBV Integer), f4m @(SBV Integer -> SBV Integer)}: replaying 8 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () Int 2)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s6 () Int) ; tracks user variable "__internal_sbv_s6"+[GOOD] (declare-fun s8 () Int) ; tracks user variable "__internal_sbv_s8"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (<= s0 s1))+[GOOD] (define-fun s5 () Int (- s0 s2))+[GOOD] (define-fun s7 () Int (- s0 s3))+[GOOD] (define-fun s9 () Int (+ s6 s8))+[GOOD] (define-fun s10 () Int (+ s2 s9))+[GOOD] (define-fun s11 () Int (ite s4 s1 s10))+[GOOD] (define-fun s12 () Bool (<= s1 s0))+[GOOD] (define-fun s13 () Int (ite s12 s0 s1))+[GOOD] (define-fun s14 () Bool (>= s13 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s14))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {f1m @(SBV Integer -> SBV Integer), f2m @(SBV Integer -> SBV Integer), f3m @(SBV Integer -> SBV Integer), f4m @(SBV Integer -> SBV Integer)}: replaying 8 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () Int 2)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s6 () Int) ; tracks user variable "__internal_sbv_s6"+[GOOD] (declare-fun s8 () Int) ; tracks user variable "__internal_sbv_s8"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (<= s0 s1))+[GOOD] (define-fun s5 () Int (- s0 s2))+[GOOD] (define-fun s7 () Int (- s0 s3))+[GOOD] (define-fun s9 () Int (+ s6 s8))+[GOOD] (define-fun s10 () Int (+ s2 s9))+[GOOD] (define-fun s11 () Int (ite s4 s1 s10))+[GOOD] (define-fun s12 () Bool (<= s1 s0))+[GOOD] (define-fun s13 () Int (ite s12 s0 s1))+[GOOD] (define-fun s14 () Bool (<= s1 s5))+[GOOD] (define-fun s15 () Int (ite s14 s5 s1))+[GOOD] (define-fun s16 () Bool (<= s1 s7))+[GOOD] (define-fun s17 () Int (ite s16 s7 s1))+[GOOD] (define-fun s18 () Bool (not s4))+[GOOD] (define-fun s19 () Bool (> s13 s15))+[GOOD] (define-fun s20 () Bool (=> s18 s19))+[GOOD] (define-fun s21 () Bool (> s13 s17))+[GOOD] (define-fun s22 () Bool (=> s18 s21))+[GOOD] (define-fun s23 () Bool (and s20 s22))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s23))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Mutual group: decrease verified for f4m @(SBV Integer -> SBV Integer)+[MEASURE] Mutual group: user-provided measure works for all members+[MEASURE] Passed (terminating): f1m @(SBV Integer -> SBV Integer)+[MEASURE] Checking: f1m @(SBV Integer -> SBV Integer)+[MEASURE] f1m @(SBV Integer -> SBV Integer): verifying with 0 helper(s)+[MEASURE] f1m @(SBV Integer -> SBV Integer): 0 helper axiom(s) collected, checking measure+[MEASURE] replayDAG {f1m @(SBV Integer -> SBV Integer)}: replaying 8 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () Int 2)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s6 () Int) ; tracks user variable "__internal_sbv_s6"+[GOOD] (declare-fun s8 () Int) ; tracks user variable "__internal_sbv_s8"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (<= s0 s1))+[GOOD] (define-fun s5 () Int (- s0 s2))+[GOOD] (define-fun s7 () Int (- s0 s3))+[GOOD] (define-fun s9 () Int (+ s6 s8))+[GOOD] (define-fun s10 () Int (+ s2 s9))+[GOOD] (define-fun s11 () Int (ite s4 s1 s10))+[GOOD] (define-fun s12 () Bool (<= s1 s0))+[GOOD] (define-fun s13 () Int (ite s12 s0 s1))+[GOOD] (define-fun s14 () Bool (>= s13 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s14))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {f1m @(SBV Integer -> SBV Integer)}: replaying 8 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () Int 2)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s6 () Int) ; tracks user variable "__internal_sbv_s6"+[GOOD] (declare-fun s8 () Int) ; tracks user variable "__internal_sbv_s8"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (<= s0 s1))+[GOOD] (define-fun s5 () Int (- s0 s2))+[GOOD] (define-fun s7 () Int (- s0 s3))+[GOOD] (define-fun s9 () Int (+ s6 s8))+[GOOD] (define-fun s10 () Int (+ s2 s9))+[GOOD] (define-fun s11 () Int (ite s4 s1 s10))+[GOOD] (define-fun s12 () Bool (<= s1 s0))+[GOOD] (define-fun s13 () Int (ite s12 s0 s1))+[GOOD] (define-fun s14 () Bool (<= s1 s5))+[GOOD] (define-fun s15 () Int (ite s14 s5 s1))+[GOOD] (define-fun s16 () Bool (not s4))+[GOOD] (define-fun s17 () Bool (> s13 s15))+[GOOD] (define-fun s18 () Bool (=> s16 s17))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s18))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Passed (terminating): f1m @(SBV Integer -> SBV Integer)+[MEASURE] Checking: f2m @(SBV Integer -> SBV Integer)+[MEASURE] f2m @(SBV Integer -> SBV Integer): mutual group already verified, skipping+[MEASURE] Passed (terminating): f2m @(SBV Integer -> SBV Integer)+[MEASURE] Checking: f2m @(SBV Integer -> SBV Integer)+[MEASURE] f2m @(SBV Integer -> SBV Integer): verifying with 0 helper(s)+[MEASURE] f2m @(SBV Integer -> SBV Integer): 0 helper axiom(s) collected, checking measure+[MEASURE] replayDAG {f2m @(SBV Integer -> SBV Integer)}: replaying 8 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () Int 2)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s6 () Int) ; tracks user variable "__internal_sbv_s6"+[GOOD] (declare-fun s8 () Int) ; tracks user variable "__internal_sbv_s8"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (<= s0 s1))+[GOOD] (define-fun s5 () Int (- s0 s2))+[GOOD] (define-fun s7 () Int (- s0 s3))+[GOOD] (define-fun s9 () Int (+ s6 s8))+[GOOD] (define-fun s10 () Int (+ s2 s9))+[GOOD] (define-fun s11 () Int (ite s4 s1 s10))+[GOOD] (define-fun s12 () Bool (<= s1 s0))+[GOOD] (define-fun s13 () Int (ite s12 s0 s1))+[GOOD] (define-fun s14 () Bool (>= s13 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s14))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {f2m @(SBV Integer -> SBV Integer)}: replaying 8 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () Int 2)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s6 () Int) ; tracks user variable "__internal_sbv_s6"+[GOOD] (declare-fun s8 () Int) ; tracks user variable "__internal_sbv_s8"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (<= s0 s1))+[GOOD] (define-fun s5 () Int (- s0 s2))+[GOOD] (define-fun s7 () Int (- s0 s3))+[GOOD] (define-fun s9 () Int (+ s6 s8))+[GOOD] (define-fun s10 () Int (+ s2 s9))+[GOOD] (define-fun s11 () Int (ite s4 s1 s10))+[GOOD] (define-fun s12 () Bool (<= s1 s0))+[GOOD] (define-fun s13 () Int (ite s12 s0 s1))+[GOOD] (define-fun s14 () Bool (<= s1 s5))+[GOOD] (define-fun s15 () Int (ite s14 s5 s1))+[GOOD] (define-fun s16 () Bool (not s4))+[GOOD] (define-fun s17 () Bool (> s13 s15))+[GOOD] (define-fun s18 () Bool (=> s16 s17))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s18))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Passed (terminating): f2m @(SBV Integer -> SBV Integer)+[MEASURE] Checking: f3m @(SBV Integer -> SBV Integer)+[MEASURE] f3m @(SBV Integer -> SBV Integer): mutual group already verified, skipping+[MEASURE] Passed (terminating): f3m @(SBV Integer -> SBV Integer)+[MEASURE] Checking: f3m @(SBV Integer -> SBV Integer)+[MEASURE] f3m @(SBV Integer -> SBV Integer): verifying with 0 helper(s)+[MEASURE] f3m @(SBV Integer -> SBV Integer): 0 helper axiom(s) collected, checking measure+[MEASURE] replayDAG {f3m @(SBV Integer -> SBV Integer)}: replaying 8 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () Int 2)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s6 () Int) ; tracks user variable "__internal_sbv_s6"+[GOOD] (declare-fun s8 () Int) ; tracks user variable "__internal_sbv_s8"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (<= s0 s1))+[GOOD] (define-fun s5 () Int (- s0 s2))+[GOOD] (define-fun s7 () Int (- s0 s3))+[GOOD] (define-fun s9 () Int (+ s6 s8))+[GOOD] (define-fun s10 () Int (+ s2 s9))+[GOOD] (define-fun s11 () Int (ite s4 s1 s10))+[GOOD] (define-fun s12 () Bool (<= s1 s0))+[GOOD] (define-fun s13 () Int (ite s12 s0 s1))+[GOOD] (define-fun s14 () Bool (>= s13 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s14))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {f3m @(SBV Integer -> SBV Integer)}: replaying 8 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () Int 2)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s6 () Int) ; tracks user variable "__internal_sbv_s6"+[GOOD] (declare-fun s8 () Int) ; tracks user variable "__internal_sbv_s8"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (<= s0 s1))+[GOOD] (define-fun s5 () Int (- s0 s2))+[GOOD] (define-fun s7 () Int (- s0 s3))+[GOOD] (define-fun s9 () Int (+ s6 s8))+[GOOD] (define-fun s10 () Int (+ s2 s9))+[GOOD] (define-fun s11 () Int (ite s4 s1 s10))+[GOOD] (define-fun s12 () Bool (<= s1 s0))+[GOOD] (define-fun s13 () Int (ite s12 s0 s1))+[GOOD] (define-fun s14 () Bool (<= s1 s5))+[GOOD] (define-fun s15 () Int (ite s14 s5 s1))+[GOOD] (define-fun s16 () Bool (not s4))+[GOOD] (define-fun s17 () Bool (> s13 s15))+[GOOD] (define-fun s18 () Bool (=> s16 s17))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s18))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Passed (terminating): f3m @(SBV Integer -> SBV Integer)+[MEASURE] Checking: f4m @(SBV Integer -> SBV Integer)+[MEASURE] f4m @(SBV Integer -> SBV Integer): mutual group already verified, skipping+[MEASURE] Passed (terminating): f4m @(SBV Integer -> SBV Integer)+[MEASURE] Checking: f4m @(SBV Integer -> SBV Integer)+[MEASURE] f4m @(SBV Integer -> SBV Integer): verifying with 0 helper(s)+[MEASURE] f4m @(SBV Integer -> SBV Integer): 0 helper axiom(s) collected, checking measure+[MEASURE] replayDAG {f4m @(SBV Integer -> SBV Integer)}: replaying 8 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () Int 2)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s6 () Int) ; tracks user variable "__internal_sbv_s6"+[GOOD] (declare-fun s8 () Int) ; tracks user variable "__internal_sbv_s8"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (<= s0 s1))+[GOOD] (define-fun s5 () Int (- s0 s2))+[GOOD] (define-fun s7 () Int (- s0 s3))+[GOOD] (define-fun s9 () Int (+ s6 s8))+[GOOD] (define-fun s10 () Int (+ s2 s9))+[GOOD] (define-fun s11 () Int (ite s4 s1 s10))+[GOOD] (define-fun s12 () Bool (<= s1 s0))+[GOOD] (define-fun s13 () Int (ite s12 s0 s1))+[GOOD] (define-fun s14 () Bool (>= s13 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s14))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {f4m @(SBV Integer -> SBV Integer)}: replaying 8 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () Int 2)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s6 () Int) ; tracks user variable "__internal_sbv_s6"+[GOOD] (declare-fun s8 () Int) ; tracks user variable "__internal_sbv_s8"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (<= s0 s1))+[GOOD] (define-fun s5 () Int (- s0 s2))+[GOOD] (define-fun s7 () Int (- s0 s3))+[GOOD] (define-fun s9 () Int (+ s6 s8))+[GOOD] (define-fun s10 () Int (+ s2 s9))+[GOOD] (define-fun s11 () Int (ite s4 s1 s10))+[GOOD] (define-fun s12 () Bool (<= s1 s0))+[GOOD] (define-fun s13 () Int (ite s12 s0 s1))+[GOOD] (define-fun s14 () Bool (<= s1 s5))+[GOOD] (define-fun s15 () Int (ite s14 s5 s1))+[GOOD] (define-fun s16 () Bool (not s4))+[GOOD] (define-fun s17 () Bool (> s13 s15))+[GOOD] (define-fun s18 () Bool (=> s16 s17))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s18))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Passed (terminating): f4m @(SBV Integer -> SBV Integer)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; |f1m @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger, |f2m @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger, |f3m @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger, |f4m @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger+[GOOD] (define-funs-rec+         ((|f1m @(SBV Integer -> SBV Integer)| ((l1_s0 Int)) Int)+          (|f2m @(SBV Integer -> SBV Integer)| ((l2_s0 Int)) Int)+          (|f3m @(SBV Integer -> SBV Integer)| ((l3_s0 Int)) Int)+          (|f4m @(SBV Integer -> SBV Integer)| ((l4_s0 Int)) Int))+         (; Definition of: |f1m @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger. [Refers to: |f1m @(SBV Integer -> SBV Integer)|, |f2m @(SBV Integer -> SBV Integer)|]+                                  (let ((l1_s1 0))+                                  (let ((l1_s3 1))+                                  (let ((l1_s6 2))+                                  (let ((l1_s2 (<= l1_s0 l1_s1)))+                                  (let ((l1_s4 (- l1_s0 l1_s3)))+                                  (let ((l1_s5 (|f1m @(SBV Integer -> SBV Integer)| l1_s4)))+                                  (let ((l1_s7 (- l1_s0 l1_s6)))+                                  (let ((l1_s8 (|f2m @(SBV Integer -> SBV Integer)| l1_s7)))+                                  (let ((l1_s9 (+ l1_s5 l1_s8)))+                                  (let ((l1_s10 (+ l1_s3 l1_s9)))+                                  (let ((l1_s11 (ite l1_s2 l1_s1 l1_s10)))+                                  l1_s11)))))))))))+          ; Definition of: |f2m @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger. [Refers to: |f2m @(SBV Integer -> SBV Integer)|, |f3m @(SBV Integer -> SBV Integer)|]+                                                  (let ((l2_s1 0))+                                                  (let ((l2_s3 1))+                                                  (let ((l2_s6 2))+                                                  (let ((l2_s2 (<= l2_s0 l2_s1)))+                                                  (let ((l2_s4 (- l2_s0 l2_s3)))+                                                  (let ((l2_s5 (|f2m @(SBV Integer -> SBV Integer)| l2_s4)))+                                                  (let ((l2_s7 (- l2_s0 l2_s6)))+                                                  (let ((l2_s8 (|f3m @(SBV Integer -> SBV Integer)| l2_s7)))+                                                  (let ((l2_s9 (+ l2_s5 l2_s8)))+                                                  (let ((l2_s10 (+ l2_s3 l2_s9)))+                                                  (let ((l2_s11 (ite l2_s2 l2_s1 l2_s10)))+                                                  l2_s11)))))))))))+          ; Definition of: |f3m @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger. [Refers to: |f3m @(SBV Integer -> SBV Integer)|, |f4m @(SBV Integer -> SBV Integer)|]+                                                                  (let ((l3_s1 0))+                                                                  (let ((l3_s3 1))+                                                                  (let ((l3_s6 2))+                                                                  (let ((l3_s2 (<= l3_s0 l3_s1)))+                                                                  (let ((l3_s4 (- l3_s0 l3_s3)))+                                                                  (let ((l3_s5 (|f3m @(SBV Integer -> SBV Integer)| l3_s4)))+                                                                  (let ((l3_s7 (- l3_s0 l3_s6)))+                                                                  (let ((l3_s8 (|f4m @(SBV Integer -> SBV Integer)| l3_s7)))+                                                                  (let ((l3_s9 (+ l3_s5 l3_s8)))+                                                                  (let ((l3_s10 (+ l3_s3 l3_s9)))+                                                                  (let ((l3_s11 (ite l3_s2 l3_s1 l3_s10)))+                                                                  l3_s11)))))))))))+          ; Definition of: |f4m @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger. [Refers to: |f1m @(SBV Integer -> SBV Integer)|, |f4m @(SBV Integer -> SBV Integer)|]+                                                                                  (let ((l4_s1 0))+                                                                                  (let ((l4_s3 1))+                                                                                  (let ((l4_s6 2))+                                                                                  (let ((l4_s2 (<= l4_s0 l4_s1)))+                                                                                  (let ((l4_s4 (- l4_s0 l4_s3)))+                                                                                  (let ((l4_s5 (|f4m @(SBV Integer -> SBV Integer)| l4_s4)))+                                                                                  (let ((l4_s7 (- l4_s0 l4_s6)))+                                                                                  (let ((l4_s8 (|f1m @(SBV Integer -> SBV Integer)| l4_s7)))+                                                                                  (let ((l4_s9 (+ l4_s5 l4_s8)))+                                                                                  (let ((l4_s10 (+ l4_s3 l4_s9)))+                                                                                  (let ((l4_s11 (ite l4_s2 l4_s1 l4_s10)))+                                                                                  l4_s11)))))))))))))+[GOOD] ; --- assignments ---+[GOOD] (define-fun s1 () Int (|f1m @(SBV Integer -> SBV Integer)| s0))+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (declare-fun s3 () Int)+[GOOD] (define-fun s4 () Int (|f1m @(SBV Integer -> SBV Integer)| s3))+[GOOD] (define-fun s5 () Bool (= s3 s4))+[GOOD] (assert s5)+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 0))+[SEND] (get-value (s3))+[RECV] ((s3 0))+*** Solver   : Z3+*** Exit code: ExitSuccess++RESULT:+  s0 = 0 :: Integer+  s3 = 0 :: Integer
+ SBVTestSuite/GoldFiles/lambda57c.gold view
@@ -0,0 +1,225 @@+[MEASURE] Verifying termination measures for: f1w @(SBV Word8 -> SBV Word8), f1w @(SBV Word8 -> SBV Word8), f2w @(SBV Word8 -> SBV Word8), f2w @(SBV Word8 -> SBV Word8), f3w @(SBV Word8 -> SBV Word8), f3w @(SBV Word8 -> SBV Word8), f4w @(SBV Word8 -> SBV Word8), f4w @(SBV Word8 -> SBV Word8)+[MEASURE] Checking: f1w @(SBV Word8 -> SBV Word8)+[MEASURE] Checking mutual recursion group: {f1w :: SBV Word8 -> SBV Word8, f2w :: SBV Word8 -> SBV Word8, f3w :: SBV Word8 -> SBV Word8, f4w :: SBV Word8 -> SBV Word8}+[MEASURE] Mutual group: trying user-provided measure for all members+[MEASURE] replayDAG {f1w @(SBV Word8 -> SBV Word8), f2w @(SBV Word8 -> SBV Word8), f3w @(SBV Word8 -> SBV Word8), f4w @(SBV Word8 -> SBV Word8)}: replaying 8 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () (_ BitVec 8) #x00)+[GOOD] (define-fun s2 () (_ BitVec 8) #x01)+[GOOD] (define-fun s3 () (_ BitVec 8) #x02)+[GOOD] (define-fun s13 () Int 0)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (_ BitVec 8)) ; tracks user variable "arg"+[GOOD] (declare-fun s6 () (_ BitVec 8)) ; tracks user variable "__internal_sbv_s6"+[GOOD] (declare-fun s8 () (_ BitVec 8)) ; tracks user variable "__internal_sbv_s8"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (= s0 s1))+[GOOD] (define-fun s5 () (_ BitVec 8) (bvsub s0 s2))+[GOOD] (define-fun s7 () (_ BitVec 8) (bvsub s0 s3))+[GOOD] (define-fun s9 () (_ BitVec 8) (bvadd s6 s8))+[GOOD] (define-fun s10 () (_ BitVec 8) (bvadd s2 s9))+[GOOD] (define-fun s11 () (_ BitVec 8) (ite s4 s1 s10))+[GOOD] (define-fun s12 () Int (ubv_to_int s0))+[GOOD] (define-fun s14 () Bool (>= s12 s13))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s14))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {f1w @(SBV Word8 -> SBV Word8), f2w @(SBV Word8 -> SBV Word8), f3w @(SBV Word8 -> SBV Word8), f4w @(SBV Word8 -> SBV Word8)}: replaying 8 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () (_ BitVec 8) #x00)+[GOOD] (define-fun s2 () (_ BitVec 8) #x01)+[GOOD] (define-fun s3 () (_ BitVec 8) #x02)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (_ BitVec 8)) ; tracks user variable "arg"+[GOOD] (declare-fun s6 () (_ BitVec 8)) ; tracks user variable "__internal_sbv_s6"+[GOOD] (declare-fun s8 () (_ BitVec 8)) ; tracks user variable "__internal_sbv_s8"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (= s0 s1))+[GOOD] (define-fun s5 () (_ BitVec 8) (bvsub s0 s2))+[GOOD] (define-fun s7 () (_ BitVec 8) (bvsub s0 s3))+[GOOD] (define-fun s9 () (_ BitVec 8) (bvadd s6 s8))+[GOOD] (define-fun s10 () (_ BitVec 8) (bvadd s2 s9))+[GOOD] (define-fun s11 () (_ BitVec 8) (ite s4 s1 s10))+[GOOD] (define-fun s12 () Int (ubv_to_int s0))+[GOOD] (define-fun s13 () Int (ubv_to_int s5))+[GOOD] (define-fun s14 () Int (ubv_to_int s7))+[GOOD] (define-fun s15 () Bool (not s4))+[GOOD] (define-fun s16 () Bool (> s12 s13))+[GOOD] (define-fun s17 () Bool (=> s15 s16))+[GOOD] (define-fun s18 () Bool (> s12 s14))+[GOOD] (define-fun s19 () Bool (=> s15 s18))+[GOOD] (define-fun s20 () Bool (and s17 s19))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s20))+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s12))+[RECV] ((s12 1))+[SEND] (get-value (s13))+[RECV] ((s13 0))+[SEND] (get-value (s14))+[RECV] ((s14 255))+[SEND] (get-value (s0))+[RECV] ((s0 #x01))+[SEND] (get-value (s6))+[RECV] ((s6 #x00))+[SEND] (get-value (s8))+[RECV] ((s8 #x00))+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Mutual group: decrease failed for f1w @(SBV Word8 -> SBV Word8): Falsifiable. Counter-example:+  arg     =   1 :: Word8+  before  =   1 :: Integer+  then[1] =   0 :: Integer+  then[2] = 255 :: Integer+[MEASURE] Mutual group: user-provided measure failed, falling back to auto-guess+[MEASURE] Mutual group: trying measure arg1 for all members+[MEASURE] replayDAG {f1w @(SBV Word8 -> SBV Word8), f2w @(SBV Word8 -> SBV Word8), f3w @(SBV Word8 -> SBV Word8), f4w @(SBV Word8 -> SBV Word8)}: replaying 8 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () (_ BitVec 8) #x00)+[GOOD] (define-fun s2 () (_ BitVec 8) #x01)+[GOOD] (define-fun s3 () (_ BitVec 8) #x02)+[GOOD] (define-fun s13 () Int 0)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (_ BitVec 8)) ; tracks user variable "arg"+[GOOD] (declare-fun s6 () (_ BitVec 8)) ; tracks user variable "__internal_sbv_s6"+[GOOD] (declare-fun s8 () (_ BitVec 8)) ; tracks user variable "__internal_sbv_s8"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (= s0 s1))+[GOOD] (define-fun s5 () (_ BitVec 8) (bvsub s0 s2))+[GOOD] (define-fun s7 () (_ BitVec 8) (bvsub s0 s3))+[GOOD] (define-fun s9 () (_ BitVec 8) (bvadd s6 s8))+[GOOD] (define-fun s10 () (_ BitVec 8) (bvadd s2 s9))+[GOOD] (define-fun s11 () (_ BitVec 8) (ite s4 s1 s10))+[GOOD] (define-fun s12 () Int (ubv_to_int s0))+[GOOD] (define-fun s14 () Bool (>= s12 s13))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s14))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {f1w @(SBV Word8 -> SBV Word8), f2w @(SBV Word8 -> SBV Word8), f3w @(SBV Word8 -> SBV Word8), f4w @(SBV Word8 -> SBV Word8)}: replaying 8 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () (_ BitVec 8) #x00)+[GOOD] (define-fun s2 () (_ BitVec 8) #x01)+[GOOD] (define-fun s3 () (_ BitVec 8) #x02)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (_ BitVec 8)) ; tracks user variable "arg"+[GOOD] (declare-fun s6 () (_ BitVec 8)) ; tracks user variable "__internal_sbv_s6"+[GOOD] (declare-fun s8 () (_ BitVec 8)) ; tracks user variable "__internal_sbv_s8"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (= s0 s1))+[GOOD] (define-fun s5 () (_ BitVec 8) (bvsub s0 s2))+[GOOD] (define-fun s7 () (_ BitVec 8) (bvsub s0 s3))+[GOOD] (define-fun s9 () (_ BitVec 8) (bvadd s6 s8))+[GOOD] (define-fun s10 () (_ BitVec 8) (bvadd s2 s9))+[GOOD] (define-fun s11 () (_ BitVec 8) (ite s4 s1 s10))+[GOOD] (define-fun s12 () Int (ubv_to_int s0))+[GOOD] (define-fun s13 () Int (ubv_to_int s5))+[GOOD] (define-fun s14 () Int (ubv_to_int s7))+[GOOD] (define-fun s15 () Bool (not s4))+[GOOD] (define-fun s16 () Bool (> s12 s13))+[GOOD] (define-fun s17 () Bool (=> s15 s16))+[GOOD] (define-fun s18 () Bool (> s12 s14))+[GOOD] (define-fun s19 () Bool (=> s15 s18))+[GOOD] (define-fun s20 () Bool (and s17 s19))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s20))+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s12))+[RECV] ((s12 1))+[SEND] (get-value (s13))+[RECV] ((s13 0))+[SEND] (get-value (s14))+[RECV] ((s14 255))+[SEND] (get-value (s0))+[RECV] ((s0 #x01))+[SEND] (get-value (s6))+[RECV] ((s6 #x00))+[SEND] (get-value (s8))+[RECV] ((s8 #x00))+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Mutual group: decrease failed for f1w @(SBV Word8 -> SBV Word8): Falsifiable. Counter-example:+  arg     =   1 :: Word8+  before  =   1 :: Integer+  then[1] =   0 :: Integer+  then[2] = 255 :: Integer+[MEASURE] Mutual group: measure arg1 failed, trying next++EXCEPTION CAUGHT:++*** Data.SBV: Cannot determine a termination measure for mutual recursion group.+***+***     f1w  :: SBV Word8 -> SBV Word8+***     f2w  :: SBV Word8 -> SBV Word8+***     f3w  :: SBV Word8 -> SBV Word8+***     f4w  :: SBV Word8 -> SBV Word8+***+*** The user-provided measure did not work, and auto-guessing also failed.+
SBVTestSuite/GoldFiles/lambda60.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/lambda61.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has quantified booleans, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/lambda62.gold view
@@ -5,12 +5,11 @@ [GOOD] (set-option :smtlib2_compliant true) [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true)-[GOOD] (set-logic ALL) ; has user-defined sorts, using catch-all.-[GOOD] ; --- uninterpreted sorts ----[GOOD] (declare-sort P 0)  ; N.B. Uninterpreted sort.-[GOOD] (declare-fun P_witness () P)+[GOOD] (set-logic ALL) ; has user-defined data-types, using catch-all. [GOOD] ; --- tuples --- [GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] (declare-sort P 0) ; N.B. Uninterpreted sort. [GOOD] ; --- literal constants --- [GOOD] ; --- top level inputs --- [GOOD] ; --- constant tables ---
SBVTestSuite/GoldFiles/lambda63.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/lambda64.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] ; has special relations, no logic set.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/lambda65.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] ; has special relations, no logic set.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/lambda66.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] ; has special relations, no logic set.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/lambda67.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] ; has special relations, no logic set.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/lambda68.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/lambda69.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/lambda70.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---@@ -47,16 +46,18 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [SEND] (get-value (x_eu1))-[RECV] ((x_eu1 ((as const (Array Int Int)) 0)))+[RECV] ((x_eu1 (store ((as const (Array Int Int)) 1) 1 0))) [SEND] (get-value (x_eu2))-[RECV] ((x_eu2 ((as const (Array Int Int)) 1)))+[RECV] ((x_eu2 (store ((as const (Array Int Int)) 0) 1 1))) *** Solver   : Z3 *** Exit code: ExitSuccess  RESULT: Satisfiable. Model:   x_eu1 :: Integer -> Integer-  x_eu1 _ = 0+  x_eu1 1 = 0+  x_eu1 _ = 1    x_eu2 :: Integer -> Integer-  x_eu2 _ = 1+  x_eu2 1 = 1+  x_eu2 _ = 0
SBVTestSuite/GoldFiles/lambda81.gold view
@@ -1,3 +1,10 @@+[MEASURE] Verifying termination measures for: sbv.filter @(SBV Integer -> SBV Bool)_f7406d70a9 @(SBV [Integer] -> SBV [Integer]), sbv.filter @(SBV Integer -> SBV Bool)_2611d6a22d @(SBV [Integer] -> SBV [Integer])+[MEASURE] Checking: sbv.filter @(SBV Integer -> SBV Bool)_f7406d70a9 @(SBV [Integer] -> SBV [Integer])+[MEASURE] sbv.filter @(SBV Integer -> SBV Bool)_f7406d70a9 @(SBV [Integer] -> SBV [Integer]): barified = "|sbv.filter @(SBV Integer -> SBV Bool)_f7406d70a9 @(SBV [Integer] -> SBV [Integer])|"+[MEASURE] sbv.filter @(SBV Integer -> SBV Bool)_f7406d70a9 @(SBV [Integer] -> SBV [Integer]): Uninterpreted ops in DAG: [("|sbv.filter @(SBV Integer -> SBV Bool)_f7406d70a9 @(SBV [Integer] -> SBV [Integer])|",1)]+[MEASURE] sbv.filter @(SBV Integer -> SBV Bool)_f7406d70a9 @(SBV [Integer] -> SBV [Integer]): recursive calls found = 1+[MEASURE] sbv.filter @(SBV Integer -> SBV Bool)_f7406d70a9 @(SBV [Integer] -> SBV [Integer]): trying length arg1+[MEASURE] replayDAG {sbv.filter @(SBV Integer -> SBV Bool)_f7406d70a9 @(SBV [Integer] -> SBV [Integer])}: replaying 11 node(s) ** Calling: z3 -nw -in -smt2 [GOOD] ; Automatically generated by SBV. Do not edit. [GOOD] (set-option :print-success true)@@ -9,7 +16,206 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts ---+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () Int 4)+[GOOD] (define-fun s4 () (Seq Int) (as seq.empty (Seq Int)))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq Int)) ; tracks user variable "arg"+[GOOD] (declare-fun s12 () (Seq Int)) ; tracks user variable "__internal_sbv_s12"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s5 () Int (seq.len s0))+[GOOD] (define-fun s6 () Bool (= s1 s5))+[GOOD] (define-fun s7 () Int (seq.nth s0 s1))+[GOOD] (define-fun s8 () Bool (> s7 s3))+[GOOD] (define-fun s9 () (Seq Int) (seq.unit s7))+[GOOD] (define-fun s10 () Int (- s5 s2))+[GOOD] (define-fun s11 () (Seq Int) (seq.extract s0 s2 s10))+[GOOD] (define-fun s13 () (Seq Int) (seq.++ s9 s12))+[GOOD] (define-fun s14 () (Seq Int) (ite s8 s13 s12))+[GOOD] (define-fun s15 () (Seq Int) (ite s6 s4 s14))+[GOOD] (define-fun s16 () Bool (>= s5 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s16))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {sbv.filter @(SBV Integer -> SBV Bool)_f7406d70a9 @(SBV [Integer] -> SBV [Integer])}: replaying 11 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () Int 4)+[GOOD] (define-fun s4 () (Seq Int) (as seq.empty (Seq Int)))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq Int)) ; tracks user variable "arg"+[GOOD] (declare-fun s12 () (Seq Int)) ; tracks user variable "__internal_sbv_s12"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s5 () Int (seq.len s0))+[GOOD] (define-fun s6 () Bool (= s1 s5))+[GOOD] (define-fun s7 () Int (seq.nth s0 s1))+[GOOD] (define-fun s8 () Bool (> s7 s3))+[GOOD] (define-fun s9 () (Seq Int) (seq.unit s7))+[GOOD] (define-fun s10 () Int (- s5 s2))+[GOOD] (define-fun s11 () (Seq Int) (seq.extract s0 s2 s10))+[GOOD] (define-fun s13 () (Seq Int) (seq.++ s9 s12))+[GOOD] (define-fun s14 () (Seq Int) (ite s8 s13 s12))+[GOOD] (define-fun s15 () (Seq Int) (ite s6 s4 s14))+[GOOD] (define-fun s16 () Int (seq.len s11))+[GOOD] (define-fun s17 () Bool (not s8))+[GOOD] (define-fun s18 () Bool (not s6))+[GOOD] (define-fun s19 () Bool (and s17 s18))+[GOOD] (define-fun s20 () Bool (> s5 s16))+[GOOD] (define-fun s21 () Bool (=> s19 s20))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s21))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] sbv.filter @(SBV Integer -> SBV Bool)_f7406d70a9 @(SBV [Integer] -> SBV [Integer]): length arg1 -> OK+[MEASURE] Passed (terminating): sbv.filter @(SBV Integer -> SBV Bool)_f7406d70a9 @(SBV [Integer] -> SBV [Integer])+[MEASURE] Checking: sbv.filter @(SBV Integer -> SBV Bool)_2611d6a22d @(SBV [Integer] -> SBV [Integer])+[MEASURE] sbv.filter @(SBV Integer -> SBV Bool)_2611d6a22d @(SBV [Integer] -> SBV [Integer]): barified = "|sbv.filter @(SBV Integer -> SBV Bool)_2611d6a22d @(SBV [Integer] -> SBV [Integer])|"+[MEASURE] sbv.filter @(SBV Integer -> SBV Bool)_2611d6a22d @(SBV [Integer] -> SBV [Integer]): Uninterpreted ops in DAG: [("|sbv.filter @(SBV Integer -> SBV Bool)_2611d6a22d @(SBV [Integer] -> SBV [Integer])|",1)]+[MEASURE] sbv.filter @(SBV Integer -> SBV Bool)_2611d6a22d @(SBV [Integer] -> SBV [Integer]): recursive calls found = 1+[MEASURE] sbv.filter @(SBV Integer -> SBV Bool)_2611d6a22d @(SBV [Integer] -> SBV [Integer]): trying length arg1+[MEASURE] replayDAG {sbv.filter @(SBV Integer -> SBV Bool)_2611d6a22d @(SBV [Integer] -> SBV [Integer])}: replaying 12 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () (Seq Int) (as seq.empty (Seq Int)))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq Int)) ; tracks user variable "arg"+[GOOD] (declare-fun s7 () (Seq Int)) ; tracks user variable "__internal_sbv_s7"+[GOOD] (declare-fun s13 () (Seq Int)) ; tracks user variable "__internal_sbv_s13"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Int (seq.len s0))+[GOOD] (define-fun s5 () Bool (= s1 s4))+[GOOD] (define-fun s6 () Int (seq.nth s0 s1))+[GOOD] (define-fun s8 () Int (seq.nth s7 s1))+[GOOD] (define-fun s9 () Bool (> s6 s8))+[GOOD] (define-fun s10 () (Seq Int) (seq.unit s6))+[GOOD] (define-fun s11 () Int (- s4 s2))+[GOOD] (define-fun s12 () (Seq Int) (seq.extract s0 s2 s11))+[GOOD] (define-fun s14 () (Seq Int) (seq.++ s10 s13))+[GOOD] (define-fun s15 () (Seq Int) (ite s9 s14 s13))+[GOOD] (define-fun s16 () (Seq Int) (ite s5 s3 s15))+[GOOD] (define-fun s17 () Bool (>= s4 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s17))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {sbv.filter @(SBV Integer -> SBV Bool)_2611d6a22d @(SBV [Integer] -> SBV [Integer])}: replaying 12 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () (Seq Int) (as seq.empty (Seq Int)))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq Int)) ; tracks user variable "arg"+[GOOD] (declare-fun s7 () (Seq Int)) ; tracks user variable "__internal_sbv_s7"+[GOOD] (declare-fun s13 () (Seq Int)) ; tracks user variable "__internal_sbv_s13"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Int (seq.len s0))+[GOOD] (define-fun s5 () Bool (= s1 s4))+[GOOD] (define-fun s6 () Int (seq.nth s0 s1))+[GOOD] (define-fun s8 () Int (seq.nth s7 s1))+[GOOD] (define-fun s9 () Bool (> s6 s8))+[GOOD] (define-fun s10 () (Seq Int) (seq.unit s6))+[GOOD] (define-fun s11 () Int (- s4 s2))+[GOOD] (define-fun s12 () (Seq Int) (seq.extract s0 s2 s11))+[GOOD] (define-fun s14 () (Seq Int) (seq.++ s10 s13))+[GOOD] (define-fun s15 () (Seq Int) (ite s9 s14 s13))+[GOOD] (define-fun s16 () (Seq Int) (ite s5 s3 s15))+[GOOD] (define-fun s17 () Int (seq.len s12))+[GOOD] (define-fun s18 () Bool (not s9))+[GOOD] (define-fun s19 () Bool (not s5))+[GOOD] (define-fun s20 () Bool (and s18 s19))+[GOOD] (define-fun s21 () Bool (> s4 s17))+[GOOD] (define-fun s22 () Bool (=> s20 s21))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s22))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] sbv.filter @(SBV Integer -> SBV Bool)_2611d6a22d @(SBV [Integer] -> SBV [Integer]): length arg1 -> OK+[MEASURE] Passed (terminating): sbv.filter @(SBV Integer -> SBV Bool)_2611d6a22d @(SBV [Integer] -> SBV [Integer])+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all. [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/lambda82.gold view
@@ -1,3 +1,10 @@+[MEASURE] Verifying termination measures for: sbv.map @(SBV Integer -> SBV [Integer])_136c80b6a3 @(SBV [Integer] -> SBV [[Integer]])+[MEASURE] Checking: sbv.map @(SBV Integer -> SBV [Integer])_136c80b6a3 @(SBV [Integer] -> SBV [[Integer]])+[MEASURE] sbv.map @(SBV Integer -> SBV [Integer])_136c80b6a3 @(SBV [Integer] -> SBV [[Integer]]): barified = "|sbv.map @(SBV Integer -> SBV [Integer])_136c80b6a3 @(SBV [Integer] -> SBV [[Integer]])|"+[MEASURE] sbv.map @(SBV Integer -> SBV [Integer])_136c80b6a3 @(SBV [Integer] -> SBV [[Integer]]): Uninterpreted ops in DAG: [("|sbv.map @(SBV Integer -> SBV [Integer])_136c80b6a3 @(SBV [Integer] -> SBV [[Integer]])|",1)]+[MEASURE] sbv.map @(SBV Integer -> SBV [Integer])_136c80b6a3 @(SBV [Integer] -> SBV [[Integer]]): recursive calls found = 1+[MEASURE] sbv.map @(SBV Integer -> SBV [Integer])_136c80b6a3 @(SBV [Integer] -> SBV [[Integer]]): trying length arg1+[MEASURE] replayDAG {sbv.map @(SBV Integer -> SBV [Integer])_136c80b6a3 @(SBV [Integer] -> SBV [[Integer]])}: replaying 18 node(s) ** Calling: z3 -nw -in -smt2 [GOOD] ; Automatically generated by SBV. Do not edit. [GOOD] (set-option :print-success true)@@ -9,7 +16,120 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts ---+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () Int 4)+[GOOD] (define-fun s4 () Int 5)+[GOOD] (define-fun s5 () Int 6)+[GOOD] (define-fun s6 () (Seq Int) (as seq.empty (Seq Int)))+[GOOD] (define-fun s7 () (Seq (Seq Int)) (as seq.empty (Seq (Seq Int))))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq Int)) ; tracks user variable "arg"+[GOOD] (declare-fun s23 () (Seq (Seq Int))) ; tracks user variable "__internal_sbv_s23"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s8 () Int (seq.len s0))+[GOOD] (define-fun s9 () Bool (= s1 s8))+[GOOD] (define-fun s10 () Int (seq.nth s0 s1))+[GOOD] (define-fun s11 () Int (+ s3 s10))+[GOOD] (define-fun s12 () (Seq Int) (seq.unit s11))+[GOOD] (define-fun s13 () Int (+ s4 s10))+[GOOD] (define-fun s14 () (Seq Int) (seq.unit s13))+[GOOD] (define-fun s15 () Int (+ s5 s10))+[GOOD] (define-fun s16 () (Seq Int) (seq.unit s15))+[GOOD] (define-fun s17 () (Seq Int) (seq.++ s16 s6))+[GOOD] (define-fun s18 () (Seq Int) (seq.++ s14 s17))+[GOOD] (define-fun s19 () (Seq Int) (seq.++ s12 s18))+[GOOD] (define-fun s20 () (Seq (Seq Int)) (seq.unit s19))+[GOOD] (define-fun s21 () Int (- s8 s2))+[GOOD] (define-fun s22 () (Seq Int) (seq.extract s0 s2 s21))+[GOOD] (define-fun s24 () (Seq (Seq Int)) (seq.++ s20 s23))+[GOOD] (define-fun s25 () (Seq (Seq Int)) (ite s9 s7 s24))+[GOOD] (define-fun s26 () Bool (>= s8 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s26))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {sbv.map @(SBV Integer -> SBV [Integer])_136c80b6a3 @(SBV [Integer] -> SBV [[Integer]])}: replaying 18 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () Int 4)+[GOOD] (define-fun s4 () Int 5)+[GOOD] (define-fun s5 () Int 6)+[GOOD] (define-fun s6 () (Seq Int) (as seq.empty (Seq Int)))+[GOOD] (define-fun s7 () (Seq (Seq Int)) (as seq.empty (Seq (Seq Int))))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq Int)) ; tracks user variable "arg"+[GOOD] (declare-fun s23 () (Seq (Seq Int))) ; tracks user variable "__internal_sbv_s23"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s8 () Int (seq.len s0))+[GOOD] (define-fun s9 () Bool (= s1 s8))+[GOOD] (define-fun s10 () Int (seq.nth s0 s1))+[GOOD] (define-fun s11 () Int (+ s3 s10))+[GOOD] (define-fun s12 () (Seq Int) (seq.unit s11))+[GOOD] (define-fun s13 () Int (+ s4 s10))+[GOOD] (define-fun s14 () (Seq Int) (seq.unit s13))+[GOOD] (define-fun s15 () Int (+ s5 s10))+[GOOD] (define-fun s16 () (Seq Int) (seq.unit s15))+[GOOD] (define-fun s17 () (Seq Int) (seq.++ s16 s6))+[GOOD] (define-fun s18 () (Seq Int) (seq.++ s14 s17))+[GOOD] (define-fun s19 () (Seq Int) (seq.++ s12 s18))+[GOOD] (define-fun s20 () (Seq (Seq Int)) (seq.unit s19))+[GOOD] (define-fun s21 () Int (- s8 s2))+[GOOD] (define-fun s22 () (Seq Int) (seq.extract s0 s2 s21))+[GOOD] (define-fun s24 () (Seq (Seq Int)) (seq.++ s20 s23))+[GOOD] (define-fun s25 () (Seq (Seq Int)) (ite s9 s7 s24))+[GOOD] (define-fun s26 () Int (seq.len s22))+[GOOD] (define-fun s27 () Bool (not s9))+[GOOD] (define-fun s28 () Bool (> s8 s26))+[GOOD] (define-fun s29 () Bool (=> s27 s28))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s29))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] sbv.map @(SBV Integer -> SBV [Integer])_136c80b6a3 @(SBV [Integer] -> SBV [[Integer]]): length arg1 -> OK+[MEASURE] Passed (terminating): sbv.map @(SBV Integer -> SBV [Integer])_136c80b6a3 @(SBV [Integer] -> SBV [[Integer]])+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all. [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/lambda85.gold view
@@ -1,3 +1,10 @@+[MEASURE] Verifying termination measures for: sbv.partition @(SBV Integer -> SBV Bool)_72b7bf5d4c @(SBV [Integer] -> SBV ([Integer],[Integer]))+[MEASURE] Checking: sbv.partition @(SBV Integer -> SBV Bool)_72b7bf5d4c @(SBV [Integer] -> SBV ([Integer],[Integer]))+[MEASURE] sbv.partition @(SBV Integer -> SBV Bool)_72b7bf5d4c @(SBV [Integer] -> SBV ([Integer],[Integer])): barified = "|sbv.partition @(SBV Integer -> SBV Bool)_72b7bf5d4c @(SBV [Integer] -> SBV ([Integer],[Integer]))|"+[MEASURE] sbv.partition @(SBV Integer -> SBV Bool)_72b7bf5d4c @(SBV [Integer] -> SBV ([Integer],[Integer])): Uninterpreted ops in DAG: [("|sbv.partition @(SBV Integer -> SBV Bool)_72b7bf5d4c @(SBV [Integer] -> SBV ([Integer],[Integer]))|",1)]+[MEASURE] sbv.partition @(SBV Integer -> SBV Bool)_72b7bf5d4c @(SBV [Integer] -> SBV ([Integer],[Integer])): recursive calls found = 1+[MEASURE] sbv.partition @(SBV Integer -> SBV Bool)_72b7bf5d4c @(SBV [Integer] -> SBV ([Integer],[Integer])): trying length arg1+[MEASURE] replayDAG {sbv.partition @(SBV Integer -> SBV Bool)_72b7bf5d4c @(SBV [Integer] -> SBV ([Integer],[Integer]))}: replaying 17 node(s) ** Calling: z3 -nw -in -smt2 [GOOD] ; Automatically generated by SBV. Do not edit. [GOOD] (set-option :print-success true)@@ -9,7 +16,120 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts ---+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () Int 2)+[GOOD] (define-fun s4 () (SBVTuple2 (Seq Int) (Seq Int)) (mkSBVTuple2 (as seq.empty (Seq Int)) (as seq.empty (Seq Int))))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq Int)) ; tracks user variable "arg"+[GOOD] (declare-fun s13 () (SBVTuple2 (Seq Int) (Seq Int))) ; tracks user variable "__internal_sbv_s13"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s5 () Int (seq.len s0))+[GOOD] (define-fun s6 () Bool (= s1 s5))+[GOOD] (define-fun s7 () Int (seq.nth s0 s1))+[GOOD] (define-fun s8 () Int (mod s7 s3))+[GOOD] (define-fun s9 () Bool (= s1 s8))+[GOOD] (define-fun s10 () (Seq Int) (seq.unit s7))+[GOOD] (define-fun s11 () Int (- s5 s2))+[GOOD] (define-fun s12 () (Seq Int) (seq.extract s0 s2 s11))+[GOOD] (define-fun s14 () (Seq Int) (proj_1_SBVTuple2 s13))+[GOOD] (define-fun s15 () (Seq Int) (seq.++ s10 s14))+[GOOD] (define-fun s16 () (Seq Int) (proj_2_SBVTuple2 s13))+[GOOD] (define-fun s17 () (SBVTuple2 (Seq Int) (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 (Seq Int) (Seq Int))) s15 s16))+[GOOD] (define-fun s18 () (Seq Int) (seq.++ s10 s16))+[GOOD] (define-fun s19 () (SBVTuple2 (Seq Int) (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 (Seq Int) (Seq Int))) s14 s18))+[GOOD] (define-fun s20 () (SBVTuple2 (Seq Int) (Seq Int)) (ite s9 s17 s19))+[GOOD] (define-fun s21 () (SBVTuple2 (Seq Int) (Seq Int)) (ite s6 s4 s20))+[GOOD] (define-fun s22 () Bool (>= s5 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s22))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {sbv.partition @(SBV Integer -> SBV Bool)_72b7bf5d4c @(SBV [Integer] -> SBV ([Integer],[Integer]))}: replaying 17 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () Int 2)+[GOOD] (define-fun s4 () (SBVTuple2 (Seq Int) (Seq Int)) (mkSBVTuple2 (as seq.empty (Seq Int)) (as seq.empty (Seq Int))))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq Int)) ; tracks user variable "arg"+[GOOD] (declare-fun s13 () (SBVTuple2 (Seq Int) (Seq Int))) ; tracks user variable "__internal_sbv_s13"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s5 () Int (seq.len s0))+[GOOD] (define-fun s6 () Bool (= s1 s5))+[GOOD] (define-fun s7 () Int (seq.nth s0 s1))+[GOOD] (define-fun s8 () Int (mod s7 s3))+[GOOD] (define-fun s9 () Bool (= s1 s8))+[GOOD] (define-fun s10 () (Seq Int) (seq.unit s7))+[GOOD] (define-fun s11 () Int (- s5 s2))+[GOOD] (define-fun s12 () (Seq Int) (seq.extract s0 s2 s11))+[GOOD] (define-fun s14 () (Seq Int) (proj_1_SBVTuple2 s13))+[GOOD] (define-fun s15 () (Seq Int) (seq.++ s10 s14))+[GOOD] (define-fun s16 () (Seq Int) (proj_2_SBVTuple2 s13))+[GOOD] (define-fun s17 () (SBVTuple2 (Seq Int) (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 (Seq Int) (Seq Int))) s15 s16))+[GOOD] (define-fun s18 () (Seq Int) (seq.++ s10 s16))+[GOOD] (define-fun s19 () (SBVTuple2 (Seq Int) (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 (Seq Int) (Seq Int))) s14 s18))+[GOOD] (define-fun s20 () (SBVTuple2 (Seq Int) (Seq Int)) (ite s9 s17 s19))+[GOOD] (define-fun s21 () (SBVTuple2 (Seq Int) (Seq Int)) (ite s6 s4 s20))+[GOOD] (define-fun s22 () Int (seq.len s12))+[GOOD] (define-fun s23 () Bool (not s9))+[GOOD] (define-fun s24 () Bool (not s6))+[GOOD] (define-fun s25 () Bool (and s23 s24))+[GOOD] (define-fun s26 () Bool (> s5 s22))+[GOOD] (define-fun s27 () Bool (=> s25 s26))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s27))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] sbv.partition @(SBV Integer -> SBV Bool)_72b7bf5d4c @(SBV [Integer] -> SBV ([Integer],[Integer])): length arg1 -> OK+[MEASURE] Passed (terminating): sbv.partition @(SBV Integer -> SBV Bool)_72b7bf5d4c @(SBV [Integer] -> SBV ([Integer],[Integer]))+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all. [GOOD] ; --- tuples --- [GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)                                            ((mkSBVTuple2 (proj_1_SBVTuple2 T1)
SBVTestSuite/GoldFiles/lambda86.gold view
@@ -1,3 +1,10 @@+[MEASURE] Verifying termination measures for: sbv.partition @(SBV Integer -> SBV Bool)_cb04f986c4 @(SBV [Integer] -> SBV ([Integer],[Integer]))+[MEASURE] Checking: sbv.partition @(SBV Integer -> SBV Bool)_cb04f986c4 @(SBV [Integer] -> SBV ([Integer],[Integer]))+[MEASURE] sbv.partition @(SBV Integer -> SBV Bool)_cb04f986c4 @(SBV [Integer] -> SBV ([Integer],[Integer])): barified = "|sbv.partition @(SBV Integer -> SBV Bool)_cb04f986c4 @(SBV [Integer] -> SBV ([Integer],[Integer]))|"+[MEASURE] sbv.partition @(SBV Integer -> SBV Bool)_cb04f986c4 @(SBV [Integer] -> SBV ([Integer],[Integer])): Uninterpreted ops in DAG: [("|sbv.partition @(SBV Integer -> SBV Bool)_cb04f986c4 @(SBV [Integer] -> SBV ([Integer],[Integer]))|",1)]+[MEASURE] sbv.partition @(SBV Integer -> SBV Bool)_cb04f986c4 @(SBV [Integer] -> SBV ([Integer],[Integer])): recursive calls found = 1+[MEASURE] sbv.partition @(SBV Integer -> SBV Bool)_cb04f986c4 @(SBV [Integer] -> SBV ([Integer],[Integer])): trying length arg1+[MEASURE] replayDAG {sbv.partition @(SBV Integer -> SBV Bool)_cb04f986c4 @(SBV [Integer] -> SBV ([Integer],[Integer]))}: replaying 17 node(s) ** Calling: z3 -nw -in -smt2 [GOOD] ; Automatically generated by SBV. Do not edit. [GOOD] (set-option :print-success true)@@ -9,7 +16,120 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts ---+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () Int 2)+[GOOD] (define-fun s4 () (SBVTuple2 (Seq Int) (Seq Int)) (mkSBVTuple2 (as seq.empty (Seq Int)) (as seq.empty (Seq Int))))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq Int)) ; tracks user variable "arg"+[GOOD] (declare-fun s13 () (SBVTuple2 (Seq Int) (Seq Int))) ; tracks user variable "__internal_sbv_s13"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s5 () Int (seq.len s0))+[GOOD] (define-fun s6 () Bool (= s1 s5))+[GOOD] (define-fun s7 () Int (seq.nth s0 s1))+[GOOD] (define-fun s8 () Int (mod s7 s3))+[GOOD] (define-fun s9 () Bool (distinct s1 s8))+[GOOD] (define-fun s10 () (Seq Int) (seq.unit s7))+[GOOD] (define-fun s11 () Int (- s5 s2))+[GOOD] (define-fun s12 () (Seq Int) (seq.extract s0 s2 s11))+[GOOD] (define-fun s14 () (Seq Int) (proj_1_SBVTuple2 s13))+[GOOD] (define-fun s15 () (Seq Int) (seq.++ s10 s14))+[GOOD] (define-fun s16 () (Seq Int) (proj_2_SBVTuple2 s13))+[GOOD] (define-fun s17 () (SBVTuple2 (Seq Int) (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 (Seq Int) (Seq Int))) s15 s16))+[GOOD] (define-fun s18 () (Seq Int) (seq.++ s10 s16))+[GOOD] (define-fun s19 () (SBVTuple2 (Seq Int) (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 (Seq Int) (Seq Int))) s14 s18))+[GOOD] (define-fun s20 () (SBVTuple2 (Seq Int) (Seq Int)) (ite s9 s17 s19))+[GOOD] (define-fun s21 () (SBVTuple2 (Seq Int) (Seq Int)) (ite s6 s4 s20))+[GOOD] (define-fun s22 () Bool (>= s5 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s22))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {sbv.partition @(SBV Integer -> SBV Bool)_cb04f986c4 @(SBV [Integer] -> SBV ([Integer],[Integer]))}: replaying 17 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () Int 2)+[GOOD] (define-fun s4 () (SBVTuple2 (Seq Int) (Seq Int)) (mkSBVTuple2 (as seq.empty (Seq Int)) (as seq.empty (Seq Int))))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq Int)) ; tracks user variable "arg"+[GOOD] (declare-fun s13 () (SBVTuple2 (Seq Int) (Seq Int))) ; tracks user variable "__internal_sbv_s13"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s5 () Int (seq.len s0))+[GOOD] (define-fun s6 () Bool (= s1 s5))+[GOOD] (define-fun s7 () Int (seq.nth s0 s1))+[GOOD] (define-fun s8 () Int (mod s7 s3))+[GOOD] (define-fun s9 () Bool (distinct s1 s8))+[GOOD] (define-fun s10 () (Seq Int) (seq.unit s7))+[GOOD] (define-fun s11 () Int (- s5 s2))+[GOOD] (define-fun s12 () (Seq Int) (seq.extract s0 s2 s11))+[GOOD] (define-fun s14 () (Seq Int) (proj_1_SBVTuple2 s13))+[GOOD] (define-fun s15 () (Seq Int) (seq.++ s10 s14))+[GOOD] (define-fun s16 () (Seq Int) (proj_2_SBVTuple2 s13))+[GOOD] (define-fun s17 () (SBVTuple2 (Seq Int) (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 (Seq Int) (Seq Int))) s15 s16))+[GOOD] (define-fun s18 () (Seq Int) (seq.++ s10 s16))+[GOOD] (define-fun s19 () (SBVTuple2 (Seq Int) (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 (Seq Int) (Seq Int))) s14 s18))+[GOOD] (define-fun s20 () (SBVTuple2 (Seq Int) (Seq Int)) (ite s9 s17 s19))+[GOOD] (define-fun s21 () (SBVTuple2 (Seq Int) (Seq Int)) (ite s6 s4 s20))+[GOOD] (define-fun s22 () Int (seq.len s12))+[GOOD] (define-fun s23 () Bool (not s9))+[GOOD] (define-fun s24 () Bool (not s6))+[GOOD] (define-fun s25 () Bool (and s23 s24))+[GOOD] (define-fun s26 () Bool (> s5 s22))+[GOOD] (define-fun s27 () Bool (=> s25 s26))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s27))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] sbv.partition @(SBV Integer -> SBV Bool)_cb04f986c4 @(SBV [Integer] -> SBV ([Integer],[Integer])): length arg1 -> OK+[MEASURE] Passed (terminating): sbv.partition @(SBV Integer -> SBV Bool)_cb04f986c4 @(SBV [Integer] -> SBV ([Integer],[Integer]))+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all. [GOOD] ; --- tuples --- [GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)                                            ((mkSBVTuple2 (proj_1_SBVTuple2 T1)
SBVTestSuite/GoldFiles/lambda87.gold view
@@ -1,3 +1,13 @@+[MEASURE] Verifying termination measures for: sbv.map @(SBV Integer -> SBV [Integer])_8a19cac1b3 @(SBV [Integer] -> SBV [[Integer]]), sbv.map @(SBV Integer -> SBV [Integer])_8a19cac1b3 @(SBV [Integer] -> SBV [[Integer]]), sbv.closureMap @(SBV Integer -> SBV Integer -> SBV Integer)_3339bda50c @(SBV (Integer,[Integer]) -> SBV [Integer]), sbv.closureMap @(SBV Integer -> SBV Integer -> SBV Integer)_d8dc9e6fbd @(SBV (Integer,[Integer]) -> SBV [Integer])+[MEASURE] Checking: sbv.map @(SBV Integer -> SBV [Integer])_8a19cac1b3 @(SBV [Integer] -> SBV [[Integer]])+[MEASURE] sbv.map @(SBV Integer -> SBV [Integer])_8a19cac1b3 @(SBV [Integer] -> SBV [[Integer]]): not in a multi-member cycle, skipping mutual check+[MEASURE] Passed (terminating): sbv.map @(SBV Integer -> SBV [Integer])_8a19cac1b3 @(SBV [Integer] -> SBV [[Integer]])+[MEASURE] Checking: sbv.map @(SBV Integer -> SBV [Integer])_8a19cac1b3 @(SBV [Integer] -> SBV [[Integer]])+[MEASURE] sbv.map @(SBV Integer -> SBV [Integer])_8a19cac1b3 @(SBV [Integer] -> SBV [[Integer]]): barified = "|sbv.map @(SBV Integer -> SBV [Integer])_8a19cac1b3 @(SBV [Integer] -> SBV [[Integer]])|"+[MEASURE] sbv.map @(SBV Integer -> SBV [Integer])_8a19cac1b3 @(SBV [Integer] -> SBV [[Integer]]): Uninterpreted ops in DAG: [("|sbv.closureMap @(SBV Integer -> SBV Integer -> SBV Integer)_d8dc9e6fbd @(SBV (Integer,[Integer]) -> SBV [Integer])|",1),("|sbv.map @(SBV Integer -> SBV [Integer])_8a19cac1b3 @(SBV [Integer] -> SBV [[Integer]])|",1)]+[MEASURE] sbv.map @(SBV Integer -> SBV [Integer])_8a19cac1b3 @(SBV [Integer] -> SBV [[Integer]]): recursive calls found = 1+[MEASURE] sbv.map @(SBV Integer -> SBV [Integer])_8a19cac1b3 @(SBV [Integer] -> SBV [[Integer]]): trying length arg1+[MEASURE] replayDAG {sbv.map @(SBV Integer -> SBV [Integer])_8a19cac1b3 @(SBV [Integer] -> SBV [[Integer]])}: replaying 11 node(s) ** Calling: z3 -nw -in -smt2 [GOOD] ; Automatically generated by SBV. Do not edit. [GOOD] (set-option :print-success true)@@ -9,7 +19,336 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts ---+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () (Seq (Seq Int)) (as seq.empty (Seq (Seq Int))))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq Int)) ; tracks user variable "arg"+[GOOD] (declare-fun s7 () (Seq Int)) ; tracks user variable "__internal_sbv_s7"+[GOOD] (declare-fun s9 () (Seq Int)) ; tracks user variable "__internal_sbv_s9"+[GOOD] (declare-fun s13 () (Seq (Seq Int))) ; tracks user variable "__internal_sbv_s13"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Int (seq.len s0))+[GOOD] (define-fun s5 () Bool (= s1 s4))+[GOOD] (define-fun s6 () Int (seq.nth s0 s1))+[GOOD] (define-fun s8 () (SBVTuple2 Int (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 Int (Seq Int))) s6 s7))+[GOOD] (define-fun s10 () (Seq (Seq Int)) (seq.unit s9))+[GOOD] (define-fun s11 () Int (- s4 s2))+[GOOD] (define-fun s12 () (Seq Int) (seq.extract s0 s2 s11))+[GOOD] (define-fun s14 () (Seq (Seq Int)) (seq.++ s10 s13))+[GOOD] (define-fun s15 () (Seq (Seq Int)) (ite s5 s3 s14))+[GOOD] (define-fun s16 () Bool (>= s4 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s16))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {sbv.map @(SBV Integer -> SBV [Integer])_8a19cac1b3 @(SBV [Integer] -> SBV [[Integer]])}: replaying 11 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () (Seq (Seq Int)) (as seq.empty (Seq (Seq Int))))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq Int)) ; tracks user variable "arg"+[GOOD] (declare-fun s7 () (Seq Int)) ; tracks user variable "__internal_sbv_s7"+[GOOD] (declare-fun s9 () (Seq Int)) ; tracks user variable "__internal_sbv_s9"+[GOOD] (declare-fun s13 () (Seq (Seq Int))) ; tracks user variable "__internal_sbv_s13"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Int (seq.len s0))+[GOOD] (define-fun s5 () Bool (= s1 s4))+[GOOD] (define-fun s6 () Int (seq.nth s0 s1))+[GOOD] (define-fun s8 () (SBVTuple2 Int (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 Int (Seq Int))) s6 s7))+[GOOD] (define-fun s10 () (Seq (Seq Int)) (seq.unit s9))+[GOOD] (define-fun s11 () Int (- s4 s2))+[GOOD] (define-fun s12 () (Seq Int) (seq.extract s0 s2 s11))+[GOOD] (define-fun s14 () (Seq (Seq Int)) (seq.++ s10 s13))+[GOOD] (define-fun s15 () (Seq (Seq Int)) (ite s5 s3 s14))+[GOOD] (define-fun s16 () Int (seq.len s12))+[GOOD] (define-fun s17 () Bool (not s5))+[GOOD] (define-fun s18 () Bool (> s4 s16))+[GOOD] (define-fun s19 () Bool (=> s17 s18))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s19))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] sbv.map @(SBV Integer -> SBV [Integer])_8a19cac1b3 @(SBV [Integer] -> SBV [[Integer]]): length arg1 -> OK+[MEASURE] Passed (terminating): sbv.map @(SBV Integer -> SBV [Integer])_8a19cac1b3 @(SBV [Integer] -> SBV [[Integer]])+[MEASURE] Checking: sbv.closureMap @(SBV Integer -> SBV Integer -> SBV Integer)_3339bda50c @(SBV (Integer,[Integer]) -> SBV [Integer])+[MEASURE] sbv.closureMap @(SBV Integer -> SBV Integer -> SBV Integer)_3339bda50c @(SBV (Integer,[Integer]) -> SBV [Integer]): not in a multi-member cycle, skipping mutual check+[MEASURE] Passed (terminating): sbv.closureMap @(SBV Integer -> SBV Integer -> SBV Integer)_3339bda50c @(SBV (Integer,[Integer]) -> SBV [Integer])+[MEASURE] Checking: sbv.closureMap @(SBV Integer -> SBV Integer -> SBV Integer)_d8dc9e6fbd @(SBV (Integer,[Integer]) -> SBV [Integer])+[MEASURE] sbv.closureMap @(SBV Integer -> SBV Integer -> SBV Integer)_d8dc9e6fbd @(SBV (Integer,[Integer]) -> SBV [Integer]): barified = "|sbv.closureMap @(SBV Integer -> SBV Integer -> SBV Integer)_d8dc9e6fbd @(SBV (Integer,[Integer]) -> SBV [Integer])|"+[MEASURE] sbv.closureMap @(SBV Integer -> SBV Integer -> SBV Integer)_d8dc9e6fbd @(SBV (Integer,[Integer]) -> SBV [Integer]): Uninterpreted ops in DAG: [("|sbv.closureMap @(SBV Integer -> SBV Integer -> SBV Integer)_d8dc9e6fbd @(SBV (Integer,[Integer]) -> SBV [Integer])|",1)]+[MEASURE] sbv.closureMap @(SBV Integer -> SBV Integer -> SBV Integer)_d8dc9e6fbd @(SBV (Integer,[Integer]) -> SBV [Integer]): recursive calls found = 1+[MEASURE] sbv.closureMap @(SBV Integer -> SBV Integer -> SBV Integer)_d8dc9e6fbd @(SBV (Integer,[Integer]) -> SBV [Integer]): trying abs arg1._1+[MEASURE] replayDAG {sbv.closureMap @(SBV Integer -> SBV Integer -> SBV Integer)_d8dc9e6fbd @(SBV (Integer,[Integer]) -> SBV [Integer])}: replaying 13 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () (Seq Int) (as seq.empty (Seq Int)))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (SBVTuple2 Int (Seq Int))) ; tracks user variable "arg"+[GOOD] (declare-fun s14 () (Seq Int)) ; tracks user variable "__internal_sbv_s14"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () (Seq Int) (proj_2_SBVTuple2 s0))+[GOOD] (define-fun s5 () Int (seq.len s4))+[GOOD] (define-fun s6 () Bool (= s1 s5))+[GOOD] (define-fun s7 () Int (proj_1_SBVTuple2 s0))+[GOOD] (define-fun s8 () Int (seq.nth s4 s1))+[GOOD] (define-fun s9 () Int (+ s7 s8))+[GOOD] (define-fun s10 () (Seq Int) (seq.unit s9))+[GOOD] (define-fun s11 () Int (- s5 s2))+[GOOD] (define-fun s12 () (Seq Int) (seq.extract s4 s2 s11))+[GOOD] (define-fun s13 () (SBVTuple2 Int (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 Int (Seq Int))) s7 s12))+[GOOD] (define-fun s15 () (Seq Int) (seq.++ s10 s14))+[GOOD] (define-fun s16 () (Seq Int) (ite s6 s3 s15))+[GOOD] (define-fun s17 () Int (abs s7))+[GOOD] (define-fun s18 () Bool (>= s17 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s18))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {sbv.closureMap @(SBV Integer -> SBV Integer -> SBV Integer)_d8dc9e6fbd @(SBV (Integer,[Integer]) -> SBV [Integer])}: replaying 13 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () (Seq Int) (as seq.empty (Seq Int)))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (SBVTuple2 Int (Seq Int))) ; tracks user variable "arg"+[GOOD] (declare-fun s14 () (Seq Int)) ; tracks user variable "__internal_sbv_s14"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () (Seq Int) (proj_2_SBVTuple2 s0))+[GOOD] (define-fun s5 () Int (seq.len s4))+[GOOD] (define-fun s6 () Bool (= s1 s5))+[GOOD] (define-fun s7 () Int (proj_1_SBVTuple2 s0))+[GOOD] (define-fun s8 () Int (seq.nth s4 s1))+[GOOD] (define-fun s9 () Int (+ s7 s8))+[GOOD] (define-fun s10 () (Seq Int) (seq.unit s9))+[GOOD] (define-fun s11 () Int (- s5 s2))+[GOOD] (define-fun s12 () (Seq Int) (seq.extract s4 s2 s11))+[GOOD] (define-fun s13 () (SBVTuple2 Int (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 Int (Seq Int))) s7 s12))+[GOOD] (define-fun s15 () (Seq Int) (seq.++ s10 s14))+[GOOD] (define-fun s16 () (Seq Int) (ite s6 s3 s15))+[GOOD] (define-fun s17 () Int (abs s7))+[GOOD] (define-fun s18 () Int (proj_1_SBVTuple2 s13))+[GOOD] (define-fun s19 () Int (abs s18))+[GOOD] (define-fun s20 () Bool (not s6))+[GOOD] (define-fun s21 () Bool (> s17 s19))+[GOOD] (define-fun s22 () Bool (=> s20 s21))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s22))+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s17))+[RECV] ((s17 0))+[SEND] (get-value (s19))+[RECV] ((s19 0))+[SEND] (get-value (s0))+[RECV] ((s0 (mkSBVTuple2 0 (seq.unit 2))))+[SEND] (get-value (s14))+[RECV] ((s14 (as seq.empty (Seq Int))))+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] sbv.closureMap @(SBV Integer -> SBV Integer -> SBV Integer)_d8dc9e6fbd @(SBV (Integer,[Integer]) -> SBV [Integer]): abs arg1._1 failed strict decrease: Falsifiable. Counter-example:+  arg    = (0,[2]) :: (Integer, [Integer])+  before =       0 :: Integer+  then   =       0 :: Integer+[MEASURE] sbv.closureMap @(SBV Integer -> SBV Integer -> SBV Integer)_d8dc9e6fbd @(SBV (Integer,[Integer]) -> SBV [Integer]): trying next candidate..+[MEASURE] sbv.closureMap @(SBV Integer -> SBV Integer -> SBV Integer)_d8dc9e6fbd @(SBV (Integer,[Integer]) -> SBV [Integer]): trying length arg1._2+[MEASURE] replayDAG {sbv.closureMap @(SBV Integer -> SBV Integer -> SBV Integer)_d8dc9e6fbd @(SBV (Integer,[Integer]) -> SBV [Integer])}: replaying 13 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () (Seq Int) (as seq.empty (Seq Int)))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (SBVTuple2 Int (Seq Int))) ; tracks user variable "arg"+[GOOD] (declare-fun s14 () (Seq Int)) ; tracks user variable "__internal_sbv_s14"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () (Seq Int) (proj_2_SBVTuple2 s0))+[GOOD] (define-fun s5 () Int (seq.len s4))+[GOOD] (define-fun s6 () Bool (= s1 s5))+[GOOD] (define-fun s7 () Int (proj_1_SBVTuple2 s0))+[GOOD] (define-fun s8 () Int (seq.nth s4 s1))+[GOOD] (define-fun s9 () Int (+ s7 s8))+[GOOD] (define-fun s10 () (Seq Int) (seq.unit s9))+[GOOD] (define-fun s11 () Int (- s5 s2))+[GOOD] (define-fun s12 () (Seq Int) (seq.extract s4 s2 s11))+[GOOD] (define-fun s13 () (SBVTuple2 Int (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 Int (Seq Int))) s7 s12))+[GOOD] (define-fun s15 () (Seq Int) (seq.++ s10 s14))+[GOOD] (define-fun s16 () (Seq Int) (ite s6 s3 s15))+[GOOD] (define-fun s17 () Bool (>= s5 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s17))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {sbv.closureMap @(SBV Integer -> SBV Integer -> SBV Integer)_d8dc9e6fbd @(SBV (Integer,[Integer]) -> SBV [Integer])}: replaying 13 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () (Seq Int) (as seq.empty (Seq Int)))+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (SBVTuple2 Int (Seq Int))) ; tracks user variable "arg"+[GOOD] (declare-fun s14 () (Seq Int)) ; tracks user variable "__internal_sbv_s14"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () (Seq Int) (proj_2_SBVTuple2 s0))+[GOOD] (define-fun s5 () Int (seq.len s4))+[GOOD] (define-fun s6 () Bool (= s1 s5))+[GOOD] (define-fun s7 () Int (proj_1_SBVTuple2 s0))+[GOOD] (define-fun s8 () Int (seq.nth s4 s1))+[GOOD] (define-fun s9 () Int (+ s7 s8))+[GOOD] (define-fun s10 () (Seq Int) (seq.unit s9))+[GOOD] (define-fun s11 () Int (- s5 s2))+[GOOD] (define-fun s12 () (Seq Int) (seq.extract s4 s2 s11))+[GOOD] (define-fun s13 () (SBVTuple2 Int (Seq Int)) ((as mkSBVTuple2 (SBVTuple2 Int (Seq Int))) s7 s12))+[GOOD] (define-fun s15 () (Seq Int) (seq.++ s10 s14))+[GOOD] (define-fun s16 () (Seq Int) (ite s6 s3 s15))+[GOOD] (define-fun s17 () (Seq Int) (proj_2_SBVTuple2 s13))+[GOOD] (define-fun s18 () Int (seq.len s17))+[GOOD] (define-fun s19 () Bool (not s6))+[GOOD] (define-fun s20 () Bool (> s5 s18))+[GOOD] (define-fun s21 () Bool (=> s19 s20))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s21))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] sbv.closureMap @(SBV Integer -> SBV Integer -> SBV Integer)_d8dc9e6fbd @(SBV (Integer,[Integer]) -> SBV [Integer]): length arg1._2 -> OK+[MEASURE] Passed (terminating): sbv.closureMap @(SBV Integer -> SBV Integer -> SBV Integer)_d8dc9e6fbd @(SBV (Integer,[Integer]) -> SBV [Integer])+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all. [GOOD] ; --- tuples --- [GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)                                            ((mkSBVTuple2 (proj_1_SBVTuple2 T1)
SBVTestSuite/GoldFiles/lambda88.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)                                            ((mkSBVTuple2 (proj_1_SBVTuple2 T1)
SBVTestSuite/GoldFiles/listFloat2.gold view
@@ -1,3 +1,10 @@+[MEASURE] Verifying termination measures for: listEq @(SBV [Float] -> SBV [Float] -> SBV Bool)+[MEASURE] Checking: listEq @(SBV [Float] -> SBV [Float] -> SBV Bool)+[MEASURE] listEq @(SBV [Float] -> SBV [Float] -> SBV Bool): barified = "|listEq @(SBV [Float] -> SBV [Float] -> SBV Bool)|"+[MEASURE] listEq @(SBV [Float] -> SBV [Float] -> SBV Bool): Uninterpreted ops in DAG: [("|listEq @(SBV [Float] -> SBV [Float] -> SBV Bool)|",2)]+[MEASURE] listEq @(SBV [Float] -> SBV [Float] -> SBV Bool): recursive calls found = 1+[MEASURE] listEq @(SBV [Float] -> SBV [Float] -> SBV Bool): trying length arg1+[MEASURE] replayDAG {listEq @(SBV [Float] -> SBV [Float] -> SBV Bool)}: replaying 16 node(s) ** Calling: z3 -nw -in -smt2 [GOOD] ; Automatically generated by SBV. Do not edit. [GOOD] (set-option :print-success true)@@ -9,11 +16,114 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1) [GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq (_ FloatingPoint  8 24))) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () (Seq (_ FloatingPoint  8 24))) ; tracks user variable "arg1"+[GOOD] (declare-fun s15 () Bool) ; tracks user variable "__internal_sbv_s15"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Int (seq.len s0))+[GOOD] (define-fun s5 () Bool (= s2 s4))+[GOOD] (define-fun s6 () Int (seq.len s1))+[GOOD] (define-fun s7 () Bool (= s2 s6))+[GOOD] (define-fun s8 () (_ FloatingPoint  8 24) (seq.nth s0 s2))+[GOOD] (define-fun s9 () (_ FloatingPoint  8 24) (seq.nth s1 s2))+[GOOD] (define-fun s10 () Bool (fp.eq s8 s9))+[GOOD] (define-fun s11 () Int (- s4 s3))+[GOOD] (define-fun s12 () (Seq (_ FloatingPoint  8 24)) (seq.extract s0 s3 s11))+[GOOD] (define-fun s13 () Int (- s6 s3))+[GOOD] (define-fun s14 () (Seq (_ FloatingPoint  8 24)) (seq.extract s1 s3 s13))+[GOOD] (define-fun s16 () Bool (and s10 s15))+[GOOD] (define-fun s17 () Bool (not s7))+[GOOD] (define-fun s18 () Bool (and s16 s17))+[GOOD] (define-fun s19 () Bool (ite s5 s7 s18))+[GOOD] (define-fun s20 () Bool (>= s4 s2))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s20))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {listEq @(SBV [Float] -> SBV [Float] -> SBV Bool)}: replaying 16 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (Seq (_ FloatingPoint  8 24))) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () (Seq (_ FloatingPoint  8 24))) ; tracks user variable "arg1"+[GOOD] (declare-fun s15 () Bool) ; tracks user variable "__internal_sbv_s15"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Int (seq.len s0))+[GOOD] (define-fun s5 () Bool (= s2 s4))+[GOOD] (define-fun s6 () Int (seq.len s1))+[GOOD] (define-fun s7 () Bool (= s2 s6))+[GOOD] (define-fun s8 () (_ FloatingPoint  8 24) (seq.nth s0 s2))+[GOOD] (define-fun s9 () (_ FloatingPoint  8 24) (seq.nth s1 s2))+[GOOD] (define-fun s10 () Bool (fp.eq s8 s9))+[GOOD] (define-fun s11 () Int (- s4 s3))+[GOOD] (define-fun s12 () (Seq (_ FloatingPoint  8 24)) (seq.extract s0 s3 s11))+[GOOD] (define-fun s13 () Int (- s6 s3))+[GOOD] (define-fun s14 () (Seq (_ FloatingPoint  8 24)) (seq.extract s1 s3 s13))+[GOOD] (define-fun s16 () Bool (and s10 s15))+[GOOD] (define-fun s17 () Bool (not s7))+[GOOD] (define-fun s18 () Bool (and s16 s17))+[GOOD] (define-fun s19 () Bool (ite s5 s7 s18))+[GOOD] (define-fun s20 () Int (seq.len s12))+[GOOD] (define-fun s21 () Bool (not s5))+[GOOD] (define-fun s22 () Bool (and s17 s21))+[GOOD] (define-fun s23 () Bool (and s10 s22))+[GOOD] (define-fun s24 () Bool (> s4 s20))+[GOOD] (define-fun s25 () Bool (=> s23 s24))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s25))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] listEq @(SBV [Float] -> SBV [Float] -> SBV Bool): length arg1 -> OK+[MEASURE] Passed (terminating): listEq @(SBV [Float] -> SBV [Float] -> SBV Bool)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs --- [GOOD] (declare-fun s0 () (_ FloatingPoint  8 24)) ; tracks user variable "x" [GOOD] ; --- constant tables --- [GOOD] ; --- non-constant tables ---@@ -36,8 +146,10 @@                                  (let ((l1_s14 (seq.extract l1_s1 l1_s10 l1_s13)))                                  (let ((l1_s15 (|listEq @(SBV [Float] -> SBV [Float] -> SBV Bool)| l1_s12 l1_s14)))                                  (let ((l1_s16 (and l1_s9 l1_s15)))-                                 (let ((l1_s17 (ite l1_s4 l1_s6 l1_s16)))-                                 l1_s17)))))))))))))))))+                                 (let ((l1_s17 (not l1_s6)))+                                 (let ((l1_s18 (and l1_s16 l1_s17)))+                                 (let ((l1_s19 (ite l1_s4 l1_s6 l1_s18)))+                                 l1_s19))))))))))))))))))) [GOOD] ; --- assignments --- [GOOD] (define-fun s1 () (Seq (_ FloatingPoint  8 24)) (seq.unit s0)) [GOOD] (define-fun s2 () Bool (|listEq @(SBV [Float] -> SBV [Float] -> SBV Bool)| s1 s1))
SBVTestSuite/GoldFiles/listFloat3.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has lists, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/nested1.gold view
@@ -2,9 +2,6 @@  Data.SBV: Mismatched contexts detected. ***-***   Current context: SBVContext (-531973508589804280)-***   Mixed with     : SBVContext (-7749304166575005736)-*** *** This happens if you call a proof-function (prove/sat/runSMT/isSatisfiable) etc. *** while another one is in execution, or use results from one such call in another. *** Please avoid such nested calls, all interactions should be from the same context.
SBVTestSuite/GoldFiles/nested2.gold view
@@ -2,9 +2,6 @@  Data.SBV: Mismatched contexts detected. ***-***   Current context: SBVContext (-531973508589804280)-***   Mixed with     : SBVContext (-7749304166575005736)-*** *** This happens if you call a proof-function (prove/sat/runSMT/isSatisfiable) etc. *** while another one is in execution, or use results from one such call in another. *** Please avoid such nested calls, all interactions should be from the same context.
SBVTestSuite/GoldFiles/nested3.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; external query, using all logics.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---@@ -24,9 +23,6 @@ CAUGHT EXCEPTION  Data.SBV: Mismatched contexts detected.-***-***   Current context: SBVContext (-7749304166575005736)-***   Mixed with     : SBVContext (-531973508589804280) *** *** This happens if you call a proof-function (prove/sat/runSMT/isSatisfiable) etc. *** while another one is in execution, or use results from one such call in another.
SBVTestSuite/GoldFiles/nested4.gold view
@@ -2,9 +2,6 @@  Data.SBV: Mismatched contexts detected. ***-***   Current context: SBVContext (-531973508589804280)-***   Mixed with     : SBVContext (-7749304166575005736)-*** *** This happens if you call a proof-function (prove/sat/runSMT/isSatisfiable) etc. *** while another one is in execution, or use results from one such call in another. *** Please avoid such nested calls, all interactions should be from the same context.
SBVTestSuite/GoldFiles/noOpt1.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_BV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/noOpt2.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_BV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/nonlinear_cvc4.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has algebraic reals, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/nonlinear_cvc5.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic HO_ALL) ; has algebraic reals, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/nonlinear_z3.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has algebraic reals, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/pareto1.gold view
@@ -47,11 +47,11 @@   max_x_plus_y = 6 :: Integer   min_y        = 4 :: Integer Pareto front #9: Optimal model:-  x            = 3 :: Integer-  y            = 4 :: Integer-  min_x        = 3 :: Integer+  x            = 4 :: Integer+  y            = 3 :: Integer+  min_x        = 4 :: Integer   max_x_plus_y = 7 :: Integer-  min_y        = 4 :: Integer+  min_y        = 3 :: Integer Pareto front #10: Optimal model:   x            = 5 :: Integer   y            = 2 :: Integer@@ -59,35 +59,35 @@   max_x_plus_y = 7 :: Integer   min_y        = 2 :: Integer Pareto front #11: Optimal model:-  x            = 4 :: Integer-  y            = 4 :: Integer-  min_x        = 4 :: Integer-  max_x_plus_y = 8 :: Integer-  min_y        = 4 :: Integer-Pareto front #12: Optimal model:-  x            = 4 :: Integer-  y            = 3 :: Integer-  min_x        = 4 :: Integer-  max_x_plus_y = 7 :: Integer-  min_y        = 3 :: Integer-Pareto front #13: Optimal model:   x            = 5 :: Integer   y            = 3 :: Integer   min_x        = 5 :: Integer   max_x_plus_y = 8 :: Integer   min_y        = 3 :: Integer-Pareto front #14: Optimal model:-  x            = 5 :: Integer+Pareto front #12: Optimal model:+  x            = 3 :: Integer   y            = 4 :: Integer-  min_x        = 5 :: Integer-  max_x_plus_y = 9 :: Integer+  min_x        = 3 :: Integer+  max_x_plus_y = 7 :: Integer   min_y        = 4 :: Integer-Pareto front #15: Optimal model:+Pareto front #13: Optimal model:   x            = 4 :: Integer   y            = 2 :: Integer   min_x        = 4 :: Integer   max_x_plus_y = 6 :: Integer   min_y        = 2 :: Integer+Pareto front #14: Optimal model:+  x            = 4 :: Integer+  y            = 4 :: Integer+  min_x        = 4 :: Integer+  max_x_plus_y = 8 :: Integer+  min_y        = 4 :: Integer+Pareto front #15: Optimal model:+  x            = 5 :: Integer+  y            = 4 :: Integer+  min_x        = 5 :: Integer+  max_x_plus_y = 9 :: Integer+  min_y        = 4 :: Integer Pareto front #16: Optimal model:   x            = 1 :: Integer   y            = 0 :: Integer@@ -107,65 +107,65 @@   max_x_plus_y = 2 :: Integer   min_y        = 0 :: Integer Pareto front #19: Optimal model:-  x            = 3 :: Integer-  y            = 0 :: Integer-  min_x        = 3 :: Integer-  max_x_plus_y = 3 :: Integer-  min_y        = 0 :: Integer-Pareto front #20: Optimal model:   x            = 0 :: Integer   y            = 1 :: Integer   min_x        = 0 :: Integer   max_x_plus_y = 1 :: Integer   min_y        = 1 :: Integer-Pareto front #21: Optimal model:+Pareto front #20: Optimal model:   x            = 2 :: Integer   y            = 1 :: Integer   min_x        = 2 :: Integer   max_x_plus_y = 3 :: Integer   min_y        = 1 :: Integer-Pareto front #22: Optimal model:+Pareto front #21: Optimal model:   x            = 1 :: Integer   y            = 2 :: Integer   min_x        = 1 :: Integer   max_x_plus_y = 3 :: Integer   min_y        = 2 :: Integer-Pareto front #23: Optimal model:+Pareto front #22: Optimal model:   x            = 0 :: Integer   y            = 2 :: Integer   min_x        = 0 :: Integer   max_x_plus_y = 2 :: Integer   min_y        = 2 :: Integer-Pareto front #24: Optimal model:+Pareto front #23: Optimal model:   x            = 0 :: Integer-  y            = 4 :: Integer+  y            = 3 :: Integer   min_x        = 0 :: Integer-  max_x_plus_y = 4 :: Integer-  min_y        = 4 :: Integer-Pareto front #25: Optimal model:+  max_x_plus_y = 3 :: Integer+  min_y        = 3 :: Integer+Pareto front #24: Optimal model:   x            = 1 :: Integer   y            = 3 :: Integer   min_x        = 1 :: Integer   max_x_plus_y = 4 :: Integer   min_y        = 3 :: Integer+Pareto front #25: Optimal model:+  x            = 0 :: Integer+  y            = 4 :: Integer+  min_x        = 0 :: Integer+  max_x_plus_y = 4 :: Integer+  min_y        = 4 :: Integer Pareto front #26: Optimal model:-  x            = 2 :: Integer-  y            = 3 :: Integer-  min_x        = 2 :: Integer-  max_x_plus_y = 5 :: Integer-  min_y        = 3 :: Integer-Pareto front #27: Optimal model:   x            = 1 :: Integer   y            = 4 :: Integer   min_x        = 1 :: Integer   max_x_plus_y = 5 :: Integer   min_y        = 4 :: Integer-Pareto front #28: Optimal model:-  x            = 0 :: Integer+Pareto front #27: Optimal model:+  x            = 2 :: Integer   y            = 3 :: Integer-  min_x        = 0 :: Integer-  max_x_plus_y = 3 :: Integer+  min_x        = 2 :: Integer+  max_x_plus_y = 5 :: Integer   min_y        = 3 :: Integer+Pareto front #28: Optimal model:+  x            = 3 :: Integer+  y            = 0 :: Integer+  min_x        = 3 :: Integer+  max_x_plus_y = 3 :: Integer+  min_y        = 0 :: Integer Pareto front #29: Optimal model:   x            = 4 :: Integer   y            = 0 :: Integer
SBVTestSuite/GoldFiles/pareto2.gold view
@@ -1,182 +1,182 @@ Pareto front #1: Optimal model:-  x            =  0 :: Integer-  y            = -1 :: Integer-  min_x        =  0 :: Integer-  max_y        = -1 :: Integer-  max_x_plus_y = -1 :: Integer+  x            = 0 :: Integer+  y            = 1 :: Integer+  min_x        = 0 :: Integer+  max_y        = 1 :: Integer+  max_x_plus_y = 1 :: Integer Pareto front #2: Optimal model:-  x            =  0 :: Integer-  y            = -3 :: Integer-  min_x        =  0 :: Integer-  max_y        = -3 :: Integer-  max_x_plus_y = -3 :: Integer+  x            = 0 :: Integer+  y            = 2 :: Integer+  min_x        = 0 :: Integer+  max_y        = 2 :: Integer+  max_x_plus_y = 2 :: Integer Pareto front #3: Optimal model:-  x            =  0 :: Integer-  y            = -5 :: Integer-  min_x        =  0 :: Integer-  max_y        = -5 :: Integer-  max_x_plus_y = -5 :: Integer+  x            = 0 :: Integer+  y            = 3 :: Integer+  min_x        = 0 :: Integer+  max_y        = 3 :: Integer+  max_x_plus_y = 3 :: Integer Pareto front #4: Optimal model:-  x            =  0 :: Integer-  y            = -7 :: Integer-  min_x        =  0 :: Integer-  max_y        = -7 :: Integer-  max_x_plus_y = -7 :: Integer+  x            = 0 :: Integer+  y            = 5 :: Integer+  min_x        = 0 :: Integer+  max_y        = 5 :: Integer+  max_x_plus_y = 5 :: Integer Pareto front #5: Optimal model:-  x            =  0 :: Integer-  y            = -9 :: Integer-  min_x        =  0 :: Integer-  max_y        = -9 :: Integer-  max_x_plus_y = -9 :: Integer+  x            = 0 :: Integer+  y            = 6 :: Integer+  min_x        = 0 :: Integer+  max_y        = 6 :: Integer+  max_x_plus_y = 6 :: Integer Pareto front #6: Optimal model:-  x            =   0 :: Integer-  y            = -10 :: Integer-  min_x        =   0 :: Integer-  max_y        = -10 :: Integer-  max_x_plus_y = -10 :: Integer+  x            = 0 :: Integer+  y            = 7 :: Integer+  min_x        = 0 :: Integer+  max_y        = 7 :: Integer+  max_x_plus_y = 7 :: Integer Pareto front #7: Optimal model:-  x            =   0 :: Integer-  y            = -11 :: Integer-  min_x        =   0 :: Integer-  max_y        = -11 :: Integer-  max_x_plus_y = -11 :: Integer+  x            = 0 :: Integer+  y            = 9 :: Integer+  min_x        = 0 :: Integer+  max_y        = 9 :: Integer+  max_x_plus_y = 9 :: Integer Pareto front #8: Optimal model:-  x            =   0 :: Integer-  y            = -13 :: Integer-  min_x        =   0 :: Integer-  max_y        = -13 :: Integer-  max_x_plus_y = -13 :: Integer+  x            = 0 :: Integer+  y            = 8 :: Integer+  min_x        = 0 :: Integer+  max_y        = 8 :: Integer+  max_x_plus_y = 8 :: Integer Pareto front #9: Optimal model:-  x            =   0 :: Integer-  y            = -15 :: Integer-  min_x        =   0 :: Integer-  max_y        = -15 :: Integer-  max_x_plus_y = -15 :: Integer+  x            =  0 :: Integer+  y            = 11 :: Integer+  min_x        =  0 :: Integer+  max_y        = 11 :: Integer+  max_x_plus_y = 11 :: Integer Pareto front #10: Optimal model:-  x            =   0 :: Integer-  y            = -16 :: Integer-  min_x        =   0 :: Integer-  max_y        = -16 :: Integer-  max_x_plus_y = -16 :: Integer+  x            =  0 :: Integer+  y            = 13 :: Integer+  min_x        =  0 :: Integer+  max_y        = 13 :: Integer+  max_x_plus_y = 13 :: Integer Pareto front #11: Optimal model:-  x            =   0 :: Integer-  y            = -18 :: Integer-  min_x        =   0 :: Integer-  max_y        = -18 :: Integer-  max_x_plus_y = -18 :: Integer+  x            =  0 :: Integer+  y            = 14 :: Integer+  min_x        =  0 :: Integer+  max_y        = 14 :: Integer+  max_x_plus_y = 14 :: Integer Pareto front #12: Optimal model:-  x            =   0 :: Integer-  y            = -20 :: Integer-  min_x        =   0 :: Integer-  max_y        = -20 :: Integer-  max_x_plus_y = -20 :: Integer+  x            =  0 :: Integer+  y            = 15 :: Integer+  min_x        =  0 :: Integer+  max_y        = 15 :: Integer+  max_x_plus_y = 15 :: Integer Pareto front #13: Optimal model:-  x            =   0 :: Integer-  y            = -22 :: Integer-  min_x        =   0 :: Integer-  max_y        = -22 :: Integer-  max_x_plus_y = -22 :: Integer+  x            =  0 :: Integer+  y            = 17 :: Integer+  min_x        =  0 :: Integer+  max_y        = 17 :: Integer+  max_x_plus_y = 17 :: Integer Pareto front #14: Optimal model:-  x            =   0 :: Integer-  y            = -23 :: Integer-  min_x        =   0 :: Integer-  max_y        = -23 :: Integer-  max_x_plus_y = -23 :: Integer+  x            =  0 :: Integer+  y            = 19 :: Integer+  min_x        =  0 :: Integer+  max_y        = 19 :: Integer+  max_x_plus_y = 19 :: Integer Pareto front #15: Optimal model:-  x            =   0 :: Integer-  y            = -24 :: Integer-  min_x        =   0 :: Integer-  max_y        = -24 :: Integer-  max_x_plus_y = -24 :: Integer+  x            =  0 :: Integer+  y            = 21 :: Integer+  min_x        =  0 :: Integer+  max_y        = 21 :: Integer+  max_x_plus_y = 21 :: Integer Pareto front #16: Optimal model:-  x            =   0 :: Integer-  y            = -26 :: Integer-  min_x        =   0 :: Integer-  max_y        = -26 :: Integer-  max_x_plus_y = -26 :: Integer+  x            =  0 :: Integer+  y            = 22 :: Integer+  min_x        =  0 :: Integer+  max_y        = 22 :: Integer+  max_x_plus_y = 22 :: Integer Pareto front #17: Optimal model:-  x            =   0 :: Integer-  y            = -28 :: Integer-  min_x        =   0 :: Integer-  max_y        = -28 :: Integer-  max_x_plus_y = -28 :: Integer+  x            =  0 :: Integer+  y            = 23 :: Integer+  min_x        =  0 :: Integer+  max_y        = 23 :: Integer+  max_x_plus_y = 23 :: Integer Pareto front #18: Optimal model:-  x            =   0 :: Integer-  y            = -29 :: Integer-  min_x        =   0 :: Integer-  max_y        = -29 :: Integer-  max_x_plus_y = -29 :: Integer+  x            =  0 :: Integer+  y            = 25 :: Integer+  min_x        =  0 :: Integer+  max_y        = 25 :: Integer+  max_x_plus_y = 25 :: Integer Pareto front #19: Optimal model:-  x            =   0 :: Integer-  y            = -31 :: Integer-  min_x        =   0 :: Integer-  max_y        = -31 :: Integer-  max_x_plus_y = -31 :: Integer+  x            =  0 :: Integer+  y            = 26 :: Integer+  min_x        =  0 :: Integer+  max_y        = 26 :: Integer+  max_x_plus_y = 26 :: Integer Pareto front #20: Optimal model:-  x            =   0 :: Integer-  y            = -32 :: Integer-  min_x        =   0 :: Integer-  max_y        = -32 :: Integer-  max_x_plus_y = -32 :: Integer+  x            =  0 :: Integer+  y            = 28 :: Integer+  min_x        =  0 :: Integer+  max_y        = 28 :: Integer+  max_x_plus_y = 28 :: Integer Pareto front #21: Optimal model:-  x            =   0 :: Integer-  y            = -34 :: Integer-  min_x        =   0 :: Integer-  max_y        = -34 :: Integer-  max_x_plus_y = -34 :: Integer+  x            =  0 :: Integer+  y            = 30 :: Integer+  min_x        =  0 :: Integer+  max_y        = 30 :: Integer+  max_x_plus_y = 30 :: Integer Pareto front #22: Optimal model:-  x            =   0 :: Integer-  y            = -35 :: Integer-  min_x        =   0 :: Integer-  max_y        = -35 :: Integer-  max_x_plus_y = -35 :: Integer+  x            =  0 :: Integer+  y            = 32 :: Integer+  min_x        =  0 :: Integer+  max_y        = 32 :: Integer+  max_x_plus_y = 32 :: Integer Pareto front #23: Optimal model:-  x            =   0 :: Integer-  y            = -37 :: Integer-  min_x        =   0 :: Integer-  max_y        = -37 :: Integer-  max_x_plus_y = -37 :: Integer+  x            =  0 :: Integer+  y            = 34 :: Integer+  min_x        =  0 :: Integer+  max_y        = 34 :: Integer+  max_x_plus_y = 34 :: Integer Pareto front #24: Optimal model:-  x            =   0 :: Integer-  y            = -38 :: Integer-  min_x        =   0 :: Integer-  max_y        = -38 :: Integer-  max_x_plus_y = -38 :: Integer+  x            =  0 :: Integer+  y            = 36 :: Integer+  min_x        =  0 :: Integer+  max_y        = 36 :: Integer+  max_x_plus_y = 36 :: Integer Pareto front #25: Optimal model:-  x            =   0 :: Integer-  y            = -40 :: Integer-  min_x        =   0 :: Integer-  max_y        = -40 :: Integer-  max_x_plus_y = -40 :: Integer+  x            =  0 :: Integer+  y            = 37 :: Integer+  min_x        =  0 :: Integer+  max_y        = 37 :: Integer+  max_x_plus_y = 37 :: Integer Pareto front #26: Optimal model:-  x            =   0 :: Integer-  y            = -41 :: Integer-  min_x        =   0 :: Integer-  max_y        = -41 :: Integer-  max_x_plus_y = -41 :: Integer+  x            =  0 :: Integer+  y            = 39 :: Integer+  min_x        =  0 :: Integer+  max_y        = 39 :: Integer+  max_x_plus_y = 39 :: Integer Pareto front #27: Optimal model:-  x            =   0 :: Integer-  y            = -43 :: Integer-  min_x        =   0 :: Integer-  max_y        = -43 :: Integer-  max_x_plus_y = -43 :: Integer+  x            =  0 :: Integer+  y            = 40 :: Integer+  min_x        =  0 :: Integer+  max_y        = 40 :: Integer+  max_x_plus_y = 40 :: Integer Pareto front #28: Optimal model:-  x            =   0 :: Integer-  y            = -44 :: Integer-  min_x        =   0 :: Integer-  max_y        = -44 :: Integer-  max_x_plus_y = -44 :: Integer+  x            =  0 :: Integer+  y            = 41 :: Integer+  min_x        =  0 :: Integer+  max_y        = 41 :: Integer+  max_x_plus_y = 41 :: Integer Pareto front #29: Optimal model:-  x            =   0 :: Integer-  y            = -45 :: Integer-  min_x        =   0 :: Integer-  max_y        = -45 :: Integer-  max_x_plus_y = -45 :: Integer+  x            =  0 :: Integer+  y            = 43 :: Integer+  min_x        =  0 :: Integer+  max_y        = 43 :: Integer+  max_x_plus_y = 43 :: Integer Pareto front #30: Optimal model:-  x            =   0 :: Integer-  y            = -47 :: Integer-  min_x        =   0 :: Integer-  max_y        = -47 :: Integer-  max_x_plus_y = -47 :: Integer+  x            =  0 :: Integer+  y            = 44 :: Integer+  min_x        =  0 :: Integer+  max_y        = 44 :: Integer+  max_x_plus_y = 44 :: Integer *** Note: Pareto-front extraction was terminated as requested by the user. ***       There might be many other results!
SBVTestSuite/GoldFiles/pbAtLeast.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/pbAtMost.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/pbEq.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/pbEq2.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/pbExactly.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/pbGe.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/pbLe.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/pbMutexed.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/pbStronglyMutexed.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/qEnum1.gold view
@@ -5,15 +5,25 @@ [GOOD] (set-option :smtlib2_compliant true) [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true)-[GOOD] (set-logic ALL) ; has user-defined sorts, using catch-all.-[GOOD] ; --- uninterpreted sorts ----[GOOD] (declare-datatypes ((BinOp 0)) (((Plus) (Minus) (Times))))-[GOOD] (define-fun BinOp_constrIndex ((x BinOp)) Int-          (ite (= x Plus) 0 (ite (= x Minus) 1 2))-       )+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all. [GOOD] ; --- tuples --- [GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: BinOp+[GOOD] (declare-datatype BinOp (+           (Plus)+           (Minus)+           (Times)+       )) [GOOD] ; --- literal constants ---+[GOOD] (define-fun s3 () BinOp (as Plus BinOp))+[GOOD] (define-fun s5 () Int 0)+[GOOD] (define-fun s6 () BinOp (as Minus BinOp))+[GOOD] (define-fun s8 () Int 1)+[GOOD] (define-fun s9 () Int 2) [GOOD] ; --- top level inputs --- [GOOD] (declare-fun s0 () BinOp) ; tracks user variable "p" [GOOD] (declare-fun s1 () BinOp) ; tracks user variable "m"@@ -23,14 +33,26 @@ [GOOD] ; --- uninterpreted constants --- [GOOD] ; --- user defined functions --- [GOOD] ; --- assignments ----[GOOD] (define-fun s3 () Bool (<= (BinOp_constrIndex s0) (BinOp_constrIndex s1)))-[GOOD] (define-fun s4 () Bool (<= (BinOp_constrIndex s1) (BinOp_constrIndex s2)))-[GOOD] (define-fun s5 () Bool (distinct s0 s1 s2))+[GOOD] (define-fun s4 () Bool (= s0 s3))+[GOOD] (define-fun s7 () Bool (= s0 s6))+[GOOD] (define-fun s10 () Int (ite s7 s8 s9))+[GOOD] (define-fun s11 () Int (ite s4 s5 s10))+[GOOD] (define-fun s12 () Bool (= s1 s3))+[GOOD] (define-fun s13 () Bool (= s1 s6))+[GOOD] (define-fun s14 () Int (ite s13 s8 s9))+[GOOD] (define-fun s15 () Int (ite s12 s5 s14))+[GOOD] (define-fun s16 () Bool (<= s11 s15))+[GOOD] (define-fun s17 () Bool (= s2 s3))+[GOOD] (define-fun s18 () Bool (= s2 s6))+[GOOD] (define-fun s19 () Int (ite s18 s8 s9))+[GOOD] (define-fun s20 () Int (ite s17 s5 s19))+[GOOD] (define-fun s21 () Bool (<= s15 s20))+[GOOD] (define-fun s22 () Bool (distinct s0 s1 s2)) [GOOD] ; --- delayedEqualities --- [GOOD] ; --- formula ----[GOOD] (assert s3)-[GOOD] (assert s4)-[GOOD] (assert s5)+[GOOD] (assert s16)+[GOOD] (assert s21)+[GOOD] (assert s22) [SEND] (check-sat) [RECV] sat [SEND] (get-value (s0))
+ SBVTestSuite/GoldFiles/qOpt_1.gold view
@@ -0,0 +1,109 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "x1"+[GOOD] (declare-fun s4 () Int) ; tracks user variable "x2"+[GOOD] (declare-fun s7 () Int) ; tracks user variable "x3"+[GOOD] (declare-fun s10 () Int) ; tracks user variable "x4"+[GOOD] (declare-fun s13 () Int) ; tracks user variable "x5"+[GOOD] ; --- optimization tracker variables ---+[GOOD] (declare-fun s3 () Int) ; tracks goal1+[GOOD] (declare-fun s6 () Int) ; tracks goal2+[GOOD] (declare-fun s9 () Int) ; tracks goal3+[GOOD] (declare-fun s12 () Int) ; tracks goal4+[GOOD] (declare-fun s15 () Int) ; tracks goal5+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (<= s1 s0))+[GOOD] (define-fun s5 () Bool (<= s1 s4))+[GOOD] (define-fun s8 () Bool (<= s1 s7))+[GOOD] (define-fun s11 () Bool (<= s1 s10))+[GOOD] (define-fun s14 () Bool (<= s1 s13))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s5)+[GOOD] (assert s8)+[GOOD] (assert s11)+[GOOD] (assert s14)+[GOOD] (assert (= s0 s3))+[GOOD] (maximize s3)+[GOOD] (assert (= s4 s6))+[GOOD] (maximize s6)+[GOOD] (assert (= s7 s9))+[GOOD] (maximize s9)+[GOOD] (assert (= s10 s12))+[GOOD] (maximize s12)+[GOOD] (assert (= s13 s15))+[GOOD] (maximize s15)+[SEND] (check-sat)+[RECV] sat+[SEND] (get-objectives)+[RECV] (objectives+        (s3 oo)+        (s6  (interval (* (- 1) oo) oo))+        (s9  (interval (* (- 1) oo) oo))+        (s12  (interval (* (- 1) oo) oo))+        (s15  (interval (* (- 1) oo) oo))+       )+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s4))+[RECV] ((s4 1))+[SEND] (get-value (s7))+[RECV] ((s7 1))+[SEND] (get-value (s10))+[RECV] ((s10 1))+[SEND] (get-value (s13))+[RECV] ((s13 1))+[SEND] (get-value (s3))+[RECV] ((s3 1))+[SEND] (get-value (s6))+[RECV] ((s6 1))+[SEND] (get-value (s9))+[RECV] ((s9 1))+[SEND] (get-value (s12))+[RECV] ((s12 1))+[SEND] (get-value (s15))+[RECV] ((s15 1))+[SEND] (get-objectives)+[RECV] (objectives+        (s3 oo)+        (s6  (interval (* (- 1) oo) oo))+        (s9  (interval (* (- 1) oo) oo))+        (s12  (interval (* (- 1) oo) oo))+        (s15  (interval (* (- 1) oo) oo))+       )+*** Solver   : Z3+*** Exit code: ExitFailure (-15)++EXCEPTION CAUGHT:++*** Data.SBV.getValue: The current solver state is satisfiable in an extension field.+*** That is, the optimized values assume epsilon/infinity values.+***+*** Calls to getValue is not supported in this context. Instead, use the 'optimize' method+*** directly and inspect the objective values explicitly.+***+*** The current model is:+***+***     Optimal in an extension field:+***       goal1 =          oo :: Integer+***       goal2 = [-oo .. oo] :: [Integer]+***       goal3 = [-oo .. oo] :: [Integer]+***       goal4 = [-oo .. oo] :: [Integer]+***       goal5 = [-oo .. oo] :: [Integer]+
+ SBVTestSuite/GoldFiles/qOpt_2.gold view
@@ -0,0 +1,119 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 1)+[GOOD] (define-fun s3 () Int 10)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "x1"+[GOOD] (declare-fun s6 () Int) ; tracks user variable "x2"+[GOOD] (declare-fun s10 () Int) ; tracks user variable "x3"+[GOOD] (declare-fun s14 () Int) ; tracks user variable "x4"+[GOOD] (declare-fun s18 () Int) ; tracks user variable "x5"+[GOOD] ; --- optimization tracker variables ---+[GOOD] (declare-fun s5 () Int) ; tracks goal1+[GOOD] (declare-fun s9 () Int) ; tracks goal2+[GOOD] (declare-fun s13 () Int) ; tracks goal3+[GOOD] (declare-fun s17 () Int) ; tracks goal4+[GOOD] (declare-fun s21 () Int) ; tracks goal5+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (<= s1 s0))+[GOOD] (define-fun s4 () Bool (< s0 s3))+[GOOD] (define-fun s7 () Bool (<= s1 s6))+[GOOD] (define-fun s8 () Bool (< s6 s3))+[GOOD] (define-fun s11 () Bool (<= s1 s10))+[GOOD] (define-fun s12 () Bool (< s10 s3))+[GOOD] (define-fun s15 () Bool (<= s1 s14))+[GOOD] (define-fun s16 () Bool (< s14 s3))+[GOOD] (define-fun s19 () Bool (<= s1 s18))+[GOOD] (define-fun s20 () Bool (< s18 s3))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[GOOD] (assert s4)+[GOOD] (assert s7)+[GOOD] (assert s8)+[GOOD] (assert s11)+[GOOD] (assert s12)+[GOOD] (assert s15)+[GOOD] (assert s16)+[GOOD] (assert s19)+[GOOD] (assert s20)+[GOOD] (assert (= s0 s5))+[GOOD] (maximize s5)+[GOOD] (assert (= s6 s9))+[GOOD] (maximize s9)+[GOOD] (assert (= s10 s13))+[GOOD] (maximize s13)+[GOOD] (assert (= s14 s17))+[GOOD] (maximize s17)+[GOOD] (assert (= s18 s21))+[GOOD] (maximize s21)+[SEND] (check-sat)+[RECV] sat+[SEND] (get-objectives)+[RECV] (objectives+        (s5 9)+        (s9 9)+        (s13 9)+        (s17 9)+        (s21 9)+       )+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-objectives)+[RECV] (objectives+        (s5 9)+        (s9 9)+        (s13 9)+        (s17 9)+        (s21 9)+       )+[SEND] (get-value (s6))+[RECV] ((s6 9))+[SEND] (get-objectives)+[RECV] (objectives+        (s5 9)+        (s9 9)+        (s13 9)+        (s17 9)+        (s21 9)+       )+[SEND] (get-value (s10))+[RECV] ((s10 9))+[SEND] (get-objectives)+[RECV] (objectives+        (s5 9)+        (s9 9)+        (s13 9)+        (s17 9)+        (s21 9)+       )+[SEND] (get-value (s14))+[RECV] ((s14 9))+[SEND] (get-objectives)+[RECV] (objectives+        (s5 9)+        (s9 9)+        (s13 9)+        (s17 9)+        (s21 9)+       )+[SEND] (get-value (s18))+[RECV] ((s18 9))+*** Solver   : Z3+*** Exit code: ExitSuccess++ FINAL:[9,9,9,9,9]+DONE!
SBVTestSuite/GoldFiles/qUninterp1.gold view
@@ -5,14 +5,18 @@ [GOOD] (set-option :smtlib2_compliant true) [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true)-[GOOD] (set-logic ALL) ; has user-defined sorts, using catch-all.-[GOOD] ; --- uninterpreted sorts ----[GOOD] (declare-datatypes ((L 0)) (((A) (B))))-[GOOD] (define-fun L_constrIndex ((x L)) Int-          (ite (= x A) 0 1)-       )+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has user-defined data-types, using catch-all. [GOOD] ; --- tuples --- [GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: L+[GOOD] (declare-datatype L (+           (A)+           (B)+       )) [GOOD] ; --- literal constants --- [GOOD] ; --- top level inputs --- [GOOD] (declare-fun s0 () L)@@ -26,9 +30,9 @@ [SEND] (check-sat) [RECV] sat [SEND] (get-value (s0))-[RECV] ((s0 B))+[RECV] ((s0 A)) *** Solver   : Z3 *** Exit code: ExitSuccess - FINAL:B+ FINAL:A DONE!
SBVTestSuite/GoldFiles/quantifiedB_0.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has quantified booleans, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/quantifiedB_1.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has quantified booleans, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/quantifiedB_2.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has quantified booleans, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/quantifiedB_3.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has quantified booleans, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/quantifiedB_4.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has quantified booleans, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/quantifiedB_5.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has quantified booleans, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/quantifiedB_6.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has quantified booleans, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/quantifiedB_7.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has quantified booleans, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/quantifiedB_8.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has quantified booleans, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/quantifiedB_9.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has quantified booleans, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/quantifiedB_A.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/quantifiedB_B.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/quantified_prove_existsexists_contradiction_p.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has quantified booleans, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/quantified_prove_existsexists_satisfiable_p.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has quantified booleans, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/quantified_prove_existsexists_thm_p.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has quantified booleans, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/quantified_prove_existsforall_contradiction_p.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has quantified booleans, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/quantified_prove_existsforall_satisfiable_p.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has quantified booleans, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/quantified_prove_existsforall_thm_p.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has quantified booleans, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/quantified_prove_forallexists_contradiction_p.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has quantified booleans, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/quantified_prove_forallexists_satisfiable_p.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has quantified booleans, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/quantified_prove_forallexists_thm_p.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has quantified booleans, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/quantified_prove_forallforall_contradiction_p.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has quantified booleans, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/quantified_prove_forallforall_satisfiable_p.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has quantified booleans, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/quantified_prove_forallforall_thm_p.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has quantified booleans, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/quantified_sat_existsexists_contradiction_c.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has quantified booleans, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/quantified_sat_existsexists_contradiction_p.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has quantified booleans, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/quantified_sat_existsexists_satisfiable_c.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has quantified booleans, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/quantified_sat_existsexists_satisfiable_p.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has quantified booleans, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/quantified_sat_existsexists_thm_c.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has quantified booleans, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/quantified_sat_existsexists_thm_p.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has quantified booleans, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/quantified_sat_existsforall_contradiction_c.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has quantified booleans, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/quantified_sat_existsforall_contradiction_p.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has quantified booleans, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/quantified_sat_existsforall_satisfiable_c.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has quantified booleans, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/quantified_sat_existsforall_satisfiable_p.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has quantified booleans, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/quantified_sat_existsforall_thm_c.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has quantified booleans, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/quantified_sat_existsforall_thm_p.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has quantified booleans, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/quantified_sat_forallexists_contradiction_c.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has quantified booleans, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/quantified_sat_forallexists_contradiction_p.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has quantified booleans, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/quantified_sat_forallexists_satisfiable_c.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has quantified booleans, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/quantified_sat_forallexists_satisfiable_p.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has quantified booleans, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/quantified_sat_forallexists_thm_c.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has quantified booleans, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/quantified_sat_forallexists_thm_p.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has quantified booleans, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/quantified_sat_forallforall_contradiction_c.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has quantified booleans, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/quantified_sat_forallforall_contradiction_p.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has quantified booleans, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/quantified_sat_forallforall_satisfiable_c.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has quantified booleans, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/quantified_sat_forallforall_satisfiable_p.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has quantified booleans, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/quantified_sat_forallforall_thm_c.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has quantified booleans, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/quantified_sat_forallforall_thm_p.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has quantified booleans, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/query1.gold view
@@ -15,7 +15,6 @@ [GOOD] (set-info :bad what) [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---@@ -73,7 +72,7 @@ [SEND] (get-info :reason-unknown) [RECV] (:reason-unknown "state of the most recent check-sat command is not known") [SEND] (get-info :version)-[RECV] (:version "4.15.3")+[RECV] (:version "4.17.0") [SEND] (get-info :status) [RECV] (:status sat) [GOOD] (define-fun s16 () Int 4)@@ -104,7 +103,7 @@ [SEND] (get-info :reason-unknown) [RECV] (:reason-unknown "unknown") [SEND] (get-info :version)-[RECV] (:version "4.15.3")+[RECV] (:version "4.17.0") [SEND] (get-info :memory) [RECV] unsupported [SEND] (get-info :time)@@ -165,19 +164,19 @@ [SEND] (get-proof) [RECV] ((set-logic ALL)        (proof-       (let (($x267 (<= s0 6)))-       (let (($x268 (not $x267)))-       (let (($x275 (or (not bey) $x268)))-       (let ((@x273 (monotonicity (rewrite (= (> s0 6) $x268)) (= (=> bey (> s0 6)) (=> bey $x268)))))-       (let ((@x279 (trans @x273 (rewrite (= (=> bey $x268) $x275)) (= (=> bey (> s0 6)) $x275))))-       (let ((@x280 (mp (asserted (=> bey (> s0 6))) @x279 $x275)))-       (let (($x292 (>= s0 6)))-       (let (($x291 (not $x292)))-       (let (($x299 (or (not hey) $x291)))-       (let ((@x290 (trans (rewrite (= (< s0 6) (not (<= 6 s0)))) (rewrite (= (not (<= 6 s0)) $x291)) (= (< s0 6) $x291))))-       (let ((@x303 (trans (monotonicity @x290 (= (=> hey (< s0 6)) (=> hey $x291))) (rewrite (= (=> hey $x291) $x299)) (= (=> hey (< s0 6)) $x299))))-       (let ((@x304 (mp (asserted (=> hey (< s0 6))) @x303 $x299)))-       (unit-resolution ((_ th-lemma arith farkas 1 1) (or $x292 $x267)) (unit-resolution @x304 (asserted hey) $x291) (unit-resolution @x280 (asserted bey) $x268) false)))))))))))))))+       (let (($x268 (<= s0 6)))+       (let (($x269 (not $x268)))+       (let (($x276 (or (not bey) $x269)))+       (let ((@x274 (monotonicity (rewrite (= (> s0 6) $x269)) (= (=> bey (> s0 6)) (=> bey $x269)))))+       (let ((@x280 (trans @x274 (rewrite (= (=> bey $x269) $x276)) (= (=> bey (> s0 6)) $x276))))+       (let ((@x281 (mp (asserted (=> bey (> s0 6))) @x280 $x276)))+       (let (($x293 (>= s0 6)))+       (let (($x292 (not $x293)))+       (let (($x300 (or (not hey) $x292)))+       (let ((@x291 (trans (rewrite (= (< s0 6) (not (<= 6 s0)))) (rewrite (= (not (<= 6 s0)) $x292)) (= (< s0 6) $x292))))+       (let ((@x304 (trans (monotonicity @x291 (= (=> hey (< s0 6)) (=> hey $x292))) (rewrite (= (=> hey $x292) $x300)) (= (=> hey (< s0 6)) $x300))))+       (let ((@x305 (mp (asserted (=> hey (< s0 6))) @x304 $x300)))+       (unit-resolution ((_ th-lemma arith farkas 1 1) (or $x293 $x268)) (unit-resolution @x305 (asserted hey) $x292) (unit-resolution @x281 (asserted bey) $x269) false))))))))))))))) [SEND, TimeOut: 90000ms] (get-assertions)  [RECV] ((! s7 :named |a > 0|)
SBVTestSuite/GoldFiles/queryArrays1.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; external query, using all logics.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/queryArrays10.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/queryArrays11.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has non-bitvector arrays, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/queryArrays12.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] (declare-datatype SBVRational ((SBV.Rational (sbv.rat.numerator Int) (sbv.rat.denominator Int))))
SBVTestSuite/GoldFiles/queryArrays13.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] (declare-datatype SBVRational ((SBV.Rational (sbv.rat.numerator Int) (sbv.rat.denominator Int))))
SBVTestSuite/GoldFiles/queryArrays14.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has rational values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] (declare-datatype SBVRational ((SBV.Rational (sbv.rat.numerator Int) (sbv.rat.denominator Int))))
SBVTestSuite/GoldFiles/queryArrays15.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has rational values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] (declare-datatype SBVRational ((SBV.Rational (sbv.rat.numerator Int) (sbv.rat.denominator Int))))
SBVTestSuite/GoldFiles/queryArrays16.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has rational values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] (declare-datatype SBVRational ((SBV.Rational (sbv.rat.numerator Int) (sbv.rat.denominator Int))))
SBVTestSuite/GoldFiles/queryArrays17.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has rational values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)                                            ((mkSBVTuple2 (proj_1_SBVTuple2 T1)
SBVTestSuite/GoldFiles/queryArrays2.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV) ; NB. User specified.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/queryArrays3.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV) ; NB. User specified.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/queryArrays4.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV) ; NB. User specified.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/queryArrays5.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; external query, using all logics.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/queryArrays6.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/queryArrays7.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/queryArrays8.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; external query, using all logics.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/queryArrays9.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/queryTables.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; external query, using all logics.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---@@ -34,17 +33,19 @@ [GOOD] (set-option :pp.max_depth      4294967295) [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      )+[GOOD] ; User defined ADT: Maybe+[GOOD] (declare-datatype Maybe (par (a) (+           (Nothing)+           (Just (getJust_1 a))+       ))) [GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)                                            ((mkSBVTuple2 (proj_1_SBVTuple2 T1)                                                          (proj_2_SBVTuple2 T2))))))-[GOOD] (declare-datatypes ((SBVMaybe 1)) ((par (T)-                                           ((nothing_SBVMaybe)-                                            (just_SBVMaybe (get_just_SBVMaybe T)))))) [GOOD] (define-fun s13 () (_ BitVec 16) #x000a) [GOOD] (define-fun s15 () (_ BitVec 16) (bvneg #x0001)) [GOOD] (define-fun s17 () (_ BitVec 16) #x0007)-[GOOD] (define-fun s19 () (SBVMaybe (_ BitVec 16)) ((as just_SBVMaybe (SBVMaybe (_ BitVec 16))) #x0000))-[GOOD] (define-fun s20 () (SBVMaybe (_ BitVec 16)) (as nothing_SBVMaybe (SBVMaybe (_ BitVec 16))))+[GOOD] (define-fun s19 () (Maybe (_ BitVec 16)) ((as Just (Maybe (_ BitVec 16))) #x0000))+[GOOD] (define-fun s20 () (Maybe (_ BitVec 16)) (as Nothing (Maybe (_ BitVec 16)))) [GOOD] (define-fun s28 () (_ BitVec 16) #x00ff) [GOOD] (declare-fun table0 ((_ BitVec 16)) (_ BitVec 16)) [GOOD] (define-fun s10 () (SBVTuple2 (_ BitVec 16) (_ BitVec 16)) ((as mkSBVTuple2 (SBVTuple2 (_ BitVec 16) (_ BitVec 16))) s0 s6))@@ -53,10 +54,10 @@ [GOOD] (define-fun s14 () Bool (= s11 s13)) [GOOD] (define-fun s16 () (_ BitVec 16) (proj_2_SBVTuple2 s10)) [GOOD] (define-fun s18 () Bool (= s16 s17))-[GOOD] (define-fun s21 () (SBVMaybe (_ BitVec 16)) (ite s18 s19 s20))-[GOOD] (define-fun s22 () (_ BitVec 16) (get_just_SBVMaybe s21))-[GOOD] (define-fun s23 () Bool ((_ is (nothing_SBVMaybe () (SBVMaybe (_ BitVec 16)))) s21))-[GOOD] (define-fun s24 () (_ BitVec 16) (ite s23 s15 s22))+[GOOD] (define-fun s21 () (Maybe (_ BitVec 16)) (ite s18 s19 s20))+[GOOD] (define-fun s22 () Bool ((as is-Nothing Bool) s21))+[GOOD] (define-fun s23 () (_ BitVec 16) (getJust_1 s21))+[GOOD] (define-fun s24 () (_ BitVec 16) (ite s22 s15 s23)) [GOOD] (define-fun s25 () (_ BitVec 16) (ite (or (bvslt s24 #x0000) (bvsle #x0001 s24)) s15 (table0 s24))) [GOOD] (define-fun s26 () Bool (= s1 s25)) [GOOD] (define-fun s27 () Bool (= s1 s24))@@ -107,10 +108,10 @@ [GOOD] (define-fun s60 () Bool (= s1 s59)) [GOOD] (define-fun s61 () Bool (= s13 s44)) [GOOD] (define-fun s62 () Bool (= s17 s46))-[GOOD] (define-fun s63 () (SBVMaybe (_ BitVec 16)) (ite s62 s19 s20))-[GOOD] (define-fun s64 () (_ BitVec 16) (get_just_SBVMaybe s63))-[GOOD] (define-fun s65 () Bool ((_ is (nothing_SBVMaybe () (SBVMaybe (_ BitVec 16)))) s63))-[GOOD] (define-fun s66 () (_ BitVec 16) (ite s65 s15 s64))+[GOOD] (define-fun s63 () (Maybe (_ BitVec 16)) (ite s62 s19 s20))+[GOOD] (define-fun s64 () Bool ((as is-Nothing Bool) s63))+[GOOD] (define-fun s65 () (_ BitVec 16) (getJust_1 s63))+[GOOD] (define-fun s66 () (_ BitVec 16) (ite s64 s15 s65)) [GOOD] (define-fun s67 () (_ BitVec 16) (ite (or (bvslt s66 #x0000) (bvsle #x0001 s66)) s15 (table2 s66))) [GOOD] (define-fun s68 () Bool (= s1 s67)) [GOOD] (define-fun s69 () Bool (= s1 s66))
SBVTestSuite/GoldFiles/query_Chars1.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/query_Interpolant1.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :produce-interpolants true) [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/query_Interpolant2.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :produce-interpolants true) [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/query_Interpolant3.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/query_Interpolant4.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/query_ListOfMaybe.gold view
@@ -9,45 +9,42 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums ----[GOOD] (declare-datatypes ((SBVMaybe 1)) ((par (T)-                                           ((nothing_SBVMaybe)-                                            (just_SBVMaybe (get_just_SBVMaybe T))))))+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Maybe+[GOOD] (declare-datatype Maybe (par (a) (+           (Nothing)+           (Just (getJust_1 a))+       ))) [GOOD] ; --- literal constants ----[GOOD] (define-fun s2 () Int 2)-[GOOD] (define-fun s4 () Int 0)-[GOOD] (define-fun s8 () Int 1)+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s4 () Int 1) [GOOD] ; --- top level inputs ----[GOOD] (declare-fun s0 () (Seq (SBVMaybe String))) ; tracks user variable "lst"-[GOOD] (assert (forall ((seq0 Int)) (=> (and (>= seq0 0) (< seq0 (seq.len s0))) (=> ((_ is (just_SBVMaybe (String) (SBVMaybe String))) (seq.nth s0 seq0)) (= 1 (str.len (get_just_SBVMaybe (seq.nth s0 seq0))))))))+[GOOD] (declare-fun s0 () (Seq (Maybe String))) ; tracks user variable "lst"+[GOOD] (assert (forall ((seq0 Int)) (=> (and (>= seq0 0) (< seq0 (seq.len s0))) (= 1 (str.len (getJust_1 (seq.nth s0 seq0))))))) [GOOD] ; --- constant tables --- [GOOD] ; --- non-constant tables --- [GOOD] ; --- uninterpreted constants --- [GOOD] ; --- user defined functions --- [GOOD] ; --- assignments ----[GOOD] (define-fun s1 () Int (seq.len s0))-[GOOD] (define-fun s3 () Bool (= s1 s2))-[GOOD] (define-fun s5 () (SBVMaybe String) (seq.nth s0 s4))-[GOOD] (define-fun s6 () Bool ((_ is (nothing_SBVMaybe () (SBVMaybe String))) s5))-[GOOD] (define-fun s7 () Bool (ite s6 false true))-[GOOD] (define-fun s9 () Int (- s1 s8))-[GOOD] (define-fun s10 () (Seq (SBVMaybe String)) (seq.extract s0 s8 s9))-[GOOD] (define-fun s11 () (SBVMaybe String) (seq.nth s10 s4))-[GOOD] (define-fun s12 () Bool ((_ is (nothing_SBVMaybe () (SBVMaybe String))) s11))-[GOOD] (define-fun s13 () Bool (ite s12 true false))+[GOOD] (define-fun s2 () (Maybe String) (seq.nth s0 s1))+[GOOD] (define-fun s3 () Bool ((as is-Just Bool) s2))+[GOOD] (define-fun s5 () Int (seq.len s0))+[GOOD] (define-fun s6 () Int (- s5 s4))+[GOOD] (define-fun s7 () (Seq (Maybe String)) (seq.extract s0 s4 s6))+[GOOD] (define-fun s8 () (Maybe String) (seq.nth s7 s1))+[GOOD] (define-fun s9 () Bool ((as is-Nothing Bool) s8)) [GOOD] ; --- delayedEqualities --- [GOOD] ; --- formula --- [GOOD] (assert s3)-[GOOD] (assert s7)-[GOOD] (assert s13)+[GOOD] (assert s9) [SEND] (check-sat) [RECV] sat [SEND] (get-value (s0))-[RECV] ((s0 (seq.++ (seq.unit (just_SBVMaybe "A")) (seq.unit nothing_SBVMaybe))))+[RECV] ((s0 (seq.unit (Just "A")))) *** Solver   : Z3 *** Exit code: ExitSuccess  FINAL OUTPUT:-[Just 'A',Nothing]+[Just 'A']
SBVTestSuite/GoldFiles/query_ListOfSum.gold view
@@ -9,45 +9,41 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums ----[GOOD] (declare-datatypes ((SBVEither 2)) ((par (T1 T2)-                                           ((left_SBVEither  (get_left_SBVEither  T1))-                                            (right_SBVEither (get_right_SBVEither T2))))))+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Either+[GOOD] (declare-datatype Either (par (a b) (+           (Left (getLeft_1 a))+           (Right (getRight_1 b))+       ))) [GOOD] ; --- literal constants ----[GOOD] (define-fun s2 () Int 2)-[GOOD] (define-fun s4 () Int 0)-[GOOD] (define-fun s8 () Int 1)+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s4 () Int 1) [GOOD] ; --- top level inputs ----[GOOD] (declare-fun s0 () (Seq (SBVEither Int String))) ; tracks user variable "lst"-[GOOD] (assert (forall ((seq0 Int)) (=> (and (>= seq0 0) (< seq0 (seq.len s0))) (=> ((_ is (right_SBVEither (String) (SBVEither Int String))) (seq.nth s0 seq0)) (= 1 (str.len (get_right_SBVEither (seq.nth s0 seq0))))))))+[GOOD] (declare-fun s0 () (Seq (Either Int Int))) ; tracks user variable "lst" [GOOD] ; --- constant tables --- [GOOD] ; --- non-constant tables --- [GOOD] ; --- uninterpreted constants --- [GOOD] ; --- user defined functions --- [GOOD] ; --- assignments ----[GOOD] (define-fun s1 () Int (seq.len s0))-[GOOD] (define-fun s3 () Bool (= s1 s2))-[GOOD] (define-fun s5 () (SBVEither Int String) (seq.nth s0 s4))-[GOOD] (define-fun s6 () Bool ((_ is (left_SBVEither (Int) (SBVEither Int String))) s5))-[GOOD] (define-fun s7 () Bool (ite s6 true false))-[GOOD] (define-fun s9 () Int (- s1 s8))-[GOOD] (define-fun s10 () (Seq (SBVEither Int String)) (seq.extract s0 s8 s9))-[GOOD] (define-fun s11 () (SBVEither Int String) (seq.nth s10 s4))-[GOOD] (define-fun s12 () Bool ((_ is (left_SBVEither (Int) (SBVEither Int String))) s11))-[GOOD] (define-fun s13 () Bool (ite s12 false true))+[GOOD] (define-fun s2 () (Either Int Int) (seq.nth s0 s1))+[GOOD] (define-fun s3 () Bool ((as is-Left Bool) s2))+[GOOD] (define-fun s5 () Int (seq.len s0))+[GOOD] (define-fun s6 () Int (- s5 s4))+[GOOD] (define-fun s7 () (Seq (Either Int Int)) (seq.extract s0 s4 s6))+[GOOD] (define-fun s8 () (Either Int Int) (seq.nth s7 s1))+[GOOD] (define-fun s9 () Bool ((as is-Right Bool) s8)) [GOOD] ; --- delayedEqualities --- [GOOD] ; --- formula --- [GOOD] (assert s3)-[GOOD] (assert s7)-[GOOD] (assert s13)+[GOOD] (assert s9) [SEND] (check-sat) [RECV] sat [SEND] (get-value (s0))-[RECV] ((s0 (seq.++ (seq.unit (left_SBVEither 3)) (seq.unit (right_SBVEither "A")))))+[RECV] ((s0 (seq.unit (Left 3)))) *** Solver   : Z3 *** Exit code: ExitSuccess  FINAL OUTPUT:-[Left 3,Right 'A']+[Left 3]
SBVTestSuite/GoldFiles/query_Lists1.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/query_Maybe.gold view
@@ -9,32 +9,35 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums ----[GOOD] (declare-datatypes ((SBVMaybe 1)) ((par (T)-                                           ((nothing_SBVMaybe)-                                            (just_SBVMaybe (get_just_SBVMaybe T))))))+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Maybe+[GOOD] (declare-datatype Maybe (par (a) (+           (Nothing)+           (Just (getJust_1 a))+       ))) [GOOD] ; --- literal constants ----[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () Int 1) [GOOD] ; --- top level inputs ----[GOOD] (declare-fun s0 () (SBVMaybe Int)) ; tracks user variable "a"+[GOOD] (declare-fun s0 () (Maybe Int)) ; tracks user variable "a" [GOOD] ; --- constant tables --- [GOOD] ; --- non-constant tables --- [GOOD] ; --- uninterpreted constants --- [GOOD] ; --- user defined functions --- [GOOD] ; --- assignments ----[GOOD] (define-fun s1 () Int (get_just_SBVMaybe s0))-[GOOD] (define-fun s3 () Bool (= s1 s2))-[GOOD] (define-fun s4 () Bool ((_ is (nothing_SBVMaybe () (SBVMaybe Int))) s0))-[GOOD] (define-fun s5 () Bool (ite s4 false s3))+[GOOD] (define-fun s1 () Bool ((as is-Nothing Bool) s0))+[GOOD] (define-fun s2 () Int (getJust_1 s0))+[GOOD] (define-fun s4 () Bool (= s2 s3))+[GOOD] (define-fun s5 () Bool (not s1))+[GOOD] (define-fun s6 () Bool (and s4 s5)) [GOOD] ; --- delayedEqualities --- [GOOD] ; --- formula ----[GOOD] (assert s5)+[GOOD] (assert s6) [SEND] (check-sat) [RECV] sat [SEND] (get-value (s0))-[RECV] ((s0 (just_SBVMaybe 1)))+[RECV] ((s0 (Just 1))) *** Solver   : Z3 *** Exit code: ExitSuccess 
SBVTestSuite/GoldFiles/query_Strings1.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has strings, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---@@ -17,7 +16,7 @@ [GOOD] ; --- uninterpreted constants --- [GOOD] ; --- user defined functions --- [GOOD] ; --- assignments ----[GOOD] (define-fun s1 () Bool (str.in.re s0 ((_ re.loop 5 5) (str.to.re "xyz"))))+[GOOD] (define-fun s1 () Bool (str.in_re s0 ((_ re.loop 5 5) (str.to_re "xyz")))) [GOOD] ; --- delayedEqualities --- [GOOD] ; --- formula --- [GOOD] (assert s1)
SBVTestSuite/GoldFiles/query_SumMaybeBoth.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; external query, using all logics.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---@@ -21,29 +20,31 @@ [GOOD] (set-option :pp.max_depth      4294967295) [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      )-[GOOD] (declare-datatypes ((SBVEither 2)) ((par (T1 T2)-                                           ((left_SBVEither  (get_left_SBVEither  T1))-                                            (right_SBVEither (get_right_SBVEither T2))))))-[GOOD] (declare-fun s0 () (SBVEither Int Int))+[GOOD] ; User defined ADT: Either+[GOOD] (declare-datatype Either (par (a b) (+           (Left (getLeft_1 a))+           (Right (getRight_1 b))+       )))+[GOOD] (declare-fun s0 () (Either Int Int)) [GOOD] (set-option :pp.max_depth      4294967295) [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      )-[GOOD] (declare-datatypes ((SBVMaybe 1)) ((par (T)-                                           ((nothing_SBVMaybe)-                                            (just_SBVMaybe (get_just_SBVMaybe T))))))-[GOOD] (declare-fun s1 () (SBVMaybe Int))-[GOOD] (define-fun s2 () Bool ((_ is (left_SBVEither (Int) (SBVEither Int Int))) s0))-[GOOD] (define-fun s3 () Bool (ite s2 true false))+[GOOD] ; User defined ADT: Maybe+[GOOD] (declare-datatype Maybe (par (a) (+           (Nothing)+           (Just (getJust_1 a))+       )))+[GOOD] (declare-fun s1 () (Maybe Int))+[GOOD] (define-fun s2 () Bool ((as is-Left Bool) s0))+[GOOD] (assert s2)+[GOOD] (define-fun s3 () Bool ((as is-Just Bool) s1)) [GOOD] (assert s3)-[GOOD] (define-fun s4 () Bool ((_ is (nothing_SBVMaybe () (SBVMaybe Int))) s1))-[GOOD] (define-fun s5 () Bool (ite s4 false true))-[GOOD] (assert s5) [SEND] (check-sat) [RECV] sat [SEND] (get-value (s0))-[RECV] ((s0 (left_SBVEither 2)))+[RECV] ((s0 (Left 2))) [SEND] (get-value (s1))-[RECV] ((s1 (just_SBVMaybe 3)))+[RECV] ((s1 (Just 3))) *** Solver   : Z3 *** Exit code: ExitSuccess 
SBVTestSuite/GoldFiles/query_Sums.gold view
@@ -9,33 +9,35 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums ----[GOOD] (declare-datatypes ((SBVEither 2)) ((par (T1 T2)-                                           ((left_SBVEither  (get_left_SBVEither  T1))-                                            (right_SBVEither (get_right_SBVEither T2))))))+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Either+[GOOD] (declare-datatype Either (par (a b) (+           (Left (getLeft_1 a))+           (Right (getRight_1 b))+       ))) [GOOD] ; --- literal constants ----[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () Int 1) [GOOD] ; --- top level inputs ----[GOOD] (declare-fun s0 () (SBVEither Int String)) ; tracks user variable "a"-[GOOD] (assert (=> ((_ is (right_SBVEither (String) (SBVEither Int String))) s0) (= 1 (str.len (get_right_SBVEither s0)))))+[GOOD] (declare-fun s0 () (Either Int String)) ; tracks user variable "a"+[GOOD] (assert (= 1 (str.len (getRight_1 s0)))) [GOOD] ; --- constant tables --- [GOOD] ; --- non-constant tables --- [GOOD] ; --- uninterpreted constants --- [GOOD] ; --- user defined functions --- [GOOD] ; --- assignments ----[GOOD] (define-fun s1 () Int (get_left_SBVEither s0))-[GOOD] (define-fun s3 () Bool (= s1 s2))-[GOOD] (define-fun s4 () Bool ((_ is (left_SBVEither (Int) (SBVEither Int String))) s0))-[GOOD] (define-fun s5 () Bool (ite s4 s3 false))+[GOOD] (define-fun s1 () Bool ((as is-Left Bool) s0))+[GOOD] (define-fun s2 () Int (getLeft_1 s0))+[GOOD] (define-fun s4 () Bool (= s2 s3))+[GOOD] (define-fun s5 () Bool (and s1 s4)) [GOOD] ; --- delayedEqualities --- [GOOD] ; --- formula --- [GOOD] (assert s5) [SEND] (check-sat) [RECV] sat [SEND] (get-value (s0))-[RECV] ((s0 (left_SBVEither 1)))+[RECV] ((s0 (Left 1))) *** Solver   : Z3 *** Exit code: ExitSuccess 
SBVTestSuite/GoldFiles/query_Tuples1.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)                                            ((mkSBVTuple2 (proj_1_SBVTuple2 T1)
SBVTestSuite/GoldFiles/query_Tuples2.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] (declare-datatypes ((SBVTuple0 0)) (((mkSBVTuple0)))) [GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)
SBVTestSuite/GoldFiles/query_abc.gold view
@@ -6,7 +6,6 @@ [ISSUE] (set-option :diagnostic-output-channel "stdout") [ISSUE] (set-option :produce-models true) [ISSUE] (set-logic ALL) ; external query, using all logics.-[ISSUE] ; --- uninterpreted sorts --- [ISSUE] ; --- tuples --- [ISSUE] ; --- sums --- [ISSUE] ; --- literal constants ---
SBVTestSuite/GoldFiles/query_bitwuzla.gold view
@@ -4,7 +4,6 @@ [GOOD] (set-option :global-declarations true) [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; external query, using all logics.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/query_boolector.gold view
@@ -4,7 +4,6 @@ [GOOD] (set-option :global-declarations true) [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; external query, using all logics.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/query_cvc4.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; external query, using all logics.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/query_cvc5.gold view
@@ -4,8 +4,7 @@ [GOOD] (set-option :global-declarations true) [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true)-[GOOD] (set-logic ALL) ; external query, using all logics.-[GOOD] ; --- uninterpreted sorts ---+[GOOD] (set-logic HO_ALL) ; external query, using all logics. [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/query_mathsat.gold view
@@ -5,7 +5,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; external query, using all logics.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/query_sumMergeEither1.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; external query, using all logics.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---@@ -21,22 +20,23 @@ [GOOD] (set-option :pp.max_depth      4294967295) [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      )-[GOOD] (declare-datatypes ((SBVEither 2)) ((par (T1 T2)-                                           ((left_SBVEither  (get_left_SBVEither  T1))-                                            (right_SBVEither (get_right_SBVEither T2))))))-[GOOD] (declare-fun s0 () (SBVEither Int Bool))-[GOOD] (declare-fun s1 () (SBVEither Int Bool))+[GOOD] ; User defined ADT: Either+[GOOD] (declare-datatype Either (par (a b) (+           (Left (getLeft_1 a))+           (Right (getRight_1 b))+       )))+[GOOD] (declare-fun s0 () (Either Int Bool))+[GOOD] (declare-fun s1 () (Either Int Bool)) [GOOD] (declare-fun s2 () Bool)-[GOOD] (define-fun s3 () (SBVEither Int Bool) (ite s2 s0 s1))-[GOOD] (define-fun s4 () Bool ((_ is (left_SBVEither (Int) (SBVEither Int Bool))) s3))-[GOOD] (define-fun s5 () Bool (ite s4 true false))-[GOOD] (assert s5)+[GOOD] (define-fun s3 () (Either Int Bool) (ite s2 s0 s1))+[GOOD] (define-fun s4 () Bool ((as is-Left Bool) s3))+[GOOD] (assert s4) [SEND] (check-sat) [RECV] sat [SEND] (get-value (s0))-[RECV] ((s0 (left_SBVEither 2)))+[RECV] ((s0 (Left 2))) [SEND] (get-value (s1))-[RECV] ((s1 (left_SBVEither 2)))+[RECV] ((s1 (Left 2))) [SEND] (get-value (s2)) [RECV] ((s2 false)) *** Solver   : Z3
SBVTestSuite/GoldFiles/query_sumMergeEither2.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; external query, using all logics.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---@@ -21,22 +20,23 @@ [GOOD] (set-option :pp.max_depth      4294967295) [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      )-[GOOD] (declare-datatypes ((SBVEither 2)) ((par (T1 T2)-                                           ((left_SBVEither  (get_left_SBVEither  T1))-                                            (right_SBVEither (get_right_SBVEither T2))))))-[GOOD] (declare-fun s0 () (SBVEither Int Bool))-[GOOD] (declare-fun s1 () (SBVEither Int Bool))+[GOOD] ; User defined ADT: Either+[GOOD] (declare-datatype Either (par (a b) (+           (Left (getLeft_1 a))+           (Right (getRight_1 b))+       )))+[GOOD] (declare-fun s0 () (Either Int Bool))+[GOOD] (declare-fun s1 () (Either Int Bool)) [GOOD] (declare-fun s2 () Bool)-[GOOD] (define-fun s3 () (SBVEither Int Bool) (ite s2 s0 s1))-[GOOD] (define-fun s4 () Bool ((_ is (left_SBVEither (Int) (SBVEither Int Bool))) s3))-[GOOD] (define-fun s5 () Bool (ite s4 false true))-[GOOD] (assert s5)+[GOOD] (define-fun s3 () (Either Int Bool) (ite s2 s0 s1))+[GOOD] (define-fun s4 () Bool ((as is-Right Bool) s3))+[GOOD] (assert s4) [SEND] (check-sat) [RECV] sat [SEND] (get-value (s0))-[RECV] ((s0 (right_SBVEither false)))+[RECV] ((s0 (Right false))) [SEND] (get-value (s1))-[RECV] ((s1 (right_SBVEither false)))+[RECV] ((s1 (Right false))) [SEND] (get-value (s2)) [RECV] ((s2 false)) *** Solver   : Z3
SBVTestSuite/GoldFiles/query_sumMergeMaybe1.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; external query, using all logics.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---@@ -21,22 +20,23 @@ [GOOD] (set-option :pp.max_depth      4294967295) [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      )-[GOOD] (declare-datatypes ((SBVMaybe 1)) ((par (T)-                                           ((nothing_SBVMaybe)-                                            (just_SBVMaybe (get_just_SBVMaybe T))))))-[GOOD] (declare-fun s0 () (SBVMaybe Int))-[GOOD] (declare-fun s1 () (SBVMaybe Int))+[GOOD] ; User defined ADT: Maybe+[GOOD] (declare-datatype Maybe (par (a) (+           (Nothing)+           (Just (getJust_1 a))+       )))+[GOOD] (declare-fun s0 () (Maybe Int))+[GOOD] (declare-fun s1 () (Maybe Int)) [GOOD] (declare-fun s2 () Bool)-[GOOD] (define-fun s3 () (SBVMaybe Int) (ite s2 s0 s1))-[GOOD] (define-fun s4 () Bool ((_ is (nothing_SBVMaybe () (SBVMaybe Int))) s3))-[GOOD] (define-fun s5 () Bool (ite s4 true false))-[GOOD] (assert s5)+[GOOD] (define-fun s3 () (Maybe Int) (ite s2 s0 s1))+[GOOD] (define-fun s4 () Bool ((as is-Nothing Bool) s3))+[GOOD] (assert s4) [SEND] (check-sat) [RECV] sat [SEND] (get-value (s0))-[RECV] ((s0 nothing_SBVMaybe))+[RECV] ((s0 Nothing)) [SEND] (get-value (s1))-[RECV] ((s1 nothing_SBVMaybe))+[RECV] ((s1 Nothing)) [SEND] (get-value (s2)) [RECV] ((s2 false)) *** Solver   : Z3
SBVTestSuite/GoldFiles/query_sumMergeMaybe2.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; external query, using all logics.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---@@ -21,22 +20,23 @@ [GOOD] (set-option :pp.max_depth      4294967295) [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      )-[GOOD] (declare-datatypes ((SBVMaybe 1)) ((par (T)-                                           ((nothing_SBVMaybe)-                                            (just_SBVMaybe (get_just_SBVMaybe T))))))-[GOOD] (declare-fun s0 () (SBVMaybe Int))-[GOOD] (declare-fun s1 () (SBVMaybe Int))+[GOOD] ; User defined ADT: Maybe+[GOOD] (declare-datatype Maybe (par (a) (+           (Nothing)+           (Just (getJust_1 a))+       )))+[GOOD] (declare-fun s0 () (Maybe Int))+[GOOD] (declare-fun s1 () (Maybe Int)) [GOOD] (declare-fun s2 () Bool)-[GOOD] (define-fun s3 () (SBVMaybe Int) (ite s2 s0 s1))-[GOOD] (define-fun s4 () Bool ((_ is (nothing_SBVMaybe () (SBVMaybe Int))) s3))-[GOOD] (define-fun s5 () Bool (ite s4 false true))-[GOOD] (assert s5)+[GOOD] (define-fun s3 () (Maybe Int) (ite s2 s0 s1))+[GOOD] (define-fun s4 () Bool ((as is-Just Bool) s3))+[GOOD] (assert s4) [SEND] (check-sat) [RECV] sat [SEND] (get-value (s0))-[RECV] ((s0 (just_SBVMaybe 2)))+[RECV] ((s0 (Just 2))) [SEND] (get-value (s1))-[RECV] ((s1 (just_SBVMaybe 2)))+[RECV] ((s1 (Just 2))) [SEND] (get-value (s2)) [RECV] ((s2 false)) *** Solver   : Z3
SBVTestSuite/GoldFiles/query_uiSat_test1.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; NB. User specified.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/query_uiSat_test2.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; NB. User specified.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/query_uisatex1.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---@@ -23,26 +22,26 @@ [GOOD] (define-fun s21 () Int 5) [GOOD] (define-fun s23 () Int 7) [GOOD] (define-fun s25 () Int 6)-[GOOD] (define-fun s29 () (_ FloatingPoint  8 24) ((_ to_fp 8 24) roundNearestTiesToEven (/ 4508877.0 524288.0)))-[GOOD] (define-fun s32 () (_ FloatingPoint  8 24) ((_ to_fp 8 24) roundNearestTiesToEven (/ 5033165.0 524288.0)))+[GOOD] (define-fun s29 () (_ FloatingPoint  8 24) (fp #b0 #b10000010 #b00010011001100110011010))+[GOOD] (define-fun s32 () (_ FloatingPoint  8 24) (fp #b0 #b10000010 #b00110011001100110011010)) [GOOD] (define-fun s33 () Int 121) [GOOD] (define-fun s38 () Int 8) [GOOD] (define-fun s40 () (_ FloatingPoint  8 24) (_ +oo 8 24)) [GOOD] (define-fun s42 () String (_ char #x63)) [GOOD] (define-fun s43 () String "hey")-[GOOD] (define-fun s45 () (_ FloatingPoint  8 24) ((_ to_fp 8 24) roundNearestTiesToEven (/ 78.0 1.0)))+[GOOD] (define-fun s45 () (_ FloatingPoint  8 24) (fp #b0 #b10000101 #b00111000000000000000000)) [GOOD] (define-fun s47 () String "tey")-[GOOD] (define-fun s49 () (_ FloatingPoint  8 24) ((_ to_fp 8 24) roundNearestTiesToEven (/ 92.0 1.0)))+[GOOD] (define-fun s49 () (_ FloatingPoint  8 24) (fp #b0 #b10000101 #b01110000000000000000000)) [GOOD] (define-fun s51 () String (_ char #x72)) [GOOD] (define-fun s52 () String "foo")-[GOOD] (define-fun s54 () (_ FloatingPoint  8 24) ((_ to_fp 8 24) roundNearestTiesToEven (/ 7.0 2.0)))+[GOOD] (define-fun s54 () (_ FloatingPoint  8 24) (fp #b0 #b10000000 #b11000000000000000000000)) [GOOD] (define-fun s56 () (Seq Int) (seq.++ (seq.unit 1) (seq.unit 2) (seq.unit 3)))-[GOOD] (define-fun s57 () (Seq (_ FloatingPoint  8 24)) (seq.++ (seq.unit ((_ to_fp 8 24) roundNearestTiesToEven (/ 8598323.0 1048576.0))) (seq.unit ((_ to_fp 8 24) roundNearestTiesToEven (/ 3.0 1.0)))))+[GOOD] (define-fun s57 () (Seq (_ FloatingPoint  8 24)) (seq.++ (seq.unit (fp #b0 #b10000010 #b00000110011001100110011)) (seq.unit (fp #b0 #b10000000 #b10000000000000000000000)))) [GOOD] (define-fun s60 () (Seq Int) (seq.++ (seq.unit 9) (seq.unit 5)))-[GOOD] (define-fun s61 () (Seq (_ FloatingPoint  8 24)) (seq.++ (seq.unit ((_ to_fp 8 24) roundNearestTiesToEven (/ 8598323.0 1048576.0))) (seq.unit ((_ to_fp 8 24) roundNearestTiesToEven (/ 9.0 1.0)))))+[GOOD] (define-fun s61 () (Seq (_ FloatingPoint  8 24)) (seq.++ (seq.unit (fp #b0 #b10000010 #b00000110011001100110011)) (seq.unit (fp #b0 #b10000010 #b00100000000000000000000)))) [GOOD] (define-fun s63 () Int 21) [GOOD] (define-fun s65 () (Seq Int) (seq.unit 5))-[GOOD] (define-fun s66 () (Seq (_ FloatingPoint  8 24)) (seq.++ (seq.unit ((_ to_fp 8 24) roundNearestTiesToEven (/ 8598323.0 1048576.0))) (seq.unit (_ +zero 8 24))))+[GOOD] (define-fun s66 () (Seq (_ FloatingPoint  8 24)) (seq.++ (seq.unit (fp #b0 #b10000010 #b00000110011001100110011)) (seq.unit (_ +zero 8 24)))) [GOOD] (define-fun s68 () Int 210) [GOOD] ; --- top level inputs --- [GOOD] (declare-fun s0 () Int)
SBVTestSuite/GoldFiles/query_uisatex2.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---@@ -23,26 +22,26 @@ [GOOD] (define-fun s21 () Int 5) [GOOD] (define-fun s23 () Int 7) [GOOD] (define-fun s25 () Int 6)-[GOOD] (define-fun s29 () (_ FloatingPoint  8 24) ((_ to_fp 8 24) roundNearestTiesToEven (/ 4508877.0 524288.0)))-[GOOD] (define-fun s32 () (_ FloatingPoint  8 24) ((_ to_fp 8 24) roundNearestTiesToEven (/ 5033165.0 524288.0)))+[GOOD] (define-fun s29 () (_ FloatingPoint  8 24) (fp #b0 #b10000010 #b00010011001100110011010))+[GOOD] (define-fun s32 () (_ FloatingPoint  8 24) (fp #b0 #b10000010 #b00110011001100110011010)) [GOOD] (define-fun s33 () Int 121) [GOOD] (define-fun s38 () Int 8) [GOOD] (define-fun s40 () (_ FloatingPoint  8 24) (_ +oo 8 24)) [GOOD] (define-fun s42 () String (_ char #x63)) [GOOD] (define-fun s43 () String "hey")-[GOOD] (define-fun s45 () (_ FloatingPoint  8 24) ((_ to_fp 8 24) roundNearestTiesToEven (/ 78.0 1.0)))+[GOOD] (define-fun s45 () (_ FloatingPoint  8 24) (fp #b0 #b10000101 #b00111000000000000000000)) [GOOD] (define-fun s47 () String "tey")-[GOOD] (define-fun s49 () (_ FloatingPoint  8 24) ((_ to_fp 8 24) roundNearestTiesToEven (/ 92.0 1.0)))+[GOOD] (define-fun s49 () (_ FloatingPoint  8 24) (fp #b0 #b10000101 #b01110000000000000000000)) [GOOD] (define-fun s51 () String (_ char #x72)) [GOOD] (define-fun s52 () String "foo")-[GOOD] (define-fun s54 () (_ FloatingPoint  8 24) ((_ to_fp 8 24) roundNearestTiesToEven (/ 7.0 2.0)))+[GOOD] (define-fun s54 () (_ FloatingPoint  8 24) (fp #b0 #b10000000 #b11000000000000000000000)) [GOOD] (define-fun s56 () (Seq Int) (seq.++ (seq.unit 1) (seq.unit 2) (seq.unit 3)))-[GOOD] (define-fun s57 () (Seq (_ FloatingPoint  8 24)) (seq.++ (seq.unit ((_ to_fp 8 24) roundNearestTiesToEven (/ 8598323.0 1048576.0))) (seq.unit ((_ to_fp 8 24) roundNearestTiesToEven (/ 3.0 1.0)))))+[GOOD] (define-fun s57 () (Seq (_ FloatingPoint  8 24)) (seq.++ (seq.unit (fp #b0 #b10000010 #b00000110011001100110011)) (seq.unit (fp #b0 #b10000000 #b10000000000000000000000)))) [GOOD] (define-fun s60 () (Seq Int) (seq.++ (seq.unit 9) (seq.unit 5)))-[GOOD] (define-fun s61 () (Seq (_ FloatingPoint  8 24)) (seq.++ (seq.unit ((_ to_fp 8 24) roundNearestTiesToEven (/ 8598323.0 1048576.0))) (seq.unit ((_ to_fp 8 24) roundNearestTiesToEven (/ 9.0 1.0)))))+[GOOD] (define-fun s61 () (Seq (_ FloatingPoint  8 24)) (seq.++ (seq.unit (fp #b0 #b10000010 #b00000110011001100110011)) (seq.unit (fp #b0 #b10000010 #b00100000000000000000000)))) [GOOD] (define-fun s63 () Int 21) [GOOD] (define-fun s65 () (Seq Int) (seq.unit 5))-[GOOD] (define-fun s66 () (Seq (_ FloatingPoint  8 24)) (seq.++ (seq.unit ((_ to_fp 8 24) roundNearestTiesToEven (/ 8598323.0 1048576.0))) (seq.unit (_ +zero 8 24))))+[GOOD] (define-fun s66 () (Seq (_ FloatingPoint  8 24)) (seq.++ (seq.unit (fp #b0 #b10000010 #b00000110011001100110011)) (seq.unit (_ +zero 8 24)))) [GOOD] (define-fun s68 () Int 210) [GOOD] ; --- top level inputs --- [GOOD] (declare-fun s0 () Int)
SBVTestSuite/GoldFiles/query_uisatex3.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---@@ -34,5 +33,5 @@ *** Exit code: ExitSuccess   FINAL:-("y x = 3 * x",(True,Just ["x"],EApp [ECon "lambda",EApp [EApp [ECon "x!1",ECon "Int"]],EApp [ECon "*",ENum (3,Nothing),ECon "x!1"]]))+("y x = 3 * x",(True,Just ["x"],EApp [ECon "lambda",EApp [EApp [ECon "x!1",ECon "Int"]],EApp [ECon "*",ENum (3,Nothing,False),ECon "x!1"]])) DONE!
SBVTestSuite/GoldFiles/query_yices.gold view
@@ -4,7 +4,6 @@ [GOOD] (set-option :global-declarations true) [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; external query, using all logics.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/query_z3.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; external query, using all logics.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
+ SBVTestSuite/GoldFiles/recursive10_mutual.gold view
@@ -0,0 +1,212 @@+[MEASURE] Verifying termination measures for: mf @(SBV Integer -> SBV Integer), mg @(SBV Integer -> SBV Integer)+[MEASURE] Checking: mf @(SBV Integer -> SBV Integer)+[MEASURE] Checking mutual recursion group: {mf :: SBV Integer -> SBV Integer, mg :: SBV Integer -> SBV Integer}+[MEASURE] Mutual group: trying measure abs arg1 for all members+[MEASURE] replayDAG {mf @(SBV Integer -> SBV Integer), mg @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Int (abs s0))+[GOOD] (define-fun s9 () Bool (>= s8 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s9))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {mf @(SBV Integer -> SBV Integer), mg @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Int (abs s0))+[GOOD] (define-fun s9 () Int (abs s4))+[GOOD] (define-fun s10 () Bool (not s3))+[GOOD] (define-fun s11 () Bool (> s8 s9))+[GOOD] (define-fun s12 () Bool (=> s10 s11))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s12))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Mutual group: decrease verified for mf @(SBV Integer -> SBV Integer)+[MEASURE] replayDAG {mf @(SBV Integer -> SBV Integer), mg @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Int (abs s0))+[GOOD] (define-fun s9 () Bool (>= s8 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s9))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {mf @(SBV Integer -> SBV Integer), mg @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Int (abs s0))+[GOOD] (define-fun s9 () Int (abs s4))+[GOOD] (define-fun s10 () Bool (not s3))+[GOOD] (define-fun s11 () Bool (> s8 s9))+[GOOD] (define-fun s12 () Bool (=> s10 s11))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s12))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Mutual group: decrease verified for mg @(SBV Integer -> SBV Integer)+[MEASURE] Mutual group: measure abs arg1 works for all members+[MEASURE] Passed (terminating): mf @(SBV Integer -> SBV Integer)+[MEASURE] Checking: mg @(SBV Integer -> SBV Integer)+[MEASURE] mg @(SBV Integer -> SBV Integer): mutual group already verified, skipping+[MEASURE] Passed (terminating): mg @(SBV Integer -> SBV Integer)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; |mf @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger, |mg @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger+[GOOD] (define-funs-rec+         ((|mf @(SBV Integer -> SBV Integer)| ((l1_s0 Int)) Int)+          (|mg @(SBV Integer -> SBV Integer)| ((l2_s0 Int)) Int))+         (; Definition of: |mf @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger. [Refers to: |mg @(SBV Integer -> SBV Integer)|]+                                  (let ((l1_s1 0))+                                  (let ((l1_s3 1))+                                  (let ((l1_s2 (<= l1_s0 l1_s1)))+                                  (let ((l1_s4 (- l1_s0 l1_s3)))+                                  (let ((l1_s5 (|mg @(SBV Integer -> SBV Integer)| l1_s4)))+                                  (let ((l1_s6 (+ l1_s3 l1_s5)))+                                  (let ((l1_s7 (ite l1_s2 l1_s1 l1_s6)))+                                  l1_s7)))))))+          ; Definition of: |mg @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger. [Refers to: |mf @(SBV Integer -> SBV Integer)|]+                                                  (let ((l2_s1 0))+                                                  (let ((l2_s3 1))+                                                  (let ((l2_s2 (<= l2_s0 l2_s1)))+                                                  (let ((l2_s4 (- l2_s0 l2_s3)))+                                                  (let ((l2_s5 (|mf @(SBV Integer -> SBV Integer)| l2_s4)))+                                                  (let ((l2_s6 (+ l2_s3 l2_s5)))+                                                  (let ((l2_s7 (ite l2_s2 l2_s1 l2_s6)))+                                                  l2_s7)))))))))+[GOOD] ; --- assignments ---+[GOOD] (define-fun s1 () Int (|mf @(SBV Integer -> SBV Integer)| s0))+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 0))+*** Solver   : Z3+*** Exit code: ExitSuccess++RESULT:+Satisfiable. Model:+  s0 = 0 :: Integer
+ SBVTestSuite/GoldFiles/recursive11_chain.gold view
@@ -0,0 +1,299 @@+[MEASURE] Verifying termination measures for: ca @(SBV Integer -> SBV Integer), cb @(SBV Integer -> SBV Integer), cc @(SBV Integer -> SBV Integer)+[MEASURE] Checking: ca @(SBV Integer -> SBV Integer)+[MEASURE] Checking mutual recursion group: {ca :: SBV Integer -> SBV Integer, cb :: SBV Integer -> SBV Integer, cc :: SBV Integer -> SBV Integer}+[MEASURE] Mutual group: trying measure abs arg1 for all members+[MEASURE] replayDAG {ca @(SBV Integer -> SBV Integer), cb @(SBV Integer -> SBV Integer), cc @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Int (abs s0))+[GOOD] (define-fun s9 () Bool (>= s8 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s9))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {ca @(SBV Integer -> SBV Integer), cb @(SBV Integer -> SBV Integer), cc @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Int (abs s0))+[GOOD] (define-fun s9 () Int (abs s4))+[GOOD] (define-fun s10 () Bool (not s3))+[GOOD] (define-fun s11 () Bool (> s8 s9))+[GOOD] (define-fun s12 () Bool (=> s10 s11))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s12))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Mutual group: decrease verified for ca @(SBV Integer -> SBV Integer)+[MEASURE] replayDAG {ca @(SBV Integer -> SBV Integer), cb @(SBV Integer -> SBV Integer), cc @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Int (abs s0))+[GOOD] (define-fun s9 () Bool (>= s8 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s9))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {ca @(SBV Integer -> SBV Integer), cb @(SBV Integer -> SBV Integer), cc @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Int (abs s0))+[GOOD] (define-fun s9 () Int (abs s4))+[GOOD] (define-fun s10 () Bool (not s3))+[GOOD] (define-fun s11 () Bool (> s8 s9))+[GOOD] (define-fun s12 () Bool (=> s10 s11))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s12))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Mutual group: decrease verified for cb @(SBV Integer -> SBV Integer)+[MEASURE] replayDAG {ca @(SBV Integer -> SBV Integer), cb @(SBV Integer -> SBV Integer), cc @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Int (abs s0))+[GOOD] (define-fun s9 () Bool (>= s8 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s9))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {ca @(SBV Integer -> SBV Integer), cb @(SBV Integer -> SBV Integer), cc @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Int (abs s0))+[GOOD] (define-fun s9 () Int (abs s4))+[GOOD] (define-fun s10 () Bool (not s3))+[GOOD] (define-fun s11 () Bool (> s8 s9))+[GOOD] (define-fun s12 () Bool (=> s10 s11))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s12))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Mutual group: decrease verified for cc @(SBV Integer -> SBV Integer)+[MEASURE] Mutual group: measure abs arg1 works for all members+[MEASURE] Passed (terminating): ca @(SBV Integer -> SBV Integer)+[MEASURE] Checking: cb @(SBV Integer -> SBV Integer)+[MEASURE] cb @(SBV Integer -> SBV Integer): mutual group already verified, skipping+[MEASURE] Passed (terminating): cb @(SBV Integer -> SBV Integer)+[MEASURE] Checking: cc @(SBV Integer -> SBV Integer)+[MEASURE] cc @(SBV Integer -> SBV Integer): mutual group already verified, skipping+[MEASURE] Passed (terminating): cc @(SBV Integer -> SBV Integer)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; |ca @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger, |cb @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger, |cc @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger+[GOOD] (define-funs-rec+         ((|ca @(SBV Integer -> SBV Integer)| ((l1_s0 Int)) Int)+          (|cb @(SBV Integer -> SBV Integer)| ((l2_s0 Int)) Int)+          (|cc @(SBV Integer -> SBV Integer)| ((l3_s0 Int)) Int))+         (; Definition of: |ca @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger. [Refers to: |cb @(SBV Integer -> SBV Integer)|]+                                  (let ((l1_s1 0))+                                  (let ((l1_s3 1))+                                  (let ((l1_s2 (<= l1_s0 l1_s1)))+                                  (let ((l1_s4 (- l1_s0 l1_s3)))+                                  (let ((l1_s5 (|cb @(SBV Integer -> SBV Integer)| l1_s4)))+                                  (let ((l1_s6 (+ l1_s3 l1_s5)))+                                  (let ((l1_s7 (ite l1_s2 l1_s1 l1_s6)))+                                  l1_s7)))))))+          ; Definition of: |cb @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger. [Refers to: |cc @(SBV Integer -> SBV Integer)|]+                                                  (let ((l2_s1 0))+                                                  (let ((l2_s3 1))+                                                  (let ((l2_s2 (<= l2_s0 l2_s1)))+                                                  (let ((l2_s4 (- l2_s0 l2_s3)))+                                                  (let ((l2_s5 (|cc @(SBV Integer -> SBV Integer)| l2_s4)))+                                                  (let ((l2_s6 (+ l2_s3 l2_s5)))+                                                  (let ((l2_s7 (ite l2_s2 l2_s1 l2_s6)))+                                                  l2_s7)))))))+          ; Definition of: |cc @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger. [Refers to: |ca @(SBV Integer -> SBV Integer)|]+                                                                  (let ((l3_s1 0))+                                                                  (let ((l3_s3 1))+                                                                  (let ((l3_s2 (<= l3_s0 l3_s1)))+                                                                  (let ((l3_s4 (- l3_s0 l3_s3)))+                                                                  (let ((l3_s5 (|ca @(SBV Integer -> SBV Integer)| l3_s4)))+                                                                  (let ((l3_s6 (+ l3_s3 l3_s5)))+                                                                  (let ((l3_s7 (ite l3_s2 l3_s1 l3_s6)))+                                                                  l3_s7)))))))))+[GOOD] ; --- assignments ---+[GOOD] (define-fun s1 () Int (|ca @(SBV Integer -> SBV Integer)| s0))+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 0))+*** Solver   : Z3+*** Exit code: ExitSuccess++RESULT:+Satisfiable. Model:+  s0 = 0 :: Integer
+ SBVTestSuite/GoldFiles/recursive12_badMutual.gold view
@@ -0,0 +1,526 @@+[MEASURE] Verifying termination measures for: bf @(SBV Integer -> SBV Integer), bg @(SBV Integer -> SBV Integer)+[MEASURE] Checking: bf @(SBV Integer -> SBV Integer)+[MEASURE] Checking mutual recursion group: {bf :: SBV Integer -> SBV Integer, bg :: SBV Integer -> SBV Integer}+[MEASURE] Mutual group: trying measure abs arg1 for all members+[MEASURE] replayDAG {bf @(SBV Integer -> SBV Integer), bg @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (+ s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Int (abs s0))+[GOOD] (define-fun s9 () Bool (>= s8 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s9))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {bf @(SBV Integer -> SBV Integer), bg @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (+ s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Int (abs s0))+[GOOD] (define-fun s9 () Int (abs s4))+[GOOD] (define-fun s10 () Bool (not s3))+[GOOD] (define-fun s11 () Bool (> s8 s9))+[GOOD] (define-fun s12 () Bool (=> s10 s11))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s12))+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s8))+[RECV] ((s8 1))+[SEND] (get-value (s9))+[RECV] ((s9 2))+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s5))+[RECV] ((s5 0))+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Mutual group: decrease failed for bf @(SBV Integer -> SBV Integer): Falsifiable. Counter-example:+  arg    = 1 :: Integer+  before = 1 :: Integer+  then   = 2 :: Integer+[MEASURE] Mutual group: measure abs arg1 failed, trying next+[MEASURE] Mutual group: trying measure smax 0 arg1 for all members+[MEASURE] replayDAG {bf @(SBV Integer -> SBV Integer), bg @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (+ s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Bool (<= s1 s0))+[GOOD] (define-fun s9 () Int (ite s8 s0 s1))+[GOOD] (define-fun s10 () Bool (>= s9 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s10))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {bf @(SBV Integer -> SBV Integer), bg @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (+ s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Bool (<= s1 s0))+[GOOD] (define-fun s9 () Int (ite s8 s0 s1))+[GOOD] (define-fun s10 () Bool (<= s1 s4))+[GOOD] (define-fun s11 () Int (ite s10 s4 s1))+[GOOD] (define-fun s12 () Bool (not s3))+[GOOD] (define-fun s13 () Bool (> s9 s11))+[GOOD] (define-fun s14 () Bool (=> s12 s13))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s14))+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s9))+[RECV] ((s9 1))+[SEND] (get-value (s11))+[RECV] ((s11 2))+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s5))+[RECV] ((s5 0))+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Mutual group: decrease failed for bf @(SBV Integer -> SBV Integer): Falsifiable. Counter-example:+  arg    = 1 :: Integer+  before = 1 :: Integer+  then   = 2 :: Integer+[MEASURE] Mutual group: measure smax 0 arg1 failed, trying next+[MEASURE] Mutual group: trying measure abs arg1 + smax 0 arg1 for all members+[MEASURE] replayDAG {bf @(SBV Integer -> SBV Integer), bg @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (+ s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Int (abs s0))+[GOOD] (define-fun s9 () Bool (<= s1 s0))+[GOOD] (define-fun s10 () Int (ite s9 s0 s1))+[GOOD] (define-fun s11 () Int (+ s8 s10))+[GOOD] (define-fun s12 () Bool (>= s11 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s12))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {bf @(SBV Integer -> SBV Integer), bg @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (+ s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Int (abs s0))+[GOOD] (define-fun s9 () Bool (<= s1 s0))+[GOOD] (define-fun s10 () Int (ite s9 s0 s1))+[GOOD] (define-fun s11 () Int (+ s8 s10))+[GOOD] (define-fun s12 () Int (abs s4))+[GOOD] (define-fun s13 () Bool (<= s1 s4))+[GOOD] (define-fun s14 () Int (ite s13 s4 s1))+[GOOD] (define-fun s15 () Int (+ s12 s14))+[GOOD] (define-fun s16 () Bool (not s3))+[GOOD] (define-fun s17 () Bool (> s11 s15))+[GOOD] (define-fun s18 () Bool (=> s16 s17))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s18))+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s11))+[RECV] ((s11 2))+[SEND] (get-value (s15))+[RECV] ((s15 4))+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s5))+[RECV] ((s5 0))+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Mutual group: decrease failed for bf @(SBV Integer -> SBV Integer): Falsifiable. Counter-example:+  arg    = 1 :: Integer+  before = 2 :: Integer+  then   = 4 :: Integer+[MEASURE] Mutual group: measure abs arg1 + smax 0 arg1 failed, trying next+[MEASURE] Mutual group: trying measure (abs arg1, smax 0 arg1) for all members+[MEASURE] replayDAG {bf @(SBV Integer -> SBV Integer), bg @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (+ s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Int (abs s0))+[GOOD] (define-fun s9 () Bool (<= s1 s0))+[GOOD] (define-fun s10 () Int (ite s9 s0 s1))+[GOOD] (define-fun s11 () (SBVTuple2 Int Int) ((as mkSBVTuple2 (SBVTuple2 Int Int)) s8 s10))+[GOOD] (define-fun s12 () Int (proj_1_SBVTuple2 s11))+[GOOD] (define-fun s13 () Bool (>= s12 s1))+[GOOD] (define-fun s14 () Int (proj_2_SBVTuple2 s11))+[GOOD] (define-fun s15 () Bool (>= s14 s1))+[GOOD] (define-fun s16 () Bool (and s13 s15))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s16))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {bf @(SBV Integer -> SBV Integer), bg @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (+ s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Int (abs s0))+[GOOD] (define-fun s9 () Bool (<= s1 s0))+[GOOD] (define-fun s10 () Int (ite s9 s0 s1))+[GOOD] (define-fun s11 () (SBVTuple2 Int Int) ((as mkSBVTuple2 (SBVTuple2 Int Int)) s8 s10))+[GOOD] (define-fun s12 () Int (abs s4))+[GOOD] (define-fun s13 () Bool (<= s1 s4))+[GOOD] (define-fun s14 () Int (ite s13 s4 s1))+[GOOD] (define-fun s15 () (SBVTuple2 Int Int) ((as mkSBVTuple2 (SBVTuple2 Int Int)) s12 s14))+[GOOD] (define-fun s16 () Bool (not s3))+[GOOD] (define-fun s17 () Int (proj_1_SBVTuple2 s15))+[GOOD] (define-fun s18 () Int (proj_1_SBVTuple2 s11))+[GOOD] (define-fun s19 () Bool (< s17 s18))+[GOOD] (define-fun s20 () Bool (= s17 s18))+[GOOD] (define-fun s21 () Int (proj_2_SBVTuple2 s15))+[GOOD] (define-fun s22 () Int (proj_2_SBVTuple2 s11))+[GOOD] (define-fun s23 () Bool (< s21 s22))+[GOOD] (define-fun s24 () Bool (and s20 s23))+[GOOD] (define-fun s25 () Bool (or s19 s24))+[GOOD] (define-fun s26 () Bool (=> s16 s25))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s26))+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s11))+[RECV] ((s11 (mkSBVTuple2 1 1)))+[SEND] (get-value (s15))+[RECV] ((s15 (mkSBVTuple2 2 2)))+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s5))+[RECV] ((s5 0))+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Mutual group: decrease failed for bf @(SBV Integer -> SBV Integer): Falsifiable. Counter-example:+  arg    =     1 :: Integer+  before = (1,1) :: (Integer, Integer)+  then   = (2,2) :: (Integer, Integer)+[MEASURE] Mutual group: measure (abs arg1, smax 0 arg1) failed, trying next+[MEASURE] Mutual group: trying measure (smax 0 arg1, abs arg1) for all members+[MEASURE] replayDAG {bf @(SBV Integer -> SBV Integer), bg @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (+ s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Bool (<= s1 s0))+[GOOD] (define-fun s9 () Int (ite s8 s0 s1))+[GOOD] (define-fun s10 () Int (abs s0))+[GOOD] (define-fun s11 () (SBVTuple2 Int Int) ((as mkSBVTuple2 (SBVTuple2 Int Int)) s9 s10))+[GOOD] (define-fun s12 () Int (proj_1_SBVTuple2 s11))+[GOOD] (define-fun s13 () Bool (>= s12 s1))+[GOOD] (define-fun s14 () Int (proj_2_SBVTuple2 s11))+[GOOD] (define-fun s15 () Bool (>= s14 s1))+[GOOD] (define-fun s16 () Bool (and s13 s15))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s16))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {bf @(SBV Integer -> SBV Integer), bg @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (+ s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Bool (<= s1 s0))+[GOOD] (define-fun s9 () Int (ite s8 s0 s1))+[GOOD] (define-fun s10 () Int (abs s0))+[GOOD] (define-fun s11 () (SBVTuple2 Int Int) ((as mkSBVTuple2 (SBVTuple2 Int Int)) s9 s10))+[GOOD] (define-fun s12 () Bool (<= s1 s4))+[GOOD] (define-fun s13 () Int (ite s12 s4 s1))+[GOOD] (define-fun s14 () Int (abs s4))+[GOOD] (define-fun s15 () (SBVTuple2 Int Int) ((as mkSBVTuple2 (SBVTuple2 Int Int)) s13 s14))+[GOOD] (define-fun s16 () Bool (not s3))+[GOOD] (define-fun s17 () Int (proj_1_SBVTuple2 s15))+[GOOD] (define-fun s18 () Int (proj_1_SBVTuple2 s11))+[GOOD] (define-fun s19 () Bool (< s17 s18))+[GOOD] (define-fun s20 () Bool (= s17 s18))+[GOOD] (define-fun s21 () Int (proj_2_SBVTuple2 s15))+[GOOD] (define-fun s22 () Int (proj_2_SBVTuple2 s11))+[GOOD] (define-fun s23 () Bool (< s21 s22))+[GOOD] (define-fun s24 () Bool (and s20 s23))+[GOOD] (define-fun s25 () Bool (or s19 s24))+[GOOD] (define-fun s26 () Bool (=> s16 s25))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s26))+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s11))+[RECV] ((s11 (mkSBVTuple2 1 1)))+[SEND] (get-value (s15))+[RECV] ((s15 (mkSBVTuple2 2 2)))+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s5))+[RECV] ((s5 0))+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Mutual group: decrease failed for bf @(SBV Integer -> SBV Integer): Falsifiable. Counter-example:+  arg    =     1 :: Integer+  before = (1,1) :: (Integer, Integer)+  then   = (2,2) :: (Integer, Integer)+[MEASURE] Mutual group: measure (smax 0 arg1, abs arg1) failed, trying next++EXCEPTION:++*** Data.SBV: Cannot determine a termination measure for mutual recursion group.+***+***     bf  :: SBV Integer -> SBV Integer+***     bg  :: SBV Integer -> SBV Integer+***+*** Please use 'smtFunctionWithMeasure' to provide explicit measures.+
+ SBVTestSuite/GoldFiles/recursive13_mutualMeasure.gold view
@@ -0,0 +1,212 @@+[MEASURE] Verifying termination measures for: ef @(SBV Integer -> SBV Integer), eg @(SBV Integer -> SBV Integer)+[MEASURE] Checking: ef @(SBV Integer -> SBV Integer)+[MEASURE] Checking mutual recursion group: {ef :: SBV Integer -> SBV Integer, eg :: SBV Integer -> SBV Integer}+[MEASURE] Mutual group: trying user-provided measure for all members+[MEASURE] replayDAG {ef @(SBV Integer -> SBV Integer), eg @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Int (abs s0))+[GOOD] (define-fun s9 () Bool (>= s8 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s9))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {ef @(SBV Integer -> SBV Integer), eg @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Int (abs s0))+[GOOD] (define-fun s9 () Int (abs s4))+[GOOD] (define-fun s10 () Bool (not s3))+[GOOD] (define-fun s11 () Bool (> s8 s9))+[GOOD] (define-fun s12 () Bool (=> s10 s11))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s12))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Mutual group: decrease verified for ef @(SBV Integer -> SBV Integer)+[MEASURE] replayDAG {ef @(SBV Integer -> SBV Integer), eg @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Int (abs s0))+[GOOD] (define-fun s9 () Bool (>= s8 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s9))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {ef @(SBV Integer -> SBV Integer), eg @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Int (abs s0))+[GOOD] (define-fun s9 () Int (abs s4))+[GOOD] (define-fun s10 () Bool (not s3))+[GOOD] (define-fun s11 () Bool (> s8 s9))+[GOOD] (define-fun s12 () Bool (=> s10 s11))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s12))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Mutual group: decrease verified for eg @(SBV Integer -> SBV Integer)+[MEASURE] Mutual group: user-provided measure works for all members+[MEASURE] Passed (terminating): ef @(SBV Integer -> SBV Integer)+[MEASURE] Checking: eg @(SBV Integer -> SBV Integer)+[MEASURE] eg @(SBV Integer -> SBV Integer): mutual group already verified, skipping+[MEASURE] Passed (terminating): eg @(SBV Integer -> SBV Integer)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; |ef @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger, |eg @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger+[GOOD] (define-funs-rec+         ((|ef @(SBV Integer -> SBV Integer)| ((l1_s0 Int)) Int)+          (|eg @(SBV Integer -> SBV Integer)| ((l2_s0 Int)) Int))+         (; Definition of: |ef @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger. [Refers to: |eg @(SBV Integer -> SBV Integer)|]+                                  (let ((l1_s1 0))+                                  (let ((l1_s3 1))+                                  (let ((l1_s2 (<= l1_s0 l1_s1)))+                                  (let ((l1_s4 (- l1_s0 l1_s3)))+                                  (let ((l1_s5 (|eg @(SBV Integer -> SBV Integer)| l1_s4)))+                                  (let ((l1_s6 (+ l1_s3 l1_s5)))+                                  (let ((l1_s7 (ite l1_s2 l1_s1 l1_s6)))+                                  l1_s7)))))))+          ; Definition of: |eg @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger. [Refers to: |ef @(SBV Integer -> SBV Integer)|]+                                                  (let ((l2_s1 0))+                                                  (let ((l2_s3 1))+                                                  (let ((l2_s2 (<= l2_s0 l2_s1)))+                                                  (let ((l2_s4 (- l2_s0 l2_s3)))+                                                  (let ((l2_s5 (|ef @(SBV Integer -> SBV Integer)| l2_s4)))+                                                  (let ((l2_s6 (+ l2_s3 l2_s5)))+                                                  (let ((l2_s7 (ite l2_s2 l2_s1 l2_s6)))+                                                  l2_s7)))))))))+[GOOD] ; --- assignments ---+[GOOD] (define-fun s1 () Int (|ef @(SBV Integer -> SBV Integer)| s0))+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 0))+*** Solver   : Z3+*** Exit code: ExitSuccess++RESULT:+Satisfiable. Model:+  s0 = 0 :: Integer
+ SBVTestSuite/GoldFiles/recursive14_badMutualMeasure.gold view
@@ -0,0 +1,294 @@+[MEASURE] Verifying termination measures for: hf @(SBV Integer -> SBV Integer), hg @(SBV Integer -> SBV Integer)+[MEASURE] Checking: hf @(SBV Integer -> SBV Integer)+[MEASURE] Checking mutual recursion group: {hf :: SBV Integer -> SBV Integer, hg :: SBV Integer -> SBV Integer}+[MEASURE] Mutual group: trying user-provided measure for all members+[MEASURE] replayDAG {hf @(SBV Integer -> SBV Integer), hg @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {hf @(SBV Integer -> SBV Integer), hg @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Bool (not s3))+[GOOD] (define-fun s9 () Bool (=> s8 false))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s9))+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s2))+[RECV] ((s2 1))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s5))+[RECV] ((s5 0))+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Mutual group: decrease failed for hf @(SBV Integer -> SBV Integer): Falsifiable. Counter-example:+  arg    = 1 :: Integer+  before = 1 :: Integer+  then   = 1 :: Integer+[MEASURE] Mutual group: user-provided measure failed, falling back to auto-guess+[MEASURE] Mutual group: trying measure abs arg1 for all members+[MEASURE] replayDAG {hf @(SBV Integer -> SBV Integer), hg @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Int (abs s0))+[GOOD] (define-fun s9 () Bool (>= s8 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s9))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {hf @(SBV Integer -> SBV Integer), hg @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Int (abs s0))+[GOOD] (define-fun s9 () Int (abs s4))+[GOOD] (define-fun s10 () Bool (not s3))+[GOOD] (define-fun s11 () Bool (> s8 s9))+[GOOD] (define-fun s12 () Bool (=> s10 s11))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s12))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Mutual group: decrease verified for hf @(SBV Integer -> SBV Integer)+[MEASURE] replayDAG {hf @(SBV Integer -> SBV Integer), hg @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Int (abs s0))+[GOOD] (define-fun s9 () Bool (>= s8 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s9))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {hf @(SBV Integer -> SBV Integer), hg @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Int (abs s0))+[GOOD] (define-fun s9 () Int (abs s4))+[GOOD] (define-fun s10 () Bool (not s3))+[GOOD] (define-fun s11 () Bool (> s8 s9))+[GOOD] (define-fun s12 () Bool (=> s10 s11))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s12))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Mutual group: decrease verified for hg @(SBV Integer -> SBV Integer)+[MEASURE] Mutual group: measure abs arg1 works for all members+[MEASURE] Passed (terminating): hf @(SBV Integer -> SBV Integer)+[MEASURE] Checking: hg @(SBV Integer -> SBV Integer)+[MEASURE] hg @(SBV Integer -> SBV Integer): mutual group already verified, skipping+[MEASURE] Passed (terminating): hg @(SBV Integer -> SBV Integer)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; |hf @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger, |hg @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger+[GOOD] (define-funs-rec+         ((|hf @(SBV Integer -> SBV Integer)| ((l1_s0 Int)) Int)+          (|hg @(SBV Integer -> SBV Integer)| ((l2_s0 Int)) Int))+         (; Definition of: |hf @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger. [Refers to: |hg @(SBV Integer -> SBV Integer)|]+                                  (let ((l1_s1 0))+                                  (let ((l1_s3 1))+                                  (let ((l1_s2 (<= l1_s0 l1_s1)))+                                  (let ((l1_s4 (- l1_s0 l1_s3)))+                                  (let ((l1_s5 (|hg @(SBV Integer -> SBV Integer)| l1_s4)))+                                  (let ((l1_s6 (+ l1_s3 l1_s5)))+                                  (let ((l1_s7 (ite l1_s2 l1_s1 l1_s6)))+                                  l1_s7)))))))+          ; Definition of: |hg @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger. [Refers to: |hf @(SBV Integer -> SBV Integer)|]+                                                  (let ((l2_s1 0))+                                                  (let ((l2_s3 1))+                                                  (let ((l2_s2 (<= l2_s0 l2_s1)))+                                                  (let ((l2_s4 (- l2_s0 l2_s3)))+                                                  (let ((l2_s5 (|hf @(SBV Integer -> SBV Integer)| l2_s4)))+                                                  (let ((l2_s6 (+ l2_s3 l2_s5)))+                                                  (let ((l2_s7 (ite l2_s2 l2_s1 l2_s6)))+                                                  l2_s7)))))))))+[GOOD] ; --- assignments ---+[GOOD] (define-fun s1 () Int (|hf @(SBV Integer -> SBV Integer)| s0))+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 0))+*** Solver   : Z3+*** Exit code: ExitSuccess++RESULT:+Satisfiable. Model:+  s0 = 0 :: Integer
+ SBVTestSuite/GoldFiles/recursive15_mixedMutualMeasure.gold view
@@ -0,0 +1,212 @@+[MEASURE] Verifying termination measures for: xf @(SBV Integer -> SBV Integer), xg @(SBV Integer -> SBV Integer)+[MEASURE] Checking: xf @(SBV Integer -> SBV Integer)+[MEASURE] Checking mutual recursion group: {xf :: SBV Integer -> SBV Integer, xg :: SBV Integer -> SBV Integer}+[MEASURE] Mutual group: trying user-provided measure for all members+[MEASURE] replayDAG {xf @(SBV Integer -> SBV Integer), xg @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Int (abs s0))+[GOOD] (define-fun s9 () Bool (>= s8 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s9))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {xf @(SBV Integer -> SBV Integer), xg @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Int (abs s0))+[GOOD] (define-fun s9 () Int (abs s4))+[GOOD] (define-fun s10 () Bool (not s3))+[GOOD] (define-fun s11 () Bool (> s8 s9))+[GOOD] (define-fun s12 () Bool (=> s10 s11))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s12))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Mutual group: decrease verified for xf @(SBV Integer -> SBV Integer)+[MEASURE] replayDAG {xf @(SBV Integer -> SBV Integer), xg @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Int (abs s0))+[GOOD] (define-fun s9 () Bool (>= s8 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s9))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {xf @(SBV Integer -> SBV Integer), xg @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Int (abs s0))+[GOOD] (define-fun s9 () Int (abs s4))+[GOOD] (define-fun s10 () Bool (not s3))+[GOOD] (define-fun s11 () Bool (> s8 s9))+[GOOD] (define-fun s12 () Bool (=> s10 s11))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s12))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Mutual group: decrease verified for xg @(SBV Integer -> SBV Integer)+[MEASURE] Mutual group: user-provided measure works for all members+[MEASURE] Passed (terminating): xf @(SBV Integer -> SBV Integer)+[MEASURE] Checking: xg @(SBV Integer -> SBV Integer)+[MEASURE] xg @(SBV Integer -> SBV Integer): mutual group already verified, skipping+[MEASURE] Passed (terminating): xg @(SBV Integer -> SBV Integer)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; |xf @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger, |xg @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger+[GOOD] (define-funs-rec+         ((|xf @(SBV Integer -> SBV Integer)| ((l1_s0 Int)) Int)+          (|xg @(SBV Integer -> SBV Integer)| ((l2_s0 Int)) Int))+         (; Definition of: |xf @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger. [Refers to: |xg @(SBV Integer -> SBV Integer)|]+                                  (let ((l1_s1 0))+                                  (let ((l1_s3 1))+                                  (let ((l1_s2 (<= l1_s0 l1_s1)))+                                  (let ((l1_s4 (- l1_s0 l1_s3)))+                                  (let ((l1_s5 (|xg @(SBV Integer -> SBV Integer)| l1_s4)))+                                  (let ((l1_s6 (+ l1_s3 l1_s5)))+                                  (let ((l1_s7 (ite l1_s2 l1_s1 l1_s6)))+                                  l1_s7)))))))+          ; Definition of: |xg @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger. [Refers to: |xf @(SBV Integer -> SBV Integer)|]+                                                  (let ((l2_s1 0))+                                                  (let ((l2_s3 1))+                                                  (let ((l2_s2 (<= l2_s0 l2_s1)))+                                                  (let ((l2_s4 (- l2_s0 l2_s3)))+                                                  (let ((l2_s5 (|xf @(SBV Integer -> SBV Integer)| l2_s4)))+                                                  (let ((l2_s6 (+ l2_s3 l2_s5)))+                                                  (let ((l2_s7 (ite l2_s2 l2_s1 l2_s6)))+                                                  l2_s7)))))))))+[GOOD] ; --- assignments ---+[GOOD] (define-fun s1 () Int (|xf @(SBV Integer -> SBV Integer)| s0))+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 0))+*** Solver   : Z3+*** Exit code: ExitSuccess++RESULT:+Satisfiable. Model:+  s0 = 0 :: Integer
+ SBVTestSuite/GoldFiles/recursive16_badMixedMutualMeasure.gold view
@@ -0,0 +1,1135 @@+[MEASURE] Verifying termination measures for: yf @(SBV Integer -> SBV Integer), yg @(SBV Integer -> SBV Integer)+[MEASURE] Checking: yf @(SBV Integer -> SBV Integer)+[MEASURE] Checking mutual recursion group: {yf :: SBV Integer -> SBV Integer, yg :: SBV Integer -> SBV Integer}+[MEASURE] Mutual group: trying user-provided measure for all members+[MEASURE] replayDAG {yf @(SBV Integer -> SBV Integer), yg @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Int (abs s0))+[GOOD] (define-fun s9 () Bool (>= s8 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s9))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {yf @(SBV Integer -> SBV Integer), yg @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Int (abs s0))+[GOOD] (define-fun s9 () Int (abs s4))+[GOOD] (define-fun s10 () Bool (not s3))+[GOOD] (define-fun s11 () Bool (> s8 s9))+[GOOD] (define-fun s12 () Bool (=> s10 s11))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s12))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Mutual group: decrease verified for yf @(SBV Integer -> SBV Integer)+[MEASURE] replayDAG {yf @(SBV Integer -> SBV Integer), yg @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (+ s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Int (abs s0))+[GOOD] (define-fun s9 () Bool (>= s8 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s9))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {yf @(SBV Integer -> SBV Integer), yg @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (+ s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Int (abs s0))+[GOOD] (define-fun s9 () Int (abs s4))+[GOOD] (define-fun s10 () Bool (not s3))+[GOOD] (define-fun s11 () Bool (> s8 s9))+[GOOD] (define-fun s12 () Bool (=> s10 s11))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s12))+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s8))+[RECV] ((s8 1))+[SEND] (get-value (s9))+[RECV] ((s9 2))+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s5))+[RECV] ((s5 0))+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Mutual group: decrease failed for yg @(SBV Integer -> SBV Integer): Falsifiable. Counter-example:+  arg    = 1 :: Integer+  before = 1 :: Integer+  then   = 2 :: Integer+[MEASURE] Mutual group: user-provided measure failed, falling back to auto-guess+[MEASURE] Mutual group: trying measure abs arg1 for all members+[MEASURE] replayDAG {yf @(SBV Integer -> SBV Integer), yg @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Int (abs s0))+[GOOD] (define-fun s9 () Bool (>= s8 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s9))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {yf @(SBV Integer -> SBV Integer), yg @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Int (abs s0))+[GOOD] (define-fun s9 () Int (abs s4))+[GOOD] (define-fun s10 () Bool (not s3))+[GOOD] (define-fun s11 () Bool (> s8 s9))+[GOOD] (define-fun s12 () Bool (=> s10 s11))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s12))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Mutual group: decrease verified for yf @(SBV Integer -> SBV Integer)+[MEASURE] replayDAG {yf @(SBV Integer -> SBV Integer), yg @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (+ s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Int (abs s0))+[GOOD] (define-fun s9 () Bool (>= s8 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s9))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {yf @(SBV Integer -> SBV Integer), yg @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (+ s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Int (abs s0))+[GOOD] (define-fun s9 () Int (abs s4))+[GOOD] (define-fun s10 () Bool (not s3))+[GOOD] (define-fun s11 () Bool (> s8 s9))+[GOOD] (define-fun s12 () Bool (=> s10 s11))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s12))+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s8))+[RECV] ((s8 1))+[SEND] (get-value (s9))+[RECV] ((s9 2))+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s5))+[RECV] ((s5 0))+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Mutual group: decrease failed for yg @(SBV Integer -> SBV Integer): Falsifiable. Counter-example:+  arg    = 1 :: Integer+  before = 1 :: Integer+  then   = 2 :: Integer+[MEASURE] Mutual group: measure abs arg1 failed, trying next+[MEASURE] Mutual group: trying measure smax 0 arg1 for all members+[MEASURE] replayDAG {yf @(SBV Integer -> SBV Integer), yg @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Bool (<= s1 s0))+[GOOD] (define-fun s9 () Int (ite s8 s0 s1))+[GOOD] (define-fun s10 () Bool (>= s9 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s10))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {yf @(SBV Integer -> SBV Integer), yg @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Bool (<= s1 s0))+[GOOD] (define-fun s9 () Int (ite s8 s0 s1))+[GOOD] (define-fun s10 () Bool (<= s1 s4))+[GOOD] (define-fun s11 () Int (ite s10 s4 s1))+[GOOD] (define-fun s12 () Bool (not s3))+[GOOD] (define-fun s13 () Bool (> s9 s11))+[GOOD] (define-fun s14 () Bool (=> s12 s13))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s14))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Mutual group: decrease verified for yf @(SBV Integer -> SBV Integer)+[MEASURE] replayDAG {yf @(SBV Integer -> SBV Integer), yg @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (+ s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Bool (<= s1 s0))+[GOOD] (define-fun s9 () Int (ite s8 s0 s1))+[GOOD] (define-fun s10 () Bool (>= s9 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s10))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {yf @(SBV Integer -> SBV Integer), yg @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (+ s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Bool (<= s1 s0))+[GOOD] (define-fun s9 () Int (ite s8 s0 s1))+[GOOD] (define-fun s10 () Bool (<= s1 s4))+[GOOD] (define-fun s11 () Int (ite s10 s4 s1))+[GOOD] (define-fun s12 () Bool (not s3))+[GOOD] (define-fun s13 () Bool (> s9 s11))+[GOOD] (define-fun s14 () Bool (=> s12 s13))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s14))+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s9))+[RECV] ((s9 1))+[SEND] (get-value (s11))+[RECV] ((s11 2))+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s5))+[RECV] ((s5 0))+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Mutual group: decrease failed for yg @(SBV Integer -> SBV Integer): Falsifiable. Counter-example:+  arg    = 1 :: Integer+  before = 1 :: Integer+  then   = 2 :: Integer+[MEASURE] Mutual group: measure smax 0 arg1 failed, trying next+[MEASURE] Mutual group: trying measure abs arg1 + smax 0 arg1 for all members+[MEASURE] replayDAG {yf @(SBV Integer -> SBV Integer), yg @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Int (abs s0))+[GOOD] (define-fun s9 () Bool (<= s1 s0))+[GOOD] (define-fun s10 () Int (ite s9 s0 s1))+[GOOD] (define-fun s11 () Int (+ s8 s10))+[GOOD] (define-fun s12 () Bool (>= s11 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s12))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {yf @(SBV Integer -> SBV Integer), yg @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Int (abs s0))+[GOOD] (define-fun s9 () Bool (<= s1 s0))+[GOOD] (define-fun s10 () Int (ite s9 s0 s1))+[GOOD] (define-fun s11 () Int (+ s8 s10))+[GOOD] (define-fun s12 () Int (abs s4))+[GOOD] (define-fun s13 () Bool (<= s1 s4))+[GOOD] (define-fun s14 () Int (ite s13 s4 s1))+[GOOD] (define-fun s15 () Int (+ s12 s14))+[GOOD] (define-fun s16 () Bool (not s3))+[GOOD] (define-fun s17 () Bool (> s11 s15))+[GOOD] (define-fun s18 () Bool (=> s16 s17))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s18))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Mutual group: decrease verified for yf @(SBV Integer -> SBV Integer)+[MEASURE] replayDAG {yf @(SBV Integer -> SBV Integer), yg @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (+ s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Int (abs s0))+[GOOD] (define-fun s9 () Bool (<= s1 s0))+[GOOD] (define-fun s10 () Int (ite s9 s0 s1))+[GOOD] (define-fun s11 () Int (+ s8 s10))+[GOOD] (define-fun s12 () Bool (>= s11 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s12))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {yf @(SBV Integer -> SBV Integer), yg @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (+ s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Int (abs s0))+[GOOD] (define-fun s9 () Bool (<= s1 s0))+[GOOD] (define-fun s10 () Int (ite s9 s0 s1))+[GOOD] (define-fun s11 () Int (+ s8 s10))+[GOOD] (define-fun s12 () Int (abs s4))+[GOOD] (define-fun s13 () Bool (<= s1 s4))+[GOOD] (define-fun s14 () Int (ite s13 s4 s1))+[GOOD] (define-fun s15 () Int (+ s12 s14))+[GOOD] (define-fun s16 () Bool (not s3))+[GOOD] (define-fun s17 () Bool (> s11 s15))+[GOOD] (define-fun s18 () Bool (=> s16 s17))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s18))+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s11))+[RECV] ((s11 2))+[SEND] (get-value (s15))+[RECV] ((s15 4))+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s5))+[RECV] ((s5 0))+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Mutual group: decrease failed for yg @(SBV Integer -> SBV Integer): Falsifiable. Counter-example:+  arg    = 1 :: Integer+  before = 2 :: Integer+  then   = 4 :: Integer+[MEASURE] Mutual group: measure abs arg1 + smax 0 arg1 failed, trying next+[MEASURE] Mutual group: trying measure (abs arg1, smax 0 arg1) for all members+[MEASURE] replayDAG {yf @(SBV Integer -> SBV Integer), yg @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Int (abs s0))+[GOOD] (define-fun s9 () Bool (<= s1 s0))+[GOOD] (define-fun s10 () Int (ite s9 s0 s1))+[GOOD] (define-fun s11 () (SBVTuple2 Int Int) ((as mkSBVTuple2 (SBVTuple2 Int Int)) s8 s10))+[GOOD] (define-fun s12 () Int (proj_1_SBVTuple2 s11))+[GOOD] (define-fun s13 () Bool (>= s12 s1))+[GOOD] (define-fun s14 () Int (proj_2_SBVTuple2 s11))+[GOOD] (define-fun s15 () Bool (>= s14 s1))+[GOOD] (define-fun s16 () Bool (and s13 s15))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s16))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {yf @(SBV Integer -> SBV Integer), yg @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Int (abs s0))+[GOOD] (define-fun s9 () Bool (<= s1 s0))+[GOOD] (define-fun s10 () Int (ite s9 s0 s1))+[GOOD] (define-fun s11 () (SBVTuple2 Int Int) ((as mkSBVTuple2 (SBVTuple2 Int Int)) s8 s10))+[GOOD] (define-fun s12 () Int (abs s4))+[GOOD] (define-fun s13 () Bool (<= s1 s4))+[GOOD] (define-fun s14 () Int (ite s13 s4 s1))+[GOOD] (define-fun s15 () (SBVTuple2 Int Int) ((as mkSBVTuple2 (SBVTuple2 Int Int)) s12 s14))+[GOOD] (define-fun s16 () Bool (not s3))+[GOOD] (define-fun s17 () Int (proj_1_SBVTuple2 s15))+[GOOD] (define-fun s18 () Int (proj_1_SBVTuple2 s11))+[GOOD] (define-fun s19 () Bool (< s17 s18))+[GOOD] (define-fun s20 () Bool (= s17 s18))+[GOOD] (define-fun s21 () Int (proj_2_SBVTuple2 s15))+[GOOD] (define-fun s22 () Int (proj_2_SBVTuple2 s11))+[GOOD] (define-fun s23 () Bool (< s21 s22))+[GOOD] (define-fun s24 () Bool (and s20 s23))+[GOOD] (define-fun s25 () Bool (or s19 s24))+[GOOD] (define-fun s26 () Bool (=> s16 s25))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s26))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Mutual group: decrease verified for yf @(SBV Integer -> SBV Integer)+[MEASURE] replayDAG {yf @(SBV Integer -> SBV Integer), yg @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (+ s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Int (abs s0))+[GOOD] (define-fun s9 () Bool (<= s1 s0))+[GOOD] (define-fun s10 () Int (ite s9 s0 s1))+[GOOD] (define-fun s11 () (SBVTuple2 Int Int) ((as mkSBVTuple2 (SBVTuple2 Int Int)) s8 s10))+[GOOD] (define-fun s12 () Int (proj_1_SBVTuple2 s11))+[GOOD] (define-fun s13 () Bool (>= s12 s1))+[GOOD] (define-fun s14 () Int (proj_2_SBVTuple2 s11))+[GOOD] (define-fun s15 () Bool (>= s14 s1))+[GOOD] (define-fun s16 () Bool (and s13 s15))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s16))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {yf @(SBV Integer -> SBV Integer), yg @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (+ s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Int (abs s0))+[GOOD] (define-fun s9 () Bool (<= s1 s0))+[GOOD] (define-fun s10 () Int (ite s9 s0 s1))+[GOOD] (define-fun s11 () (SBVTuple2 Int Int) ((as mkSBVTuple2 (SBVTuple2 Int Int)) s8 s10))+[GOOD] (define-fun s12 () Int (abs s4))+[GOOD] (define-fun s13 () Bool (<= s1 s4))+[GOOD] (define-fun s14 () Int (ite s13 s4 s1))+[GOOD] (define-fun s15 () (SBVTuple2 Int Int) ((as mkSBVTuple2 (SBVTuple2 Int Int)) s12 s14))+[GOOD] (define-fun s16 () Bool (not s3))+[GOOD] (define-fun s17 () Int (proj_1_SBVTuple2 s15))+[GOOD] (define-fun s18 () Int (proj_1_SBVTuple2 s11))+[GOOD] (define-fun s19 () Bool (< s17 s18))+[GOOD] (define-fun s20 () Bool (= s17 s18))+[GOOD] (define-fun s21 () Int (proj_2_SBVTuple2 s15))+[GOOD] (define-fun s22 () Int (proj_2_SBVTuple2 s11))+[GOOD] (define-fun s23 () Bool (< s21 s22))+[GOOD] (define-fun s24 () Bool (and s20 s23))+[GOOD] (define-fun s25 () Bool (or s19 s24))+[GOOD] (define-fun s26 () Bool (=> s16 s25))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s26))+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s11))+[RECV] ((s11 (mkSBVTuple2 1 1)))+[SEND] (get-value (s15))+[RECV] ((s15 (mkSBVTuple2 2 2)))+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s5))+[RECV] ((s5 0))+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Mutual group: decrease failed for yg @(SBV Integer -> SBV Integer): Falsifiable. Counter-example:+  arg    =     1 :: Integer+  before = (1,1) :: (Integer, Integer)+  then   = (2,2) :: (Integer, Integer)+[MEASURE] Mutual group: measure (abs arg1, smax 0 arg1) failed, trying next+[MEASURE] Mutual group: trying measure (smax 0 arg1, abs arg1) for all members+[MEASURE] replayDAG {yf @(SBV Integer -> SBV Integer), yg @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Bool (<= s1 s0))+[GOOD] (define-fun s9 () Int (ite s8 s0 s1))+[GOOD] (define-fun s10 () Int (abs s0))+[GOOD] (define-fun s11 () (SBVTuple2 Int Int) ((as mkSBVTuple2 (SBVTuple2 Int Int)) s9 s10))+[GOOD] (define-fun s12 () Int (proj_1_SBVTuple2 s11))+[GOOD] (define-fun s13 () Bool (>= s12 s1))+[GOOD] (define-fun s14 () Int (proj_2_SBVTuple2 s11))+[GOOD] (define-fun s15 () Bool (>= s14 s1))+[GOOD] (define-fun s16 () Bool (and s13 s15))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s16))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {yf @(SBV Integer -> SBV Integer), yg @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Bool (<= s1 s0))+[GOOD] (define-fun s9 () Int (ite s8 s0 s1))+[GOOD] (define-fun s10 () Int (abs s0))+[GOOD] (define-fun s11 () (SBVTuple2 Int Int) ((as mkSBVTuple2 (SBVTuple2 Int Int)) s9 s10))+[GOOD] (define-fun s12 () Bool (<= s1 s4))+[GOOD] (define-fun s13 () Int (ite s12 s4 s1))+[GOOD] (define-fun s14 () Int (abs s4))+[GOOD] (define-fun s15 () (SBVTuple2 Int Int) ((as mkSBVTuple2 (SBVTuple2 Int Int)) s13 s14))+[GOOD] (define-fun s16 () Bool (not s3))+[GOOD] (define-fun s17 () Int (proj_1_SBVTuple2 s15))+[GOOD] (define-fun s18 () Int (proj_1_SBVTuple2 s11))+[GOOD] (define-fun s19 () Bool (< s17 s18))+[GOOD] (define-fun s20 () Bool (= s17 s18))+[GOOD] (define-fun s21 () Int (proj_2_SBVTuple2 s15))+[GOOD] (define-fun s22 () Int (proj_2_SBVTuple2 s11))+[GOOD] (define-fun s23 () Bool (< s21 s22))+[GOOD] (define-fun s24 () Bool (and s20 s23))+[GOOD] (define-fun s25 () Bool (or s19 s24))+[GOOD] (define-fun s26 () Bool (=> s16 s25))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s26))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Mutual group: decrease verified for yf @(SBV Integer -> SBV Integer)+[MEASURE] replayDAG {yf @(SBV Integer -> SBV Integer), yg @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (+ s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Bool (<= s1 s0))+[GOOD] (define-fun s9 () Int (ite s8 s0 s1))+[GOOD] (define-fun s10 () Int (abs s0))+[GOOD] (define-fun s11 () (SBVTuple2 Int Int) ((as mkSBVTuple2 (SBVTuple2 Int Int)) s9 s10))+[GOOD] (define-fun s12 () Int (proj_1_SBVTuple2 s11))+[GOOD] (define-fun s13 () Bool (>= s12 s1))+[GOOD] (define-fun s14 () Int (proj_2_SBVTuple2 s11))+[GOOD] (define-fun s15 () Bool (>= s14 s1))+[GOOD] (define-fun s16 () Bool (and s13 s15))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s16))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {yf @(SBV Integer -> SBV Integer), yg @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (+ s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Bool (<= s1 s0))+[GOOD] (define-fun s9 () Int (ite s8 s0 s1))+[GOOD] (define-fun s10 () Int (abs s0))+[GOOD] (define-fun s11 () (SBVTuple2 Int Int) ((as mkSBVTuple2 (SBVTuple2 Int Int)) s9 s10))+[GOOD] (define-fun s12 () Bool (<= s1 s4))+[GOOD] (define-fun s13 () Int (ite s12 s4 s1))+[GOOD] (define-fun s14 () Int (abs s4))+[GOOD] (define-fun s15 () (SBVTuple2 Int Int) ((as mkSBVTuple2 (SBVTuple2 Int Int)) s13 s14))+[GOOD] (define-fun s16 () Bool (not s3))+[GOOD] (define-fun s17 () Int (proj_1_SBVTuple2 s15))+[GOOD] (define-fun s18 () Int (proj_1_SBVTuple2 s11))+[GOOD] (define-fun s19 () Bool (< s17 s18))+[GOOD] (define-fun s20 () Bool (= s17 s18))+[GOOD] (define-fun s21 () Int (proj_2_SBVTuple2 s15))+[GOOD] (define-fun s22 () Int (proj_2_SBVTuple2 s11))+[GOOD] (define-fun s23 () Bool (< s21 s22))+[GOOD] (define-fun s24 () Bool (and s20 s23))+[GOOD] (define-fun s25 () Bool (or s19 s24))+[GOOD] (define-fun s26 () Bool (=> s16 s25))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s26))+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s11))+[RECV] ((s11 (mkSBVTuple2 1 1)))+[SEND] (get-value (s15))+[RECV] ((s15 (mkSBVTuple2 2 2)))+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s5))+[RECV] ((s5 0))+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Mutual group: decrease failed for yg @(SBV Integer -> SBV Integer): Falsifiable. Counter-example:+  arg    =     1 :: Integer+  before = (1,1) :: (Integer, Integer)+  then   = (2,2) :: (Integer, Integer)+[MEASURE] Mutual group: measure (smax 0 arg1, abs arg1) failed, trying next++EXCEPTION:++*** Data.SBV: Cannot determine a termination measure for mutual recursion group.+***+***     yf  :: SBV Integer -> SBV Integer+***     yg  :: SBV Integer -> SBV Integer+***+*** The user-provided measure did not work, and auto-guessing also failed.+
+ SBVTestSuite/GoldFiles/recursive17_chainMeasure.gold view
@@ -0,0 +1,299 @@+[MEASURE] Verifying termination measures for: da @(SBV Integer -> SBV Integer), db @(SBV Integer -> SBV Integer), dc @(SBV Integer -> SBV Integer)+[MEASURE] Checking: da @(SBV Integer -> SBV Integer)+[MEASURE] Checking mutual recursion group: {da :: SBV Integer -> SBV Integer, db :: SBV Integer -> SBV Integer, dc :: SBV Integer -> SBV Integer}+[MEASURE] Mutual group: trying user-provided measure for all members+[MEASURE] replayDAG {da @(SBV Integer -> SBV Integer), db @(SBV Integer -> SBV Integer), dc @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Int (abs s0))+[GOOD] (define-fun s9 () Bool (>= s8 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s9))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {da @(SBV Integer -> SBV Integer), db @(SBV Integer -> SBV Integer), dc @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Int (abs s0))+[GOOD] (define-fun s9 () Int (abs s4))+[GOOD] (define-fun s10 () Bool (not s3))+[GOOD] (define-fun s11 () Bool (> s8 s9))+[GOOD] (define-fun s12 () Bool (=> s10 s11))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s12))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Mutual group: decrease verified for da @(SBV Integer -> SBV Integer)+[MEASURE] replayDAG {da @(SBV Integer -> SBV Integer), db @(SBV Integer -> SBV Integer), dc @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Int (abs s0))+[GOOD] (define-fun s9 () Bool (>= s8 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s9))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {da @(SBV Integer -> SBV Integer), db @(SBV Integer -> SBV Integer), dc @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Int (abs s0))+[GOOD] (define-fun s9 () Int (abs s4))+[GOOD] (define-fun s10 () Bool (not s3))+[GOOD] (define-fun s11 () Bool (> s8 s9))+[GOOD] (define-fun s12 () Bool (=> s10 s11))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s12))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Mutual group: decrease verified for db @(SBV Integer -> SBV Integer)+[MEASURE] replayDAG {da @(SBV Integer -> SBV Integer), db @(SBV Integer -> SBV Integer), dc @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Int (abs s0))+[GOOD] (define-fun s9 () Bool (>= s8 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s9))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {da @(SBV Integer -> SBV Integer), db @(SBV Integer -> SBV Integer), dc @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Int (abs s0))+[GOOD] (define-fun s9 () Int (abs s4))+[GOOD] (define-fun s10 () Bool (not s3))+[GOOD] (define-fun s11 () Bool (> s8 s9))+[GOOD] (define-fun s12 () Bool (=> s10 s11))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s12))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Mutual group: decrease verified for dc @(SBV Integer -> SBV Integer)+[MEASURE] Mutual group: user-provided measure works for all members+[MEASURE] Passed (terminating): da @(SBV Integer -> SBV Integer)+[MEASURE] Checking: db @(SBV Integer -> SBV Integer)+[MEASURE] db @(SBV Integer -> SBV Integer): mutual group already verified, skipping+[MEASURE] Passed (terminating): db @(SBV Integer -> SBV Integer)+[MEASURE] Checking: dc @(SBV Integer -> SBV Integer)+[MEASURE] dc @(SBV Integer -> SBV Integer): mutual group already verified, skipping+[MEASURE] Passed (terminating): dc @(SBV Integer -> SBV Integer)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; |da @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger, |db @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger, |dc @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger+[GOOD] (define-funs-rec+         ((|da @(SBV Integer -> SBV Integer)| ((l1_s0 Int)) Int)+          (|db @(SBV Integer -> SBV Integer)| ((l2_s0 Int)) Int)+          (|dc @(SBV Integer -> SBV Integer)| ((l3_s0 Int)) Int))+         (; Definition of: |da @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger. [Refers to: |db @(SBV Integer -> SBV Integer)|]+                                  (let ((l1_s1 0))+                                  (let ((l1_s3 1))+                                  (let ((l1_s2 (<= l1_s0 l1_s1)))+                                  (let ((l1_s4 (- l1_s0 l1_s3)))+                                  (let ((l1_s5 (|db @(SBV Integer -> SBV Integer)| l1_s4)))+                                  (let ((l1_s6 (+ l1_s3 l1_s5)))+                                  (let ((l1_s7 (ite l1_s2 l1_s1 l1_s6)))+                                  l1_s7)))))))+          ; Definition of: |db @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger. [Refers to: |dc @(SBV Integer -> SBV Integer)|]+                                                  (let ((l2_s1 0))+                                                  (let ((l2_s3 1))+                                                  (let ((l2_s2 (<= l2_s0 l2_s1)))+                                                  (let ((l2_s4 (- l2_s0 l2_s3)))+                                                  (let ((l2_s5 (|dc @(SBV Integer -> SBV Integer)| l2_s4)))+                                                  (let ((l2_s6 (+ l2_s3 l2_s5)))+                                                  (let ((l2_s7 (ite l2_s2 l2_s1 l2_s6)))+                                                  l2_s7)))))))+          ; Definition of: |dc @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger. [Refers to: |da @(SBV Integer -> SBV Integer)|]+                                                                  (let ((l3_s1 0))+                                                                  (let ((l3_s3 1))+                                                                  (let ((l3_s2 (<= l3_s0 l3_s1)))+                                                                  (let ((l3_s4 (- l3_s0 l3_s3)))+                                                                  (let ((l3_s5 (|da @(SBV Integer -> SBV Integer)| l3_s4)))+                                                                  (let ((l3_s6 (+ l3_s3 l3_s5)))+                                                                  (let ((l3_s7 (ite l3_s2 l3_s1 l3_s6)))+                                                                  l3_s7)))))))))+[GOOD] ; --- assignments ---+[GOOD] (define-fun s1 () Int (|da @(SBV Integer -> SBV Integer)| s0))+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 0))+*** Solver   : Z3+*** Exit code: ExitSuccess++RESULT:+Satisfiable. Model:+  s0 = 0 :: Integer
+ SBVTestSuite/GoldFiles/recursive19_selfAndMutual.gold view
@@ -0,0 +1,297 @@+[MEASURE] Verifying termination measures for: sf @(SBV Integer -> SBV Integer), sf @(SBV Integer -> SBV Integer), sg @(SBV Integer -> SBV Integer)+[MEASURE] Checking: sf @(SBV Integer -> SBV Integer)+[MEASURE] Checking mutual recursion group: {sf :: SBV Integer -> SBV Integer, sg :: SBV Integer -> SBV Integer}+[MEASURE] Mutual group: trying measure abs arg1 for all members+[MEASURE] replayDAG {sf @(SBV Integer -> SBV Integer), sg @(SBV Integer -> SBV Integer)}: replaying 6 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] (declare-fun s6 () Int) ; tracks user variable "__internal_sbv_s6"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s7 () Int (+ s5 s6))+[GOOD] (define-fun s8 () Int (ite s3 s1 s7))+[GOOD] (define-fun s9 () Int (abs s0))+[GOOD] (define-fun s10 () Bool (>= s9 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s10))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {sf @(SBV Integer -> SBV Integer), sg @(SBV Integer -> SBV Integer)}: replaying 6 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] (declare-fun s6 () Int) ; tracks user variable "__internal_sbv_s6"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s7 () Int (+ s5 s6))+[GOOD] (define-fun s8 () Int (ite s3 s1 s7))+[GOOD] (define-fun s9 () Int (abs s0))+[GOOD] (define-fun s10 () Int (abs s4))+[GOOD] (define-fun s11 () Bool (not s3))+[GOOD] (define-fun s12 () Bool (> s9 s10))+[GOOD] (define-fun s13 () Bool (=> s11 s12))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s13))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Mutual group: decrease verified for sf @(SBV Integer -> SBV Integer)+[MEASURE] replayDAG {sf @(SBV Integer -> SBV Integer), sg @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Int (abs s0))+[GOOD] (define-fun s9 () Bool (>= s8 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s9))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {sf @(SBV Integer -> SBV Integer), sg @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Int (abs s0))+[GOOD] (define-fun s9 () Int (abs s4))+[GOOD] (define-fun s10 () Bool (not s3))+[GOOD] (define-fun s11 () Bool (> s8 s9))+[GOOD] (define-fun s12 () Bool (=> s10 s11))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s12))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Mutual group: decrease verified for sg @(SBV Integer -> SBV Integer)+[MEASURE] Mutual group: measure abs arg1 works for all members+[MEASURE] Passed (terminating): sf @(SBV Integer -> SBV Integer)+[MEASURE] Checking: sf @(SBV Integer -> SBV Integer)+[MEASURE] sf @(SBV Integer -> SBV Integer): barified = "|sf @(SBV Integer -> SBV Integer)|"+[MEASURE] sf @(SBV Integer -> SBV Integer): Uninterpreted ops in DAG: [("|sf @(SBV Integer -> SBV Integer)|",1),("|sg @(SBV Integer -> SBV Integer)|",1)]+[MEASURE] sf @(SBV Integer -> SBV Integer): recursive calls found = 1+[MEASURE] sf @(SBV Integer -> SBV Integer): trying abs arg1+[MEASURE] replayDAG {sf @(SBV Integer -> SBV Integer)}: replaying 6 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] (declare-fun s6 () Int) ; tracks user variable "__internal_sbv_s6"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s7 () Int (+ s5 s6))+[GOOD] (define-fun s8 () Int (ite s3 s1 s7))+[GOOD] (define-fun s9 () Int (abs s0))+[GOOD] (define-fun s10 () Bool (>= s9 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s10))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {sf @(SBV Integer -> SBV Integer)}: replaying 6 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] (declare-fun s6 () Int) ; tracks user variable "__internal_sbv_s6"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s7 () Int (+ s5 s6))+[GOOD] (define-fun s8 () Int (ite s3 s1 s7))+[GOOD] (define-fun s9 () Int (abs s0))+[GOOD] (define-fun s10 () Int (abs s4))+[GOOD] (define-fun s11 () Bool (not s3))+[GOOD] (define-fun s12 () Bool (> s9 s10))+[GOOD] (define-fun s13 () Bool (=> s11 s12))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s13))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] sf @(SBV Integer -> SBV Integer): abs arg1 -> OK+[MEASURE] Passed (terminating): sf @(SBV Integer -> SBV Integer)+[MEASURE] Checking: sg @(SBV Integer -> SBV Integer)+[MEASURE] sg @(SBV Integer -> SBV Integer): mutual group already verified, skipping+[MEASURE] Passed (terminating): sg @(SBV Integer -> SBV Integer)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; |sf @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger, |sg @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger+[GOOD] (define-funs-rec+         ((|sf @(SBV Integer -> SBV Integer)| ((l1_s0 Int)) Int)+          (|sg @(SBV Integer -> SBV Integer)| ((l2_s0 Int)) Int))+         (; Definition of: |sf @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger. [Refers to: |sf @(SBV Integer -> SBV Integer)|, |sg @(SBV Integer -> SBV Integer)|]+                                  (let ((l1_s1 0))+                                  (let ((l1_s3 1))+                                  (let ((l1_s2 (<= l1_s0 l1_s1)))+                                  (let ((l1_s4 (- l1_s0 l1_s3)))+                                  (let ((l1_s5 (|sf @(SBV Integer -> SBV Integer)| l1_s4)))+                                  (let ((l1_s6 (|sg @(SBV Integer -> SBV Integer)| l1_s4)))+                                  (let ((l1_s7 (+ l1_s5 l1_s6)))+                                  (let ((l1_s8 (ite l1_s2 l1_s1 l1_s7)))+                                  l1_s8))))))))+          ; Definition of: |sg @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger. [Refers to: |sf @(SBV Integer -> SBV Integer)|]+                                                  (let ((l2_s1 0))+                                                  (let ((l2_s3 1))+                                                  (let ((l2_s2 (<= l2_s0 l2_s1)))+                                                  (let ((l2_s4 (- l2_s0 l2_s3)))+                                                  (let ((l2_s5 (|sf @(SBV Integer -> SBV Integer)| l2_s4)))+                                                  (let ((l2_s6 (+ l2_s3 l2_s5)))+                                                  (let ((l2_s7 (ite l2_s2 l2_s1 l2_s6)))+                                                  l2_s7)))))))))+[GOOD] ; --- assignments ---+[GOOD] (define-fun s1 () Int (|sf @(SBV Integer -> SBV Integer)| s0))+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 0))+*** Solver   : Z3+*** Exit code: ExitSuccess++RESULT:+Satisfiable. Model:+  s0 = 0 :: Integer
+ SBVTestSuite/GoldFiles/recursive1_ack.gold view
@@ -0,0 +1,1003 @@+[MEASURE] Verifying termination measures for: ack @(SBV Integer -> SBV Integer -> SBV Integer)+[MEASURE] Checking: ack @(SBV Integer -> SBV Integer -> SBV Integer)+[MEASURE] ack @(SBV Integer -> SBV Integer -> SBV Integer): barified = "|ack @(SBV Integer -> SBV Integer -> SBV Integer)|"+[MEASURE] ack @(SBV Integer -> SBV Integer -> SBV Integer): Uninterpreted ops in DAG: [("|ack @(SBV Integer -> SBV Integer -> SBV Integer)|",2),("|ack @(SBV Integer -> SBV Integer -> SBV Integer)|",2),("|ack @(SBV Integer -> SBV Integer -> SBV Integer)|",2)]+[MEASURE] ack @(SBV Integer -> SBV Integer -> SBV Integer): recursive calls found = 3+[MEASURE] ack @(SBV Integer -> SBV Integer -> SBV Integer): trying abs arg1+[MEASURE] replayDAG {ack @(SBV Integer -> SBV Integer -> SBV Integer)}: replaying 10 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () Int) ; tracks user variable "arg1"+[GOOD] (declare-fun s8 () Int) ; tracks user variable "__internal_sbv_s8"+[GOOD] (declare-fun s10 () Int) ; tracks user variable "__internal_sbv_s10"+[GOOD] (declare-fun s11 () Int) ; tracks user variable "__internal_sbv_s11"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (<= s0 s2))+[GOOD] (define-fun s5 () Int (+ s1 s3))+[GOOD] (define-fun s6 () Bool (<= s1 s2))+[GOOD] (define-fun s7 () Int (- s0 s3))+[GOOD] (define-fun s9 () Int (- s1 s3))+[GOOD] (define-fun s12 () Int (ite s6 s8 s11))+[GOOD] (define-fun s13 () Int (ite s4 s5 s12))+[GOOD] (define-fun s14 () Int (abs s0))+[GOOD] (define-fun s15 () Bool (>= s14 s2))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s15))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {ack @(SBV Integer -> SBV Integer -> SBV Integer)}: replaying 10 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () Int) ; tracks user variable "arg1"+[GOOD] (declare-fun s8 () Int) ; tracks user variable "__internal_sbv_s8"+[GOOD] (declare-fun s10 () Int) ; tracks user variable "__internal_sbv_s10"+[GOOD] (declare-fun s11 () Int) ; tracks user variable "__internal_sbv_s11"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (<= s0 s2))+[GOOD] (define-fun s5 () Int (+ s1 s3))+[GOOD] (define-fun s6 () Bool (<= s1 s2))+[GOOD] (define-fun s7 () Int (- s0 s3))+[GOOD] (define-fun s9 () Int (- s1 s3))+[GOOD] (define-fun s12 () Int (ite s6 s8 s11))+[GOOD] (define-fun s13 () Int (ite s4 s5 s12))+[GOOD] (define-fun s14 () Int (abs s0))+[GOOD] (define-fun s15 () Int (abs s7))+[GOOD] (define-fun s16 () Bool (not s4))+[GOOD] (define-fun s17 () Bool (and s6 s16))+[GOOD] (define-fun s18 () Bool (> s14 s15))+[GOOD] (define-fun s19 () Bool (=> s17 s18))+[GOOD] (define-fun s20 () Bool (not s6))+[GOOD] (define-fun s21 () Bool (and s16 s20))+[GOOD] (define-fun s22 () Bool (=> s21 false))+[GOOD] (define-fun s23 () Bool (=> s21 s18))+[GOOD] (define-fun s24 () Bool (and s22 s23))+[GOOD] (define-fun s25 () Bool (and s19 s24))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s25))+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s14))+[RECV] ((s14 2))+[SEND] (get-value (s15))+[RECV] ((s15 1))+[SEND] (get-value (s14))+[RECV] ((s14 2))+[SEND] (get-value (s15))+[RECV] ((s15 1))+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s8))+[RECV] ((s8 0))+[SEND] (get-value (s10))+[RECV] ((s10 0))+[SEND] (get-value (s11))+[RECV] ((s11 0))+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] ack @(SBV Integer -> SBV Integer -> SBV Integer): abs arg1 failed strict decrease: Falsifiable. Counter-example:+  arg0    = 2 :: Integer+  arg1    = 1 :: Integer+  before  = 2 :: Integer+  then[1] = 1 :: Integer+  then[2] = 2 :: Integer+  then[3] = 1 :: Integer+[MEASURE] ack @(SBV Integer -> SBV Integer -> SBV Integer): trying next candidate..+[MEASURE] ack @(SBV Integer -> SBV Integer -> SBV Integer): trying smax 0 arg1+[MEASURE] replayDAG {ack @(SBV Integer -> SBV Integer -> SBV Integer)}: replaying 10 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () Int) ; tracks user variable "arg1"+[GOOD] (declare-fun s8 () Int) ; tracks user variable "__internal_sbv_s8"+[GOOD] (declare-fun s10 () Int) ; tracks user variable "__internal_sbv_s10"+[GOOD] (declare-fun s11 () Int) ; tracks user variable "__internal_sbv_s11"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (<= s0 s2))+[GOOD] (define-fun s5 () Int (+ s1 s3))+[GOOD] (define-fun s6 () Bool (<= s1 s2))+[GOOD] (define-fun s7 () Int (- s0 s3))+[GOOD] (define-fun s9 () Int (- s1 s3))+[GOOD] (define-fun s12 () Int (ite s6 s8 s11))+[GOOD] (define-fun s13 () Int (ite s4 s5 s12))+[GOOD] (define-fun s14 () Bool (<= s2 s0))+[GOOD] (define-fun s15 () Int (ite s14 s0 s2))+[GOOD] (define-fun s16 () Bool (>= s15 s2))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s16))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {ack @(SBV Integer -> SBV Integer -> SBV Integer)}: replaying 10 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () Int) ; tracks user variable "arg1"+[GOOD] (declare-fun s8 () Int) ; tracks user variable "__internal_sbv_s8"+[GOOD] (declare-fun s10 () Int) ; tracks user variable "__internal_sbv_s10"+[GOOD] (declare-fun s11 () Int) ; tracks user variable "__internal_sbv_s11"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (<= s0 s2))+[GOOD] (define-fun s5 () Int (+ s1 s3))+[GOOD] (define-fun s6 () Bool (<= s1 s2))+[GOOD] (define-fun s7 () Int (- s0 s3))+[GOOD] (define-fun s9 () Int (- s1 s3))+[GOOD] (define-fun s12 () Int (ite s6 s8 s11))+[GOOD] (define-fun s13 () Int (ite s4 s5 s12))+[GOOD] (define-fun s14 () Bool (<= s2 s0))+[GOOD] (define-fun s15 () Int (ite s14 s0 s2))+[GOOD] (define-fun s16 () Bool (<= s2 s7))+[GOOD] (define-fun s17 () Int (ite s16 s7 s2))+[GOOD] (define-fun s18 () Bool (not s4))+[GOOD] (define-fun s19 () Bool (and s6 s18))+[GOOD] (define-fun s20 () Bool (> s15 s17))+[GOOD] (define-fun s21 () Bool (=> s19 s20))+[GOOD] (define-fun s22 () Bool (not s6))+[GOOD] (define-fun s23 () Bool (and s18 s22))+[GOOD] (define-fun s24 () Bool (=> s23 false))+[GOOD] (define-fun s25 () Bool (=> s23 s20))+[GOOD] (define-fun s26 () Bool (and s24 s25))+[GOOD] (define-fun s27 () Bool (and s21 s26))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s27))+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s15))+[RECV] ((s15 2))+[SEND] (get-value (s17))+[RECV] ((s17 1))+[SEND] (get-value (s15))+[RECV] ((s15 2))+[SEND] (get-value (s17))+[RECV] ((s17 1))+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s8))+[RECV] ((s8 0))+[SEND] (get-value (s10))+[RECV] ((s10 0))+[SEND] (get-value (s11))+[RECV] ((s11 0))+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] ack @(SBV Integer -> SBV Integer -> SBV Integer): smax 0 arg1 failed strict decrease: Falsifiable. Counter-example:+  arg0    = 2 :: Integer+  arg1    = 1 :: Integer+  before  = 2 :: Integer+  then[1] = 1 :: Integer+  then[2] = 2 :: Integer+  then[3] = 1 :: Integer+[MEASURE] ack @(SBV Integer -> SBV Integer -> SBV Integer): trying next candidate..+[MEASURE] ack @(SBV Integer -> SBV Integer -> SBV Integer): trying abs arg2+[MEASURE] replayDAG {ack @(SBV Integer -> SBV Integer -> SBV Integer)}: replaying 10 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () Int) ; tracks user variable "arg1"+[GOOD] (declare-fun s8 () Int) ; tracks user variable "__internal_sbv_s8"+[GOOD] (declare-fun s10 () Int) ; tracks user variable "__internal_sbv_s10"+[GOOD] (declare-fun s11 () Int) ; tracks user variable "__internal_sbv_s11"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (<= s0 s2))+[GOOD] (define-fun s5 () Int (+ s1 s3))+[GOOD] (define-fun s6 () Bool (<= s1 s2))+[GOOD] (define-fun s7 () Int (- s0 s3))+[GOOD] (define-fun s9 () Int (- s1 s3))+[GOOD] (define-fun s12 () Int (ite s6 s8 s11))+[GOOD] (define-fun s13 () Int (ite s4 s5 s12))+[GOOD] (define-fun s14 () Int (abs s1))+[GOOD] (define-fun s15 () Bool (>= s14 s2))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s15))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {ack @(SBV Integer -> SBV Integer -> SBV Integer)}: replaying 10 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () Int) ; tracks user variable "arg1"+[GOOD] (declare-fun s8 () Int) ; tracks user variable "__internal_sbv_s8"+[GOOD] (declare-fun s10 () Int) ; tracks user variable "__internal_sbv_s10"+[GOOD] (declare-fun s11 () Int) ; tracks user variable "__internal_sbv_s11"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (<= s0 s2))+[GOOD] (define-fun s5 () Int (+ s1 s3))+[GOOD] (define-fun s6 () Bool (<= s1 s2))+[GOOD] (define-fun s7 () Int (- s0 s3))+[GOOD] (define-fun s9 () Int (- s1 s3))+[GOOD] (define-fun s12 () Int (ite s6 s8 s11))+[GOOD] (define-fun s13 () Int (ite s4 s5 s12))+[GOOD] (define-fun s14 () Int (abs s1))+[GOOD] (define-fun s15 () Int (abs s3))+[GOOD] (define-fun s16 () Int (abs s9))+[GOOD] (define-fun s17 () Int (abs s10))+[GOOD] (define-fun s18 () Bool (not s4))+[GOOD] (define-fun s19 () Bool (and s6 s18))+[GOOD] (define-fun s20 () Bool (> s14 s15))+[GOOD] (define-fun s21 () Bool (=> s19 s20))+[GOOD] (define-fun s22 () Bool (not s6))+[GOOD] (define-fun s23 () Bool (and s18 s22))+[GOOD] (define-fun s24 () Bool (> s14 s16))+[GOOD] (define-fun s25 () Bool (=> s23 s24))+[GOOD] (define-fun s26 () Bool (> s14 s17))+[GOOD] (define-fun s27 () Bool (=> s23 s26))+[GOOD] (define-fun s28 () Bool (and s25 s27))+[GOOD] (define-fun s29 () Bool (and s21 s28))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s29))+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s14))+[RECV] ((s14 1))+[SEND] (get-value (s15))+[RECV] ((s15 1))+[SEND] (get-value (s16))+[RECV] ((s16 2))+[SEND] (get-value (s17))+[RECV] ((s17 1))+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 (- 1)))+[SEND] (get-value (s8))+[RECV] ((s8 0))+[SEND] (get-value (s10))+[RECV] ((s10 (- 1)))+[SEND] (get-value (s11))+[RECV] ((s11 0))+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] ack @(SBV Integer -> SBV Integer -> SBV Integer): abs arg2 failed strict decrease: Falsifiable. Counter-example:+  arg0    =  1 :: Integer+  arg1    = -1 :: Integer+  before  =  1 :: Integer+  then[1] =  1 :: Integer+  then[2] =  2 :: Integer+  then[3] =  1 :: Integer+[MEASURE] ack @(SBV Integer -> SBV Integer -> SBV Integer): trying next candidate..+[MEASURE] ack @(SBV Integer -> SBV Integer -> SBV Integer): trying smax 0 arg2+[MEASURE] replayDAG {ack @(SBV Integer -> SBV Integer -> SBV Integer)}: replaying 10 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () Int) ; tracks user variable "arg1"+[GOOD] (declare-fun s8 () Int) ; tracks user variable "__internal_sbv_s8"+[GOOD] (declare-fun s10 () Int) ; tracks user variable "__internal_sbv_s10"+[GOOD] (declare-fun s11 () Int) ; tracks user variable "__internal_sbv_s11"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (<= s0 s2))+[GOOD] (define-fun s5 () Int (+ s1 s3))+[GOOD] (define-fun s6 () Bool (<= s1 s2))+[GOOD] (define-fun s7 () Int (- s0 s3))+[GOOD] (define-fun s9 () Int (- s1 s3))+[GOOD] (define-fun s12 () Int (ite s6 s8 s11))+[GOOD] (define-fun s13 () Int (ite s4 s5 s12))+[GOOD] (define-fun s14 () Bool (<= s2 s1))+[GOOD] (define-fun s15 () Int (ite s14 s1 s2))+[GOOD] (define-fun s16 () Bool (>= s15 s2))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s16))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {ack @(SBV Integer -> SBV Integer -> SBV Integer)}: replaying 10 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () Int) ; tracks user variable "arg1"+[GOOD] (declare-fun s8 () Int) ; tracks user variable "__internal_sbv_s8"+[GOOD] (declare-fun s10 () Int) ; tracks user variable "__internal_sbv_s10"+[GOOD] (declare-fun s11 () Int) ; tracks user variable "__internal_sbv_s11"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (<= s0 s2))+[GOOD] (define-fun s5 () Int (+ s1 s3))+[GOOD] (define-fun s6 () Bool (<= s1 s2))+[GOOD] (define-fun s7 () Int (- s0 s3))+[GOOD] (define-fun s9 () Int (- s1 s3))+[GOOD] (define-fun s12 () Int (ite s6 s8 s11))+[GOOD] (define-fun s13 () Int (ite s4 s5 s12))+[GOOD] (define-fun s14 () Bool (<= s2 s1))+[GOOD] (define-fun s15 () Int (ite s14 s1 s2))+[GOOD] (define-fun s16 () Bool (<= s2 s3))+[GOOD] (define-fun s17 () Int (ite s16 s3 s2))+[GOOD] (define-fun s18 () Bool (<= s2 s9))+[GOOD] (define-fun s19 () Int (ite s18 s9 s2))+[GOOD] (define-fun s20 () Bool (<= s2 s10))+[GOOD] (define-fun s21 () Int (ite s20 s10 s2))+[GOOD] (define-fun s22 () Bool (not s4))+[GOOD] (define-fun s23 () Bool (and s6 s22))+[GOOD] (define-fun s24 () Bool (> s15 s17))+[GOOD] (define-fun s25 () Bool (=> s23 s24))+[GOOD] (define-fun s26 () Bool (not s6))+[GOOD] (define-fun s27 () Bool (and s22 s26))+[GOOD] (define-fun s28 () Bool (> s15 s19))+[GOOD] (define-fun s29 () Bool (=> s27 s28))+[GOOD] (define-fun s30 () Bool (> s15 s21))+[GOOD] (define-fun s31 () Bool (=> s27 s30))+[GOOD] (define-fun s32 () Bool (and s29 s31))+[GOOD] (define-fun s33 () Bool (and s25 s32))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s33))+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s15))+[RECV] ((s15 2))+[SEND] (get-value (s17))+[RECV] ((s17 1))+[SEND] (get-value (s19))+[RECV] ((s19 1))+[SEND] (get-value (s21))+[RECV] ((s21 2))+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s8))+[RECV] ((s8 0))+[SEND] (get-value (s10))+[RECV] ((s10 2))+[SEND] (get-value (s11))+[RECV] ((s11 0))+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] ack @(SBV Integer -> SBV Integer -> SBV Integer): smax 0 arg2 failed strict decrease: Falsifiable. Counter-example:+  arg0    = 1 :: Integer+  arg1    = 2 :: Integer+  before  = 2 :: Integer+  then[1] = 1 :: Integer+  then[2] = 1 :: Integer+  then[3] = 2 :: Integer+[MEASURE] ack @(SBV Integer -> SBV Integer -> SBV Integer): trying next candidate..+[MEASURE] ack @(SBV Integer -> SBV Integer -> SBV Integer): trying abs arg1 + smax 0 arg1 + abs arg2 + smax 0 arg2+[MEASURE] replayDAG {ack @(SBV Integer -> SBV Integer -> SBV Integer)}: replaying 10 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () Int) ; tracks user variable "arg1"+[GOOD] (declare-fun s8 () Int) ; tracks user variable "__internal_sbv_s8"+[GOOD] (declare-fun s10 () Int) ; tracks user variable "__internal_sbv_s10"+[GOOD] (declare-fun s11 () Int) ; tracks user variable "__internal_sbv_s11"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (<= s0 s2))+[GOOD] (define-fun s5 () Int (+ s1 s3))+[GOOD] (define-fun s6 () Bool (<= s1 s2))+[GOOD] (define-fun s7 () Int (- s0 s3))+[GOOD] (define-fun s9 () Int (- s1 s3))+[GOOD] (define-fun s12 () Int (ite s6 s8 s11))+[GOOD] (define-fun s13 () Int (ite s4 s5 s12))+[GOOD] (define-fun s14 () Int (abs s0))+[GOOD] (define-fun s15 () Bool (<= s2 s0))+[GOOD] (define-fun s16 () Int (ite s15 s0 s2))+[GOOD] (define-fun s17 () Int (+ s14 s16))+[GOOD] (define-fun s18 () Int (abs s1))+[GOOD] (define-fun s19 () Int (+ s17 s18))+[GOOD] (define-fun s20 () Bool (<= s2 s1))+[GOOD] (define-fun s21 () Int (ite s20 s1 s2))+[GOOD] (define-fun s22 () Int (+ s19 s21))+[GOOD] (define-fun s23 () Bool (>= s22 s2))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s23))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {ack @(SBV Integer -> SBV Integer -> SBV Integer)}: replaying 10 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () Int) ; tracks user variable "arg1"+[GOOD] (declare-fun s8 () Int) ; tracks user variable "__internal_sbv_s8"+[GOOD] (declare-fun s10 () Int) ; tracks user variable "__internal_sbv_s10"+[GOOD] (declare-fun s11 () Int) ; tracks user variable "__internal_sbv_s11"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (<= s0 s2))+[GOOD] (define-fun s5 () Int (+ s1 s3))+[GOOD] (define-fun s6 () Bool (<= s1 s2))+[GOOD] (define-fun s7 () Int (- s0 s3))+[GOOD] (define-fun s9 () Int (- s1 s3))+[GOOD] (define-fun s12 () Int (ite s6 s8 s11))+[GOOD] (define-fun s13 () Int (ite s4 s5 s12))+[GOOD] (define-fun s14 () Int (abs s0))+[GOOD] (define-fun s15 () Bool (<= s2 s0))+[GOOD] (define-fun s16 () Int (ite s15 s0 s2))+[GOOD] (define-fun s17 () Int (+ s14 s16))+[GOOD] (define-fun s18 () Int (abs s1))+[GOOD] (define-fun s19 () Int (+ s17 s18))+[GOOD] (define-fun s20 () Bool (<= s2 s1))+[GOOD] (define-fun s21 () Int (ite s20 s1 s2))+[GOOD] (define-fun s22 () Int (+ s19 s21))+[GOOD] (define-fun s23 () Int (abs s7))+[GOOD] (define-fun s24 () Bool (<= s2 s7))+[GOOD] (define-fun s25 () Int (ite s24 s7 s2))+[GOOD] (define-fun s26 () Int (+ s23 s25))+[GOOD] (define-fun s27 () Int (abs s3))+[GOOD] (define-fun s28 () Int (+ s26 s27))+[GOOD] (define-fun s29 () Bool (<= s2 s3))+[GOOD] (define-fun s30 () Int (ite s29 s3 s2))+[GOOD] (define-fun s31 () Int (+ s28 s30))+[GOOD] (define-fun s32 () Int (abs s9))+[GOOD] (define-fun s33 () Int (+ s17 s32))+[GOOD] (define-fun s34 () Bool (<= s2 s9))+[GOOD] (define-fun s35 () Int (ite s34 s9 s2))+[GOOD] (define-fun s36 () Int (+ s33 s35))+[GOOD] (define-fun s37 () Int (abs s10))+[GOOD] (define-fun s38 () Int (+ s26 s37))+[GOOD] (define-fun s39 () Bool (<= s2 s10))+[GOOD] (define-fun s40 () Int (ite s39 s10 s2))+[GOOD] (define-fun s41 () Int (+ s38 s40))+[GOOD] (define-fun s42 () Bool (not s4))+[GOOD] (define-fun s43 () Bool (and s6 s42))+[GOOD] (define-fun s44 () Bool (> s22 s31))+[GOOD] (define-fun s45 () Bool (=> s43 s44))+[GOOD] (define-fun s46 () Bool (not s6))+[GOOD] (define-fun s47 () Bool (and s42 s46))+[GOOD] (define-fun s48 () Bool (> s22 s36))+[GOOD] (define-fun s49 () Bool (=> s47 s48))+[GOOD] (define-fun s50 () Bool (> s22 s41))+[GOOD] (define-fun s51 () Bool (=> s47 s50))+[GOOD] (define-fun s52 () Bool (and s49 s51))+[GOOD] (define-fun s53 () Bool (and s45 s52))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s53))+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s22))+[RECV] ((s22 8))+[SEND] (get-value (s31))+[RECV] ((s31 4))+[SEND] (get-value (s36))+[RECV] ((s36 6))+[SEND] (get-value (s41))+[RECV] ((s41 8))+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 2))+[SEND] (get-value (s8))+[RECV] ((s8 0))+[SEND] (get-value (s10))+[RECV] ((s10 (- 6)))+[SEND] (get-value (s11))+[RECV] ((s11 0))+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] ack @(SBV Integer -> SBV Integer -> SBV Integer): abs arg1 + smax 0 arg1 + abs arg2 + smax 0 arg2 failed strict decrease: Falsifiable. Counter-example:+  arg0    = 2 :: Integer+  arg1    = 2 :: Integer+  before  = 8 :: Integer+  then[1] = 4 :: Integer+  then[2] = 6 :: Integer+  then[3] = 8 :: Integer+[MEASURE] ack @(SBV Integer -> SBV Integer -> SBV Integer): trying next candidate..+[MEASURE] ack @(SBV Integer -> SBV Integer -> SBV Integer): trying (abs arg1, smax 0 arg1)+[MEASURE] replayDAG {ack @(SBV Integer -> SBV Integer -> SBV Integer)}: replaying 10 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () Int) ; tracks user variable "arg1"+[GOOD] (declare-fun s8 () Int) ; tracks user variable "__internal_sbv_s8"+[GOOD] (declare-fun s10 () Int) ; tracks user variable "__internal_sbv_s10"+[GOOD] (declare-fun s11 () Int) ; tracks user variable "__internal_sbv_s11"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (<= s0 s2))+[GOOD] (define-fun s5 () Int (+ s1 s3))+[GOOD] (define-fun s6 () Bool (<= s1 s2))+[GOOD] (define-fun s7 () Int (- s0 s3))+[GOOD] (define-fun s9 () Int (- s1 s3))+[GOOD] (define-fun s12 () Int (ite s6 s8 s11))+[GOOD] (define-fun s13 () Int (ite s4 s5 s12))+[GOOD] (define-fun s14 () Int (abs s0))+[GOOD] (define-fun s15 () Bool (<= s2 s0))+[GOOD] (define-fun s16 () Int (ite s15 s0 s2))+[GOOD] (define-fun s17 () (SBVTuple2 Int Int) ((as mkSBVTuple2 (SBVTuple2 Int Int)) s14 s16))+[GOOD] (define-fun s18 () Int (proj_1_SBVTuple2 s17))+[GOOD] (define-fun s19 () Bool (>= s18 s2))+[GOOD] (define-fun s20 () Int (proj_2_SBVTuple2 s17))+[GOOD] (define-fun s21 () Bool (>= s20 s2))+[GOOD] (define-fun s22 () Bool (and s19 s21))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s22))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {ack @(SBV Integer -> SBV Integer -> SBV Integer)}: replaying 10 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () Int) ; tracks user variable "arg1"+[GOOD] (declare-fun s8 () Int) ; tracks user variable "__internal_sbv_s8"+[GOOD] (declare-fun s10 () Int) ; tracks user variable "__internal_sbv_s10"+[GOOD] (declare-fun s11 () Int) ; tracks user variable "__internal_sbv_s11"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (<= s0 s2))+[GOOD] (define-fun s5 () Int (+ s1 s3))+[GOOD] (define-fun s6 () Bool (<= s1 s2))+[GOOD] (define-fun s7 () Int (- s0 s3))+[GOOD] (define-fun s9 () Int (- s1 s3))+[GOOD] (define-fun s12 () Int (ite s6 s8 s11))+[GOOD] (define-fun s13 () Int (ite s4 s5 s12))+[GOOD] (define-fun s14 () Int (abs s0))+[GOOD] (define-fun s15 () Bool (<= s2 s0))+[GOOD] (define-fun s16 () Int (ite s15 s0 s2))+[GOOD] (define-fun s17 () (SBVTuple2 Int Int) ((as mkSBVTuple2 (SBVTuple2 Int Int)) s14 s16))+[GOOD] (define-fun s18 () Int (abs s7))+[GOOD] (define-fun s19 () Bool (<= s2 s7))+[GOOD] (define-fun s20 () Int (ite s19 s7 s2))+[GOOD] (define-fun s21 () (SBVTuple2 Int Int) ((as mkSBVTuple2 (SBVTuple2 Int Int)) s18 s20))+[GOOD] (define-fun s22 () Bool (not s4))+[GOOD] (define-fun s23 () Bool (and s6 s22))+[GOOD] (define-fun s24 () Int (proj_1_SBVTuple2 s21))+[GOOD] (define-fun s25 () Int (proj_1_SBVTuple2 s17))+[GOOD] (define-fun s26 () Bool (< s24 s25))+[GOOD] (define-fun s27 () Bool (= s24 s25))+[GOOD] (define-fun s28 () Int (proj_2_SBVTuple2 s21))+[GOOD] (define-fun s29 () Int (proj_2_SBVTuple2 s17))+[GOOD] (define-fun s30 () Bool (< s28 s29))+[GOOD] (define-fun s31 () Bool (and s27 s30))+[GOOD] (define-fun s32 () Bool (or s26 s31))+[GOOD] (define-fun s33 () Bool (=> s23 s32))+[GOOD] (define-fun s34 () Bool (not s6))+[GOOD] (define-fun s35 () Bool (and s22 s34))+[GOOD] (define-fun s36 () Bool (=> s35 false))+[GOOD] (define-fun s37 () Bool (=> s35 s32))+[GOOD] (define-fun s38 () Bool (and s36 s37))+[GOOD] (define-fun s39 () Bool (and s33 s38))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s39))+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s17))+[RECV] ((s17 (mkSBVTuple2 2 2)))+[SEND] (get-value (s21))+[RECV] ((s21 (mkSBVTuple2 1 1)))+[SEND] (get-value (s17))+[RECV] ((s17 (mkSBVTuple2 2 2)))+[SEND] (get-value (s21))+[RECV] ((s21 (mkSBVTuple2 1 1)))+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s1))+[RECV] ((s1 1))+[SEND] (get-value (s8))+[RECV] ((s8 0))+[SEND] (get-value (s10))+[RECV] ((s10 0))+[SEND] (get-value (s11))+[RECV] ((s11 0))+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] ack @(SBV Integer -> SBV Integer -> SBV Integer): (abs arg1, smax 0 arg1) failed strict decrease: Falsifiable. Counter-example:+  arg0    =     2 :: Integer+  arg1    =     1 :: Integer+  before  = (2,2) :: (Integer, Integer)+  then[1] = (1,1) :: (Integer, Integer)+  then[2] = (2,2) :: (Integer, Integer)+  then[3] = (1,1) :: (Integer, Integer)+[MEASURE] ack @(SBV Integer -> SBV Integer -> SBV Integer): trying next candidate..+[MEASURE] ack @(SBV Integer -> SBV Integer -> SBV Integer): trying (abs arg1, abs arg2)+[MEASURE] replayDAG {ack @(SBV Integer -> SBV Integer -> SBV Integer)}: replaying 10 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () Int) ; tracks user variable "arg1"+[GOOD] (declare-fun s8 () Int) ; tracks user variable "__internal_sbv_s8"+[GOOD] (declare-fun s10 () Int) ; tracks user variable "__internal_sbv_s10"+[GOOD] (declare-fun s11 () Int) ; tracks user variable "__internal_sbv_s11"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (<= s0 s2))+[GOOD] (define-fun s5 () Int (+ s1 s3))+[GOOD] (define-fun s6 () Bool (<= s1 s2))+[GOOD] (define-fun s7 () Int (- s0 s3))+[GOOD] (define-fun s9 () Int (- s1 s3))+[GOOD] (define-fun s12 () Int (ite s6 s8 s11))+[GOOD] (define-fun s13 () Int (ite s4 s5 s12))+[GOOD] (define-fun s14 () Int (abs s0))+[GOOD] (define-fun s15 () Int (abs s1))+[GOOD] (define-fun s16 () (SBVTuple2 Int Int) ((as mkSBVTuple2 (SBVTuple2 Int Int)) s14 s15))+[GOOD] (define-fun s17 () Int (proj_1_SBVTuple2 s16))+[GOOD] (define-fun s18 () Bool (>= s17 s2))+[GOOD] (define-fun s19 () Int (proj_2_SBVTuple2 s16))+[GOOD] (define-fun s20 () Bool (>= s19 s2))+[GOOD] (define-fun s21 () Bool (and s18 s20))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s21))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {ack @(SBV Integer -> SBV Integer -> SBV Integer)}: replaying 10 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () Int) ; tracks user variable "arg1"+[GOOD] (declare-fun s8 () Int) ; tracks user variable "__internal_sbv_s8"+[GOOD] (declare-fun s10 () Int) ; tracks user variable "__internal_sbv_s10"+[GOOD] (declare-fun s11 () Int) ; tracks user variable "__internal_sbv_s11"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (<= s0 s2))+[GOOD] (define-fun s5 () Int (+ s1 s3))+[GOOD] (define-fun s6 () Bool (<= s1 s2))+[GOOD] (define-fun s7 () Int (- s0 s3))+[GOOD] (define-fun s9 () Int (- s1 s3))+[GOOD] (define-fun s12 () Int (ite s6 s8 s11))+[GOOD] (define-fun s13 () Int (ite s4 s5 s12))+[GOOD] (define-fun s14 () Int (abs s0))+[GOOD] (define-fun s15 () Int (abs s1))+[GOOD] (define-fun s16 () (SBVTuple2 Int Int) ((as mkSBVTuple2 (SBVTuple2 Int Int)) s14 s15))+[GOOD] (define-fun s17 () Int (abs s7))+[GOOD] (define-fun s18 () Int (abs s3))+[GOOD] (define-fun s19 () (SBVTuple2 Int Int) ((as mkSBVTuple2 (SBVTuple2 Int Int)) s17 s18))+[GOOD] (define-fun s20 () Int (abs s9))+[GOOD] (define-fun s21 () (SBVTuple2 Int Int) ((as mkSBVTuple2 (SBVTuple2 Int Int)) s14 s20))+[GOOD] (define-fun s22 () Int (abs s10))+[GOOD] (define-fun s23 () (SBVTuple2 Int Int) ((as mkSBVTuple2 (SBVTuple2 Int Int)) s17 s22))+[GOOD] (define-fun s24 () Bool (not s4))+[GOOD] (define-fun s25 () Bool (and s6 s24))+[GOOD] (define-fun s26 () Int (proj_1_SBVTuple2 s19))+[GOOD] (define-fun s27 () Int (proj_1_SBVTuple2 s16))+[GOOD] (define-fun s28 () Bool (< s26 s27))+[GOOD] (define-fun s29 () Bool (= s26 s27))+[GOOD] (define-fun s30 () Int (proj_2_SBVTuple2 s19))+[GOOD] (define-fun s31 () Int (proj_2_SBVTuple2 s16))+[GOOD] (define-fun s32 () Bool (< s30 s31))+[GOOD] (define-fun s33 () Bool (and s29 s32))+[GOOD] (define-fun s34 () Bool (or s28 s33))+[GOOD] (define-fun s35 () Bool (=> s25 s34))+[GOOD] (define-fun s36 () Bool (not s6))+[GOOD] (define-fun s37 () Bool (and s24 s36))+[GOOD] (define-fun s38 () Int (proj_1_SBVTuple2 s21))+[GOOD] (define-fun s39 () Bool (< s38 s27))+[GOOD] (define-fun s40 () Bool (= s27 s38))+[GOOD] (define-fun s41 () Int (proj_2_SBVTuple2 s21))+[GOOD] (define-fun s42 () Bool (< s41 s31))+[GOOD] (define-fun s43 () Bool (and s40 s42))+[GOOD] (define-fun s44 () Bool (or s39 s43))+[GOOD] (define-fun s45 () Bool (=> s37 s44))+[GOOD] (define-fun s46 () Int (proj_1_SBVTuple2 s23))+[GOOD] (define-fun s47 () Bool (< s46 s27))+[GOOD] (define-fun s48 () Bool (= s27 s46))+[GOOD] (define-fun s49 () Int (proj_2_SBVTuple2 s23))+[GOOD] (define-fun s50 () Bool (< s49 s31))+[GOOD] (define-fun s51 () Bool (and s48 s50))+[GOOD] (define-fun s52 () Bool (or s47 s51))+[GOOD] (define-fun s53 () Bool (=> s37 s52))+[GOOD] (define-fun s54 () Bool (and s45 s53))+[GOOD] (define-fun s55 () Bool (and s35 s54))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s55))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] ack @(SBV Integer -> SBV Integer -> SBV Integer): (abs arg1, abs arg2) -> OK+[MEASURE] Passed (terminating): ack @(SBV Integer -> SBV Integer -> SBV Integer)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 5)+[GOOD] (define-fun s4 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int)+[GOOD] (declare-fun s1 () Int)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; |ack @(SBV Integer -> SBV Integer -> SBV Integer)| :: SInteger -> SInteger -> SInteger [Recursive]+[GOOD] (define-fun-rec |ack @(SBV Integer -> SBV Integer -> SBV Integer)| ((l1_s0 Int) (l1_s1 Int)) Int+                                 (let ((l1_s2 0))+                                 (let ((l1_s4 1))+                                 (let ((l1_s3 (<= l1_s0 l1_s2)))+                                 (let ((l1_s5 (+ l1_s1 l1_s4)))+                                 (let ((l1_s6 (<= l1_s1 l1_s2)))+                                 (let ((l1_s7 (- l1_s0 l1_s4)))+                                 (let ((l1_s8 (|ack @(SBV Integer -> SBV Integer -> SBV Integer)| l1_s7 l1_s4)))+                                 (let ((l1_s9 (- l1_s1 l1_s4)))+                                 (let ((l1_s10 (|ack @(SBV Integer -> SBV Integer -> SBV Integer)| l1_s0 l1_s9)))+                                 (let ((l1_s11 (|ack @(SBV Integer -> SBV Integer -> SBV Integer)| l1_s7 l1_s10)))+                                 (let ((l1_s12 (ite l1_s6 l1_s8 l1_s11)))+                                 (let ((l1_s13 (ite l1_s3 l1_s5 l1_s12)))+                                 l1_s13)))))))))))))+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (= s0 s2))+[GOOD] (define-fun s5 () Int (|ack @(SBV Integer -> SBV Integer -> SBV Integer)| s4 s0))+[GOOD] (define-fun s6 () Bool (= s1 s5))+[GOOD] (define-fun s7 () Bool (and s3 s6))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s7)+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 5))+[SEND] (get-value (s1))+[RECV] ((s1 7))+*** Solver   : Z3+*** Exit code: ExitSuccess++RESULT:+Satisfiable. Model:+  s0 = 5 :: Integer+  s1 = 7 :: Integer
+ SBVTestSuite/GoldFiles/recursive20_mutualTP.gold view
@@ -0,0 +1,221 @@+[MEASURE] checkNewMeasures: 2 to verify+[MEASURE] checkNewMeasures: verifying mf_tp @(SBV Integer -> SBV Integer)+[MEASURE] Checking mutual recursion group: {mf_tp :: SBV Integer -> SBV Integer, mg_tp :: SBV Integer -> SBV Integer}+[MEASURE] Mutual group: trying measure abs arg1 for all members+[MEASURE] replayDAG {mf_tp @(SBV Integer -> SBV Integer), mg_tp @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Int (abs s0))+[GOOD] (define-fun s9 () Bool (>= s8 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s9))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {mf_tp @(SBV Integer -> SBV Integer), mg_tp @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Int (abs s0))+[GOOD] (define-fun s9 () Int (abs s4))+[GOOD] (define-fun s10 () Bool (not s3))+[GOOD] (define-fun s11 () Bool (> s8 s9))+[GOOD] (define-fun s12 () Bool (=> s10 s11))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s12))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Mutual group: decrease verified for mf_tp @(SBV Integer -> SBV Integer)+[MEASURE] replayDAG {mf_tp @(SBV Integer -> SBV Integer), mg_tp @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Int (abs s0))+[GOOD] (define-fun s9 () Bool (>= s8 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s9))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {mf_tp @(SBV Integer -> SBV Integer), mg_tp @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s2 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Int (abs s0))+[GOOD] (define-fun s9 () Int (abs s4))+[GOOD] (define-fun s10 () Bool (not s3))+[GOOD] (define-fun s11 () Bool (> s8 s9))+[GOOD] (define-fun s12 () Bool (=> s10 s11))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s12))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Mutual group: decrease verified for mg_tp @(SBV Integer -> SBV Integer)+[MEASURE] Mutual group: measure abs arg1 works for all members+[MEASURE] checkNewMeasures: mf_tp @(SBV Integer -> SBV Integer) verified+[MEASURE] checkNewMeasures: verifying mg_tp @(SBV Integer -> SBV Integer)+[MEASURE] mg_tp @(SBV Integer -> SBV Integer): mutual group already verified, skipping+[MEASURE] checkNewMeasures: mg_tp @(SBV Integer -> SBV Integer) verified+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "__internal_sbv_s0"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; |mf_tp @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger, |mg_tp @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger+[GOOD] (define-funs-rec+         ((|mf_tp @(SBV Integer -> SBV Integer)| ((l1_s0 Int)) Int)+          (|mg_tp @(SBV Integer -> SBV Integer)| ((l2_s0 Int)) Int))+         (; Definition of: |mf_tp @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger. [Refers to: |mg_tp @(SBV Integer -> SBV Integer)|]+                                  (let ((l1_s1 0))+                                  (let ((l1_s3 1))+                                  (let ((l1_s2 (<= l1_s0 l1_s1)))+                                  (let ((l1_s4 (- l1_s0 l1_s3)))+                                  (let ((l1_s5 (|mg_tp @(SBV Integer -> SBV Integer)| l1_s4)))+                                  (let ((l1_s6 (+ l1_s3 l1_s5)))+                                  (let ((l1_s7 (ite l1_s2 l1_s1 l1_s6)))+                                  l1_s7)))))))+          ; Definition of: |mg_tp @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger. [Refers to: |mf_tp @(SBV Integer -> SBV Integer)|]+                                                  (let ((l2_s1 0))+                                                  (let ((l2_s3 1))+                                                  (let ((l2_s2 (<= l2_s0 l2_s1)))+                                                  (let ((l2_s4 (- l2_s0 l2_s3)))+                                                  (let ((l2_s5 (|mf_tp @(SBV Integer -> SBV Integer)| l2_s4)))+                                                  (let ((l2_s6 (+ l2_s3 l2_s5)))+                                                  (let ((l2_s7 (ite l2_s2 l2_s1 l2_s6)))+                                                  l2_s7)))))))))+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s3 () Int (|mf_tp @(SBV Integer -> SBV Integer)| s0))+[GOOD] (define-fun s4 () Bool (= s1 s3))+[GOOD] (define-fun s5 () Bool (=> s2 s4))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+; smtProofStep: No context value to push.+Lemma: mutual_at_0+[GOOD] (define-fun s6 () Bool (forall ((l1_s0 Int))+                                 (let ((l1_s1 0))+                                 (let ((l1_s2 (= l1_s0 l1_s1)))+                                 (let ((l1_s3 (|mf_tp @(SBV Integer -> SBV Integer)| l1_s0)))+                                 (let ((l1_s4 (= l1_s1 l1_s3)))+                                 (let ((l1_s5 (=> l1_s2 l1_s4)))+                                 l1_s5)))))))+[GOOD] (define-fun s7 () Bool (not s6))+[GOOD] (assert s7)+[SEND] (check-sat)+[RECV] unsat+    Q.E.D.+*** Solver   : Z3+*** Exit code: ExitSuccess+Functions proven terminating: mf_tp, mg_tp
+ SBVTestSuite/GoldFiles/recursive21_allSelfBadCross.gold view
@@ -0,0 +1,613 @@+[MEASURE] Verifying termination measures for: bf21 @(SBV Integer -> SBV Integer), bf21 @(SBV Integer -> SBV Integer), bg21 @(SBV Integer -> SBV Integer), bg21 @(SBV Integer -> SBV Integer)+[MEASURE] Checking: bf21 @(SBV Integer -> SBV Integer)+[MEASURE] Checking mutual recursion group: {bf21 :: SBV Integer -> SBV Integer, bg21 :: SBV Integer -> SBV Integer}+[MEASURE] Mutual group: trying measure abs arg1 for all members+[MEASURE] replayDAG {bf21 @(SBV Integer -> SBV Integer), bg21 @(SBV Integer -> SBV Integer)}: replaying 7 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] (declare-fun s7 () Int) ; tracks user variable "__internal_sbv_s7"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s0 s2))+[GOOD] (define-fun s8 () Int (+ s5 s7))+[GOOD] (define-fun s9 () Int (ite s3 s1 s8))+[GOOD] (define-fun s10 () Int (abs s0))+[GOOD] (define-fun s11 () Bool (>= s10 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s11))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {bf21 @(SBV Integer -> SBV Integer), bg21 @(SBV Integer -> SBV Integer)}: replaying 7 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] (declare-fun s7 () Int) ; tracks user variable "__internal_sbv_s7"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s0 s2))+[GOOD] (define-fun s8 () Int (+ s5 s7))+[GOOD] (define-fun s9 () Int (ite s3 s1 s8))+[GOOD] (define-fun s10 () Int (abs s0))+[GOOD] (define-fun s11 () Int (abs s4))+[GOOD] (define-fun s12 () Int (abs s6))+[GOOD] (define-fun s13 () Bool (not s3))+[GOOD] (define-fun s14 () Bool (> s10 s11))+[GOOD] (define-fun s15 () Bool (=> s13 s14))+[GOOD] (define-fun s16 () Bool (> s10 s12))+[GOOD] (define-fun s17 () Bool (=> s13 s16))+[GOOD] (define-fun s18 () Bool (and s15 s17))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s18))+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s10))+[RECV] ((s10 2))+[SEND] (get-value (s11))+[RECV] ((s11 1))+[SEND] (get-value (s12))+[RECV] ((s12 3))+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s5))+[RECV] ((s5 0))+[SEND] (get-value (s7))+[RECV] ((s7 0))+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Mutual group: decrease failed for bf21 @(SBV Integer -> SBV Integer): Falsifiable. Counter-example:+  arg     = 2 :: Integer+  before  = 2 :: Integer+  then[1] = 1 :: Integer+  then[2] = 3 :: Integer+[MEASURE] Mutual group: measure abs arg1 failed, trying next+[MEASURE] Mutual group: trying measure smax 0 arg1 for all members+[MEASURE] replayDAG {bf21 @(SBV Integer -> SBV Integer), bg21 @(SBV Integer -> SBV Integer)}: replaying 7 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] (declare-fun s7 () Int) ; tracks user variable "__internal_sbv_s7"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s0 s2))+[GOOD] (define-fun s8 () Int (+ s5 s7))+[GOOD] (define-fun s9 () Int (ite s3 s1 s8))+[GOOD] (define-fun s10 () Bool (<= s1 s0))+[GOOD] (define-fun s11 () Int (ite s10 s0 s1))+[GOOD] (define-fun s12 () Bool (>= s11 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s12))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {bf21 @(SBV Integer -> SBV Integer), bg21 @(SBV Integer -> SBV Integer)}: replaying 7 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] (declare-fun s7 () Int) ; tracks user variable "__internal_sbv_s7"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s0 s2))+[GOOD] (define-fun s8 () Int (+ s5 s7))+[GOOD] (define-fun s9 () Int (ite s3 s1 s8))+[GOOD] (define-fun s10 () Bool (<= s1 s0))+[GOOD] (define-fun s11 () Int (ite s10 s0 s1))+[GOOD] (define-fun s12 () Bool (<= s1 s4))+[GOOD] (define-fun s13 () Int (ite s12 s4 s1))+[GOOD] (define-fun s14 () Bool (<= s1 s6))+[GOOD] (define-fun s15 () Int (ite s14 s6 s1))+[GOOD] (define-fun s16 () Bool (not s3))+[GOOD] (define-fun s17 () Bool (> s11 s13))+[GOOD] (define-fun s18 () Bool (=> s16 s17))+[GOOD] (define-fun s19 () Bool (> s11 s15))+[GOOD] (define-fun s20 () Bool (=> s16 s19))+[GOOD] (define-fun s21 () Bool (and s18 s20))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s21))+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s11))+[RECV] ((s11 2))+[SEND] (get-value (s13))+[RECV] ((s13 1))+[SEND] (get-value (s15))+[RECV] ((s15 3))+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s5))+[RECV] ((s5 0))+[SEND] (get-value (s7))+[RECV] ((s7 0))+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Mutual group: decrease failed for bf21 @(SBV Integer -> SBV Integer): Falsifiable. Counter-example:+  arg     = 2 :: Integer+  before  = 2 :: Integer+  then[1] = 1 :: Integer+  then[2] = 3 :: Integer+[MEASURE] Mutual group: measure smax 0 arg1 failed, trying next+[MEASURE] Mutual group: trying measure abs arg1 + smax 0 arg1 for all members+[MEASURE] replayDAG {bf21 @(SBV Integer -> SBV Integer), bg21 @(SBV Integer -> SBV Integer)}: replaying 7 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] (declare-fun s7 () Int) ; tracks user variable "__internal_sbv_s7"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s0 s2))+[GOOD] (define-fun s8 () Int (+ s5 s7))+[GOOD] (define-fun s9 () Int (ite s3 s1 s8))+[GOOD] (define-fun s10 () Int (abs s0))+[GOOD] (define-fun s11 () Bool (<= s1 s0))+[GOOD] (define-fun s12 () Int (ite s11 s0 s1))+[GOOD] (define-fun s13 () Int (+ s10 s12))+[GOOD] (define-fun s14 () Bool (>= s13 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s14))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {bf21 @(SBV Integer -> SBV Integer), bg21 @(SBV Integer -> SBV Integer)}: replaying 7 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] (declare-fun s7 () Int) ; tracks user variable "__internal_sbv_s7"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s0 s2))+[GOOD] (define-fun s8 () Int (+ s5 s7))+[GOOD] (define-fun s9 () Int (ite s3 s1 s8))+[GOOD] (define-fun s10 () Int (abs s0))+[GOOD] (define-fun s11 () Bool (<= s1 s0))+[GOOD] (define-fun s12 () Int (ite s11 s0 s1))+[GOOD] (define-fun s13 () Int (+ s10 s12))+[GOOD] (define-fun s14 () Int (abs s4))+[GOOD] (define-fun s15 () Bool (<= s1 s4))+[GOOD] (define-fun s16 () Int (ite s15 s4 s1))+[GOOD] (define-fun s17 () Int (+ s14 s16))+[GOOD] (define-fun s18 () Int (abs s6))+[GOOD] (define-fun s19 () Bool (<= s1 s6))+[GOOD] (define-fun s20 () Int (ite s19 s6 s1))+[GOOD] (define-fun s21 () Int (+ s18 s20))+[GOOD] (define-fun s22 () Bool (not s3))+[GOOD] (define-fun s23 () Bool (> s13 s17))+[GOOD] (define-fun s24 () Bool (=> s22 s23))+[GOOD] (define-fun s25 () Bool (> s13 s21))+[GOOD] (define-fun s26 () Bool (=> s22 s25))+[GOOD] (define-fun s27 () Bool (and s24 s26))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s27))+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s13))+[RECV] ((s13 4))+[SEND] (get-value (s17))+[RECV] ((s17 2))+[SEND] (get-value (s21))+[RECV] ((s21 6))+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s5))+[RECV] ((s5 0))+[SEND] (get-value (s7))+[RECV] ((s7 0))+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Mutual group: decrease failed for bf21 @(SBV Integer -> SBV Integer): Falsifiable. Counter-example:+  arg     = 2 :: Integer+  before  = 4 :: Integer+  then[1] = 2 :: Integer+  then[2] = 6 :: Integer+[MEASURE] Mutual group: measure abs arg1 + smax 0 arg1 failed, trying next+[MEASURE] Mutual group: trying measure (abs arg1, smax 0 arg1) for all members+[MEASURE] replayDAG {bf21 @(SBV Integer -> SBV Integer), bg21 @(SBV Integer -> SBV Integer)}: replaying 7 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] (declare-fun s7 () Int) ; tracks user variable "__internal_sbv_s7"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s0 s2))+[GOOD] (define-fun s8 () Int (+ s5 s7))+[GOOD] (define-fun s9 () Int (ite s3 s1 s8))+[GOOD] (define-fun s10 () Int (abs s0))+[GOOD] (define-fun s11 () Bool (<= s1 s0))+[GOOD] (define-fun s12 () Int (ite s11 s0 s1))+[GOOD] (define-fun s13 () (SBVTuple2 Int Int) ((as mkSBVTuple2 (SBVTuple2 Int Int)) s10 s12))+[GOOD] (define-fun s14 () Int (proj_1_SBVTuple2 s13))+[GOOD] (define-fun s15 () Bool (>= s14 s1))+[GOOD] (define-fun s16 () Int (proj_2_SBVTuple2 s13))+[GOOD] (define-fun s17 () Bool (>= s16 s1))+[GOOD] (define-fun s18 () Bool (and s15 s17))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s18))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {bf21 @(SBV Integer -> SBV Integer), bg21 @(SBV Integer -> SBV Integer)}: replaying 7 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] (declare-fun s7 () Int) ; tracks user variable "__internal_sbv_s7"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s0 s2))+[GOOD] (define-fun s8 () Int (+ s5 s7))+[GOOD] (define-fun s9 () Int (ite s3 s1 s8))+[GOOD] (define-fun s10 () Int (abs s0))+[GOOD] (define-fun s11 () Bool (<= s1 s0))+[GOOD] (define-fun s12 () Int (ite s11 s0 s1))+[GOOD] (define-fun s13 () (SBVTuple2 Int Int) ((as mkSBVTuple2 (SBVTuple2 Int Int)) s10 s12))+[GOOD] (define-fun s14 () Int (abs s4))+[GOOD] (define-fun s15 () Bool (<= s1 s4))+[GOOD] (define-fun s16 () Int (ite s15 s4 s1))+[GOOD] (define-fun s17 () (SBVTuple2 Int Int) ((as mkSBVTuple2 (SBVTuple2 Int Int)) s14 s16))+[GOOD] (define-fun s18 () Int (abs s6))+[GOOD] (define-fun s19 () Bool (<= s1 s6))+[GOOD] (define-fun s20 () Int (ite s19 s6 s1))+[GOOD] (define-fun s21 () (SBVTuple2 Int Int) ((as mkSBVTuple2 (SBVTuple2 Int Int)) s18 s20))+[GOOD] (define-fun s22 () Bool (not s3))+[GOOD] (define-fun s23 () Int (proj_1_SBVTuple2 s17))+[GOOD] (define-fun s24 () Int (proj_1_SBVTuple2 s13))+[GOOD] (define-fun s25 () Bool (< s23 s24))+[GOOD] (define-fun s26 () Bool (= s23 s24))+[GOOD] (define-fun s27 () Int (proj_2_SBVTuple2 s17))+[GOOD] (define-fun s28 () Int (proj_2_SBVTuple2 s13))+[GOOD] (define-fun s29 () Bool (< s27 s28))+[GOOD] (define-fun s30 () Bool (and s26 s29))+[GOOD] (define-fun s31 () Bool (or s25 s30))+[GOOD] (define-fun s32 () Bool (=> s22 s31))+[GOOD] (define-fun s33 () Int (proj_1_SBVTuple2 s21))+[GOOD] (define-fun s34 () Bool (< s33 s24))+[GOOD] (define-fun s35 () Bool (= s24 s33))+[GOOD] (define-fun s36 () Int (proj_2_SBVTuple2 s21))+[GOOD] (define-fun s37 () Bool (< s36 s28))+[GOOD] (define-fun s38 () Bool (and s35 s37))+[GOOD] (define-fun s39 () Bool (or s34 s38))+[GOOD] (define-fun s40 () Bool (=> s22 s39))+[GOOD] (define-fun s41 () Bool (and s32 s40))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s41))+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s13))+[RECV] ((s13 (mkSBVTuple2 2 2)))+[SEND] (get-value (s17))+[RECV] ((s17 (mkSBVTuple2 1 1)))+[SEND] (get-value (s21))+[RECV] ((s21 (mkSBVTuple2 3 3)))+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s5))+[RECV] ((s5 0))+[SEND] (get-value (s7))+[RECV] ((s7 0))+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Mutual group: decrease failed for bf21 @(SBV Integer -> SBV Integer): Falsifiable. Counter-example:+  arg     =     2 :: Integer+  before  = (2,2) :: (Integer, Integer)+  then[1] = (1,1) :: (Integer, Integer)+  then[2] = (3,3) :: (Integer, Integer)+[MEASURE] Mutual group: measure (abs arg1, smax 0 arg1) failed, trying next+[MEASURE] Mutual group: trying measure (smax 0 arg1, abs arg1) for all members+[MEASURE] replayDAG {bf21 @(SBV Integer -> SBV Integer), bg21 @(SBV Integer -> SBV Integer)}: replaying 7 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] (declare-fun s7 () Int) ; tracks user variable "__internal_sbv_s7"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s0 s2))+[GOOD] (define-fun s8 () Int (+ s5 s7))+[GOOD] (define-fun s9 () Int (ite s3 s1 s8))+[GOOD] (define-fun s10 () Bool (<= s1 s0))+[GOOD] (define-fun s11 () Int (ite s10 s0 s1))+[GOOD] (define-fun s12 () Int (abs s0))+[GOOD] (define-fun s13 () (SBVTuple2 Int Int) ((as mkSBVTuple2 (SBVTuple2 Int Int)) s11 s12))+[GOOD] (define-fun s14 () Int (proj_1_SBVTuple2 s13))+[GOOD] (define-fun s15 () Bool (>= s14 s1))+[GOOD] (define-fun s16 () Int (proj_2_SBVTuple2 s13))+[GOOD] (define-fun s17 () Bool (>= s16 s1))+[GOOD] (define-fun s18 () Bool (and s15 s17))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s18))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {bf21 @(SBV Integer -> SBV Integer), bg21 @(SBV Integer -> SBV Integer)}: replaying 7 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)+                                           ((mkSBVTuple2 (proj_1_SBVTuple2 T1)+                                                         (proj_2_SBVTuple2 T2))))))+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] (declare-fun s7 () Int) ; tracks user variable "__internal_sbv_s7"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s0 s2))+[GOOD] (define-fun s8 () Int (+ s5 s7))+[GOOD] (define-fun s9 () Int (ite s3 s1 s8))+[GOOD] (define-fun s10 () Bool (<= s1 s0))+[GOOD] (define-fun s11 () Int (ite s10 s0 s1))+[GOOD] (define-fun s12 () Int (abs s0))+[GOOD] (define-fun s13 () (SBVTuple2 Int Int) ((as mkSBVTuple2 (SBVTuple2 Int Int)) s11 s12))+[GOOD] (define-fun s14 () Bool (<= s1 s4))+[GOOD] (define-fun s15 () Int (ite s14 s4 s1))+[GOOD] (define-fun s16 () Int (abs s4))+[GOOD] (define-fun s17 () (SBVTuple2 Int Int) ((as mkSBVTuple2 (SBVTuple2 Int Int)) s15 s16))+[GOOD] (define-fun s18 () Bool (<= s1 s6))+[GOOD] (define-fun s19 () Int (ite s18 s6 s1))+[GOOD] (define-fun s20 () Int (abs s6))+[GOOD] (define-fun s21 () (SBVTuple2 Int Int) ((as mkSBVTuple2 (SBVTuple2 Int Int)) s19 s20))+[GOOD] (define-fun s22 () Bool (not s3))+[GOOD] (define-fun s23 () Int (proj_1_SBVTuple2 s17))+[GOOD] (define-fun s24 () Int (proj_1_SBVTuple2 s13))+[GOOD] (define-fun s25 () Bool (< s23 s24))+[GOOD] (define-fun s26 () Bool (= s23 s24))+[GOOD] (define-fun s27 () Int (proj_2_SBVTuple2 s17))+[GOOD] (define-fun s28 () Int (proj_2_SBVTuple2 s13))+[GOOD] (define-fun s29 () Bool (< s27 s28))+[GOOD] (define-fun s30 () Bool (and s26 s29))+[GOOD] (define-fun s31 () Bool (or s25 s30))+[GOOD] (define-fun s32 () Bool (=> s22 s31))+[GOOD] (define-fun s33 () Int (proj_1_SBVTuple2 s21))+[GOOD] (define-fun s34 () Bool (< s33 s24))+[GOOD] (define-fun s35 () Bool (= s24 s33))+[GOOD] (define-fun s36 () Int (proj_2_SBVTuple2 s21))+[GOOD] (define-fun s37 () Bool (< s36 s28))+[GOOD] (define-fun s38 () Bool (and s35 s37))+[GOOD] (define-fun s39 () Bool (or s34 s38))+[GOOD] (define-fun s40 () Bool (=> s22 s39))+[GOOD] (define-fun s41 () Bool (and s32 s40))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s41))+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s13))+[RECV] ((s13 (mkSBVTuple2 2 2)))+[SEND] (get-value (s17))+[RECV] ((s17 (mkSBVTuple2 1 1)))+[SEND] (get-value (s21))+[RECV] ((s21 (mkSBVTuple2 3 3)))+[SEND] (get-value (s0))+[RECV] ((s0 2))+[SEND] (get-value (s5))+[RECV] ((s5 0))+[SEND] (get-value (s7))+[RECV] ((s7 0))+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Mutual group: decrease failed for bf21 @(SBV Integer -> SBV Integer): Falsifiable. Counter-example:+  arg     =     2 :: Integer+  before  = (2,2) :: (Integer, Integer)+  then[1] = (1,1) :: (Integer, Integer)+  then[2] = (3,3) :: (Integer, Integer)+[MEASURE] Mutual group: measure (smax 0 arg1, abs arg1) failed, trying next++EXCEPTION:++*** Data.SBV: Cannot determine a termination measure for mutual recursion group.+***+***     bf21  :: SBV Integer -> SBV Integer+***     bg21  :: SBV Integer -> SBV Integer+***+*** Please use 'smtFunctionWithMeasure' to provide explicit measures.+
+ SBVTestSuite/GoldFiles/recursive22_allSelfGoodCross.gold view
@@ -0,0 +1,376 @@+[MEASURE] Verifying termination measures for: bf22 @(SBV Integer -> SBV Integer), bf22 @(SBV Integer -> SBV Integer), bg22 @(SBV Integer -> SBV Integer), bg22 @(SBV Integer -> SBV Integer)+[MEASURE] Checking: bf22 @(SBV Integer -> SBV Integer)+[MEASURE] Checking mutual recursion group: {bf22 :: SBV Integer -> SBV Integer, bg22 :: SBV Integer -> SBV Integer}+[MEASURE] Mutual group: trying user-provided measure for all members+[MEASURE] replayDAG {bf22 @(SBV Integer -> SBV Integer), bg22 @(SBV Integer -> SBV Integer)}: replaying 6 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] (declare-fun s6 () Int) ; tracks user variable "__internal_sbv_s6"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s7 () Int (+ s5 s6))+[GOOD] (define-fun s8 () Int (ite s3 s1 s7))+[GOOD] (define-fun s9 () Int (abs s0))+[GOOD] (define-fun s10 () Bool (>= s9 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s10))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {bf22 @(SBV Integer -> SBV Integer), bg22 @(SBV Integer -> SBV Integer)}: replaying 6 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] (declare-fun s6 () Int) ; tracks user variable "__internal_sbv_s6"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s7 () Int (+ s5 s6))+[GOOD] (define-fun s8 () Int (ite s3 s1 s7))+[GOOD] (define-fun s9 () Int (abs s0))+[GOOD] (define-fun s10 () Int (abs s4))+[GOOD] (define-fun s11 () Bool (not s3))+[GOOD] (define-fun s12 () Bool (> s9 s10))+[GOOD] (define-fun s13 () Bool (=> s11 s12))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s13))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Mutual group: decrease verified for bf22 @(SBV Integer -> SBV Integer)+[MEASURE] replayDAG {bf22 @(SBV Integer -> SBV Integer), bg22 @(SBV Integer -> SBV Integer)}: replaying 6 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] (declare-fun s6 () Int) ; tracks user variable "__internal_sbv_s6"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s7 () Int (+ s5 s6))+[GOOD] (define-fun s8 () Int (ite s3 s1 s7))+[GOOD] (define-fun s9 () Int (abs s0))+[GOOD] (define-fun s10 () Bool (>= s9 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s10))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {bf22 @(SBV Integer -> SBV Integer), bg22 @(SBV Integer -> SBV Integer)}: replaying 6 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] (declare-fun s6 () Int) ; tracks user variable "__internal_sbv_s6"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s7 () Int (+ s5 s6))+[GOOD] (define-fun s8 () Int (ite s3 s1 s7))+[GOOD] (define-fun s9 () Int (abs s0))+[GOOD] (define-fun s10 () Int (abs s4))+[GOOD] (define-fun s11 () Bool (not s3))+[GOOD] (define-fun s12 () Bool (> s9 s10))+[GOOD] (define-fun s13 () Bool (=> s11 s12))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s13))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Mutual group: decrease verified for bg22 @(SBV Integer -> SBV Integer)+[MEASURE] Mutual group: user-provided measure works for all members+[MEASURE] Passed (terminating): bf22 @(SBV Integer -> SBV Integer)+[MEASURE] Checking: bf22 @(SBV Integer -> SBV Integer)+[MEASURE] bf22 @(SBV Integer -> SBV Integer): verifying with 0 helper(s)+[MEASURE] bf22 @(SBV Integer -> SBV Integer): 0 helper axiom(s) collected, checking measure+[MEASURE] replayDAG {bf22 @(SBV Integer -> SBV Integer)}: replaying 6 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] (declare-fun s6 () Int) ; tracks user variable "__internal_sbv_s6"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s7 () Int (+ s5 s6))+[GOOD] (define-fun s8 () Int (ite s3 s1 s7))+[GOOD] (define-fun s9 () Int (abs s0))+[GOOD] (define-fun s10 () Bool (>= s9 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s10))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {bf22 @(SBV Integer -> SBV Integer)}: replaying 6 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] (declare-fun s6 () Int) ; tracks user variable "__internal_sbv_s6"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s7 () Int (+ s5 s6))+[GOOD] (define-fun s8 () Int (ite s3 s1 s7))+[GOOD] (define-fun s9 () Int (abs s0))+[GOOD] (define-fun s10 () Int (abs s4))+[GOOD] (define-fun s11 () Bool (not s3))+[GOOD] (define-fun s12 () Bool (> s9 s10))+[GOOD] (define-fun s13 () Bool (=> s11 s12))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s13))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Passed (terminating): bf22 @(SBV Integer -> SBV Integer)+[MEASURE] Checking: bg22 @(SBV Integer -> SBV Integer)+[MEASURE] bg22 @(SBV Integer -> SBV Integer): mutual group already verified, skipping+[MEASURE] Passed (terminating): bg22 @(SBV Integer -> SBV Integer)+[MEASURE] Checking: bg22 @(SBV Integer -> SBV Integer)+[MEASURE] bg22 @(SBV Integer -> SBV Integer): verifying with 0 helper(s)+[MEASURE] bg22 @(SBV Integer -> SBV Integer): 0 helper axiom(s) collected, checking measure+[MEASURE] replayDAG {bg22 @(SBV Integer -> SBV Integer)}: replaying 6 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] (declare-fun s6 () Int) ; tracks user variable "__internal_sbv_s6"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s7 () Int (+ s5 s6))+[GOOD] (define-fun s8 () Int (ite s3 s1 s7))+[GOOD] (define-fun s9 () Int (abs s0))+[GOOD] (define-fun s10 () Bool (>= s9 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s10))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {bg22 @(SBV Integer -> SBV Integer)}: replaying 6 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] (declare-fun s6 () Int) ; tracks user variable "__internal_sbv_s6"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s7 () Int (+ s5 s6))+[GOOD] (define-fun s8 () Int (ite s3 s1 s7))+[GOOD] (define-fun s9 () Int (abs s0))+[GOOD] (define-fun s10 () Int (abs s4))+[GOOD] (define-fun s11 () Bool (not s3))+[GOOD] (define-fun s12 () Bool (> s9 s10))+[GOOD] (define-fun s13 () Bool (=> s11 s12))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s13))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Passed (terminating): bg22 @(SBV Integer -> SBV Integer)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; |bf22 @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger, |bg22 @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger+[GOOD] (define-funs-rec+         ((|bf22 @(SBV Integer -> SBV Integer)| ((l1_s0 Int)) Int)+          (|bg22 @(SBV Integer -> SBV Integer)| ((l2_s0 Int)) Int))+         (; Definition of: |bf22 @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger. [Refers to: |bf22 @(SBV Integer -> SBV Integer)|, |bg22 @(SBV Integer -> SBV Integer)|]+                                  (let ((l1_s1 0))+                                  (let ((l1_s3 1))+                                  (let ((l1_s2 (<= l1_s0 l1_s1)))+                                  (let ((l1_s4 (- l1_s0 l1_s3)))+                                  (let ((l1_s5 (|bf22 @(SBV Integer -> SBV Integer)| l1_s4)))+                                  (let ((l1_s6 (|bg22 @(SBV Integer -> SBV Integer)| l1_s4)))+                                  (let ((l1_s7 (+ l1_s5 l1_s6)))+                                  (let ((l1_s8 (ite l1_s2 l1_s1 l1_s7)))+                                  l1_s8))))))))+          ; Definition of: |bg22 @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger. [Refers to: |bf22 @(SBV Integer -> SBV Integer)|, |bg22 @(SBV Integer -> SBV Integer)|]+                                                  (let ((l2_s1 0))+                                                  (let ((l2_s3 1))+                                                  (let ((l2_s2 (<= l2_s0 l2_s1)))+                                                  (let ((l2_s4 (- l2_s0 l2_s3)))+                                                  (let ((l2_s5 (|bg22 @(SBV Integer -> SBV Integer)| l2_s4)))+                                                  (let ((l2_s6 (|bf22 @(SBV Integer -> SBV Integer)| l2_s4)))+                                                  (let ((l2_s7 (+ l2_s5 l2_s6)))+                                                  (let ((l2_s8 (ite l2_s2 l2_s1 l2_s7)))+                                                  l2_s8))))))))))+[GOOD] ; --- assignments ---+[GOOD] (define-fun s1 () Int (|bf22 @(SBV Integer -> SBV Integer)| s0))+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s2)+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 0))+*** Solver   : Z3+*** Exit code: ExitSuccess++RESULT:+Satisfiable. Model:+  s0 = 0 :: Integer
+ SBVTestSuite/GoldFiles/recursive23_mutualProductive.gold view
@@ -0,0 +1,74 @@+[MEASURE] Verifying termination measures for: pf23 @(SBV Integer -> SBV [Integer]), pg23 @(SBV Integer -> SBV [Integer])+[MEASURE] Checking: pf23 @(SBV Integer -> SBV [Integer])+[MEASURE] Checking mutual productive group: {pf23 :: SBV Integer -> SBV [Integer], pg23 :: SBV Integer -> SBV [Integer]}+[MEASURE] Mutual productive group: all members are guarded+[MEASURE] Passed (productive): pf23 @(SBV Integer -> SBV [Integer])+[MEASURE] Checking: pg23 @(SBV Integer -> SBV [Integer])+[MEASURE] pg23 @(SBV Integer -> SBV [Integer]): mutual productive group already verified, skipping+[MEASURE] Passed (productive): pg23 @(SBV Integer -> SBV [Integer])+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; |pf23 @(SBV Integer -> SBV [Integer])| :: SInteger -> [SInteger], |pg23 @(SBV Integer -> SBV [Integer])| :: SInteger -> [SInteger]+[GOOD] (define-funs-rec+         ((|pf23 @(SBV Integer -> SBV [Integer])| ((l1_s0 Int)) (Seq Int))+          (|pg23 @(SBV Integer -> SBV [Integer])| ((l2_s0 Int)) (Seq Int)))+         (; Definition of: |pf23 @(SBV Integer -> SBV [Integer])| :: SInteger -> [SInteger]. [Refers to: |pg23 @(SBV Integer -> SBV [Integer])|]+                                  (let ((l1_s1 0))+                                  (let ((l1_s3 (seq.unit 0)))+                                  (let ((l1_s5 1))+                                  (let ((l1_s2 (<= l1_s0 l1_s1)))+                                  (let ((l1_s4 (seq.unit l1_s0)))+                                  (let ((l1_s6 (- l1_s0 l1_s5)))+                                  (let ((l1_s7 (|pg23 @(SBV Integer -> SBV [Integer])| l1_s6)))+                                  (let ((l1_s8 (seq.++ l1_s4 l1_s7)))+                                  (let ((l1_s9 (ite l1_s2 l1_s3 l1_s8)))+                                  l1_s9)))))))))+          ; Definition of: |pg23 @(SBV Integer -> SBV [Integer])| :: SInteger -> [SInteger]. [Refers to: |pf23 @(SBV Integer -> SBV [Integer])|]+                                                  (let ((l2_s1 0))+                                                  (let ((l2_s3 (seq.unit 0)))+                                                  (let ((l2_s5 1))+                                                  (let ((l2_s2 (<= l2_s0 l2_s1)))+                                                  (let ((l2_s4 (seq.unit l2_s0)))+                                                  (let ((l2_s6 (- l2_s0 l2_s5)))+                                                  (let ((l2_s7 (|pf23 @(SBV Integer -> SBV [Integer])| l2_s6)))+                                                  (let ((l2_s8 (seq.++ l2_s4 l2_s7)))+                                                  (let ((l2_s9 (ite l2_s2 l2_s3 l2_s8)))+                                                  l2_s9)))))))))))+[GOOD] ; --- assignments ---+[GOOD] (define-fun s1 () (Seq Int) (|pf23 @(SBV Integer -> SBV [Integer])| s0))+[GOOD] (define-fun s3 () Int (seq.nth s1 s2))+[GOOD] (define-fun s4 () Bool (= s0 s3))+[GOOD] (define-fun s5 () Bool (> s0 s2))+[GOOD] (define-fun s6 () Bool (and s4 s5))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s6)+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+*** Solver   : Z3+*** Exit code: ExitSuccess++RESULT:+Satisfiable. Model:+  s0 = 1 :: Integer
+ SBVTestSuite/GoldFiles/recursive24_badMutualProductive.gold view
@@ -0,0 +1,15 @@+[MEASURE] Verifying termination measures for: bad_pf @(SBV Integer -> SBV [Integer]), bad_pg @(SBV Integer -> SBV [Integer])+[MEASURE] Checking: bad_pf @(SBV Integer -> SBV [Integer])+[MEASURE] Checking mutual productive group: {bad_pf :: SBV Integer -> SBV [Integer], bad_pg :: SBV Integer -> SBV [Integer]}++EXCEPTION:++*** Data.SBV: Mutual productive group has unguarded recursive calls.+***+***     bad_pf  :: SBV Integer -> SBV [Integer]+***     bad_pg  :: SBV Integer -> SBV [Integer]+***   Unguarded: bad_pg :: SBV Integer -> SBV [Integer]+***+*** Every recursive call (self or cross) must be a direct argument to a data constructor.++
+ SBVTestSuite/GoldFiles/recursive25_contractMutualRejected.gold view
@@ -0,0 +1,16 @@+[MEASURE] Verifying termination measures for: cf_mut @(SBV Integer -> SBV Integer), cf_mut @(SBV Integer -> SBV Integer), cg_mut @(SBV Integer -> SBV Integer)+[MEASURE] Checking: cf_mut @(SBV Integer -> SBV Integer)+[MEASURE] cf_mut @(SBV Integer -> SBV Integer) (contract): verifying with 0 helper(s)+[MEASURE] cf_mut @(SBV Integer -> SBV Integer) (contract): 0 helper axiom(s) collected, checking measure+contract+[MEASURE] Passed (terminating): cf_mut @(SBV Integer -> SBV Integer)+[MEASURE] Checking: cf_mut @(SBV Integer -> SBV Integer)++EXCEPTION:++*** Data.SBV: smtFunctionWithContract does not support mutual recursion.+***+***   Function: cf_mut :: SBV Integer -> SBV Integer+***+*** Please use smtFunction or smtFunctionWithMeasure for mutual recursion groups.++
+ SBVTestSuite/GoldFiles/recursive26_selfAndMutualProductive.gold view
@@ -0,0 +1,83 @@+[MEASURE] Verifying termination measures for: spf26 @(SBV Integer -> SBV [Integer]), spf26 @(SBV Integer -> SBV [Integer]), spg26 @(SBV Integer -> SBV [Integer])+[MEASURE] Checking: spf26 @(SBV Integer -> SBV [Integer])+[MEASURE] Checking mutual productive group: {spf26 :: SBV Integer -> SBV [Integer], spg26 :: SBV Integer -> SBV [Integer]}+[MEASURE] Mutual productive group: all members are guarded+[MEASURE] Passed (productive): spf26 @(SBV Integer -> SBV [Integer])+[MEASURE] Checking: spf26 @(SBV Integer -> SBV [Integer])+[MEASURE] spf26 @(SBV Integer -> SBV [Integer]): productive (all recursive calls are guarded by constructors)+[MEASURE] Passed (productive): spf26 @(SBV Integer -> SBV [Integer])+[MEASURE] Checking: spg26 @(SBV Integer -> SBV [Integer])+[MEASURE] spg26 @(SBV Integer -> SBV [Integer]): mutual productive group already verified, skipping+[MEASURE] Passed (productive): spg26 @(SBV Integer -> SBV [Integer])+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; |spf26 @(SBV Integer -> SBV [Integer])| :: SInteger -> [SInteger], |spg26 @(SBV Integer -> SBV [Integer])| :: SInteger -> [SInteger]+[GOOD] (define-funs-rec+         ((|spf26 @(SBV Integer -> SBV [Integer])| ((l1_s0 Int)) (Seq Int))+          (|spg26 @(SBV Integer -> SBV [Integer])| ((l2_s0 Int)) (Seq Int)))+         (; Definition of: |spf26 @(SBV Integer -> SBV [Integer])| :: SInteger -> [SInteger]. [Refers to: |spf26 @(SBV Integer -> SBV [Integer])|, |spg26 @(SBV Integer -> SBV [Integer])|]+                                  (let ((l1_s1 0))+                                  (let ((l1_s3 (seq.unit 0)))+                                  (let ((l1_s4 2))+                                  (let ((l1_s8 1))+                                  (let ((l1_s2 (<= l1_s0 l1_s1)))+                                  (let ((l1_s5 (mod l1_s0 l1_s4)))+                                  (let ((l1_s6 (= l1_s1 l1_s5)))+                                  (let ((l1_s7 (seq.unit l1_s0)))+                                  (let ((l1_s9 (- l1_s0 l1_s8)))+                                  (let ((l1_s10 (|spf26 @(SBV Integer -> SBV [Integer])| l1_s9)))+                                  (let ((l1_s11 (seq.++ l1_s7 l1_s10)))+                                  (let ((l1_s12 (|spg26 @(SBV Integer -> SBV [Integer])| l1_s9)))+                                  (let ((l1_s13 (seq.++ l1_s7 l1_s12)))+                                  (let ((l1_s14 (ite l1_s6 l1_s11 l1_s13)))+                                  (let ((l1_s15 (ite l1_s2 l1_s3 l1_s14)))+                                  l1_s15)))))))))))))))+          ; Definition of: |spg26 @(SBV Integer -> SBV [Integer])| :: SInteger -> [SInteger]. [Refers to: |spf26 @(SBV Integer -> SBV [Integer])|]+                                                  (let ((l2_s1 0))+                                                  (let ((l2_s3 (seq.unit 0)))+                                                  (let ((l2_s5 1))+                                                  (let ((l2_s2 (<= l2_s0 l2_s1)))+                                                  (let ((l2_s4 (seq.unit l2_s0)))+                                                  (let ((l2_s6 (- l2_s0 l2_s5)))+                                                  (let ((l2_s7 (|spf26 @(SBV Integer -> SBV [Integer])| l2_s6)))+                                                  (let ((l2_s8 (seq.++ l2_s4 l2_s7)))+                                                  (let ((l2_s9 (ite l2_s2 l2_s3 l2_s8)))+                                                  l2_s9)))))))))))+[GOOD] ; --- assignments ---+[GOOD] (define-fun s1 () (Seq Int) (|spf26 @(SBV Integer -> SBV [Integer])| s0))+[GOOD] (define-fun s3 () Int (seq.nth s1 s2))+[GOOD] (define-fun s4 () Bool (= s0 s3))+[GOOD] (define-fun s5 () Bool (> s0 s2))+[GOOD] (define-fun s6 () Bool (and s4 s5))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s6)+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+*** Solver   : Z3+*** Exit code: ExitSuccess++RESULT:+Satisfiable. Model:+  s0 = 1 :: Integer
+ SBVTestSuite/GoldFiles/recursive27_mutualProductive3.gold view
@@ -0,0 +1,93 @@+[MEASURE] Verifying termination measures for: pa27 @(SBV Integer -> SBV [Integer]), pb27 @(SBV Integer -> SBV [Integer]), pc27 @(SBV Integer -> SBV [Integer])+[MEASURE] Checking: pa27 @(SBV Integer -> SBV [Integer])+[MEASURE] Checking mutual productive group: {pa27 :: SBV Integer -> SBV [Integer], pb27 :: SBV Integer -> SBV [Integer], pc27 :: SBV Integer -> SBV [Integer]}+[MEASURE] Mutual productive group: all members are guarded+[MEASURE] Passed (productive): pa27 @(SBV Integer -> SBV [Integer])+[MEASURE] Checking: pb27 @(SBV Integer -> SBV [Integer])+[MEASURE] pb27 @(SBV Integer -> SBV [Integer]): mutual productive group already verified, skipping+[MEASURE] Passed (productive): pb27 @(SBV Integer -> SBV [Integer])+[MEASURE] Checking: pc27 @(SBV Integer -> SBV [Integer])+[MEASURE] pc27 @(SBV Integer -> SBV [Integer]): mutual productive group already verified, skipping+[MEASURE] Passed (productive): pc27 @(SBV Integer -> SBV [Integer])+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; |pa27 @(SBV Integer -> SBV [Integer])| :: SInteger -> [SInteger], |pb27 @(SBV Integer -> SBV [Integer])| :: SInteger -> [SInteger], |pc27 @(SBV Integer -> SBV [Integer])| :: SInteger -> [SInteger]+[GOOD] (define-funs-rec+         ((|pa27 @(SBV Integer -> SBV [Integer])| ((l1_s0 Int)) (Seq Int))+          (|pb27 @(SBV Integer -> SBV [Integer])| ((l2_s0 Int)) (Seq Int))+          (|pc27 @(SBV Integer -> SBV [Integer])| ((l3_s0 Int)) (Seq Int)))+         (; Definition of: |pa27 @(SBV Integer -> SBV [Integer])| :: SInteger -> [SInteger]. [Refers to: |pb27 @(SBV Integer -> SBV [Integer])|]+                                  (let ((l1_s1 0))+                                  (let ((l1_s3 (seq.unit 0)))+                                  (let ((l1_s5 1))+                                  (let ((l1_s2 (<= l1_s0 l1_s1)))+                                  (let ((l1_s4 (seq.unit l1_s0)))+                                  (let ((l1_s6 (- l1_s0 l1_s5)))+                                  (let ((l1_s7 (|pb27 @(SBV Integer -> SBV [Integer])| l1_s6)))+                                  (let ((l1_s8 (seq.++ l1_s4 l1_s7)))+                                  (let ((l1_s9 (ite l1_s2 l1_s3 l1_s8)))+                                  l1_s9)))))))))+          ; Definition of: |pb27 @(SBV Integer -> SBV [Integer])| :: SInteger -> [SInteger]. [Refers to: |pc27 @(SBV Integer -> SBV [Integer])|]+                                                  (let ((l2_s1 0))+                                                  (let ((l2_s3 (seq.unit 0)))+                                                  (let ((l2_s4 10))+                                                  (let ((l2_s7 1))+                                                  (let ((l2_s2 (<= l2_s0 l2_s1)))+                                                  (let ((l2_s5 (* l2_s0 l2_s4)))+                                                  (let ((l2_s6 (seq.unit l2_s5)))+                                                  (let ((l2_s8 (- l2_s0 l2_s7)))+                                                  (let ((l2_s9 (|pc27 @(SBV Integer -> SBV [Integer])| l2_s8)))+                                                  (let ((l2_s10 (seq.++ l2_s6 l2_s9)))+                                                  (let ((l2_s11 (ite l2_s2 l2_s3 l2_s10)))+                                                  l2_s11)))))))))))+          ; Definition of: |pc27 @(SBV Integer -> SBV [Integer])| :: SInteger -> [SInteger]. [Refers to: |pa27 @(SBV Integer -> SBV [Integer])|]+                                                                  (let ((l3_s1 0))+                                                                  (let ((l3_s3 (seq.unit 0)))+                                                                  (let ((l3_s4 100))+                                                                  (let ((l3_s7 1))+                                                                  (let ((l3_s2 (<= l3_s0 l3_s1)))+                                                                  (let ((l3_s5 (* l3_s0 l3_s4)))+                                                                  (let ((l3_s6 (seq.unit l3_s5)))+                                                                  (let ((l3_s8 (- l3_s0 l3_s7)))+                                                                  (let ((l3_s9 (|pa27 @(SBV Integer -> SBV [Integer])| l3_s8)))+                                                                  (let ((l3_s10 (seq.++ l3_s6 l3_s9)))+                                                                  (let ((l3_s11 (ite l3_s2 l3_s3 l3_s10)))+                                                                  l3_s11)))))))))))))+[GOOD] ; --- assignments ---+[GOOD] (define-fun s1 () (Seq Int) (|pa27 @(SBV Integer -> SBV [Integer])| s0))+[GOOD] (define-fun s3 () Int (seq.nth s1 s2))+[GOOD] (define-fun s4 () Bool (= s0 s3))+[GOOD] (define-fun s5 () Bool (> s0 s2))+[GOOD] (define-fun s6 () Bool (and s4 s5))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s6)+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+*** Solver   : Z3+*** Exit code: ExitSuccess++RESULT:+Satisfiable. Model:+  s0 = 1 :: Integer
+ SBVTestSuite/GoldFiles/recursive28_noTermCheck.gold view
@@ -0,0 +1,53 @@+[MEASURE] ntc28 @(SBV Integer -> SBV Integer): no termination check (smtFunctionNoTermination)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 5)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "__internal_sbv_s0"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; |ntc28 @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger [Recursive]+[GOOD] (define-fun-rec |ntc28 @(SBV Integer -> SBV Integer)| ((l1_s0 Int)) Int+                                 (let ((l1_s1 0))+                                 (let ((l1_s3 1))+                                 (let ((l1_s2 (<= l1_s0 l1_s1)))+                                 (let ((l1_s4 (- l1_s0 l1_s3)))+                                 (let ((l1_s5 (|ntc28 @(SBV Integer -> SBV Integer)| l1_s4)))+                                 (let ((l1_s6 (+ l1_s3 l1_s5)))+                                 (let ((l1_s7 (ite l1_s2 l1_s1 l1_s6)))+                                 l1_s7))))))))+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (= s0 s1))+[GOOD] (define-fun s3 () Int (|ntc28 @(SBV Integer -> SBV Integer)| s0))+[GOOD] (define-fun s4 () Bool (= s1 s3))+[GOOD] (define-fun s5 () Bool (=> s2 s4))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+; smtProofStep: No context value to push.+Lemma: ntc_at_5+[GOOD] (define-fun s6 () Bool (forall ((l1_s0 Int))+                                 (let ((l1_s1 5))+                                 (let ((l1_s2 (= l1_s0 l1_s1)))+                                 (let ((l1_s3 (|ntc28 @(SBV Integer -> SBV Integer)| l1_s0)))+                                 (let ((l1_s4 (= l1_s1 l1_s3)))+                                 (let ((l1_s5 (=> l1_s2 l1_s4)))+                                 l1_s5)))))))+[GOOD] (define-fun s7 () Bool (not s6))+[GOOD] (assert s7)+[SEND] (check-sat)+[RECV] unsat+     Q.E.D. [Modulo: ntc28 termination]+*** Solver   : Z3+*** Exit code: ExitSuccess+[Modulo: ntc28 termination] ntc_at_5 :: Ɐn ∷ Integer → Bool
+ SBVTestSuite/GoldFiles/recursive2_enum.gold view
@@ -0,0 +1,158 @@+[MEASURE] Verifying termination measures for: EnumSymbolic.Integer.enumFromThenTo.down @(SBV Integer -> SBV Integer -> SBV Integer -> SBV [Integer])+[MEASURE] Checking: EnumSymbolic.Integer.enumFromThenTo.down @(SBV Integer -> SBV Integer -> SBV Integer -> SBV [Integer])+[MEASURE] EnumSymbolic.Integer.enumFromThenTo.down @(SBV Integer -> SBV Integer -> SBV Integer -> SBV [Integer]): verifying with 0 helper(s)+[MEASURE] EnumSymbolic.Integer.enumFromThenTo.down @(SBV Integer -> SBV Integer -> SBV Integer -> SBV [Integer]): 0 helper axiom(s) collected, checking measure+[MEASURE] replayDAG {EnumSymbolic.Integer.enumFromThenTo.down @(SBV Integer -> SBV Integer -> SBV Integer -> SBV [Integer])}: replaying 8 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s3 () Int 0)+[GOOD] (define-fun s4 () (Seq Int) (as seq.empty (Seq Int)))+[GOOD] (define-fun s14 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () Int) ; tracks user variable "arg1"+[GOOD] (declare-fun s2 () Int) ; tracks user variable "arg2"+[GOOD] (declare-fun s10 () (Seq Int)) ; tracks user variable "__internal_sbv_s10"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s5 () Bool (< s0 s2))+[GOOD] (define-fun s6 () Bool (>= s1 s3))+[GOOD] (define-fun s7 () Bool (or s5 s6))+[GOOD] (define-fun s8 () (Seq Int) (seq.unit s0))+[GOOD] (define-fun s9 () Int (+ s0 s1))+[GOOD] (define-fun s11 () (Seq Int) (seq.++ s8 s10))+[GOOD] (define-fun s12 () (Seq Int) (ite s7 s4 s11))+[GOOD] (define-fun s13 () Int (- s0 s2))+[GOOD] (define-fun s15 () Int (+ s13 s14))+[GOOD] (define-fun s16 () Bool (<= s3 s15))+[GOOD] (define-fun s17 () Int (ite s16 s15 s3))+[GOOD] (define-fun s18 () Bool (>= s17 s3))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s18))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {EnumSymbolic.Integer.enumFromThenTo.down @(SBV Integer -> SBV Integer -> SBV Integer -> SBV [Integer])}: replaying 8 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s3 () Int 0)+[GOOD] (define-fun s4 () (Seq Int) (as seq.empty (Seq Int)))+[GOOD] (define-fun s14 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg0"+[GOOD] (declare-fun s1 () Int) ; tracks user variable "arg1"+[GOOD] (declare-fun s2 () Int) ; tracks user variable "arg2"+[GOOD] (declare-fun s10 () (Seq Int)) ; tracks user variable "__internal_sbv_s10"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s5 () Bool (< s0 s2))+[GOOD] (define-fun s6 () Bool (>= s1 s3))+[GOOD] (define-fun s7 () Bool (or s5 s6))+[GOOD] (define-fun s8 () (Seq Int) (seq.unit s0))+[GOOD] (define-fun s9 () Int (+ s0 s1))+[GOOD] (define-fun s11 () (Seq Int) (seq.++ s8 s10))+[GOOD] (define-fun s12 () (Seq Int) (ite s7 s4 s11))+[GOOD] (define-fun s13 () Int (- s0 s2))+[GOOD] (define-fun s15 () Int (+ s13 s14))+[GOOD] (define-fun s16 () Bool (<= s3 s15))+[GOOD] (define-fun s17 () Int (ite s16 s15 s3))+[GOOD] (define-fun s18 () Int (- s9 s2))+[GOOD] (define-fun s19 () Int (+ s14 s18))+[GOOD] (define-fun s20 () Bool (<= s3 s19))+[GOOD] (define-fun s21 () Int (ite s20 s19 s3))+[GOOD] (define-fun s22 () Bool (not s7))+[GOOD] (define-fun s23 () Bool (> s17 s21))+[GOOD] (define-fun s24 () Bool (=> s22 s23))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s24))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Passed (terminating): EnumSymbolic.Integer.enumFromThenTo.down @(SBV Integer -> SBV Integer -> SBV Integer -> SBV [Integer])+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 5)+[GOOD] (define-fun s2 () Int (- 1))+[GOOD] (define-fun s5 () Int 0)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; |EnumSymbolic.Integer.enumFromThenTo.down @(SBV Integer -> SBV Integer -> SBV Integer -> SBV [Integer])| :: SInteger -> SInteger -> SInteger -> [SInteger] [Recursive]+[GOOD] (define-fun-rec |EnumSymbolic.Integer.enumFromThenTo.down @(SBV Integer -> SBV Integer -> SBV Integer -> SBV [Integer])| ((l1_s0 Int) (l1_s1 Int) (l1_s2 Int)) (Seq Int)+                                 (let ((l1_s4 0))+                                 (let ((l1_s7 (as seq.empty (Seq Int))))+                                 (let ((l1_s3 (< l1_s0 l1_s2)))+                                 (let ((l1_s5 (>= l1_s1 l1_s4)))+                                 (let ((l1_s6 (or l1_s3 l1_s5)))+                                 (let ((l1_s8 (seq.unit l1_s0)))+                                 (let ((l1_s9 (+ l1_s0 l1_s1)))+                                 (let ((l1_s10 (|EnumSymbolic.Integer.enumFromThenTo.down @(SBV Integer -> SBV Integer -> SBV Integer -> SBV [Integer])| l1_s9 l1_s1 l1_s2)))+                                 (let ((l1_s11 (seq.++ l1_s8 l1_s10)))+                                 (let ((l1_s12 (ite l1_s6 l1_s7 l1_s11)))+                                 l1_s12)))))))))))+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () (Seq Int) (|EnumSymbolic.Integer.enumFromThenTo.down @(SBV Integer -> SBV Integer -> SBV Integer -> SBV [Integer])| s1 s2 s0))+[GOOD] (define-fun s4 () Int (seq.len s3))+[GOOD] (define-fun s6 () Bool (>= s4 s5))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s6)+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 6))+*** Solver   : Z3+*** Exit code: ExitSuccess++RESULT:+Satisfiable. Model:+  s0 = 6 :: Integer
+ SBVTestSuite/GoldFiles/recursive3_badMeasure.gold view
@@ -0,0 +1,94 @@+[MEASURE] Verifying termination measures for: badSum @(SBV Integer -> SBV Integer)+[MEASURE] Checking: badSum @(SBV Integer -> SBV Integer)+[MEASURE] badSum @(SBV Integer -> SBV Integer): verifying with 0 helper(s)+[MEASURE] badSum @(SBV Integer -> SBV Integer): 0 helper axiom(s) collected, checking measure+[MEASURE] replayDAG {badSum @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s0 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert false)+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {badSum @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s0 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Bool (not s3))+[GOOD] (define-fun s9 () Bool (=> s8 false))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s9))+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s2))+[RECV] ((s2 1))+[SEND] (get-value (s2))+[RECV] ((s2 1))+[SEND] (get-value (s0))+[RECV] ((s0 1))+[SEND] (get-value (s5))+[RECV] ((s5 0))+*** Solver   : Z3+*** Exit code: ExitSuccess++EXCEPTION:++*** Data.SBV: Termination measure does not strictly decrease at a recursive call site.+***+***   Function: badSum :: SBV Integer -> SBV Integer+***+***   Falsifiable. Counter-example:+***     arg    = 1 :: Integer+***     before = 1 :: Integer+***     then   = 1 :: Integer+***+*** The measure must strictly decrease at every recursive call.+
+ SBVTestSuite/GoldFiles/recursive4_mcCarthy91.gold view
@@ -0,0 +1,175 @@+[MEASURE] Verifying termination measures for: mcCarthy91 @(SBV Integer -> SBV Integer)+[MEASURE] Checking: mcCarthy91 @(SBV Integer -> SBV Integer)+[MEASURE] mcCarthy91 @(SBV Integer -> SBV Integer) (contract): verifying with 0 helper(s)+[MEASURE] mcCarthy91 @(SBV Integer -> SBV Integer) (contract): 0 helper axiom(s) collected, checking measure+contract+[MEASURE] replayDAG {mcCarthy91 @(SBV Integer -> SBV Integer)}: replaying 6 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 10)+[GOOD] (define-fun s2 () Int 11)+[GOOD] (define-fun s3 () Int 100)+[GOOD] (define-fun s10 () Int 0)+[GOOD] (define-fun s11 () Int 101)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s7 () Int) ; tracks user variable "__internal_sbv_s7"+[GOOD] (declare-fun s8 () Int) ; tracks user variable "__internal_sbv_s8"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (> s0 s3))+[GOOD] (define-fun s5 () Int (- s0 s1))+[GOOD] (define-fun s6 () Int (+ s0 s2))+[GOOD] (define-fun s9 () Int (ite s4 s5 s8))+[GOOD] (define-fun s12 () Int (- s11 s0))+[GOOD] (define-fun s13 () Bool (<= s10 s12))+[GOOD] (define-fun s14 () Int (ite s13 s12 s10))+[GOOD] (define-fun s15 () Bool (>= s14 s10))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s15))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {mcCarthy91 @(SBV Integer -> SBV Integer)}: replaying 6 node(s)+[MEASURE] replayDAG {mcCarthy91 @(SBV Integer -> SBV Integer)}: replaying 6 node(s)+[MEASURE] replayDAG {mcCarthy91 @(SBV Integer -> SBV Integer)}: replaying 6 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 10)+[GOOD] (define-fun s2 () Int 11)+[GOOD] (define-fun s3 () Int 100)+[GOOD] (define-fun s25 () Int 91)+[GOOD] (define-fun s31 () Int 0)+[GOOD] (define-fun s32 () Int 101)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s7 () Int) ; tracks user variable "__internal_sbv_s7"+[GOOD] (declare-fun s8 () Int) ; tracks user variable "__internal_sbv_s8"+[GOOD] (declare-fun s13 () Int) ; tracks user variable "__internal_sbv_s13"+[GOOD] (declare-fun s14 () Int) ; tracks user variable "__internal_sbv_s14"+[GOOD] (declare-fun s20 () Int) ; tracks user variable "__internal_sbv_s20"+[GOOD] (declare-fun s21 () Int) ; tracks user variable "__internal_sbv_s21"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (> s0 s3))+[GOOD] (define-fun s5 () Int (- s0 s1))+[GOOD] (define-fun s6 () Int (+ s0 s2))+[GOOD] (define-fun s9 () Int (ite s4 s5 s8))+[GOOD] (define-fun s10 () Bool (> s6 s3))+[GOOD] (define-fun s11 () Int (- s6 s1))+[GOOD] (define-fun s12 () Int (+ s2 s6))+[GOOD] (define-fun s15 () Int (ite s10 s11 s14))+[GOOD] (define-fun s16 () Bool (= s7 s15))+[GOOD] (define-fun s17 () Bool (> s7 s3))+[GOOD] (define-fun s18 () Int (- s7 s1))+[GOOD] (define-fun s19 () Int (+ s2 s7))+[GOOD] (define-fun s22 () Int (ite s17 s18 s21))+[GOOD] (define-fun s23 () Bool (= s8 s22))+[GOOD] (define-fun s24 () Bool (<= s6 s3))+[GOOD] (define-fun s26 () Bool (= s7 s25))+[GOOD] (define-fun s27 () Bool (=> s24 s26))+[GOOD] (define-fun s28 () Bool (<= s7 s3))+[GOOD] (define-fun s29 () Bool (= s8 s25))+[GOOD] (define-fun s30 () Bool (=> s28 s29))+[GOOD] (define-fun s33 () Int (- s32 s0))+[GOOD] (define-fun s34 () Bool (<= s31 s33))+[GOOD] (define-fun s35 () Int (ite s34 s33 s31))+[GOOD] (define-fun s36 () Int (- s32 s6))+[GOOD] (define-fun s37 () Bool (<= s31 s36))+[GOOD] (define-fun s38 () Int (ite s37 s36 s31))+[GOOD] (define-fun s39 () Int (- s32 s7))+[GOOD] (define-fun s40 () Bool (<= s31 s39))+[GOOD] (define-fun s41 () Int (ite s40 s39 s31))+[GOOD] (define-fun s42 () Bool (not s4))+[GOOD] (define-fun s43 () Bool (> s35 s38))+[GOOD] (define-fun s44 () Bool (=> s42 s43))+[GOOD] (define-fun s45 () Bool (> s35 s41))+[GOOD] (define-fun s46 () Bool (=> s42 s45))+[GOOD] (define-fun s47 () Bool (and s44 s46))+[GOOD] (define-fun s48 () Bool (<= s0 s3))+[GOOD] (define-fun s49 () Bool (= s9 s25))+[GOOD] (define-fun s50 () Bool (=> s48 s49))+[GOOD] (define-fun s51 () Bool (and s47 s50))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s16)+[GOOD] (assert s23)+[GOOD] (assert s27)+[GOOD] (assert s30)+[GOOD] (assert (not s51))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] Passed (terminating): mcCarthy91 @(SBV Integer -> SBV Integer)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 91)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; |mcCarthy91 @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger [Recursive]+[GOOD] (define-fun-rec |mcCarthy91 @(SBV Integer -> SBV Integer)| ((l1_s0 Int)) Int+                                 (let ((l1_s1 100))+                                 (let ((l1_s3 10))+                                 (let ((l1_s5 11))+                                 (let ((l1_s2 (> l1_s0 l1_s1)))+                                 (let ((l1_s4 (- l1_s0 l1_s3)))+                                 (let ((l1_s6 (+ l1_s0 l1_s5)))+                                 (let ((l1_s7 (|mcCarthy91 @(SBV Integer -> SBV Integer)| l1_s6)))+                                 (let ((l1_s8 (|mcCarthy91 @(SBV Integer -> SBV Integer)| l1_s7)))+                                 (let ((l1_s9 (ite l1_s2 l1_s4 l1_s8)))+                                 l1_s9))))))))))+[GOOD] ; --- assignments ---+[GOOD] (define-fun s1 () Int (|mcCarthy91 @(SBV Integer -> SBV Integer)| s0))+[GOOD] (define-fun s3 () Bool (= s1 s2))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s3)+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 101))+*** Solver   : Z3+*** Exit code: ExitSuccess++RESULT:+Satisfiable. Model:+  s0 = 101 :: Integer
+ SBVTestSuite/GoldFiles/recursive5_badContract.gold view
@@ -0,0 +1,159 @@+[MEASURE] Verifying termination measures for: mc91bad @(SBV Integer -> SBV Integer)+[MEASURE] Checking: mc91bad @(SBV Integer -> SBV Integer)+[MEASURE] mc91bad @(SBV Integer -> SBV Integer) (contract): verifying with 0 helper(s)+[MEASURE] mc91bad @(SBV Integer -> SBV Integer) (contract): 0 helper axiom(s) collected, checking measure+contract+[MEASURE] replayDAG {mc91bad @(SBV Integer -> SBV Integer)}: replaying 6 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 10)+[GOOD] (define-fun s2 () Int 11)+[GOOD] (define-fun s3 () Int 100)+[GOOD] (define-fun s10 () Int 0)+[GOOD] (define-fun s11 () Int 101)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s7 () Int) ; tracks user variable "__internal_sbv_s7"+[GOOD] (declare-fun s8 () Int) ; tracks user variable "__internal_sbv_s8"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (> s0 s3))+[GOOD] (define-fun s5 () Int (- s0 s1))+[GOOD] (define-fun s6 () Int (+ s0 s2))+[GOOD] (define-fun s9 () Int (ite s4 s5 s8))+[GOOD] (define-fun s12 () Int (- s11 s0))+[GOOD] (define-fun s13 () Bool (<= s10 s12))+[GOOD] (define-fun s14 () Int (ite s13 s12 s10))+[GOOD] (define-fun s15 () Bool (>= s14 s10))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s15))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {mc91bad @(SBV Integer -> SBV Integer)}: replaying 6 node(s)+[MEASURE] replayDAG {mc91bad @(SBV Integer -> SBV Integer)}: replaying 6 node(s)+[MEASURE] replayDAG {mc91bad @(SBV Integer -> SBV Integer)}: replaying 6 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 10)+[GOOD] (define-fun s2 () Int 11)+[GOOD] (define-fun s3 () Int 100)+[GOOD] (define-fun s24 () Int 0)+[GOOD] (define-fun s27 () Int 101)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s7 () Int) ; tracks user variable "__internal_sbv_s7"+[GOOD] (declare-fun s8 () Int) ; tracks user variable "__internal_sbv_s8"+[GOOD] (declare-fun s13 () Int) ; tracks user variable "__internal_sbv_s13"+[GOOD] (declare-fun s14 () Int) ; tracks user variable "__internal_sbv_s14"+[GOOD] (declare-fun s20 () Int) ; tracks user variable "__internal_sbv_s20"+[GOOD] (declare-fun s21 () Int) ; tracks user variable "__internal_sbv_s21"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (> s0 s3))+[GOOD] (define-fun s5 () Int (- s0 s1))+[GOOD] (define-fun s6 () Int (+ s0 s2))+[GOOD] (define-fun s9 () Int (ite s4 s5 s8))+[GOOD] (define-fun s10 () Bool (> s6 s3))+[GOOD] (define-fun s11 () Int (- s6 s1))+[GOOD] (define-fun s12 () Int (+ s2 s6))+[GOOD] (define-fun s15 () Int (ite s10 s11 s14))+[GOOD] (define-fun s16 () Bool (= s7 s15))+[GOOD] (define-fun s17 () Bool (> s7 s3))+[GOOD] (define-fun s18 () Int (- s7 s1))+[GOOD] (define-fun s19 () Int (+ s2 s7))+[GOOD] (define-fun s22 () Int (ite s17 s18 s21))+[GOOD] (define-fun s23 () Bool (= s8 s22))+[GOOD] (define-fun s25 () Bool (= s7 s24))+[GOOD] (define-fun s26 () Bool (= s8 s24))+[GOOD] (define-fun s28 () Int (- s27 s0))+[GOOD] (define-fun s29 () Bool (<= s24 s28))+[GOOD] (define-fun s30 () Int (ite s29 s28 s24))+[GOOD] (define-fun s31 () Int (- s27 s6))+[GOOD] (define-fun s32 () Bool (<= s24 s31))+[GOOD] (define-fun s33 () Int (ite s32 s31 s24))+[GOOD] (define-fun s34 () Int (- s27 s7))+[GOOD] (define-fun s35 () Bool (<= s24 s34))+[GOOD] (define-fun s36 () Int (ite s35 s34 s24))+[GOOD] (define-fun s37 () Bool (not s4))+[GOOD] (define-fun s38 () Bool (> s30 s33))+[GOOD] (define-fun s39 () Bool (=> s37 s38))+[GOOD] (define-fun s40 () Bool (> s30 s36))+[GOOD] (define-fun s41 () Bool (=> s37 s40))+[GOOD] (define-fun s42 () Bool (and s39 s41))+[GOOD] (define-fun s43 () Bool (= s9 s24))+[GOOD] (define-fun s44 () Bool (and s42 s43))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s16)+[GOOD] (assert s23)+[GOOD] (assert s25)+[GOOD] (assert s26)+[GOOD] (assert (not s44))+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s30))+[RECV] ((s30 92))+[SEND] (get-value (s33))+[RECV] ((s33 81))+[SEND] (get-value (s36))+[RECV] ((s36 101))+[SEND] (get-value (s0))+[RECV] ((s0 9))+[SEND] (get-value (s7))+[RECV] ((s7 0))+[SEND] (get-value (s8))+[RECV] ((s8 0))+[SEND] (get-value (s13))+[RECV] ((s13 0))+[SEND] (get-value (s14))+[RECV] ((s14 0))+[SEND] (get-value (s20))+[RECV] ((s20 0))+[SEND] (get-value (s21))+[RECV] ((s21 0))+*** Solver   : Z3+*** Exit code: ExitSuccess++EXCEPTION:++*** Data.SBV: Measure+contract verification failed.+***+***   Function: mc91bad :: SBV Integer -> SBV Integer+***+***   Falsifiable. Counter-example:+***     arg     =   9 :: Integer+***     before  =  92 :: Integer+***     then[1] =  81 :: Integer+***     then[2] = 101 :: Integer+***+*** The measure must strictly decrease at every recursive call,+*** and the contract must hold for the function's output.+*** The inductive hypothesis provides the contract on recursive call+*** results for inputs with strictly smaller measure.+
+ SBVTestSuite/GoldFiles/recursive6_uselessContract.gold view
@@ -0,0 +1,153 @@+[MEASURE] Verifying termination measures for: mc91triv @(SBV Integer -> SBV Integer)+[MEASURE] Checking: mc91triv @(SBV Integer -> SBV Integer)+[MEASURE] mc91triv @(SBV Integer -> SBV Integer) (contract): verifying with 0 helper(s)+[MEASURE] mc91triv @(SBV Integer -> SBV Integer) (contract): 0 helper axiom(s) collected, checking measure+contract+[MEASURE] replayDAG {mc91triv @(SBV Integer -> SBV Integer)}: replaying 6 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 10)+[GOOD] (define-fun s2 () Int 11)+[GOOD] (define-fun s3 () Int 100)+[GOOD] (define-fun s10 () Int 0)+[GOOD] (define-fun s11 () Int 101)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s7 () Int) ; tracks user variable "__internal_sbv_s7"+[GOOD] (declare-fun s8 () Int) ; tracks user variable "__internal_sbv_s8"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (> s0 s3))+[GOOD] (define-fun s5 () Int (- s0 s1))+[GOOD] (define-fun s6 () Int (+ s0 s2))+[GOOD] (define-fun s9 () Int (ite s4 s5 s8))+[GOOD] (define-fun s12 () Int (- s11 s0))+[GOOD] (define-fun s13 () Bool (<= s10 s12))+[GOOD] (define-fun s14 () Int (ite s13 s12 s10))+[GOOD] (define-fun s15 () Bool (>= s14 s10))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s15))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {mc91triv @(SBV Integer -> SBV Integer)}: replaying 6 node(s)+[MEASURE] replayDAG {mc91triv @(SBV Integer -> SBV Integer)}: replaying 6 node(s)+[MEASURE] replayDAG {mc91triv @(SBV Integer -> SBV Integer)}: replaying 6 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 10)+[GOOD] (define-fun s2 () Int 11)+[GOOD] (define-fun s3 () Int 100)+[GOOD] (define-fun s24 () Int 0)+[GOOD] (define-fun s25 () Int 101)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s7 () Int) ; tracks user variable "__internal_sbv_s7"+[GOOD] (declare-fun s8 () Int) ; tracks user variable "__internal_sbv_s8"+[GOOD] (declare-fun s13 () Int) ; tracks user variable "__internal_sbv_s13"+[GOOD] (declare-fun s14 () Int) ; tracks user variable "__internal_sbv_s14"+[GOOD] (declare-fun s20 () Int) ; tracks user variable "__internal_sbv_s20"+[GOOD] (declare-fun s21 () Int) ; tracks user variable "__internal_sbv_s21"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s4 () Bool (> s0 s3))+[GOOD] (define-fun s5 () Int (- s0 s1))+[GOOD] (define-fun s6 () Int (+ s0 s2))+[GOOD] (define-fun s9 () Int (ite s4 s5 s8))+[GOOD] (define-fun s10 () Bool (> s6 s3))+[GOOD] (define-fun s11 () Int (- s6 s1))+[GOOD] (define-fun s12 () Int (+ s2 s6))+[GOOD] (define-fun s15 () Int (ite s10 s11 s14))+[GOOD] (define-fun s16 () Bool (= s7 s15))+[GOOD] (define-fun s17 () Bool (> s7 s3))+[GOOD] (define-fun s18 () Int (- s7 s1))+[GOOD] (define-fun s19 () Int (+ s2 s7))+[GOOD] (define-fun s22 () Int (ite s17 s18 s21))+[GOOD] (define-fun s23 () Bool (= s8 s22))+[GOOD] (define-fun s26 () Int (- s25 s0))+[GOOD] (define-fun s27 () Bool (<= s24 s26))+[GOOD] (define-fun s28 () Int (ite s27 s26 s24))+[GOOD] (define-fun s29 () Int (- s25 s6))+[GOOD] (define-fun s30 () Bool (<= s24 s29))+[GOOD] (define-fun s31 () Int (ite s30 s29 s24))+[GOOD] (define-fun s32 () Int (- s25 s7))+[GOOD] (define-fun s33 () Bool (<= s24 s32))+[GOOD] (define-fun s34 () Int (ite s33 s32 s24))+[GOOD] (define-fun s35 () Bool (not s4))+[GOOD] (define-fun s36 () Bool (> s28 s31))+[GOOD] (define-fun s37 () Bool (=> s35 s36))+[GOOD] (define-fun s38 () Bool (> s28 s34))+[GOOD] (define-fun s39 () Bool (=> s35 s38))+[GOOD] (define-fun s40 () Bool (and s37 s39))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s16)+[GOOD] (assert s23)+[GOOD] (assert (not s40))+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s28))+[RECV] ((s28 12))+[SEND] (get-value (s31))+[RECV] ((s31 1))+[SEND] (get-value (s34))+[RECV] ((s34 12))+[SEND] (get-value (s0))+[RECV] ((s0 89))+[SEND] (get-value (s7))+[RECV] ((s7 89))+[SEND] (get-value (s8))+[RECV] ((s8 0))+[SEND] (get-value (s13))+[RECV] ((s13 0))+[SEND] (get-value (s14))+[RECV] ((s14 89))+[SEND] (get-value (s20))+[RECV] ((s20 0))+[SEND] (get-value (s21))+[RECV] ((s21 0))+*** Solver   : Z3+*** Exit code: ExitSuccess++EXCEPTION:++*** Data.SBV: Measure+contract verification failed.+***+***   Function: mc91triv :: SBV Integer -> SBV Integer+***+***   Falsifiable. Counter-example:+***     arg     = 89 :: Integer+***     before  = 12 :: Integer+***     then[1] =  1 :: Integer+***     then[2] = 12 :: Integer+***+*** The measure must strictly decrease at every recursive call,+*** and the contract must hold for the function's output.+*** The inductive hypothesis provides the contract on recursive call+*** results for inputs with strictly smaller measure.+
+ SBVTestSuite/GoldFiles/recursive7_productive.gold view
@@ -0,0 +1,54 @@+[MEASURE] Verifying termination measures for: rep @(SBV Integer -> SBV Integer -> SBV [Integer])+[MEASURE] Checking: rep @(SBV Integer -> SBV Integer -> SBV [Integer])+[MEASURE] rep @(SBV Integer -> SBV Integer -> SBV [Integer]): productive (all recursive calls are guarded by constructors)+[MEASURE] Passed (productive): rep @(SBV Integer -> SBV Integer -> SBV [Integer])+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 3)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; |rep @(SBV Integer -> SBV Integer -> SBV [Integer])| :: SInteger -> SInteger -> [SInteger] [Recursive]+[GOOD] (define-fun-rec |rep @(SBV Integer -> SBV Integer -> SBV [Integer])| ((l1_s0 Int) (l1_s1 Int)) (Seq Int)+                                 (let ((l1_s2 0))+                                 (let ((l1_s4 (as seq.empty (Seq Int))))+                                 (let ((l1_s6 1))+                                 (let ((l1_s3 (<= l1_s0 l1_s2)))+                                 (let ((l1_s5 (seq.unit l1_s1)))+                                 (let ((l1_s7 (- l1_s0 l1_s6)))+                                 (let ((l1_s8 (|rep @(SBV Integer -> SBV Integer -> SBV [Integer])| l1_s7 l1_s1)))+                                 (let ((l1_s9 (seq.++ l1_s5 l1_s8)))+                                 (let ((l1_s10 (ite l1_s3 l1_s4 l1_s9)))+                                 l1_s10))))))))))+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () (Seq Int) (|rep @(SBV Integer -> SBV Integer -> SBV [Integer])| s1 s0))+[GOOD] (define-fun s3 () Int (seq.len s2))+[GOOD] (define-fun s4 () Bool (= s1 s3))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s4)+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 4))+*** Solver   : Z3+*** Exit code: ExitSuccess++RESULT:+Satisfiable. Model:+  s0 = 4 :: Integer
+ SBVTestSuite/GoldFiles/recursive8_badProductive.gold view
@@ -0,0 +1,12 @@+[MEASURE] Verifying termination measures for: bad @(SBV Integer -> SBV Integer)+[MEASURE] Checking: bad @(SBV Integer -> SBV Integer)++EXCEPTION:++*** Data.SBV: Function marked as productive is not guarded-recursive.+***+***   Function: bad :: SBV Integer -> SBV Integer+***+*** Every recursive call must be a direct argument to a data constructor+*** (list cons, ADT constructor, etc.) to ensure productivity.+
+ SBVTestSuite/GoldFiles/recursive9_productive2.gold view
@@ -0,0 +1,56 @@+[MEASURE] Verifying termination measures for: countdown @(SBV Integer -> SBV [Integer])+[MEASURE] Checking: countdown @(SBV Integer -> SBV [Integer])+[MEASURE] countdown @(SBV Integer -> SBV [Integer]): productive (all recursive calls are guarded by constructors)+[MEASURE] Passed (productive): countdown @(SBV Integer -> SBV [Integer])+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s2 () Int 0)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; |countdown @(SBV Integer -> SBV [Integer])| :: SInteger -> [SInteger] [Recursive]+[GOOD] (define-fun-rec |countdown @(SBV Integer -> SBV [Integer])| ((l1_s0 Int)) (Seq Int)+                                 (let ((l1_s1 0))+                                 (let ((l1_s3 (seq.unit 0)))+                                 (let ((l1_s5 1))+                                 (let ((l1_s2 (<= l1_s0 l1_s1)))+                                 (let ((l1_s4 (seq.unit l1_s0)))+                                 (let ((l1_s6 (- l1_s0 l1_s5)))+                                 (let ((l1_s7 (|countdown @(SBV Integer -> SBV [Integer])| l1_s6)))+                                 (let ((l1_s8 (seq.++ l1_s4 l1_s7)))+                                 (let ((l1_s9 (ite l1_s2 l1_s3 l1_s8)))+                                 l1_s9))))))))))+[GOOD] ; --- assignments ---+[GOOD] (define-fun s1 () (Seq Int) (|countdown @(SBV Integer -> SBV [Integer])| s0))+[GOOD] (define-fun s3 () Int (seq.nth s1 s2))+[GOOD] (define-fun s4 () Bool (= s0 s3))+[GOOD] (define-fun s5 () Bool (> s0 s2))+[GOOD] (define-fun s6 () Bool (and s4 s5))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s6)+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+*** Solver   : Z3+*** Exit code: ExitSuccess++RESULT:+Satisfiable. Model:+  s0 = 1 :: Integer
SBVTestSuite/GoldFiles/safe1.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/safe2.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/seqConcat.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; external query, using all logics.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/seqConcatBad.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; external query, using all logics.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/seqExamples1.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; external query, using all logics.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/seqExamples2.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/seqExamples3.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/seqExamples4.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/seqExamples5.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/seqExamples6.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/seqExamples7.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/seqExamples8.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/seqIndexOf.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; external query, using all logics.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/seqIndexOfBad.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; external query, using all logics.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/set_compl1.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/set_delete1.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/set_diff1.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/set_disj1.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/set_empty1.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/set_full1.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/set_insert1.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/set_intersect1.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/set_member1.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/set_notMember1.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/set_psubset1.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/set_subset1.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/set_tupleSet.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has tuples, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)                                            ((mkSBVTuple2 (proj_1_SBVTuple2 T1)
SBVTestSuite/GoldFiles/set_uninterp1.gold view
@@ -8,14 +8,16 @@ [GOOD] (set-option :pp.max_depth      4294967295) [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      )-[GOOD] (set-logic ALL) ; has user-defined sorts, using catch-all.-[GOOD] ; --- uninterpreted sorts ----[GOOD] (declare-datatypes ((E 0)) (((A) (B) (C))))-[GOOD] (define-fun E_constrIndex ((x E)) Int-          (ite (= x A) 0 (ite (= x B) 1 2))-       )+[GOOD] (set-logic ALL) ; has user-defined data-types, using catch-all. [GOOD] ; --- tuples --- [GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: E+[GOOD] (declare-datatype E (+           (A)+           (B)+           (C)+       )) [GOOD] ; --- literal constants --- [GOOD] ; --- top level inputs --- [GOOD] (declare-fun s0 () (Array E Bool))@@ -40,9 +42,9 @@ [SEND] (check-sat) [RECV] sat [SEND] (get-value (s0))-[RECV] ((s0 (store ((as const (Array E Bool)) false) B true)))+[RECV] ((s0 (store ((as const (Array E Bool)) false) C true))) [GOOD] (push 1)-[GOOD] (define-fun s3 () (Array E Bool) (store ((as const (Array E Bool)) false) B true))+[GOOD] (define-fun s3 () (Array E Bool) (store ((as const (Array E Bool)) false) (as C E) true)) [GOOD] (define-fun s4 () Bool (distinct s0 s3)) [GOOD] (assert s4) Fast allSat, Looking for solution 3@@ -51,34 +53,34 @@ [SEND] (get-value (s0)) [RECV] ((s0 (store ((as const (Array E Bool)) false) A true))) [GOOD] (push 1)-[GOOD] (define-fun s5 () (Array E Bool) (store ((as const (Array E Bool)) false) A true))+[GOOD] (define-fun s5 () (Array E Bool) (store ((as const (Array E Bool)) false) (as A E) true)) [GOOD] (define-fun s6 () Bool (distinct s0 s5)) [GOOD] (assert s6) Fast allSat, Looking for solution 4 [SEND] (check-sat) [RECV] sat [SEND] (get-value (s0))-[RECV] ((s0 (store (store ((as const (Array E Bool)) false) C true) A true)))+[RECV] ((s0 (store (store ((as const (Array E Bool)) false) B true) A true))) [GOOD] (push 1)-[GOOD] (define-fun s7 () (Array E Bool) (store (store ((as const (Array E Bool)) false) C true) A true))+[GOOD] (define-fun s7 () (Array E Bool) (store (store ((as const (Array E Bool)) false) (as B E) true) (as A E) true)) [GOOD] (define-fun s8 () Bool (distinct s0 s7)) [GOOD] (assert s8) Fast allSat, Looking for solution 5 [SEND] (check-sat) [RECV] sat [SEND] (get-value (s0))-[RECV] ((s0 ((as const (Array E Bool)) true)))+[RECV] ((s0 (store (store ((as const (Array E Bool)) true) C false) A false))) [GOOD] (push 1)-[GOOD] (define-fun s9 () (Array E Bool) ((as const (Array E Bool)) true))+[GOOD] (define-fun s9 () (Array E Bool) (store (store ((as const (Array E Bool)) true) (as C E) false) (as A E) false)) [GOOD] (define-fun s10 () Bool (distinct s0 s9)) [GOOD] (assert s10) Fast allSat, Looking for solution 6 [SEND] (check-sat) [RECV] sat [SEND] (get-value (s0))-[RECV] ((s0 (store (store ((as const (Array E Bool)) false) B true) A true)))+[RECV] ((s0 (store ((as const (Array E Bool)) true) B false))) [GOOD] (push 1)-[GOOD] (define-fun s11 () (Array E Bool) (store (store ((as const (Array E Bool)) false) B true) A true))+[GOOD] (define-fun s11 () (Array E Bool) (store ((as const (Array E Bool)) true) (as B E) false)) [GOOD] (define-fun s12 () Bool (distinct s0 s11)) [GOOD] (assert s12) Fast allSat, Looking for solution 7@@ -87,16 +89,16 @@ [SEND] (get-value (s0)) [RECV] ((s0 (store (store ((as const (Array E Bool)) false) C true) B true))) [GOOD] (push 1)-[GOOD] (define-fun s13 () (Array E Bool) (store (store ((as const (Array E Bool)) false) C true) B true))+[GOOD] (define-fun s13 () (Array E Bool) (store (store ((as const (Array E Bool)) false) (as C E) true) (as B E) true)) [GOOD] (define-fun s14 () Bool (distinct s0 s13)) [GOOD] (assert s14) Fast allSat, Looking for solution 8 [SEND] (check-sat) [RECV] sat [SEND] (get-value (s0))-[RECV] ((s0 (store ((as const (Array E Bool)) false) C true)))+[RECV] ((s0 ((as const (Array E Bool)) true))) [GOOD] (push 1)-[GOOD] (define-fun s15 () (Array E Bool) (store ((as const (Array E Bool)) false) C true))+[GOOD] (define-fun s15 () (Array E Bool) ((as const (Array E Bool)) true)) [GOOD] (define-fun s16 () Bool (distinct s0 s15)) [GOOD] (assert s16) Fast allSat, Looking for solution 9@@ -115,19 +117,19 @@  FINAL: Solution #1:-  s0 = {C} :: {E}+  s0 = U :: {E} Solution #2:   s0 = {B,C} :: {E} Solution #3:-  s0 = {A,B} :: {E}+  s0 = U - {B} :: {E} Solution #4:-  s0 = U :: {E}+  s0 = U - {A,C} :: {E} Solution #5:-  s0 = {A,C} :: {E}+  s0 = {A,B} :: {E} Solution #6:   s0 = {A} :: {E} Solution #7:-  s0 = {B} :: {E}+  s0 = {C} :: {E} Solution #8:   s0 = {} :: {E} Found 8 different solutions.
SBVTestSuite/GoldFiles/set_uninterp2.gold view
@@ -8,14 +8,16 @@ [GOOD] (set-option :pp.max_depth      4294967295) [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      )-[GOOD] (set-logic ALL) ; has user-defined sorts, using catch-all.-[GOOD] ; --- uninterpreted sorts ----[GOOD] (declare-datatypes ((E 0)) (((A) (B) (C))))-[GOOD] (define-fun E_constrIndex ((x E)) Int-          (ite (= x A) 0 (ite (= x B) 1 2))-       )+[GOOD] (set-logic ALL) ; has user-defined data-types, using catch-all. [GOOD] ; --- tuples --- [GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: E+[GOOD] (declare-datatype E (+           (A)+           (B)+           (C)+       )) [GOOD] ; --- literal constants --- [GOOD] ; --- top level inputs --- [GOOD] (declare-fun s0 () (Array E Bool)) ; tracks user variable "a"@@ -32,12 +34,12 @@ [SEND] (check-sat) [RECV] sat [SEND] (get-value (s0))-[RECV] ((s0 (store ((as const (Array E Bool)) false) B true)))+[RECV] ((s0 (store ((as const (Array E Bool)) false) C true))) [SEND] (get-value (s1)) [RECV] ((s1 ((as const (Array E Bool)) false))) *** Solver   : Z3 *** Exit code: ExitSuccess  FINAL:-({B},{})+({C},{}) DONE!
SBVTestSuite/GoldFiles/set_union1.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
+ SBVTestSuite/GoldFiles/smtFuncUniq_captureConflict.gold view
@@ -0,0 +1,9 @@++*** Data.SBV: Function 'bar @(SBV Integer -> SBV Integer)' defined with conflicting bodies.+***+*** Two calls to smtFunction (or related) used the name 'bar @(SBV Integer -> SBV Integer)'+*** but with different definitions. This would generate conflicting+*** SMTLib define-fun-rec declarations.+***+*** Please use a unique name for each distinct function.+
+ SBVTestSuite/GoldFiles/smtFuncUniq_captureTagged.gold view
@@ -0,0 +1,43 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s4 () Int 10)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; |bar_two @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger+[GOOD] (define-fun |bar_two @(SBV Integer -> SBV Integer)| ((l1_s0 Int)) Int+                                 (let ((l1_s1 2))+                                 (let ((l1_s2 (+ l1_s0 l1_s1)))+                                 l1_s2)))+[GOOD] ; |bar_three @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger+[GOOD] (define-fun |bar_three @(SBV Integer -> SBV Integer)| ((l1_s0 Int)) Int+                                 (let ((l1_s1 3))+                                 (let ((l1_s2 (+ l1_s0 l1_s1)))+                                 l1_s2)))+[GOOD] ; --- assignments ---+[GOOD] (define-fun s1 () Int (|bar_two @(SBV Integer -> SBV Integer)| s0))+[GOOD] (define-fun s2 () Int (|bar_three @(SBV Integer -> SBV Integer)| s0))+[GOOD] (define-fun s3 () Int (+ s1 s2))+[GOOD] (define-fun s5 () Bool (= s3 s4))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s5)+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess++RESULT:+Unsatisfiable
+ SBVTestSuite/GoldFiles/smtFuncUniq_conflict.gold view
@@ -0,0 +1,9 @@++*** Data.SBV: Function 'f @(SBV Integer -> SBV Integer)' defined with conflicting bodies.+***+*** Two calls to smtFunction (or related) used the name 'f @(SBV Integer -> SBV Integer)'+*** but with different definitions. This would generate conflicting+*** SMTLib define-fun-rec declarations.+***+*** Please use a unique name for each distinct function.+
+ SBVTestSuite/GoldFiles/smtFuncUniq_recursiveConflict.gold view
@@ -0,0 +1,9 @@++*** Data.SBV: Function 'f @(SBV Integer -> SBV Integer)' defined with conflicting bodies.+***+*** Two calls to smtFunction (or related) used the name 'f @(SBV Integer -> SBV Integer)'+*** but with different definitions. This would generate conflicting+*** SMTLib define-fun-rec declarations.+***+*** Please use a unique name for each distinct function.+
+ SBVTestSuite/GoldFiles/smtFuncUniq_recursiveOk.gold view
@@ -0,0 +1,131 @@+[MEASURE] Verifying termination measures for: f @(SBV Integer -> SBV Integer)+[MEASURE] Checking: f @(SBV Integer -> SBV Integer)+[MEASURE] f @(SBV Integer -> SBV Integer): barified = "|f @(SBV Integer -> SBV Integer)|"+[MEASURE] f @(SBV Integer -> SBV Integer): Uninterpreted ops in DAG: [("|f @(SBV Integer -> SBV Integer)|",1)]+[MEASURE] f @(SBV Integer -> SBV Integer): recursive calls found = 1+[MEASURE] f @(SBV Integer -> SBV Integer): trying abs arg1+[MEASURE] replayDAG {f @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s0 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Int (abs s0))+[GOOD] (define-fun s9 () Bool (>= s8 s1))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s9))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] replayDAG {f @(SBV Integer -> SBV Integer)}: replaying 5 node(s)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s2 () Int 1)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int) ; tracks user variable "arg"+[GOOD] (declare-fun s5 () Int) ; tracks user variable "__internal_sbv_s5"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (<= s0 s1))+[GOOD] (define-fun s4 () Int (- s0 s2))+[GOOD] (define-fun s6 () Int (+ s0 s5))+[GOOD] (define-fun s7 () Int (ite s3 s1 s6))+[GOOD] (define-fun s8 () Int (abs s0))+[GOOD] (define-fun s9 () Int (abs s4))+[GOOD] (define-fun s10 () Bool (not s3))+[GOOD] (define-fun s11 () Bool (> s8 s9))+[GOOD] (define-fun s12 () Bool (=> s10 s11))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert (not s12))+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess+[MEASURE] f @(SBV Integer -> SBV Integer): abs arg1 -> OK+[MEASURE] Passed (terminating): f @(SBV Integer -> SBV Integer)+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s1 () Int 0)+[GOOD] (define-fun s3 () Int 3)+[GOOD] (define-fun s6 () Int 6)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; |f @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger [Recursive]+[GOOD] (define-fun-rec |f @(SBV Integer -> SBV Integer)| ((l1_s0 Int)) Int+                                 (let ((l1_s1 0))+                                 (let ((l1_s3 1))+                                 (let ((l1_s2 (<= l1_s0 l1_s1)))+                                 (let ((l1_s4 (- l1_s0 l1_s3)))+                                 (let ((l1_s5 (|f @(SBV Integer -> SBV Integer)| l1_s4)))+                                 (let ((l1_s6 (+ l1_s0 l1_s5)))+                                 (let ((l1_s7 (ite l1_s2 l1_s1 l1_s6)))+                                 l1_s7))))))))+[GOOD] ; --- assignments ---+[GOOD] (define-fun s2 () Bool (>= s0 s1))+[GOOD] (define-fun s4 () Bool (<= s0 s3))+[GOOD] (define-fun s5 () Int (|f @(SBV Integer -> SBV Integer)| s0))+[GOOD] (define-fun s7 () Bool (= s5 s6))+[GOOD] (define-fun s8 () Bool (and s4 s7))+[GOOD] (define-fun s9 () Bool (and s2 s8))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s9)+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 3))+*** Solver   : Z3+*** Exit code: ExitSuccess++RESULT:+Satisfiable. Model:+  s0 = 3 :: Integer
+ SBVTestSuite/GoldFiles/smtFuncUniq_sameOk.gold view
@@ -0,0 +1,40 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic ALL) ; has unbounded values, using catch-all.+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] (define-fun s3 () Int 4)+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Int)+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] ; --- user defined functions ---+[GOOD] ; |f @(SBV Integer -> SBV Integer)| :: SInteger -> SInteger+[GOOD] (define-fun |f @(SBV Integer -> SBV Integer)| ((l1_s0 Int)) Int+                                 (let ((l1_s1 1))+                                 (let ((l1_s2 (+ l1_s0 l1_s1)))+                                 l1_s2)))+[GOOD] ; --- assignments ---+[GOOD] (define-fun s1 () Int (|f @(SBV Integer -> SBV Integer)| s0))+[GOOD] (define-fun s2 () Int (+ s1 s1))+[GOOD] (define-fun s4 () Bool (= s2 s3))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s4)+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 1))+*** Solver   : Z3+*** Exit code: ExitSuccess++RESULT:+Satisfiable. Model:+  s0 = 1 :: Integer
SBVTestSuite/GoldFiles/strConcat.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; external query, using all logics.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/strConcatBad.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; external query, using all logics.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/strExamples1.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; external query, using all logics.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/strExamples10.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---@@ -18,7 +17,7 @@ [GOOD] ; --- uninterpreted constants --- [GOOD] ; --- user defined functions --- [GOOD] ; --- assignments ----[GOOD] (define-fun s1 () Bool (str.in.re s0 ((_ re.loop 1 3) (str.to.re "ab"))))+[GOOD] (define-fun s1 () Bool (str.in_re s0 ((_ re.loop 1 3) (str.to_re "ab")))) [GOOD] (define-fun s2 () Int (str.len s0)) [GOOD] (define-fun s4 () Bool (> s2 s3)) [GOOD] ; --- delayedEqualities ---
SBVTestSuite/GoldFiles/strExamples11.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/strExamples12.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/strExamples13.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/strExamples2.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has strings, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/strExamples3.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has strings, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/strExamples4.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/strExamples5.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has strings, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/strExamples6.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has strings, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/strExamples7.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has strings, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/strExamples8.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/strExamples9.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---@@ -18,7 +17,7 @@ [GOOD] ; --- uninterpreted constants --- [GOOD] ; --- user defined functions --- [GOOD] ; --- assignments ----[GOOD] (define-fun s1 () Bool (str.in.re s0 ((_ re.loop 1 3) (str.to.re "ab"))))+[GOOD] (define-fun s1 () Bool (str.in_re s0 ((_ re.loop 1 3) (str.to_re "ab")))) [GOOD] (define-fun s2 () Int (str.len s0)) [GOOD] (define-fun s4 () Bool (= s2 s3)) [GOOD] ; --- delayedEqualities ---
SBVTestSuite/GoldFiles/strIndexOf.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; external query, using all logics.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/strIndexOfBad.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; external query, using all logics.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/sumBimapPlus.gold view
@@ -9,35 +9,37 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums ----[GOOD] (declare-datatypes ((SBVEither 2)) ((par (T1 T2)-                                           ((left_SBVEither  (get_left_SBVEither  T1))-                                            (right_SBVEither (get_right_SBVEither T2))))))+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Either+[GOOD] (declare-datatype Either (par (a b) (+           (Left (getLeft_1 a))+           (Right (getRight_1 b))+       ))) [GOOD] ; --- literal constants ----[GOOD] (define-fun s2 () Int 1)+[GOOD] (define-fun s3 () Int 1) [GOOD] ; --- top level inputs ----[GOOD] (declare-fun s0 () (SBVEither Int Int)) ; tracks user variable "x"+[GOOD] (declare-fun s0 () (Either Int Int)) ; tracks user variable "x" [GOOD] ; --- constant tables --- [GOOD] ; --- non-constant tables --- [GOOD] ; --- uninterpreted constants --- [GOOD] ; --- user defined functions --- [GOOD] ; --- assignments ----[GOOD] (define-fun s1 () Int (get_left_SBVEither s0))-[GOOD] (define-fun s3 () Int (+ s1 s2))-[GOOD] (define-fun s4 () (SBVEither Int Int) ((as left_SBVEither (SBVEither Int Int)) s3))-[GOOD] (define-fun s5 () Int (get_right_SBVEither s0))-[GOOD] (define-fun s6 () Int (+ s2 s5))-[GOOD] (define-fun s7 () (SBVEither Int Int) ((as right_SBVEither (SBVEither Int Int)) s6))-[GOOD] (define-fun s8 () Bool ((_ is (left_SBVEither (Int) (SBVEither Int Int))) s0))-[GOOD] (define-fun s9 () (SBVEither Int Int) (ite s8 s4 s7))-[GOOD] (define-fun s10 () Int (get_left_SBVEither s9))-[GOOD] (define-fun s11 () Int (get_right_SBVEither s9))-[GOOD] (define-fun s12 () Bool ((_ is (left_SBVEither (Int) (SBVEither Int Int))) s9))-[GOOD] (define-fun s13 () Int (ite s12 s10 s11))-[GOOD] (define-fun s14 () Int (ite s8 s1 s5))-[GOOD] (define-fun s15 () Int (+ s2 s14))+[GOOD] (define-fun s1 () Bool ((as is-Left Bool) s0))+[GOOD] (define-fun s2 () Int (getLeft_1 s0))+[GOOD] (define-fun s4 () Int (+ s2 s3))+[GOOD] (define-fun s5 () (Either Int Int) ((as Left (Either Int Int)) s4))+[GOOD] (define-fun s6 () Int (getRight_1 s0))+[GOOD] (define-fun s7 () Int (+ s3 s6))+[GOOD] (define-fun s8 () (Either Int Int) ((as Right (Either Int Int)) s7))+[GOOD] (define-fun s9 () (Either Int Int) (ite s1 s5 s8))+[GOOD] (define-fun s10 () Bool ((as is-Left Bool) s9))+[GOOD] (define-fun s11 () Int (getLeft_1 s9))+[GOOD] (define-fun s12 () Int (getRight_1 s9))+[GOOD] (define-fun s13 () Int (ite s10 s11 s12))+[GOOD] (define-fun s14 () Int (ite s1 s2 s6))+[GOOD] (define-fun s15 () Int (+ s3 s14)) [GOOD] (define-fun s16 () Bool (= s13 s15)) [GOOD] ; --- delayedEqualities --- [GOOD] ; --- formula ---@@ -45,8 +47,8 @@ [SEND] (check-sat) [RECV] sat [SEND] (get-value (s0))-[RECV] ((s0 (left_SBVEither 0)))+[RECV] ((s0 (Left (- 1)))) -MODEL: SMTModel {modelObjectives = [], modelBindings = Nothing, modelAssocs = [("x",Left 0 :: Either Integer Integer)], modelUIFuns = []}+MODEL: SMTModel {modelObjectives = [], modelBindings = Nothing, modelAssocs = [("x",Left (-1) :: Either Integer Integer)], modelUIFuns = []} DONE.*** Solver   : Z3 *** Exit code: ExitSuccess
SBVTestSuite/GoldFiles/sumEitherSat.gold view
@@ -9,34 +9,36 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums ----[GOOD] (declare-datatypes ((SBVEither 2)) ((par (T1 T2)-                                           ((left_SBVEither  (get_left_SBVEither  T1))-                                            (right_SBVEither (get_right_SBVEither T2))))))+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Either+[GOOD] (declare-datatype Either (par (a b) (+           (Left (getLeft_1 a))+           (Right (getRight_1 b))+       ))) [GOOD] ; --- literal constants ----[GOOD] (define-fun s2 () Int 0)+[GOOD] (define-fun s3 () Int 0) [GOOD] ; --- top level inputs ----[GOOD] (declare-fun s0 () (SBVEither Int Bool)) ; tracks user variable "x"+[GOOD] (declare-fun s0 () (Either Int Bool)) ; tracks user variable "x" [GOOD] ; --- constant tables --- [GOOD] ; --- non-constant tables --- [GOOD] ; --- uninterpreted constants --- [GOOD] ; --- user defined functions --- [GOOD] ; --- assignments ----[GOOD] (define-fun s1 () Int (get_left_SBVEither s0))-[GOOD] (define-fun s3 () Bool (> s1 s2))-[GOOD] (define-fun s4 () Bool (get_right_SBVEither s0))-[GOOD] (define-fun s5 () Bool (not s4))-[GOOD] (define-fun s6 () Bool ((_ is (left_SBVEither (Int) (SBVEither Int Bool))) s0))-[GOOD] (define-fun s7 () Bool (ite s6 s3 s5))+[GOOD] (define-fun s1 () Bool ((as is-Left Bool) s0))+[GOOD] (define-fun s2 () Int (getLeft_1 s0))+[GOOD] (define-fun s4 () Bool (> s2 s3))+[GOOD] (define-fun s5 () Bool (getRight_1 s0))+[GOOD] (define-fun s6 () Bool (not s5))+[GOOD] (define-fun s7 () Bool (ite s1 s4 s6)) [GOOD] ; --- delayedEqualities --- [GOOD] ; --- formula --- [GOOD] (assert s7) [SEND] (check-sat) [RECV] sat [SEND] (get-value (s0))-[RECV] ((s0 (right_SBVEither false)))+[RECV] ((s0 (Right false)))  MODEL: SMTModel {modelObjectives = [], modelBindings = Nothing, modelAssocs = [("x",Right False :: Either Integer Bool)], modelUIFuns = []} DONE.*** Solver   : Z3
SBVTestSuite/GoldFiles/sumLiftEither.gold view
@@ -9,12 +9,14 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums ----[GOOD] (declare-datatypes ((SBVEither 2)) ((par (T1 T2)-                                           ((left_SBVEither  (get_left_SBVEither  T1))-                                            (right_SBVEither (get_right_SBVEither T2))))))+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Either+[GOOD] (declare-datatype Either (par (a b) (+           (Left (getLeft_1 a))+           (Right (getRight_1 b))+       ))) [GOOD] ; --- literal constants --- [GOOD] ; --- top level inputs --- [GOOD] (declare-fun s0 () Int) ; tracks user variable "i"@@ -25,16 +27,14 @@ [GOOD] ; --- uninterpreted constants --- [GOOD] ; --- user defined functions --- [GOOD] ; --- assignments ----[GOOD] (define-fun s2 () (SBVEither Int String) ((as left_SBVEither (SBVEither Int String)) s0))-[GOOD] (define-fun s3 () Bool ((_ is (left_SBVEither (Int) (SBVEither Int String))) s2))-[GOOD] (define-fun s4 () Bool (ite s3 true false))-[GOOD] (define-fun s5 () (SBVEither Int String) ((as right_SBVEither (SBVEither Int String)) s1))-[GOOD] (define-fun s6 () Bool ((_ is (left_SBVEither (Int) (SBVEither Int String))) s5))-[GOOD] (define-fun s7 () Bool (ite s6 false true))+[GOOD] (define-fun s2 () (Either Int String) ((as Left (Either Int String)) s0))+[GOOD] (define-fun s3 () Bool ((as is-Left Bool) s2))+[GOOD] (define-fun s4 () (Either Int String) ((as Right (Either Int String)) s1))+[GOOD] (define-fun s5 () Bool ((as is-Right Bool) s4)) [GOOD] ; --- delayedEqualities --- [GOOD] ; --- formula ----[GOOD] (assert s4)-[GOOD] (assert s7)+[GOOD] (assert s3)+[GOOD] (assert s5) [SEND] (check-sat) [RECV] sat [SEND] (get-value (s0))
SBVTestSuite/GoldFiles/sumLiftMaybe.gold view
@@ -9,14 +9,16 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums ----[GOOD] (declare-datatypes ((SBVMaybe 1)) ((par (T)-                                           ((nothing_SBVMaybe)-                                            (just_SBVMaybe (get_just_SBVMaybe T))))))+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Maybe+[GOOD] (declare-datatype Maybe (par (a) (+           (Nothing)+           (Just (getJust_1 a))+       ))) [GOOD] ; --- literal constants ----[GOOD] (define-fun s2 () (SBVMaybe Int) (as nothing_SBVMaybe (SBVMaybe Int)))+[GOOD] (define-fun s2 () (Maybe Int) (as Nothing (Maybe Int))) [GOOD] ; --- top level inputs --- [GOOD] (declare-fun s0 () Int) ; tracks user variable "i" [GOOD] ; --- constant tables ---@@ -24,7 +26,7 @@ [GOOD] ; --- uninterpreted constants --- [GOOD] ; --- user defined functions --- [GOOD] ; --- assignments ----[GOOD] (define-fun s1 () (SBVMaybe Int) ((as just_SBVMaybe (SBVMaybe Int)) s0))+[GOOD] (define-fun s1 () (Maybe Int) ((as Just (Maybe Int)) s0)) [GOOD] (define-fun s3 () Bool (distinct s1 s2)) [GOOD] ; --- delayedEqualities --- [GOOD] ; --- formula ---
SBVTestSuite/GoldFiles/sumMaybe.gold view
@@ -9,49 +9,49 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums ----[GOOD] (declare-datatypes ((SBVMaybe 1)) ((par (T)-                                           ((nothing_SBVMaybe)-                                            (just_SBVMaybe (get_just_SBVMaybe T))))))+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Maybe+[GOOD] (declare-datatype Maybe (par (a) (+           (Nothing)+           (Just (getJust_1 a))+       ))) [GOOD] ; --- literal constants ----[GOOD] (define-fun s3 () (SBVMaybe Int) (as nothing_SBVMaybe (SBVMaybe Int)))-[GOOD] (define-fun s5 () Int 1)-[GOOD] (define-fun s15 () Int 0)+[GOOD] (define-fun s2 () (Maybe Int) (as Nothing (Maybe Int)))+[GOOD] (define-fun s4 () Int 1)+[GOOD] (define-fun s13 () Int 0) [GOOD] ; --- top level inputs ----[GOOD] (declare-fun s0 () (SBVMaybe Int)) ; tracks user variable "x"+[GOOD] (declare-fun s0 () (Maybe Int)) ; tracks user variable "x" [GOOD] ; --- constant tables --- [GOOD] ; --- non-constant tables --- [GOOD] ; --- uninterpreted constants --- [GOOD] ; --- user defined functions --- [GOOD] ; --- assignments ----[GOOD] (define-fun s1 () Bool ((_ is (nothing_SBVMaybe () (SBVMaybe Int))) s0))-[GOOD] (define-fun s2 () Bool (ite s1 true false))-[GOOD] (define-fun s4 () Int (get_just_SBVMaybe s0))-[GOOD] (define-fun s6 () Int (+ s4 s5))-[GOOD] (define-fun s7 () (SBVMaybe Int) ((as just_SBVMaybe (SBVMaybe Int)) s6))-[GOOD] (define-fun s8 () (SBVMaybe Int) (ite s1 s3 s7))-[GOOD] (define-fun s9 () Bool ((_ is (nothing_SBVMaybe () (SBVMaybe Int))) s8))-[GOOD] (define-fun s10 () Bool (ite s9 true false))-[GOOD] (define-fun s11 () Bool (= s2 s10))-[GOOD] (define-fun s12 () Bool (ite s1 false true))-[GOOD] (define-fun s13 () Bool (ite s9 false true))-[GOOD] (define-fun s14 () Bool (= s12 s13))-[GOOD] (define-fun s16 () Int (ite s1 s15 s4))-[GOOD] (define-fun s17 () Int (get_just_SBVMaybe s8))-[GOOD] (define-fun s18 () Int (ite s9 s15 s17))-[GOOD] (define-fun s19 () Int (- s18 s5))-[GOOD] (define-fun s20 () Bool (= s16 s19))+[GOOD] (define-fun s1 () Bool ((as is-Nothing Bool) s0))+[GOOD] (define-fun s3 () Int (getJust_1 s0))+[GOOD] (define-fun s5 () Int (+ s3 s4))+[GOOD] (define-fun s6 () (Maybe Int) ((as Just (Maybe Int)) s5))+[GOOD] (define-fun s7 () (Maybe Int) (ite s1 s2 s6))+[GOOD] (define-fun s8 () Bool ((as is-Nothing Bool) s7))+[GOOD] (define-fun s9 () Bool (= s1 s8))+[GOOD] (define-fun s10 () Bool ((as is-Just Bool) s0))+[GOOD] (define-fun s11 () Bool ((as is-Just Bool) s7))+[GOOD] (define-fun s12 () Bool (= s10 s11))+[GOOD] (define-fun s14 () Int (ite s1 s13 s3))+[GOOD] (define-fun s15 () Int (getJust_1 s7))+[GOOD] (define-fun s16 () Int (ite s8 s13 s15))+[GOOD] (define-fun s17 () Int (- s16 s4))+[GOOD] (define-fun s18 () Bool (= s14 s17)) [GOOD] ; --- delayedEqualities --- [GOOD] ; --- formula ----[GOOD] (assert s11)-[GOOD] (assert s14)-[GOOD] (assert s20)+[GOOD] (assert s9)+[GOOD] (assert s12)+[GOOD] (assert s18) [SEND] (check-sat) [RECV] sat [SEND] (get-value (s0))-[RECV] ((s0 (just_SBVMaybe 0)))+[RECV] ((s0 (Just 0)))  MODEL: SMTModel {modelObjectives = [], modelBindings = Nothing, modelAssocs = [("x",Just 0 :: Maybe Integer)], modelUIFuns = []} DONE.*** Solver   : Z3
SBVTestSuite/GoldFiles/sumMaybeBoth.gold view
@@ -9,38 +9,40 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums ----[GOOD] (declare-datatypes ((SBVEither 2)) ((par (T1 T2)-                                           ((left_SBVEither  (get_left_SBVEither  T1))-                                            (right_SBVEither (get_right_SBVEither T2))))))-[GOOD] (declare-datatypes ((SBVMaybe 1)) ((par (T)-                                           ((nothing_SBVMaybe)-                                            (just_SBVMaybe (get_just_SBVMaybe T))))))+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Maybe+[GOOD] (declare-datatype Maybe (par (a) (+           (Nothing)+           (Just (getJust_1 a))+       )))+[GOOD] ; User defined ADT: Either+[GOOD] (declare-datatype Either (par (a b) (+           (Left (getLeft_1 a))+           (Right (getRight_1 b))+       ))) [GOOD] ; --- literal constants --- [GOOD] ; --- top level inputs ----[GOOD] (declare-fun s0 () (SBVEither Int Int))-[GOOD] (declare-fun s1 () (SBVMaybe Int))+[GOOD] (declare-fun s0 () (Either Int Int))+[GOOD] (declare-fun s1 () (Maybe Int)) [GOOD] ; --- constant tables --- [GOOD] ; --- non-constant tables --- [GOOD] ; --- uninterpreted constants --- [GOOD] ; --- user defined functions --- [GOOD] ; --- assignments ----[GOOD] (define-fun s2 () Bool ((_ is (left_SBVEither (Int) (SBVEither Int Int))) s0))-[GOOD] (define-fun s3 () Bool (ite s2 true false))-[GOOD] (define-fun s4 () Bool ((_ is (nothing_SBVMaybe () (SBVMaybe Int))) s1))-[GOOD] (define-fun s5 () Bool (ite s4 false true))+[GOOD] (define-fun s2 () Bool ((as is-Left Bool) s0))+[GOOD] (define-fun s3 () Bool ((as is-Just Bool) s1)) [GOOD] ; --- delayedEqualities --- [GOOD] ; --- formula ---+[GOOD] (assert s2) [GOOD] (assert s3)-[GOOD] (assert s5) [SEND] (check-sat) [RECV] sat [SEND] (get-value (s0))-[RECV] ((s0 (left_SBVEither 2)))+[RECV] ((s0 (Left 2))) [SEND] (get-value (s1))-[RECV] ((s1 (just_SBVMaybe 3)))+[RECV] ((s1 (Just 3)))  MODEL: SMTModel {modelObjectives = [], modelBindings = Nothing, modelAssocs = [("s0",Left 2 :: Either Integer Integer),("s1",Just 3 :: Maybe Integer)], modelUIFuns = []} DONE.*** Solver   : Z3
SBVTestSuite/GoldFiles/sumMergeEither1.gold view
@@ -9,34 +9,35 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums ----[GOOD] (declare-datatypes ((SBVEither 2)) ((par (T1 T2)-                                           ((left_SBVEither  (get_left_SBVEither  T1))-                                            (right_SBVEither (get_right_SBVEither T2))))))+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Either+[GOOD] (declare-datatype Either (par (a b) (+           (Left (getLeft_1 a))+           (Right (getRight_1 b))+       ))) [GOOD] ; --- literal constants --- [GOOD] ; --- top level inputs ----[GOOD] (declare-fun s0 () (SBVEither Int Bool))-[GOOD] (declare-fun s1 () (SBVEither Int Bool))+[GOOD] (declare-fun s0 () (Either Int Bool))+[GOOD] (declare-fun s1 () (Either Int Bool)) [GOOD] (declare-fun s2 () Bool) [GOOD] ; --- constant tables --- [GOOD] ; --- non-constant tables --- [GOOD] ; --- uninterpreted constants --- [GOOD] ; --- user defined functions --- [GOOD] ; --- assignments ----[GOOD] (define-fun s3 () (SBVEither Int Bool) (ite s2 s0 s1))-[GOOD] (define-fun s4 () Bool ((_ is (left_SBVEither (Int) (SBVEither Int Bool))) s3))-[GOOD] (define-fun s5 () Bool (ite s4 true false))+[GOOD] (define-fun s3 () (Either Int Bool) (ite s2 s0 s1))+[GOOD] (define-fun s4 () Bool ((as is-Left Bool) s3)) [GOOD] ; --- delayedEqualities --- [GOOD] ; --- formula ----[GOOD] (assert s5)+[GOOD] (assert s4) [SEND] (check-sat) [RECV] sat [SEND] (get-value (s0))-[RECV] ((s0 (left_SBVEither 2)))+[RECV] ((s0 (Left 2))) [SEND] (get-value (s1))-[RECV] ((s1 (left_SBVEither 2)))+[RECV] ((s1 (Left 2))) [SEND] (get-value (s2)) [RECV] ((s2 false)) 
SBVTestSuite/GoldFiles/sumMergeEither2.gold view
@@ -9,34 +9,35 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums ----[GOOD] (declare-datatypes ((SBVEither 2)) ((par (T1 T2)-                                           ((left_SBVEither  (get_left_SBVEither  T1))-                                            (right_SBVEither (get_right_SBVEither T2))))))+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Either+[GOOD] (declare-datatype Either (par (a b) (+           (Left (getLeft_1 a))+           (Right (getRight_1 b))+       ))) [GOOD] ; --- literal constants --- [GOOD] ; --- top level inputs ----[GOOD] (declare-fun s0 () (SBVEither Int Bool))-[GOOD] (declare-fun s1 () (SBVEither Int Bool))+[GOOD] (declare-fun s0 () (Either Int Bool))+[GOOD] (declare-fun s1 () (Either Int Bool)) [GOOD] (declare-fun s2 () Bool) [GOOD] ; --- constant tables --- [GOOD] ; --- non-constant tables --- [GOOD] ; --- uninterpreted constants --- [GOOD] ; --- user defined functions --- [GOOD] ; --- assignments ----[GOOD] (define-fun s3 () (SBVEither Int Bool) (ite s2 s0 s1))-[GOOD] (define-fun s4 () Bool ((_ is (left_SBVEither (Int) (SBVEither Int Bool))) s3))-[GOOD] (define-fun s5 () Bool (ite s4 false true))+[GOOD] (define-fun s3 () (Either Int Bool) (ite s2 s0 s1))+[GOOD] (define-fun s4 () Bool ((as is-Right Bool) s3)) [GOOD] ; --- delayedEqualities --- [GOOD] ; --- formula ----[GOOD] (assert s5)+[GOOD] (assert s4) [SEND] (check-sat) [RECV] sat [SEND] (get-value (s0))-[RECV] ((s0 (right_SBVEither false)))+[RECV] ((s0 (Right false))) [SEND] (get-value (s1))-[RECV] ((s1 (right_SBVEither false)))+[RECV] ((s1 (Right false))) [SEND] (get-value (s2)) [RECV] ((s2 false)) 
SBVTestSuite/GoldFiles/sumMergeMaybe1.gold view
@@ -9,34 +9,35 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums ----[GOOD] (declare-datatypes ((SBVMaybe 1)) ((par (T)-                                           ((nothing_SBVMaybe)-                                            (just_SBVMaybe (get_just_SBVMaybe T))))))+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Maybe+[GOOD] (declare-datatype Maybe (par (a) (+           (Nothing)+           (Just (getJust_1 a))+       ))) [GOOD] ; --- literal constants --- [GOOD] ; --- top level inputs ----[GOOD] (declare-fun s0 () (SBVMaybe Int))-[GOOD] (declare-fun s1 () (SBVMaybe Int))+[GOOD] (declare-fun s0 () (Maybe Int))+[GOOD] (declare-fun s1 () (Maybe Int)) [GOOD] (declare-fun s2 () Bool) [GOOD] ; --- constant tables --- [GOOD] ; --- non-constant tables --- [GOOD] ; --- uninterpreted constants --- [GOOD] ; --- user defined functions --- [GOOD] ; --- assignments ----[GOOD] (define-fun s3 () (SBVMaybe Int) (ite s2 s0 s1))-[GOOD] (define-fun s4 () Bool ((_ is (nothing_SBVMaybe () (SBVMaybe Int))) s3))-[GOOD] (define-fun s5 () Bool (ite s4 true false))+[GOOD] (define-fun s3 () (Maybe Int) (ite s2 s0 s1))+[GOOD] (define-fun s4 () Bool ((as is-Nothing Bool) s3)) [GOOD] ; --- delayedEqualities --- [GOOD] ; --- formula ----[GOOD] (assert s5)+[GOOD] (assert s4) [SEND] (check-sat) [RECV] sat [SEND] (get-value (s0))-[RECV] ((s0 nothing_SBVMaybe))+[RECV] ((s0 Nothing)) [SEND] (get-value (s1))-[RECV] ((s1 nothing_SBVMaybe))+[RECV] ((s1 Nothing)) [SEND] (get-value (s2)) [RECV] ((s2 false)) 
SBVTestSuite/GoldFiles/sumMergeMaybe2.gold view
@@ -9,34 +9,35 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums ----[GOOD] (declare-datatypes ((SBVMaybe 1)) ((par (T)-                                           ((nothing_SBVMaybe)-                                            (just_SBVMaybe (get_just_SBVMaybe T))))))+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: Maybe+[GOOD] (declare-datatype Maybe (par (a) (+           (Nothing)+           (Just (getJust_1 a))+       ))) [GOOD] ; --- literal constants --- [GOOD] ; --- top level inputs ----[GOOD] (declare-fun s0 () (SBVMaybe Int))-[GOOD] (declare-fun s1 () (SBVMaybe Int))+[GOOD] (declare-fun s0 () (Maybe Int))+[GOOD] (declare-fun s1 () (Maybe Int)) [GOOD] (declare-fun s2 () Bool) [GOOD] ; --- constant tables --- [GOOD] ; --- non-constant tables --- [GOOD] ; --- uninterpreted constants --- [GOOD] ; --- user defined functions --- [GOOD] ; --- assignments ----[GOOD] (define-fun s3 () (SBVMaybe Int) (ite s2 s0 s1))-[GOOD] (define-fun s4 () Bool ((_ is (nothing_SBVMaybe () (SBVMaybe Int))) s3))-[GOOD] (define-fun s5 () Bool (ite s4 false true))+[GOOD] (define-fun s3 () (Maybe Int) (ite s2 s0 s1))+[GOOD] (define-fun s4 () Bool ((as is-Just Bool) s3)) [GOOD] ; --- delayedEqualities --- [GOOD] ; --- formula ----[GOOD] (assert s5)+[GOOD] (assert s4) [SEND] (check-sat) [RECV] sat [SEND] (get-value (s0))-[RECV] ((s0 (just_SBVMaybe 2)))+[RECV] ((s0 (Just 2))) [SEND] (get-value (s1))-[RECV] ((s1 (just_SBVMaybe 2)))+[RECV] ((s1 (Just 2))) [SEND] (get-value (s2)) [RECV] ((s2 false)) 
+ SBVTestSuite/GoldFiles/tpCache_alias.gold view
@@ -0,0 +1,3 @@+Lemma: nameA        Q.E.D.+Lemma: nameB        Q.E.D.+Lemma: nameC        Q.E.D. [Cached] (a.k.a. nameA, nameB)
+ SBVTestSuite/GoldFiles/tpCache_barFail.gold view
@@ -0,0 +1,4 @@+Lemma: foo+*** Failed to prove foo.+Falsifiable. Counter-example:+  x = 0 :: Integer
+ SBVTestSuite/GoldFiles/tpCache_calcCollapse.gold view
@@ -0,0 +1,4 @@+Lemma: addZero+  Step: 1           Q.E.D.+  Result:           Q.E.D.+Lemma: addZero      Q.E.D. [Cached]
+ SBVTestSuite/GoldFiles/tpCache_fooFail.gold view
@@ -0,0 +1,4 @@+Lemma: foo+*** Failed to prove foo.+Falsifiable. Counter-example:+  x = 0 :: Integer
+ SBVTestSuite/GoldFiles/tpCache_hit.gold view
@@ -0,0 +1,2 @@+Lemma: fact         Q.E.D.+Lemma: fact         Q.E.D. [Cached]
+ SBVTestSuite/GoldFiles/tpCache_miss.gold view
@@ -0,0 +1,1 @@+Lemma: fact         Q.E.D.
+ SBVTestSuite/GoldFiles/tpCache_nested.gold view
@@ -0,0 +1,3 @@+Lemma: inner        Q.E.D.+Lemma: outer        Q.E.D.+Lemma: outer        Q.E.D. [Cached] (a.k.a. inner)
+ SBVTestSuite/GoldFiles/tpCache_recallFail.gold view
@@ -0,0 +1,4 @@+Lemma: bad+*** Failed to prove bad.+Falsifiable. Counter-example:+  x = 0 :: Integer
+ SBVTestSuite/GoldFiles/tpCache_statsHit.gold view
@@ -0,0 +1,4 @@+Lemma: addZero+  Step: 1           Q.E.D.+  Result:           Q.E.D.+Lemma: addZero      Q.E.D. [Cached]
+ SBVTestSuite/GoldFiles/tpCache_statsMiss.gold view
@@ -0,0 +1,3 @@+Lemma: addZero+  Step: 1           Q.E.D.+  Result:           Q.E.D.
+ SBVTestSuite/GoldFiles/tpCache_statsNested.gold view
@@ -0,0 +1,4 @@+Lemma: inner        Q.E.D.+Lemma: outer        Q.E.D.+Lemma: inner        Q.E.D. [Cached] (a.k.a. outer)+Lemma: outer        Q.E.D. [Cached] (a.k.a. inner)
SBVTestSuite/GoldFiles/tuple_enum.gold view
@@ -9,22 +9,23 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts ----[GOOD] (declare-datatypes ((E 0)) (((A) (B) (C))))-[GOOD] (define-fun E_constrIndex ((x E)) Int-          (ite (= x A) 0 (ite (= x B) 1 2))-       ) [GOOD] ; --- tuples --- [GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)                                            ((mkSBVTuple2 (proj_1_SBVTuple2 T1)                                                          (proj_2_SBVTuple2 T2)))))) [GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] ; User defined ADT: E+[GOOD] (declare-datatype E (+           (A)+           (B)+           (C)+       )) [GOOD] ; --- literal constants --- [GOOD] (define-fun s3 () Int 1)-[GOOD] (define-fun s6 () (Seq Bool) (seq.unit true)) [GOOD] (define-fun s11 () Int 3) [GOOD] (define-fun s13 () Int 2)-[GOOD] (define-fun s16 () E C)+[GOOD] (define-fun s16 () E (as C E)) [GOOD] (define-fun s20 () Int 6) [GOOD] (define-fun s22 () Int 4) [GOOD] ; --- top level inputs ---@@ -38,6 +39,7 @@ [GOOD] (define-fun s2 () Bool (not s1)) [GOOD] (define-fun s4 () (SBVTuple2 E (Seq Bool)) (seq.nth s0 s3)) [GOOD] (define-fun s5 () (Seq Bool) (proj_2_SBVTuple2 s4))+[GOOD] (define-fun s6 () (Seq Bool) (seq.unit true)) [GOOD] (define-fun s7 () (Seq Bool) (seq.unit s1)) [GOOD] (define-fun s8 () (Seq Bool) (seq.++ s6 s7)) [GOOD] (define-fun s9 () Bool (= s5 s8))@@ -67,10 +69,10 @@                                                          (proj_3_SBVTuple3 T3)))))) [GOOD] (declare-fun s24 () (SBVTuple2 (_ BitVec 8) (SBVTuple3 E String Int))) [GOOD] (assert (= 1 (str.len (proj_2_SBVTuple3 (proj_2_SBVTuple2 s24)))))-[GOOD] (define-fun s25 () (SBVTuple2 (_ BitVec 8) (SBVTuple3 E String Int)) (mkSBVTuple2 #x05 (mkSBVTuple3 C (_ char #x41) 812)))+[GOOD] (define-fun s25 () (SBVTuple2 (_ BitVec 8) (SBVTuple3 E String Int)) (mkSBVTuple2 #x05 (mkSBVTuple3 (as C E) (_ char #x41) 812))) [GOOD] (define-fun s26 () Bool (= s24 s25)) [GOOD] (assert s26)-[GOOD] (define-fun s27 () (Seq (SBVTuple2 E (Seq Bool))) (seq.++ (seq.unit (mkSBVTuple2 B (as seq.empty (Seq Bool)))) (seq.unit (mkSBVTuple2 A (seq.++ (seq.unit true) (seq.unit false)))) (seq.unit (mkSBVTuple2 C (seq.++ (seq.unit false) (seq.unit false) (seq.unit false) (seq.unit false) (seq.unit true) (seq.unit false))))))+[GOOD] (define-fun s27 () (Seq (SBVTuple2 E (Seq Bool))) (seq.++ (seq.unit (mkSBVTuple2 (as B E) (as seq.empty (Seq Bool)))) (seq.unit (mkSBVTuple2 (as A E) (seq.++ (seq.unit true) (seq.unit false)))) (seq.unit (mkSBVTuple2 (as C E) (seq.++ (seq.unit false) (seq.unit false) (seq.unit false) (seq.unit false) (seq.unit true) (seq.unit false)))))) [GOOD] (define-fun s28 () Bool (= s0 s27)) [GOOD] (assert s28) [SEND] (check-sat)
SBVTestSuite/GoldFiles/tuple_list.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)                                            ((mkSBVTuple2 (proj_1_SBVTuple2 T1)
SBVTestSuite/GoldFiles/tuple_nested.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)                                            ((mkSBVTuple2 (proj_1_SBVTuple2 T1)
SBVTestSuite/GoldFiles/tuple_swap.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] (declare-datatypes ((SBVTuple3 3)) ((par (T1 T2 T3)                                            ((mkSBVTuple3 (proj_1_SBVTuple3 T1)
SBVTestSuite/GoldFiles/tuple_twoTwo.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)                                            ((mkSBVTuple2 (proj_1_SBVTuple2 T1)
SBVTestSuite/GoldFiles/tuple_unequal.gold view
@@ -9,7 +9,6 @@ [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def  true      ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] (declare-datatypes ((SBVTuple2 2)) ((par (T1 T2)                                            ((mkSBVTuple2 (proj_1_SBVTuple2 T1)
SBVTestSuite/GoldFiles/uiSat_test1.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; NB. User specified.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/uiSat_test2.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; NB. User specified.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---@@ -90,10 +89,10 @@ [SEND] (get-value (q2)) [RECV] ((q2 (store (store ((as const (Array Bool Bool Bool)) false) false true true)               true-              true+              false               true))) [GOOD] (define-fun q2_model5 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 true) (= x!1 true)) true+          (ite (and (= x!0 true) (= x!1 false)) true           (ite (and (= x!0 false) (= x!1 true)) true           false))        )@@ -107,10 +106,14 @@ [SEND] (check-sat) [RECV] sat [SEND] (get-value (q2))-[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) false) true true true)))+[RECV] ((q2 (store (store ((as const (Array Bool Bool Bool)) false) true false true)+              true+              true+              true))) [GOOD] (define-fun q2_model6 ((x!0 Bool) (x!1 Bool)) Bool           (ite (and (= x!0 true) (= x!1 true)) true-          false)+          (ite (and (= x!0 true) (= x!1 false)) true+          false))        ) [GOOD] (define-fun q2_model6_reject () Bool           (exists ((x!0 Bool) (x!1 Bool))@@ -122,14 +125,10 @@ [SEND] (check-sat) [RECV] sat [SEND] (get-value (q2))-[RECV] ((q2 (store (store ((as const (Array Bool Bool Bool)) false) false true true)-              true-              false-              true)))+[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) true) false true false))) [GOOD] (define-fun q2_model7 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 true) (= x!1 false)) true-          (ite (and (= x!0 false) (= x!1 true)) true-          false))+          (ite (and (= x!0 false) (= x!1 true)) false+          true)        ) [GOOD] (define-fun q2_model7_reject () Bool           (exists ((x!0 Bool) (x!1 Bool))@@ -141,10 +140,14 @@ [SEND] (check-sat) [RECV] sat [SEND] (get-value (q2))-[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) false) true false true)))+[RECV] ((q2 (store (store ((as const (Array Bool Bool Bool)) true) false true false)+              true+              true+              false))) [GOOD] (define-fun q2_model8 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 true) (= x!1 false)) true-          false)+          (ite (and (= x!0 true) (= x!1 true)) false+          (ite (and (= x!0 false) (= x!1 true)) false+          true))        ) [GOOD] (define-fun q2_model8_reject () Bool           (exists ((x!0 Bool) (x!1 Bool))@@ -156,14 +159,10 @@ [SEND] (check-sat) [RECV] sat [SEND] (get-value (q2))-[RECV] ((q2 (store (store ((as const (Array Bool Bool Bool)) false) true false true)-              true-              true-              true)))+[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) true) true true false))) [GOOD] (define-fun q2_model9 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 true) (= x!1 true)) true-          (ite (and (= x!0 true) (= x!1 false)) true-          false))+          (ite (and (= x!0 true) (= x!1 true)) false+          true)        ) [GOOD] (define-fun q2_model9_reject () Bool           (exists ((x!0 Bool) (x!1 Bool))@@ -175,10 +174,10 @@ [SEND] (check-sat) [RECV] sat [SEND] (get-value (q2))-[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) false) false false true)))+[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) true) true false false))) [GOOD] (define-fun q2_model10 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 false) (= x!1 false)) true-          false)+          (ite (and (= x!0 true) (= x!1 false)) false+          true)        ) [GOOD] (define-fun q2_model10_reject () Bool           (exists ((x!0 Bool) (x!1 Bool))@@ -190,14 +189,14 @@ [SEND] (check-sat) [RECV] sat [SEND] (get-value (q2))-[RECV] ((q2 (store (store ((as const (Array Bool Bool Bool)) false) false false true)+[RECV] ((q2 (store (store ((as const (Array Bool Bool Bool)) true) true false false)               true               true-              true)))+              false))) [GOOD] (define-fun q2_model11 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 true) (= x!1 true)) true-          (ite (and (= x!0 false) (= x!1 false)) true-          false))+          (ite (and (= x!0 true) (= x!1 true)) false+          (ite (and (= x!0 true) (= x!1 false)) false+          true))        ) [GOOD] (define-fun q2_model11_reject () Bool           (exists ((x!0 Bool) (x!1 Bool))@@ -209,13 +208,13 @@ [SEND] (check-sat) [RECV] sat [SEND] (get-value (q2))-[RECV] ((q2 (store (store ((as const (Array Bool Bool Bool)) true) false true false)-              true+[RECV] ((q2 (store (store ((as const (Array Bool Bool Bool)) true) true false false)+              false               true               false))) [GOOD] (define-fun q2_model12 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 true) (= x!1 true)) false           (ite (and (= x!0 false) (= x!1 true)) false+          (ite (and (= x!0 true) (= x!1 false)) false           true))        ) [GOOD] (define-fun q2_model12_reject () Bool@@ -228,10 +227,10 @@ [SEND] (check-sat) [RECV] sat [SEND] (get-value (q2))-[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) true) false true false)))+[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) false) false false true))) [GOOD] (define-fun q2_model13 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 false) (= x!1 true)) false-          true)+          (ite (and (= x!0 false) (= x!1 false)) true+          false)        ) [GOOD] (define-fun q2_model13_reject () Bool           (exists ((x!0 Bool) (x!1 Bool))@@ -243,10 +242,14 @@ [SEND] (check-sat) [RECV] sat [SEND] (get-value (q2))-[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) true) true false false)))+[RECV] ((q2 (store (store ((as const (Array Bool Bool Bool)) true) true false false)+              false+              false+              false))) [GOOD] (define-fun q2_model14 ((x!0 Bool) (x!1 Bool)) Bool+          (ite (and (= x!0 false) (= x!1 false)) false           (ite (and (= x!0 true) (= x!1 false)) false-          true)+          true))        ) [GOOD] (define-fun q2_model14_reject () Bool           (exists ((x!0 Bool) (x!1 Bool))@@ -258,14 +261,10 @@ [SEND] (check-sat) [RECV] sat [SEND] (get-value (q2))-[RECV] ((q2 (store (store ((as const (Array Bool Bool Bool)) true) true false false)-              true-              true-              false)))+[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) false) true true true))) [GOOD] (define-fun q2_model15 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 true) (= x!1 true)) false-          (ite (and (= x!0 true) (= x!1 false)) false-          true))+          (ite (and (= x!0 true) (= x!1 true)) true+          false)        ) [GOOD] (define-fun q2_model15_reject () Bool           (exists ((x!0 Bool) (x!1 Bool))@@ -277,10 +276,10 @@ [SEND] (check-sat) [RECV] sat [SEND] (get-value (q2))-[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) true) true true false)))+[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) false) true false true))) [GOOD] (define-fun q2_model16 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 true) (= x!1 true)) false-          true)+          (ite (and (= x!0 true) (= x!1 false)) true+          false)        ) [GOOD] (define-fun q2_model16_reject () Bool           (exists ((x!0 Bool) (x!1 Bool))@@ -296,58 +295,58 @@  RESULT: Solution #1:   q2 :: Bool -> Bool -> Bool-  q2 True True = False-  q2 _    _    = True+  q2 True False = True+  q2 _    _     = False Solution #2:   q2 :: Bool -> Bool -> Bool-  q2 True True  = False-  q2 True False = False-  q2 _    _     = True+  q2 True True = True+  q2 _    _    = False Solution #3:   q2 :: Bool -> Bool -> Bool-  q2 True False = False-  q2 _    _     = True+  q2 False False = False+  q2 True  False = False+  q2 _     _     = True Solution #4:   q2 :: Bool -> Bool -> Bool-  q2 False True = False-  q2 _     _    = True+  q2 False False = True+  q2 _     _     = False Solution #5:   q2 :: Bool -> Bool -> Bool-  q2 True  True = False-  q2 False True = False-  q2 _     _    = True+  q2 False True  = False+  q2 True  False = False+  q2 _     _     = True Solution #6:   q2 :: Bool -> Bool -> Bool-  q2 True  True  = True-  q2 False False = True-  q2 _     _     = False+  q2 True True  = False+  q2 True False = False+  q2 _    _     = True Solution #7:   q2 :: Bool -> Bool -> Bool-  q2 False False = True-  q2 _     _     = False+  q2 True False = False+  q2 _    _     = True Solution #8:   q2 :: Bool -> Bool -> Bool-  q2 True True  = True-  q2 True False = True-  q2 _    _     = False+  q2 True True = False+  q2 _    _    = True Solution #9:   q2 :: Bool -> Bool -> Bool-  q2 True False = True-  q2 _    _     = False+  q2 True  True = False+  q2 False True = False+  q2 _     _    = True Solution #10:   q2 :: Bool -> Bool -> Bool-  q2 True  False = True-  q2 False True  = True-  q2 _     _     = False+  q2 False True = False+  q2 _     _    = True Solution #11:   q2 :: Bool -> Bool -> Bool-  q2 True True = True-  q2 _    _    = False+  q2 True True  = True+  q2 True False = True+  q2 _    _     = False Solution #12:   q2 :: Bool -> Bool -> Bool-  q2 True  True = True-  q2 False True = True-  q2 _     _    = False+  q2 True  False = True+  q2 False True  = True+  q2 _     _     = False Solution #13:   q2 :: Bool -> Bool -> Bool   q2 False True = True
SBVTestSuite/GoldFiles/uiSat_test3.gold view
@@ -6,2361 +6,2360 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; NB. User specified.-[GOOD] ; --- uninterpreted sorts ----[GOOD] ; --- tuples ----[GOOD] ; --- sums ----[GOOD] ; --- literal constants ----[GOOD] ; --- top level inputs ----[GOOD] (declare-fun s0 () Bool) ; tracks user variable "__internal_sbv_s0"-[GOOD] (declare-fun s2 () Bool) ; tracks user variable "__internal_sbv_s2"-[GOOD] (declare-fun s3 () Bool) ; tracks user variable "__internal_sbv_s3"-[GOOD] ; --- constant tables ----[GOOD] ; --- non-constant tables ----[GOOD] ; --- uninterpreted constants ----[GOOD] (declare-fun q1 (Bool) Bool)-[GOOD] (declare-fun q2 (Bool Bool) Bool)-[GOOD] ; --- user defined functions ----[GOOD] ; --- assignments ----[GOOD] (define-fun s1 () Bool (q1 s0))-[GOOD] (define-fun s4 () Bool (q2 s2 s3))-[GOOD] ; --- delayedEqualities ----[GOOD] ; --- formula ----*** Checking Satisfiability, all solutions..-[GOOD] (set-option :pp.max_depth      4294967295)-[GOOD] (set-option :pp.min_alias_size 4294967295)-[GOOD] (set-option :model.inline_def  true      )-Looking for solution 1-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 (_ as-array q1)))-[SEND] (get-value (q2))-[RECV] ((q2 (_ as-array q2)))-[GOOD] (define-fun q1_model1 ((x!0 Bool)) Bool-          false-       )-[GOOD] (define-fun q1_model1_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1        x!0)-                            (q1_model1 x!0))))-[GOOD] (define-fun q2_model1 ((x!0 Bool) (x!1 Bool)) Bool-          false-       )-[GOOD] (define-fun q2_model1_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2        x!0 x!1)-                            (q2_model1 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_1 () Bool -               (or q1_model1_reject-                   q2_model1_reject-               ))-[GOOD] (assert uiFunRejector_model_1)-Looking for solution 2-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 ((as const (Array Bool Bool)) true)))-[SEND] (get-value (q2))-[RECV] ((q2 (_ as-array q2)))-[GOOD] (define-fun q1_model2 ((x!0 Bool)) Bool-          true-       )-[GOOD] (define-fun q1_model2_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1        x!0)-                            (q1_model2 x!0))))-[GOOD] (define-fun q2_model2 ((x!0 Bool) (x!1 Bool)) Bool-          false-       )-[GOOD] (define-fun q2_model2_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2        x!0 x!1)-                            (q2_model2 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_2 () Bool -               (or q1_model2_reject-                   q2_model2_reject-               ))-[GOOD] (assert uiFunRejector_model_2)-Looking for solution 3-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 ((as const (Array Bool Bool)) false)))-[SEND] (get-value (q2))-[RECV] ((q2 ((as const (Array Bool Bool Bool)) true)))-[GOOD] (define-fun q1_model3 ((x!0 Bool)) Bool-          false-       )-[GOOD] (define-fun q1_model3_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1        x!0)-                            (q1_model3 x!0))))-[GOOD] (define-fun q2_model3 ((x!0 Bool) (x!1 Bool)) Bool-          true-       )-[GOOD] (define-fun q2_model3_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2        x!0 x!1)-                            (q2_model3 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_3 () Bool -               (or q1_model3_reject-                   q2_model3_reject-               ))-[GOOD] (assert uiFunRejector_model_3)-Looking for solution 4-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 ((as const (Array Bool Bool)) false)))-[SEND] (get-value (q2))-[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) true) true false false)))-[GOOD] (define-fun q1_model4 ((x!0 Bool)) Bool-          false-       )-[GOOD] (define-fun q1_model4_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1        x!0)-                            (q1_model4 x!0))))-[GOOD] (define-fun q2_model4 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 true) (= x!1 false)) false-          true)-       )-[GOOD] (define-fun q2_model4_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2        x!0 x!1)-                            (q2_model4 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_4 () Bool -               (or q1_model4_reject-                   q2_model4_reject-               ))-[GOOD] (assert uiFunRejector_model_4)-Looking for solution 5-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 ((as const (Array Bool Bool)) false)))-[SEND] (get-value (q2))-[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) false) false false true)))-[GOOD] (define-fun q1_model5 ((x!0 Bool)) Bool-          false-       )-[GOOD] (define-fun q1_model5_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1        x!0)-                            (q1_model5 x!0))))-[GOOD] (define-fun q2_model5 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 false) (= x!1 false)) true-          false)-       )-[GOOD] (define-fun q2_model5_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2        x!0 x!1)-                            (q2_model5 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_5 () Bool -               (or q1_model5_reject-                   q2_model5_reject-               ))-[GOOD] (assert uiFunRejector_model_5)-Looking for solution 6-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 ((as const (Array Bool Bool)) false)))-[SEND] (get-value (q2))-[RECV] ((q2 (store (store ((as const (Array Bool Bool Bool)) false) false false true)-              true-              true-              true)))-[GOOD] (define-fun q1_model6 ((x!0 Bool)) Bool-          false-       )-[GOOD] (define-fun q1_model6_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1        x!0)-                            (q1_model6 x!0))))-[GOOD] (define-fun q2_model6 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 true) (= x!1 true)) true-          (ite (and (= x!0 false) (= x!1 false)) true-          false))-       )-[GOOD] (define-fun q2_model6_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2        x!0 x!1)-                            (q2_model6 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_6 () Bool -               (or q1_model6_reject-                   q2_model6_reject-               ))-[GOOD] (assert uiFunRejector_model_6)-Looking for solution 7-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 (lambda ((x!1 Bool)) x!1)))-[SEND] (get-value (q2))-[RECV] ((q2 (store (store ((as const (Array Bool Bool Bool)) false) false false true)-              true-              true-              true)))-[GOOD] (define-fun q1_model7 ((x!0 Bool)) Bool-          (ite (and (= x!0 true)) true-          false)-       )-[GOOD] (define-fun q1_model7_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1        x!0)-                            (q1_model7 x!0))))-[GOOD] (define-fun q2_model7 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 true) (= x!1 true)) true-          (ite (and (= x!0 false) (= x!1 false)) true-          false))-       )-[GOOD] (define-fun q2_model7_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2        x!0 x!1)-                            (q2_model7 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_7 () Bool -               (or q1_model7_reject-                   q2_model7_reject-               ))-[GOOD] (assert uiFunRejector_model_7)-Looking for solution 8-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 (lambda ((x!1 Bool)) x!1)))-[SEND] (get-value (q2))-[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) true) true false false)))-[GOOD] (define-fun q1_model8 ((x!0 Bool)) Bool-          (ite (and (= x!0 true)) true-          false)-       )-[GOOD] (define-fun q1_model8_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1        x!0)-                            (q1_model8 x!0))))-[GOOD] (define-fun q2_model8 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 true) (= x!1 false)) false-          true)-       )-[GOOD] (define-fun q2_model8_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2        x!0 x!1)-                            (q2_model8 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_8 () Bool -               (or q1_model8_reject-                   q2_model8_reject-               ))-[GOOD] (assert uiFunRejector_model_8)-Looking for solution 9-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 (store ((as const (Array Bool Bool)) true) true false)))-[SEND] (get-value (q2))-[RECV] ((q2 (store (store ((as const (Array Bool Bool Bool)) false) false false true)-              true-              true-              true)))-[GOOD] (define-fun q1_model9 ((x!0 Bool)) Bool-          (ite (and (= x!0 true)) false-          true)-       )-[GOOD] (define-fun q1_model9_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1        x!0)-                            (q1_model9 x!0))))-[GOOD] (define-fun q2_model9 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 true) (= x!1 true)) true-          (ite (and (= x!0 false) (= x!1 false)) true-          false))-       )-[GOOD] (define-fun q2_model9_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2        x!0 x!1)-                            (q2_model9 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_9 () Bool -               (or q1_model9_reject-                   q2_model9_reject-               ))-[GOOD] (assert uiFunRejector_model_9)-Looking for solution 10-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 ((as const (Array Bool Bool)) true)))-[SEND] (get-value (q2))-[RECV] ((q2 (store (store ((as const (Array Bool Bool Bool)) false) false false true)-              true-              true-              true)))-[GOOD] (define-fun q1_model10 ((x!0 Bool)) Bool-          true-       )-[GOOD] (define-fun q1_model10_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1         x!0)-                            (q1_model10 x!0))))-[GOOD] (define-fun q2_model10 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 true) (= x!1 true)) true-          (ite (and (= x!0 false) (= x!1 false)) true-          false))-       )-[GOOD] (define-fun q2_model10_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2         x!0 x!1)-                            (q2_model10 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_10 () Bool -               (or q1_model10_reject-                   q2_model10_reject-               ))-[GOOD] (assert uiFunRejector_model_10)-Looking for solution 11-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 ((as const (Array Bool Bool)) false)))-[SEND] (get-value (q2))-[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) true) false true false)))-[GOOD] (define-fun q1_model11 ((x!0 Bool)) Bool-          false-       )-[GOOD] (define-fun q1_model11_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1         x!0)-                            (q1_model11 x!0))))-[GOOD] (define-fun q2_model11 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 false) (= x!1 true)) false-          true)-       )-[GOOD] (define-fun q2_model11_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2         x!0 x!1)-                            (q2_model11 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_11 () Bool -               (or q1_model11_reject-                   q2_model11_reject-               ))-[GOOD] (assert uiFunRejector_model_11)-Looking for solution 12-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 (lambda ((x!1 Bool)) x!1)))-[SEND] (get-value (q2))-[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) true) false true false)))-[GOOD] (define-fun q1_model12 ((x!0 Bool)) Bool-          (ite (and (= x!0 true)) true-          false)-       )-[GOOD] (define-fun q1_model12_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1         x!0)-                            (q1_model12 x!0))))-[GOOD] (define-fun q2_model12 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 false) (= x!1 true)) false-          true)-       )-[GOOD] (define-fun q2_model12_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2         x!0 x!1)-                            (q2_model12 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_12 () Bool -               (or q1_model12_reject-                   q2_model12_reject-               ))-[GOOD] (assert uiFunRejector_model_12)-Looking for solution 13-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 (store ((as const (Array Bool Bool)) false) false true)))-[SEND] (get-value (q2))-[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) true) false true false)))-[GOOD] (define-fun q1_model13 ((x!0 Bool)) Bool-          (ite (and (= x!0 false)) true-          false)-       )-[GOOD] (define-fun q1_model13_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1         x!0)-                            (q1_model13 x!0))))-[GOOD] (define-fun q2_model13 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 false) (= x!1 true)) false-          true)-       )-[GOOD] (define-fun q2_model13_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2         x!0 x!1)-                            (q2_model13 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_13 () Bool -               (or q1_model13_reject-                   q2_model13_reject-               ))-[GOOD] (assert uiFunRejector_model_13)-Looking for solution 14-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 ((as const (Array Bool Bool)) true)))-[SEND] (get-value (q2))-[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) true) false true false)))-[GOOD] (define-fun q1_model14 ((x!0 Bool)) Bool-          true-       )-[GOOD] (define-fun q1_model14_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1         x!0)-                            (q1_model14 x!0))))-[GOOD] (define-fun q2_model14 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 false) (= x!1 true)) false-          true)-       )-[GOOD] (define-fun q2_model14_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2         x!0 x!1)-                            (q2_model14 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_14 () Bool -               (or q1_model14_reject-                   q2_model14_reject-               ))-[GOOD] (assert uiFunRejector_model_14)-Looking for solution 15-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 (lambda ((x!1 Bool)) x!1)))-[SEND] (get-value (q2))-[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) false) false false true)))-[GOOD] (define-fun q1_model15 ((x!0 Bool)) Bool-          (ite (and (= x!0 true)) true-          false)-       )-[GOOD] (define-fun q1_model15_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1         x!0)-                            (q1_model15 x!0))))-[GOOD] (define-fun q2_model15 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 false) (= x!1 false)) true-          false)-       )-[GOOD] (define-fun q2_model15_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2         x!0 x!1)-                            (q2_model15 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_15 () Bool -               (or q1_model15_reject-                   q2_model15_reject-               ))-[GOOD] (assert uiFunRejector_model_15)-Looking for solution 16-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 (lambda ((x!1 Bool)) x!1)))-[SEND] (get-value (q2))-[RECV] ((q2 (store (store ((as const (Array Bool Bool Bool)) false) false false true)-              true-              false-              true)))-[GOOD] (define-fun q1_model16 ((x!0 Bool)) Bool-          (ite (and (= x!0 true)) true-          false)-       )-[GOOD] (define-fun q1_model16_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1         x!0)-                            (q1_model16 x!0))))-[GOOD] (define-fun q2_model16 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 true) (= x!1 false)) true-          (ite (and (= x!0 false) (= x!1 false)) true-          false))-       )-[GOOD] (define-fun q2_model16_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2         x!0 x!1)-                            (q2_model16 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_16 () Bool -               (or q1_model16_reject-                   q2_model16_reject-               ))-[GOOD] (assert uiFunRejector_model_16)-Looking for solution 17-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 ((as const (Array Bool Bool)) false)))-[SEND] (get-value (q2))-[RECV] ((q2 (store (store ((as const (Array Bool Bool Bool)) true) false true false)-              true-              true-              false)))-[GOOD] (define-fun q1_model17 ((x!0 Bool)) Bool-          false-       )-[GOOD] (define-fun q1_model17_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1         x!0)-                            (q1_model17 x!0))))-[GOOD] (define-fun q2_model17 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 true) (= x!1 true)) false-          (ite (and (= x!0 false) (= x!1 true)) false-          true))-       )-[GOOD] (define-fun q2_model17_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2         x!0 x!1)-                            (q2_model17 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_17 () Bool -               (or q1_model17_reject-                   q2_model17_reject-               ))-[GOOD] (assert uiFunRejector_model_17)-Looking for solution 18-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 (store ((as const (Array Bool Bool)) true) true false)))-[SEND] (get-value (q2))-[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) false) false false true)))-[GOOD] (define-fun q1_model18 ((x!0 Bool)) Bool-          (ite (and (= x!0 true)) false-          true)-       )-[GOOD] (define-fun q1_model18_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1         x!0)-                            (q1_model18 x!0))))-[GOOD] (define-fun q2_model18 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 false) (= x!1 false)) true-          false)-       )-[GOOD] (define-fun q2_model18_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2         x!0 x!1)-                            (q2_model18 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_18 () Bool -               (or q1_model18_reject-                   q2_model18_reject-               ))-[GOOD] (assert uiFunRejector_model_18)-Looking for solution 19-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 (store ((as const (Array Bool Bool)) false) false true)))-[SEND] (get-value (q2))-[RECV] ((q2 (store (store ((as const (Array Bool Bool Bool)) false) false false true)-              true-              false-              true)))-[GOOD] (define-fun q1_model19 ((x!0 Bool)) Bool-          (ite (and (= x!0 false)) true-          false)-       )-[GOOD] (define-fun q1_model19_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1         x!0)-                            (q1_model19 x!0))))-[GOOD] (define-fun q2_model19 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 true) (= x!1 false)) true-          (ite (and (= x!0 false) (= x!1 false)) true-          false))-       )-[GOOD] (define-fun q2_model19_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2         x!0 x!1)-                            (q2_model19 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_19 () Bool -               (or q1_model19_reject-                   q2_model19_reject-               ))-[GOOD] (assert uiFunRejector_model_19)-Looking for solution 20-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 (store ((as const (Array Bool Bool)) true) true false)))-[SEND] (get-value (q2))-[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) true) true false false)))-[GOOD] (define-fun q1_model20 ((x!0 Bool)) Bool-          (ite (and (= x!0 true)) false-          true)-       )-[GOOD] (define-fun q1_model20_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1         x!0)-                            (q1_model20 x!0))))-[GOOD] (define-fun q2_model20 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 true) (= x!1 false)) false-          true)-       )-[GOOD] (define-fun q2_model20_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2         x!0 x!1)-                            (q2_model20 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_20 () Bool -               (or q1_model20_reject-                   q2_model20_reject-               ))-[GOOD] (assert uiFunRejector_model_20)-Looking for solution 21-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 (store ((as const (Array Bool Bool)) true) true false)))-[SEND] (get-value (q2))-[RECV] ((q2 ((as const (Array Bool Bool Bool)) true)))-[GOOD] (define-fun q1_model21 ((x!0 Bool)) Bool-          (ite (and (= x!0 true)) false-          true)-       )-[GOOD] (define-fun q1_model21_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1         x!0)-                            (q1_model21 x!0))))-[GOOD] (define-fun q2_model21 ((x!0 Bool) (x!1 Bool)) Bool-          true-       )-[GOOD] (define-fun q2_model21_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2         x!0 x!1)-                            (q2_model21 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_21 () Bool -               (or q1_model21_reject-                   q2_model21_reject-               ))-[GOOD] (assert uiFunRejector_model_21)-Looking for solution 22-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 (lambda ((x!1 Bool)) x!1)))-[SEND] (get-value (q2))-[RECV] ((q2 ((as const (Array Bool Bool Bool)) true)))-[GOOD] (define-fun q1_model22 ((x!0 Bool)) Bool-          (ite (and (= x!0 true)) true-          false)-       )-[GOOD] (define-fun q1_model22_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1         x!0)-                            (q1_model22 x!0))))-[GOOD] (define-fun q2_model22 ((x!0 Bool) (x!1 Bool)) Bool-          true-       )-[GOOD] (define-fun q2_model22_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2         x!0 x!1)-                            (q2_model22 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_22 () Bool -               (or q1_model22_reject-                   q2_model22_reject-               ))-[GOOD] (assert uiFunRejector_model_22)-Looking for solution 23-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 ((as const (Array Bool Bool)) true)))-[SEND] (get-value (q2))-[RECV] ((q2 ((as const (Array Bool Bool Bool)) true)))-[GOOD] (define-fun q1_model23 ((x!0 Bool)) Bool-          true-       )-[GOOD] (define-fun q1_model23_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1         x!0)-                            (q1_model23 x!0))))-[GOOD] (define-fun q2_model23 ((x!0 Bool) (x!1 Bool)) Bool-          true-       )-[GOOD] (define-fun q2_model23_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2         x!0 x!1)-                            (q2_model23 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_23 () Bool -               (or q1_model23_reject-                   q2_model23_reject-               ))-[GOOD] (assert uiFunRejector_model_23)-Looking for solution 24-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 (lambda ((x!1 Bool)) x!1)))-[SEND] (get-value (q2))-[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) true) true true false)))-[GOOD] (define-fun q1_model24 ((x!0 Bool)) Bool-          (ite (and (= x!0 true)) true-          false)-       )-[GOOD] (define-fun q1_model24_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1         x!0)-                            (q1_model24 x!0))))-[GOOD] (define-fun q2_model24 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 true) (= x!1 true)) false-          true)-       )-[GOOD] (define-fun q2_model24_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2         x!0 x!1)-                            (q2_model24 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_24 () Bool -               (or q1_model24_reject-                   q2_model24_reject-               ))-[GOOD] (assert uiFunRejector_model_24)-Looking for solution 25-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 ((as const (Array Bool Bool)) false)))-[SEND] (get-value (q2))-[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) true) true true false)))-[GOOD] (define-fun q1_model25 ((x!0 Bool)) Bool-          false-       )-[GOOD] (define-fun q1_model25_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1         x!0)-                            (q1_model25 x!0))))-[GOOD] (define-fun q2_model25 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 true) (= x!1 true)) false-          true)-       )-[GOOD] (define-fun q2_model25_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2         x!0 x!1)-                            (q2_model25 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_25 () Bool -               (or q1_model25_reject-                   q2_model25_reject-               ))-[GOOD] (assert uiFunRejector_model_25)-Looking for solution 26-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 (store ((as const (Array Bool Bool)) false) false true)))-[SEND] (get-value (q2))-[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) true) true true false)))-[GOOD] (define-fun q1_model26 ((x!0 Bool)) Bool-          (ite (and (= x!0 false)) true-          false)-       )-[GOOD] (define-fun q1_model26_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1         x!0)-                            (q1_model26 x!0))))-[GOOD] (define-fun q2_model26 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 true) (= x!1 true)) false-          true)-       )-[GOOD] (define-fun q2_model26_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2         x!0 x!1)-                            (q2_model26 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_26 () Bool -               (or q1_model26_reject-                   q2_model26_reject-               ))-[GOOD] (assert uiFunRejector_model_26)-Looking for solution 27-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 (lambda ((x!1 Bool)) x!1)))-[SEND] (get-value (q2))-[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) false) true true true)))-[GOOD] (define-fun q1_model27 ((x!0 Bool)) Bool-          (ite (and (= x!0 true)) true-          false)-       )-[GOOD] (define-fun q1_model27_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1         x!0)-                            (q1_model27 x!0))))-[GOOD] (define-fun q2_model27 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 true) (= x!1 true)) true-          false)-       )-[GOOD] (define-fun q2_model27_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2         x!0 x!1)-                            (q2_model27 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_27 () Bool -               (or q1_model27_reject-                   q2_model27_reject-               ))-[GOOD] (assert uiFunRejector_model_27)-Looking for solution 28-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 (store ((as const (Array Bool Bool)) true) true false)))-[SEND] (get-value (q2))-[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) true) false false false)))-[GOOD] (define-fun q1_model28 ((x!0 Bool)) Bool-          (ite (and (= x!0 true)) false-          true)-       )-[GOOD] (define-fun q1_model28_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1         x!0)-                            (q1_model28 x!0))))-[GOOD] (define-fun q2_model28 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 false) (= x!1 false)) false-          true)-       )-[GOOD] (define-fun q2_model28_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2         x!0 x!1)-                            (q2_model28 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_28 () Bool -               (or q1_model28_reject-                   q2_model28_reject-               ))-[GOOD] (assert uiFunRejector_model_28)-Looking for solution 29-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 (lambda ((x!1 Bool)) x!1)))-[SEND] (get-value (q2))-[RECV] ((q2 ((as const (Array Bool Bool Bool)) false)))-[GOOD] (define-fun q1_model29 ((x!0 Bool)) Bool-          (ite (and (= x!0 true)) true-          false)-       )-[GOOD] (define-fun q1_model29_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1         x!0)-                            (q1_model29 x!0))))-[GOOD] (define-fun q2_model29 ((x!0 Bool) (x!1 Bool)) Bool-          false-       )-[GOOD] (define-fun q2_model29_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2         x!0 x!1)-                            (q2_model29 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_29 () Bool -               (or q1_model29_reject-                   q2_model29_reject-               ))-[GOOD] (assert uiFunRejector_model_29)-Looking for solution 30-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 (lambda ((x!1 Bool)) x!1)))-[SEND] (get-value (q2))-[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) false) false true true)))-[GOOD] (define-fun q1_model30 ((x!0 Bool)) Bool-          (ite (and (= x!0 true)) true-          false)-       )-[GOOD] (define-fun q1_model30_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1         x!0)-                            (q1_model30 x!0))))-[GOOD] (define-fun q2_model30 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 false) (= x!1 true)) true-          false)-       )-[GOOD] (define-fun q2_model30_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2         x!0 x!1)-                            (q2_model30 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_30 () Bool -               (or q1_model30_reject-                   q2_model30_reject-               ))-[GOOD] (assert uiFunRejector_model_30)-Looking for solution 31-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 (lambda ((x!1 Bool)) x!1)))-[SEND] (get-value (q2))-[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) true) false false false)))-[GOOD] (define-fun q1_model31 ((x!0 Bool)) Bool-          (ite (and (= x!0 true)) true-          false)-       )-[GOOD] (define-fun q1_model31_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1         x!0)-                            (q1_model31 x!0))))-[GOOD] (define-fun q2_model31 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 false) (= x!1 false)) false-          true)-       )-[GOOD] (define-fun q2_model31_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2         x!0 x!1)-                            (q2_model31 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_31 () Bool -               (or q1_model31_reject-                   q2_model31_reject-               ))-[GOOD] (assert uiFunRejector_model_31)-Looking for solution 32-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 ((as const (Array Bool Bool)) false)))-[SEND] (get-value (q2))-[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) false) true false true)))-[GOOD] (define-fun q1_model32 ((x!0 Bool)) Bool-          false-       )-[GOOD] (define-fun q1_model32_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1         x!0)-                            (q1_model32 x!0))))-[GOOD] (define-fun q2_model32 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 true) (= x!1 false)) true-          false)-       )-[GOOD] (define-fun q2_model32_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2         x!0 x!1)-                            (q2_model32 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_32 () Bool -               (or q1_model32_reject-                   q2_model32_reject-               ))-[GOOD] (assert uiFunRejector_model_32)-Looking for solution 33-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 ((as const (Array Bool Bool)) false)))-[SEND] (get-value (q2))-[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) true) false false false)))-[GOOD] (define-fun q1_model33 ((x!0 Bool)) Bool-          false-       )-[GOOD] (define-fun q1_model33_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1         x!0)-                            (q1_model33 x!0))))-[GOOD] (define-fun q2_model33 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 false) (= x!1 false)) false-          true)-       )-[GOOD] (define-fun q2_model33_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2         x!0 x!1)-                            (q2_model33 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_33 () Bool -               (or q1_model33_reject-                   q2_model33_reject-               ))-[GOOD] (assert uiFunRejector_model_33)-Looking for solution 34-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 ((as const (Array Bool Bool)) false)))-[SEND] (get-value (q2))-[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) false) false true true)))-[GOOD] (define-fun q1_model34 ((x!0 Bool)) Bool-          false-       )-[GOOD] (define-fun q1_model34_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1         x!0)-                            (q1_model34 x!0))))-[GOOD] (define-fun q2_model34 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 false) (= x!1 true)) true-          false)-       )-[GOOD] (define-fun q2_model34_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2         x!0 x!1)-                            (q2_model34 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_34 () Bool -               (or q1_model34_reject-                   q2_model34_reject-               ))-[GOOD] (assert uiFunRejector_model_34)-Looking for solution 35-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 (lambda ((x!1 Bool)) x!1)))-[SEND] (get-value (q2))-[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) false) true false true)))-[GOOD] (define-fun q1_model35 ((x!0 Bool)) Bool-          (ite (and (= x!0 true)) true-          false)-       )-[GOOD] (define-fun q1_model35_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1         x!0)-                            (q1_model35 x!0))))-[GOOD] (define-fun q2_model35 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 true) (= x!1 false)) true-          false)-       )-[GOOD] (define-fun q2_model35_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2         x!0 x!1)-                            (q2_model35 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_35 () Bool -               (or q1_model35_reject-                   q2_model35_reject-               ))-[GOOD] (assert uiFunRejector_model_35)-Looking for solution 36-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 (store ((as const (Array Bool Bool)) false) false true)))-[SEND] (get-value (q2))-[RECV] ((q2 ((as const (Array Bool Bool Bool)) false)))-[GOOD] (define-fun q1_model36 ((x!0 Bool)) Bool-          (ite (and (= x!0 false)) true-          false)-       )-[GOOD] (define-fun q1_model36_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1         x!0)-                            (q1_model36 x!0))))-[GOOD] (define-fun q2_model36 ((x!0 Bool) (x!1 Bool)) Bool-          false-       )-[GOOD] (define-fun q2_model36_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2         x!0 x!1)-                            (q2_model36 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_36 () Bool -               (or q1_model36_reject-                   q2_model36_reject-               ))-[GOOD] (assert uiFunRejector_model_36)-Looking for solution 37-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 (lambda ((x!1 Bool)) x!1)))-[SEND] (get-value (q2))-[RECV] ((q2 (store (store ((as const (Array Bool Bool Bool)) true) false false false)-              true-              true-              false)))-[GOOD] (define-fun q1_model37 ((x!0 Bool)) Bool-          (ite (and (= x!0 true)) true-          false)-       )-[GOOD] (define-fun q1_model37_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1         x!0)-                            (q1_model37 x!0))))-[GOOD] (define-fun q2_model37 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 true) (= x!1 true)) false-          (ite (and (= x!0 false) (= x!1 false)) false-          true))-       )-[GOOD] (define-fun q2_model37_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2         x!0 x!1)-                            (q2_model37 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_37 () Bool -               (or q1_model37_reject-                   q2_model37_reject-               ))-[GOOD] (assert uiFunRejector_model_37)-Looking for solution 38-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 ((as const (Array Bool Bool)) false)))-[SEND] (get-value (q2))-[RECV] ((q2 (store (store ((as const (Array Bool Bool Bool)) false) false true true)-              true-              true-              true)))-[GOOD] (define-fun q1_model38 ((x!0 Bool)) Bool-          false-       )-[GOOD] (define-fun q1_model38_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1         x!0)-                            (q1_model38 x!0))))-[GOOD] (define-fun q2_model38 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 true) (= x!1 true)) true-          (ite (and (= x!0 false) (= x!1 true)) true-          false))-       )-[GOOD] (define-fun q2_model38_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2         x!0 x!1)-                            (q2_model38 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_38 () Bool -               (or q1_model38_reject-                   q2_model38_reject-               ))-[GOOD] (assert uiFunRejector_model_38)-Looking for solution 39-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 ((as const (Array Bool Bool)) false)))-[SEND] (get-value (q2))-[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) false) true true true)))-[GOOD] (define-fun q1_model39 ((x!0 Bool)) Bool-          false-       )-[GOOD] (define-fun q1_model39_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1         x!0)-                            (q1_model39 x!0))))-[GOOD] (define-fun q2_model39 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 true) (= x!1 true)) true-          false)-       )-[GOOD] (define-fun q2_model39_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2         x!0 x!1)-                            (q2_model39 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_39 () Bool -               (or q1_model39_reject-                   q2_model39_reject-               ))-[GOOD] (assert uiFunRejector_model_39)-Looking for solution 40-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 (lambda ((x!1 Bool)) x!1)))-[SEND] (get-value (q2))-[RECV] ((q2 (store (store ((as const (Array Bool Bool Bool)) true) false false false)-              true-              false-              false)))-[GOOD] (define-fun q1_model40 ((x!0 Bool)) Bool-          (ite (and (= x!0 true)) true-          false)-       )-[GOOD] (define-fun q1_model40_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1         x!0)-                            (q1_model40 x!0))))-[GOOD] (define-fun q2_model40 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 true) (= x!1 false)) false-          (ite (and (= x!0 false) (= x!1 false)) false-          true))-       )-[GOOD] (define-fun q2_model40_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2         x!0 x!1)-                            (q2_model40 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_40 () Bool -               (or q1_model40_reject-                   q2_model40_reject-               ))-[GOOD] (assert uiFunRejector_model_40)-Looking for solution 41-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 ((as const (Array Bool Bool)) false)))-[SEND] (get-value (q2))-[RECV] ((q2 (store (store ((as const (Array Bool Bool Bool)) false) true false true)-              false-              true-              true)))-[GOOD] (define-fun q1_model41 ((x!0 Bool)) Bool-          false-       )-[GOOD] (define-fun q1_model41_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1         x!0)-                            (q1_model41 x!0))))-[GOOD] (define-fun q2_model41 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 false) (= x!1 true)) true-          (ite (and (= x!0 true) (= x!1 false)) true-          false))-       )-[GOOD] (define-fun q2_model41_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2         x!0 x!1)-                            (q2_model41 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_41 () Bool -               (or q1_model41_reject-                   q2_model41_reject-               ))-[GOOD] (assert uiFunRejector_model_41)-Looking for solution 42-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 (store ((as const (Array Bool Bool)) false) false true)))-[SEND] (get-value (q2))-[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) false) false true true)))-[GOOD] (define-fun q1_model42 ((x!0 Bool)) Bool-          (ite (and (= x!0 false)) true-          false)-       )-[GOOD] (define-fun q1_model42_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1         x!0)-                            (q1_model42 x!0))))-[GOOD] (define-fun q2_model42 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 false) (= x!1 true)) true-          false)-       )-[GOOD] (define-fun q2_model42_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2         x!0 x!1)-                            (q2_model42 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_42 () Bool -               (or q1_model42_reject-                   q2_model42_reject-               ))-[GOOD] (assert uiFunRejector_model_42)-Looking for solution 43-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 (store ((as const (Array Bool Bool)) false) false true)))-[SEND] (get-value (q2))-[RECV] ((q2 (store (store ((as const (Array Bool Bool Bool)) false) false true true)-              true-              true-              true)))-[GOOD] (define-fun q1_model43 ((x!0 Bool)) Bool-          (ite (and (= x!0 false)) true-          false)-       )-[GOOD] (define-fun q1_model43_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1         x!0)-                            (q1_model43 x!0))))-[GOOD] (define-fun q2_model43 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 true) (= x!1 true)) true-          (ite (and (= x!0 false) (= x!1 true)) true-          false))-       )-[GOOD] (define-fun q2_model43_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2         x!0 x!1)-                            (q2_model43 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_43 () Bool -               (or q1_model43_reject-                   q2_model43_reject-               ))-[GOOD] (assert uiFunRejector_model_43)-Looking for solution 44-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 (store ((as const (Array Bool Bool)) false) false true)))-[SEND] (get-value (q2))-[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) false) true true true)))-[GOOD] (define-fun q1_model44 ((x!0 Bool)) Bool-          (ite (and (= x!0 false)) true-          false)-       )-[GOOD] (define-fun q1_model44_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1         x!0)-                            (q1_model44 x!0))))-[GOOD] (define-fun q2_model44 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 true) (= x!1 true)) true-          false)-       )-[GOOD] (define-fun q2_model44_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2         x!0 x!1)-                            (q2_model44 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_44 () Bool -               (or q1_model44_reject-                   q2_model44_reject-               ))-[GOOD] (assert uiFunRejector_model_44)-Looking for solution 45-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 (store ((as const (Array Bool Bool)) false) false true)))-[SEND] (get-value (q2))-[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) false) true false true)))-[GOOD] (define-fun q1_model45 ((x!0 Bool)) Bool-          (ite (and (= x!0 false)) true-          false)-       )-[GOOD] (define-fun q1_model45_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1         x!0)-                            (q1_model45 x!0))))-[GOOD] (define-fun q2_model45 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 true) (= x!1 false)) true-          false)-       )-[GOOD] (define-fun q2_model45_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2         x!0 x!1)-                            (q2_model45 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_45 () Bool -               (or q1_model45_reject-                   q2_model45_reject-               ))-[GOOD] (assert uiFunRejector_model_45)-Looking for solution 46-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 (store ((as const (Array Bool Bool)) false) false true)))-[SEND] (get-value (q2))-[RECV] ((q2 (store (store ((as const (Array Bool Bool Bool)) false) true false true)-              true-              true-              true)))-[GOOD] (define-fun q1_model46 ((x!0 Bool)) Bool-          (ite (and (= x!0 false)) true-          false)-       )-[GOOD] (define-fun q1_model46_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1         x!0)-                            (q1_model46 x!0))))-[GOOD] (define-fun q2_model46 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 true) (= x!1 true)) true-          (ite (and (= x!0 true) (= x!1 false)) true-          false))-       )-[GOOD] (define-fun q2_model46_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2         x!0 x!1)-                            (q2_model46 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_46 () Bool -               (or q1_model46_reject-                   q2_model46_reject-               ))-[GOOD] (assert uiFunRejector_model_46)-Looking for solution 47-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 ((as const (Array Bool Bool)) false)))-[SEND] (get-value (q2))-[RECV] ((q2 (store (store ((as const (Array Bool Bool Bool)) true) false false false)-              false-              true-              false)))-[GOOD] (define-fun q1_model47 ((x!0 Bool)) Bool-          false-       )-[GOOD] (define-fun q1_model47_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1         x!0)-                            (q1_model47 x!0))))-[GOOD] (define-fun q2_model47 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 false) (= x!1 true)) false-          (ite (and (= x!0 false) (= x!1 false)) false-          true))-       )-[GOOD] (define-fun q2_model47_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2         x!0 x!1)-                            (q2_model47 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_47 () Bool -               (or q1_model47_reject-                   q2_model47_reject-               ))-[GOOD] (assert uiFunRejector_model_47)-Looking for solution 48-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 (lambda ((x!1 Bool)) x!1)))-[SEND] (get-value (q2))-[RECV] ((q2 (store (store ((as const (Array Bool Bool Bool)) true) false false false)-              false-              true-              false)))-[GOOD] (define-fun q1_model48 ((x!0 Bool)) Bool-          (ite (and (= x!0 true)) true-          false)-       )-[GOOD] (define-fun q1_model48_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1         x!0)-                            (q1_model48 x!0))))-[GOOD] (define-fun q2_model48 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 false) (= x!1 true)) false-          (ite (and (= x!0 false) (= x!1 false)) false-          true))-       )-[GOOD] (define-fun q2_model48_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2         x!0 x!1)-                            (q2_model48 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_48 () Bool -               (or q1_model48_reject-                   q2_model48_reject-               ))-[GOOD] (assert uiFunRejector_model_48)-Looking for solution 49-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 ((as const (Array Bool Bool)) false)))-[SEND] (get-value (q2))-[RECV] ((q2 (store (store ((as const (Array Bool Bool Bool)) true) true true false)-              true-              false-              false)))-[GOOD] (define-fun q1_model49 ((x!0 Bool)) Bool-          false-       )-[GOOD] (define-fun q1_model49_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1         x!0)-                            (q1_model49 x!0))))-[GOOD] (define-fun q2_model49 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 true) (= x!1 false)) false-          (ite (and (= x!0 true) (= x!1 true)) false-          true))-       )-[GOOD] (define-fun q2_model49_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2         x!0 x!1)-                            (q2_model49 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_49 () Bool -               (or q1_model49_reject-                   q2_model49_reject-               ))-[GOOD] (assert uiFunRejector_model_49)-Looking for solution 50-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 (store ((as const (Array Bool Bool)) false) false true)))-[SEND] (get-value (q2))-[RECV] ((q2 (store (store ((as const (Array Bool Bool Bool)) false) false true true)-              true-              false-              true)))-[GOOD] (define-fun q1_model50 ((x!0 Bool)) Bool-          (ite (and (= x!0 false)) true-          false)-       )-[GOOD] (define-fun q1_model50_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1         x!0)-                            (q1_model50 x!0))))-[GOOD] (define-fun q2_model50 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 true) (= x!1 false)) true-          (ite (and (= x!0 false) (= x!1 true)) true-          false))-       )-[GOOD] (define-fun q2_model50_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2         x!0 x!1)-                            (q2_model50 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_50 () Bool -               (or q1_model50_reject-                   q2_model50_reject-               ))-[GOOD] (assert uiFunRejector_model_50)-Looking for solution 51-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 ((as const (Array Bool Bool)) true)))-[SEND] (get-value (q2))-[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) false) true false true)))-[GOOD] (define-fun q1_model51 ((x!0 Bool)) Bool-          true-       )-[GOOD] (define-fun q1_model51_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1         x!0)-                            (q1_model51 x!0))))-[GOOD] (define-fun q2_model51 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 true) (= x!1 false)) true-          false)-       )-[GOOD] (define-fun q2_model51_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2         x!0 x!1)-                            (q2_model51 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_51 () Bool -               (or q1_model51_reject-                   q2_model51_reject-               ))-[GOOD] (assert uiFunRejector_model_51)-Looking for solution 52-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 ((as const (Array Bool Bool)) true)))-[SEND] (get-value (q2))-[RECV] ((q2 (store (store ((as const (Array Bool Bool Bool)) false) true false true)-              true-              true-              true)))-[GOOD] (define-fun q1_model52 ((x!0 Bool)) Bool-          true-       )-[GOOD] (define-fun q1_model52_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1         x!0)-                            (q1_model52 x!0))))-[GOOD] (define-fun q2_model52 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 true) (= x!1 true)) true-          (ite (and (= x!0 true) (= x!1 false)) true-          false))-       )-[GOOD] (define-fun q2_model52_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2         x!0 x!1)-                            (q2_model52 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_52 () Bool -               (or q1_model52_reject-                   q2_model52_reject-               ))-[GOOD] (assert uiFunRejector_model_52)-Looking for solution 53-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 ((as const (Array Bool Bool)) true)))-[SEND] (get-value (q2))-[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) false) false false true)))-[GOOD] (define-fun q1_model53 ((x!0 Bool)) Bool-          true-       )-[GOOD] (define-fun q1_model53_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1         x!0)-                            (q1_model53 x!0))))-[GOOD] (define-fun q2_model53 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 false) (= x!1 false)) true-          false)-       )-[GOOD] (define-fun q2_model53_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2         x!0 x!1)-                            (q2_model53 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_53 () Bool -               (or q1_model53_reject-                   q2_model53_reject-               ))-[GOOD] (assert uiFunRejector_model_53)-Looking for solution 54-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 ((as const (Array Bool Bool)) true)))-[SEND] (get-value (q2))-[RECV] ((q2 (store (store ((as const (Array Bool Bool Bool)) false) false false true)-              false-              true-              true)))-[GOOD] (define-fun q1_model54 ((x!0 Bool)) Bool-          true-       )-[GOOD] (define-fun q1_model54_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1         x!0)-                            (q1_model54 x!0))))-[GOOD] (define-fun q2_model54 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 false) (= x!1 true)) true-          (ite (and (= x!0 false) (= x!1 false)) true-          false))-       )-[GOOD] (define-fun q2_model54_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2         x!0 x!1)-                            (q2_model54 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_54 () Bool -               (or q1_model54_reject-                   q2_model54_reject-               ))-[GOOD] (assert uiFunRejector_model_54)-Looking for solution 55-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 ((as const (Array Bool Bool)) true)))-[SEND] (get-value (q2))-[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) true) true false false)))-[GOOD] (define-fun q1_model55 ((x!0 Bool)) Bool-          true-       )-[GOOD] (define-fun q1_model55_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1         x!0)-                            (q1_model55 x!0))))-[GOOD] (define-fun q2_model55 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 true) (= x!1 false)) false-          true)-       )-[GOOD] (define-fun q2_model55_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2         x!0 x!1)-                            (q2_model55 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_55 () Bool -               (or q1_model55_reject-                   q2_model55_reject-               ))-[GOOD] (assert uiFunRejector_model_55)-Looking for solution 56-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 ((as const (Array Bool Bool)) true)))-[SEND] (get-value (q2))-[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) false) true true true)))-[GOOD] (define-fun q1_model56 ((x!0 Bool)) Bool-          true-       )-[GOOD] (define-fun q1_model56_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1         x!0)-                            (q1_model56 x!0))))-[GOOD] (define-fun q2_model56 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 true) (= x!1 true)) true-          false)-       )-[GOOD] (define-fun q2_model56_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2         x!0 x!1)-                            (q2_model56 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_56 () Bool -               (or q1_model56_reject-                   q2_model56_reject-               ))-[GOOD] (assert uiFunRejector_model_56)-Looking for solution 57-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 ((as const (Array Bool Bool)) true)))-[SEND] (get-value (q2))-[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) false) false true true)))-[GOOD] (define-fun q1_model57 ((x!0 Bool)) Bool-          true-       )-[GOOD] (define-fun q1_model57_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1         x!0)-                            (q1_model57 x!0))))-[GOOD] (define-fun q2_model57 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 false) (= x!1 true)) true-          false)-       )-[GOOD] (define-fun q2_model57_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2         x!0 x!1)-                            (q2_model57 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_57 () Bool -               (or q1_model57_reject-                   q2_model57_reject-               ))-[GOOD] (assert uiFunRejector_model_57)-Looking for solution 58-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 ((as const (Array Bool Bool)) true)))-[SEND] (get-value (q2))-[RECV] ((q2 (store (store ((as const (Array Bool Bool Bool)) false) false true true)-              true-              false-              true)))-[GOOD] (define-fun q1_model58 ((x!0 Bool)) Bool-          true-       )-[GOOD] (define-fun q1_model58_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1         x!0)-                            (q1_model58 x!0))))-[GOOD] (define-fun q2_model58 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 true) (= x!1 false)) true-          (ite (and (= x!0 false) (= x!1 true)) true-          false))-       )-[GOOD] (define-fun q2_model58_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2         x!0 x!1)-                            (q2_model58 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_58 () Bool -               (or q1_model58_reject-                   q2_model58_reject-               ))-[GOOD] (assert uiFunRejector_model_58)-Looking for solution 59-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 (lambda ((x!1 Bool)) x!1)))-[SEND] (get-value (q2))-[RECV] ((q2 (store (store ((as const (Array Bool Bool Bool)) false) false true true)-              false-              false-              true)))-[GOOD] (define-fun q1_model59 ((x!0 Bool)) Bool-          (ite (and (= x!0 true)) true-          false)-       )-[GOOD] (define-fun q1_model59_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1         x!0)-                            (q1_model59 x!0))))-[GOOD] (define-fun q2_model59 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 false) (= x!1 false)) true-          (ite (and (= x!0 false) (= x!1 true)) true-          false))-       )-[GOOD] (define-fun q2_model59_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2         x!0 x!1)-                            (q2_model59 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_59 () Bool -               (or q1_model59_reject-                   q2_model59_reject-               ))-[GOOD] (assert uiFunRejector_model_59)-Looking for solution 60-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 (store ((as const (Array Bool Bool)) false) false true)))-[SEND] (get-value (q2))-[RECV] ((q2 (store (store ((as const (Array Bool Bool Bool)) false) false true true)-              false-              false-              true)))-[GOOD] (define-fun q1_model60 ((x!0 Bool)) Bool-          (ite (and (= x!0 false)) true-          false)-       )-[GOOD] (define-fun q1_model60_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1         x!0)-                            (q1_model60 x!0))))-[GOOD] (define-fun q2_model60 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 false) (= x!1 false)) true-          (ite (and (= x!0 false) (= x!1 true)) true-          false))-       )-[GOOD] (define-fun q2_model60_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2         x!0 x!1)-                            (q2_model60 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_60 () Bool -               (or q1_model60_reject-                   q2_model60_reject-               ))-[GOOD] (assert uiFunRejector_model_60)-Looking for solution 61-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 ((as const (Array Bool Bool)) true)))-[SEND] (get-value (q2))-[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) true) true true false)))-[GOOD] (define-fun q1_model61 ((x!0 Bool)) Bool-          true-       )-[GOOD] (define-fun q1_model61_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1         x!0)-                            (q1_model61 x!0))))-[GOOD] (define-fun q2_model61 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 true) (= x!1 true)) false-          true)-       )-[GOOD] (define-fun q2_model61_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2         x!0 x!1)-                            (q2_model61 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_61 () Bool -               (or q1_model61_reject-                   q2_model61_reject-               ))-[GOOD] (assert uiFunRejector_model_61)-Looking for solution 62-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 ((as const (Array Bool Bool)) true)))-[SEND] (get-value (q2))-[RECV] ((q2 (store (store ((as const (Array Bool Bool Bool)) false) false false true)-              true-              false-              true)))-[GOOD] (define-fun q1_model62 ((x!0 Bool)) Bool-          true-       )-[GOOD] (define-fun q1_model62_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1         x!0)-                            (q1_model62 x!0))))-[GOOD] (define-fun q2_model62 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 true) (= x!1 false)) true-          (ite (and (= x!0 false) (= x!1 false)) true-          false))-       )-[GOOD] (define-fun q2_model62_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2         x!0 x!1)-                            (q2_model62 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_62 () Bool -               (or q1_model62_reject-                   q2_model62_reject-               ))-[GOOD] (assert uiFunRejector_model_62)-Looking for solution 63-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 ((as const (Array Bool Bool)) true)))-[SEND] (get-value (q2))-[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) true) false false false)))-[GOOD] (define-fun q1_model63 ((x!0 Bool)) Bool-          true-       )-[GOOD] (define-fun q1_model63_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1         x!0)-                            (q1_model63 x!0))))-[GOOD] (define-fun q2_model63 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 false) (= x!1 false)) false-          true)-       )-[GOOD] (define-fun q2_model63_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2         x!0 x!1)-                            (q2_model63 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_63 () Bool -               (or q1_model63_reject-                   q2_model63_reject-               ))-[GOOD] (assert uiFunRejector_model_63)-Looking for solution 64-[SEND] (check-sat)-[RECV] sat-[SEND] (get-value (q1))-[RECV] ((q1 ((as const (Array Bool Bool)) true)))-[SEND] (get-value (q2))-[RECV] ((q2 (store (store ((as const (Array Bool Bool Bool)) true) false false false)-              true-              false-              false)))-[GOOD] (define-fun q1_model64 ((x!0 Bool)) Bool-          true-       )-[GOOD] (define-fun q1_model64_reject () Bool-          (exists ((x!0 Bool))-                  (distinct (q1         x!0)-                            (q1_model64 x!0))))-[GOOD] (define-fun q2_model64 ((x!0 Bool) (x!1 Bool)) Bool-          (ite (and (= x!0 true) (= x!1 false)) false-          (ite (and (= x!0 false) (= x!1 false)) false-          true))-       )-[GOOD] (define-fun q2_model64_reject () Bool-          (exists ((x!0 Bool) (x!1 Bool))-                  (distinct (q2         x!0 x!1)-                            (q2_model64 x!0 x!1))))-[GOOD] (define-fun uiFunRejector_model_64 () Bool -               (or q1_model64_reject-                   q2_model64_reject-               ))-[GOOD] (assert uiFunRejector_model_64)-Looking for solution 65-[SEND] (check-sat)-[RECV] unsat-*** Solver   : Z3-*** Exit code: ExitSuccess--RESULT: Solution #1:-  q1 :: Bool -> Bool-  q1 _ = True--  q2 :: Bool -> Bool -> Bool-  q2 True  False = False-  q2 False False = False-  q2 _     _     = True-Solution #2:-  q1 :: Bool -> Bool-  q1 _ = True--  q2 :: Bool -> Bool -> Bool-  q2 False False = False-  q2 _     _     = True-Solution #3:-  q1 :: Bool -> Bool-  q1 _ = True--  q2 :: Bool -> Bool -> Bool-  q2 True  False = True-  q2 False False = True-  q2 _     _     = False-Solution #4:-  q1 :: Bool -> Bool-  q1 _ = True--  q2 :: Bool -> Bool -> Bool-  q2 True True = False-  q2 _    _    = True-Solution #5:-  q1 :: Bool -> Bool-  q1 False = True-  q1 _     = False--  q2 :: Bool -> Bool -> Bool-  q2 False False = True-  q2 False True  = True-  q2 _     _     = False-Solution #6:-  q1 :: Bool -> Bool-  q1 True = True-  q1 _    = False--  q2 :: Bool -> Bool -> Bool-  q2 False False = True-  q2 False True  = True-  q2 _     _     = False-Solution #7:-  q1 :: Bool -> Bool-  q1 _ = True--  q2 :: Bool -> Bool -> Bool-  q2 True  False = True-  q2 False True  = True-  q2 _     _     = False-Solution #8:-  q1 :: Bool -> Bool-  q1 _ = True--  q2 :: Bool -> Bool -> Bool-  q2 False True = True-  q2 _     _    = False-Solution #9:-  q1 :: Bool -> Bool-  q1 _ = True--  q2 :: Bool -> Bool -> Bool-  q2 True True = True-  q2 _    _    = False-Solution #10:-  q1 :: Bool -> Bool-  q1 _ = True--  q2 :: Bool -> Bool -> Bool-  q2 True False = False-  q2 _    _     = True-Solution #11:-  q1 :: Bool -> Bool-  q1 _ = True--  q2 :: Bool -> Bool -> Bool-  q2 False True  = True-  q2 False False = True-  q2 _     _     = False-Solution #12:-  q1 :: Bool -> Bool-  q1 _ = True--  q2 :: Bool -> Bool -> Bool-  q2 False False = True-  q2 _     _     = False-Solution #13:-  q1 :: Bool -> Bool-  q1 _ = True--  q2 :: Bool -> Bool -> Bool-  q2 True True  = True-  q2 True False = True-  q2 _    _     = False-Solution #14:-  q1 :: Bool -> Bool-  q1 _ = True--  q2 :: Bool -> Bool -> Bool-  q2 True False = True-  q2 _    _     = False-Solution #15:-  q1 :: Bool -> Bool-  q1 False = True-  q1 _     = False--  q2 :: Bool -> Bool -> Bool-  q2 True  False = True-  q2 False True  = True-  q2 _     _     = False-Solution #16:-  q1 :: Bool -> Bool-  q1 _ = False--  q2 :: Bool -> Bool -> Bool-  q2 True False = False-  q2 True True  = False-  q2 _    _     = True-Solution #17:-  q1 :: Bool -> Bool-  q1 True = True-  q1 _    = False--  q2 :: Bool -> Bool -> Bool-  q2 False True  = False-  q2 False False = False-  q2 _     _     = True-Solution #18:-  q1 :: Bool -> Bool-  q1 _ = False--  q2 :: Bool -> Bool -> Bool-  q2 False True  = False-  q2 False False = False-  q2 _     _     = True-Solution #19:-  q1 :: Bool -> Bool-  q1 False = True-  q1 _     = False--  q2 :: Bool -> Bool -> Bool-  q2 True True  = True-  q2 True False = True-  q2 _    _     = False-Solution #20:-  q1 :: Bool -> Bool-  q1 False = True-  q1 _     = False--  q2 :: Bool -> Bool -> Bool-  q2 True False = True-  q2 _    _     = False-Solution #21:-  q1 :: Bool -> Bool-  q1 False = True-  q1 _     = False--  q2 :: Bool -> Bool -> Bool-  q2 True True = True-  q2 _    _    = False-Solution #22:-  q1 :: Bool -> Bool-  q1 False = True-  q1 _     = False--  q2 :: Bool -> Bool -> Bool-  q2 True  True = True-  q2 False True = True-  q2 _     _    = False-Solution #23:-  q1 :: Bool -> Bool-  q1 False = True-  q1 _     = False--  q2 :: Bool -> Bool -> Bool-  q2 False True = True-  q2 _     _    = False-Solution #24:-  q1 :: Bool -> Bool-  q1 _ = False--  q2 :: Bool -> Bool -> Bool-  q2 False True  = True-  q2 True  False = True-  q2 _     _     = False-Solution #25:-  q1 :: Bool -> Bool-  q1 True = True-  q1 _    = False--  q2 :: Bool -> Bool -> Bool-  q2 True  False = False-  q2 False False = False-  q2 _     _     = True-Solution #26:-  q1 :: Bool -> Bool-  q1 _ = False--  q2 :: Bool -> Bool -> Bool-  q2 True True = True-  q2 _    _    = False-Solution #27:-  q1 :: Bool -> Bool-  q1 _ = False--  q2 :: Bool -> Bool -> Bool-  q2 True  True = True-  q2 False True = True-  q2 _     _    = False-Solution #28:-  q1 :: Bool -> Bool-  q1 True = True-  q1 _    = False--  q2 :: Bool -> Bool -> Bool-  q2 True  True  = False-  q2 False False = False-  q2 _     _     = True-Solution #29:-  q1 :: Bool -> Bool-  q1 False = True-  q1 _     = False--  q2 :: Bool -> Bool -> Bool-  q2 _ _ = False-Solution #30:-  q1 :: Bool -> Bool-  q1 True = True-  q1 _    = False--  q2 :: Bool -> Bool -> Bool-  q2 True False = True-  q2 _    _     = False-Solution #31:-  q1 :: Bool -> Bool-  q1 _ = False--  q2 :: Bool -> Bool -> Bool-  q2 False True = True-  q2 _     _    = False-Solution #32:-  q1 :: Bool -> Bool-  q1 _ = False--  q2 :: Bool -> Bool -> Bool-  q2 False False = False-  q2 _     _     = True-Solution #33:-  q1 :: Bool -> Bool-  q1 _ = False--  q2 :: Bool -> Bool -> Bool-  q2 True False = True-  q2 _    _     = False-Solution #34:-  q1 :: Bool -> Bool-  q1 True = True-  q1 _    = False--  q2 :: Bool -> Bool -> Bool-  q2 False False = False-  q2 _     _     = True-Solution #35:-  q1 :: Bool -> Bool-  q1 True = True-  q1 _    = False--  q2 :: Bool -> Bool -> Bool-  q2 False True = True-  q2 _     _    = False-Solution #36:-  q1 :: Bool -> Bool-  q1 True = True-  q1 _    = False--  q2 :: Bool -> Bool -> Bool-  q2 _ _ = False-Solution #37:-  q1 :: Bool -> Bool-  q1 True = False-  q1 _    = True--  q2 :: Bool -> Bool -> Bool-  q2 False False = False-  q2 _     _     = True-Solution #38:-  q1 :: Bool -> Bool-  q1 True = True-  q1 _    = False--  q2 :: Bool -> Bool -> Bool-  q2 True True = True-  q2 _    _    = False-Solution #39:-  q1 :: Bool -> Bool-  q1 False = True-  q1 _     = False--  q2 :: Bool -> Bool -> Bool-  q2 True True = False-  q2 _    _    = True-Solution #40:-  q1 :: Bool -> Bool-  q1 _ = False--  q2 :: Bool -> Bool -> Bool-  q2 True True = False-  q2 _    _    = True-Solution #41:-  q1 :: Bool -> Bool-  q1 True = True-  q1 _    = False--  q2 :: Bool -> Bool -> Bool-  q2 True True = False-  q2 _    _    = True-Solution #42:-  q1 :: Bool -> Bool-  q1 _ = True--  q2 :: Bool -> Bool -> Bool-  q2 _ _ = True-Solution #43:-  q1 :: Bool -> Bool-  q1 True = True-  q1 _    = False--  q2 :: Bool -> Bool -> Bool-  q2 _ _ = True-Solution #44:-  q1 :: Bool -> Bool-  q1 True = False-  q1 _    = True--  q2 :: Bool -> Bool -> Bool-  q2 _ _ = True-Solution #45:-  q1 :: Bool -> Bool-  q1 True = False-  q1 _    = True--  q2 :: Bool -> Bool -> Bool-  q2 True False = False-  q2 _    _     = True-Solution #46:-  q1 :: Bool -> Bool-  q1 False = True-  q1 _     = False--  q2 :: Bool -> Bool -> Bool-  q2 True  False = True-  q2 False False = True-  q2 _     _     = False-Solution #47:-  q1 :: Bool -> Bool-  q1 True = False-  q1 _    = True--  q2 :: Bool -> Bool -> Bool-  q2 False False = True-  q2 _     _     = False-Solution #48:-  q1 :: Bool -> Bool-  q1 _ = False--  q2 :: Bool -> Bool -> Bool-  q2 True  True = False-  q2 False True = False-  q2 _     _    = True-Solution #49:-  q1 :: Bool -> Bool-  q1 True = True-  q1 _    = False--  q2 :: Bool -> Bool -> Bool-  q2 True  False = True-  q2 False False = True-  q2 _     _     = False-Solution #50:-  q1 :: Bool -> Bool-  q1 True = True-  q1 _    = False--  q2 :: Bool -> Bool -> Bool-  q2 False False = True-  q2 _     _     = False-Solution #51:-  q1 :: Bool -> Bool-  q1 _ = True--  q2 :: Bool -> Bool -> Bool-  q2 False True = False-  q2 _     _    = True-Solution #52:-  q1 :: Bool -> Bool-  q1 False = True-  q1 _     = False--  q2 :: Bool -> Bool -> Bool-  q2 False True = False-  q2 _     _    = True-Solution #53:-  q1 :: Bool -> Bool-  q1 True = True-  q1 _    = False--  q2 :: Bool -> Bool -> Bool-  q2 False True = False-  q2 _     _    = True-Solution #54:-  q1 :: Bool -> Bool-  q1 _ = False--  q2 :: Bool -> Bool -> Bool-  q2 False True = False-  q2 _     _    = True-Solution #55:-  q1 :: Bool -> Bool-  q1 _ = True--  q2 :: Bool -> Bool -> Bool-  q2 True  True  = True-  q2 False False = True-  q2 _     _     = False-Solution #56:-  q1 :: Bool -> Bool-  q1 True = False-  q1 _    = True--  q2 :: Bool -> Bool -> Bool-  q2 True  True  = True-  q2 False False = True-  q2 _     _     = False-Solution #57:-  q1 :: Bool -> Bool-  q1 True = True-  q1 _    = False--  q2 :: Bool -> Bool -> Bool-  q2 True False = False-  q2 _    _     = True-Solution #58:-  q1 :: Bool -> Bool-  q1 True = True-  q1 _    = False--  q2 :: Bool -> Bool -> Bool-  q2 True  True  = True-  q2 False False = True-  q2 _     _     = False-Solution #59:-  q1 :: Bool -> Bool-  q1 _ = False--  q2 :: Bool -> Bool -> Bool-  q2 True  True  = True-  q2 False False = True-  q2 _     _     = False-Solution #60:-  q1 :: Bool -> Bool-  q1 _ = False--  q2 :: Bool -> Bool -> Bool-  q2 False False = True-  q2 _     _     = False-Solution #61:-  q1 :: Bool -> Bool-  q1 _ = False--  q2 :: Bool -> Bool -> Bool-  q2 True False = False-  q2 _    _     = True+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () Bool) ; tracks user variable "__internal_sbv_s0"+[GOOD] (declare-fun s2 () Bool) ; tracks user variable "__internal_sbv_s2"+[GOOD] (declare-fun s3 () Bool) ; tracks user variable "__internal_sbv_s3"+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] (declare-fun q1 (Bool) Bool)+[GOOD] (declare-fun q2 (Bool Bool) Bool)+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s1 () Bool (q1 s0))+[GOOD] (define-fun s4 () Bool (q2 s2 s3))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+*** Checking Satisfiability, all solutions..+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+Looking for solution 1+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 (_ as-array q1)))+[SEND] (get-value (q2))+[RECV] ((q2 (_ as-array q2)))+[GOOD] (define-fun q1_model1 ((x!0 Bool)) Bool+          false+       )+[GOOD] (define-fun q1_model1_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1        x!0)+                            (q1_model1 x!0))))+[GOOD] (define-fun q2_model1 ((x!0 Bool) (x!1 Bool)) Bool+          false+       )+[GOOD] (define-fun q2_model1_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2        x!0 x!1)+                            (q2_model1 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_1 () Bool +               (or q1_model1_reject+                   q2_model1_reject+               ))+[GOOD] (assert uiFunRejector_model_1)+Looking for solution 2+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 ((as const (Array Bool Bool)) true)))+[SEND] (get-value (q2))+[RECV] ((q2 (_ as-array q2)))+[GOOD] (define-fun q1_model2 ((x!0 Bool)) Bool+          true+       )+[GOOD] (define-fun q1_model2_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1        x!0)+                            (q1_model2 x!0))))+[GOOD] (define-fun q2_model2 ((x!0 Bool) (x!1 Bool)) Bool+          false+       )+[GOOD] (define-fun q2_model2_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2        x!0 x!1)+                            (q2_model2 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_2 () Bool +               (or q1_model2_reject+                   q2_model2_reject+               ))+[GOOD] (assert uiFunRejector_model_2)+Looking for solution 3+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 ((as const (Array Bool Bool)) false)))+[SEND] (get-value (q2))+[RECV] ((q2 ((as const (Array Bool Bool Bool)) true)))+[GOOD] (define-fun q1_model3 ((x!0 Bool)) Bool+          false+       )+[GOOD] (define-fun q1_model3_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1        x!0)+                            (q1_model3 x!0))))+[GOOD] (define-fun q2_model3 ((x!0 Bool) (x!1 Bool)) Bool+          true+       )+[GOOD] (define-fun q2_model3_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2        x!0 x!1)+                            (q2_model3 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_3 () Bool +               (or q1_model3_reject+                   q2_model3_reject+               ))+[GOOD] (assert uiFunRejector_model_3)+Looking for solution 4+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 ((as const (Array Bool Bool)) false)))+[SEND] (get-value (q2))+[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) true) false true false)))+[GOOD] (define-fun q1_model4 ((x!0 Bool)) Bool+          false+       )+[GOOD] (define-fun q1_model4_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1        x!0)+                            (q1_model4 x!0))))+[GOOD] (define-fun q2_model4 ((x!0 Bool) (x!1 Bool)) Bool+          (ite (and (= x!0 false) (= x!1 true)) false+          true)+       )+[GOOD] (define-fun q2_model4_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2        x!0 x!1)+                            (q2_model4 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_4 () Bool +               (or q1_model4_reject+                   q2_model4_reject+               ))+[GOOD] (assert uiFunRejector_model_4)+Looking for solution 5+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 ((as const (Array Bool Bool)) false)))+[SEND] (get-value (q2))+[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) false) false false true)))+[GOOD] (define-fun q1_model5 ((x!0 Bool)) Bool+          false+       )+[GOOD] (define-fun q1_model5_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1        x!0)+                            (q1_model5 x!0))))+[GOOD] (define-fun q2_model5 ((x!0 Bool) (x!1 Bool)) Bool+          (ite (and (= x!0 false) (= x!1 false)) true+          false)+       )+[GOOD] (define-fun q2_model5_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2        x!0 x!1)+                            (q2_model5 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_5 () Bool +               (or q1_model5_reject+                   q2_model5_reject+               ))+[GOOD] (assert uiFunRejector_model_5)+Looking for solution 6+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 (lambda ((x!1 Bool)) x!1)))+[SEND] (get-value (q2))+[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) false) false false true)))+[GOOD] (define-fun q1_model6 ((x!0 Bool)) Bool+          (ite (and (= x!0 true)) true+          false)+       )+[GOOD] (define-fun q1_model6_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1        x!0)+                            (q1_model6 x!0))))+[GOOD] (define-fun q2_model6 ((x!0 Bool) (x!1 Bool)) Bool+          (ite (and (= x!0 false) (= x!1 false)) true+          false)+       )+[GOOD] (define-fun q2_model6_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2        x!0 x!1)+                            (q2_model6 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_6 () Bool +               (or q1_model6_reject+                   q2_model6_reject+               ))+[GOOD] (assert uiFunRejector_model_6)+Looking for solution 7+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 (lambda ((x!1 Bool)) x!1)))+[SEND] (get-value (q2))+[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) true) false true false)))+[GOOD] (define-fun q1_model7 ((x!0 Bool)) Bool+          (ite (and (= x!0 true)) true+          false)+       )+[GOOD] (define-fun q1_model7_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1        x!0)+                            (q1_model7 x!0))))+[GOOD] (define-fun q2_model7 ((x!0 Bool) (x!1 Bool)) Bool+          (ite (and (= x!0 false) (= x!1 true)) false+          true)+       )+[GOOD] (define-fun q2_model7_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2        x!0 x!1)+                            (q2_model7 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_7 () Bool +               (or q1_model7_reject+                   q2_model7_reject+               ))+[GOOD] (assert uiFunRejector_model_7)+Looking for solution 8+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 (lambda ((x!1 Bool)) x!1)))+[SEND] (get-value (q2))+[RECV] ((q2 (store (store ((as const (Array Bool Bool Bool)) true) false true false)+              true+              true+              false)))+[GOOD] (define-fun q1_model8 ((x!0 Bool)) Bool+          (ite (and (= x!0 true)) true+          false)+       )+[GOOD] (define-fun q1_model8_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1        x!0)+                            (q1_model8 x!0))))+[GOOD] (define-fun q2_model8 ((x!0 Bool) (x!1 Bool)) Bool+          (ite (and (= x!0 true) (= x!1 true)) false+          (ite (and (= x!0 false) (= x!1 true)) false+          true))+       )+[GOOD] (define-fun q2_model8_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2        x!0 x!1)+                            (q2_model8 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_8 () Bool +               (or q1_model8_reject+                   q2_model8_reject+               ))+[GOOD] (assert uiFunRejector_model_8)+Looking for solution 9+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 (lambda ((x!1 Bool)) x!1)))+[SEND] (get-value (q2))+[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) true) true true false)))+[GOOD] (define-fun q1_model9 ((x!0 Bool)) Bool+          (ite (and (= x!0 true)) true+          false)+       )+[GOOD] (define-fun q1_model9_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1        x!0)+                            (q1_model9 x!0))))+[GOOD] (define-fun q2_model9 ((x!0 Bool) (x!1 Bool)) Bool+          (ite (and (= x!0 true) (= x!1 true)) false+          true)+       )+[GOOD] (define-fun q2_model9_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2        x!0 x!1)+                            (q2_model9 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_9 () Bool +               (or q1_model9_reject+                   q2_model9_reject+               ))+[GOOD] (assert uiFunRejector_model_9)+Looking for solution 10+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 (lambda ((x!1 Bool)) x!1)))+[SEND] (get-value (q2))+[RECV] ((q2 ((as const (Array Bool Bool Bool)) true)))+[GOOD] (define-fun q1_model10 ((x!0 Bool)) Bool+          (ite (and (= x!0 true)) true+          false)+       )+[GOOD] (define-fun q1_model10_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1         x!0)+                            (q1_model10 x!0))))+[GOOD] (define-fun q2_model10 ((x!0 Bool) (x!1 Bool)) Bool+          true+       )+[GOOD] (define-fun q2_model10_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2         x!0 x!1)+                            (q2_model10 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_10 () Bool +               (or q1_model10_reject+                   q2_model10_reject+               ))+[GOOD] (assert uiFunRejector_model_10)+Looking for solution 11+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 (lambda ((x!1 Bool)) x!1)))+[SEND] (get-value (q2))+[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) true) true false false)))+[GOOD] (define-fun q1_model11 ((x!0 Bool)) Bool+          (ite (and (= x!0 true)) true+          false)+       )+[GOOD] (define-fun q1_model11_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1         x!0)+                            (q1_model11 x!0))))+[GOOD] (define-fun q2_model11 ((x!0 Bool) (x!1 Bool)) Bool+          (ite (and (= x!0 true) (= x!1 false)) false+          true)+       )+[GOOD] (define-fun q2_model11_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2         x!0 x!1)+                            (q2_model11 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_11 () Bool +               (or q1_model11_reject+                   q2_model11_reject+               ))+[GOOD] (assert uiFunRejector_model_11)+Looking for solution 12+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 (lambda ((x!1 Bool)) x!1)))+[SEND] (get-value (q2))+[RECV] ((q2 (store (store ((as const (Array Bool Bool Bool)) true) true false false)+              false+              true+              false)))+[GOOD] (define-fun q1_model12 ((x!0 Bool)) Bool+          (ite (and (= x!0 true)) true+          false)+       )+[GOOD] (define-fun q1_model12_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1         x!0)+                            (q1_model12 x!0))))+[GOOD] (define-fun q2_model12 ((x!0 Bool) (x!1 Bool)) Bool+          (ite (and (= x!0 false) (= x!1 true)) false+          (ite (and (= x!0 true) (= x!1 false)) false+          true))+       )+[GOOD] (define-fun q2_model12_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2         x!0 x!1)+                            (q2_model12 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_12 () Bool +               (or q1_model12_reject+                   q2_model12_reject+               ))+[GOOD] (assert uiFunRejector_model_12)+Looking for solution 13+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 ((as const (Array Bool Bool)) true)))+[SEND] (get-value (q2))+[RECV] ((q2 (store (store ((as const (Array Bool Bool Bool)) true) true false false)+              false+              true+              false)))+[GOOD] (define-fun q1_model13 ((x!0 Bool)) Bool+          true+       )+[GOOD] (define-fun q1_model13_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1         x!0)+                            (q1_model13 x!0))))+[GOOD] (define-fun q2_model13 ((x!0 Bool) (x!1 Bool)) Bool+          (ite (and (= x!0 false) (= x!1 true)) false+          (ite (and (= x!0 true) (= x!1 false)) false+          true))+       )+[GOOD] (define-fun q2_model13_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2         x!0 x!1)+                            (q2_model13 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_13 () Bool +               (or q1_model13_reject+                   q2_model13_reject+               ))+[GOOD] (assert uiFunRejector_model_13)+Looking for solution 14+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 ((as const (Array Bool Bool)) true)))+[SEND] (get-value (q2))+[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) true) true false false)))+[GOOD] (define-fun q1_model14 ((x!0 Bool)) Bool+          true+       )+[GOOD] (define-fun q1_model14_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1         x!0)+                            (q1_model14 x!0))))+[GOOD] (define-fun q2_model14 ((x!0 Bool) (x!1 Bool)) Bool+          (ite (and (= x!0 true) (= x!1 false)) false+          true)+       )+[GOOD] (define-fun q2_model14_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2         x!0 x!1)+                            (q2_model14 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_14 () Bool +               (or q1_model14_reject+                   q2_model14_reject+               ))+[GOOD] (assert uiFunRejector_model_14)+Looking for solution 15+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 (store ((as const (Array Bool Bool)) true) true false)))+[SEND] (get-value (q2))+[RECV] ((q2 (store (store ((as const (Array Bool Bool Bool)) true) true false false)+              false+              true+              false)))+[GOOD] (define-fun q1_model15 ((x!0 Bool)) Bool+          (ite (and (= x!0 true)) false+          true)+       )+[GOOD] (define-fun q1_model15_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1         x!0)+                            (q1_model15 x!0))))+[GOOD] (define-fun q2_model15 ((x!0 Bool) (x!1 Bool)) Bool+          (ite (and (= x!0 false) (= x!1 true)) false+          (ite (and (= x!0 true) (= x!1 false)) false+          true))+       )+[GOOD] (define-fun q2_model15_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2         x!0 x!1)+                            (q2_model15 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_15 () Bool +               (or q1_model15_reject+                   q2_model15_reject+               ))+[GOOD] (assert uiFunRejector_model_15)+Looking for solution 16+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 ((as const (Array Bool Bool)) false)))+[SEND] (get-value (q2))+[RECV] ((q2 (store (store ((as const (Array Bool Bool Bool)) true) true false false)+              false+              true+              false)))+[GOOD] (define-fun q1_model16 ((x!0 Bool)) Bool+          false+       )+[GOOD] (define-fun q1_model16_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1         x!0)+                            (q1_model16 x!0))))+[GOOD] (define-fun q2_model16 ((x!0 Bool) (x!1 Bool)) Bool+          (ite (and (= x!0 false) (= x!1 true)) false+          (ite (and (= x!0 true) (= x!1 false)) false+          true))+       )+[GOOD] (define-fun q2_model16_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2         x!0 x!1)+                            (q2_model16 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_16 () Bool +               (or q1_model16_reject+                   q2_model16_reject+               ))+[GOOD] (assert uiFunRejector_model_16)+Looking for solution 17+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 ((as const (Array Bool Bool)) false)))+[SEND] (get-value (q2))+[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) true) true false false)))+[GOOD] (define-fun q1_model17 ((x!0 Bool)) Bool+          false+       )+[GOOD] (define-fun q1_model17_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1         x!0)+                            (q1_model17 x!0))))+[GOOD] (define-fun q2_model17 ((x!0 Bool) (x!1 Bool)) Bool+          (ite (and (= x!0 true) (= x!1 false)) false+          true)+       )+[GOOD] (define-fun q2_model17_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2         x!0 x!1)+                            (q2_model17 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_17 () Bool +               (or q1_model17_reject+                   q2_model17_reject+               ))+[GOOD] (assert uiFunRejector_model_17)+Looking for solution 18+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 (store ((as const (Array Bool Bool)) false) false true)))+[SEND] (get-value (q2))+[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) true) true false false)))+[GOOD] (define-fun q1_model18 ((x!0 Bool)) Bool+          (ite (and (= x!0 false)) true+          false)+       )+[GOOD] (define-fun q1_model18_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1         x!0)+                            (q1_model18 x!0))))+[GOOD] (define-fun q2_model18 ((x!0 Bool) (x!1 Bool)) Bool+          (ite (and (= x!0 true) (= x!1 false)) false+          true)+       )+[GOOD] (define-fun q2_model18_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2         x!0 x!1)+                            (q2_model18 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_18 () Bool +               (or q1_model18_reject+                   q2_model18_reject+               ))+[GOOD] (assert uiFunRejector_model_18)+Looking for solution 19+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 (store ((as const (Array Bool Bool)) true) true false)))+[SEND] (get-value (q2))+[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) true) false true false)))+[GOOD] (define-fun q1_model19 ((x!0 Bool)) Bool+          (ite (and (= x!0 true)) false+          true)+       )+[GOOD] (define-fun q1_model19_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1         x!0)+                            (q1_model19 x!0))))+[GOOD] (define-fun q2_model19 ((x!0 Bool) (x!1 Bool)) Bool+          (ite (and (= x!0 false) (= x!1 true)) false+          true)+       )+[GOOD] (define-fun q2_model19_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2         x!0 x!1)+                            (q2_model19 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_19 () Bool +               (or q1_model19_reject+                   q2_model19_reject+               ))+[GOOD] (assert uiFunRejector_model_19)+Looking for solution 20+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 (store ((as const (Array Bool Bool)) true) true false)))+[SEND] (get-value (q2))+[RECV] ((q2 ((as const (Array Bool Bool Bool)) true)))+[GOOD] (define-fun q1_model20 ((x!0 Bool)) Bool+          (ite (and (= x!0 true)) false+          true)+       )+[GOOD] (define-fun q1_model20_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1         x!0)+                            (q1_model20 x!0))))+[GOOD] (define-fun q2_model20 ((x!0 Bool) (x!1 Bool)) Bool+          true+       )+[GOOD] (define-fun q2_model20_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2         x!0 x!1)+                            (q2_model20 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_20 () Bool +               (or q1_model20_reject+                   q2_model20_reject+               ))+[GOOD] (assert uiFunRejector_model_20)+Looking for solution 21+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 ((as const (Array Bool Bool)) true)))+[SEND] (get-value (q2))+[RECV] ((q2 ((as const (Array Bool Bool Bool)) true)))+[GOOD] (define-fun q1_model21 ((x!0 Bool)) Bool+          true+       )+[GOOD] (define-fun q1_model21_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1         x!0)+                            (q1_model21 x!0))))+[GOOD] (define-fun q2_model21 ((x!0 Bool) (x!1 Bool)) Bool+          true+       )+[GOOD] (define-fun q2_model21_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2         x!0 x!1)+                            (q2_model21 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_21 () Bool +               (or q1_model21_reject+                   q2_model21_reject+               ))+[GOOD] (assert uiFunRejector_model_21)+Looking for solution 22+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 ((as const (Array Bool Bool)) true)))+[SEND] (get-value (q2))+[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) true) false true false)))+[GOOD] (define-fun q1_model22 ((x!0 Bool)) Bool+          true+       )+[GOOD] (define-fun q1_model22_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1         x!0)+                            (q1_model22 x!0))))+[GOOD] (define-fun q2_model22 ((x!0 Bool) (x!1 Bool)) Bool+          (ite (and (= x!0 false) (= x!1 true)) false+          true)+       )+[GOOD] (define-fun q2_model22_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2         x!0 x!1)+                            (q2_model22 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_22 () Bool +               (or q1_model22_reject+                   q2_model22_reject+               ))+[GOOD] (assert uiFunRejector_model_22)+Looking for solution 23+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 (lambda ((x!1 Bool)) x!1)))+[SEND] (get-value (q2))+[RECV] ((q2 ((as const (Array Bool Bool Bool)) false)))+[GOOD] (define-fun q1_model23 ((x!0 Bool)) Bool+          (ite (and (= x!0 true)) true+          false)+       )+[GOOD] (define-fun q1_model23_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1         x!0)+                            (q1_model23 x!0))))+[GOOD] (define-fun q2_model23 ((x!0 Bool) (x!1 Bool)) Bool+          false+       )+[GOOD] (define-fun q2_model23_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2         x!0 x!1)+                            (q2_model23 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_23 () Bool +               (or q1_model23_reject+                   q2_model23_reject+               ))+[GOOD] (assert uiFunRejector_model_23)+Looking for solution 24+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 (lambda ((x!1 Bool)) x!1)))+[SEND] (get-value (q2))+[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) false) true false true)))+[GOOD] (define-fun q1_model24 ((x!0 Bool)) Bool+          (ite (and (= x!0 true)) true+          false)+       )+[GOOD] (define-fun q1_model24_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1         x!0)+                            (q1_model24 x!0))))+[GOOD] (define-fun q2_model24 ((x!0 Bool) (x!1 Bool)) Bool+          (ite (and (= x!0 true) (= x!1 false)) true+          false)+       )+[GOOD] (define-fun q2_model24_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2         x!0 x!1)+                            (q2_model24 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_24 () Bool +               (or q1_model24_reject+                   q2_model24_reject+               ))+[GOOD] (assert uiFunRejector_model_24)+Looking for solution 25+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 (store ((as const (Array Bool Bool)) true) true false)))+[SEND] (get-value (q2))+[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) false) true false true)))+[GOOD] (define-fun q1_model25 ((x!0 Bool)) Bool+          (ite (and (= x!0 true)) false+          true)+       )+[GOOD] (define-fun q1_model25_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1         x!0)+                            (q1_model25 x!0))))+[GOOD] (define-fun q2_model25 ((x!0 Bool) (x!1 Bool)) Bool+          (ite (and (= x!0 true) (= x!1 false)) true+          false)+       )+[GOOD] (define-fun q2_model25_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2         x!0 x!1)+                            (q2_model25 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_25 () Bool +               (or q1_model25_reject+                   q2_model25_reject+               ))+[GOOD] (assert uiFunRejector_model_25)+Looking for solution 26+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 (store ((as const (Array Bool Bool)) true) true false)))+[SEND] (get-value (q2))+[RECV] ((q2 ((as const (Array Bool Bool Bool)) false)))+[GOOD] (define-fun q1_model26 ((x!0 Bool)) Bool+          (ite (and (= x!0 true)) false+          true)+       )+[GOOD] (define-fun q1_model26_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1         x!0)+                            (q1_model26 x!0))))+[GOOD] (define-fun q2_model26 ((x!0 Bool) (x!1 Bool)) Bool+          false+       )+[GOOD] (define-fun q2_model26_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2         x!0 x!1)+                            (q2_model26 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_26 () Bool +               (or q1_model26_reject+                   q2_model26_reject+               ))+[GOOD] (assert uiFunRejector_model_26)+Looking for solution 27+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 (store ((as const (Array Bool Bool)) true) true false)))+[SEND] (get-value (q2))+[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) false) false true true)))+[GOOD] (define-fun q1_model27 ((x!0 Bool)) Bool+          (ite (and (= x!0 true)) false+          true)+       )+[GOOD] (define-fun q1_model27_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1         x!0)+                            (q1_model27 x!0))))+[GOOD] (define-fun q2_model27 ((x!0 Bool) (x!1 Bool)) Bool+          (ite (and (= x!0 false) (= x!1 true)) true+          false)+       )+[GOOD] (define-fun q2_model27_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2         x!0 x!1)+                            (q2_model27 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_27 () Bool +               (or q1_model27_reject+                   q2_model27_reject+               ))+[GOOD] (assert uiFunRejector_model_27)+Looking for solution 28+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 (store ((as const (Array Bool Bool)) true) true false)))+[SEND] (get-value (q2))+[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) true) false false false)))+[GOOD] (define-fun q1_model28 ((x!0 Bool)) Bool+          (ite (and (= x!0 true)) false+          true)+       )+[GOOD] (define-fun q1_model28_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1         x!0)+                            (q1_model28 x!0))))+[GOOD] (define-fun q2_model28 ((x!0 Bool) (x!1 Bool)) Bool+          (ite (and (= x!0 false) (= x!1 false)) false+          true)+       )+[GOOD] (define-fun q2_model28_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2         x!0 x!1)+                            (q2_model28 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_28 () Bool +               (or q1_model28_reject+                   q2_model28_reject+               ))+[GOOD] (assert uiFunRejector_model_28)+Looking for solution 29+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 (store ((as const (Array Bool Bool)) true) true false)))+[SEND] (get-value (q2))+[RECV] ((q2 (store (store ((as const (Array Bool Bool Bool)) true) false false false)+              true+              true+              false)))+[GOOD] (define-fun q1_model29 ((x!0 Bool)) Bool+          (ite (and (= x!0 true)) false+          true)+       )+[GOOD] (define-fun q1_model29_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1         x!0)+                            (q1_model29 x!0))))+[GOOD] (define-fun q2_model29 ((x!0 Bool) (x!1 Bool)) Bool+          (ite (and (= x!0 true) (= x!1 true)) false+          (ite (and (= x!0 false) (= x!1 false)) false+          true))+       )+[GOOD] (define-fun q2_model29_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2         x!0 x!1)+                            (q2_model29 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_29 () Bool +               (or q1_model29_reject+                   q2_model29_reject+               ))+[GOOD] (assert uiFunRejector_model_29)+Looking for solution 30+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 (store ((as const (Array Bool Bool)) true) true false)))+[SEND] (get-value (q2))+[RECV] ((q2 (store (store ((as const (Array Bool Bool Bool)) true) false false false)+              false+              true+              false)))+[GOOD] (define-fun q1_model30 ((x!0 Bool)) Bool+          (ite (and (= x!0 true)) false+          true)+       )+[GOOD] (define-fun q1_model30_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1         x!0)+                            (q1_model30 x!0))))+[GOOD] (define-fun q2_model30 ((x!0 Bool) (x!1 Bool)) Bool+          (ite (and (= x!0 false) (= x!1 true)) false+          (ite (and (= x!0 false) (= x!1 false)) false+          true))+       )+[GOOD] (define-fun q2_model30_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2         x!0 x!1)+                            (q2_model30 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_30 () Bool +               (or q1_model30_reject+                   q2_model30_reject+               ))+[GOOD] (assert uiFunRejector_model_30)+Looking for solution 31+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 ((as const (Array Bool Bool)) true)))+[SEND] (get-value (q2))+[RECV] ((q2 (store (store ((as const (Array Bool Bool Bool)) true) false false false)+              false+              true+              false)))+[GOOD] (define-fun q1_model31 ((x!0 Bool)) Bool+          true+       )+[GOOD] (define-fun q1_model31_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1         x!0)+                            (q1_model31 x!0))))+[GOOD] (define-fun q2_model31 ((x!0 Bool) (x!1 Bool)) Bool+          (ite (and (= x!0 false) (= x!1 true)) false+          (ite (and (= x!0 false) (= x!1 false)) false+          true))+       )+[GOOD] (define-fun q2_model31_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2         x!0 x!1)+                            (q2_model31 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_31 () Bool +               (or q1_model31_reject+                   q2_model31_reject+               ))+[GOOD] (assert uiFunRejector_model_31)+Looking for solution 32+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 ((as const (Array Bool Bool)) true)))+[SEND] (get-value (q2))+[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) false) true false true)))+[GOOD] (define-fun q1_model32 ((x!0 Bool)) Bool+          true+       )+[GOOD] (define-fun q1_model32_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1         x!0)+                            (q1_model32 x!0))))+[GOOD] (define-fun q2_model32 ((x!0 Bool) (x!1 Bool)) Bool+          (ite (and (= x!0 true) (= x!1 false)) true+          false)+       )+[GOOD] (define-fun q2_model32_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2         x!0 x!1)+                            (q2_model32 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_32 () Bool +               (or q1_model32_reject+                   q2_model32_reject+               ))+[GOOD] (assert uiFunRejector_model_32)+Looking for solution 33+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 ((as const (Array Bool Bool)) true)))+[SEND] (get-value (q2))+[RECV] ((q2 (store (store ((as const (Array Bool Bool Bool)) false) true false true)+              false+              true+              true)))+[GOOD] (define-fun q1_model33 ((x!0 Bool)) Bool+          true+       )+[GOOD] (define-fun q1_model33_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1         x!0)+                            (q1_model33 x!0))))+[GOOD] (define-fun q2_model33 ((x!0 Bool) (x!1 Bool)) Bool+          (ite (and (= x!0 false) (= x!1 true)) true+          (ite (and (= x!0 true) (= x!1 false)) true+          false))+       )+[GOOD] (define-fun q2_model33_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2         x!0 x!1)+                            (q2_model33 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_33 () Bool +               (or q1_model33_reject+                   q2_model33_reject+               ))+[GOOD] (assert uiFunRejector_model_33)+Looking for solution 34+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 ((as const (Array Bool Bool)) true)))+[SEND] (get-value (q2))+[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) true) false false false)))+[GOOD] (define-fun q1_model34 ((x!0 Bool)) Bool+          true+       )+[GOOD] (define-fun q1_model34_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1         x!0)+                            (q1_model34 x!0))))+[GOOD] (define-fun q2_model34 ((x!0 Bool) (x!1 Bool)) Bool+          (ite (and (= x!0 false) (= x!1 false)) false+          true)+       )+[GOOD] (define-fun q2_model34_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2         x!0 x!1)+                            (q2_model34 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_34 () Bool +               (or q1_model34_reject+                   q2_model34_reject+               ))+[GOOD] (assert uiFunRejector_model_34)+Looking for solution 35+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 ((as const (Array Bool Bool)) true)))+[SEND] (get-value (q2))+[RECV] ((q2 (store (store ((as const (Array Bool Bool Bool)) false) false true true)+              true+              true+              true)))+[GOOD] (define-fun q1_model35 ((x!0 Bool)) Bool+          true+       )+[GOOD] (define-fun q1_model35_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1         x!0)+                            (q1_model35 x!0))))+[GOOD] (define-fun q2_model35 ((x!0 Bool) (x!1 Bool)) Bool+          (ite (and (= x!0 true) (= x!1 true)) true+          (ite (and (= x!0 false) (= x!1 true)) true+          false))+       )+[GOOD] (define-fun q2_model35_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2         x!0 x!1)+                            (q2_model35 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_35 () Bool +               (or q1_model35_reject+                   q2_model35_reject+               ))+[GOOD] (assert uiFunRejector_model_35)+Looking for solution 36+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 ((as const (Array Bool Bool)) true)))+[SEND] (get-value (q2))+[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) false) false true true)))+[GOOD] (define-fun q1_model36 ((x!0 Bool)) Bool+          true+       )+[GOOD] (define-fun q1_model36_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1         x!0)+                            (q1_model36 x!0))))+[GOOD] (define-fun q2_model36 ((x!0 Bool) (x!1 Bool)) Bool+          (ite (and (= x!0 false) (= x!1 true)) true+          false)+       )+[GOOD] (define-fun q2_model36_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2         x!0 x!1)+                            (q2_model36 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_36 () Bool +               (or q1_model36_reject+                   q2_model36_reject+               ))+[GOOD] (assert uiFunRejector_model_36)+Looking for solution 37+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 (store ((as const (Array Bool Bool)) true) true false)))+[SEND] (get-value (q2))+[RECV] ((q2 (store (store ((as const (Array Bool Bool Bool)) false) false true true)+              true+              true+              true)))+[GOOD] (define-fun q1_model37 ((x!0 Bool)) Bool+          (ite (and (= x!0 true)) false+          true)+       )+[GOOD] (define-fun q1_model37_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1         x!0)+                            (q1_model37 x!0))))+[GOOD] (define-fun q2_model37 ((x!0 Bool) (x!1 Bool)) Bool+          (ite (and (= x!0 true) (= x!1 true)) true+          (ite (and (= x!0 false) (= x!1 true)) true+          false))+       )+[GOOD] (define-fun q2_model37_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2         x!0 x!1)+                            (q2_model37 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_37 () Bool +               (or q1_model37_reject+                   q2_model37_reject+               ))+[GOOD] (assert uiFunRejector_model_37)+Looking for solution 38+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 (store ((as const (Array Bool Bool)) true) true false)))+[SEND] (get-value (q2))+[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) true) true true false)))+[GOOD] (define-fun q1_model38 ((x!0 Bool)) Bool+          (ite (and (= x!0 true)) false+          true)+       )+[GOOD] (define-fun q1_model38_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1         x!0)+                            (q1_model38 x!0))))+[GOOD] (define-fun q2_model38 ((x!0 Bool) (x!1 Bool)) Bool+          (ite (and (= x!0 true) (= x!1 true)) false+          true)+       )+[GOOD] (define-fun q2_model38_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2         x!0 x!1)+                            (q2_model38 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_38 () Bool +               (or q1_model38_reject+                   q2_model38_reject+               ))+[GOOD] (assert uiFunRejector_model_38)+Looking for solution 39+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 ((as const (Array Bool Bool)) false)))+[SEND] (get-value (q2))+[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) true) true true false)))+[GOOD] (define-fun q1_model39 ((x!0 Bool)) Bool+          false+       )+[GOOD] (define-fun q1_model39_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1         x!0)+                            (q1_model39 x!0))))+[GOOD] (define-fun q2_model39 ((x!0 Bool) (x!1 Bool)) Bool+          (ite (and (= x!0 true) (= x!1 true)) false+          true)+       )+[GOOD] (define-fun q2_model39_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2         x!0 x!1)+                            (q2_model39 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_39 () Bool +               (or q1_model39_reject+                   q2_model39_reject+               ))+[GOOD] (assert uiFunRejector_model_39)+Looking for solution 40+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 ((as const (Array Bool Bool)) false)))+[SEND] (get-value (q2))+[RECV] ((q2 (store (store ((as const (Array Bool Bool Bool)) true) true true false)+              false+              true+              false)))+[GOOD] (define-fun q1_model40 ((x!0 Bool)) Bool+          false+       )+[GOOD] (define-fun q1_model40_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1         x!0)+                            (q1_model40 x!0))))+[GOOD] (define-fun q2_model40 ((x!0 Bool) (x!1 Bool)) Bool+          (ite (and (= x!0 false) (= x!1 true)) false+          (ite (and (= x!0 true) (= x!1 true)) false+          true))+       )+[GOOD] (define-fun q2_model40_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2         x!0 x!1)+                            (q2_model40 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_40 () Bool +               (or q1_model40_reject+                   q2_model40_reject+               ))+[GOOD] (assert uiFunRejector_model_40)+Looking for solution 41+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 ((as const (Array Bool Bool)) true)))+[SEND] (get-value (q2))+[RECV] ((q2 (store (store ((as const (Array Bool Bool Bool)) true) true true false)+              false+              true+              false)))+[GOOD] (define-fun q1_model41 ((x!0 Bool)) Bool+          true+       )+[GOOD] (define-fun q1_model41_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1         x!0)+                            (q1_model41 x!0))))+[GOOD] (define-fun q2_model41 ((x!0 Bool) (x!1 Bool)) Bool+          (ite (and (= x!0 false) (= x!1 true)) false+          (ite (and (= x!0 true) (= x!1 true)) false+          true))+       )+[GOOD] (define-fun q2_model41_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2         x!0 x!1)+                            (q2_model41 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_41 () Bool +               (or q1_model41_reject+                   q2_model41_reject+               ))+[GOOD] (assert uiFunRejector_model_41)+Looking for solution 42+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 ((as const (Array Bool Bool)) false)))+[SEND] (get-value (q2))+[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) false) true true true)))+[GOOD] (define-fun q1_model42 ((x!0 Bool)) Bool+          false+       )+[GOOD] (define-fun q1_model42_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1         x!0)+                            (q1_model42 x!0))))+[GOOD] (define-fun q2_model42 ((x!0 Bool) (x!1 Bool)) Bool+          (ite (and (= x!0 true) (= x!1 true)) true+          false)+       )+[GOOD] (define-fun q2_model42_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2         x!0 x!1)+                            (q2_model42 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_42 () Bool +               (or q1_model42_reject+                   q2_model42_reject+               ))+[GOOD] (assert uiFunRejector_model_42)+Looking for solution 43+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 ((as const (Array Bool Bool)) false)))+[SEND] (get-value (q2))+[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) false) true false true)))+[GOOD] (define-fun q1_model43 ((x!0 Bool)) Bool+          false+       )+[GOOD] (define-fun q1_model43_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1         x!0)+                            (q1_model43 x!0))))+[GOOD] (define-fun q2_model43 ((x!0 Bool) (x!1 Bool)) Bool+          (ite (and (= x!0 true) (= x!1 false)) true+          false)+       )+[GOOD] (define-fun q2_model43_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2         x!0 x!1)+                            (q2_model43 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_43 () Bool +               (or q1_model43_reject+                   q2_model43_reject+               ))+[GOOD] (assert uiFunRejector_model_43)+Looking for solution 44+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 ((as const (Array Bool Bool)) false)))+[SEND] (get-value (q2))+[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) false) false true true)))+[GOOD] (define-fun q1_model44 ((x!0 Bool)) Bool+          false+       )+[GOOD] (define-fun q1_model44_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1         x!0)+                            (q1_model44 x!0))))+[GOOD] (define-fun q2_model44 ((x!0 Bool) (x!1 Bool)) Bool+          (ite (and (= x!0 false) (= x!1 true)) true+          false)+       )+[GOOD] (define-fun q2_model44_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2         x!0 x!1)+                            (q2_model44 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_44 () Bool +               (or q1_model44_reject+                   q2_model44_reject+               ))+[GOOD] (assert uiFunRejector_model_44)+Looking for solution 45+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 (lambda ((x!1 Bool)) x!1)))+[SEND] (get-value (q2))+[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) false) false true true)))+[GOOD] (define-fun q1_model45 ((x!0 Bool)) Bool+          (ite (and (= x!0 true)) true+          false)+       )+[GOOD] (define-fun q1_model45_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1         x!0)+                            (q1_model45 x!0))))+[GOOD] (define-fun q2_model45 ((x!0 Bool) (x!1 Bool)) Bool+          (ite (and (= x!0 false) (= x!1 true)) true+          false)+       )+[GOOD] (define-fun q2_model45_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2         x!0 x!1)+                            (q2_model45 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_45 () Bool +               (or q1_model45_reject+                   q2_model45_reject+               ))+[GOOD] (assert uiFunRejector_model_45)+Looking for solution 46+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 (lambda ((x!1 Bool)) x!1)))+[SEND] (get-value (q2))+[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) false) true true true)))+[GOOD] (define-fun q1_model46 ((x!0 Bool)) Bool+          (ite (and (= x!0 true)) true+          false)+       )+[GOOD] (define-fun q1_model46_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1         x!0)+                            (q1_model46 x!0))))+[GOOD] (define-fun q2_model46 ((x!0 Bool) (x!1 Bool)) Bool+          (ite (and (= x!0 true) (= x!1 true)) true+          false)+       )+[GOOD] (define-fun q2_model46_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2         x!0 x!1)+                            (q2_model46 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_46 () Bool +               (or q1_model46_reject+                   q2_model46_reject+               ))+[GOOD] (assert uiFunRejector_model_46)+Looking for solution 47+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 (lambda ((x!1 Bool)) x!1)))+[SEND] (get-value (q2))+[RECV] ((q2 (store (store ((as const (Array Bool Bool Bool)) false) true true true)+              false+              true+              true)))+[GOOD] (define-fun q1_model47 ((x!0 Bool)) Bool+          (ite (and (= x!0 true)) true+          false)+       )+[GOOD] (define-fun q1_model47_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1         x!0)+                            (q1_model47 x!0))))+[GOOD] (define-fun q2_model47 ((x!0 Bool) (x!1 Bool)) Bool+          (ite (and (= x!0 false) (= x!1 true)) true+          (ite (and (= x!0 true) (= x!1 true)) true+          false))+       )+[GOOD] (define-fun q2_model47_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2         x!0 x!1)+                            (q2_model47 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_47 () Bool +               (or q1_model47_reject+                   q2_model47_reject+               ))+[GOOD] (assert uiFunRejector_model_47)+Looking for solution 48+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 ((as const (Array Bool Bool)) false)))+[SEND] (get-value (q2))+[RECV] ((q2 (store (store ((as const (Array Bool Bool Bool)) false) true true true)+              false+              true+              true)))+[GOOD] (define-fun q1_model48 ((x!0 Bool)) Bool+          false+       )+[GOOD] (define-fun q1_model48_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1         x!0)+                            (q1_model48 x!0))))+[GOOD] (define-fun q2_model48 ((x!0 Bool) (x!1 Bool)) Bool+          (ite (and (= x!0 false) (= x!1 true)) true+          (ite (and (= x!0 true) (= x!1 true)) true+          false))+       )+[GOOD] (define-fun q2_model48_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2         x!0 x!1)+                            (q2_model48 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_48 () Bool +               (or q1_model48_reject+                   q2_model48_reject+               ))+[GOOD] (assert uiFunRejector_model_48)+Looking for solution 49+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 ((as const (Array Bool Bool)) false)))+[SEND] (get-value (q2))+[RECV] ((q2 (store (store ((as const (Array Bool Bool Bool)) true) false false false)+              false+              true+              false)))+[GOOD] (define-fun q1_model49 ((x!0 Bool)) Bool+          false+       )+[GOOD] (define-fun q1_model49_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1         x!0)+                            (q1_model49 x!0))))+[GOOD] (define-fun q2_model49 ((x!0 Bool) (x!1 Bool)) Bool+          (ite (and (= x!0 false) (= x!1 true)) false+          (ite (and (= x!0 false) (= x!1 false)) false+          true))+       )+[GOOD] (define-fun q2_model49_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2         x!0 x!1)+                            (q2_model49 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_49 () Bool +               (or q1_model49_reject+                   q2_model49_reject+               ))+[GOOD] (assert uiFunRejector_model_49)+Looking for solution 50+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 ((as const (Array Bool Bool)) false)))+[SEND] (get-value (q2))+[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) true) false false false)))+[GOOD] (define-fun q1_model50 ((x!0 Bool)) Bool+          false+       )+[GOOD] (define-fun q1_model50_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1         x!0)+                            (q1_model50 x!0))))+[GOOD] (define-fun q2_model50 ((x!0 Bool) (x!1 Bool)) Bool+          (ite (and (= x!0 false) (= x!1 false)) false+          true)+       )+[GOOD] (define-fun q2_model50_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2         x!0 x!1)+                            (q2_model50 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_50 () Bool +               (or q1_model50_reject+                   q2_model50_reject+               ))+[GOOD] (assert uiFunRejector_model_50)+Looking for solution 51+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 (lambda ((x!1 Bool)) x!1)))+[SEND] (get-value (q2))+[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) true) false false false)))+[GOOD] (define-fun q1_model51 ((x!0 Bool)) Bool+          (ite (and (= x!0 true)) true+          false)+       )+[GOOD] (define-fun q1_model51_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1         x!0)+                            (q1_model51 x!0))))+[GOOD] (define-fun q2_model51 ((x!0 Bool) (x!1 Bool)) Bool+          (ite (and (= x!0 false) (= x!1 false)) false+          true)+       )+[GOOD] (define-fun q2_model51_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2         x!0 x!1)+                            (q2_model51 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_51 () Bool +               (or q1_model51_reject+                   q2_model51_reject+               ))+[GOOD] (assert uiFunRejector_model_51)+Looking for solution 52+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 (lambda ((x!1 Bool)) x!1)))+[SEND] (get-value (q2))+[RECV] ((q2 (store (store ((as const (Array Bool Bool Bool)) true) false false false)+              true+              true+              false)))+[GOOD] (define-fun q1_model52 ((x!0 Bool)) Bool+          (ite (and (= x!0 true)) true+          false)+       )+[GOOD] (define-fun q1_model52_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1         x!0)+                            (q1_model52 x!0))))+[GOOD] (define-fun q2_model52 ((x!0 Bool) (x!1 Bool)) Bool+          (ite (and (= x!0 true) (= x!1 true)) false+          (ite (and (= x!0 false) (= x!1 false)) false+          true))+       )+[GOOD] (define-fun q2_model52_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2         x!0 x!1)+                            (q2_model52 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_52 () Bool +               (or q1_model52_reject+                   q2_model52_reject+               ))+[GOOD] (assert uiFunRejector_model_52)+Looking for solution 53+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 ((as const (Array Bool Bool)) false)))+[SEND] (get-value (q2))+[RECV] ((q2 (store (store ((as const (Array Bool Bool Bool)) true) false false false)+              true+              true+              false)))+[GOOD] (define-fun q1_model53 ((x!0 Bool)) Bool+          false+       )+[GOOD] (define-fun q1_model53_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1         x!0)+                            (q1_model53 x!0))))+[GOOD] (define-fun q2_model53 ((x!0 Bool) (x!1 Bool)) Bool+          (ite (and (= x!0 true) (= x!1 true)) false+          (ite (and (= x!0 false) (= x!1 false)) false+          true))+       )+[GOOD] (define-fun q2_model53_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2         x!0 x!1)+                            (q2_model53 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_53 () Bool +               (or q1_model53_reject+                   q2_model53_reject+               ))+[GOOD] (assert uiFunRejector_model_53)+Looking for solution 54+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 (lambda ((x!1 Bool)) x!1)))+[SEND] (get-value (q2))+[RECV] ((q2 (store (store ((as const (Array Bool Bool Bool)) true) false false false)+              false+              true+              false)))+[GOOD] (define-fun q1_model54 ((x!0 Bool)) Bool+          (ite (and (= x!0 true)) true+          false)+       )+[GOOD] (define-fun q1_model54_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1         x!0)+                            (q1_model54 x!0))))+[GOOD] (define-fun q2_model54 ((x!0 Bool) (x!1 Bool)) Bool+          (ite (and (= x!0 false) (= x!1 true)) false+          (ite (and (= x!0 false) (= x!1 false)) false+          true))+       )+[GOOD] (define-fun q2_model54_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2         x!0 x!1)+                            (q2_model54 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_54 () Bool +               (or q1_model54_reject+                   q2_model54_reject+               ))+[GOOD] (assert uiFunRejector_model_54)+Looking for solution 55+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 (store ((as const (Array Bool Bool)) false) false true)))+[SEND] (get-value (q2))+[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) false) true true true)))+[GOOD] (define-fun q1_model55 ((x!0 Bool)) Bool+          (ite (and (= x!0 false)) true+          false)+       )+[GOOD] (define-fun q1_model55_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1         x!0)+                            (q1_model55 x!0))))+[GOOD] (define-fun q2_model55 ((x!0 Bool) (x!1 Bool)) Bool+          (ite (and (= x!0 true) (= x!1 true)) true+          false)+       )+[GOOD] (define-fun q2_model55_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2         x!0 x!1)+                            (q2_model55 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_55 () Bool +               (or q1_model55_reject+                   q2_model55_reject+               ))+[GOOD] (assert uiFunRejector_model_55)+Looking for solution 56+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 ((as const (Array Bool Bool)) true)))+[SEND] (get-value (q2))+[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) true) true true false)))+[GOOD] (define-fun q1_model56 ((x!0 Bool)) Bool+          true+       )+[GOOD] (define-fun q1_model56_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1         x!0)+                            (q1_model56 x!0))))+[GOOD] (define-fun q2_model56 ((x!0 Bool) (x!1 Bool)) Bool+          (ite (and (= x!0 true) (= x!1 true)) false+          true)+       )+[GOOD] (define-fun q2_model56_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2         x!0 x!1)+                            (q2_model56 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_56 () Bool +               (or q1_model56_reject+                   q2_model56_reject+               ))+[GOOD] (assert uiFunRejector_model_56)+Looking for solution 57+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 (store ((as const (Array Bool Bool)) true) true false)))+[SEND] (get-value (q2))+[RECV] ((q2 (store (store ((as const (Array Bool Bool Bool)) false) true false true)+              false+              false+              true)))+[GOOD] (define-fun q1_model57 ((x!0 Bool)) Bool+          (ite (and (= x!0 true)) false+          true)+       )+[GOOD] (define-fun q1_model57_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1         x!0)+                            (q1_model57 x!0))))+[GOOD] (define-fun q2_model57 ((x!0 Bool) (x!1 Bool)) Bool+          (ite (and (= x!0 false) (= x!1 false)) true+          (ite (and (= x!0 true) (= x!1 false)) true+          false))+       )+[GOOD] (define-fun q2_model57_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2         x!0 x!1)+                            (q2_model57 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_57 () Bool +               (or q1_model57_reject+                   q2_model57_reject+               ))+[GOOD] (assert uiFunRejector_model_57)+Looking for solution 58+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 (store ((as const (Array Bool Bool)) true) true false)))+[SEND] (get-value (q2))+[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) false) false false true)))+[GOOD] (define-fun q1_model58 ((x!0 Bool)) Bool+          (ite (and (= x!0 true)) false+          true)+       )+[GOOD] (define-fun q1_model58_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1         x!0)+                            (q1_model58 x!0))))+[GOOD] (define-fun q2_model58 ((x!0 Bool) (x!1 Bool)) Bool+          (ite (and (= x!0 false) (= x!1 false)) true+          false)+       )+[GOOD] (define-fun q2_model58_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2         x!0 x!1)+                            (q2_model58 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_58 () Bool +               (or q1_model58_reject+                   q2_model58_reject+               ))+[GOOD] (assert uiFunRejector_model_58)+Looking for solution 59+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 ((as const (Array Bool Bool)) false)))+[SEND] (get-value (q2))+[RECV] ((q2 (store (store ((as const (Array Bool Bool Bool)) true) true true false)+              true+              false+              false)))+[GOOD] (define-fun q1_model59 ((x!0 Bool)) Bool+          false+       )+[GOOD] (define-fun q1_model59_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1         x!0)+                            (q1_model59 x!0))))+[GOOD] (define-fun q2_model59 ((x!0 Bool) (x!1 Bool)) Bool+          (ite (and (= x!0 true) (= x!1 false)) false+          (ite (and (= x!0 true) (= x!1 true)) false+          true))+       )+[GOOD] (define-fun q2_model59_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2         x!0 x!1)+                            (q2_model59 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_59 () Bool +               (or q1_model59_reject+                   q2_model59_reject+               ))+[GOOD] (assert uiFunRejector_model_59)+Looking for solution 60+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 (lambda ((x!1 Bool)) x!1)))+[SEND] (get-value (q2))+[RECV] ((q2 (store (store ((as const (Array Bool Bool Bool)) true) true true false)+              true+              false+              false)))+[GOOD] (define-fun q1_model60 ((x!0 Bool)) Bool+          (ite (and (= x!0 true)) true+          false)+       )+[GOOD] (define-fun q1_model60_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1         x!0)+                            (q1_model60 x!0))))+[GOOD] (define-fun q2_model60 ((x!0 Bool) (x!1 Bool)) Bool+          (ite (and (= x!0 true) (= x!1 false)) false+          (ite (and (= x!0 true) (= x!1 true)) false+          true))+       )+[GOOD] (define-fun q2_model60_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2         x!0 x!1)+                            (q2_model60 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_60 () Bool +               (or q1_model60_reject+                   q2_model60_reject+               ))+[GOOD] (assert uiFunRejector_model_60)+Looking for solution 61+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 ((as const (Array Bool Bool)) true)))+[SEND] (get-value (q2))+[RECV] ((q2 (store (store ((as const (Array Bool Bool Bool)) false) false true true)+              false+              false+              true)))+[GOOD] (define-fun q1_model61 ((x!0 Bool)) Bool+          true+       )+[GOOD] (define-fun q1_model61_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1         x!0)+                            (q1_model61 x!0))))+[GOOD] (define-fun q2_model61 ((x!0 Bool) (x!1 Bool)) Bool+          (ite (and (= x!0 false) (= x!1 false)) true+          (ite (and (= x!0 false) (= x!1 true)) true+          false))+       )+[GOOD] (define-fun q2_model61_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2         x!0 x!1)+                            (q2_model61 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_61 () Bool +               (or q1_model61_reject+                   q2_model61_reject+               ))+[GOOD] (assert uiFunRejector_model_61)+Looking for solution 62+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 ((as const (Array Bool Bool)) true)))+[SEND] (get-value (q2))+[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) false) false false true)))+[GOOD] (define-fun q1_model62 ((x!0 Bool)) Bool+          true+       )+[GOOD] (define-fun q1_model62_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1         x!0)+                            (q1_model62 x!0))))+[GOOD] (define-fun q2_model62 ((x!0 Bool) (x!1 Bool)) Bool+          (ite (and (= x!0 false) (= x!1 false)) true+          false)+       )+[GOOD] (define-fun q2_model62_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2         x!0 x!1)+                            (q2_model62 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_62 () Bool +               (or q1_model62_reject+                   q2_model62_reject+               ))+[GOOD] (assert uiFunRejector_model_62)+Looking for solution 63+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 ((as const (Array Bool Bool)) true)))+[SEND] (get-value (q2))+[RECV] ((q2 (store ((as const (Array Bool Bool Bool)) false) true true true)))+[GOOD] (define-fun q1_model63 ((x!0 Bool)) Bool+          true+       )+[GOOD] (define-fun q1_model63_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1         x!0)+                            (q1_model63 x!0))))+[GOOD] (define-fun q2_model63 ((x!0 Bool) (x!1 Bool)) Bool+          (ite (and (= x!0 true) (= x!1 true)) true+          false)+       )+[GOOD] (define-fun q2_model63_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2         x!0 x!1)+                            (q2_model63 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_63 () Bool +               (or q1_model63_reject+                   q2_model63_reject+               ))+[GOOD] (assert uiFunRejector_model_63)+Looking for solution 64+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (q1))+[RECV] ((q1 (store ((as const (Array Bool Bool)) false) false true)))+[SEND] (get-value (q2))+[RECV] ((q2 (store (store ((as const (Array Bool Bool Bool)) false) false true true)+              false+              false+              true)))+[GOOD] (define-fun q1_model64 ((x!0 Bool)) Bool+          (ite (and (= x!0 false)) true+          false)+       )+[GOOD] (define-fun q1_model64_reject () Bool+          (exists ((x!0 Bool))+                  (distinct (q1         x!0)+                            (q1_model64 x!0))))+[GOOD] (define-fun q2_model64 ((x!0 Bool) (x!1 Bool)) Bool+          (ite (and (= x!0 false) (= x!1 false)) true+          (ite (and (= x!0 false) (= x!1 true)) true+          false))+       )+[GOOD] (define-fun q2_model64_reject () Bool+          (exists ((x!0 Bool) (x!1 Bool))+                  (distinct (q2         x!0 x!1)+                            (q2_model64 x!0 x!1))))+[GOOD] (define-fun uiFunRejector_model_64 () Bool +               (or q1_model64_reject+                   q2_model64_reject+               ))+[GOOD] (assert uiFunRejector_model_64)+Looking for solution 65+[SEND] (check-sat)+[RECV] unsat+*** Solver   : Z3+*** Exit code: ExitSuccess++RESULT: Solution #1:+  q1 :: Bool -> Bool+  q1 False = True+  q1 _     = False++  q2 :: Bool -> Bool -> Bool+  q2 False False = True+  q2 False True  = True+  q2 _     _     = False+Solution #2:+  q1 :: Bool -> Bool+  q1 _ = True++  q2 :: Bool -> Bool -> Bool+  q2 True True = True+  q2 _    _    = False+Solution #3:+  q1 :: Bool -> Bool+  q1 _ = True++  q2 :: Bool -> Bool -> Bool+  q2 False False = True+  q2 _     _     = False+Solution #4:+  q1 :: Bool -> Bool+  q1 _ = True++  q2 :: Bool -> Bool -> Bool+  q2 False False = True+  q2 False True  = True+  q2 _     _     = False+Solution #5:+  q1 :: Bool -> Bool+  q1 True = True+  q1 _    = False++  q2 :: Bool -> Bool -> Bool+  q2 True False = False+  q2 True True  = False+  q2 _    _     = True+Solution #6:+  q1 :: Bool -> Bool+  q1 _ = False++  q2 :: Bool -> Bool -> Bool+  q2 True False = False+  q2 True True  = False+  q2 _    _     = True+Solution #7:+  q1 :: Bool -> Bool+  q1 True = False+  q1 _    = True++  q2 :: Bool -> Bool -> Bool+  q2 False False = True+  q2 _     _     = False+Solution #8:+  q1 :: Bool -> Bool+  q1 True = False+  q1 _    = True++  q2 :: Bool -> Bool -> Bool+  q2 False False = True+  q2 True  False = True+  q2 _     _     = False+Solution #9:+  q1 :: Bool -> Bool+  q1 _ = True++  q2 :: Bool -> Bool -> Bool+  q2 True True = False+  q2 _    _    = True+Solution #10:+  q1 :: Bool -> Bool+  q1 False = True+  q1 _     = False++  q2 :: Bool -> Bool -> Bool+  q2 True True = True+  q2 _    _    = False+Solution #11:+  q1 :: Bool -> Bool+  q1 True = True+  q1 _    = False++  q2 :: Bool -> Bool -> Bool+  q2 False True  = False+  q2 False False = False+  q2 _     _     = True+Solution #12:+  q1 :: Bool -> Bool+  q1 _ = False++  q2 :: Bool -> Bool -> Bool+  q2 True  True  = False+  q2 False False = False+  q2 _     _     = True+Solution #13:+  q1 :: Bool -> Bool+  q1 True = True+  q1 _    = False++  q2 :: Bool -> Bool -> Bool+  q2 True  True  = False+  q2 False False = False+  q2 _     _     = True+Solution #14:+  q1 :: Bool -> Bool+  q1 True = True+  q1 _    = False++  q2 :: Bool -> Bool -> Bool+  q2 False False = False+  q2 _     _     = True+Solution #15:+  q1 :: Bool -> Bool+  q1 _ = False++  q2 :: Bool -> Bool -> Bool+  q2 False False = False+  q2 _     _     = True+Solution #16:+  q1 :: Bool -> Bool+  q1 _ = False++  q2 :: Bool -> Bool -> Bool+  q2 False True  = False+  q2 False False = False+  q2 _     _     = True+Solution #17:+  q1 :: Bool -> Bool+  q1 _ = False++  q2 :: Bool -> Bool -> Bool+  q2 False True = True+  q2 True  True = True+  q2 _     _    = False+Solution #18:+  q1 :: Bool -> Bool+  q1 True = True+  q1 _    = False++  q2 :: Bool -> Bool -> Bool+  q2 False True = True+  q2 True  True = True+  q2 _     _    = False+Solution #19:+  q1 :: Bool -> Bool+  q1 True = True+  q1 _    = False++  q2 :: Bool -> Bool -> Bool+  q2 True True = True+  q2 _    _    = False+Solution #20:+  q1 :: Bool -> Bool+  q1 True = True+  q1 _    = False++  q2 :: Bool -> Bool -> Bool+  q2 False True = True+  q2 _     _    = False+Solution #21:+  q1 :: Bool -> Bool+  q1 _ = False++  q2 :: Bool -> Bool -> Bool+  q2 False True = True+  q2 _     _    = False+Solution #22:+  q1 :: Bool -> Bool+  q1 _ = False++  q2 :: Bool -> Bool -> Bool+  q2 True False = True+  q2 _    _     = False+Solution #23:+  q1 :: Bool -> Bool+  q1 _ = False++  q2 :: Bool -> Bool -> Bool+  q2 True True = True+  q2 _    _    = False+Solution #24:+  q1 :: Bool -> Bool+  q1 _ = True++  q2 :: Bool -> Bool -> Bool+  q2 False True = False+  q2 True  True = False+  q2 _     _    = True+Solution #25:+  q1 :: Bool -> Bool+  q1 _ = False++  q2 :: Bool -> Bool -> Bool+  q2 False True = False+  q2 True  True = False+  q2 _     _    = True+Solution #26:+  q1 :: Bool -> Bool+  q1 _ = False++  q2 :: Bool -> Bool -> Bool+  q2 True True = False+  q2 _    _    = True+Solution #27:+  q1 :: Bool -> Bool+  q1 True = False+  q1 _    = True++  q2 :: Bool -> Bool -> Bool+  q2 True True = False+  q2 _    _    = True+Solution #28:+  q1 :: Bool -> Bool+  q1 True = False+  q1 _    = True++  q2 :: Bool -> Bool -> Bool+  q2 True  True = True+  q2 False True = True+  q2 _     _    = False+Solution #29:+  q1 :: Bool -> Bool+  q1 _ = True++  q2 :: Bool -> Bool -> Bool+  q2 False True = True+  q2 _     _    = False+Solution #30:+  q1 :: Bool -> Bool+  q1 _ = True++  q2 :: Bool -> Bool -> Bool+  q2 True  True = True+  q2 False True = True+  q2 _     _    = False+Solution #31:+  q1 :: Bool -> Bool+  q1 _ = True++  q2 :: Bool -> Bool -> Bool+  q2 False False = False+  q2 _     _     = True+Solution #32:+  q1 :: Bool -> Bool+  q1 _ = True++  q2 :: Bool -> Bool -> Bool+  q2 False True  = True+  q2 True  False = True+  q2 _     _     = False+Solution #33:+  q1 :: Bool -> Bool+  q1 _ = True++  q2 :: Bool -> Bool -> Bool+  q2 True False = True+  q2 _    _     = False+Solution #34:+  q1 :: Bool -> Bool+  q1 _ = True++  q2 :: Bool -> Bool -> Bool+  q2 False True  = False+  q2 False False = False+  q2 _     _     = True+Solution #35:+  q1 :: Bool -> Bool+  q1 True = False+  q1 _    = True++  q2 :: Bool -> Bool -> Bool+  q2 False True  = False+  q2 False False = False+  q2 _     _     = True+Solution #36:+  q1 :: Bool -> Bool+  q1 True = False+  q1 _    = True++  q2 :: Bool -> Bool -> Bool+  q2 True  True  = False+  q2 False False = False+  q2 _     _     = True+Solution #37:+  q1 :: Bool -> Bool+  q1 True = False+  q1 _    = True++  q2 :: Bool -> Bool -> Bool+  q2 False False = False+  q2 _     _     = True+Solution #38:+  q1 :: Bool -> Bool+  q1 True = False+  q1 _    = True++  q2 :: Bool -> Bool -> Bool+  q2 False True = True+  q2 _     _    = False+Solution #39:+  q1 :: Bool -> Bool+  q1 True = False+  q1 _    = True++  q2 :: Bool -> Bool -> Bool+  q2 _ _ = False+Solution #40:+  q1 :: Bool -> Bool+  q1 True = False+  q1 _    = True++  q2 :: Bool -> Bool -> Bool+  q2 True False = True+  q2 _    _     = False+Solution #41:+  q1 :: Bool -> Bool+  q1 True = True+  q1 _    = False++  q2 :: Bool -> Bool -> Bool+  q2 True False = True+  q2 _    _     = False+Solution #42:+  q1 :: Bool -> Bool+  q1 True = True+  q1 _    = False++  q2 :: Bool -> Bool -> Bool+  q2 _ _ = False+Solution #43:+  q1 :: Bool -> Bool+  q1 _ = True++  q2 :: Bool -> Bool -> Bool+  q2 False True = False+  q2 _     _    = True+Solution #44:+  q1 :: Bool -> Bool+  q1 _ = True++  q2 :: Bool -> Bool -> Bool+  q2 _ _ = True+Solution #45:+  q1 :: Bool -> Bool+  q1 True = False+  q1 _    = True++  q2 :: Bool -> Bool -> Bool+  q2 _ _ = True+Solution #46:+  q1 :: Bool -> Bool+  q1 True = False+  q1 _    = True++  q2 :: Bool -> Bool -> Bool+  q2 False True = False+  q2 _     _    = True+Solution #47:+  q1 :: Bool -> Bool+  q1 False = True+  q1 _     = False++  q2 :: Bool -> Bool -> Bool+  q2 True False = False+  q2 _    _     = True+Solution #48:+  q1 :: Bool -> Bool+  q1 _ = False++  q2 :: Bool -> Bool -> Bool+  q2 True False = False+  q2 _    _     = True+Solution #49:+  q1 :: Bool -> Bool+  q1 _ = False++  q2 :: Bool -> Bool -> Bool+  q2 False True  = False+  q2 True  False = False+  q2 _     _     = True+Solution #50:+  q1 :: Bool -> Bool+  q1 True = False+  q1 _    = True++  q2 :: Bool -> Bool -> Bool+  q2 False True  = False+  q2 True  False = False+  q2 _     _     = True+Solution #51:+  q1 :: Bool -> Bool+  q1 _ = True++  q2 :: Bool -> Bool -> Bool+  q2 True False = False+  q2 _    _     = True+Solution #52:+  q1 :: Bool -> Bool+  q1 _ = True++  q2 :: Bool -> Bool -> Bool+  q2 False True  = False+  q2 True  False = False+  q2 _     _     = True+Solution #53:+  q1 :: Bool -> Bool+  q1 True = True+  q1 _    = False++  q2 :: Bool -> Bool -> Bool+  q2 False True  = False+  q2 True  False = False+  q2 _     _     = True+Solution #54:+  q1 :: Bool -> Bool+  q1 True = True+  q1 _    = False++  q2 :: Bool -> Bool -> Bool+  q2 True False = False+  q2 _    _     = True+Solution #55:+  q1 :: Bool -> Bool+  q1 True = True+  q1 _    = False++  q2 :: Bool -> Bool -> Bool+  q2 _ _ = True+Solution #56:+  q1 :: Bool -> Bool+  q1 True = True+  q1 _    = False++  q2 :: Bool -> Bool -> Bool+  q2 True True = False+  q2 _    _    = True+Solution #57:+  q1 :: Bool -> Bool+  q1 True = True+  q1 _    = False++  q2 :: Bool -> Bool -> Bool+  q2 True  True = False+  q2 False True = False+  q2 _     _    = True+Solution #58:+  q1 :: Bool -> Bool+  q1 True = True+  q1 _    = False++  q2 :: Bool -> Bool -> Bool+  q2 False True = False+  q2 _     _    = True+Solution #59:+  q1 :: Bool -> Bool+  q1 True = True+  q1 _    = False++  q2 :: Bool -> Bool -> Bool+  q2 False False = True+  q2 _     _     = False+Solution #60:+  q1 :: Bool -> Bool+  q1 _ = False++  q2 :: Bool -> Bool -> Bool+  q2 False False = True+  q2 _     _     = False+Solution #61:+  q1 :: Bool -> Bool+  q1 _ = False++  q2 :: Bool -> Bool -> Bool+  q2 False True = False+  q2 _     _    = True Solution #62:   q1 :: Bool -> Bool   q1 _ = False
SBVTestSuite/GoldFiles/unint-axioms-empty.gold view
@@ -5,12 +5,11 @@ [GOOD] (set-option :smtlib2_compliant true) [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true)-[GOOD] (set-logic ALL) ; has user-defined sorts, using catch-all.-[GOOD] ; --- uninterpreted sorts ----[GOOD] (declare-sort Thing 0)  ; N.B. Uninterpreted sort.-[GOOD] (declare-fun Thing_witness () Thing)+[GOOD] (set-logic ALL) ; has user-defined data-types, using catch-all. [GOOD] ; --- tuples --- [GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] (declare-sort Thing 0) ; N.B. Uninterpreted sort. [GOOD] ; --- literal constants --- [GOOD] ; --- top level inputs --- [GOOD] (declare-fun s2 () Thing) ; tracks user variable "__internal_sbv_s2"
SBVTestSuite/GoldFiles/unint-axioms-query.gold view
@@ -5,12 +5,11 @@ [GOOD] (set-option :smtlib2_compliant true) [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true)-[GOOD] (set-logic ALL) ; has user-defined sorts, using catch-all.-[GOOD] ; --- uninterpreted sorts ----[GOOD] (declare-sort B 0)  ; N.B. Uninterpreted sort.-[GOOD] (declare-fun B_witness () B)+[GOOD] (set-logic ALL) ; has user-defined data-types, using catch-all. [GOOD] ; --- tuples --- [GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] (declare-sort B 0) ; N.B. Uninterpreted sort. [GOOD] ; --- literal constants --- [GOOD] ; --- top level inputs --- [GOOD] (declare-fun s0 () B) ; tracks user variable "p"
SBVTestSuite/GoldFiles/unint-axioms.gold view
@@ -5,12 +5,11 @@ [GOOD] (set-option :smtlib2_compliant true) [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true)-[GOOD] (set-logic ALL) ; has user-defined sorts, using catch-all.-[GOOD] ; --- uninterpreted sorts ----[GOOD] (declare-sort Bitstring 0)  ; N.B. Uninterpreted sort.-[GOOD] (declare-fun Bitstring_witness () Bitstring)+[GOOD] (set-logic ALL) ; has user-defined data-types, using catch-all. [GOOD] ; --- tuples --- [GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] (declare-sort Bitstring 0) ; N.B. Uninterpreted sort. [GOOD] ; --- literal constants --- [GOOD] ; --- top level inputs --- [GOOD] (declare-fun s1 () Bitstring) ; tracks user variable "p"
+ SBVTestSuite/GoldFiles/unint-sort01.gold view
@@ -0,0 +1,37 @@+Solution #1:+  l  = L_1 :: L+  l0 = L_0 :: L+  l1 = L_1 :: L+  x  =   1 :: Integer++  len :: L -> Integer+  len L_1 = 1+  len _   = 0+Solution #2:+  l  = L_0 :: L+  l0 = L_0 :: L+  l1 = L_1 :: L+  x  =   0 :: Integer++  len :: L -> Integer+  len L_1 = 1+  len _   = 0+Solution #3:+  l  = L_1 :: L+  l0 = L_0 :: L+  l1 = L_1 :: L+  x  =   0 :: Integer++  len :: L -> Integer+  len L_1 = 1+  len _   = 0+Solution #4:+  l  = L_0 :: L+  l0 = L_0 :: L+  l1 = L_1 :: L+  x  =   1 :: Integer++  len :: L -> Integer+  len L_1 = 1+  len _   = 0+Found 4 different solutions.
+ SBVTestSuite/GoldFiles/uninterpreted-1a.gold view
@@ -0,0 +1,53 @@+** Calling: z3 -nw -in -smt2+[GOOD] ; Automatically generated by SBV. Do not edit.+[GOOD] (set-option :print-success true)+[GOOD] (set-option :global-declarations true)+[GOOD] (set-option :smtlib2_compliant true)+[GOOD] (set-option :diagnostic-output-channel "stdout")+[GOOD] (set-option :produce-models true)+[GOOD] (set-logic QF_UFBV)+[GOOD] ; --- tuples ---+[GOOD] ; --- sums ---+[GOOD] ; --- literal constants ---+[GOOD] ; --- top level inputs ---+[GOOD] (declare-fun s0 () (_ BitVec 8))+[GOOD] (declare-fun s1 () (_ BitVec 16))+[GOOD] (declare-fun s2 () (_ BitVec 16))+[GOOD] ; --- constant tables ---+[GOOD] ; --- non-constant tables ---+[GOOD] ; --- uninterpreted constants ---+[GOOD] (declare-fun g ((_ BitVec 8) (_ BitVec 16)) (_ BitVec 32))+[GOOD] ; --- user defined functions ---+[GOOD] ; --- assignments ---+[GOOD] (define-fun s3 () Bool (= s1 s2))+[GOOD] (define-fun s4 () (_ BitVec 32) (g s0 s1))+[GOOD] (define-fun s5 () (_ BitVec 32) (g s0 s2))+[GOOD] (define-fun s6 () Bool (= s4 s5))+[GOOD] (define-fun s7 () Bool (=> s3 s6))+[GOOD] ; --- delayedEqualities ---+[GOOD] ; --- formula ---+[GOOD] (assert s7)+[SEND] (check-sat)+[RECV] sat+[SEND] (get-value (s0))+[RECV] ((s0 #x00))+[SEND] (get-value (s1))+[RECV] ((s1 #x0000))+[SEND] (get-value (s2))+[RECV] ((s2 #x0000))+[GOOD] (set-option :pp.max_depth      4294967295)+[GOOD] (set-option :pp.min_alias_size 4294967295)+[GOOD] (set-option :model.inline_def  true      )+[SEND] (get-value (g))+[RECV] ((g ((as const (Array (_ BitVec 8) (_ BitVec 16) (_ BitVec 32))) #x00000000)))+*** Solver   : Z3+*** Exit code: ExitSuccess++ FINAL:Satisfiable. Model:+  s0 = 0 :: Int8+  s1 = 0 :: Word16+  s2 = 0 :: Word16++  g :: (Int8, Word16) -> Word32+  g (_, _) = 0+DONE!
SBVTestSuite/GoldFiles/uninterpreted-3.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/uninterpreted-3a.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_UFBV)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/uninterpreted-4.gold view
@@ -5,12 +5,11 @@ [GOOD] (set-option :smtlib2_compliant true) [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true)-[GOOD] (set-logic ALL) ; has user-defined sorts, using catch-all.-[GOOD] ; --- uninterpreted sorts ----[GOOD] (declare-sort Q 0)  ; N.B. Uninterpreted sort.-[GOOD] (declare-fun Q_witness () Q)+[GOOD] (set-logic ALL) ; has user-defined data-types, using catch-all. [GOOD] ; --- tuples --- [GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] (declare-sort Q 0) ; N.B. Uninterpreted sort. [GOOD] ; --- literal constants --- [GOOD] ; --- top level inputs --- [GOOD] ; --- constant tables ---
SBVTestSuite/GoldFiles/uninterpreted-4a.gold view
@@ -5,12 +5,11 @@ [GOOD] (set-option :smtlib2_compliant true) [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true)-[GOOD] (set-logic ALL) ; has user-defined sorts, using catch-all.-[GOOD] ; --- uninterpreted sorts ----[GOOD] (declare-sort Q 0)  ; N.B. Uninterpreted sort.-[GOOD] (declare-fun Q_witness () Q)+[GOOD] (set-logic ALL) ; has user-defined data-types, using catch-all. [GOOD] ; --- tuples --- [GOOD] ; --- sums ---+[GOOD] ; --- ADTs  --- +[GOOD] (declare-sort Q 0) ; N.B. Uninterpreted sort. [GOOD] ; --- literal constants --- [GOOD] ; --- top level inputs --- [GOOD] ; --- constant tables ---
SBVTestSuite/GoldFiles/validate_0.gold view
@@ -6,7 +6,6 @@ [ISSUE] (set-option :diagnostic-output-channel "stdout") [ISSUE] (set-option :produce-models true) [ISSUE] (set-logic QF_BV)-[ISSUE] ; --- uninterpreted sorts --- [ISSUE] ; --- tuples --- [ISSUE] ; --- sums --- [ISSUE] ; --- literal constants ---
SBVTestSuite/GoldFiles/validate_1.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_FP)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/validate_2.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic QF_FP)-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---@@ -26,11 +25,11 @@ [SEND] (check-sat) [RECV] sat [SEND] (get-value (s0))-[RECV] ((s0 (fp #b0 #x00 #b00000001001110100110010)))+[RECV] ((s0 (fp #b0 #x00 #b00000000000000011001101))) *** Solver   : Z3 *** Exit code: ExitSuccess [VALIDATE] Validating the model. Assignment:-[VALIDATE]       x = 5.6391e-41 :: Float+[VALIDATE]       x = 2.87e-43 :: Float [VALIDATE] There are no constraints to check. [VALIDATE] Validating outputs. @@ -39,7 +38,7 @@ ***  *** Assignment: *** -***       x = 5.6391e-41 :: Float+***       x = 2.87e-43 :: Float ***  *** Floating point FMA operation is not supported concretely. *** @@ -49,4 +48,4 @@ *** Alleged model: *** *** Satisfiable. Model:-***   x = 5.6391e-41 :: Float+***   x = 2.87e-43 :: Float
SBVTestSuite/GoldFiles/validate_3.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/validate_4.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/validate_5.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/validate_6.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/GoldFiles/validate_7.gold view
@@ -6,7 +6,6 @@ [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-logic ALL) ; has quantified booleans, using catch-all.-[GOOD] ; --- uninterpreted sorts --- [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- literal constants ---
SBVTestSuite/SBVTest.hs view
@@ -9,14 +9,16 @@ -- Main entry point to the test suite ----------------------------------------------------------------------------- -{-# LANGUAGE ScopedTypeVariables #-}- {-# OPTIONS_GHC -Wall -Werror #-}  module Main(main) where  import Test.Tasty +import qualified TestSuite.ADT.ADT+import qualified TestSuite.ADT.Expr+import qualified TestSuite.ADT.MutRec+import qualified TestSuite.ADT.PExpr import qualified TestSuite.Arrays.InitVals import qualified TestSuite.Arrays.Memory import qualified TestSuite.Arrays.Query@@ -45,7 +47,9 @@ import qualified TestSuite.Basics.QRem import qualified TestSuite.Basics.Quantifiers import qualified TestSuite.Basics.Recursive+import qualified TestSuite.Basics.TPCaching import qualified TestSuite.Basics.Set+import qualified TestSuite.Basics.SmtFunctionUnique import qualified TestSuite.Basics.SmallShifts import qualified TestSuite.Basics.SquashReals import qualified TestSuite.Basics.String@@ -120,16 +124,25 @@ import qualified TestSuite.Queries.UISatEx import qualified TestSuite.Queries.Uninterpreted import qualified TestSuite.QuickCheck.QC+import qualified TestSuite.CompileTests.SCase+import qualified TestSuite.CompileTests.PCase import qualified TestSuite.Transformers.SymbolicEval import qualified TestSuite.Uninterpreted.AUF import qualified TestSuite.Uninterpreted.Axioms+import qualified TestSuite.Uninterpreted.EUFLogic import qualified TestSuite.Uninterpreted.Function import qualified TestSuite.Uninterpreted.Sort import qualified TestSuite.Uninterpreted.Uninterpreted  main :: IO ()-main = defaultMain $ testGroup "SBV" [-                        TestSuite.Arrays.InitVals.tests+main = do sCaseTests <- TestSuite.CompileTests.SCase.tests+          pCaseTests <- TestSuite.CompileTests.PCase.tests+          defaultMain $ testGroup "SBV" [+                        TestSuite.ADT.ADT.tests+                      , TestSuite.ADT.Expr.tests+                      , TestSuite.ADT.MutRec.tests+                      , TestSuite.ADT.PExpr.tests+                      , TestSuite.Arrays.InitVals.tests                       , TestSuite.Arrays.Memory.tests                       , TestSuite.Arrays.Query.tests                       , TestSuite.Arrays.Caching.tests@@ -159,7 +172,9 @@                       , TestSuite.Basics.QRem.tests                       , TestSuite.Basics.Quantifiers.tests                       , TestSuite.Basics.Recursive.tests+                      , TestSuite.Basics.TPCaching.tests                       , TestSuite.Basics.Set.tests+                      , TestSuite.Basics.SmtFunctionUnique.tests                       , TestSuite.Basics.SmallShifts.tests                       , TestSuite.Basics.SquashReals.tests                       , TestSuite.Basics.String.tests@@ -240,4 +255,7 @@                       , TestSuite.Uninterpreted.Function.tests                       , TestSuite.Uninterpreted.Sort.tests                       , TestSuite.Uninterpreted.Uninterpreted.tests+                      , TestSuite.Uninterpreted.EUFLogic.tests+                      , sCaseTests+                      , pCaseTests                       ]
+ SBVTestSuite/TestSuite/ADT/ADT.hs view
@@ -0,0 +1,131 @@+-----------------------------------------------------------------------------+-- |+-- Module    : TestSuite.ADT.ADT+-- Copyright : (c) Levent Erkok+-- License   : BSD3+-- Maintainer: erkokl@gmail.com+-- Stability : experimental+--+-- Testing ADTs+-----------------------------------------------------------------------------++{-# LANGUAGE DataKinds           #-}+{-# LANGUAGE FlexibleInstances   #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TemplateHaskell     #-}+{-# LANGUAGE TypeApplications    #-}++{-# OPTIONS_GHC -Wall -Werror -Wno-unused-top-binds #-}++module TestSuite.ADT.ADT(tests) where++import Utils.SBVTestFramework+import Data.SBV.Control+import Data.SBV.Maybe++data ADT  = AEmpty+          | ABool     Bool+          | AInteger  Integer+          | AWord8    Word8+          | AWord16   Word16+          | AWord32   Word32+          | AWord64   Word64+          | AInt8     Int8+          | AInt16    Int16+          | AInt32    Int32+          | AInt64    Int64+          | AWord1    (WordN  1)+          | AWord5    (WordN  5)+          | AWord30   (WordN 30)+          | AInt1     (IntN   1)+          | AInt5     (IntN   5)+          | AInt30    (IntN  30)+          | AReal     AlgReal+          | AFloat    Float+          | ADouble   Double+          | AFP       (FloatingPoint 5 12)+          | AString   String+          | AList     [Integer]+          | ATuple    (Double, [(WordN 5, [Float])])+          | AMaybe    (Maybe (AlgReal, Float, (Either Integer Float, [Bool])))+          | AEither   (Either (Maybe Integer, Bool) [Integer])+          | APair     ADT ADT+          | KChar     Char+          | KRational Rational+          {-+          | KADT      String (Maybe [(String, [Kind])])+          | KSet  Kind+          | KArray  Kind Kind+          -}+          deriving Show++mkSymbolic [''ADT]++tests :: TestTree+tests =+  testGroup "ADT" [+      goldenCapturedIO "adt00" $ checkWith t00+    , goldenCapturedIO "adt01" $ checkWith t01+    , goldenCapturedIO "adt02" $ checkWith t02+    , goldenCapturedIO "adt03" $ checkWith t03+    , goldenCapturedIO "adt04" t04+    , goldenCapturedIO "adt05" t05+    , goldenCapturedIO "adt06" t06+    ]++checkWith :: Symbolic () -> FilePath -> IO ()+checkWith props rf = runSMTWith z3{verbose=True, redirectVerbose = Just rf} $ do+        _ <- props+        query $ do cs <- checkSat+                   case cs of+                     Unsat  -> io $ appendFile rf "\nUNSAT"+                     DSat{} -> io $ appendFile rf "\nDSAT"+                     Sat{}  -> getModel         >>= \m -> io $ appendFile rf $ "\nMODEL: "   ++ show m ++ "\nDONE."+                     Unk    -> getUnknownReason >>= \r -> io $ appendFile rf $ "\nUNKNOWN: " ++ show r ++ "\nDONE."++t00 :: Symbolic ()+t00 = do a :: SADT <- free "e"+         constrain $ a ./== a++t01 :: Symbolic ()+t01 = do a :: SADT <- free "e"+         constrain $ a .=== literal (APair (AInt64 4) (AMaybe (Just (0, 12, (Left 3, [False, True])))))++t02 :: Symbolic ()+t02 = do a :: SADT <- free "e"+         constrain $ isAList a++t03 :: Symbolic ()+t03 = do a :: SADT <- free "e"+         constrain $ isAList a .&& isAFP a++t04 :: FilePath -> IO ()+t04 rf = do AllSatResult _ _ _ ms <- allSatWith z3{verbose=True, redirectVerbose = Just rf} t+            let sh m = appendFile rf $ "\nMODEL:" ++ show (SatResult m)+            mapM_ sh ms+  where t = do a :: SADT <- free "a"+               constrain $ isAInteger a+               constrain $ getAInteger_1 a .>= 0+               constrain $ getAInteger_1 a .<= 5++-- z3 is buggy on this. So we use cvc5. See: https://github.com/Z3Prover/z3/issues/7842+t05 :: FilePath -> IO ()+t05 rf = do AllSatResult _ _ _ ms <- allSatWith cvc5{verbose=True, redirectVerbose = Just rf, allSatMaxModelCount=Just 10} t+            let sh m = appendFile rf $ "\nMODEL:" ++ show (SatResult m)+            mapM_ sh ms+  where t = do a :: SADT <- free "a"+               b :: SADT <- free "b"+               constrain $ isAFloat a .&& getAFloat_1 a .== 4+               constrain $ isAFloat b .&& fpIsNaN (getAFloat_1 b)++t06 :: FilePath -> IO ()+t06 rf = runSMTWith z3{verbose=True, redirectVerbose = Just rf} $ do+             a :: SADT <- free "a"+             constrain $ isAMaybe a+             constrain $ isJust (getAMaybe_1 a)+             query $ do cs <- checkSat+                        case cs of+                         Sat{} -> do v <- getValue a+                                     io $ do appendFile rf $ "\ngetValue: " ++ show v+                                             appendFile rf   "\nDONE\n"+                         _     -> error ("BAD RESULT: " ++ show cs)
+ SBVTestSuite/TestSuite/ADT/Expr.hs view
@@ -0,0 +1,419 @@+-----------------------------------------------------------------------------+-- |+-- Module    : TestSuite.ADT.Expr+-- Copyright : (c) Levent Erkok+-- License   : BSD3+-- Maintainer: erkokl@gmail.com+-- Stability : experimental+--+-- Testing ADTs, expressions+-----------------------------------------------------------------------------++{-# LANGUAGE FlexibleInstances   #-}+{-# LANGUAGE QuasiQuotes         #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TemplateHaskell     #-}+{-# LANGUAGE TypeApplications    #-}++{-# OPTIONS_GHC -Wall -Werror #-}++module TestSuite.ADT.Expr(tests) where++import Control.Monad (void)++import Data.SBV+import Data.SBV.Control+import Utils.SBVTestFramework++import Documentation.SBV.Examples.ADT.Expr++-- Testing constructor/type name conflct+data A = A Integer+       | B Word8+       | C A A+       deriving Show++mkSymbolic [''A]++tests :: TestTree+tests =+  testGroup "ADT" [+      goldenCapturedIO "adt_expr00c" $ evalCheck  (eval e00,  3)+    , goldenCapturedIO "adt_expr00"  $ evalCheckS eval (e00,  3)++    , goldenCapturedIO "adt_expr01c" $ evalCheck  (eval e01,  7)+    , goldenCapturedIO "adt_expr01"  $ evalCheckS eval (e01,  7)++    , goldenCapturedIO "adt_expr02c" $ evalCheck  (eval e02, 21)+    , goldenCapturedIO "adt_expr02"  $ evalCheckS eval (e02, 21)++    , goldenCapturedIO "adt_expr03c" $ evalCheck  (eval e03, 28)+    , goldenCapturedIO "adt_expr03"  $ evalCheckS eval (e03, 28)++    , goldenCapturedIO "adt_expr04" $ evalTest  (eval e04)+    , goldenCapturedIO "adt_expr05" $ evalTest  (eval e05)++    , goldenCapturedIO "adt_expr06c" $ evalCheck  (f (sVar (literal "a")), 0)+    , goldenCapturedIO "adt_expr06"  $ evalCheckS f  (sVar (literal "a") , 0)++    , goldenCapturedIO "adt_expr07c" $ evalCheck  (f (sVar (literal "b")), 1)+    , goldenCapturedIO "adt_expr07"  $ evalCheckS f  (sVar (literal "b") , 1)++    , goldenCapturedIO "adt_expr08c" $ evalCheck  (f (sVar (literal "c")), 1)+    , goldenCapturedIO "adt_expr08"  $ evalCheckS f  (sVar (literal "c") , 1)++    , goldenCapturedIO "adt_expr09c" $ evalCheck  (f (sVar (literal "d")), 2)+    , goldenCapturedIO "adt_expr09"  $ evalCheckS f  (sVar (literal "d") , 2)++    , goldenCapturedIO "adt_expr10c" $ evalCheck   (sum (map (f . sVal . literal)      [-5 .. 9]),  45)+    , goldenCapturedIO "adt_expr10"  $ evalCheckSL (sum . map f) (map (sVal . literal) [-5 .. 9],   45)++    , goldenCapturedIO "adt_expr11c" $ evalCheck   (sum (map (f . sVal . literal)      [10, 10]),    8)+    , goldenCapturedIO "adt_expr11"  $ evalCheckSL (sum . map f) (map (sVal . literal) [10, 10],     8)++    , goldenCapturedIO "adt_expr12c" $ evalCheck   (sum (map (f . sVal . literal)      [11 .. 20]), 50)+    , goldenCapturedIO "adt_expr12"  $ evalCheckSL (sum . map f) (map (sVal . literal) [11 .. 20],  50)++    , goldenCapturedIO "adt_expr13c" $ evalCheck  (f e00, 3)+    , goldenCapturedIO "adt_expr13"  $ evalCheckS f (e00, 3)++    , goldenCapturedIO "adt_expr14c" $ evalCheck  (f e01, 6)+    , goldenCapturedIO "adt_expr14"  $ evalCheckS f (e01, 6)++    , goldenCapturedIO "adt_expr15c" $ evalCheck  (f e02, 6)+    , goldenCapturedIO "adt_expr15"  $ evalCheckS f (e02, 6)++    , goldenCapturedIO "adt_expr16c" $ evalCheck  (f e03, 6)+    , goldenCapturedIO "adt_expr16"  $ evalCheckS f (e03, 6)++    , goldenCapturedIO "adt_expr17c" $ evalCheck  (f e04, 6)+    , goldenCapturedIO "adt_expr17"  $ evalCheckS f (e04, 6)++    , goldenCapturedIO "adt_expr18c" $ evalCheck  (f e05, 6)+    , goldenCapturedIO "adt_expr18"  $ evalCheckS f (e05, 6)++    , goldenCapturedIO "adt_gen00"  t00+    , goldenCapturedIO "adt_gen01"  $ tSat (-1)+    , goldenCapturedIO "adt_gen02"  $ tSat 0+    , goldenCapturedIO "adt_gen03"  $ tSat 1+    , goldenCapturedIO "adt_gen04"  $ tSat 2+    , goldenCapturedIO "adt_gen05"  $ tSat 3+    , goldenCapturedIO "adt_gen06"  $ tSat 4+    , goldenCapturedIO "adt_gen07"  $ tSat 5+    , goldenCapturedIO "adt_gen08"  $ tSat 6+    , goldenCapturedIO "adt_gen09"  $ tSat 7+    , goldenCapturedIO "adt_gen10"  $ tSat 8+    , goldenCapturedIO "adt_gen11"  $ tSat 9+    , goldenCapturedIO "adt_gen12"  $ tSat 100+    , goldenCapturedIO "adt_chk01"  $ evalTest (t (sA 12))++    -- Nested pattern tests: h is a simplifier using nested patterns+    -- Add (Val 0) e => e+    , goldenCapturedIO "adt_nested00c" $ evalCheck (h (sAdd (sVal 0) (sVal 5)),  sVal 5)+    , goldenCapturedIO "adt_nested00"  $ evalCheckS h (sAdd (sVal 0) (sVal 5),   sVal 5)+    -- Add e (Val 0) => e+    , goldenCapturedIO "adt_nested01c" $ evalCheck (h (sAdd (sVal 7) (sVal 0)),  sVal 7)+    , goldenCapturedIO "adt_nested01"  $ evalCheckS h (sAdd (sVal 7) (sVal 0),   sVal 7)+    -- Mul (Val 1) e => e+    , goldenCapturedIO "adt_nested02c" $ evalCheck (h (sMul (sVal 1) (sVal 9)),  sVal 9)+    , goldenCapturedIO "adt_nested02"  $ evalCheckS h (sMul (sVal 1) (sVal 9),   sVal 9)+    -- Mul e (Val 1) => e+    , goldenCapturedIO "adt_nested03c" $ evalCheck (h (sMul (sVal 4) (sVal 1)),  sVal 4)+    , goldenCapturedIO "adt_nested03"  $ evalCheckS h (sMul (sVal 4) (sVal 1),   sVal 4)+    -- Mul (Val 0) _ => 0+    , goldenCapturedIO "adt_nested04c" $ evalCheck (h (sMul (sVal 0) (sVal 99)), sVal 0)+    , goldenCapturedIO "adt_nested04"  $ evalCheckS h (sMul (sVal 0) (sVal 99),  sVal 0)+    -- No simplification applies: Add (Val 3) (Val 4) stays as-is+    , goldenCapturedIO "adt_nested05c" $ evalCheck (h (sAdd (sVal 3) (sVal 4)),  sAdd (sVal 3) (sVal 4))+    , goldenCapturedIO "adt_nested05"  $ evalCheckS h (sAdd (sVal 3) (sVal 4),   sAdd (sVal 3) (sVal 4))+    -- Guard miss: Add (Val 1) e, i /= 0, falls through to _+    , goldenCapturedIO "adt_nested06c" $ evalCheck (h (sAdd (sVal 1) (sVal 5)),  sAdd (sVal 1) (sVal 5))+    , goldenCapturedIO "adt_nested06"  $ evalCheckS h (sAdd (sVal 1) (sVal 5),   sAdd (sVal 1) (sVal 5))+    -- Pattern ordering: Add (Val 0) (Val 0) => Val 0 (first rule fires, not second)+    , goldenCapturedIO "adt_nested07c" $ evalCheck (h (sAdd (sVal 0) (sVal 0)),  sVal 0)+    , goldenCapturedIO "adt_nested07"  $ evalCheckS h (sAdd (sVal 0) (sVal 0),   sVal 0)+    -- Mul (Val 1) e where e is compound: result is the compound expression+    , goldenCapturedIO "adt_nested08c" $ evalCheck (h (sMul (sVal 1) (sAdd (sVal 3) (sVal 4))),  sAdd (sVal 3) (sVal 4))+    , goldenCapturedIO "adt_nested08"  $ evalCheckS h (sMul (sVal 1) (sAdd (sVal 3) (sVal 4)),   sAdd (sVal 3) (sVal 4))+    -- Mul (Val 0) e where e is compound: result is Val 0 regardless of right side+    , goldenCapturedIO "adt_nested09c" $ evalCheck (h (sMul (sVal 0) (sAdd (sVal 3) (sVal 4))),  sVal 0)+    , goldenCapturedIO "adt_nested09"  $ evalCheckS h (sMul (sVal 0) (sAdd (sVal 3) (sVal 4)),   sVal 0)+    -- Non-Add/Mul constructor: Var falls through to _+    , goldenCapturedIO "adt_nested10c" $ evalCheck (h (sVar (literal "x")),  sVar (literal "x"))+    , goldenCapturedIO "adt_nested10"  $ evalCheckS h (sVar (literal "x"),   sVar (literal "x"))+    -- Non-Add/Mul constructor: Val falls through to _+    , goldenCapturedIO "adt_nested11c" $ evalCheck (h (sVal 42),  sVal 42)+    , goldenCapturedIO "adt_nested11"  $ evalCheckS h (sVal 42,   sVal 42)+    -- Let falls through to _+    , goldenCapturedIO "adt_nested12c" $ evalCheck (h (sLet (literal "x") (sVal 1) (sVar (literal "x"))),  sLet (literal "x") (sVal 1) (sVar (literal "x")))+    , goldenCapturedIO "adt_nested12"  $ evalCheckS h (sLet (literal "x") (sVal 1) (sVar (literal "x")),   sLet (literal "x") (sVal 1) (sVar (literal "x")))+    -- Mul (Val 0) with a non-Val right side (Var): result is Val 0, wildcard ignores it+    , goldenCapturedIO "adt_nested13c" $ evalCheck (h (sMul (sVal 0) (sVar (literal "x"))),  sVal 0)+    , goldenCapturedIO "adt_nested13"  $ evalCheckS h (sMul (sVal 0) (sVar (literal "x")),   sVal 0)+    -- Add (Val 0) with a compound right side (Add)+    , goldenCapturedIO "adt_nested14c" $ evalCheck (h (sAdd (sVal 0) (sMul (sVal 2) (sVal 3))),  sMul (sVal 2) (sVal 3))+    , goldenCapturedIO "adt_nested14"  $ evalCheckS h (sAdd (sVal 0) (sMul (sVal 2) (sVal 3)),   sMul (sVal 2) (sVal 3))+    -- Idempotency: h (h e) == h e (using a simplifiable input)+    , goldenCapturedIO "adt_nested15c" $ evalCheck (h (h (sAdd (sVal 0) (sVal 5))),  sVal 5)+    , goldenCapturedIO "adt_nested15"  $ evalCheckS (h . h) (sAdd (sVal 0) (sVal 5),  sVal 5)+    -- Idempotency: h (h e) == h e (using a non-simplifiable input)+    , goldenCapturedIO "adt_nested16c" $ evalCheck (h (h (sAdd (sVal 3) (sVal 4))),  sAdd (sVal 3) (sVal 4))+    , goldenCapturedIO "adt_nested16"  $ evalCheckS (h . h) (sAdd (sVal 3) (sVal 4),  sAdd (sVal 3) (sVal 4))+    -- Two-step simplification: h (h (Mul (Val 1) (Add (Val 0) (Val 5)))) => Val 5+    -- First h: Mul (Val 1) (Add (Val 0) (Val 5)) => Add (Val 0) (Val 5)+    -- Second h: Add (Val 0) (Val 5)              => Val 5+    , goldenCapturedIO "adt_nested17c" $ evalCheck (h (h (sMul (sVal 1) (sAdd (sVal 0) (sVal 5)))),  sVal 5)+    , goldenCapturedIO "adt_nested17"  $ evalCheckS (h . h) (sMul (sVal 1) (sAdd (sVal 0) (sVal 5)),  sVal 5)+    -- Semantics preservation: eval (h e) == eval e for all closed e+    , goldenCapturedIO "adt_nested18"  hPreservesEval+    -- Mul rule ordering: Mul (Val 1) (Val 1) => Val 1 (first Mul rule fires, not second)+    , goldenCapturedIO "adt_nested19c" $ evalCheck (h (sMul (sVal 1) (sVal 1)),  sVal 1)+    , goldenCapturedIO "adt_nested19"  $ evalCheckS h (sMul (sVal 1) (sVal 1),   sVal 1)+    -- Guard miss on both Mul rules: Mul (Val 2) (Val 3) falls through to _+    , goldenCapturedIO "adt_nested20c" $ evalCheck (h (sMul (sVal 2) (sVal 3)),  sMul (sVal 2) (sVal 3))+    , goldenCapturedIO "adt_nested20"  $ evalCheckS h (sMul (sVal 2) (sVal 3),   sMul (sVal 2) (sVal 3))+    -- Mul (Val 1) (Var "x") => Var "x": Mul rule returns a non-Val expression+    , goldenCapturedIO "adt_nested21c" $ evalCheck (h (sMul (sVal 1) (sVar (literal "x"))),  sVar (literal "x"))+    , goldenCapturedIO "adt_nested21"  $ evalCheckS h (sMul (sVal 1) (sVar (literal "x")),   sVar (literal "x"))+    -- Add (Val 0) (Var "x") => Var "x": Add rule returns a non-Val expression+    , goldenCapturedIO "adt_nested22c" $ evalCheck (h (sAdd (sVal 0) (sVar (literal "x"))),  sVar (literal "x"))+    , goldenCapturedIO "adt_nested22"  $ evalCheckS h (sAdd (sVal 0) (sVar (literal "x")),   sVar (literal "x"))+    -- Focused proof: h preserves eval for Add expressions specifically+    , goldenCapturedIO "adt_nested23"  hPreservesEvalAdd+    -- Focused proof: h preserves eval for Mul expressions specifically+    , goldenCapturedIO "adt_nested24"  hPreservesEvalMul++    -- Deep nesting: cfold constant-folds Add (Mul (Val a) (Val b)) (Mul (Val c) (Val d)) => Val (a*b + c*d)+    -- 4-level deep nested pattern on all branches simultaneously+    -- Fires: Add (Mul (Val 2) (Val 3)) (Mul (Val 4) (Val 5)) => Val 26+    , goldenCapturedIO "adt_nested25c" $ evalCheck (cfold (sAdd (sMul (sVal 2) (sVal 3)) (sMul (sVal 4) (sVal 5))),  sVal 26)+    , goldenCapturedIO "adt_nested25"  $ evalCheckS cfold (sAdd (sMul (sVal 2) (sVal 3)) (sMul (sVal 4) (sVal 5)),   sVal 26)+    -- Fires: Add (Mul (Val 0) (Val 99)) (Mul (Val 1) (Val 1)) => Val 1+    , goldenCapturedIO "adt_nested26c" $ evalCheck (cfold (sAdd (sMul (sVal 0) (sVal 99)) (sMul (sVal 1) (sVal 1))),  sVal 1)+    , goldenCapturedIO "adt_nested26"  $ evalCheckS cfold (sAdd (sMul (sVal 0) (sVal 99)) (sMul (sVal 1) (sVal 1)),   sVal 1)+    -- No match: right branch is Var, not Mul (Val _) (Val _)+    , goldenCapturedIO "adt_nested27c" $ evalCheck (cfold (sAdd (sMul (sVal 2) (sVal 3)) (sVar (literal "x"))),  sAdd (sMul (sVal 2) (sVal 3)) (sVar (literal "x")))+    , goldenCapturedIO "adt_nested27"  $ evalCheckS cfold (sAdd (sMul (sVal 2) (sVal 3)) (sVar (literal "x")),   sAdd (sMul (sVal 2) (sVal 3)) (sVar (literal "x")))+    -- No match: outer constructor is Mul, not Add+    , goldenCapturedIO "adt_nested28c" $ evalCheck (cfold (sMul (sVal 2) (sVal 3)),  sMul (sVal 2) (sVal 3))+    , goldenCapturedIO "adt_nested28"  $ evalCheckS cfold (sMul (sVal 2) (sVal 3),   sMul (sVal 2) (sVal 3))+    -- Semantics preservation: eval (cfold e) == eval e for all e+    , goldenCapturedIO "adt_nested29"  cfoldPreservesEval++    -- Pipeline tests: cfold (h e) — first simplify with h, then constant-fold with cfold+    -- Neither h nor cfold fires: Add (Mul (Val 2) (Val 3)) (Mul (Val 4) (Val 5)) passes through h unchanged, cfold folds to Val 26+    , goldenCapturedIO "adt_nested30c" $ evalCheck (cfold (h (sAdd (sMul (sVal 2) (sVal 3)) (sMul (sVal 4) (sVal 5)))),  sVal 26)+    , goldenCapturedIO "adt_nested30"  $ evalCheckS (cfold . h) (sAdd (sMul (sVal 2) (sVal 3)) (sMul (sVal 4) (sVal 5)),  sVal 26)+    -- h leaves outer Add unchanged; cfold still sees Add (Mul (Val 1) (Val 2)) (Mul (Val 0) (Val 4)) and folds to Val 2+    , goldenCapturedIO "adt_nested31c" $ evalCheck (cfold (h (sAdd (sMul (sVal 1) (sVal 2)) (sMul (sVal 0) (sVal 4)))),  sVal 2)+    , goldenCapturedIO "adt_nested31"  $ evalCheckS (cfold . h) (sAdd (sMul (sVal 1) (sVal 2)) (sMul (sVal 0) (sVal 4)),  sVal 2)+    -- h fires (Mul (Val 1) r => r), exposing a cfold-able expression; cfold then folds to Val 26+    , goldenCapturedIO "adt_nested32c" $ evalCheck (cfold (h (sMul (sVal 1) (sAdd (sMul (sVal 2) (sVal 3)) (sMul (sVal 4) (sVal 5))))),  sVal 26)+    , goldenCapturedIO "adt_nested32"  $ evalCheckS (cfold . h) (sMul (sVal 1) (sAdd (sMul (sVal 2) (sVal 3)) (sMul (sVal 4) (sVal 5))),  sVal 26)+    -- h fires (Add (Val 0) r => r), exposing a cfold-able expression; cfold then folds to Val 26+    , goldenCapturedIO "adt_nested33c" $ evalCheck (cfold (h (sAdd (sVal 0) (sAdd (sMul (sVal 2) (sVal 3)) (sMul (sVal 4) (sVal 5))))),  sVal 26)+    , goldenCapturedIO "adt_nested33"  $ evalCheckS (cfold . h) (sAdd (sVal 0) (sAdd (sMul (sVal 2) (sVal 3)) (sMul (sVal 4) (sVal 5))),  sVal 26)++    -- Literal pattern tests: p uses integer and string literal patterns+    -- Top-level literal fires: Val 0 => 100+    , goldenCapturedIO "adt_lit00c" $ evalCheck (p (sVal 0),  100)+    , goldenCapturedIO "adt_lit00"  $ evalCheckS p (sVal 0,   100)+    -- Top-level literal fires: Val 1 => 200+    , goldenCapturedIO "adt_lit01c" $ evalCheck (p (sVal 1),  200)+    , goldenCapturedIO "adt_lit01"  $ evalCheckS p (sVal 1,   200)+    -- Top-level literal misses: Val 2 falls through to eval e = 2+    , goldenCapturedIO "adt_lit02c" $ evalCheck (p (sVal 2),  2)+    , goldenCapturedIO "adt_lit02"  $ evalCheckS p (sVal 2,   2)+    -- Nested literal fires: Add (Val 0) (Val 5) => eval (Val 5) = 5+    , goldenCapturedIO "adt_lit03c" $ evalCheck (p (sAdd (sVal 0) (sVal 5)),  5)+    , goldenCapturedIO "adt_lit03"  $ evalCheckS p (sAdd (sVal 0) (sVal 5),   5)+    -- Nested literal misses: Add (Val 1) (Val 5) => eval e = 6+    , goldenCapturedIO "adt_lit04c" $ evalCheck (p (sAdd (sVal 1) (sVal 5)),  6)+    , goldenCapturedIO "adt_lit04"  $ evalCheckS p (sAdd (sVal 1) (sVal 5),   6)+    -- Var falls through to eval e (= 0 for unbound var)+    , goldenCapturedIO "adt_lit05c" $ evalCheck (p (sVar (literal "x")),  0)+    , goldenCapturedIO "adt_lit05"  $ evalCheckS p (sVar (literal "x"),   0)+    ]+    where a = literal "a"+          b = literal "a"++          e00 = 3                                -- 3+          e01 = 3 + 4                            -- 7+          e02 = e00 * e01                        -- 21+          e03 = sLet a e02 (sVar a + e01)        -- 28+          e04 = e03 + sLet a e03 (sVar a + e01)  -- 28 + 28 + 7 = 63+          e05 = sLet b e04 (sVar b * sVar b)     -- 63 * 63 = 3969++evalCheck :: SymVal a => (SBV a, SBV a) -> FilePath -> IO ()+evalCheck (sv, v) rf = runSMTWith z3{verbose=True, redirectVerbose = Just rf} $ do+                        constrain $ sv ./= v+                        query $ do cs <- checkSat+                                   case cs of+                                     Unsat{} -> io $ appendFile rf "All good.\n"+                                     _       -> error $ "Unexpected: " ++ show cs++evalCheckS :: SymVal b => (SExpr -> SBV b) -> (SExpr, SBV b) -> FilePath -> IO ()+evalCheckS fun (e, v) rf = runSMTWith z3{verbose=True, redirectVerbose = Just rf} $ do+                        se :: SExpr <- free_+                        constrain $ se .== e+                        constrain $ fun se ./= v+                        query $ do cs <- checkSat+                                   case cs of+                                     Unsat{} -> io $ appendFile rf "All good.\n"+                                     _       -> error $ "Unexpected: " ++ show cs++evalCheckSL :: ([SExpr] -> SInteger) -> ([SExpr], Integer) -> FilePath -> IO ()+evalCheckSL fun (e, v) rf = runSMTWith z3{verbose=True, redirectVerbose = Just rf} $ do+                        ses :: [SExpr] <- mapM (const free_) e+                        constrain $ ses .== e+                        constrain $ fun ses ./= literal v+                        query $ do cs <- checkSat+                                   case cs of+                                     Unsat{} -> io $ appendFile rf "All good.\n"+                                     _       -> error $ "Unexpected: " ++ show cs++evalTest :: (Show a, SymVal a) => SBV a -> FilePath -> IO ()+evalTest sv rf = runSMTWith z3{verbose=True, redirectVerbose = Just rf} $ do+                    res <- free "res"+                    constrain $ sv .== res+                    query $ do cs <- checkSat+                               case cs of+                                 Sat -> do r <- getValue res+                                           io $ appendFile rf ("Result: " ++ show r ++ "\n")+                                 _       -> error $ "Unexpected: " ++ show cs++f :: SExpr -> SInteger+f e = [sCase| e of+         Var s     | s .== literal "a"                       -> 0+                   | s .== literal "b" .|| s .== literal "c" -> 1+                   | sTrue                                   -> 2++         Val i     | i .<  10                                -> 3+                   | i .== 10                                -> 4+                   | i .>  10                                -> 5++         _                                                   -> 6+      |]++-- Create something like:+--       let a = _+--    in let b = _+--    in _ + _+-- such that it evaluates to 12+t00 :: FilePath -> IO ()+t00 rf = runSMTWith z3{verbose=True, redirectVerbose = Just rf} $ do+            a :: SExpr <- free "a"+            constrain $ isValid a+            constrain $ eval a .== 12++            constrain $ isLet a+            constrain $ isLet (getLet_3 a)+            constrain $ isAdd (getLet_3 (getLet_3 a))++            query $ do cs <- checkSat+                       case cs of+                         Sat{} -> do v <- getValue a+                                     io $ do appendFile rf $ "\nGot: " ++ show v+                                             appendFile rf   "\nDONE\n"+                         _     -> error $ "Unexpected: " ++ show cs++g :: SExpr -> SInteger+g e = [sCase| e of+         Var s     | s .== literal "a"                       -> 0+                   | s .== literal "b" .|| s .== literal "c" -> 1+                   | sTrue                                   -> 2++         Val i     | i .<  10                                -> 3+                   | i .== 10                                -> 4+                   | i .>  10                                -> 5++         Add _ _ -> 6+         Mul _ _ -> 7+         Let{}   -> 8++         _ -> 100+      |]++-- Show that g can never produce anything but 0..8+tSat :: Integer -> FilePath -> IO ()+tSat i rf = runSMTWith z3{verbose=True, redirectVerbose = Just rf} $ do+              a :: SExpr <- free "a"+              constrain $ g a .== literal i++              query $ do cs <- checkSat+                         case cs of+                           Sat{} -> do v <- getValue a+                                       io $ do appendFile rf $ "\nGot: " ++ show v+                                               appendFile rf   "\nDONE\n"+                           Unsat -> io $ do appendFile rf "\nUNSAT\n"+                           _     -> error $ "Unexpected: " ++ show cs++t :: SA -> SA+t = smtFunction "t" $ \a ->+       [sCase| a of+         A u     -> sA (u+1)+         B w     -> sB (w+2)+         C a1 a2 -> sC (t a1) (t a2)+      |]++-- | A simplifier that uses nested patterns to special-case identity/zero elements.+-- Add (Val 0) e  => e+-- Add e (Val 0)  => e+-- Mul (Val 1) e  => e+-- Mul e (Val 1)  => e+-- Mul (Val 0) _  => 0+-- otherwise      => identity+h :: SExpr -> SExpr+h e = [sCase| e of+         Add (Val i) r | i .== 0 -> r+         Add l (Val i) | i .== 0 -> l+         Mul (Val i) r | i .== 1 -> r+         Mul l (Val i) | i .== 1 -> l+         Mul (Val i) _ | i .== 0 -> sVal 0+         _                        -> e+      |]++-- | Prove that h preserves evaluation semantics: eval (h e) == eval e for all e.+hPreservesEval :: FilePath -> IO ()+hPreservesEval rf = void $ proveWith z3{verbose=True, redirectVerbose=Just rf} $ do+                      e :: SExpr <- free "e"+                      pure $ eval (h e) .== eval e++-- | Focused proof: h preserves eval specifically when the top-level node is Add.+hPreservesEvalAdd :: FilePath -> IO ()+hPreservesEvalAdd rf = void $ proveWith z3{verbose=True, redirectVerbose=Just rf} $ do+                         e :: SExpr <- free "e"+                         pure $ isAdd e .=> (eval (h e) .== eval e)++-- | Focused proof: h preserves eval specifically when the top-level node is Mul.+hPreservesEvalMul :: FilePath -> IO ()+hPreservesEvalMul rf = void $ proveWith z3{verbose=True, redirectVerbose=Just rf} $ do+                         e :: SExpr <- free "e"+                         pure $ isMul e .=> (eval (h e) .== eval e)++-- | A constant-folder using a deeply nested pattern: recognizes Add (Mul (Val a) (Val b)) (Mul (Val c) (Val d))+-- and folds it to Val (a*b + c*d). All four leaf positions use nested Val patterns simultaneously.+cfold :: SExpr -> SExpr+cfold e = [sCase| e of+             Add (Mul (Val a) (Val b)) (Mul (Val c) (Val d)) -> sVal (a*b + c*d)+             _                                               -> e+          |]++-- | Prove that cfold preserves evaluation semantics: eval (cfold e) == eval e for all e.+cfoldPreservesEval :: FilePath -> IO ()+cfoldPreservesEval rf = void $ proveWith z3{verbose=True, redirectVerbose=Just rf} $ do+                          e :: SExpr <- free "e"+                          pure $ eval (cfold e) .== eval e++-- | A function using literal patterns: dispatches on specific integer/string values directly in the pattern.+-- Val 0         => 100+-- Val 1         => 200+-- Add (Val 0) r => eval r   (nested integer literal)+-- _             => eval e   (fallthrough)+p :: SExpr -> SInteger+p e = [sCase| e of+         Val 0         -> 100+         Val 1         -> 200+         Add (Val 0) r -> eval r+         _             -> eval e+      |]
+ SBVTestSuite/TestSuite/ADT/MutRec.hs view
@@ -0,0 +1,195 @@+-----------------------------------------------------------------------------+-- |+-- Module    : TestSuite.ADT.MutRec+-- Copyright : (c) Levent Erkok+-- License   : BSD3+-- Maintainer: erkokl@gmail.com+-- Stability : experimental+--+-- Testing ADTs, mutual-recursion and other parameterization checks+-----------------------------------------------------------------------------++{-# LANGUAGE FlexibleInstances   #-}+{-# LANGUAGE OverloadedLists     #-}+{-# LANGUAGE QuasiQuotes         #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TemplateHaskell     #-}+{-# LANGUAGE TypeApplications    #-}++{-# OPTIONS_GHC -Wall -Werror -Wno-incomplete-record-selectors #-}++module TestSuite.ADT.MutRec(tests) where++import Data.SBV+import Data.SBV.Control+import Utils.SBVTestFramework++import Data.SBV.RegExp+import Data.SBV.Tuple+import Data.SBV.Maybe+import qualified Data.SBV.List  as SL+import qualified Data.SBV.Tuple as ST++-- | Expression layer+data Expr var val = Con { con :: val }+                  | Var { var :: var }+                  | Add { add1 :: Expr var val, add2 :: Expr var val }+                  | Mul { mul1 :: Expr var val, mul2 :: Expr var val }++-- | Statement layer+data Stmt var val = Assign {lhs  :: var,          rhs  :: Expr var val }+                  | Seq    {seqH :: Stmt var val, seqT :: Stmt var val }++mkSymbolic [''Expr, ''Stmt]++data A a b = Aa   { aa :: a }+           | Ab   { ab :: b }+           | Aab  { aba :: a, abb :: b }+           | A2   { a2 :: A b String }+           | A3   { a3 :: A b a }+           deriving Show++mkSymbolic [''A]++-- | Show instance for 'Expr'.+instance (Show var, Show val) => Show (Expr var val) where+  show (Con i)   = show i+  show (Var a)   = show a+  show (Add l r) = "(" ++ show l ++ " + " ++ show r ++ ")"+  show (Mul l r) = "(" ++ show l ++ " * " ++ show r ++ ")"++-- | Show instance for 'Stmt'.+instance (Show var, Show val) => Show (Stmt var val) where+  show (Assign v e) = show v ++ " := " ++ show e+  show (Seq a b)    = show a ++ ";\n" ++ show b++-- | Show instance for 'Expr' specialized when var is string.+instance {-# OVERLAPPING #-} Show val => Show (Expr String val) where+  show (Con i)   = show i+  show (Var a)   = a+  show (Add l r) = "(" ++ show l ++ " + " ++ show r ++ ")"+  show (Mul l r) = "(" ++ show l ++ " * " ++ show r ++ ")"++-- | Show instance for 'Stmt' specialized when var is string.+instance {-# OVERLAPPING #-} Show val => Show (Stmt String val) where+  show (Assign v e) =      v ++ " := " ++ show e+  show (Seq a b)    = show a ++ ";\n" ++ show b++-- | Validity: We require each variable appearing to be an identifier (lowercase letter followed by+-- any number of upper-lower case letters and digits), and all expressions are closed; i.e., any+-- variable referenced is assigned by a prior assignment expression.+isValid :: forall val. SymVal val => SStmt String val -> SBool+isValid = ST.fst . goS []+  where isId s = s `match` (asciiLower * KStar (asciiLetter + digit))++        goE :: SList String -> SExpr String val -> SBool+        goE = smtFunction "validE"+            $ \env expr -> [sCase| expr of+                               Con _   -> sTrue+                               Var s   -> isId s .&& s `SL.elem` env+                               Add l r -> goE env l .&& goE env r+                               Mul l r -> goE env l .&& goE env r+                            |]++        goS :: SList String -> SStmt String val -> STuple Bool [String]+        goS = smtFunction "validS"+            $ \env stmt -> [sCase| stmt of+                               Assign v e -> tuple (isId v .&& goE env e, v SL..: env)+                               Seq    a b -> let (lv, env')  = untuple $ goS env  a+                                                 (rv, env'') = untuple $ goS env' b+                                             in tuple (lv .&& rv, env'')+                            |]++tests :: TestTree+tests =+  testGroup "ADT_MR" [+      goldenCapturedIO "adt_mr00" $ r t00+    , goldenCapturedIO "adt_mr01" $ r t01+    , goldenCapturedIO "adt_mr02" $ r t02+    , goldenCapturedIO "adt_mr03" $ r t03+    , goldenCapturedIO "adt_mr04" $ r t04+    ]+  where r p rf = runSMTWith z3{verbose=True, redirectVerbose = Just rf} (p rf)++t00 :: FilePath -> Symbolic ()+t00 rf = do p :: SStmt String Integer <- free "p"++            -- Make sure there's some structure to the program:+            constrain $ isSeq    p+            constrain $ isSeq    (getSeq_2 p)+            constrain $ isSeq    (getSeq_2 (getSeq_2 p))+            constrain $ isAssign (getSeq_2 (getSeq_2 (getSeq_2 p)))+            constrain $ isAdd    (getAssign_2 (getSeq_2 (getSeq_2 (getSeq_2 p))))+            constrain $ isVar    (getAdd_1    (getAssign_2 (getSeq_2 (getSeq_2 (getSeq_2 p)))))++            -- Would love to have the following. But it creates too big of a problem.+            -- constrain $ isValid p+            constrain $ isValid (sAssign (literal "a") (sCon (literal 1)) :: SStmt String Float)++            query $ do cs <- checkSat+                       case cs of+                         Sat -> do r <- getValue p+                                   io $ do appendFile rf $ "\nGot:\n" ++ show r+                                           appendFile rf   "\nDONE\n"+                         _   -> error $ "Unexpected result: " ++ show cs++t01 :: FilePath -> Symbolic ()+t01 rf = do p :: SStmt String (Maybe (Either Integer Bool)) <- free "p"++            constrain $ isAssign  p+            constrain $ isAdd     (srhs p)+            constrain $ isCon     (sadd1 (srhs p))+            constrain $ isCon     (sadd2 (srhs p))+            constrain $ isNothing (scon (sadd1 (srhs p)))+            constrain $ isJust    (scon (sadd2 (srhs p)))++            query $ do cs <- checkSat+                       case cs of+                         Sat -> do r <- getValue p+                                   io $ do appendFile rf $ "\nGot:\n" ++ show r+                                           appendFile rf   "\nDONE\n"+                         _   -> error $ "Unexpected result: " ++ show cs++t02 :: FilePath -> Symbolic ()+t02 rf = do p :: SA Integer Bool <- free "p"++            constrain $ isA2 p+            constrain $ isA2 (sa2 p)+            constrain $ isAa (sa2 (sa2 p))++            query $ do cs <- checkSat+                       case cs of+                         Sat -> do r <- getValue p+                                   io $ do appendFile rf $ "\nGot:\n" ++ show r+                                           appendFile rf   "\nDONE\n"+                         _   -> error $ "Unexpected result: " ++ show cs++t03 :: FilePath -> Symbolic ()+t03 rf = do p :: SA Integer Bool <- free "p"++            constrain $ isA3 p+            constrain $ isAb (sa3 p)++            query $ do cs <- checkSat+                       case cs of+                         Sat -> do r <- getValue p+                                   io $ do appendFile rf $ "\nGot:\n" ++ show r+                                           appendFile rf   "\nDONE\n"+                         _   -> error $ "Unexpected result: " ++ show cs++t04 :: FilePath -> Symbolic ()+t04 rf = do p :: SA Integer (A Float Bool) <- free "p"++            constrain $ isA2 p+            constrain $ isA3 (sa2 p)+            constrain $ isAab (sa3 (sa2 p))++            query $ do cs <- checkSat+                       case cs of+                         Sat -> do r <- getValue p+                                   io $ do appendFile rf $ "\nGot:\n" ++ show r+                                           appendFile rf   "\nDONE\n"+                         _   -> error $ "Unexpected result: " ++ show cs++_unused :: a+_unused = undefined con var add1 add2 mul1 mul2 lhs rhs seqH seqT
+ SBVTestSuite/TestSuite/ADT/PExpr.hs view
@@ -0,0 +1,230 @@+-----------------------------------------------------------------------------+-- |+-- Module    : TestSuite.ADT.PExpr+-- Copyright : (c) Levent Erkok+-- License   : BSD3+-- Maintainer: erkokl@gmail.com+-- Stability : experimental+--+-- Testing ADTs, parameterized expressions+-----------------------------------------------------------------------------++{-# LANGUAGE FlexibleContexts    #-}+{-# LANGUAGE FlexibleInstances   #-}+{-# LANGUAGE QuasiQuotes         #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TemplateHaskell     #-}+{-# LANGUAGE TypeApplications    #-}++{-# OPTIONS_GHC -Wall -Werror #-}++module TestSuite.ADT.PExpr(tests) where++import Data.SBV+import Data.SBV.Control+import Utils.SBVTestFramework++import Documentation.SBV.Examples.ADT.Param++-- Testing constructor/type name conflct+data A = A Integer+       | B Word8+       | C A A+       deriving Show++mkSymbolic [''A]++tests :: TestTree+tests =+  testGroup "ADT" [+      goldenCapturedIO "adt_pexpr00c" $ evalCheck  (eval e00,  3)+    , goldenCapturedIO "adt_pexpr00"  $ evalCheckS eval (e00,  3)++    , goldenCapturedIO "adt_pexpr01c" $ evalCheck  (eval e01,  7)+    , goldenCapturedIO "adt_pexpr01"  $ evalCheckS eval (e01,  7)++    , goldenCapturedIO "adt_pexpr02c" $ evalCheck  (eval e02, 21)+    , goldenCapturedIO "adt_pexpr02"  $ evalCheckS eval (e02, 21)++    , goldenCapturedIO "adt_pexpr03c" $ evalCheck  (eval e03, 28)+    , goldenCapturedIO "adt_pexpr03"  $ evalCheckS eval (e03, 28)++    , goldenCapturedIO "adt_pexpr04" $ evalTest  (eval e04)+    , goldenCapturedIO "adt_pexpr05" $ evalTest  (eval e05)++    , goldenCapturedIO "adt_pexpr06c" $ evalCheck  (f (sVar (literal "a")), 0)+    , goldenCapturedIO "adt_pexpr06"  $ evalCheckS f  (sVar (literal "a") , 0)++    , goldenCapturedIO "adt_pexpr07c" $ evalCheck  (f (sVar (literal "b")), 1)+    , goldenCapturedIO "adt_pexpr07"  $ evalCheckS f  (sVar (literal "b") , 1)++    , goldenCapturedIO "adt_pexpr08c" $ evalCheck  (f (sVar (literal "c")), 1)+    , goldenCapturedIO "adt_pexpr08"  $ evalCheckS f  (sVar (literal "c") , 1)++    , goldenCapturedIO "adt_pexpr09c" $ evalCheck  (f (sVar (literal "d")), 2)+    , goldenCapturedIO "adt_pexpr09"  $ evalCheckS f  (sVar (literal "d") , 2)++    , goldenCapturedIO "adt_pexpr10c" $ evalCheck   (sum (map (f . sVal . literal)      [-5 .. 9]), 45)+    , goldenCapturedIO "adt_pexpr10"  $ evalCheckSL (sum . map f) (map (sVal . literal) [-5 .. 9],  45)++    , goldenCapturedIO "adt_pexpr11c" $ evalCheck   (sum (map (f . sVal . literal)      [10, 10]),   8)+    , goldenCapturedIO "adt_pexpr11"  $ evalCheckSL (sum . map f) (map (sVal . literal) [10, 10],    8)++    , goldenCapturedIO "adt_pexpr12c" $ evalCheck   (sum (map (f . sVal . literal)      [11 .. 20]), 50)+    , goldenCapturedIO "adt_pexpr12"  $ evalCheckSL (sum . map f) (map (sVal . literal) [11 .. 20],  50)++    , goldenCapturedIO "adt_pexpr13c" $ evalCheck  (f e00, 3)+    , goldenCapturedIO "adt_pexpr13"  $ evalCheckS f (e00, 3)++    , goldenCapturedIO "adt_pexpr14c" $ evalCheck  (f e01, 6)+    , goldenCapturedIO "adt_pexpr14"  $ evalCheckS f (e01, 6)++    , goldenCapturedIO "adt_pexpr15c" $ evalCheck  (f e02, 6)+    , goldenCapturedIO "adt_pexpr15"  $ evalCheckS f (e02, 6)++    , goldenCapturedIO "adt_pexpr16c" $ evalCheck  (f e03, 6)+    , goldenCapturedIO "adt_pexpr16"  $ evalCheckS f (e03, 6)++    , goldenCapturedIO "adt_pexpr17c" $ evalCheck  (f e04, 6)+    , goldenCapturedIO "adt_pexpr17"  $ evalCheckS f (e04, 6)++    , goldenCapturedIO "adt_pexpr18c" $ evalCheck  (f e05, 6)+    , goldenCapturedIO "adt_pexpr18"  $ evalCheckS f (e05, 6)++    , goldenCapturedIO "adt_pgen00"  t00+    , goldenCapturedIO "adt_pgen01"  $ tSat (-1)+    , goldenCapturedIO "adt_pgen02"  $ tSat 0+    , goldenCapturedIO "adt_pgen03"  $ tSat 1+    , goldenCapturedIO "adt_pgen04"  $ tSat 2+    , goldenCapturedIO "adt_pgen05"  $ tSat 3+    , goldenCapturedIO "adt_pgen06"  $ tSat 4+    , goldenCapturedIO "adt_pgen07"  $ tSat 5+    , goldenCapturedIO "adt_pgen08"  $ tSat 6+    , goldenCapturedIO "adt_pgen09"  $ tSat 7+    , goldenCapturedIO "adt_pgen10"  $ tSat 8+    , goldenCapturedIO "adt_pgen11"  $ tSat 9+    , goldenCapturedIO "adt_pgen12"  $ tSat 100+    , goldenCapturedIO "adt_pchk01"  $ evalTest (t (sA 12))+    ]+    where a = literal "a"+          b = literal "a"++          e00, e01, e02, e03, e04, e05 :: SExpr String Integer+          e00 = 3                                -- 3+          e01 = 3 + 4                            -- 7+          e02 = e00 * e01                        -- 21+          e03 = sLet a e02 (sVar a + e01)        -- 28+          e04 = e03 + sLet a e03 (sVar a + e01)  -- 28 + 28 + 7 = 63+          e05 = sLet b e04 (sVar b * sVar b)     -- 63 * 63 = 3969++evalCheck :: SymVal a => (SBV a, a) -> FilePath -> IO ()+evalCheck (sv, v) rf = runSMTWith z3{verbose=True, redirectVerbose = Just rf} $ do+                        constrain $ sv ./= literal v+                        query $ do cs <- checkSat+                                   case cs of+                                     Unsat{} -> io $ appendFile rf "All good.\n"+                                     _       -> error $ "Unexpected: " ++ show cs++evalCheckS :: (SExpr String Integer -> SInteger) -> (SExpr String Integer , Integer) -> FilePath -> IO ()+evalCheckS fun (e, v) rf = runSMTWith z3{verbose=True, redirectVerbose = Just rf} $ do+                        se :: SExpr String Integer <- free_+                        constrain $ se .== e+                        constrain $ fun se ./= literal v+                        query $ do cs <- checkSat+                                   case cs of+                                     Unsat{} -> io $ appendFile rf "All good.\n"+                                     _       -> error $ "Unexpected: " ++ show cs++evalCheckSL :: ([SExpr String Integer] -> SInteger) -> ([SExpr String Integer], Integer) -> FilePath -> IO ()+evalCheckSL fun (e, v) rf = runSMTWith z3{verbose=True, redirectVerbose = Just rf} $ do+                        ses :: [SExpr String Integer] <- mapM (const free_) e+                        constrain $ ses .== e+                        constrain $ fun ses ./= literal v+                        query $ do cs <- checkSat+                                   case cs of+                                     Unsat{} -> io $ appendFile rf "All good.\n"+                                     _       -> error $ "Unexpected: " ++ show cs++evalTest :: (Show a, SymVal a) => SBV a -> FilePath -> IO ()+evalTest sv rf = runSMTWith z3{verbose=True, redirectVerbose = Just rf} $ do+                    res <- free "res"+                    constrain $ sv .== res+                    query $ do cs <- checkSat+                               case cs of+                                 Sat -> do r <- getValue res+                                           io $ appendFile rf ("Result: " ++ show r ++ "\n")+                                 _       -> error $ "Unexpected: " ++ show cs++f :: SExpr String Integer -> SInteger+f e = [sCase| e of+         Var s     | s .== literal "a"                       -> 0+                   | s .== literal "b" .|| s .== literal "c" -> 1+                   | sTrue                                   -> 2++         Val i     | i .<  10                                -> 3+                   | i .== 10                                -> 4+                   | i .>  10                                -> 5++         _                                                   -> 6+      |]++-- Create something like:+--       let a = _+--    in let b = _+--    in _ + _+-- such that it evaluates to 12+t00 :: FilePath -> IO ()+t00 rf = runSMTWith z3{verbose=True, redirectVerbose = Just rf} $ do+            a :: SExpr String Integer <- free "a"+            constrain $ isValid isId a+            constrain $ eval a .== 12++            constrain $ isLet a+            constrain $ isLet (getLet_3 a)+            constrain $ isAdd (getLet_3 (getLet_3 a))++            query $ do cs <- checkSat+                       case cs of+                         Sat{} -> do v <- getValue a+                                     io $ do appendFile rf $ "\nGot: " ++ show v+                                             appendFile rf   "\nDONE\n"+                         _     -> error $ "Unexpected: " ++ show cs++g :: (SymVal val, OrdSymbolic (SBV val), Num (SBV val)) => SExpr String val -> SInteger+g e = [sCase| e of+         Var s     | s .== literal "a"                       -> 0+                   | s .== literal "b" .|| s .== literal "c" -> 1+                   | sTrue                                   -> 2++         Val i     | i .<  10                                -> 3+                   | i .== 10                                -> 4+                   | i .>  10                                -> 5++         Add _ _ -> 6+         Mul _ _ -> 7+         Let{}   -> 8++         _ -> 100+      |]++-- Show that g can never produce anything but 0..8+tSat :: Integer -> FilePath -> IO ()+tSat i rf = runSMTWith z3{verbose=True, redirectVerbose = Just rf} $ do+              a :: SExpr String Integer <- free "a"+              constrain $ g a .== literal i++              query $ do cs <- checkSat+                         case cs of+                           Sat{} -> do v <- getValue a+                                       io $ do appendFile rf $ "\nGot: " ++ show v+                                               appendFile rf   "\nDONE\n"+                           Unsat -> io $ do appendFile rf "\nUNSAT\n"+                           _     -> error $ "Unexpected: " ++ show cs++t :: SA -> SA+t = smtFunction "t" $ \a ->+       [sCase| a of+         A u     -> sA (u+1)+         B w     -> sB (w+2)+         C a1 a2 -> sC (t a1) (t a2)+      |]
SBVTestSuite/TestSuite/Arrays/Caching.hs view
@@ -29,7 +29,7 @@ test :: Bool -> Symbolic SBool test swap = do     let arr :: SArray Integer Integer-        arr = lambdaArray (const 0)+        arr = constArray 0      x   <- sInteger "x" 
SBVTestSuite/TestSuite/Arrays/InitVals.hs view
@@ -10,7 +10,7 @@ -----------------------------------------------------------------------------  {-# LANGUAGE DataKinds           #-}-{-# LANGUAGE Rank2Types          #-}+{-# LANGUAGE RankNTypes          #-} {-# LANGUAGE ScopedTypeVariables #-}  {-# OPTIONS_GHC -Wall -Werror #-}@@ -24,7 +24,7 @@ readDef = do c :: SInteger <- free "c"              i :: SInteger <- free "i"              j <- free "j"-             let a = lambdaArray (const c)+             let a = constArray c               let a' = writeArray a j 32 
SBVTestSuite/TestSuite/Arrays/Memory.hs view
@@ -9,7 +9,7 @@ -- Test suite for Examples.Arrays.Memory ----------------------------------------------------------------------------- -{-# LANGUAGE Rank2Types #-}+{-# LANGUAGE RankNTypes #-}  {-# OPTIONS_GHC -Wall -Werror #-} 
SBVTestSuite/TestSuite/Arrays/Query.hs view
@@ -217,3 +217,5 @@           query $ do constrain $ readArray x (literal ('z', 5 % 3)) .== literal (5 % 3, 'z')                     checkSat++{- HLint ignore module "Reduce duplication" -}
SBVTestSuite/TestSuite/Basics/AllSat.hs view
@@ -9,10 +9,7 @@ -- Test suite for basic allsat calls ----------------------------------------------------------------------------- -{-# LANGUAGE DeriveAnyClass      #-}-{-# LANGUAGE DeriveDataTypeable  #-} {-# LANGUAGE ScopedTypeVariables #-}-{-# LANGUAGE StandaloneDeriving  #-} {-# LANGUAGE TemplateHaskell     #-}  {-# OPTIONS_GHC -Wall -Werror #-}@@ -27,7 +24,7 @@ import qualified Control.Exception as C  data Q-mkUninterpretedSort ''Q+mkSymbolic [''Q]  tests :: TestTree tests =
SBVTestSuite/TestSuite/Basics/ArithNoSolver.hs view
@@ -10,17 +10,10 @@ -- the constant folding based arithmetic implementation in SBV ----------------------------------------------------------------------------- -{-# LANGUAGE CPP              #-}-{-# LANGUAGE DataKinds        #-}-{-# LANGUAGE FlexibleContexts #-}-{-# LANGUAGE Rank2Types       #-}-{-# LANGUAGE TupleSections    #-}+{-# LANGUAGE RankNTypes    #-}+{-# LANGUAGE TupleSections #-} -#if MIN_VERSION_base(4,19,0) {-# OPTIONS_GHC -Wall -Werror -Wno-incomplete-uni-patterns -Wno-x-partial #-}-#else-{-# OPTIONS_GHC -Wall -Werror -Wno-incomplete-uni-patterns #-}-#endif  module TestSuite.Basics.ArithNoSolver(tests) where @@ -29,9 +22,7 @@  import Data.Maybe (fromJust, fromMaybe) -import qualified Data.Char     as C--import qualified Data.SBV.Char () -- instances only+import qualified Data.Char as C  -- Test suite tests :: TestTree@@ -162,8 +153,6 @@         -- Haskell's divMod and quotRem differs from SBV's in two ways:         --     - when y is 0, Haskell throws an exception, SBV sets the result to 0; like in division         --     - Haskell overflows if x == minBound and y == -1 for bounded signed types; but SBV returns minBound, 0; which is more meaningful-        -- NB. There was a ticket filed against the second anomaly above, See: http://ghc.haskell.org/trac/ghc/ticket/8695-        -- But the Haskell folks decided not to fix it. Sigh..         overflow x y = x == minBound && y == -1         divMod0  x y = if y == 0       then (0, x) else x `divMod`   y         divMod1  x y = if overflow x y then (x, 0) else x `divMod0`  y
SBVTestSuite/TestSuite/Basics/ArithNoSolver2.hs view
@@ -10,24 +10,15 @@ -- the constant folding based arithmetic implementation in SBV ----------------------------------------------------------------------------- -{-# LANGUAGE CPP                #-}-{-# LANGUAGE DataKinds          #-}-{-# LANGUAGE DeriveAnyClass     #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE FlexibleContexts   #-}-{-# LANGUAGE FlexibleInstances  #-}-{-# LANGUAGE Rank2Types         #-}-{-# LANGUAGE StandaloneDeriving #-}-{-# LANGUAGE TemplateHaskell    #-}-{-# LANGUAGE TupleSections      #-}-{-# LANGUAGE TypeApplications   #-}-{-# LANGUAGE QuasiQuotes        #-}+{-# LANGUAGE DataKinds         #-}+{-# LANGUAGE FlexibleContexts  #-}+{-# LANGUAGE FlexibleInstances #-}+{-# LANGUAGE RankNTypes        #-}+{-# LANGUAGE TemplateHaskell   #-}+{-# LANGUAGE TypeApplications  #-}+{-# LANGUAGE QuasiQuotes       #-} -#if MIN_VERSION_base(4,19,0) {-# OPTIONS_GHC -Wall -Werror -Wno-incomplete-uni-patterns -Wno-x-partial #-}-#else-{-# OPTIONS_GHC -Wall -Werror -Wno-incomplete-uni-patterns #-}-#endif  module TestSuite.Basics.ArithNoSolver2(tests) where @@ -42,8 +33,8 @@ import qualified Data.SBV.Char   as SC import qualified Data.SBV.List   as SL -data Day = Mon | Tue | Wed | Thu | Fri | Sat | Sun deriving (Bounded, Enum, Eq)-mkSymbolicEnumeration  ''Day+data Day = Mon | Tue | Wed | Thu | Fri | Sat | Sun deriving (Show, Eq, Enum, Bounded)+mkSymbolic  [''Day]  -- Test suite tests :: TestTree@@ -449,7 +440,6 @@          -- NB. Precision here is important. If you pick too small of a significand         -- size then you can turn this enumeration into an infinite list, busting the tests.-        -- For details see: https://gitlab.haskell.org/ghc/ghc/-/issues/15081         fps :: [FloatingPoint 5 8]         fps = [-3.4, -3.2 .. 3.5] @@ -539,6 +529,8 @@  -- Quiet GHC about unused enum elts _unused :: SDay-_unused = undefined sMon sTue sWed sThu sFri sSat sSun+_unused = undefined  sMon  sTue  sWed  sThu  sFri  sSat  sSun+                    isMon isTue isWed isThu isFri isSat isSun+                    (sCaseDay @SInteger)  {- HLint ignore module "Reduce duplication" -}
SBVTestSuite/TestSuite/Basics/ArithSolver.hs view
@@ -11,24 +11,16 @@ -- constant folding. ----------------------------------------------------------------------------- -{-# LANGUAGE CPP                 #-} {-# LANGUAGE DataKinds           #-}-{-# LANGUAGE DeriveAnyClass      #-}-{-# LANGUAGE DeriveDataTypeable  #-} {-# LANGUAGE FlexibleContexts    #-} {-# LANGUAGE FlexibleInstances   #-}-{-# LANGUAGE Rank2Types          #-} {-# LANGUAGE QuasiQuotes         #-}+{-# LANGUAGE RankNTypes          #-} {-# LANGUAGE ScopedTypeVariables #-}-{-# LANGUAGE StandaloneDeriving  #-} {-# LANGUAGE TemplateHaskell     #-} {-# LANGUAGE TypeApplications    #-} -#if MIN_VERSION_base(4,19,0) {-# OPTIONS_GHC -Wall -Werror -Wno-incomplete-uni-patterns -Wno-x-partial #-}-#else-{-# OPTIONS_GHC -Wall -Werror -Wno-incomplete-uni-patterns #-}-#endif  module TestSuite.Basics.ArithSolver(tests) where @@ -41,8 +33,8 @@ import qualified Data.SBV.Char   as SC import qualified Data.SBV.List   as SL -data Day = Mon | Tue | Wed | Thu | Fri | Sat | Sun deriving (Bounded, Enum, Eq)-mkSymbolicEnumeration  ''Day+data Day = Mon | Tue | Wed | Thu | Fri | Sat | Sun deriving (Show, Bounded, Enum, Eq)+mkSymbolic  [''Day]  -- Test suite tests :: TestTree@@ -880,7 +872,7 @@  rs :: [Ratio Integer] rs = [i % d | i <- is, d <- dens]- where is   = [-1000000] ++ [-1 .. 1] ++ [10000001]+ where is   = [-1000000] ++ [-1 .. 1] ++ [1000001]        dens = [5,100,1000000]  -- Admittedly paltry test-cases for float/double@@ -1029,8 +1021,6 @@          -- NB. Precision here is important. If you pick too small of a significand         -- size then you can turn this enumeration into an infinite list, busting the tests.-        -- For details see: https://gitlab.haskell.org/ghc/ghc/-/issues/15081-        -- And likewise, constant folding doesn't happen, too difficult for z3         fps :: [FloatingPoint 5 8]         -- fps = [-3.4, -3.2 .. 3.5]         fps = []@@ -1046,6 +1036,8 @@  -- Quiet GHC about unused enum elts _unused :: SDay-_unused = undefined sMon sTue sWed sThu sFri sSat sSun+_unused = undefined  sMon  sTue  sWed  sThu  sFri  sSat  sSun+                    isMon isTue isWed isThu isFri isSat isSun+                    (sCaseDay @SInteger)  {- HLint ignore module "Reduce duplication" -}
SBVTestSuite/TestSuite/Basics/BarrelRotate.hs view
@@ -10,7 +10,6 @@ -----------------------------------------------------------------------------  {-# LANGUAGE FlexibleContexts    #-}-{-# LANGUAGE RankNTypes          #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TypeApplications    #-} 
SBVTestSuite/TestSuite/Basics/BasicTests.hs view
@@ -9,7 +9,7 @@ -- Test suite for Examples.Basics.BasicTests ----------------------------------------------------------------------------- -{-# LANGUAGE Rank2Types          #-}+{-# LANGUAGE RankNTypes          #-} {-# LANGUAGE ScopedTypeVariables #-}  {-# OPTIONS_GHC -Wall -Werror #-}
SBVTestSuite/TestSuite/Basics/Lambda.hs view
@@ -10,14 +10,10 @@ -----------------------------------------------------------------------------  {-# LANGUAGE DataKinds           #-}-{-# LANGUAGE DeriveAnyClass      #-}-{-# LANGUAGE DeriveDataTypeable  #-} {-# LANGUAGE FlexibleContexts    #-} {-# LANGUAGE OverloadedLists     #-} {-# LANGUAGE QuasiQuotes         #-}-{-# LANGUAGE RankNTypes          #-} {-# LANGUAGE ScopedTypeVariables #-}-{-# LANGUAGE StandaloneDeriving  #-} {-# LANGUAGE TemplateHaskell     #-} {-# LANGUAGE TypeApplications    #-} @@ -46,7 +42,7 @@ import Utils.SBVTestFramework  data P-mkUninterpretedSort ''P+mkSymbolic [''P]  drinker :: Predicate drinker = pure $ quantifiedBool $ \(Exists x) (Forall y) -> d x .=> d y@@ -80,7 +76,7 @@       , goldenCapturedIO "lambda12" $ eval1 [1 .. 3 :: Integer] (map singleton, P.map (: []))        , goldenCapturedIO "lambda13" $ eval1 [(x, y) | x <- [1..3], y <- [4..6 :: Integer]]-                                            (map (\t -> t^._1 + t^._2), P.map (uncurry (+)))+                                            (map (\t -> t^._1 + t^._2), P.map (P.uncurry (+)))        , goldenCapturedIO "lambda14" $ eval1 [1 .. 5 :: Integer] (zipWithL (+) [sEnum|10..15|], P.zipWith (+) [10..15]) @@ -114,7 +110,8 @@                                             , \a b -> P.foldr  (+) 0 (P.zipWith  (+) a b)                                             ) -      , goldenCapturedIO "lambda26" $ eval1 ([[1..5], [1..10], [1..20]] :: [[Integer]]) (concat, P.concat)+      -- Disabled due to z3 bug: https://github.com/LeventErkok/sbv/issues/773+      -- , goldenCapturedIO "lambda26" $ eval1 ([[1..5], [1..10], [1..20]] :: [[Integer]]) (concat, P.concat)        , goldenCapturedIO "lambda27" $ eval1 [2, 4, 6,    8, 10 :: Integer] (all (\x -> x `sMod` 2 .== 0), P.all (\x -> x `mod` 2 == 0))       , goldenCapturedIO "lambda28" $ eval1 [2, 4, 6, 1, 8, 10 :: Integer] (all (\x -> x `sMod` 2 .== 0), P.all (\x -> x `mod` 2 == 0))@@ -162,7 +159,7 @@       , goldenCapturedIO "lambda52_c" $ runSat  (isOdd  21 .==)        -- make sure we can pass globals-      , goldenCapturedIO "lambda53" $ runSat $ \x -> x .== smtFunction "foo" (+(x::SInteger)) x+      , goldenCapturedIO "lambda53" $ runS $ \x -> x .== smtFunction "foo" (+(x::SInteger)) x        -- Make sure we can handle dependency orders       , goldenCapturedIO "lambda54" $ runSat   $ \x -> let foo = smtFunction "foo" (\a -> bar a + 1)@@ -179,6 +176,23 @@                                                            f3 = smtFunction "f3" (\a -> ite (a .== 0) 0 (1 + (f3 (a-1) + f4 (a-2))))                                                            f4 = smtFunction "f4" (\a -> ite (a .== 0) 0 (1 + (f4 (a-1) + f1 (a-2))))                                                        in f1 x .== (x :: SWord8)+      , goldenCapturedIO "lambda57a" $ runSat $ \x -> let f1 = smtFunction "f1i" (\a -> ite (a .<= 0) 0 (1 + (f1 (a-1) + f2 (a-2))))+                                                          f2 = smtFunction "f2i" (\a -> ite (a .<= 0) 0 (1 + (f2 (a-1) + f3 (a-2))))+                                                          f3 = smtFunction "f3i" (\a -> ite (a .<= 0) 0 (1 + (f3 (a-1) + f4 (a-2))))+                                                          f4 = smtFunction "f4i" (\a -> ite (a .<= 0) 0 (1 + (f4 (a-1) + f1 (a-2))))+                                                      in f1 x .== (x :: SInteger)+      , goldenCapturedIO "lambda57b" $ runSat $ \x -> let m a = 0 `smax` a :: SInteger+                                                          f1 = smtFunctionWithMeasure "f1m" (m, []) (\a -> ite (a .<= 0) 0 (1 + (f1 (a-1) + f2 (a-2))))+                                                          f2 = smtFunctionWithMeasure "f2m" (m, []) (\a -> ite (a .<= 0) 0 (1 + (f2 (a-1) + f3 (a-2))))+                                                          f3 = smtFunctionWithMeasure "f3m" (m, []) (\a -> ite (a .<= 0) 0 (1 + (f3 (a-1) + f4 (a-2))))+                                                          f4 = smtFunctionWithMeasure "f4m" (m, []) (\a -> ite (a .<= 0) 0 (1 + (f4 (a-1) + f1 (a-2))))+                                                      in f1 x .== (x :: SInteger)+      , goldenCapturedIO "lambda57c" $ runSat $ \x -> let m  = sFromIntegral :: SWord8 -> SInteger+                                                          f1 = smtFunctionWithMeasure "f1w" (m, []) (\a -> ite (a .== 0) 0 (1 + (f1 (a-1) + f2 (a-2))))+                                                          f2 = smtFunctionWithMeasure "f2w" (m, []) (\a -> ite (a .== 0) 0 (1 + (f2 (a-1) + f3 (a-2))))+                                                          f3 = smtFunctionWithMeasure "f3w" (m, []) (\a -> ite (a .== 0) 0 (1 + (f3 (a-1) + f4 (a-2))))+                                                          f4 = smtFunctionWithMeasure "f4w" (m, []) (\a -> ite (a .== 0) 0 (1 + (f4 (a-1) + f1 (a-2))))+                                                      in f1 x .== (x :: SWord8)        -- Quantified axioms       , goldenCapturedIO "lambda58" $ record $ \st -> constraintStr st $ \(Forall b) (Exists c) -> sNot b .|| c@@ -211,6 +225,17 @@       , goldenCapturedIO "lambda69" $ runS $ \(Forall x) (Forall y) -> uninterpret "F" x y .== 2*x+(3-y::SInteger)        -- Most skolems are tested inline, here's a fancy one!+      -- This is satisfiable. A model for this will present two functions, x_eu1 and x_eu2+      -- If these functions differ on all mappings i.e. forall x. x_eu1 x /= x_eu2 x, then+      -- it would be a valid model for this problem. Note that these functions can+      -- be constant functions mapping to different values; or functions that distinguish+      -- some subset of inputs, so long as they map it to different values. Examples:+      --    x_eu1 _ = 0      x_eu2 _ = 0+      -- OR+      --    x_eu1 1 = 0      x_eu2 1 = 1+      --    x_eu1 _ = 1      x_eu2 _ = 0+      --+      -- are all good.       , goldenCapturedIO "lambda70" $                 let phi :: ExistsUnique "x" Integer -> SBool                     phi (ExistsUnique  x) = x .== 0 .|| x .== 1@@ -256,6 +281,7 @@                                                , \xs ys -> P.map (\x -> P.map (\y -> x + y) xs) ys                                                ) +      {- Disabled due to z3 bug: https://github.com/LeventErkok/sbv/issues/773       , let cls :: SList Integer -> Closure (SList Integer) (SList Integer -> SList Integer)             cls ys = Closure { closureEnv = ys                              , closureFun = \env xs -> xs ++ env@@ -264,6 +290,7 @@                                                ( \xss ys ->   map (cls  ys) xss                                                , \xss ys -> P.map (P.++ ys) xss                                                )+      -}       ]    P.++ qc1 "lambdaQC1" P.sum (foldr ((+) @SInteger) (0::SInteger))    P.++ qc2 "lambdaQC2" (+)  (smtFunction "sadd" ((+) :: SInteger -> SInteger -> SInteger))@@ -298,7 +325,7 @@          rel, leq :: Relation Integer         rel = uninterpret "R"-        leq = uncurry $ smtFunction "leq" (.<=)+        leq = P.uncurry $ smtFunction "leq" (.<=)         po  = isPartialOrder "poR" rel         poI = isPartialOrder "poI" leq @@ -437,7 +464,7 @@     xs <- free_    ys <- free_-   pure $ map (ae xs) ys .== nil+   pure $ map (ae xs) ys .== []  -- This one is ok, because we're using the global xs. (i.e., no free vars) filterHead :: Symbolic String
SBVTestSuite/TestSuite/Basics/List.hs view
@@ -133,7 +133,7 @@   constrain $ sNot $ c `L.isInfixOf` b   constrain $ sNot $ b `L.isInfixOf` c --- Any string is equal to the prefix and suffix that add up to a its length.+-- Any string is equal to the prefix and suffix that add up to its length. seqExamples8 :: Symbolic () seqExamples8 = do   [a, b, c :: SList Integer] <- sLists ["a", "b", "c"]
SBVTestSuite/TestSuite/Basics/Quantifiers.hs view
@@ -9,15 +9,10 @@ -- Various combinations of quantifiers ----------------------------------------------------------------------------- -{-# LANGUAGE CPP                 #-} {-# LANGUAGE DataKinds           #-} {-# LANGUAGE FlexibleContexts    #-} {-# LANGUAGE ScopedTypeVariables #-}-{-# LANGUAGE TypeApplications    #-}--#if MIN_VERSION_base(4,19,0) {-# LANGUAGE TypeAbstractions    #-}-#endif  {-# OPTIONS_GHC -Wall -Werror #-} 
SBVTestSuite/TestSuite/Basics/Recursive.hs view
@@ -9,6 +9,12 @@ -- Some recursive definitions. ----------------------------------------------------------------------------- +{-# LANGUAGE DataKinds           #-}+{-# LANGUAGE OverloadedLists     #-}+{-# LANGUAGE QuasiQuotes         #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions    #-}+ {-# OPTIONS_GHC -Wall -Werror #-}  module TestSuite.Basics.Recursive(tests) where@@ -17,12 +23,24 @@  import Data.SBV.Internals  (genMkSymVar, unSBV, VarContext(..)) +import Data.List (isInfixOf)++import qualified Data.SBV.List as L import qualified Data.SBV.Dynamic as D+import Data.SBV.TP (runTPWith, lemma) --- This is recursive and suffers from the termination problem.+import qualified Control.Exception as C++import Documentation.SBV.Examples.Misc.Definitions (ack)+import Documentation.SBV.Examples.TP.McCarthy91    (mcCarthy91)++-- This is recursive and can't be symbolically simulated for arbitrary inputs. -- But we can still prove a few things about it! mgcd :: SWord8 -> SWord8 -> SWord8-mgcd a b = ite (b .== 0) a (mgcd b (a `sMod` b))+mgcd a b = [sCase| b of+              _ | b .== 0 -> a+              _           -> mgcd b (a `sMod` b)+           |]  -- Same construction, expressed in terms of the dynamic interface mgcdDyn :: Int -> IO ThmResult@@ -50,11 +68,402 @@                   ThmResult Satisfiable{}   -> return False                   _                         -> error "checkThm: Unexpected result!" +-- | Test that auto-guess succeeds for an integer-recursive function (abs measure)+autoGuessInteger :: Assertion+autoGuessInteger = assertIsSat $ \(x :: SInteger) -> f x .== x+  where f :: SInteger -> SInteger+        f = smtFunction "autoGuessIntF" $ \x -> ite (x .<= 0) 0 (1 + f (x - 1))++-- | Test that auto-guess succeeds for a list-recursive function (length measure)+autoGuessList :: Assertion+autoGuessList = assertIsSat $ \(xs :: SList Integer) -> myLen xs .>= 0+  where myLen :: SList Integer -> SInteger+        myLen = smtFunction "autoGuessListLen" $ \xs ->+                  ite (L.null xs) 0 (1 + myLen (L.tail xs))++-- | Test that auto-guess fails when candidates exist but don't work (Ackermann)+autoGuessFailCandidates :: Assertion+autoGuessFailCandidates = do+  r <- C.try $ sat $ \(x :: SInteger) (y :: SInteger) -> ack' x y .== 0+  case r of+    Left (e :: C.SomeException) -> if "Cannot determine a termination measure" `isInfixOf` show e+                                      then pure ()+                                      else assertFailure $ "Unexpected exception: " ++ show e+    Right _                     -> assertFailure "Expected error for Ackermann auto-guess"+  where ack' :: SInteger -> SInteger -> SInteger+        ack' = smtFunction "ackermann" $ \m n ->+                ite (m .== 0) (n + 1)+                    (ite (n .== 0) (ack' (m - 1) 1)+                                   (ack' (m - 1) (ack' m (n - 1))))++-- | Test that auto-guess fails when no candidates can be derived (non-integer, non-list args)+autoGuessNoCandidates :: Assertion+autoGuessNoCandidates = do+  r <- C.try $ sat $ \(b :: SBool) -> h b .== 0+  case r of+    Left (e :: C.SomeException) -> if "No measure candidates" `isInfixOf` show e+                                      then pure ()+                                      else assertFailure $ "Unexpected exception: " ++ show e+    Right _                     -> assertFailure "Expected error for no-candidate auto-guess"+  where h :: SBool -> SInteger+        h = smtFunction "noCandidate" $ \b -> ite b (1 + h (sNot b)) 0++-- | Test that a non-recursive smtFunction without a measure is accepted+nonRecursiveNoMeasure :: Assertion+nonRecursiveNoMeasure = assertIsSat $ \(x :: SInteger) -> g x .== 4+  where g :: SInteger -> SInteger+        g = smtFunction "nonRecG" $ \x -> 2 * x+ -- Test suite tests :: TestTree tests = testGroup "Basics.Recursive"-   [ testCase "recursive1"    $ assertIsThm $ \x -> mgcd    0 x .== x-   , testCase "recursive2"    $ assertIsThm $ \x -> mgcd    x 0 .== x-   , testCase "recursiveDyn1" $ checkThm =<< mgcdDyn 0-   , testCase "recursiveDyn2" $ checkThm =<< mgcdDyn 1+   [ testCase "recursive1"                $ assertIsThm $ \x -> mgcd    0 x .== x+   , testCase "recursive2"                $ assertIsThm $ \x -> mgcd    x 0 .== x+   , testCase "recursiveDyn1"             $ checkThm =<< mgcdDyn 0+   , testCase "recursiveDyn2"             $ checkThm =<< mgcdDyn 1+   , testCase "autoGuessInteger"          autoGuessInteger+   , testCase "autoGuessList"             autoGuessList+   , testCase "autoGuessFailCandidates"   autoGuessFailCandidates+   , testCase "autoGuessNoCandidates"     autoGuessNoCandidates+   , testCase "nonRecursiveNoMeasure"     nonRecursiveNoMeasure++   -- Test that an explicit measure that doesn't decrease is rejected+   , goldenCapturedIO "recursive3_badMeasure" $ \rf -> do+        let badSum :: SInteger -> SInteger+            badSum = smtFunctionWithMeasure "badSum" (\_ -> 1 :: SInteger, [])+                   $ \x -> ite (x .<= 0) 0 (x + badSum (x - 1))+        r <- C.try $ satWith z3{verbose=True, redirectVerbose=Just rf} $+                \x -> badSum x .>= 0+        case r of+          Left (e :: C.SomeException) -> appendFile rf ("\nEXCEPTION:\n" ++ show e ++ "\n")+          Right m                     -> appendFile rf ("\nRESULT:\n" ++ show m ++ "\n")++   -- Test that lexicographic measure auto-guess works for Ackermann (nested recursion)+   , goldenCapturedIO "recursive1_ack" $ \rf -> do+        m <- satWith z3{verbose=True, redirectVerbose=Just rf} $+                \y r -> y .== (5 :: SInteger) .&& r .== ack 1 y+        appendFile rf ("\nRESULT:\n" ++ show m ++ "\n")++   -- Test that explicit measure works for enumFromThenTo.down (descending enumeration)+   , goldenCapturedIO "recursive2_enum" $ \rf -> do+        m <- satWith z3{verbose=True, redirectVerbose=Just rf} $+                \x -> L.length [sEnum|(5::SInteger), 4 .. x|] .>= 0+        appendFile rf ("\nRESULT:\n" ++ show m ++ "\n")++   -- Test that contract-based measure works for McCarthy91 (nested recursion)+   , goldenCapturedIO "recursive4_mcCarthy91" $ \rf -> do+        m <- satWith z3{verbose=True, redirectVerbose=Just rf} $+                \n -> mcCarthy91 n .== (91 :: SInteger)+        appendFile rf ("\nRESULT:\n" ++ show m ++ "\n")++   -- Test that a bad contract is rejected (contract says result is always 0, which is wrong)+   , goldenCapturedIO "recursive5_badContract" $ \rf -> do+        let mc91bad :: SInteger -> SInteger+            mc91bad = smtFunctionWithContract "mc91bad"+                        ( \n -> 0 `smax` (101 - n)+                        , \_ r -> r .== 0+                        , []+                        )+                    $ \n -> ite (n .> 100) (n - 10) (mc91bad (mc91bad (n + 11)))+        r <- C.try $ satWith z3{verbose=True, redirectVerbose=Just rf} $+                \n -> mc91bad n .>= 0+        case r of+          Left (e :: C.SomeException) -> appendFile rf ("\nEXCEPTION:\n" ++ show e ++ "\n")+          Right m                     -> appendFile rf ("\nRESULT:\n" ++ show m ++ "\n")++   -- Test that a true-but-useless contract is rejected (contract is trivially True,+   -- so the IH provides no information about recursive call results, and the measure+   -- decrease for the outer call can't be proven)+   , goldenCapturedIO "recursive6_uselessContract" $ \rf -> do+        let mc91triv :: SInteger -> SInteger+            mc91triv = smtFunctionWithContract "mc91triv"+                         ( \n -> 0 `smax` (101 - n)+                         , \_ _ -> sTrue+                         , []+                         )+                     $ \n -> ite (n .> 100) (n - 10) (mc91triv (mc91triv (n + 11)))+        r <- C.try $ satWith z3{verbose=True, redirectVerbose=Just rf} $+                \n -> mc91triv n .>= 0+        case r of+          Left (e :: C.SomeException) -> appendFile rf ("\nEXCEPTION:\n" ++ show e ++ "\n")+          Right m                     -> appendFile rf ("\nRESULT:\n" ++ show m ++ "\n")++   -- Test that a productive function (guarded recursion) is accepted+   , goldenCapturedIO "recursive7_productive" $ \rf -> do+        let rep :: SInteger -> SInteger -> SList Integer+            rep = smtProductiveFunction "rep" $ \n x ->+                    ite (n .<= 0) L.nil (x L..: rep (n - 1) x)+        m <- satWith z3{verbose=True, redirectVerbose=Just rf} $+                \x -> L.length (rep 3 x) .== 3+        appendFile rf ("\nRESULT:\n" ++ show m ++ "\n")++   -- Test that a non-guarded function marked productive is rejected+   , goldenCapturedIO "recursive8_badProductive" $ \rf -> do+        let bad :: SInteger -> SInteger+            bad = smtProductiveFunction "bad" $ \n -> ite (n .== 0) 0 (1 + bad (n - 1))+        r <- C.try $ satWith z3{verbose=True, redirectVerbose=Just rf} $+                \n -> bad n .>= 0+        case r of+          Left (e :: C.SomeException) -> appendFile rf ("\nEXCEPTION:\n" ++ show e ++ "\n")+          Right m                     -> appendFile rf ("\nRESULT:\n" ++ show m ++ "\n")++   -- Test that a multi-arg productive function (guarded recursion) is accepted+   , goldenCapturedIO "recursive9_productive2" $ \rf -> do+        let countdown :: SInteger -> SList Integer+            countdown = smtProductiveFunction "countdown" $ \n ->+                          ite (n .<= 0) (L.singleton 0) (n L..: countdown (n - 1))+        m <- satWith z3{verbose=True, redirectVerbose=Just rf} $+                \n -> L.head (countdown n) .== (n :: SInteger) .&& n .> 0+        appendFile rf ("\nRESULT:\n" ++ show m ++ "\n")++   -- Test mutual recursion (2-way): mf calls mg, mg calls mf, neither is self-recursive.+   -- No measure check should fire. The SMTLib emission should use define-funs-rec.+   , goldenCapturedIO "recursive10_mutual" $ \rf -> do+        let mf :: SInteger -> SInteger+            mf = smtFunction "mf" $ \n -> ite (n .<= 0) 0 (1 + mg (n - 1))+            mg :: SInteger -> SInteger+            mg = smtFunction "mg" $ \n -> ite (n .<= 0) 0 (1 + mf (n - 1))+        m <- satWith z3{verbose=True, redirectVerbose=Just rf} $+                \x -> mf x .== (x :: SInteger)+        appendFile rf ("\nRESULT:\n" ++ show m ++ "\n")++   -- Test chain recursion (3-way): ca calls cb, cb calls cc, cc calls ca.+   -- No measure check should fire. The SMTLib emission should use define-funs-rec.+   , goldenCapturedIO "recursive11_chain" $ \rf -> do+        let ca :: SInteger -> SInteger+            ca = smtFunction "ca" $ \n -> ite (n .<= 0) 0 (1 + cb (n - 1))+            cb :: SInteger -> SInteger+            cb = smtFunction "cb" $ \n -> ite (n .<= 0) 0 (1 + cc (n - 1))+            cc :: SInteger -> SInteger+            cc = smtFunction "cc" $ \n -> ite (n .<= 0) 0 (1 + ca (n - 1))+        m <- satWith z3{verbose=True, redirectVerbose=Just rf} $+                \x -> ca x .== (x :: SInteger)+        appendFile rf ("\nRESULT:\n" ++ show m ++ "\n")++   -- Test bad mutual recursion: bf calls bg with (n+1), so no measure can decrease.+   , goldenCapturedIO "recursive12_badMutual" $ \rf -> do+        let bf :: SInteger -> SInteger+            bf = smtFunction "bf" $ \n -> ite (n .<= 0) 0 (1 + bg (n + 1))+            bg :: SInteger -> SInteger+            bg = smtFunction "bg" $ \n -> ite (n .<= 0) 0 (1 + bf (n - 1))+        r <- C.try $ satWith z3{verbose=True, redirectVerbose=Just rf} $+                \x -> bf x .== (x :: SInteger)+        case r of+          Left (e :: C.SomeException) -> appendFile rf ("\nEXCEPTION:\n" ++ show e ++ "\n")+          Right m                     -> appendFile rf ("\nRESULT:\n" ++ show m ++ "\n")++   -- Test mutual recursion with explicit measures: ef calls eg, eg calls ef, both decreasing.+   , goldenCapturedIO "recursive13_mutualMeasure" $ \rf -> do+        let ef :: SInteger -> SInteger+            ef = smtFunctionWithMeasure "ef" (abs, [])+               $ \n -> ite (n .<= 0) 0 (1 + eg (n - 1))+            eg :: SInteger -> SInteger+            eg = smtFunctionWithMeasure "eg" (abs, [])+               $ \n -> ite (n .<= 0) 0 (1 + ef (n - 1))+        m <- satWith z3{verbose=True, redirectVerbose=Just rf} $+                \x -> ef x .== (x :: SInteger)+        appendFile rf ("\nRESULT:\n" ++ show m ++ "\n")++   -- Test mutual recursion with explicit measure that fails: constant measure doesn't decrease.+   , goldenCapturedIO "recursive14_badMutualMeasure" $ \rf -> do+        let hf :: SInteger -> SInteger+            hf = smtFunctionWithMeasure "hf" (\_ -> 1 :: SInteger, [])+               $ \n -> ite (n .<= 0) 0 (1 + hg (n - 1))+            hg :: SInteger -> SInteger+            hg = smtFunctionWithMeasure "hg" (\_ -> 1 :: SInteger, [])+               $ \n -> ite (n .<= 0) 0 (1 + hf (n - 1))+        r <- C.try $ satWith z3{verbose=True, redirectVerbose=Just rf} $+                \x -> hf x .== (x :: SInteger)+        case r of+          Left (e :: C.SomeException) -> appendFile rf ("\nEXCEPTION:\n" ++ show e ++ "\n")+          Right m                     -> appendFile rf ("\nRESULT:\n" ++ show m ++ "\n")++   -- Test mixed mutual recursion: xf has explicit measure, xg uses auto-guess.+   -- xf's user-provided measure (abs n) is tried first and works for the whole group.+   , goldenCapturedIO "recursive15_mixedMutualMeasure" $ \rf -> do+        let xf :: SInteger -> SInteger+            xf = smtFunctionWithMeasure "xf" (abs, [])+               $ \n -> ite (n .<= 0) 0 (1 + xg (n - 1))+            xg :: SInteger -> SInteger+            xg = smtFunction "xg"+               $ \n -> ite (n .<= 0) 0 (1 + xf (n - 1))+        m <- satWith z3{verbose=True, redirectVerbose=Just rf} $+                \x -> xf x .== (x :: SInteger)+        appendFile rf ("\nRESULT:\n" ++ show m ++ "\n")++   -- Test bad mixed mutual recursion: yf has explicit measure but yg calls yf with (n+1).+   -- The user-provided measure fails, and auto-guess also fails.+   , goldenCapturedIO "recursive16_badMixedMutualMeasure" $ \rf -> do+        let yf :: SInteger -> SInteger+            yf = smtFunctionWithMeasure "yf" (abs, [])+               $ \n -> ite (n .<= 0) 0 (1 + yg (n - 1))+            yg :: SInteger -> SInteger+            yg = smtFunction "yg"+               $ \n -> ite (n .<= 0) 0 (1 + yf (n + 1))+        r <- C.try $ satWith z3{verbose=True, redirectVerbose=Just rf} $+                \x -> yf x .== (x :: SInteger)+        case r of+          Left (e :: C.SomeException) -> appendFile rf ("\nEXCEPTION:\n" ++ show e ++ "\n")+          Right m                     -> appendFile rf ("\nRESULT:\n" ++ show m ++ "\n")++   -- Test 3-way chain with explicit measures: da calls db, db calls dc, dc calls da, all with abs measure.+   , goldenCapturedIO "recursive17_chainMeasure" $ \rf -> do+        let da :: SInteger -> SInteger+            da = smtFunctionWithMeasure "da" (abs, [])+               $ \n -> ite (n .<= 0) 0 (1 + db (n - 1))+            db :: SInteger -> SInteger+            db = smtFunctionWithMeasure "db" (abs, [])+               $ \n -> ite (n .<= 0) 0 (1 + dc (n - 1))+            dc :: SInteger -> SInteger+            dc = smtFunctionWithMeasure "dc" (abs, [])+               $ \n -> ite (n .<= 0) 0 (1 + da (n - 1))+        m <- satWith z3{verbose=True, redirectVerbose=Just rf} $+                \x -> da x .== (x :: SInteger)+        appendFile rf ("\nRESULT:\n" ++ show m ++ "\n")++   -- Test mutual recursion with different arg types: tf takes Integer, tg takes a list.+   -- Auto-guess fails because no single measure applies to both signatures.+   , testCase "diffTypeMutual" $ do+        let tf :: SInteger -> SInteger+            tf = smtFunction "tf" $ \n -> ite (n .<= 0) 0 (1 + tg (L.singleton n))+            tg :: SList Integer -> SInteger+            tg = smtFunction "tg" $ \xs -> ite (L.null xs) 0 (tf (L.head xs - 1))+        r <- C.try $ sat $ \(x :: SInteger) -> tf x .== 0+        case r of+          Left (e :: C.SomeException) -> if "Cannot determine a termination measure" `isInfixOf` show e+                                            then pure ()+                                            else assertFailure $ "Unexpected exception: " ++ show e+          Right _                     -> assertFailure "Expected error for different-type mutual recursion"++   -- Test self-recursive + mutual: sf calls itself AND sg. Both paths should be checked.+   , goldenCapturedIO "recursive19_selfAndMutual" $ \rf -> do+        let sf :: SInteger -> SInteger+            sf = smtFunction "sf" $ \n -> ite (n .<= 0) 0 (sf (n - 1) + sg (n - 1))+            sg :: SInteger -> SInteger+            sg = smtFunction "sg" $ \n -> ite (n .<= 0) 0 (1 + sf (n - 1))+        m <- satWith z3{verbose=True, redirectVerbose=Just rf} $+                \x -> sf x .== (x :: SInteger)+        appendFile rf ("\nRESULT:\n" ++ show m ++ "\n")++   -- Test all-self-recursive mutual group with bad cross-calls:+   -- bf and bg both self-recurse (n-1), but cross-call with (n+1).+   -- Self-recursion checks pass, but mutual group check must catch the bad cross-calls.+   , goldenCapturedIO "recursive21_allSelfBadCross" $ \rf -> do+        let bf :: SInteger -> SInteger+            bf = smtFunction "bf21" $ \n -> ite (n .<= 0) 0 (bf (n - 1) + bg (n + 1))+            bg :: SInteger -> SInteger+            bg = smtFunction "bg21" $ \n -> ite (n .<= 0) 0 (bg (n - 1) + bf (n + 1))+        r <- C.try $ satWith z3{verbose=True, redirectVerbose=Just rf} $+                \x -> bf x .== (x :: SInteger)+        case r of+          Left (e :: C.SomeException) -> appendFile rf ("\nEXCEPTION:\n" ++ show e ++ "\n")+          Right m                     -> appendFile rf ("\nRESULT:\n" ++ show m ++ "\n")++   -- Test all-self-recursive mutual group with good cross-calls and explicit measures:+   -- Both bf and bg self-recurse and cross-call with (n-1). User-provided abs measure works.+   , goldenCapturedIO "recursive22_allSelfGoodCross" $ \rf -> do+        let bf :: SInteger -> SInteger+            bf = smtFunctionWithMeasure "bf22" (abs, []) $ \n -> ite (n .<= 0) 0 (bf (n - 1) + bg (n - 1))+            bg :: SInteger -> SInteger+            bg = smtFunctionWithMeasure "bg22" (abs, []) $ \n -> ite (n .<= 0) 0 (bg (n - 1) + bf (n - 1))+        m <- satWith z3{verbose=True, redirectVerbose=Just rf} $+                \x -> bf x .== (x :: SInteger)+        appendFile rf ("\nRESULT:\n" ++ show m ++ "\n")++   -- Test mutual recursion via TP proofs (exercises checkNewMeasures in Kernel.hs)+   , goldenCapturedIO "recursive20_mutualTP" $ \rf -> do+        let cfg = z3{verbose=True, redirectVerbose=Just rf}+            mf :: SInteger -> SInteger+            mf = smtFunction "mf_tp" $ \n -> ite (n .<= 0) 0 (1 + mg (n - 1))+            mg :: SInteger -> SInteger+            mg = smtFunction "mg_tp" $ \n -> ite (n .<= 0) 0 (1 + mf (n - 1))+        _ <- runTPWith cfg $+                lemma "mutual_at_0"+                      (\(Forall @"n" n) -> n .== 0 .=> mf n .== 0)+                      []+        pure ()++   -- Test mutual productive functions (guarded cross-calls): pf and pg build lists via each other.+   , goldenCapturedIO "recursive23_mutualProductive" $ \rf -> do+        let pf :: SInteger -> SList Integer+            pf = smtProductiveFunction "pf23" $ \n ->+                   ite (n .<= 0) (L.singleton 0) (n L..: pg (n - 1))+            pg :: SInteger -> SList Integer+            pg = smtProductiveFunction "pg23" $ \n ->+                   ite (n .<= 0) (L.singleton 0) (n L..: pf (n - 1))+        m <- satWith z3{verbose=True, redirectVerbose=Just rf} $+                \n -> L.head (pf n) .== (n :: SInteger) .&& n .> 0+        appendFile rf ("\nRESULT:\n" ++ show m ++ "\n")++   -- Test mutual productive functions with unguarded cross-call: bad_pg calls bad_pf without a constructor guard.+   , goldenCapturedIO "recursive24_badMutualProductive" $ \rf -> do+        let bad_pf :: SInteger -> SList Integer+            bad_pf = smtProductiveFunction "bad_pf" $ \n ->+                       ite (n .<= 0) (L.singleton 0) (n L..: bad_pg (n - 1))+            bad_pg :: SInteger -> SList Integer+            bad_pg = smtProductiveFunction "bad_pg" $ \n ->+                       ite (n .<= 0) (L.singleton 0) (bad_pf (n - 1))  -- not guarded!+        r <- C.try $ satWith z3{verbose=True, redirectVerbose=Just rf} $+                \(n :: SInteger) -> L.head (bad_pf n) .== n+        case r of+          Left (e :: C.SomeException) -> appendFile rf ("\nEXCEPTION:\n" ++ show e ++ "\n")+          Right m                     -> appendFile rf ("\nRESULT:\n" ++ show m ++ "\n")++   -- Test that smtFunctionWithContract in a mutual group is rejected.+   , goldenCapturedIO "recursive25_contractMutualRejected" $ \rf -> do+        let cf :: SInteger -> SInteger+            cf = smtFunctionWithContract "cf_mut"+                   ( \n -> 0 `smax` (101 - n)+                   , \_ r -> r .== 91+                   , []+                   )+                 $ \n -> ite (n .> 100) (n - 10) (cg (n + 11))+            cg :: SInteger -> SInteger+            cg = smtFunction "cg_mut" $ \n -> ite (n .<= 0) 0 (1 + cf (n - 1))+        r <- C.try $ satWith z3{verbose=True, redirectVerbose=Just rf} $+                \(n :: SInteger) -> cf n .== 0+        case r of+          Left (e :: C.SomeException) -> appendFile rf ("\nEXCEPTION:\n" ++ show e ++ "\n")+          Right m                     -> appendFile rf ("\nRESULT:\n" ++ show m ++ "\n")++   -- Test productive function that is both self-recursive and has cross-refs.+   -- spf calls itself AND spg, both guarded by L..:+   , goldenCapturedIO "recursive26_selfAndMutualProductive" $ \rf -> do+        let spf :: SInteger -> SList Integer+            spf = smtProductiveFunction "spf26" $ \n ->+                    ite (n .<= 0) (L.singleton 0)+                        (ite (sMod n 2 .== 0) (n L..: spf (n - 1))+                                              (n L..: spg (n - 1)))+            spg :: SInteger -> SList Integer+            spg = smtProductiveFunction "spg26" $ \n ->+                    ite (n .<= 0) (L.singleton 0) (n L..: spf (n - 1))+        m <- satWith z3{verbose=True, redirectVerbose=Just rf} $+                \n -> L.head (spf n) .== (n :: SInteger) .&& n .> 0+        appendFile rf ("\nRESULT:\n" ++ show m ++ "\n")++   -- Test 3-way mutually-recursive productive streams.+   -- pa -> pb -> pc -> pa, all guarded by L..:+   , goldenCapturedIO "recursive27_mutualProductive3" $ \rf -> do+        let pa :: SInteger -> SList Integer+            pa = smtProductiveFunction "pa27" $ \n ->+                   ite (n .<= 0) (L.singleton 0) (n L..: pb (n - 1))+            pb :: SInteger -> SList Integer+            pb = smtProductiveFunction "pb27" $ \n ->+                   ite (n .<= 0) (L.singleton 0) ((n * 10) L..: pc (n - 1))+            pc :: SInteger -> SList Integer+            pc = smtProductiveFunction "pc27" $ \n ->+                   ite (n .<= 0) (L.singleton 0) ((n * 100) L..: pa (n - 1))+        m <- satWith z3{verbose=True, redirectVerbose=Just rf} $+                \n -> L.head (pa n) .== (n :: SInteger) .&& n .> 0+        appendFile rf ("\nRESULT:\n" ++ show m ++ "\n")++   -- Test smtFunctionNoTermination: proofs show [Modulo: <name> termination]+   , goldenCapturedIO "recursive28_noTermCheck" $ \rf -> do+        let f :: SInteger -> SInteger+            f = smtFunctionNoTermination "ntc28" $ \n -> ite (n .<= 0) 0 (1 + f (n - 1))+        p <- runTPWith z3{verbose=True, redirectVerbose=Just rf} $+                lemma "ntc_at_5"+                      (\(Forall @"n" n) -> n .== 5 .=> f n .== 5)+                      []+        appendFile rf (show p ++ "\n")    ]
SBVTestSuite/TestSuite/Basics/Set.hs view
@@ -9,12 +9,10 @@ -- Test sets. ----------------------------------------------------------------------------- -{-# LANGUAGE DeriveAnyClass      #-}-{-# LANGUAGE DeriveDataTypeable  #-} {-# LANGUAGE FlexibleInstances   #-} {-# LANGUAGE ScopedTypeVariables #-}-{-# LANGUAGE StandaloneDeriving  #-} {-# LANGUAGE TemplateHaskell     #-}+{-# LANGUAGE TypeApplications    #-}  {-# OPTIONS_GHC -Wall -Werror #-} @@ -29,11 +27,8 @@  import Utils.SBVTestFramework hiding (complement) -data E = A | B | C deriving (Bounded, Enum, Ord, Eq)-mkSymbolicEnumeration ''E--__unused :: SE-__unused = error "stop GHC from complaining unused names" sA sB sC+data E = A | B | C deriving (Show, Eq, Ord)+mkSymbolic [''E]  type SC = SSet  Integer type RC = RCSet Integer
+ SBVTestSuite/TestSuite/Basics/SmtFunctionUnique.hs view
@@ -0,0 +1,84 @@+-----------------------------------------------------------------------------+-- |+-- Module    : TestSuite.Basics.SmtFunctionUnique+-- Copyright : (c) Levent Erkok+-- License   : BSD3+-- Maintainer: erkokl@gmail.com+-- Stability : experimental+--+-- Tests for smtFunction name uniqueness enforcement.+-----------------------------------------------------------------------------++{-# LANGUAGE ScopedTypeVariables #-}++{-# OPTIONS_GHC -Wall -Werror #-}++module TestSuite.Basics.SmtFunctionUnique(tests) where++import Utils.SBVTestFramework++import qualified Control.Exception as C++-- Test suite+tests :: TestTree+tests = testGroup "Basics.SmtFunctionUnique"+   [+   -- Same name, same body: should succeed (idempotent re-registration).+     goldenCapturedIO "smtFuncUniq_sameOk" $ \rf -> do+        let f :: SInteger -> SInteger+            f = smtFunction "f" $ \x -> x + 1+        m <- satWith z3{verbose=True, redirectVerbose=Just rf} $+                \x -> f x + f x .== 4+        appendFile rf ("\nRESULT:\n" ++ show m ++ "\n")++   -- Same name, different body: should error.+   , goldenCapturedIO "smtFuncUniq_conflict" $ \rf -> do+        let f :: SInteger -> SInteger+            f = smtFunction "f" $ \x -> x + 1+            g :: SInteger -> SInteger+            g = smtFunction "f" $ \x -> x + 2+        r <- C.try $ satWith z3{verbose=True, redirectVerbose=Just rf} $+                \x -> f x + g x .== 5+        case r of+          Left (e :: C.SomeException) -> appendFile rf (show e ++ "\n")+          Right m                     -> appendFile rf ("\nUNEXPECTED SUCCESS:\n" ++ show m ++ "\n")++   -- Same name, same recursive body: should succeed.+   , goldenCapturedIO "smtFuncUniq_recursiveOk" $ \rf -> do+        let f :: SInteger -> SInteger+            f = smtFunction "f" $ \x -> ite (x .<= 0) 0 (x + f (x - 1))+        m <- satWith z3{verbose=True, redirectVerbose=Just rf} $+                \x -> x .>= 0 .&& x .<= 3 .&& f x .== 6+        appendFile rf ("\nRESULT:\n" ++ show m ++ "\n")++   -- Same name, different recursive body: should error.+   , goldenCapturedIO "smtFuncUniq_recursiveConflict" $ \rf -> do+        let f :: SInteger -> SInteger+            f = smtFunction "f" $ \x -> ite (x .<= 0) 0 (x + f (x - 1))+            g :: SInteger -> SInteger+            g = smtFunction "f" $ \x -> ite (x .<= 0) 1 (x * g (x - 1))+        r <- C.try $ satWith z3{verbose=True, redirectVerbose=Just rf} $+                \x -> f x + g x .== 10+        case r of+          Left (e :: C.SomeException) -> appendFile rf (show e ++ "\n")+          Right m                     -> appendFile rf ("\nUNEXPECTED SUCCESS:\n" ++ show m ++ "\n")++   -- Same name via parameter capture: bar 2 and bar 3 create different closures+   -- for "bar", which should be detected as a conflict.+   , goldenCapturedIO "smtFuncUniq_captureConflict" $ \rf -> do+        let bar :: SInteger -> SInteger -> SInteger+            bar k = smtFunction "bar" (+ k)+        r <- C.try $ satWith z3{verbose=True, redirectVerbose=Just rf} $+                \x -> bar 2 x + bar 3 x .== 10+        case r of+          Left (e :: C.SomeException) -> appendFile rf (show e ++ "\n")+          Right m                     -> appendFile rf ("\nUNEXPECTED SUCCESS:\n" ++ show m ++ "\n")++   -- Fix for the above: use a tag to give each instantiation a unique name.+   , goldenCapturedIO "smtFuncUniq_captureTagged" $ \rf -> do+        let bar :: String -> SInteger -> SInteger -> SInteger+            bar tag k = smtFunction ("bar_" ++ tag) (+ k)+        m <- satWith z3{verbose=True, redirectVerbose=Just rf} $+                \x -> bar "two" 2 x + bar "three" 3 x .== 10+        appendFile rf ("\nRESULT:\n" ++ show m ++ "\n")+   ]
SBVTestSuite/TestSuite/Basics/String.hs view
@@ -135,7 +135,7 @@   constrain $ sNot $ c `S.isInfixOf` b   constrain $ sNot $ b `S.isInfixOf` c --- Any string is equal to the prefix and suffix that add up to a its length.+-- Any string is equal to the prefix and suffix that add up to its length. strExamples8 :: Symbolic () strExamples8 = do   [a, b, c] <- sStrings ["a", "b", "c"]
SBVTestSuite/TestSuite/Basics/Sum.hs view
@@ -86,7 +86,7 @@ -- Test 'sMaybe', 'map', 'isNothing', 'isJust', and 'maybe' sumMaybe :: Symbolic () sumMaybe = do-  x <- sMaybe @Integer "x"+  x :: SMaybe Integer <- free "x"   let x' = M.map (+1) x   constrain $ isNothing x .== isNothing x'   constrain $ isJust x    .== isJust x'@@ -105,23 +105,23 @@ sumMaybeBoth :: Symbolic () sumMaybeBoth = do    (x :: SEither Integer Integer) <- sEither_-   (y :: SMaybe Integer)          <- sMaybe_+   (y :: SMaybe Integer)          <- free_     constrain $ isLeft x    constrain $ isJust y  sumMergeMaybe1 :: Symbolic () sumMergeMaybe1 = do-   (x :: SMaybe Integer) <- sMaybe_-   (y :: SMaybe Integer) <- sMaybe_+   (x :: SMaybe Integer) <- free_+   (y :: SMaybe Integer) <- free_    b  <- sBool_     constrain $ isNothing $ ite b x y  sumMergeMaybe2 :: Symbolic () sumMergeMaybe2 = do-   (x :: SMaybe Integer) <- sMaybe_-   (y :: SMaybe Integer) <- sMaybe_+   (x :: SMaybe Integer) <- free_+   (y :: SMaybe Integer) <- free_    b  <- sBool_     constrain $ isJust $ ite b x y
+ SBVTestSuite/TestSuite/Basics/TPCaching.hs view
@@ -0,0 +1,178 @@+-----------------------------------------------------------------------------+-- |+-- Module    : TestSuite.Basics.TPCaching+-- Copyright : (c) Levent Erkok+-- License   : BSD3+-- Maintainer: erkokl@gmail.com+-- Stability : experimental+--+-- Tests for the TP proof caching mechanism.+-----------------------------------------------------------------------------++{-# LANGUAGE DataKinds           #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions    #-}++{-# OPTIONS_GHC -Wall -Werror #-}++module TestSuite.Basics.TPCaching(tests) where++import Utils.SBVTestFramework++import Data.SBV.TP (TP, Proof, runTPWith, lemma, calc, recall, tpStats, (|-), (=:), qed)++import Control.Monad (void)+import Control.Exception (try, SomeException)++import Data.Char (isSpace)+import Data.List (isPrefixOf, dropWhileEnd)++import Control.DeepSeq (($!!))++-- | Strip timing info like @[0.05s]@ from the end of output lines.+-- Only matches brackets whose content looks like a time value (digits, dots, and 's').+-- Handles multiple consecutive timings like @[0.001s][0.002s]@.+stripTiming :: String -> String+stripTiming s = reverse $ go $ reverse $ dropWhileEnd isSpace s+ where go (']':rest) | (inner, '[':before) <- break (== '[') rest+                     , all (`elem` ("0123456789.s" :: String)) inner+                     = go $ dropWhile isSpace before+       go xs = xs++-- | Filter out the statistics summary line from verbose output.+isStatsLine :: String -> Bool+isStatsLine s = "[SBV:" `isPrefixOf` dropWhile isSpace s++-- | Clean captured verbose output: strip timing and stats.+cleanStatsOutput :: String -> String+cleanStatsOutput = unlines . map stripTiming . filter (not . isStatsLine) . lines++-- Test suite+tests :: TestTree+tests = testGroup "Basics.TPCaching"+   [+   -- Normal mode: recall when cache is empty (cache miss).+   -- The proof runs from scratch; recallWith shows "Lemma:" one-liner.+     goldenCapturedIO "tpCache_miss" $ \rf -> do+        let cfg = z3 { redirectVerbose = Just rf }+        void $ runTPWith cfg $+           recall (lemma "fact" sTrue [])++   -- Normal mode: direct proof then recall (cache hit).+   -- The direct proof shows "Lemma:", the recall shows "Lemma: ... [Cached]".+   , goldenCapturedIO "tpCache_hit" $ \rf -> do+        let cfg = z3 { redirectVerbose = Just rf }+        void $ runTPWith cfg $ do+           _ <- lemma "fact" sTrue []+           recall (lemma "fact" sTrue [])++   -- Normal mode: same proposition proved under two names, then recalled (aliases).+   -- The recall shows "Lemma: ... [Cached]" with "(a.k.a. ...)" listing the other name.+   , goldenCapturedIO "tpCache_alias" $ \rf -> do+        let cfg = z3 { redirectVerbose = Just rf }+        void $ runTPWith cfg $ do+           _ <- lemma "nameA" sTrue []+           _ <- lemma "nameB" sTrue []+           recall (lemma "nameC" sTrue [])++   -- Normal mode: calc proof with steps, then recall (cache hit).+   -- The direct proof shows each step; the recall collapses to one line.+   , goldenCapturedIO "tpCache_calcCollapse" $ \rf -> do+        let cfg = z3 { redirectVerbose = Just rf }+        void $ runTPWith cfg $ do+           let addZeroProof = calc "addZero"+                                   (\(Forall @"x" (x :: SInteger)) -> x + 0 .== x) $+                                   \x -> [] |- x + 0+                                            =: (x :: SInteger)+                                            =: qed+           _ <- addZeroProof+           recall addZeroProof++   -- Normal mode: nested recall.+   -- First run proves inner and outer. Second run (via recall) hits cache for outer.+   , goldenCapturedIO "tpCache_nested" $ \rf -> do+        let cfg = z3 { redirectVerbose = Just rf }+        void $ runTPWith cfg $ do+           let myProof = do _ <- recall (lemma "inner" sTrue [])+                            lemma "outer" sTrue []+           _ <- myProof+           recall myProof++   -- Stats mode: recall when cache is empty (cache miss).+   -- In stats mode, recall does NOT suppress inner output, so full proof steps are visible.+   , goldenCapturedIO "tpCache_statsMiss" $ \rf -> do+        let cfg = (tpStats z3) { redirectVerbose = Just rf }+        void $ runTPWith cfg $+           recall (calc "addZero"+                        (\(Forall @"x" (x :: SInteger)) -> x + 0 .== x) $+                        \x -> [] |- x + 0+                                 =: (x :: SInteger)+                                 =: qed)+        contents <- readFile rf+        writeFile rf $!! cleanStatsOutput contents++   -- Stats mode: direct proof then recall (cache hit).+   -- Direct proof shows full steps; recall shows "Lemma: ... [Cached]" one-liner.+   , goldenCapturedIO "tpCache_statsHit" $ \rf -> do+        let cfg = (tpStats z3) { redirectVerbose = Just rf }+        void $ runTPWith cfg $ do+           let addZeroProof = calc "addZero"+                                   (\(Forall @"x" (x :: SInteger)) -> x + 0 .== x) $+                                   \x -> [] |- x + 0+                                            =: (x :: SInteger)+                                            =: qed+           _ <- addZeroProof+           recall addZeroProof+        contents <- readFile rf+        writeFile rf $!! cleanStatsOutput contents++   -- Stats mode: nested recall showing inner cache dynamics.+   -- First recall misses (shows full inner proofs). Second recall hits (shows "Lemma: ... [Cached]").+   , goldenCapturedIO "tpCache_statsNested" $ \rf -> do+        let cfg = (tpStats z3) { redirectVerbose = Just rf }+        void $ runTPWith cfg $ do+           _ <- recall (lemma "inner" sTrue [])+           _ <- lemma "outer" sTrue []+           _ <- recall (lemma "inner" sTrue [])+           recall (lemma "outer" sTrue [])+        contents <- readFile rf+        writeFile rf $!! cleanStatsOutput contents++   -- Recall of a failing proof: the lemma is false (x > x), so the proof should fail.+   , goldenCapturedIO "tpCache_recallFail" $ \rf -> do+        let cfg = z3 { redirectVerbose = Just rf }+        res <- try $ void $ runTPWith cfg $+           recall bad+        case res of+           Left  (_ :: SomeException) -> pure ()+           Right _                    -> appendFile rf "Unexpected success\n"++   -- Direct proof of a false lemma.+   , goldenCapturedIO "tpCache_fooFail" $ \rf -> do+        let cfg = z3 { redirectVerbose = Just rf }+        res <- try $ void $ runTPWith cfg foo+        case res of+           Left  (_ :: SomeException) -> pure ()+           Right _                    -> appendFile rf "Unexpected success\n"++   -- Recall of a failing lemma inside a larger proof.+   , goldenCapturedIO "tpCache_barFail" $ \rf -> do+        let cfg = z3 { redirectVerbose = Just rf }+        res <- try $ void $ runTPWith cfg bar+        case res of+           Left  (_ :: SomeException) -> pure ()+           Right _                    -> appendFile rf "Unexpected success\n"+   ]++-- | A trivially false lemma, used to test recall of a failing proof.+bad :: TP (Proof (Forall "x" Integer -> SBool))+bad = lemma "bad" (\(Forall @"x" (x :: SInteger)) -> x .> x) []++-- | A false lemma: x == x+1.+foo :: TP (Proof (Forall "x" Integer -> SBool))+foo = lemma "foo" (\(Forall @"x" (x :: SInteger)) -> x .== x + 1) []++-- | Recalls foo (which fails), then tries to prove another false lemma.+bar :: TP (Proof (Forall "x" Integer -> SBool))+bar = do _f <- recall foo+         lemma "bar" (\(Forall @"x" (x :: SInteger)) -> x .== x + 2) []
SBVTestSuite/TestSuite/Basics/Tuple.hs view
@@ -9,12 +9,9 @@ -- Test tuples. ----------------------------------------------------------------------------- -{-# LANGUAGE DataKinds           #-}-{-# LANGUAGE DeriveAnyClass      #-}-{-# LANGUAGE DeriveDataTypeable  #-} {-# LANGUAGE FlexibleInstances   #-}+{-# LANGUAGE OverloadedLists     #-} {-# LANGUAGE ScopedTypeVariables #-}-{-# LANGUAGE StandaloneDeriving  #-} {-# LANGUAGE TemplateHaskell     #-} {-# LANGUAGE TypeApplications    #-} @@ -25,18 +22,16 @@ import Prelude hiding ((!!))  import Data.SBV.Control-import Data.SBV.List ((!!), (.:))+import Data.SBV.List ((!!))+ import Data.SBV.Tuple  import qualified Data.SBV.List as L  import Utils.SBVTestFramework -data E = A | B | C deriving (Bounded, Enum)-mkSymbolicEnumeration ''E--__unused :: SE-__unused = error "stop GHC from complaining unused names" sA sB sC+data E = A | B | C deriving Show+mkSymbolic [''E]  -- Test suite tests :: TestTree@@ -104,7 +99,7 @@    vTup1 :: SList (E, [Bool]) <- sList "v1"    q <- sBool "q"    constrain $ sNot q-   constrain $ (vTup1 !! 1)^._2 .== sTrue .: q .: L.nil+   constrain $ (vTup1 !! 1)^._2 .== sTrue .: q .: []    constrain $ L.length vTup1 .== 3     case untuple (vTup1 !! 2)  of
SBVTestSuite/TestSuite/Basics/UISat.hs view
@@ -8,7 +8,6 @@ -- -- Testing UI function sat examples ------------------------------------------------------------------------------{-# LANGUAGE OverloadedStrings #-}  {-# OPTIONS_GHC -Wall -Werror #-} 
SBVTestSuite/TestSuite/Char/Char.hs view
@@ -18,10 +18,10 @@ import Utils.SBVTestFramework import Data.SBV.Control +import qualified Data.SBV.Either as E import qualified Data.SBV.List   as L-import qualified Data.SBV.Set    as S import qualified Data.SBV.Maybe  as M-import qualified Data.SBV.Either as E+import qualified Data.SBV.Set    as S import Data.SBV.Tuple  tests :: TestTree
+ SBVTestSuite/TestSuite/CompileTests/PCase.hs view
@@ -0,0 +1,19 @@+-----------------------------------------------------------------------------+-- |+-- Module    : TestSuite.CompileTests.PCase+-- Copyright : (c) Levent Erkok+-- License   : BSD3+-- Maintainer: erkokl@gmail.com+-- Stability : experimental+--+-- Testing TH messages+-----------------------------------------------------------------------------++{-# OPTIONS_GHC -Wall -Werror #-}++module TestSuite.CompileTests.PCase(tests) where++import Utils.SBVTestFramework++tests :: IO TestTree+tests = testGroup "THTests.PCase" <$> mkCompileTestGlob "SBVTestSuite/TestSuite/CompileTests/PCase/PCase*.hs"
+ SBVTestSuite/TestSuite/CompileTests/PCase/Expr.hs view
@@ -0,0 +1,18 @@+{-# LANGUAGE FlexibleInstances #-}+{-# LANGUAGE TemplateHaskell   #-}+{-# LANGUAGE TypeApplications  #-}++{-# OPTIONS_GHC -Wall -Werror #-}++module Expr where++import Data.SBV++data Expr = Zero+          | Num Integer+          | Var String+          | Add Expr Expr+          | Let String Expr Expr+          deriving Show++mkSymbolic [''Expr]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase01.hs view
@@ -0,0 +1,13 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV+import Data.SBV.TP++-- Parse error: EOF+t :: SExpr -> Proof SBool+t _e = [pCase| _e of|]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase01.stderr view
@@ -0,0 +1,8 @@+PCase01.hs:13:15: error: [GHC-39584]+    " PCase01.hs:13:21: Parse error: EOF++    " In the quasi-quotation: [pCase| _e of|]+   |+13 | t _e = [pCase| _e of|]+   |               ^^^^^^^^+
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase02.hs view
@@ -0,0 +1,13 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV+import Data.SBV.TP++-- Bad syntax+t :: SExpr -> Proof SBool+t e = [pCase| e + 1|]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase02.stderr view
@@ -0,0 +1,8 @@+PCase02.hs:13:14: error: [GHC-39584]+    " PCase02.hs:13:20: Parse error: EOF++    " In the quasi-quotation: [pCase| e + 1|]+   |+13 | t e = [pCase| e + 1|]+   |              ^^^^^^^^+
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase03.hs view
@@ -0,0 +1,17 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV+import Data.SBV.TP++-- Not usable in declaration context+[pCase| e of+        Zero  -> undefined+        Num _ -> undefined+      |]++{- HLint ignore module "Unused LANGUAGE pragma" -}
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase03.stderr view
@@ -0,0 +1,6 @@+PCase03.hs:12:8: error: [GHC-39584]+    pCase: not usable in declaration context+   |+12 | [pCase| e of+   |        ^^^^^...+
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase04.hs view
@@ -0,0 +1,15 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV+import Data.SBV.TP++-- Unknown constructor+t :: SExpr -> Proof SBool+t e = [pCase| e of+        FooBar _ -> undefined+      |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase04.stderr view
@@ -0,0 +1,14 @@+PCase04.hs:13:14: error: [GHC-39584]+    " pCase: Unknown constructor: FooBar++        Cannot find this constructor in scope.+        Make sure the type is declared and mkSymbolic is called.++    " In the quasi-quotation:+        [pCase| e of+        FooBar _ -> undefined+      |]+   |+13 | t e = [pCase| e of+   |              ^^^^^...+
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase05.hs view
@@ -0,0 +1,16 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV+import Data.SBV.TP++-- Unknown constructor+t :: SExpr -> Proof SBool+t e = [pCase| e of+        Zero  -> undefined+        Numb _ -> undefined+      |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase05.stderr view
@@ -0,0 +1,11 @@+PCase05.hs:13:14: error: [GHC-39584]+    " PCase05.hs:15:9-14: sCase/pCase: Not in scope: data constructor: Numb+    " In the quasi-quotation:+        [pCase| e of+        Zero  -> undefined+        Numb _ -> undefined+      |]+   |+13 | t e = [pCase| e of+   |              ^^^^^...+
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase06.hs view
@@ -0,0 +1,17 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV+import Data.SBV.TP++-- Pattern guards not supported+t :: SExpr -> Proof SBool+t e = [pCase| e of+        Zero        -> undefined+        Num i | Just 1 <- Just i -> undefined+        Var _       -> undefined+      |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase06.stderr view
@@ -0,0 +1,14 @@+PCase06.hs:13:14: error: [GHC-39584]+    " sCase/pCase: Pattern guards are not supported: +        Just 1 <- Just i++    " In the quasi-quotation:+        [pCase| e of+        Zero        -> undefined+        Num i | Just 1 <- Just i -> undefined+        Var _       -> undefined+      |]+   |+13 | t e = [pCase| e of+   |              ^^^^^...+
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase07.hs view
@@ -0,0 +1,19 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV+import Data.SBV.TP++-- Arity mismatch: Num takes 1 arg, given 2+t :: SExpr -> Proof SBool+t e = [pCase| e of+        Zero     -> undefined+        Num _ _  -> undefined+        Var _    -> undefined+        Add _ _  -> undefined+        Let _ _ _ -> undefined+      |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase07.stderr view
@@ -0,0 +1,19 @@+PCase07.hs:13:14: error: [GHC-39584]+    " PCase07.hs:15:9-15: pCase: Arity mismatch.+        Type       : Expr+        Constructor: Num+        Expected   : 1+        Given      : 2++    " In the quasi-quotation:+        [pCase| e of+        Zero     -> undefined+        Num _ _  -> undefined+        Var _    -> undefined+        Add _ _  -> undefined+        Let _ _ _ -> undefined+      |]+   |+13 | t e = [pCase| e of+   |              ^^^^^...+
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase08.hs view
@@ -0,0 +1,22 @@+{-# LANGUAGE QuasiQuotes       #-}+{-# LANGUAGE DataKinds         #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions  #-}+{-# LANGUAGE TypeApplications  #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV+import Data.SBV.TP++-- Positive: wildcard at the end catches remaining constructors+t :: TP (Proof (Forall "e" Expr -> SBool))+t = calc "t" (\(Forall @"e" (e :: SExpr)) -> e .== e) $ \e -> []+    |- [pCase| e of+         Zero    -> e .== e =: qed+         Num _   -> e .== e =: qed+         _       -> e .== e =: qed+       |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase08.stderr view
@@ -0,0 +1,12 @@+PCase08.hs:(18,15)-(22,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      pCase+      " e of\n\+      \         Zero    -> e .== e =: qed\n\+      \         Num _   -> e .== e =: qed\n\+      \         _       -> e .== e =: qed\n\+      \       "+  ======>+    cases+      [(isZero e ==> (e .== e =: qed)), (isNum e ==> (e .== e =: qed)),+       (sNot ((.||) (isZero e) (isNum e)) ==> (e .== e =: qed))]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase09.hs view
@@ -0,0 +1,18 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV+import Data.SBV.TP++-- Overlapping constructors: unguarded Num after guarded Num+t :: SExpr -> Proof SBool+t e = [pCase| e of+        Zero         -> undefined+        Num i        -> undefined+        Num i | i .> 3 -> undefined+        Var _        -> undefined+      |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase09.stderr view
@@ -0,0 +1,17 @@+PCase09.hs:13:14: error: [GHC-39584]+    " PCase09.hs:16:9-13: pCase: Overlapping case constructors:+        Constructor: Num i | i .> 3+      Overlaps with:+        PCase09.hs:15:9-13: Num i++    " In the quasi-quotation:+        [pCase| e of+        Zero         -> undefined+        Num i        -> undefined+        Num i | i .> 3 -> undefined+        Var _        -> undefined+      |]+   |+13 | t e = [pCase| e of+   |              ^^^^^...+
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase10.hs view
@@ -0,0 +1,19 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV+import Data.SBV.TP++-- Arity mismatch in nested pattern: Num takes 1, given 2+t :: SExpr -> Proof SBool+t e = [pCase| e of+        Zero            -> undefined+        Num k           -> undefined+        Var _           -> undefined+        Add (Num i j) b -> undefined+        Let _ _ _       -> undefined+      |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase10.stderr view
@@ -0,0 +1,18 @@+PCase10.hs:13:14: error: [GHC-39584]+    " PCase10.hs:17:9-23: sCase/pCase: Arity mismatch in nested pattern.+        Constructor: Num+        Expected   : 1+        Given      : 2++    " In the quasi-quotation:+        [pCase| e of+        Zero            -> undefined+        Num k           -> undefined+        Var _           -> undefined+        Add (Num i j) b -> undefined+        Let _ _ _       -> undefined+      |]+   |+13 | t e = [pCase| e of+   |              ^^^^^...+
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase11.hs view
@@ -0,0 +1,19 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV+import Data.SBV.TP++-- Unknown constructor in nested pattern+t :: SExpr -> Proof SBool+t e = [pCase| e of+        Zero           -> undefined+        Num k          -> undefined+        Var _          -> undefined+        Add (Numb i) b -> undefined+        Let _ _ _      -> undefined+      |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase11.stderr view
@@ -0,0 +1,14 @@+PCase11.hs:13:14: error: [GHC-39584]+    " PCase11.hs:17:9-22: sCase/pCase: Not in scope: data constructor: Numb+    " In the quasi-quotation:+        [pCase| e of+        Zero           -> undefined+        Num k          -> undefined+        Var _          -> undefined+        Add (Numb i) b -> undefined+        Let _ _ _      -> undefined+      |]+   |+13 | t e = [pCase| e of+   |              ^^^^^...+
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase12.hs view
@@ -0,0 +1,24 @@+{-# LANGUAGE QuasiQuotes      #-}+{-# LANGUAGE DataKinds          #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions    #-}+{-# LANGUAGE TypeApplications    #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV+import Data.SBV.TP++-- Positive: all constructors covered, no guards; use matched fields in proof+t :: TP (Proof (Forall "e" Expr -> SBool))+t = calc "t" (\(Forall @"e" (e :: SExpr)) -> e .== e) $ \e -> []+    |- [pCase| e of+         Zero      -> e .== e =: qed+         Num i     -> sNum i .== sNum i =: e .== e =: qed+         Var s     -> sVar s .== sVar s =: e .== e =: qed+         Add a b   -> sAdd a b .== sAdd a b =: e .== e =: qed+         Let nm a b -> sLet nm a b .== sLet nm a b =: e .== e =: qed+       |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase12.stderr view
@@ -0,0 +1,30 @@+PCase12.hs:(18,15)-(24,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      pCase+      " e of\n\+      \         Zero      -> e .== e =: qed\n\+      \         Num i     -> sNum i .== sNum i =: e .== e =: qed\n\+      \         Var s     -> sVar s .== sVar s =: e .== e =: qed\n\+      \         Add a b   -> sAdd a b .== sAdd a b =: e .== e =: qed\n\+      \         Let nm a b -> sLet nm a b .== sLet nm a b =: e .== e =: qed\n\+      \       "+  ======>+    cases+      [(isZero e ==> (e .== e =: qed)),+       (isNum e+          ==> (let i = getNum_1 e in (sNum i) .== sNum i =: e .== e =: qed)),+       (isVar e+          ==> (let s = getVar_1 e in (sVar s) .== sVar s =: e .== e =: qed)),+       (isAdd e+          ==>+            (let+               a = getAdd_1 e+               b = getAdd_2 e+             in (sAdd a b) .== sAdd a b =: e .== e =: qed)),+       (isLet e+          ==>+            (let+               nm = getLet_1 e+               a = getLet_2 e+               b = getLet_3 e+             in (sLet nm a b) .== sLet nm a b =: e .== e =: qed))]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase13.hs view
@@ -0,0 +1,21 @@+{-# LANGUAGE QuasiQuotes      #-}+{-# LANGUAGE DataKinds          #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions    #-}+{-# LANGUAGE TypeApplications    #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV+import Data.SBV.TP++-- Positive: partial coverage is fine in pCase (no exhaustiveness check)+t :: TP (Proof (Forall "e" Expr -> SBool))+t = calc "t" (\(Forall @"e" (e :: SExpr)) -> e .== e) $ \e -> []+    |- [pCase| e of+         Zero  -> e .== e =: qed+         Num i -> sNum i .== sNum i =: e .== e =: qed+       |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase13.stderr view
@@ -0,0 +1,12 @@+PCase13.hs:(18,15)-(21,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      pCase+      " e of\n\+      \         Zero  -> e .== e =: qed\n\+      \         Num i -> sNum i .== sNum i =: e .== e =: qed\n\+      \       "+  ======>+    cases+      [(isZero e ==> (e .== e =: qed)),+       (isNum e+          ==> (let i = getNum_1 e in (sNum i) .== sNum i =: e .== e =: qed))]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase14.hs view
@@ -0,0 +1,24 @@+{-# LANGUAGE QuasiQuotes      #-}+{-# LANGUAGE DataKinds          #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions    #-}+{-# LANGUAGE TypeApplications    #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV+import Data.SBV.TP++-- Positive: guard on one constructor; use matched field in proof+t :: TP (Proof (Forall "e" Expr -> SBool))+t = calc "t" (\(Forall @"e" (e :: SExpr)) -> e .== e) $ \e -> []+    |- [pCase| e of+         Zero           -> e .== e =: qed+         Num i | i .> 0 -> sNum i .== sNum i =: e .== e =: qed+         Var s          -> sVar s .== sVar s =: e .== e =: qed+         Add a b        -> sAdd a b .== sAdd a b =: e .== e =: qed+         Let nm a b     -> sLet nm a b .== sLet nm a b =: e .== e =: qed+       |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase14.stderr view
@@ -0,0 +1,30 @@+PCase14.hs:(18,15)-(24,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      pCase+      " e of\n\+      \         Zero           -> e .== e =: qed\n\+      \         Num i | i .> 0 -> sNum i .== sNum i =: e .== e =: qed\n\+      \         Var s          -> sVar s .== sVar s =: e .== e =: qed\n\+      \         Add a b        -> sAdd a b .== sAdd a b =: e .== e =: qed\n\+      \         Let nm a b     -> sLet nm a b .== sLet nm a b =: e .== e =: qed\n\+      \       "+  ======>+    cases+      [(isZero e ==> (e .== e =: qed)),+       ((.&&) (isNum e) (let i = getNum_1 e in i .> 0)+          ==> (let i = getNum_1 e in (sNum i) .== sNum i =: e .== e =: qed)),+       (isVar e+          ==> (let s = getVar_1 e in (sVar s) .== sVar s =: e .== e =: qed)),+       (isAdd e+          ==>+            (let+               a = getAdd_1 e+               b = getAdd_2 e+             in (sAdd a b) .== sAdd a b =: e .== e =: qed)),+       (isLet e+          ==>+            (let+               nm = getLet_1 e+               a = getLet_2 e+               b = getLet_3 e+             in (sLet nm a b) .== sLet nm a b =: e .== e =: qed))]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase15.hs view
@@ -0,0 +1,26 @@+{-# LANGUAGE QuasiQuotes      #-}+{-# LANGUAGE DataKinds          #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions    #-}+{-# LANGUAGE TypeApplications    #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV+import Data.SBV.TP++-- Positive: multi-arm same constructor with guards (guard accumulation)+-- Second arm gets: isNum e .&& sNot (i .> 0)+t :: TP (Proof (Forall "e" Expr -> SBool))+t = calc "t" (\(Forall @"e" (e :: SExpr)) -> e .== e) $ \e -> []+    |- [pCase| e of+         Zero             -> e .== e =: qed+         Num i | i .> 0   -> sNum i .== sNum i =: e .== e =: qed+               | sTrue    -> sNum i .== sNum i =: e .== e =: qed+         Var s            -> sVar s .== sVar s =: e .== e =: qed+         Add a b          -> sAdd a b .== sAdd a b =: e .== e =: qed+         Let nm a b       -> sLet nm a b .== sLet nm a b =: e .== e =: qed+       |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase15.stderr view
@@ -0,0 +1,33 @@+PCase15.hs:(19,15)-(26,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      pCase+      " e of\n\+      \         Zero             -> e .== e =: qed\n\+      \         Num i | i .> 0   -> sNum i .== sNum i =: e .== e =: qed\n\+      \               | sTrue    -> sNum i .== sNum i =: e .== e =: qed\n\+      \         Var s            -> sVar s .== sVar s =: e .== e =: qed\n\+      \         Add a b          -> sAdd a b .== sAdd a b =: e .== e =: qed\n\+      \         Let nm a b       -> sLet nm a b .== sLet nm a b =: e .== e =: qed\n\+      \       "+  ======>+    cases+      [(isZero e ==> (e .== e =: qed)),+       ((.&&) (isNum e) (let i = getNum_1 e in i .> 0)+          ==> (let i = getNum_1 e in (sNum i) .== sNum i =: e .== e =: qed)),+       ((.&&) (isNum e) (sNot (let i = getNum_1 e in i .> 0))+          ==> (let i = getNum_1 e in (sNum i) .== sNum i =: e .== e =: qed)),+       (isVar e+          ==> (let s = getVar_1 e in (sVar s) .== sVar s =: e .== e =: qed)),+       (isAdd e+          ==>+            (let+               a = getAdd_1 e+               b = getAdd_2 e+             in (sAdd a b) .== sAdd a b =: e .== e =: qed)),+       (isLet e+          ==>+            (let+               nm = getLet_1 e+               a = getLet_2 e+               b = getLet_3 e+             in (sLet nm a b) .== sLet nm a b =: e .== e =: qed))]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase16.hs view
@@ -0,0 +1,25 @@+{-# LANGUAGE QuasiQuotes      #-}+{-# LANGUAGE DataKinds          #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions    #-}+{-# LANGUAGE TypeApplications    #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV+import Data.SBV.TP++-- Positive: nested pattern; use matched fields including nested ones+t :: TP (Proof (Forall "e" Expr -> SBool))+t = calc "t" (\(Forall @"e" (e :: SExpr)) -> e .== e) $ \e -> []+    |- [pCase| e of+         Zero            -> e .== e =: qed+         Num k           -> sNum k .== sNum k =: e .== e =: qed+         Var s           -> sVar s .== sVar s =: e .== e =: qed+         Add (Num i) _   -> sNum i .== sNum i =: e .== e =: qed+         Add a       b   -> sAdd a b .== sAdd a b =: e .== e =: qed+         Let nm a b      -> sLet nm a b .== sLet nm a b =: e .== e =: qed+       |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase16.stderr view
@@ -0,0 +1,35 @@+PCase16.hs:(18,15)-(25,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      pCase+      " e of\n\+      \         Zero            -> e .== e =: qed\n\+      \         Num k           -> sNum k .== sNum k =: e .== e =: qed\n\+      \         Var s           -> sVar s .== sVar s =: e .== e =: qed\n\+      \         Add (Num i) _   -> sNum i .== sNum i =: e .== e =: qed\n\+      \         Add a       b   -> sAdd a b .== sAdd a b =: e .== e =: qed\n\+      \         Let nm a b      -> sLet nm a b .== sLet nm a b =: e .== e =: qed\n\+      \       "+  ======>+    cases+      [(isZero e ==> (e .== e =: qed)),+       (isNum e+          ==> (let k = getNum_1 e in (sNum k) .== sNum k =: e .== e =: qed)),+       (isVar e+          ==> (let s = getVar_1 e in (sVar s) .== sVar s =: e .== e =: qed)),+       ((.&&) (isAdd e) (isNum (getAdd_1 e))+          ==>+            (let i = getNum_1 (getAdd_1 e)+             in (sNum i) .== sNum i =: e .== e =: qed)),+       ((.&&) (isAdd e) (sNot (isNum (getAdd_1 e)))+          ==>+            (let+               a = getAdd_1 e+               b = getAdd_2 e+             in (sAdd a b) .== sAdd a b =: e .== e =: qed)),+       (isLet e+          ==>+            (let+               nm = getLet_1 e+               a = getLet_2 e+               b = getLet_3 e+             in (sLet nm a b) .== sLet nm a b =: e .== e =: qed))]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase17.hs view
@@ -0,0 +1,24 @@+{-# LANGUAGE QuasiQuotes       #-}+{-# LANGUAGE DataKinds         #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions  #-}+{-# LANGUAGE TypeApplications  #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV+import Data.SBV.TP++-- Negative: pCase generates cases [...] which has type TPProofRaw, not Proof SBool;+-- so using pCase outside a TP proof context is a type error+t :: SExpr -> Proof SBool+t e = [pCase| e of+       Zero      -> e .== e =: qed+       Num _     -> e .== e =: qed+       Var _     -> e .== e =: qed+       Add _ _   -> e .== e =: qed+       Let _ _ _ -> e .== e =: qed+     |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase17.stderr view
@@ -0,0 +1,32 @@+PCase17.hs:(18,14)-(24,7): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      pCase+      " e of\n\+      \       Zero      -> e .== e =: qed\n\+      \       Num _     -> e .== e =: qed\n\+      \       Var _     -> e .== e =: qed\n\+      \       Add _ _   -> e .== e =: qed\n\+      \       Let _ _ _ -> e .== e =: qed\n\+      \     "+  ======>+    cases+      [(isZero e ==> (e .== e =: qed)), (isNum e ==> (e .== e =: qed)),+       (isVar e ==> (e .== e =: qed)), (isAdd e ==> (e .== e =: qed)),+       (isLet e ==> (e .== e =: qed))]+PCase17.hs:18:14: error: [GHC-83865]+    " Couldn't match expected type: Proof SBool+                  with actual type: sbv-14.4:Data.SBV.TP.TP.TPProofGen+                                      (SBV Bool) [sbv-14.4:Data.SBV.TP.TP.Helper] ()+    " In the expression:+        cases+          [(isZero e ==> (e .== e =: qed)), (isNum e ==> (e .== e =: qed)),+           (isVar e ==> (e .== e =: qed)), ....]+      In an equation for t:+          t e+            = (cases+                 [(isZero e ==> (e .== e =: qed)), (isNum e ==> (e .== e =: qed)),+                  (isVar e ==> (e .== e =: qed)), ....])+   |+18 | t e = [pCase| e of+   |              ^^^^^...+
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase18.hs view
@@ -0,0 +1,19 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV+import Data.SBV.TP++-- Negative: wildcard with args (e.g. _ _ ->)+t :: SExpr -> Proof SBool+t e = [pCase| e of+        Zero    -> undefined+        Num _   -> undefined+        Var _   -> undefined+        Add _ _ -> undefined+        _ _     -> undefined+      |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase18.stderr view
@@ -0,0 +1,15 @@+PCase18.hs:13:14: error: [GHC-39584]+    " PCase18.hs:18:17: Parse error in pattern: _++    " In the quasi-quotation:+        [pCase| e of+        Zero    -> undefined+        Num _   -> undefined+        Var _   -> undefined+        Add _ _ -> undefined+        _ _     -> undefined+      |]+   |+13 | t e = [pCase| e of+   |              ^^^^^...+
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase19.hs view
@@ -0,0 +1,21 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV+import Data.SBV.TP++-- Negative: overlapping — second group for same constructor after first has sTrue catch-all guard+t :: SExpr -> Proof SBool+t e = [pCase| e of+        Zero             -> undefined+        Num i | i .> 3   -> undefined+              | sTrue    -> undefined+        Num i | i .> 12  -> undefined+        Var _            -> undefined+        Add _ _          -> undefined+        Let _ _ _        -> undefined+      |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase19.stderr view
@@ -0,0 +1,20 @@+PCase19.hs:13:14: error: [GHC-39584]+    " PCase19.hs:17:9-13: pCase: Overlapping case constructors:+        Constructor: Num i | i .> 12+      Overlaps with:+        PCase19.hs:15:9-13: Num i++    " In the quasi-quotation:+        [pCase| e of+        Zero             -> undefined+        Num i | i .> 3   -> undefined+              | sTrue    -> undefined+        Num i | i .> 12  -> undefined+        Var _            -> undefined+        Add _ _          -> undefined+        Let _ _ _        -> undefined+      |]+   |+13 | t e = [pCase| e of+   |              ^^^^^...+
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase20.hs view
@@ -0,0 +1,25 @@+{-# LANGUAGE QuasiQuotes      #-}+{-# LANGUAGE DataKinds          #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions    #-}+{-# LANGUAGE TypeApplications    #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV+import Data.SBV.TP++-- Positive: {} wildcard patterns; use matched field where available+t :: TP (Proof (Forall "e" Expr -> SBool))+t = calc "t" (\(Forall @"e" (e :: SExpr)) -> e .== e) $ \e -> []+    |- [pCase| e of+         Num i | i .> 3  -> sNum i .== sNum i =: e .== e =: qed+               | sTrue   -> sNum i .== sNum i =: e .== e =: qed+         Zero{}           -> e .== e =: qed+         Var{}            -> e .== e =: qed+         Add{}            -> e .== e =: qed+         Let{}            -> e .== e =: qed+       |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase20.stderr view
@@ -0,0 +1,19 @@+PCase20.hs:(18,15)-(25,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      pCase+      " e of\n\+      \         Num i | i .> 3  -> sNum i .== sNum i =: e .== e =: qed\n\+      \               | sTrue   -> sNum i .== sNum i =: e .== e =: qed\n\+      \         Zero{}           -> e .== e =: qed\n\+      \         Var{}            -> e .== e =: qed\n\+      \         Add{}            -> e .== e =: qed\n\+      \         Let{}            -> e .== e =: qed\n\+      \       "+  ======>+    cases+      [((.&&) (isNum e) (let i = getNum_1 e in i .> 3)+          ==> (let i = getNum_1 e in (sNum i) .== sNum i =: e .== e =: qed)),+       ((.&&) (isNum e) (sNot (let i = getNum_1 e in i .> 3))+          ==> (let i = getNum_1 e in (sNum i) .== sNum i =: e .== e =: qed)),+       (isZero e ==> (e .== e =: qed)), (isVar e ==> (e .== e =: qed)),+       (isAdd e ==> (e .== e =: qed)), (isLet e ==> (e .== e =: qed))]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase21.hs view
@@ -0,0 +1,25 @@+{-# LANGUAGE QuasiQuotes      #-}+{-# LANGUAGE DataKinds          #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions    #-}+{-# LANGUAGE TypeApplications    #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV+import Data.SBV.TP++-- Positive: deeply nested pattern Add (Add (Num _) j) k; use matched fields+t :: TP (Proof (Forall "e" Expr -> SBool))+t = calc "t" (\(Forall @"e" (e :: SExpr)) -> e .== e) $ \e -> []+    |- [pCase| e of+         Zero                  -> e .== e =: qed+         Num k                 -> sNum k .== sNum k =: e .== e =: qed+         Var s                 -> sVar s .== sVar s =: e .== e =: qed+         Add (Add (Num _) j) _ -> sAdd j j .== sAdd j j =: e .== e =: qed+         Add a b               -> sAdd a b .== sAdd a b =: e .== e =: qed+         Let nm a b            -> sLet nm a b .== sLet nm a b =: e .== e =: qed+       |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase21.stderr view
@@ -0,0 +1,39 @@+PCase21.hs:(18,15)-(25,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      pCase+      " e of\n\+      \         Zero                  -> e .== e =: qed\n\+      \         Num k                 -> sNum k .== sNum k =: e .== e =: qed\n\+      \         Var s                 -> sVar s .== sVar s =: e .== e =: qed\n\+      \         Add (Add (Num _) j) _ -> sAdd j j .== sAdd j j =: e .== e =: qed\n\+      \         Add a b               -> sAdd a b .== sAdd a b =: e .== e =: qed\n\+      \         Let nm a b            -> sLet nm a b .== sLet nm a b =: e .== e =: qed\n\+      \       "+  ======>+    cases+      [(isZero e ==> (e .== e =: qed)),+       (isNum e+          ==> (let k = getNum_1 e in (sNum k) .== sNum k =: e .== e =: qed)),+       (isVar e+          ==> (let s = getVar_1 e in (sVar s) .== sVar s =: e .== e =: qed)),+       ((.&&)+          (isAdd e)+          ((.&&) (isAdd (getAdd_1 e)) (isNum (getAdd_1 (getAdd_1 e))))+          ==>+            (let j = getAdd_2 (getAdd_1 e)+             in (sAdd j j) .== sAdd j j =: e .== e =: qed)),+       ((.&&)+          (isAdd e)+          (sNot ((.&&) (isAdd (getAdd_1 e)) (isNum (getAdd_1 (getAdd_1 e)))))+          ==>+            (let+               a = getAdd_1 e+               b = getAdd_2 e+             in (sAdd a b) .== sAdd a b =: e .== e =: qed)),+       (isLet e+          ==>+            (let+               nm = getLet_1 e+               a = getLet_2 e+               b = getLet_3 e+             in (sLet nm a b) .== sLet nm a b =: e .== e =: qed))]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase22.hs view
@@ -0,0 +1,25 @@+{-# LANGUAGE QuasiQuotes      #-}+{-# LANGUAGE DataKinds          #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions    #-}+{-# LANGUAGE TypeApplications    #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV+import Data.SBV.TP++-- Positive: nested pattern combined with a guard; use matched fields+t :: TP (Proof (Forall "e" Expr -> SBool))+t = calc "t" (\(Forall @"e" (e :: SExpr)) -> e .== e) $ \e -> []+    |- [pCase| e of+         Zero                    -> e .== e =: qed+         Num k                   -> sNum k .== sNum k =: e .== e =: qed+         Var s                   -> sVar s .== sVar s =: e .== e =: qed+         Add (Num i) _ | i .> 0  -> sNum i .== sNum i =: e .== e =: qed+         Add a b                 -> sAdd a b .== sAdd a b =: e .== e =: qed+         Let nm a b              -> sLet nm a b .== sLet nm a b =: e .== e =: qed+       |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase22.stderr view
@@ -0,0 +1,42 @@+PCase22.hs:(18,15)-(25,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      pCase+      " e of\n\+      \         Zero                    -> e .== e =: qed\n\+      \         Num k                   -> sNum k .== sNum k =: e .== e =: qed\n\+      \         Var s                   -> sVar s .== sVar s =: e .== e =: qed\n\+      \         Add (Num i) _ | i .> 0  -> sNum i .== sNum i =: e .== e =: qed\n\+      \         Add a b                 -> sAdd a b .== sAdd a b =: e .== e =: qed\n\+      \         Let nm a b              -> sLet nm a b .== sLet nm a b =: e .== e =: qed\n\+      \       "+  ======>+    cases+      [(isZero e ==> (e .== e =: qed)),+       (isNum e+          ==> (let k = getNum_1 e in (sNum k) .== sNum k =: e .== e =: qed)),+       (isVar e+          ==> (let s = getVar_1 e in (sVar s) .== sVar s =: e .== e =: qed)),+       ((.&&)+          (isAdd e)+          ((.&&)+             (isNum (getAdd_1 e)) (let i = getNum_1 (getAdd_1 e) in i .> 0))+          ==>+            (let i = getNum_1 (getAdd_1 e)+             in (sNum i) .== sNum i =: e .== e =: qed)),+       ((.&&)+          (isAdd e)+          (sNot+             ((.&&)+                (isNum (getAdd_1 e)) (let i = getNum_1 (getAdd_1 e) in i .> 0)))+          ==>+            (let+               a = getAdd_1 e+               b = getAdd_2 e+             in (sAdd a b) .== sAdd a b =: e .== e =: qed)),+       (isLet e+          ==>+            (let+               nm = getLet_1 e+               a = getLet_2 e+               b = getLet_3 e+             in (sLet nm a b) .== sLet nm a b =: e .== e =: qed))]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase23.hs view
@@ -0,0 +1,25 @@+{-# LANGUAGE QuasiQuotes      #-}+{-# LANGUAGE DataKinds          #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions    #-}+{-# LANGUAGE TypeApplications    #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV+import Data.SBV.TP++-- Positive: nested patterns on both sides; use matched fields+t :: TP (Proof (Forall "e" Expr -> SBool))+t = calc "t" (\(Forall @"e" (e :: SExpr)) -> e .== e) $ \e -> []+    |- [pCase| e of+         Zero                -> e .== e =: qed+         Num k               -> sNum k .== sNum k =: e .== e =: qed+         Var s               -> sVar s .== sVar s =: e .== e =: qed+         Add (Num i) (Num j) -> sNum (i + j) .== sNum (i + j) =: e .== e =: qed+         Add a b             -> sAdd a b .== sAdd a b =: e .== e =: qed+         Let nm a b          -> sLet nm a b .== sLet nm a b =: e .== e =: qed+       |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase23.stderr view
@@ -0,0 +1,38 @@+PCase23.hs:(18,15)-(25,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      pCase+      " e of\n\+      \         Zero                -> e .== e =: qed\n\+      \         Num k               -> sNum k .== sNum k =: e .== e =: qed\n\+      \         Var s               -> sVar s .== sVar s =: e .== e =: qed\n\+      \         Add (Num i) (Num j) -> sNum (i + j) .== sNum (i + j) =: e .== e =: qed\n\+      \         Add a b             -> sAdd a b .== sAdd a b =: e .== e =: qed\n\+      \         Let nm a b          -> sLet nm a b .== sLet nm a b =: e .== e =: qed\n\+      \       "+  ======>+    cases+      [(isZero e ==> (e .== e =: qed)),+       (isNum e+          ==> (let k = getNum_1 e in (sNum k) .== sNum k =: e .== e =: qed)),+       (isVar e+          ==> (let s = getVar_1 e in (sVar s) .== sVar s =: e .== e =: qed)),+       ((.&&) (isAdd e) ((.&&) (isNum (getAdd_1 e)) (isNum (getAdd_2 e)))+          ==>+            (let+               i = getNum_1 (getAdd_1 e)+               j = getNum_1 (getAdd_2 e)+             in (sNum (i + j)) .== sNum (i + j) =: e .== e =: qed)),+       ((.&&)+          (isAdd e) (sNot ((.&&) (isNum (getAdd_1 e)) (isNum (getAdd_2 e))))+          ==>+            (let+               a = getAdd_1 e+               b = getAdd_2 e+             in (sAdd a b) .== sAdd a b =: e .== e =: qed)),+       (isLet e+          ==>+            (let+               nm = getLet_1 e+               a = getLet_2 e+               b = getLet_3 e+             in (sLet nm a b) .== sLet nm a b =: e .== e =: qed))]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase24.hs view
@@ -0,0 +1,25 @@+{-# LANGUAGE QuasiQuotes      #-}+{-# LANGUAGE DataKinds          #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions    #-}+{-# LANGUAGE TypeApplications    #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV+import Data.SBV.TP++-- Positive: nested pattern with wildcard inside; use matched fields+t :: TP (Proof (Forall "e" Expr -> SBool))+t = calc "t" (\(Forall @"e" (e :: SExpr)) -> e .== e) $ \e -> []+    |- [pCase| e of+         Zero          -> e .== e =: qed+         Num k         -> sNum k .== sNum k =: e .== e =: qed+         Var s         -> sVar s .== sVar s =: e .== e =: qed+         Add (Num _) _ -> e .== e =: qed+         Add a b       -> sAdd a b .== sAdd a b =: e .== e =: qed+         Let nm a b    -> sLet nm a b .== sLet nm a b =: e .== e =: qed+       |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase24.stderr view
@@ -0,0 +1,32 @@+PCase24.hs:(18,15)-(25,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      pCase+      " e of\n\+      \         Zero          -> e .== e =: qed\n\+      \         Num k         -> sNum k .== sNum k =: e .== e =: qed\n\+      \         Var s         -> sVar s .== sVar s =: e .== e =: qed\n\+      \         Add (Num _) _ -> e .== e =: qed\n\+      \         Add a b       -> sAdd a b .== sAdd a b =: e .== e =: qed\n\+      \         Let nm a b    -> sLet nm a b .== sLet nm a b =: e .== e =: qed\n\+      \       "+  ======>+    cases+      [(isZero e ==> (e .== e =: qed)),+       (isNum e+          ==> (let k = getNum_1 e in (sNum k) .== sNum k =: e .== e =: qed)),+       (isVar e+          ==> (let s = getVar_1 e in (sVar s) .== sVar s =: e .== e =: qed)),+       ((.&&) (isAdd e) (isNum (getAdd_1 e)) ==> (e .== e =: qed)),+       ((.&&) (isAdd e) (sNot (isNum (getAdd_1 e)))+          ==>+            (let+               a = getAdd_1 e+               b = getAdd_2 e+             in (sAdd a b) .== sAdd a b =: e .== e =: qed)),+       (isLet e+          ==>+            (let+               nm = getLet_1 e+               a = getLet_2 e+               b = getLet_3 e+             in (sLet nm a b) .== sLet nm a b =: e .== e =: qed))]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase25.hs view
@@ -0,0 +1,25 @@+{-# LANGUAGE QuasiQuotes      #-}+{-# LANGUAGE DataKinds          #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions    #-}+{-# LANGUAGE TypeApplications    #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV+import Data.SBV.TP++-- Positive: nested pattern using parenthesized constructor; use matched fields+t :: TP (Proof (Forall "e" Expr -> SBool))+t = calc "t" (\(Forall @"e" (e :: SExpr)) -> e .== e) $ \e -> []+    |- [pCase| e of+         Zero              -> e .== e =: qed+         Num k             -> sNum k .== sNum k =: e .== e =: qed+         Var s             -> sVar s .== sVar s =: e .== e =: qed+         Let _ (Num i) _  -> sNum i .== sNum i =: e .== e =: qed+         Let nm a       b  -> sLet nm a b .== sLet nm a b =: e .== e =: qed+         Add a b           -> sAdd a b .== sAdd a b =: e .== e =: qed+       |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase25.stderr view
@@ -0,0 +1,35 @@+PCase25.hs:(18,15)-(25,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      pCase+      " e of\n\+      \         Zero              -> e .== e =: qed\n\+      \         Num k             -> sNum k .== sNum k =: e .== e =: qed\n\+      \         Var s             -> sVar s .== sVar s =: e .== e =: qed\n\+      \         Let _ (Num i) _  -> sNum i .== sNum i =: e .== e =: qed\n\+      \         Let nm a       b  -> sLet nm a b .== sLet nm a b =: e .== e =: qed\n\+      \         Add a b           -> sAdd a b .== sAdd a b =: e .== e =: qed\n\+      \       "+  ======>+    cases+      [(isZero e ==> (e .== e =: qed)),+       (isNum e+          ==> (let k = getNum_1 e in (sNum k) .== sNum k =: e .== e =: qed)),+       (isVar e+          ==> (let s = getVar_1 e in (sVar s) .== sVar s =: e .== e =: qed)),+       ((.&&) (isLet e) (isNum (getLet_2 e))+          ==>+            (let i = getNum_1 (getLet_2 e)+             in (sNum i) .== sNum i =: e .== e =: qed)),+       ((.&&) (isLet e) (sNot (isNum (getLet_2 e)))+          ==>+            (let+               nm = getLet_1 e+               a = getLet_2 e+               b = getLet_3 e+             in (sLet nm a b) .== sLet nm a b =: e .== e =: qed)),+       (isAdd e+          ==>+            (let+               a = getAdd_1 e+               b = getAdd_2 e+             in (sAdd a b) .== sAdd a b =: e .== e =: qed))]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase26.hs view
@@ -0,0 +1,25 @@+{-# LANGUAGE QuasiQuotes      #-}+{-# LANGUAGE DataKinds          #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions    #-}+{-# LANGUAGE TypeApplications    #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV+import Data.SBV.TP++-- Positive: integer literal at top level (Num 1 -> ...)+t :: TP (Proof (Forall "e" Expr -> SBool))+t = calc "t" (\(Forall @"e" (e :: SExpr)) -> e .== e) $ \e -> []+    |- [pCase| e of+         Zero      -> e .== e =: qed+         Num 1     -> sNum 1 .== sNum 1 =: e .== e =: qed+         Num k     -> sNum k .== sNum k =: e .== e =: qed+         Var s     -> sVar s .== sVar s =: e .== e =: qed+         Add a b   -> sAdd a b .== sAdd a b =: e .== e =: qed+         Let nm a b -> sLet nm a b .== sLet nm a b =: e .== e =: qed+       |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase26.stderr view
@@ -0,0 +1,33 @@+PCase26.hs:(18,15)-(25,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      pCase+      " e of\n\+      \         Zero      -> e .== e =: qed\n\+      \         Num 1     -> sNum 1 .== sNum 1 =: e .== e =: qed\n\+      \         Num k     -> sNum k .== sNum k =: e .== e =: qed\n\+      \         Var s     -> sVar s .== sVar s =: e .== e =: qed\n\+      \         Add a b   -> sAdd a b .== sAdd a b =: e .== e =: qed\n\+      \         Let nm a b -> sLet nm a b .== sLet nm a b =: e .== e =: qed\n\+      \       "+  ======>+    cases+      [(isZero e ==> (e .== e =: qed)),+       ((.&&) (isNum e) ((.==) (getNum_1 e) 1)+          ==> ((sNum 1) .== sNum 1 =: e .== e =: qed)),+       ((.&&) (isNum e) (sNot ((.==) (getNum_1 e) 1))+          ==> (let k = getNum_1 e in (sNum k) .== sNum k =: e .== e =: qed)),+       (isVar e+          ==> (let s = getVar_1 e in (sVar s) .== sVar s =: e .== e =: qed)),+       (isAdd e+          ==>+            (let+               a = getAdd_1 e+               b = getAdd_2 e+             in (sAdd a b) .== sAdd a b =: e .== e =: qed)),+       (isLet e+          ==>+            (let+               nm = getLet_1 e+               a = getLet_2 e+               b = getLet_3 e+             in (sLet nm a b) .== sLet nm a b =: e .== e =: qed))]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase27.hs view
@@ -0,0 +1,25 @@+{-# LANGUAGE QuasiQuotes      #-}+{-# LANGUAGE DataKinds          #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions    #-}+{-# LANGUAGE TypeApplications    #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV+import Data.SBV.TP++-- Positive: integer literal in nested position (Add (Num 0) j -> ...)+t :: TP (Proof (Forall "e" Expr -> SBool))+t = calc "t" (\(Forall @"e" (e :: SExpr)) -> e .== e) $ \e -> []+    |- [pCase| e of+         Zero          -> e .== e =: qed+         Num k         -> sNum k .== sNum k =: e .== e =: qed+         Var s         -> sVar s .== sVar s =: e .== e =: qed+         Add (Num 0) _ -> sNum 0 .== sNum 0 =: e .== e =: qed+         Add a b       -> sAdd a b .== sAdd a b =: e .== e =: qed+         Let nm a b    -> sLet nm a b .== sLet nm a b =: e .== e =: qed+       |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase27.stderr view
@@ -0,0 +1,38 @@+PCase27.hs:(18,15)-(25,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      pCase+      " e of\n\+      \         Zero          -> e .== e =: qed\n\+      \         Num k         -> sNum k .== sNum k =: e .== e =: qed\n\+      \         Var s         -> sVar s .== sVar s =: e .== e =: qed\n\+      \         Add (Num 0) _ -> sNum 0 .== sNum 0 =: e .== e =: qed\n\+      \         Add a b       -> sAdd a b .== sAdd a b =: e .== e =: qed\n\+      \         Let nm a b    -> sLet nm a b .== sLet nm a b =: e .== e =: qed\n\+      \       "+  ======>+    cases+      [(isZero e ==> (e .== e =: qed)),+       (isNum e+          ==> (let k = getNum_1 e in (sNum k) .== sNum k =: e .== e =: qed)),+       (isVar e+          ==> (let s = getVar_1 e in (sVar s) .== sVar s =: e .== e =: qed)),+       ((.&&)+          (isAdd e)+          ((.&&) (isNum (getAdd_1 e)) ((.==) (getNum_1 (getAdd_1 e)) 0))+          ==> ((sNum 0) .== sNum 0 =: e .== e =: qed)),+       ((.&&)+          (isAdd e)+          (sNot+             ((.&&) (isNum (getAdd_1 e)) ((.==) (getNum_1 (getAdd_1 e)) 0)))+          ==>+            (let+               a = getAdd_1 e+               b = getAdd_2 e+             in (sAdd a b) .== sAdd a b =: e .== e =: qed)),+       (isLet e+          ==>+            (let+               nm = getLet_1 e+               a = getLet_2 e+               b = getLet_3 e+             in (sLet nm a b) .== sLet nm a b =: e .== e =: qed))]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase28.hs view
@@ -0,0 +1,25 @@+{-# LANGUAGE QuasiQuotes      #-}+{-# LANGUAGE DataKinds          #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions    #-}+{-# LANGUAGE TypeApplications    #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV+import Data.SBV.TP++-- Positive: string literal in nested position (Var "x" -> ...)+t :: TP (Proof (Forall "e" Expr -> SBool))+t = calc "t" (\(Forall @"e" (e :: SExpr)) -> e .== e) $ \e -> []+    |- [pCase| e of+         Zero      -> e .== e =: qed+         Num k     -> sNum k .== sNum k =: e .== e =: qed+         Var "x"   -> sVar (literal "x") .== sVar (literal "x") =: e .== e =: qed+         Var s     -> sVar s .== sVar s =: e .== e =: qed+         Add a b   -> sAdd a b .== sAdd a b =: e .== e =: qed+         Let nm a b -> sLet nm a b .== sLet nm a b =: e .== e =: qed+       |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase28.stderr view
@@ -0,0 +1,34 @@+PCase28.hs:(18,15)-(25,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      pCase+      " e of\n\+      \         Zero      -> e .== e =: qed\n\+      \         Num k     -> sNum k .== sNum k =: e .== e =: qed\n\+      \         Var \"x\"   -> sVar (literal \"x\") .== sVar (literal \"x\") =: e .== e =: qed\n\+      \         Var s     -> sVar s .== sVar s =: e .== e =: qed\n\+      \         Add a b   -> sAdd a b .== sAdd a b =: e .== e =: qed\n\+      \         Let nm a b -> sLet nm a b .== sLet nm a b =: e .== e =: qed\n\+      \       "+  ======>+    cases+      [(isZero e ==> (e .== e =: qed)),+       (isNum e+          ==> (let k = getNum_1 e in (sNum k) .== sNum k =: e .== e =: qed)),+       ((.&&) (isVar e) ((.==) (getVar_1 e) (literal "x"))+          ==>+            ((sVar (literal "x")) .== sVar (literal "x") =: e .== e =: qed)),+       ((.&&) (isVar e) (sNot ((.==) (getVar_1 e) (literal "x")))+          ==> (let s = getVar_1 e in (sVar s) .== sVar s =: e .== e =: qed)),+       (isAdd e+          ==>+            (let+               a = getAdd_1 e+               b = getAdd_2 e+             in (sAdd a b) .== sAdd a b =: e .== e =: qed)),+       (isLet e+          ==>+            (let+               nm = getLet_1 e+               a = getLet_2 e+               b = getLet_3 e+             in (sLet nm a b) .== sLet nm a b =: e .== e =: qed))]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase29.hs view
@@ -0,0 +1,25 @@+{-# LANGUAGE QuasiQuotes      #-}+{-# LANGUAGE DataKinds          #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions    #-}+{-# LANGUAGE TypeApplications    #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV+import Data.SBV.TP++-- Positive: integer literals on both sides of nested pattern+t :: TP (Proof (Forall "e" Expr -> SBool))+t = calc "t" (\(Forall @"e" (e :: SExpr)) -> e .== e) $ \e -> []+    |- [pCase| e of+         Zero                -> e .== e =: qed+         Num k               -> sNum k .== sNum k =: e .== e =: qed+         Var s               -> sVar s .== sVar s =: e .== e =: qed+         Add (Num 1) (Num 2) -> sAdd (sNum 1) (sNum 2) .== sAdd (sNum 1) (sNum 2) =: e .== e =: qed+         Add a b             -> sAdd a b .== sAdd a b =: e .== e =: qed+         Let nm a b          -> sLet nm a b .== sLet nm a b =: e .== e =: qed+       |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase29.stderr view
@@ -0,0 +1,48 @@+PCase29.hs:(18,15)-(25,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      pCase+      " e of\n\+      \         Zero                -> e .== e =: qed\n\+      \         Num k               -> sNum k .== sNum k =: e .== e =: qed\n\+      \         Var s               -> sVar s .== sVar s =: e .== e =: qed\n\+      \         Add (Num 1) (Num 2) -> sAdd (sNum 1) (sNum 2) .== sAdd (sNum 1) (sNum 2) =: e .== e =: qed\n\+      \         Add a b             -> sAdd a b .== sAdd a b =: e .== e =: qed\n\+      \         Let nm a b          -> sLet nm a b .== sLet nm a b =: e .== e =: qed\n\+      \       "+  ======>+    cases+      [(isZero e ==> (e .== e =: qed)),+       (isNum e+          ==> (let k = getNum_1 e in (sNum k) .== sNum k =: e .== e =: qed)),+       (isVar e+          ==> (let s = getVar_1 e in (sVar s) .== sVar s =: e .== e =: qed)),+       ((.&&)+          (isAdd e)+          ((.&&)+             (isNum (getAdd_1 e))+             ((.&&)+                ((.==) (getNum_1 (getAdd_1 e)) 1)+                ((.&&) (isNum (getAdd_2 e)) ((.==) (getNum_1 (getAdd_2 e)) 2))))+          ==>+            ((sAdd (sNum 1) (sNum 2)) .== sAdd (sNum 1) (sNum 2) =: e .== e+               =: qed)),+       ((.&&)+          (isAdd e)+          (sNot+             ((.&&)+                (isNum (getAdd_1 e))+                ((.&&)+                   ((.==) (getNum_1 (getAdd_1 e)) 1)+                   ((.&&) (isNum (getAdd_2 e)) ((.==) (getNum_1 (getAdd_2 e)) 2)))))+          ==>+            (let+               a = getAdd_1 e+               b = getAdd_2 e+             in (sAdd a b) .== sAdd a b =: e .== e =: qed)),+       (isLet e+          ==>+            (let+               nm = getLet_1 e+               a = getLet_2 e+               b = getLet_3 e+             in (sLet nm a b) .== sLet nm a b =: e .== e =: qed))]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase30.hs view
@@ -0,0 +1,24 @@+{-# LANGUAGE QuasiQuotes      #-}+{-# LANGUAGE DataKinds          #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions    #-}+{-# LANGUAGE TypeApplications    #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV+import Data.SBV.TP++-- Positive: Num 1 as only Num arm, no fallback — fine in pCase (no exhaustiveness check)+t :: TP (Proof (Forall "e" Expr -> SBool))+t = calc "t" (\(Forall @"e" (e :: SExpr)) -> e .== e) $ \e -> []+    |- [pCase| e of+         Zero      -> e .== e =: qed+         Num 1     -> sNum 1 .== sNum 1 =: e .== e =: qed+         Var s     -> sVar s .== sVar s =: e .== e =: qed+         Add _ _   -> e .== e =: qed+         Let _ _ _ -> e .== e =: qed+       |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase30.stderr view
@@ -0,0 +1,18 @@+PCase30.hs:(18,15)-(24,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      pCase+      " e of\n\+      \         Zero      -> e .== e =: qed\n\+      \         Num 1     -> sNum 1 .== sNum 1 =: e .== e =: qed\n\+      \         Var s     -> sVar s .== sVar s =: e .== e =: qed\n\+      \         Add _ _   -> e .== e =: qed\n\+      \         Let _ _ _ -> e .== e =: qed\n\+      \       "+  ======>+    cases+      [(isZero e ==> (e .== e =: qed)),+       ((.&&) (isNum e) ((.==) (getNum_1 e) 1)+          ==> ((sNum 1) .== sNum 1 =: e .== e =: qed)),+       (isVar e+          ==> (let s = getVar_1 e in (sVar s) .== sVar s =: e .== e =: qed)),+       (isAdd e ==> (e .== e =: qed)), (isLet e ==> (e .== e =: qed))]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase31.hs view
@@ -0,0 +1,24 @@+{-# LANGUAGE QuasiQuotes      #-}+{-# LANGUAGE DataKinds          #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions    #-}+{-# LANGUAGE TypeApplications    #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV+import Data.SBV.TP++-- Positive: Add (Num 1) j without fallback for Add — fine in pCase (no exhaustiveness check)+t :: TP (Proof (Forall "e" Expr -> SBool))+t = calc "t" (\(Forall @"e" (e :: SExpr)) -> e .== e) $ \e -> []+    |- [pCase| e of+         Zero          -> e .== e =: qed+         Num k         -> sNum k .== sNum k =: e .== e =: qed+         Var s         -> sVar s .== sVar s =: e .== e =: qed+         Add (Num 1) _ -> sNum 1 .== sNum 1 =: e .== e =: qed+         Let nm a b    -> sLet nm a b .== sLet nm a b =: e .== e =: qed+       |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase31.stderr view
@@ -0,0 +1,28 @@+PCase31.hs:(18,15)-(24,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      pCase+      " e of\n\+      \         Zero          -> e .== e =: qed\n\+      \         Num k         -> sNum k .== sNum k =: e .== e =: qed\n\+      \         Var s         -> sVar s .== sVar s =: e .== e =: qed\n\+      \         Add (Num 1) _ -> sNum 1 .== sNum 1 =: e .== e =: qed\n\+      \         Let nm a b    -> sLet nm a b .== sLet nm a b =: e .== e =: qed\n\+      \       "+  ======>+    cases+      [(isZero e ==> (e .== e =: qed)),+       (isNum e+          ==> (let k = getNum_1 e in (sNum k) .== sNum k =: e .== e =: qed)),+       (isVar e+          ==> (let s = getVar_1 e in (sVar s) .== sVar s =: e .== e =: qed)),+       ((.&&)+          (isAdd e)+          ((.&&) (isNum (getAdd_1 e)) ((.==) (getNum_1 (getAdd_1 e)) 1))+          ==> ((sNum 1) .== sNum 1 =: e .== e =: qed)),+       (isLet e+          ==>+            (let+               nm = getLet_1 e+               a = getLet_2 e+               b = getLet_3 e+             in (sLet nm a b) .== sLet nm a b =: e .== e =: qed))]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase32.hs view
@@ -0,0 +1,23 @@+{-# LANGUAGE QuasiQuotes      #-}+{-# LANGUAGE DataKinds          #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions    #-}+{-# LANGUAGE TypeApplications    #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV+import Data.SBV.TP++-- Positive: only 2 of 5 constructors covered, including a guarded one+-- (sCase would reject this as non-exhaustive; pCase is fine)+t :: TP (Proof (Forall "e" Expr -> SBool))+t = calc "t" (\(Forall @"e" (e :: SExpr)) -> e .== e) $ \e -> []+    |- [pCase| e of+         Zero           -> e .== e =: qed+         Num i | i .> 0 -> sNum i .== sNum i =: e .== e =: qed+         Var s          -> sVar s .== sVar s =: e .== e =: qed+       |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase32.stderr view
@@ -0,0 +1,15 @@+PCase32.hs:(19,15)-(23,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      pCase+      " e of\n\+      \         Zero           -> e .== e =: qed\n\+      \         Num i | i .> 0 -> sNum i .== sNum i =: e .== e =: qed\n\+      \         Var s          -> sVar s .== sVar s =: e .== e =: qed\n\+      \       "+  ======>+    cases+      [(isZero e ==> (e .== e =: qed)),+       ((.&&) (isNum e) (let i = getNum_1 e in i .> 0)+          ==> (let i = getNum_1 e in (sNum i) .== sNum i =: e .== e =: qed)),+       (isVar e+          ==> (let s = getVar_1 e in (sVar s) .== sVar s =: e .== e =: qed))]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase33.hs view
@@ -0,0 +1,21 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV+import Data.SBV.TP++-- Negative in pCase: wildcard mid-list (after two constructors, before more)+-- Wildcard makes the remaining matches redundant+t :: SExpr -> Proof SBool+t e = [pCase| e of+        Zero  -> undefined+        Num _ -> undefined+        _     -> undefined+        Var _ -> undefined+        Add _ _ -> undefined+        Let _ _ _ -> undefined+      |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase33.stderr view
@@ -0,0 +1,19 @@+PCase33.hs:14:14: error: [GHC-39584]+    " PCase33.hs:17:9: pCase: Wildcard makes the remaining matches redundant:+        PCase33.hs:18:9-13: Var _+        PCase33.hs:19:9-15: Add _ _+        PCase33.hs:20:9-17: Let _ _ _++    " In the quasi-quotation:+        [pCase| e of+        Zero  -> undefined+        Num _ -> undefined+        _     -> undefined+        Var _ -> undefined+        Add _ _ -> undefined+        Let _ _ _ -> undefined+      |]+   |+14 | t e = [pCase| e of+   |              ^^^^^...+
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase34.hs view
@@ -0,0 +1,18 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV+import Data.SBV.TP++-- Negative in pCase: two wildcards, second is redundant+t :: SExpr -> Proof SBool+t e = [pCase| e of+        Zero  -> undefined+        Num _ -> undefined+        _     -> undefined+        _     -> undefined+      |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase34.stderr view
@@ -0,0 +1,15 @@+PCase34.hs:13:14: error: [GHC-39584]+    " PCase34.hs:16:9: pCase: Wildcard makes the remaining matches redundant:+        PCase34.hs:17:9: _++    " In the quasi-quotation:+        [pCase| e of+        Zero  -> undefined+        Num _ -> undefined+        _     -> undefined+        _     -> undefined+      |]+   |+13 | t e = [pCase| e of+   |              ^^^^^...+
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase35.hs view
@@ -0,0 +1,25 @@+{-# LANGUAGE QuasiQuotes      #-}+{-# LANGUAGE DataKinds          #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions    #-}+{-# LANGUAGE TypeApplications    #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV+import Data.SBV.TP++-- Positive: single guarded arm with no fallback for that constructor+-- (sCase rejects this as "guarded match might fail"; pCase is fine)+t :: TP (Proof (Forall "e" Expr -> SBool))+t = calc "t" (\(Forall @"e" (e :: SExpr)) -> e .== e) $ \e -> []+    |- [pCase| e of+         Zero           -> e .== e =: qed+         Num i | i .< 3 -> sNum i .== sNum i =: e .== e =: qed+         Var s          -> sVar s .== sVar s =: e .== e =: qed+         Add _ _        -> e .== e =: qed+         Let _ _ _      -> e .== e =: qed+       |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase35.stderr view
@@ -0,0 +1,18 @@+PCase35.hs:(19,15)-(25,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      pCase+      " e of\n\+      \         Zero           -> e .== e =: qed\n\+      \         Num i | i .< 3 -> sNum i .== sNum i =: e .== e =: qed\n\+      \         Var s          -> sVar s .== sVar s =: e .== e =: qed\n\+      \         Add _ _        -> e .== e =: qed\n\+      \         Let _ _ _      -> e .== e =: qed\n\+      \       "+  ======>+    cases+      [(isZero e ==> (e .== e =: qed)),+       ((.&&) (isNum e) (let i = getNum_1 e in i .< 3)+          ==> (let i = getNum_1 e in (sNum i) .== sNum i =: e .== e =: qed)),+       (isVar e+          ==> (let s = getVar_1 e in (sVar s) .== sVar s =: e .== e =: qed)),+       (isAdd e ==> (e .== e =: qed)), (isLet e ==> (e .== e =: qed))]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase36.hs view
@@ -0,0 +1,25 @@+{-# LANGUAGE QuasiQuotes       #-}+{-# LANGUAGE DataKinds         #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions  #-}+{-# LANGUAGE TypeApplications  #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV+import Data.SBV.TP++-- Negative: guarded wildcard at end with ambiguous type in guard (2 .>= 3)+t :: TP (Proof (Forall "e" Expr -> SBool))+t = calc "t" (\(Forall @"e" (e :: SExpr)) -> e .== e) $ \e -> []+    |- [pCase| e of+       Zero           -> e .== e =: qed+       Num _          -> e .== e =: qed+       Var _          -> e .== e =: qed+       Add _ _        -> e .== e =: qed+       Let _ _ _      -> e .== e =: qed+       _ | 2 .>= 3   -> e .== e =: qed+     |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase36.stderr view
@@ -0,0 +1,15 @@+PCase36.hs:18:15: error: [GHC-39584]+    " PCase36.hs:24:8: pCase: Wildcard match is redundant+    " In the quasi-quotation:+        [pCase| e of+       Zero           -> e .== e =: qed+       Num _          -> e .== e =: qed+       Var _          -> e .== e =: qed+       Add _ _        -> e .== e =: qed+       Let _ _ _      -> e .== e =: qed+       _ | 2 .>= 3   -> e .== e =: qed+     |]+   |+18 |     |- [pCase| e of+   |               ^^^^^...+
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase37.hs view
@@ -0,0 +1,25 @@+{-# LANGUAGE QuasiQuotes       #-}+{-# LANGUAGE DataKinds         #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions  #-}+{-# LANGUAGE TypeApplications  #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV+import Data.SBV.TP++-- Negative: all constructors covered + guarded wildcard with ambiguous type in guard (2 .>= 3)+t :: TP (Proof (Forall "e" Expr -> SBool))+t = calc "t" (\(Forall @"e" (e :: SExpr)) -> e .== e) $ \e -> []+    |- [pCase| e of+       Zero           -> e .== e =: qed+       Num i          -> sNum i .== sNum i =: e .== e =: qed+       Var _          -> e .== e =: qed+       Add _ _        -> e .== e =: qed+       Let _ _ _      -> e .== e =: qed+       _ | 2 .>= 3   -> e .== e =: qed+     |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase37.stderr view
@@ -0,0 +1,15 @@+PCase37.hs:18:15: error: [GHC-39584]+    " PCase37.hs:24:8: pCase: Wildcard match is redundant+    " In the quasi-quotation:+        [pCase| e of+       Zero           -> e .== e =: qed+       Num i          -> sNum i .== sNum i =: e .== e =: qed+       Var _          -> e .== e =: qed+       Add _ _        -> e .== e =: qed+       Let _ _ _      -> e .== e =: qed+       _ | 2 .>= 3   -> e .== e =: qed+     |]+   |+18 |     |- [pCase| e of+   |               ^^^^^...+
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase38.hs view
@@ -0,0 +1,18 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV+import Data.SBV.TP++t :: SExpr -> Proof SBool+t e = [pCase| e of+        Zero      -> undefined+        Num _     -> undefined+        Var _     -> undefined+        Add _ _   -> undefined+        Let _ _ _ -> undefined+      |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase38.stderr view
@@ -0,0 +1,32 @@+PCase38.hs:(12,14)-(18,8): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      pCase+      " e of\n\+      \        Zero      -> undefined\n\+      \        Num _     -> undefined\n\+      \        Var _     -> undefined\n\+      \        Add _ _   -> undefined\n\+      \        Let _ _ _ -> undefined\n\+      \      "+  ======>+    cases+      [(isZero e ==> undefined), (isNum e ==> undefined),+       (isVar e ==> undefined), (isAdd e ==> undefined),+       (isLet e ==> undefined)]+PCase38.hs:12:14: error: [GHC-83865]+    " Couldn't match expected type: Proof SBool+                  with actual type: sbv-14.4:Data.SBV.TP.TP.TPProofGen+                                      a0 [sbv-14.4:Data.SBV.TP.TP.Helper] ()+    " In the expression:+        cases+          [(isZero e ==> undefined), (isNum e ==> undefined),+           (isVar e ==> undefined), ....]+      In an equation for t:+          t e+            = (cases+                 [(isZero e ==> undefined), (isNum e ==> undefined),+                  (isVar e ==> undefined), ....])+   |+12 | t e = [pCase| e of+   |              ^^^^^...+
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase39.hs view
@@ -0,0 +1,25 @@+{-# LANGUAGE QuasiQuotes      #-}+{-# LANGUAGE DataKinds          #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions    #-}+{-# LANGUAGE TypeApplications    #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV+import Data.SBV.TP++-- Positive: nested pattern covers only a subset of Add, no fallback+-- (sCase rejects as non-exhaustive; pCase is fine)+t :: TP (Proof (Forall "e" Expr -> SBool))+t = calc "t" (\(Forall @"e" (e :: SExpr)) -> e .== e) $ \e -> []+    |- [pCase| e of+         Zero          -> e .== e =: qed+         Num k         -> sNum k .== sNum k =: e .== e =: qed+         Var s         -> sVar s .== sVar s =: e .== e =: qed+         Add (Num i) _ -> sNum i .== sNum i =: e .== e =: qed+         Let nm a b    -> sLet nm a b .== sLet nm a b =: e .== e =: qed+       |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase39.stderr view
@@ -0,0 +1,28 @@+PCase39.hs:(19,15)-(25,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      pCase+      " e of\n\+      \         Zero          -> e .== e =: qed\n\+      \         Num k         -> sNum k .== sNum k =: e .== e =: qed\n\+      \         Var s         -> sVar s .== sVar s =: e .== e =: qed\n\+      \         Add (Num i) _ -> sNum i .== sNum i =: e .== e =: qed\n\+      \         Let nm a b    -> sLet nm a b .== sLet nm a b =: e .== e =: qed\n\+      \       "+  ======>+    cases+      [(isZero e ==> (e .== e =: qed)),+       (isNum e+          ==> (let k = getNum_1 e in (sNum k) .== sNum k =: e .== e =: qed)),+       (isVar e+          ==> (let s = getVar_1 e in (sVar s) .== sVar s =: e .== e =: qed)),+       ((.&&) (isAdd e) (isNum (getAdd_1 e))+          ==>+            (let i = getNum_1 (getAdd_1 e)+             in (sNum i) .== sNum i =: e .== e =: qed)),+       (isLet e+          ==>+            (let+               nm = getLet_1 e+               a = getLet_2 e+               b = getLet_3 e+             in (sLet nm a b) .== sLet nm a b =: e .== e =: qed))]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase40.hs view
@@ -0,0 +1,25 @@+{-# LANGUAGE QuasiQuotes      #-}+{-# LANGUAGE DataKinds          #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions    #-}+{-# LANGUAGE TypeApplications    #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV+import Data.SBV.TP++-- Positive: deeply nested pattern, no fallback for outer Add+-- (sCase rejects as non-exhaustive; pCase is fine)+t :: TP (Proof (Forall "e" Expr -> SBool))+t = calc "t" (\(Forall @"e" (e :: SExpr)) -> e .== e) $ \e -> []+    |- [pCase| e of+         Zero                          -> e .== e =: qed+         Num k                         -> sNum k .== sNum k =: e .== e =: qed+         Var s                         -> sVar s .== sVar s =: e .== e =: qed+         Add (Add (Add (Num _) b) c) _ -> sAdd b (sAdd c c) .== e =: qed+         Let nm a b                    -> sLet nm a b .== sLet nm a b =: e .== e =: qed+       |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase40.stderr view
@@ -0,0 +1,36 @@+PCase40.hs:(19,15)-(25,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      pCase+      " e of\n\+      \         Zero                          -> e .== e =: qed\n\+      \         Num k                         -> sNum k .== sNum k =: e .== e =: qed\n\+      \         Var s                         -> sVar s .== sVar s =: e .== e =: qed\n\+      \         Add (Add (Add (Num _) b) c) _ -> sAdd b (sAdd c c) .== e =: qed\n\+      \         Let nm a b                    -> sLet nm a b .== sLet nm a b =: e .== e =: qed\n\+      \       "+  ======>+    cases+      [(isZero e ==> (e .== e =: qed)),+       (isNum e+          ==> (let k = getNum_1 e in (sNum k) .== sNum k =: e .== e =: qed)),+       (isVar e+          ==> (let s = getVar_1 e in (sVar s) .== sVar s =: e .== e =: qed)),+       ((.&&)+          (isAdd e)+          ((.&&)+             (isAdd (getAdd_1 e))+             ((.&&)+                (isAdd (getAdd_1 (getAdd_1 e)))+                (isNum (getAdd_1 (getAdd_1 (getAdd_1 e))))))+          ==>+            (let+               c = getAdd_2 (getAdd_1 e)+               b = getAdd_2 (getAdd_1 (getAdd_1 e))+             in (sAdd b (sAdd c c)) .== e =: qed)),+       (isLet e+          ==>+            (let+               nm = getLet_1 e+               a = getLet_2 e+               b = getLet_3 e+             in (sLet nm a b) .== sLet nm a b =: e .== e =: qed))]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase41.hs view
@@ -0,0 +1,17 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV+import Data.SBV.TP++-- Negative: parse error (else keyword in wrong position)+t :: SExpr -> Proof SBool+t e = [pCase| e of+        Zero  -> undefined+        Var s -> ite (s .== "a") undefined else undefined+        Num _ -> undefined+      |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase41.stderr view
@@ -0,0 +1,13 @@+PCase41.hs:13:14: error: [GHC-39584]+    " PCase41.hs:15:44: Parse error: else++    " In the quasi-quotation:+        [pCase| e of+        Zero  -> undefined+        Var s -> ite (s .== "a") undefined else undefined+        Num _ -> undefined+      |]+   |+13 | t e = [pCase| e of+   |              ^^^^^...+
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase42.hs view
@@ -0,0 +1,26 @@+{-# LANGUAGE QuasiQuotes      #-}+{-# LANGUAGE DataKinds          #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions    #-}+{-# LANGUAGE TypeApplications    #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV+import Data.SBV.TP++-- Positive: Num split across two arms — guarded first, unguarded fallback later+-- (same constructor appearing in two separate groups is fine in pCase)+t :: TP (Proof (Forall "e" Expr -> SBool))+t = calc "t" (\(Forall @"e" (e :: SExpr)) -> e .== e) $ \e -> []+    |- [pCase| e of+         Zero           -> e .== e =: qed+         Num i | i .< 3 -> sNum i .== sNum i =: e .== e =: qed+         Var s          -> sVar s .== sVar s =: e .== e =: qed+         Add a b        -> sAdd a b .== sAdd a b =: e .== e =: qed+         Num i          -> sNum i .== sNum i =: e .== e =: qed+         Let nm a b     -> sLet nm a b .== sLet nm a b =: e .== e =: qed+       |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase42.stderr view
@@ -0,0 +1,33 @@+PCase42.hs:(19,15)-(26,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      pCase+      " e of\n\+      \         Zero           -> e .== e =: qed\n\+      \         Num i | i .< 3 -> sNum i .== sNum i =: e .== e =: qed\n\+      \         Var s          -> sVar s .== sVar s =: e .== e =: qed\n\+      \         Add a b        -> sAdd a b .== sAdd a b =: e .== e =: qed\n\+      \         Num i          -> sNum i .== sNum i =: e .== e =: qed\n\+      \         Let nm a b     -> sLet nm a b .== sLet nm a b =: e .== e =: qed\n\+      \       "+  ======>+    cases+      [(isZero e ==> (e .== e =: qed)),+       ((.&&) (isNum e) (let i = getNum_1 e in i .< 3)+          ==> (let i = getNum_1 e in (sNum i) .== sNum i =: e .== e =: qed)),+       (isVar e+          ==> (let s = getVar_1 e in (sVar s) .== sVar s =: e .== e =: qed)),+       (isAdd e+          ==>+            (let+               a = getAdd_1 e+               b = getAdd_2 e+             in (sAdd a b) .== sAdd a b =: e .== e =: qed)),+       ((.&&) (isNum e) (sNot (let i = getNum_1 e in i .< 3))+          ==> (let i = getNum_1 e in (sNum i) .== sNum i =: e .== e =: qed)),+       (isLet e+          ==>+            (let+               nm = getLet_1 e+               a = getLet_2 e+               b = getLet_3 e+             in (sLet nm a b) .== sLet nm a b =: e .== e =: qed))]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase43.hs view
@@ -0,0 +1,24 @@+{-# LANGUAGE QuasiQuotes       #-}+{-# LANGUAGE DataKinds         #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions  #-}+{-# LANGUAGE TypeApplications  #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV+import Data.SBV.TP++-- Positive: guarded constructor without full coverage (exhaustiveness deferred to proof time)+t :: TP (Proof (Forall "e" Expr -> SBool))+t = calc "t" (\(Forall @"e" (e :: SExpr)) -> e .== e) $ \e -> []+    |- [pCase| e of+         Zero              -> e .== e =: qed+         Num _             -> e .== e =: qed+         Var _             -> e .== e =: qed+         Add a _ | isZero a -> e .== e =: qed+         Let _ _ _         -> e .== e =: qed+       |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase43.stderr view
@@ -0,0 +1,17 @@+PCase43.hs:(18,15)-(24,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      pCase+      " e of\n\+      \         Zero              -> e .== e =: qed\n\+      \         Num _             -> e .== e =: qed\n\+      \         Var _             -> e .== e =: qed\n\+      \         Add a _ | isZero a -> e .== e =: qed\n\+      \         Let _ _ _         -> e .== e =: qed\n\+      \       "+  ======>+    cases+      [(isZero e ==> (e .== e =: qed)), (isNum e ==> (e .== e =: qed)),+       (isVar e ==> (e .== e =: qed)),+       ((.&&) (isAdd e) (let a = getAdd_1 e in isZero a)+          ==> (e .== e =: qed)),+       (isLet e ==> (e .== e =: qed))]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase44.hs view
@@ -0,0 +1,26 @@+{-# LANGUAGE QuasiQuotes       #-}+{-# LANGUAGE DataKinds         #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions  #-}+{-# LANGUAGE TypeApplications  #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV+import Data.SBV.TP++-- Positive: wildcard catch-all after multi-arm guarded Var and Num+t :: TP (Proof (Forall "e" Expr -> SBool))+t = calc "t" (\(Forall @"e" (e :: SExpr)) -> e .== e) $ \e -> []+    |- [pCase| e of+         Var s | s .== literal "a"                       -> e .== e =: qed+               | s .== literal "b" .|| s .== literal "c" -> e .== e =: qed+               | sTrue                                    -> e .== e =: qed++         Num _ | sTrue                                    -> e .== e =: qed++         _                                                -> e .== e =: qed+       |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase44.stderr view
@@ -0,0 +1,48 @@+PCase44.hs:(18,15)-(26,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      pCase+      " e of\n\+      \         Var s | s .== literal \"a\"                       -> e .== e =: qed\n\+      \               | s .== literal \"b\" .|| s .== literal \"c\" -> e .== e =: qed\n\+      \               | sTrue                                    -> e .== e =: qed\n\+      \\n\+      \         Num _ | sTrue                                    -> e .== e =: qed\n\+      \\n\+      \         _                                                -> e .== e =: qed\n\+      \       "+  ======>+    cases+      [((.&&) (isVar e) (let s = getVar_1 e in s .== literal "a")+          ==> (e .== e =: qed)),+       ((.&&)+          (isVar e)+          ((.&&)+             (sNot (let s = getVar_1 e in s .== literal "a"))+             (let s = getVar_1 e in s .== literal "b" .|| s .== literal "c"))+          ==> (e .== e =: qed)),+       ((.&&)+          (isVar e)+          ((.&&)+             (sNot (let s = getVar_1 e in s .== literal "a"))+             (sNot+                (let s = getVar_1 e in s .== literal "b" .|| s .== literal "c")))+          ==> (e .== e =: qed)),+       (isNum e ==> (e .== e =: qed)),+       (sNot+          ((.||)+             ((.||)+                ((.||)+                   ((.&&) (isVar e) (let s = getVar_1 e in s .== literal "a"))+                   ((.&&)+                      (isVar e)+                      ((.&&)+                         (sNot (let s = getVar_1 e in s .== literal "a"))+                         (let s = getVar_1 e in s .== literal "b" .|| s .== literal "c"))))+                ((.&&)+                   (isVar e)+                   ((.&&)+                      (sNot (let s = getVar_1 e in s .== literal "a"))+                      (sNot+                         (let s = getVar_1 e in s .== literal "b" .|| s .== literal "c")))))+             (isNum e))+          ==> (e .== e =: qed))]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase45.hs view
@@ -0,0 +1,24 @@+{-# LANGUAGE QuasiQuotes       #-}+{-# LANGUAGE DataKinds         #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions  #-}+{-# LANGUAGE TypeApplications  #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV+import Data.SBV.TP++-- Negative: bound variable i from Num is not used in the RHS+t :: TP (Proof (Forall "e" Expr -> SBool))+t = calc "t" (\(Forall @"e" (e :: SExpr)) -> e .== e) $ \e -> []+    |- [pCase| e of+         Zero      -> e .== e =: qed+         Num i     -> e .== e =: qed+         Var s     -> sVar s .== sVar s =: e .== e =: qed+         Add a b   -> sAdd a b .== sAdd a b =: e .== e =: qed+         Let nm a b -> sLet nm a b .== sLet nm a b =: e .== e =: qed+       |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase45.stderr view
@@ -0,0 +1,35 @@+PCase45.hs:(18,15)-(24,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      pCase+      " e of\n\+      \         Zero      -> e .== e =: qed\n\+      \         Num i     -> e .== e =: qed\n\+      \         Var s     -> sVar s .== sVar s =: e .== e =: qed\n\+      \         Add a b   -> sAdd a b .== sAdd a b =: e .== e =: qed\n\+      \         Let nm a b -> sLet nm a b .== sLet nm a b =: e .== e =: qed\n\+      \       "+  ======>+    cases+      [(isZero e ==> (e .== e =: qed)),+       (isNum e ==> (let i = getNum_1 e in e .== e =: qed)),+       (isVar e+          ==> (let s = getVar_1 e in (sVar s) .== sVar s =: e .== e =: qed)),+       (isAdd e+          ==>+            (let+               a = getAdd_1 e+               b = getAdd_2 e+             in (sAdd a b) .== sAdd a b =: e .== e =: qed)),+       (isLet e+          ==>+            (let+               nm = getLet_1 e+               a = getLet_2 e+               b = getLet_3 e+             in (sLet nm a b) .== sLet nm a b =: e .== e =: qed))]+PCase45.hs:18:15: error: [GHC-40910] [-Wunused-local-binds, Werror=unused-local-binds]+    Defined but not used: i+   |+18 |     |- [pCase| e of+   |               ^^^^^...+
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase46.hs view
@@ -0,0 +1,24 @@+{-# LANGUAGE QuasiQuotes       #-}+{-# LANGUAGE DataKinds         #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions  #-}+{-# LANGUAGE TypeApplications  #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV+import Data.SBV.TP++-- Negative: bound variables a, b from Add are not used in the RHS+t :: TP (Proof (Forall "e" Expr -> SBool))+t = calc "t" (\(Forall @"e" (e :: SExpr)) -> e .== e) $ \e -> []+    |- [pCase| e of+         Zero      -> e .== e =: qed+         Num i     -> sNum i .== sNum i =: e .== e =: qed+         Var s     -> sVar s .== sVar s =: e .== e =: qed+         Add a b   -> e .== e =: qed+         Let nm a b -> sLet nm a b .== sLet nm a b =: e .== e =: qed+       |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase46.stderr view
@@ -0,0 +1,42 @@+PCase46.hs:(18,15)-(24,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      pCase+      " e of\n\+      \         Zero      -> e .== e =: qed\n\+      \         Num i     -> sNum i .== sNum i =: e .== e =: qed\n\+      \         Var s     -> sVar s .== sVar s =: e .== e =: qed\n\+      \         Add a b   -> e .== e =: qed\n\+      \         Let nm a b -> sLet nm a b .== sLet nm a b =: e .== e =: qed\n\+      \       "+  ======>+    cases+      [(isZero e ==> (e .== e =: qed)),+       (isNum e+          ==> (let i = getNum_1 e in (sNum i) .== sNum i =: e .== e =: qed)),+       (isVar e+          ==> (let s = getVar_1 e in (sVar s) .== sVar s =: e .== e =: qed)),+       (isAdd e+          ==>+            (let+               a = getAdd_1 e+               b = getAdd_2 e+             in e .== e =: qed)),+       (isLet e+          ==>+            (let+               nm = getLet_1 e+               a = getLet_2 e+               b = getLet_3 e+             in (sLet nm a b) .== sLet nm a b =: e .== e =: qed))]+PCase46.hs:18:15: error: [GHC-40910] [-Wunused-local-binds, Werror=unused-local-binds]+    Defined but not used: b+   |+18 |     |- [pCase| e of+   |               ^^^^^...++PCase46.hs:18:15: error: [GHC-40910] [-Wunused-local-binds, Werror=unused-local-binds]+    Defined but not used: a+   |+18 |     |- [pCase| e of+   |               ^^^^^...+
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase47.hs view
@@ -0,0 +1,25 @@+{-# LANGUAGE QuasiQuotes      #-}+{-# LANGUAGE DataKinds          #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions    #-}+{-# LANGUAGE TypeApplications    #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV+import Data.SBV.TP++-- Negative: Var s before Var "x" — Var s overlaps with Var "x"+t :: TP (Proof (Forall "e" Expr -> SBool))+t = calc "t" (\(Forall @"e" (e :: SExpr)) -> e .== e) $ \e -> []+    |- [pCase| e of+         Zero      -> e .== e =: qed+         Num k     -> sNum k .== sNum k =: e .== e =: qed+         Var s     -> sVar s .== sVar s =: e .== e =: qed+         Var "x"   -> sVar (literal "x") .== sVar (literal "x") =: e .== e =: qed+         Add a b   -> sAdd a b .== sAdd a b =: e .== e =: qed+         Let nm a b -> sLet nm a b .== sLet nm a b =: e .== e =: qed+       |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase47.stderr view
@@ -0,0 +1,19 @@+PCase47.hs:18:15: error: [GHC-39584]+    " PCase47.hs:22:10-16: pCase: Overlapping case constructors:+        Constructor: Var _ | (Data.SBV.Core.Data..==) (getVar_1 e) (Data.SBV.Core.Data.literal "x")+      Overlaps with:+        PCase47.hs:21:10-14: Var s++    " In the quasi-quotation:+        [pCase| e of+         Zero      -> e .== e =: qed+         Num k     -> sNum k .== sNum k =: e .== e =: qed+         Var s     -> sVar s .== sVar s =: e .== e =: qed+         Var "x"   -> sVar (literal "x") .== sVar (literal "x") =: e .== e =: qed+         Add a b   -> sAdd a b .== sAdd a b =: e .== e =: qed+         Let nm a b -> sLet nm a b .== sLet nm a b =: e .== e =: qed+       |]+   |+18 |     |- [pCase| e of+   |               ^^^^^...+
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase48.hs view
@@ -0,0 +1,25 @@+{-# LANGUAGE QuasiQuotes       #-}+{-# LANGUAGE DataKinds         #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions  #-}+{-# LANGUAGE TypeApplications  #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV+import Data.SBV.TP++-- Positive: multi-arm guarded Var and Num, no wildcard catch-all+-- (sCase would reject as non-exhaustive; pCase is fine)+t :: TP (Proof (Forall "e" Expr -> SBool))+t = calc "t" (\(Forall @"e" (e :: SExpr)) -> e .== e) $ \e -> []+    |- [pCase| e of+         Var s | s .== literal "a"                       -> e .== e =: qed+               | s .== literal "b" .|| s .== literal "c" -> e .== e =: qed+               | sTrue                                    -> e .== e =: qed++         Num _ | sTrue                                    -> e .== e =: qed+       |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase48.stderr view
@@ -0,0 +1,28 @@+PCase48.hs:(19,15)-(25,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      pCase+      " e of\n\+      \         Var s | s .== literal \"a\"                       -> e .== e =: qed\n\+      \               | s .== literal \"b\" .|| s .== literal \"c\" -> e .== e =: qed\n\+      \               | sTrue                                    -> e .== e =: qed\n\+      \\n\+      \         Num _ | sTrue                                    -> e .== e =: qed\n\+      \       "+  ======>+    cases+      [((.&&) (isVar e) (let s = getVar_1 e in s .== literal "a")+          ==> (e .== e =: qed)),+       ((.&&)+          (isVar e)+          ((.&&)+             (sNot (let s = getVar_1 e in s .== literal "a"))+             (let s = getVar_1 e in s .== literal "b" .|| s .== literal "c"))+          ==> (e .== e =: qed)),+       ((.&&)+          (isVar e)+          ((.&&)+             (sNot (let s = getVar_1 e in s .== literal "a"))+             (sNot+                (let s = getVar_1 e in s .== literal "b" .|| s .== literal "c")))+          ==> (e .== e =: qed)),+       (isNum e ==> (e .== e =: qed))]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase49.hs view
@@ -0,0 +1,22 @@+{-# LANGUAGE QuasiQuotes       #-}+{-# LANGUAGE DataKinds         #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions  #-}+{-# LANGUAGE TypeApplications  #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV+import Data.SBV.TP++-- Positive: guarded wildcard as last arm after explicit constructors+t :: TP (Proof (Forall "e" Expr -> SBool))+t = calc "t" (\(Forall @"e" (e :: SExpr)) -> e .== e) $ \e -> []+    |- [pCase| e of+         Zero    -> e .== e =: qed+         Num _   -> e .== e =: qed+         _ | sTrue -> e .== e =: qed+       |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase49.stderr view
@@ -0,0 +1,12 @@+PCase49.hs:(18,15)-(22,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      pCase+      " e of\n\+      \         Zero    -> e .== e =: qed\n\+      \         Num _   -> e .== e =: qed\n\+      \         _ | sTrue -> e .== e =: qed\n\+      \       "+  ======>+    cases+      [(isZero e ==> (e .== e =: qed)), (isNum e ==> (e .== e =: qed)),+       (sNot ((.||) (isZero e) (isNum e)) ==> (e .== e =: qed))]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase50.hs view
@@ -0,0 +1,20 @@+{-# LANGUAGE QuasiQuotes       #-}+{-# LANGUAGE DataKinds         #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions  #-}+{-# LANGUAGE TypeApplications  #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV+import Data.SBV.TP++-- Positive: wildcard-only, no explicit constructors+t :: TP (Proof (Forall "e" Expr -> SBool))+t = calc "t" (\(Forall @"e" (e :: SExpr)) -> e .== e) $ \e -> []+    |- [pCase| e of+         _ -> e .== e =: qed+       |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase50.stderr view
@@ -0,0 +1,8 @@+PCase50.hs:(18,15)-(20,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      pCase+      " e of\n\+      \         _ -> e .== e =: qed\n\+      \       "+  ======>+    cases [(sTrue ==> (e .== e =: qed))]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase51.hs view
@@ -0,0 +1,21 @@+{-# LANGUAGE QuasiQuotes       #-}+{-# LANGUAGE DataKinds         #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions  #-}+{-# LANGUAGE TypeApplications  #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV+import Data.SBV.TP++-- Positive: guarded wildcard only, no explicit constructors+t :: TP (Proof (Forall "e" Expr -> SBool))+t = calc "t" (\(Forall @"e" (e :: SExpr)) -> e .== e) $ \e -> []+    |- [pCase| e of+         _ | isZero e  -> e .== e =: qed+           | sTrue     -> e .== e =: qed+       |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase51.stderr view
@@ -0,0 +1,11 @@+PCase51.hs:(18,15)-(21,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      pCase+      " e of\n\+      \         _ | isZero e  -> e .== e =: qed\n\+      \           | sTrue     -> e .== e =: qed\n\+      \       "+  ======>+    cases+      [(isZero e ==> (e .== e =: qed)),+       (sNot (isZero e) ==> (e .== e =: qed))]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase52.hs view
@@ -0,0 +1,17 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV+import Data.SBV.TP++-- Negative: guarded wildcard before explicit constructor matches+t :: SExpr -> Proof SBool+t e = [pCase| e of+        Zero       -> undefined+        _ | sTrue  -> undefined+        Num _      -> undefined+      |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase52.stderr view
@@ -0,0 +1,14 @@+PCase52.hs:13:14: error: [GHC-39584]+    " PCase52.hs:15:9: pCase: Wildcard makes the remaining matches redundant:+        PCase52.hs:16:9-13: Num _++    " In the quasi-quotation:+        [pCase| e of+        Zero       -> undefined+        _ | sTrue  -> undefined+        Num _      -> undefined+      |]+   |+13 | t e = [pCase| e of+   |              ^^^^^...+
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase53.hs view
@@ -0,0 +1,24 @@+{-# LANGUAGE QuasiQuotes       #-}+{-# LANGUAGE DataKinds         #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions  #-}+{-# LANGUAGE TypeApplications  #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV+import Data.SBV.TP++-- Dump test: simple unguarded, all constructors+t :: TP (Proof (Forall "e" Expr -> SBool))+t = calc "t" (\(Forall @"e" (e :: SExpr)) -> e .== e) $ \e -> []+    |- [pCase| e of+         Zero      -> e .== e =: qed+         Num _     -> e .== e =: qed+         Var _     -> e .== e =: qed+         Add _ _   -> e .== e =: qed+         Let _ _ _ -> e .== e =: qed+       |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase53.stderr view
@@ -0,0 +1,15 @@+PCase53.hs:(18,15)-(24,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      pCase+      " e of\n\+      \         Zero      -> e .== e =: qed\n\+      \         Num _     -> e .== e =: qed\n\+      \         Var _     -> e .== e =: qed\n\+      \         Add _ _   -> e .== e =: qed\n\+      \         Let _ _ _ -> e .== e =: qed\n\+      \       "+  ======>+    cases+      [(isZero e ==> (e .== e =: qed)), (isNum e ==> (e .== e =: qed)),+       (isVar e ==> (e .== e =: qed)), (isAdd e ==> (e .== e =: qed)),+       (isLet e ==> (e .== e =: qed))]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase54.hs view
@@ -0,0 +1,26 @@+{-# LANGUAGE QuasiQuotes       #-}+{-# LANGUAGE DataKinds         #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions  #-}+{-# LANGUAGE TypeApplications  #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV+import Data.SBV.TP++-- Dump test: multiple guards on same constructor (guard accumulation)+t :: TP (Proof (Forall "e" Expr -> SBool))+t = calc "t" (\(Forall @"e" (e :: SExpr)) -> e .== e) $ \e -> []+    |- [pCase| e of+         Zero              -> e .== e =: qed+         Num i | i .< 3    -> e .== e =: qed+               | i .< 10   -> e .== e =: qed+               | sTrue     -> e .== e =: qed+         Var _             -> e .== e =: qed+         Add _ _           -> e .== e =: qed+         Let _ _ _         -> e .== e =: qed+       |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase54.stderr view
@@ -0,0 +1,31 @@+PCase54.hs:(18,15)-(26,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      pCase+      " e of\n\+      \         Zero              -> e .== e =: qed\n\+      \         Num i | i .< 3    -> e .== e =: qed\n\+      \               | i .< 10   -> e .== e =: qed\n\+      \               | sTrue     -> e .== e =: qed\n\+      \         Var _             -> e .== e =: qed\n\+      \         Add _ _           -> e .== e =: qed\n\+      \         Let _ _ _         -> e .== e =: qed\n\+      \       "+  ======>+    cases+      [(isZero e ==> (e .== e =: qed)),+       ((.&&) (isNum e) (let i = getNum_1 e in i .< 3)+          ==> (e .== e =: qed)),+       ((.&&)+          (isNum e)+          ((.&&)+             (sNot (let i = getNum_1 e in i .< 3))+             (let i = getNum_1 e in i .< 10))+          ==> (e .== e =: qed)),+       ((.&&)+          (isNum e)+          ((.&&)+             (sNot (let i = getNum_1 e in i .< 3))+             (sNot (let i = getNum_1 e in i .< 10)))+          ==> (e .== e =: qed)),+       (isVar e ==> (e .== e =: qed)), (isAdd e ==> (e .== e =: qed)),+       (isLet e ==> (e .== e =: qed))]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase55.hs view
@@ -0,0 +1,22 @@+{-# LANGUAGE QuasiQuotes       #-}+{-# LANGUAGE DataKinds         #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions  #-}+{-# LANGUAGE TypeApplications  #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV+import Data.SBV.TP++-- Dump test: wildcard after some constructors (De Morgan negation)+t :: TP (Proof (Forall "e" Expr -> SBool))+t = calc "t" (\(Forall @"e" (e :: SExpr)) -> e .== e) $ \e -> []+    |- [pCase| e of+         Zero      -> e .== e =: qed+         Num _     -> e .== e =: qed+         _         -> e .== e =: qed+       |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase55.stderr view
@@ -0,0 +1,12 @@+PCase55.hs:(18,15)-(22,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      pCase+      " e of\n\+      \         Zero      -> e .== e =: qed\n\+      \         Num _     -> e .== e =: qed\n\+      \         _         -> e .== e =: qed\n\+      \       "+  ======>+    cases+      [(isZero e ==> (e .== e =: qed)), (isNum e ==> (e .== e =: qed)),+       (sNot ((.||) (isZero e) (isNum e)) ==> (e .== e =: qed))]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase56.hs view
@@ -0,0 +1,23 @@+{-# LANGUAGE QuasiQuotes       #-}+{-# LANGUAGE DataKinds         #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions  #-}+{-# LANGUAGE TypeApplications  #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV+import Data.SBV.TP++-- Dump test: guarded wildcard + nested pattern on a constructor+t :: TP (Proof (Forall "e" Expr -> SBool))+t = calc "t" (\(Forall @"e" (e :: SExpr)) -> e .== e) $ \e -> []+    |- [pCase| e of+         Add (Num i) _ | i .> 0  -> e .== e =: qed+         Add _ _                  -> e .== e =: qed+         _ | isZero e             -> e .== e =: qed+           | sTrue                -> e .== e =: qed+       |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase56.stderr view
@@ -0,0 +1,62 @@+PCase56.hs:(18,15)-(23,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      pCase+      " e of\n\+      \         Add (Num i) _ | i .> 0  -> e .== e =: qed\n\+      \         Add _ _                  -> e .== e =: qed\n\+      \         _ | isZero e             -> e .== e =: qed\n\+      \           | sTrue                -> e .== e =: qed\n\+      \       "+  ======>+    cases+      [((.&&)+          (isAdd e)+          ((.&&)+             (isNum (getAdd_1 e)) (let i = getNum_1 (getAdd_1 e) in i .> 0))+          ==> (e .== e =: qed)),+       ((.&&)+          (isAdd e)+          (sNot+             ((.&&)+                (isNum (getAdd_1 e)) (let i = getNum_1 (getAdd_1 e) in i .> 0)))+          ==> (e .== e =: qed)),+       ((.&&)+          (sNot+             ((.||)+                ((.&&)+                   (isAdd e)+                   ((.&&)+                      (isNum (getAdd_1 e)) (let i = getNum_1 (getAdd_1 e) in i .> 0)))+                ((.&&)+                   (isAdd e)+                   (sNot+                      ((.&&)+                         (isNum (getAdd_1 e)) (let i = getNum_1 (getAdd_1 e) in i .> 0))))))+          (isZero e)+          ==> (e .== e =: qed)),+       (sNot+          ((.||)+             ((.||)+                ((.&&)+                   (isAdd e)+                   ((.&&)+                      (isNum (getAdd_1 e)) (let i = getNum_1 (getAdd_1 e) in i .> 0)))+                ((.&&)+                   (isAdd e)+                   (sNot+                      ((.&&)+                         (isNum (getAdd_1 e)) (let i = getNum_1 (getAdd_1 e) in i .> 0)))))+             ((.&&)+                (sNot+                   ((.||)+                      ((.&&)+                         (isAdd e)+                         ((.&&)+                            (isNum (getAdd_1 e)) (let i = getNum_1 (getAdd_1 e) in i .> 0)))+                      ((.&&)+                         (isAdd e)+                         (sNot+                            ((.&&)+                               (isNum (getAdd_1 e)) (let i = getNum_1 (getAdd_1 e) in i .> 0))))))+                (isZero e)))+          ==> (e .== e =: qed))]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase57.hs view
@@ -0,0 +1,22 @@+{-# LANGUAGE QuasiQuotes       #-}+{-# LANGUAGE DataKinds         #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions  #-}+{-# LANGUAGE TypeApplications  #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV+import Data.SBV.TP++-- Dump test: nested pattern variable used in both guard and RHS+t :: TP (Proof (Forall "e" Expr -> SBool))+t = calc "t" (\(Forall @"e" (e :: SExpr)) -> e .== e) $ \e -> []+    |- [pCase| e of+         Add (Num i) _ | i .> 0  -> sNum i .== sNum i =: e .== e =: qed+         Add _ _                  -> e .== e =: qed+         _                        -> e .== e =: qed+       |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase57.stderr view
@@ -0,0 +1,35 @@+PCase57.hs:(18,15)-(22,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      pCase+      " e of\n\+      \         Add (Num i) _ | i .> 0  -> sNum i .== sNum i =: e .== e =: qed\n\+      \         Add _ _                  -> e .== e =: qed\n\+      \         _                        -> e .== e =: qed\n\+      \       "+  ======>+    cases+      [((.&&)+          (isAdd e)+          ((.&&)+             (isNum (getAdd_1 e)) (let i = getNum_1 (getAdd_1 e) in i .> 0))+          ==>+            (let i = getNum_1 (getAdd_1 e)+             in (sNum i) .== sNum i =: e .== e =: qed)),+       ((.&&)+          (isAdd e)+          (sNot+             ((.&&)+                (isNum (getAdd_1 e)) (let i = getNum_1 (getAdd_1 e) in i .> 0)))+          ==> (e .== e =: qed)),+       (sNot+          ((.||)+             ((.&&)+                (isAdd e)+                ((.&&)+                   (isNum (getAdd_1 e)) (let i = getNum_1 (getAdd_1 e) in i .> 0)))+             ((.&&)+                (isAdd e)+                (sNot+                   ((.&&)+                      (isNum (getAdd_1 e)) (let i = getNum_1 (getAdd_1 e) in i .> 0)))))+          ==> (e .== e =: qed))]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase58.hs view
@@ -0,0 +1,25 @@+{-# LANGUAGE QuasiQuotes       #-}+{-# LANGUAGE DataKinds         #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions  #-}+{-# LANGUAGE TypeApplications  #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV+import Data.SBV.TP++-- Dump test: multiple guarded arms on nested pattern, variable in guard + RHS, wildcard+t :: TP (Proof (Forall "e" Expr -> SBool))+t = calc "t" (\(Forall @"e" (e :: SExpr)) -> e .== e) $ \e -> []+    |- [pCase| e of+         Let s (Num i) b | i .> 0   -> sLet s (sNum i) b .== sLet s (sNum i) b =: e .== e =: qed+                          | i .> -5  -> sLet s (sNum i) b .== sLet s (sNum i) b =: e .== e =: qed+                          | sTrue    -> sLet s (sNum i) b .== sLet s (sNum i) b =: e .== e =: qed+         Let s a b                   -> sLet s a b .== sLet s a b =: e .== e =: qed+         Add (Num i) (Num j)         -> sAdd (sNum i) (sNum j) .== sAdd (sNum i) (sNum j) =: e .== e =: qed+         _                           -> e .== e =: qed+       |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase58.stderr view
@@ -0,0 +1,127 @@+PCase58.hs:(18,15)-(25,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      pCase+      " e of\n\+      \         Let s (Num i) b | i .> 0   -> sLet s (sNum i) b .== sLet s (sNum i) b =: e .== e =: qed\n\+      \                          | i .> -5  -> sLet s (sNum i) b .== sLet s (sNum i) b =: e .== e =: qed\n\+      \                          | sTrue    -> sLet s (sNum i) b .== sLet s (sNum i) b =: e .== e =: qed\n\+      \         Let s a b                   -> sLet s a b .== sLet s a b =: e .== e =: qed\n\+      \         Add (Num i) (Num j)         -> sAdd (sNum i) (sNum j) .== sAdd (sNum i) (sNum j) =: e .== e =: qed\n\+      \         _                           -> e .== e =: qed\n\+      \       "+  ======>+    cases+      [((.&&)+          (isLet e)+          ((.&&)+             (isNum (getLet_2 e)) (let i = getNum_1 (getLet_2 e) in i .> 0))+          ==>+            (let+               s = getLet_1 e+               b = getLet_3 e in+             let i = getNum_1 (getLet_2 e)+             in (sLet s (sNum i) b) .== sLet s (sNum i) b =: e .== e =: qed)),+       ((.&&)+          (isLet e)+          ((.&&)+             (sNot+                ((.&&)+                   (isNum (getLet_2 e)) (let i = getNum_1 (getLet_2 e) in i .> 0)))+             ((.&&)+                (isNum (getLet_2 e))+                (let i = getNum_1 (getLet_2 e) in i .> negate 5)))+          ==>+            (let+               s = getLet_1 e+               b = getLet_3 e in+             let i = getNum_1 (getLet_2 e)+             in (sLet s (sNum i) b) .== sLet s (sNum i) b =: e .== e =: qed)),+       ((.&&)+          (isLet e)+          ((.&&)+             (sNot+                ((.&&)+                   (isNum (getLet_2 e)) (let i = getNum_1 (getLet_2 e) in i .> 0)))+             ((.&&)+                (sNot+                   ((.&&)+                      (isNum (getLet_2 e))+                      (let i = getNum_1 (getLet_2 e) in i .> negate 5)))+                (isNum (getLet_2 e))))+          ==>+            (let+               s = getLet_1 e+               b = getLet_3 e in+             let i = getNum_1 (getLet_2 e)+             in (sLet s (sNum i) b) .== sLet s (sNum i) b =: e .== e =: qed)),+       ((.&&)+          (isLet e)+          ((.&&)+             (sNot+                ((.&&)+                   (isNum (getLet_2 e)) (let i = getNum_1 (getLet_2 e) in i .> 0)))+             ((.&&)+                (sNot+                   ((.&&)+                      (isNum (getLet_2 e))+                      (let i = getNum_1 (getLet_2 e) in i .> negate 5)))+                (sNot (isNum (getLet_2 e)))))+          ==>+            (let+               s = getLet_1 e+               a = getLet_2 e+               b = getLet_3 e+             in (sLet s a b) .== sLet s a b =: e .== e =: qed)),+       ((.&&) (isAdd e) ((.&&) (isNum (getAdd_1 e)) (isNum (getAdd_2 e)))+          ==>+            (let+               i = getNum_1 (getAdd_1 e)+               j = getNum_1 (getAdd_2 e)+             in+               (sAdd (sNum i) (sNum j)) .== sAdd (sNum i) (sNum j) =: e .== e+                 =: qed)),+       (sNot+          ((.||)+             ((.||)+                ((.||)+                   ((.||)+                      ((.&&)+                         (isLet e)+                         ((.&&)+                            (isNum (getLet_2 e)) (let i = getNum_1 (getLet_2 e) in i .> 0)))+                      ((.&&)+                         (isLet e)+                         ((.&&)+                            (sNot+                               ((.&&)+                                  (isNum (getLet_2 e)) (let i = getNum_1 (getLet_2 e) in i .> 0)))+                            ((.&&)+                               (isNum (getLet_2 e))+                               (let i = getNum_1 (getLet_2 e) in i .> negate 5)))))+                   ((.&&)+                      (isLet e)+                      ((.&&)+                         (sNot+                            ((.&&)+                               (isNum (getLet_2 e)) (let i = getNum_1 (getLet_2 e) in i .> 0)))+                         ((.&&)+                            (sNot+                               ((.&&)+                                  (isNum (getLet_2 e))+                                  (let i = getNum_1 (getLet_2 e) in i .> negate 5)))+                            (isNum (getLet_2 e))))))+                ((.&&)+                   (isLet e)+                   ((.&&)+                      (sNot+                         ((.&&)+                            (isNum (getLet_2 e)) (let i = getNum_1 (getLet_2 e) in i .> 0)))+                      ((.&&)+                         (sNot+                            ((.&&)+                               (isNum (getLet_2 e))+                               (let i = getNum_1 (getLet_2 e) in i .> negate 5)))+                         (sNot (isNum (getLet_2 e)))))))+             ((.&&)+                (isAdd e) ((.&&) (isNum (getAdd_1 e)) (isNum (getAdd_2 e)))))+          ==> (e .== e =: qed))]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase59.hs view
@@ -0,0 +1,25 @@+{-# LANGUAGE QuasiQuotes       #-}+{-# LANGUAGE DataKinds         #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions  #-}+{-# LANGUAGE TypeApplications  #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV+import Data.SBV.TP++-- Dump test: interleaved constructors (Let/Add/Let), linear processing+t :: TP (Proof (Forall "e" Expr -> SBool))+t = calc "t" (\(Forall @"e" (e :: SExpr)) -> e .== e) $ \e -> []+    |- [pCase| e of+         Let s a b | isZero a -> sLet s a b .== sLet s a b =: e .== e =: qed+         Add a b              -> sAdd a b .== sAdd a b =: e .== e =: qed+         Let s a b            -> sLet s a b .== sLet s a b =: e .== e =: qed+         Zero                 -> e .== e =: qed+         Num _                -> e .== e =: qed+         Var _                -> e .== e =: qed+       |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase59.stderr view
@@ -0,0 +1,35 @@+PCase59.hs:(18,15)-(25,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      pCase+      " e of\n\+      \         Let s a b | isZero a -> sLet s a b .== sLet s a b =: e .== e =: qed\n\+      \         Add a b              -> sAdd a b .== sAdd a b =: e .== e =: qed\n\+      \         Let s a b            -> sLet s a b .== sLet s a b =: e .== e =: qed\n\+      \         Zero                 -> e .== e =: qed\n\+      \         Num _                -> e .== e =: qed\n\+      \         Var _                -> e .== e =: qed\n\+      \       "+  ======>+    cases+      [((.&&) (isLet e) (let a = getLet_2 e in isZero a)+          ==>+            (let+               s = getLet_1 e+               a = getLet_2 e+               b = getLet_3 e+             in (sLet s a b) .== sLet s a b =: e .== e =: qed)),+       (isAdd e+          ==>+            (let+               a = getAdd_1 e+               b = getAdd_2 e+             in (sAdd a b) .== sAdd a b =: e .== e =: qed)),+       ((.&&) (isLet e) (sNot (let a = getLet_2 e in isZero a))+          ==>+            (let+               s = getLet_1 e+               a = getLet_2 e+               b = getLet_3 e+             in (sLet s a b) .== sLet s a b =: e .== e =: qed)),+       (isZero e ==> (e .== e =: qed)), (isNum e ==> (e .== e =: qed)),+       (isVar e ==> (e .== e =: qed))]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase60.hs view
@@ -0,0 +1,33 @@+{-# LANGUAGE QuasiQuotes       #-}+{-# LANGUAGE DataKinds         #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions  #-}+{-# LANGUAGE TypeApplications  #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV+import Data.SBV.TP++-- Dump test: linear processing stress test+--   - Interleaved constructors (Add / Num / Add)+--   - Nested patterns with guards+--   - Guard variables used in both guard and RHS+--   - Var with guard, then unguarded Var later+--   - Multiple guarded wildcards at the end+t :: TP (Proof (Forall "e" Expr -> SBool))+t = calc "t" (\(Forall @"e" (e :: SExpr)) -> e .== e) $ \e -> []+    |- [pCase| e of+         Add (Num i) b | i .> 0  -> sAdd (sNum i) b .== sAdd (sNum i) b =: e .== e =: qed+         Num i | i .> 0           -> sNum i .== sNum i =: e .== e =: qed+         Var s | s .== literal "hey" -> sVar s .== sVar s =: e .== e =: qed+         Add a b                  -> sAdd a b .== sAdd a b =: e .== e =: qed+         Num i                    -> sNum i .== sNum i =: e .== e =: qed+         Var s                    -> sVar s .== sVar s =: e .== e =: qed+         Zero                     -> e .== e =: qed+         _ | isLet e              -> e .== e =: qed+         _                        -> e .== e =: qed+       |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase60.stderr view
@@ -0,0 +1,120 @@+PCase60.hs:(23,15)-(33,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      pCase+      " e of\n\+      \         Add (Num i) b | i .> 0  -> sAdd (sNum i) b .== sAdd (sNum i) b =: e .== e =: qed\n\+      \         Num i | i .> 0           -> sNum i .== sNum i =: e .== e =: qed\n\+      \         Var s | s .== literal \"hey\" -> sVar s .== sVar s =: e .== e =: qed\n\+      \         Add a b                  -> sAdd a b .== sAdd a b =: e .== e =: qed\n\+      \         Num i                    -> sNum i .== sNum i =: e .== e =: qed\n\+      \         Var s                    -> sVar s .== sVar s =: e .== e =: qed\n\+      \         Zero                     -> e .== e =: qed\n\+      \         _ | isLet e              -> e .== e =: qed\n\+      \         _                        -> e .== e =: qed\n\+      \       "+  ======>+    cases+      [((.&&)+          (isAdd e)+          ((.&&)+             (isNum (getAdd_1 e)) (let i = getNum_1 (getAdd_1 e) in i .> 0))+          ==>+            (let b = getAdd_2 e in+             let i = getNum_1 (getAdd_1 e)+             in (sAdd (sNum i) b) .== sAdd (sNum i) b =: e .== e =: qed)),+       ((.&&) (isNum e) (let i = getNum_1 e in i .> 0)+          ==> (let i = getNum_1 e in (sNum i) .== sNum i =: e .== e =: qed)),+       ((.&&) (isVar e) (let s = getVar_1 e in s .== literal "hey")+          ==> (let s = getVar_1 e in (sVar s) .== sVar s =: e .== e =: qed)),+       ((.&&)+          (isAdd e)+          (sNot+             ((.&&)+                (isNum (getAdd_1 e)) (let i = getNum_1 (getAdd_1 e) in i .> 0)))+          ==>+            (let+               a = getAdd_1 e+               b = getAdd_2 e+             in (sAdd a b) .== sAdd a b =: e .== e =: qed)),+       ((.&&) (isNum e) (sNot (let i = getNum_1 e in i .> 0))+          ==> (let i = getNum_1 e in (sNum i) .== sNum i =: e .== e =: qed)),+       ((.&&) (isVar e) (sNot (let s = getVar_1 e in s .== literal "hey"))+          ==> (let s = getVar_1 e in (sVar s) .== sVar s =: e .== e =: qed)),+       (isZero e ==> (e .== e =: qed)),+       ((.&&)+          (sNot+             ((.||)+                ((.||)+                   ((.||)+                      ((.||)+                         ((.||)+                            ((.||)+                               ((.&&)+                                  (isAdd e)+                                  ((.&&)+                                     (isNum (getAdd_1 e))+                                     (let i = getNum_1 (getAdd_1 e) in i .> 0)))+                               ((.&&) (isNum e) (let i = getNum_1 e in i .> 0)))+                            ((.&&) (isVar e) (let s = getVar_1 e in s .== literal "hey")))+                         ((.&&)+                            (isAdd e)+                            (sNot+                               ((.&&)+                                  (isNum (getAdd_1 e)) (let i = getNum_1 (getAdd_1 e) in i .> 0)))))+                      ((.&&) (isNum e) (sNot (let i = getNum_1 e in i .> 0))))+                   ((.&&)+                      (isVar e) (sNot (let s = getVar_1 e in s .== literal "hey"))))+                (isZero e)))+          (isLet e)+          ==> (e .== e =: qed)),+       (sNot+          ((.||)+             ((.||)+                ((.||)+                   ((.||)+                      ((.||)+                         ((.||)+                            ((.||)+                               ((.&&)+                                  (isAdd e)+                                  ((.&&)+                                     (isNum (getAdd_1 e))+                                     (let i = getNum_1 (getAdd_1 e) in i .> 0)))+                               ((.&&) (isNum e) (let i = getNum_1 e in i .> 0)))+                            ((.&&) (isVar e) (let s = getVar_1 e in s .== literal "hey")))+                         ((.&&)+                            (isAdd e)+                            (sNot+                               ((.&&)+                                  (isNum (getAdd_1 e)) (let i = getNum_1 (getAdd_1 e) in i .> 0)))))+                      ((.&&) (isNum e) (sNot (let i = getNum_1 e in i .> 0))))+                   ((.&&)+                      (isVar e) (sNot (let s = getVar_1 e in s .== literal "hey"))))+                (isZero e))+             ((.&&)+                (sNot+                   ((.||)+                      ((.||)+                         ((.||)+                            ((.||)+                               ((.||)+                                  ((.||)+                                     ((.&&)+                                        (isAdd e)+                                        ((.&&)+                                           (isNum (getAdd_1 e))+                                           (let i = getNum_1 (getAdd_1 e) in i .> 0)))+                                     ((.&&) (isNum e) (let i = getNum_1 e in i .> 0)))+                                  ((.&&) (isVar e) (let s = getVar_1 e in s .== literal "hey")))+                               ((.&&)+                                  (isAdd e)+                                  (sNot+                                     ((.&&)+                                        (isNum (getAdd_1 e))+                                        (let i = getNum_1 (getAdd_1 e) in i .> 0)))))+                            ((.&&) (isNum e) (sNot (let i = getNum_1 e in i .> 0))))+                         ((.&&)+                            (isVar e) (sNot (let s = getVar_1 e in s .== literal "hey"))))+                      (isZero e)))+                (isLet e)))+          ==> (e .== e =: qed))]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase61.hs view
@@ -0,0 +1,20 @@+{-# LANGUAGE QuasiQuotes         #-}+{-# LANGUAGE DataKinds           #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions    #-}+{-# LANGUAGE TypeApplications    #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Test: pCase with Maybe+module T where++import Data.SBV+import Data.SBV.TP++t :: TP (Proof (Forall "m" (Maybe Integer) -> SBool))+t = calc "t" (\(Forall @"m" (m :: SMaybe Integer)) -> m .== m) $ \m -> []+    |- [pCase| m of+         Nothing -> m .== m =: qed+         Just _  -> m .== m =: qed+       |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase61.stderr view
@@ -0,0 +1,11 @@+PCase61.hs:(17,15)-(20,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      pCase+      " m of\n\+      \         Nothing -> m .== m =: qed\n\+      \         Just _  -> m .== m =: qed\n\+      \       "+  ======>+    cases+      [(Data.SBV.Maybe.isNothing m ==> (m .== m =: qed)),+       (Data.SBV.Maybe.isJust m ==> (m .== m =: qed))]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase62.hs view
@@ -0,0 +1,20 @@+{-# LANGUAGE QuasiQuotes         #-}+{-# LANGUAGE DataKinds           #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions    #-}+{-# LANGUAGE TypeApplications    #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Test: pCase with Either+module T where++import Data.SBV+import Data.SBV.TP++t :: TP (Proof (Forall "e" (Either Integer Bool) -> SBool))+t = calc "t" (\(Forall @"e" (e :: SEither Integer Bool)) -> e .== e) $ \e -> []+    |- [pCase| e of+         Left _  -> e .== e =: qed+         Right _ -> e .== e =: qed+       |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase62.stderr view
@@ -0,0 +1,11 @@+PCase62.hs:(17,15)-(20,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      pCase+      " e of\n\+      \         Left _  -> e .== e =: qed\n\+      \         Right _ -> e .== e =: qed\n\+      \       "+  ======>+    cases+      [(Data.SBV.Either.isLeft e ==> (e .== e =: qed)),+       (Data.SBV.Either.isRight e ==> (e .== e =: qed))]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase63.hs view
@@ -0,0 +1,22 @@+{-# LANGUAGE QuasiQuotes         #-}+{-# LANGUAGE DataKinds           #-}+{-# LANGUAGE OverloadedLists     #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions    #-}+{-# LANGUAGE TypeApplications    #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Test: pCase with List+module T where++import Prelude hiding (null, head, tail)+import Data.SBV+import Data.SBV.TP++t :: TP (Proof (Forall "xs" [Integer] -> SBool))+t = calc "t" (\(Forall @"xs" (xs :: SList Integer)) -> xs .== xs) $ \xs -> []+    |- [pCase| xs of+         []    -> xs .== xs =: qed+         _ : _ -> xs .== xs =: qed+       |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase63.stderr view
@@ -0,0 +1,14 @@+PCase63.hs:(19,15)-(22,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      pCase+      " xs of\n\+      \         []    -> xs .== xs =: qed\n\+      \         _ : _ -> xs .== xs =: qed\n\+      \       "+  ======>+    cases+      [(Data.SBV.List.null xs ==> (xs .== xs =: qed)),+       ((.&&)+          (sNot (Data.SBV.List.null xs))+          ((.===) xs (Data.SBV.List.head xs .: Data.SBV.List.tail xs))+          ==> (xs .== xs =: qed))]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase64.hs view
@@ -0,0 +1,19 @@+{-# LANGUAGE QuasiQuotes         #-}+{-# LANGUAGE DataKinds           #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions    #-}+{-# LANGUAGE TypeApplications    #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Test: pCase with Tuple2+module T where++import Data.SBV+import Data.SBV.TP++t :: TP (Proof (Forall "p" (Integer, Bool) -> SBool))+t = calc "t" (\(Forall @"p" (p :: STuple Integer Bool)) -> p .== p) $ \p -> []+    |- [pCase| p of+         (_, _) -> p .== p =: qed+       |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase64.stderr view
@@ -0,0 +1,8 @@+PCase64.hs:(17,15)-(19,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      pCase+      " p of\n\+      \         (_, _) -> p .== p =: qed\n\+      \       "+  ======>+    cases [(sTrue ==> (p .== p =: qed))]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase65.hs view
@@ -0,0 +1,21 @@+{-# LANGUAGE QuasiQuotes         #-}+{-# LANGUAGE DataKinds           #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions    #-}+{-# LANGUAGE TypeApplications    #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Test: pCase with Maybe, guards on Just+module T where++import Data.SBV+import Data.SBV.TP++t :: TP (Proof (Forall "m" (Maybe Integer) -> SBool))+t = calc "t" (\(Forall @"m" (m :: SMaybe Integer)) -> m .== m) $ \m -> []+    |- [pCase| m of+         Nothing          -> m .== m =: qed+         Just x | x .> 0  -> m .== m =: qed+                | sTrue    -> m .== m =: qed+       |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase65.stderr view
@@ -0,0 +1,19 @@+PCase65.hs:(17,15)-(21,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      pCase+      " m of\n\+      \         Nothing          -> m .== m =: qed\n\+      \         Just x | x .> 0  -> m .== m =: qed\n\+      \                | sTrue    -> m .== m =: qed\n\+      \       "+  ======>+    cases+      [(Data.SBV.Maybe.isNothing m ==> (m .== m =: qed)),+       ((.&&)+          (Data.SBV.Maybe.isJust m)+          (let x = Data.SBV.Maybe.getJust_1 m in x .> 0)+          ==> (m .== m =: qed)),+       ((.&&)+          (Data.SBV.Maybe.isJust m)+          (sNot (let x = Data.SBV.Maybe.getJust_1 m in x .> 0))+          ==> (m .== m =: qed))]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase66.hs view
@@ -0,0 +1,23 @@+{-# LANGUAGE QuasiQuotes         #-}+{-# LANGUAGE DataKinds           #-}+{-# LANGUAGE OverloadedLists     #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions    #-}+{-# LANGUAGE TypeApplications    #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Test: pCase with List, guards and wildcard+module T where++import Prelude hiding (null, head, tail)+import Data.SBV+import Data.SBV.TP++t :: TP (Proof (Forall "xs" [Integer] -> SBool))+t = calc "t" (\(Forall @"xs" (xs :: SList Integer)) -> xs .== xs) $ \xs -> []+    |- [pCase| xs of+         []             -> xs .== xs =: qed+         y : _ | y .> 0 -> xs .== xs =: qed+         _              -> xs .== xs =: qed+       |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase66.stderr view
@@ -0,0 +1,26 @@+PCase66.hs:(19,15)-(23,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      pCase+      " xs of\n\+      \         []             -> xs .== xs =: qed\n\+      \         y : _ | y .> 0 -> xs .== xs =: qed\n\+      \         _              -> xs .== xs =: qed\n\+      \       "+  ======>+    cases+      [(Data.SBV.List.null xs ==> (xs .== xs =: qed)),+       ((.&&)+          (sNot (Data.SBV.List.null xs))+          ((.&&)+             ((.===) xs (Data.SBV.List.head xs .: Data.SBV.List.tail xs))+             (let y = Data.SBV.List.head xs in y .> 0))+          ==> (xs .== xs =: qed)),+       (sNot+          ((.||)+             (Data.SBV.List.null xs)+             ((.&&)+                (sNot (Data.SBV.List.null xs))+                ((.&&)+                   ((.===) xs (Data.SBV.List.head xs .: Data.SBV.List.tail xs))+                   (let y = Data.SBV.List.head xs in y .> 0))))+          ==> (xs .== xs =: qed))]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase67.hs view
@@ -0,0 +1,24 @@+{-# LANGUAGE QuasiQuotes         #-}+{-# LANGUAGE DataKinds           #-}+{-# LANGUAGE OverloadedLists     #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions    #-}+{-# LANGUAGE TypeApplications    #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Test: pCase with List, nested cons pattern with bindings+module T where++import Prelude hiding (null, head, tail, length)+import Data.SBV+import Data.SBV.List (length)+import Data.SBV.TP++t :: TP (Proof (Forall "xs" [Integer] -> SBool))+t = calc "t" (\(Forall @"xs" (xs :: SList Integer)) -> length xs .>= 0) $ \xs -> []+    |- [pCase| xs of+         []              -> length xs .>= 0 =: qed+         _ : (_ : _)     -> length xs .>= 0 =: qed+         _ : _           -> length xs .>= 0 =: qed+       |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase67.stderr view
@@ -0,0 +1,34 @@+PCase67.hs:(20,15)-(24,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      pCase+      " xs of\n\+      \         []              -> length xs .>= 0 =: qed\n\+      \         _ : (_ : _)     -> length xs .>= 0 =: qed\n\+      \         _ : _           -> length xs .>= 0 =: qed\n\+      \       "+  ======>+    cases+      [(Data.SBV.List.null xs ==> ((length xs) .>= 0 =: qed)),+       ((.&&)+          (sNot (Data.SBV.List.null xs))+          ((.&&)+             ((.===) xs (Data.SBV.List.head xs .: Data.SBV.List.tail xs))+             ((.&&)+                (sNot (Data.SBV.List.null (Data.SBV.List.tail xs)))+                ((.===)+                   (Data.SBV.List.tail xs)+                   (Data.SBV.List.head (Data.SBV.List.tail xs)+                      .: Data.SBV.List.tail (Data.SBV.List.tail xs)))))+          ==> ((length xs) .>= 0 =: qed)),+       ((.&&)+          (sNot (Data.SBV.List.null xs))+          ((.&&)+             ((.===) xs (Data.SBV.List.head xs .: Data.SBV.List.tail xs))+             (sNot+                ((.&&)+                   (sNot (Data.SBV.List.null (Data.SBV.List.tail xs)))+                   ((.===)+                      (Data.SBV.List.tail xs)+                      (Data.SBV.List.head (Data.SBV.List.tail xs)+                         .: Data.SBV.List.tail (Data.SBV.List.tail xs))))))+          ==> ((length xs) .>= 0 =: qed))]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase68.hs view
@@ -0,0 +1,20 @@+{-# LANGUAGE QuasiQuotes         #-}+{-# LANGUAGE DataKinds           #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions    #-}+{-# LANGUAGE TypeApplications    #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Test: pCase with Bool constructor patterns+module T where++import Data.SBV+import Data.SBV.TP++t :: TP (Proof (Forall "b" Bool -> SBool))+t = calc "t" (\(Forall @"b" (b :: SBool)) -> b .== b) $ \b -> []+    |- [pCase| b of+         True  -> b .== b =: qed+         False -> b .== b =: qed+       |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase68.stderr view
@@ -0,0 +1,9 @@+PCase68.hs:(17,15)-(20,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      pCase+      " b of\n\+      \         True  -> b .== b =: qed\n\+      \         False -> b .== b =: qed\n\+      \       "+  ======>+    cases [(b ==> (b .== b =: qed)), (sNot b ==> (b .== b =: qed))]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase69.hs view
@@ -0,0 +1,21 @@+{-# LANGUAGE QuasiQuotes         #-}+{-# LANGUAGE DataKinds           #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions    #-}+{-# LANGUAGE TypeApplications    #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Test: pCase with Bool, guard on True+module T where++import Data.SBV+import Data.SBV.TP++t :: TP (Proof (Forall "b" Bool -> Forall "x" Integer -> SBool))+t = calc "t" (\(Forall @"b" (b :: SBool)) (Forall @"x" (x :: SInteger)) -> b .|| sNot b) $ \b x -> []+    |- [pCase| b of+         True  | x .> 0 -> b .|| sNot b =: qed+               | sTrue  -> b .|| sNot b =: qed+         False           -> b .|| sNot b =: qed+       |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase69.stderr view
@@ -0,0 +1,19 @@+PCase69.hs:(17,15)-(21,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      pCase+      " b of\n\+      \         True  | x .> 0 -> b .|| sNot b =: qed\n\+      \               | sTrue  -> b .|| sNot b =: qed\n\+      \         False           -> b .|| sNot b =: qed\n\+      \       "+  ======>+    cases+      [((.&&) b (x .> 0) ==> (b .|| sNot b =: qed)),+       ((.&&) b (sNot (x .> 0)) ==> (b .|| sNot b =: qed)),+       (sNot b ==> (b .|| sNot b =: qed))]+PCase69.hs:16:57: error: [GHC-40910] [-Wunused-matches, Werror=unused-matches]+    Defined but not used: x+   |+16 | t = calc "t" (\(Forall @"b" (b :: SBool)) (Forall @"x" (x :: SInteger)) -> b .|| sNot b) $ \b x -> []+   |                                                         ^+
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase70.hs view
@@ -0,0 +1,21 @@+{-# LANGUAGE QuasiQuotes         #-}+{-# LANGUAGE DataKinds           #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions    #-}+{-# LANGUAGE TypeApplications    #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Test: pCase with Integer literal patterns and wildcard+module T where++import Data.SBV+import Data.SBV.TP++t :: TP (Proof (Forall "x" Integer -> SBool))+t = calc "t" (\(Forall @"x" (x :: SInteger)) -> x .== x) $ \x -> []+    |- [pCase| x of+         0 -> x .== x =: qed+         1 -> x .== x =: qed+         _ -> x .== x =: qed+       |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase70.stderr view
@@ -0,0 +1,14 @@+PCase70.hs:(17,15)-(21,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      pCase+      " x of\n\+      \         0 -> x .== x =: qed\n\+      \         1 -> x .== x =: qed\n\+      \         _ -> x .== x =: qed\n\+      \       "+  ======>+    cases+      [((.==) x 0 ==> (x .== x =: qed)),+       ((.&&) (sNot ((.==) x 0)) ((.==) x 1) ==> (x .== x =: qed)),+       (sNot ((.||) ((.==) x 0) ((.&&) (sNot ((.==) x 0)) ((.==) x 1)))+          ==> (x .== x =: qed))]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase71.hs view
@@ -0,0 +1,21 @@+{-# LANGUAGE QuasiQuotes         #-}+{-# LANGUAGE DataKinds           #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions    #-}+{-# LANGUAGE TypeApplications    #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Test: pCase with Char literal patterns and wildcard+module T where++import Data.SBV+import Data.SBV.TP++t :: TP (Proof (Forall "c" Char -> SBool))+t = calc "t" (\(Forall @"c" (c :: SChar)) -> c .== c) $ \c -> []+    |- [pCase| c of+         'a' -> c .== c =: qed+         'b' -> c .== c =: qed+         _   -> c .== c =: qed+       |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase71.stderr view
@@ -0,0 +1,18 @@+PCase71.hs:(17,15)-(21,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      pCase+      " c of\n\+      \         'a' -> c .== c =: qed\n\+      \         'b' -> c .== c =: qed\n\+      \         _   -> c .== c =: qed\n\+      \       "+  ======>+    cases+      [((.==) c (literal 'a') ==> (c .== c =: qed)),+       ((.&&) (sNot ((.==) c (literal 'a'))) ((.==) c (literal 'b'))+          ==> (c .== c =: qed)),+       (sNot+          ((.||)+             ((.==) c (literal 'a'))+             ((.&&) (sNot ((.==) c (literal 'a'))) ((.==) c (literal 'b'))))+          ==> (c .== c =: qed))]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase72.hs view
@@ -0,0 +1,20 @@+{-# LANGUAGE QuasiQuotes         #-}+{-# LANGUAGE DataKinds           #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions    #-}+{-# LANGUAGE TypeApplications    #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Test: pCase with String literal patterns and wildcard+module T where++import Data.SBV+import Data.SBV.TP++t :: TP (Proof (Forall "s" String -> SBool))+t = calc "t" (\(Forall @"s" (s :: SString)) -> s .== s) $ \s -> []+    |- [pCase| s of+         "hello" -> s .== s =: qed+         _       -> s .== s =: qed+       |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase72.stderr view
@@ -0,0 +1,11 @@+PCase72.hs:(17,15)-(20,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      pCase+      " s of\n\+      \         \"hello\" -> s .== s =: qed\n\+      \         _       -> s .== s =: qed\n\+      \       "+  ======>+    cases+      [((.==) s (literal "hello") ==> (s .== s =: qed)),+       (sNot ((.==) s (literal "hello")) ==> (s .== s =: qed))]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase73.hs view
@@ -0,0 +1,21 @@+{-# LANGUAGE QuasiQuotes         #-}+{-# LANGUAGE DataKinds           #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions    #-}+{-# LANGUAGE TypeApplications    #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Test: pCase with Integer variable binding and guard+module T where++import Data.SBV+import Data.SBV.TP++t :: TP (Proof (Forall "x" Integer -> SBool))+t = calc "t" (\(Forall @"x" (x :: SInteger)) -> x .== x) $ \x -> []+    |- [pCase| x of+         0         -> x .== x =: qed+         n | n .> 0 -> x .== x =: qed+           | sTrue  -> x .== x =: qed+       |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase73.stderr view
@@ -0,0 +1,17 @@+PCase73.hs:(17,15)-(21,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      pCase+      " x of\n\+      \         0         -> x .== x =: qed\n\+      \         n | n .> 0 -> x .== x =: qed\n\+      \           | sTrue  -> x .== x =: qed\n\+      \       "+  ======>+    cases+      [((.==) x 0 ==> (x .== x =: qed)),+       ((.&&) (sNot ((.==) x 0)) (let n = x in n .> 0)+          ==> (x .== x =: qed)),+       (sNot+          ((.||)+             ((.==) x 0) ((.&&) (sNot ((.==) x 0)) (let n = x in n .> 0)))+          ==> (x .== x =: qed))]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase74.hs view
@@ -0,0 +1,20 @@+{-# LANGUAGE QuasiQuotes         #-}+{-# LANGUAGE DataKinds           #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions    #-}+{-# LANGUAGE TypeApplications    #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Test: pCase with Integer, no wildcard (only literals) — should fail with non-exhaustive+module T where++import Data.SBV+import Data.SBV.TP++t :: TP (Proof (Forall "x" Integer -> SBool))+t = calc "t" (\(Forall @"x" (x :: SInteger)) -> x .== x) $ \x -> []+    |- [pCase| x of+         0 -> x .== x =: qed+         1 -> x .== x =: qed+       |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase74.stderr view
@@ -0,0 +1,14 @@+PCase74.hs:17:15: error: [GHC-39584]+    " PCase74.hs:18:10: pCase: Non-exhaustive pattern match.+        All branches are guarded; add an unguarded wildcard or variable+        as the last branch to ensure all cases are covered.++    " In the quasi-quotation:+        [pCase| x of+         0 -> x .== x =: qed+         1 -> x .== x =: qed+       |]+   |+17 |     |- [pCase| x of+   |               ^^^^^...+
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase75.hs view
@@ -0,0 +1,20 @@+{-# LANGUAGE QuasiQuotes         #-}+{-# LANGUAGE DataKinds           #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions    #-}+{-# LANGUAGE TypeApplications    #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Test: pCase with Bool non-exhaustive (only True)+-- (sCase would reject as non-exhaustive; pCase is fine)+module T where++import Data.SBV+import Data.SBV.TP++t :: TP (Proof (Forall "b" Bool -> SBool))+t = calc "t" (\(Forall @"b" (b :: SBool)) -> b .== b) $ \b -> []+    |- [pCase| b of+         True -> b .== b =: qed+       |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase75.stderr view
@@ -0,0 +1,8 @@+PCase75.hs:(18,15)-(20,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      pCase+      " b of\n\+      \         True -> b .== b =: qed\n\+      \       "+  ======>+    cases [(b ==> (b .== b =: qed))]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase76.hs view
@@ -0,0 +1,21 @@+{-# LANGUAGE QuasiQuotes         #-}+{-# LANGUAGE DataKinds           #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions    #-}+{-# LANGUAGE TypeApplications    #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Test: pCase with negative integer literal+module T where++import Data.SBV+import Data.SBV.TP++t :: TP (Proof (Forall "x" Integer -> SBool))+t = calc "t" (\(Forall @"x" (x :: SInteger)) -> x .== x) $ \x -> []+    |- [pCase| x of+         0    -> x .== x =: qed+         (-1) -> x .== x =: qed+         _    -> x .== x =: qed+       |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase76.stderr view
@@ -0,0 +1,14 @@+PCase76.hs:(17,15)-(21,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      pCase+      " x of\n\+      \         0    -> x .== x =: qed\n\+      \         (-1) -> x .== x =: qed\n\+      \         _    -> x .== x =: qed\n\+      \       "+  ======>+    cases+      [((.==) x 0 ==> (x .== x =: qed)),+       ((.&&) (sNot ((.==) x 0)) ((.==) x (-1)) ==> (x .== x =: qed)),+       (sNot ((.||) ((.==) x 0) ((.&&) (sNot ((.==) x 0)) ((.==) x (-1))))+          ==> (x .== x =: qed))]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase77.hs view
@@ -0,0 +1,30 @@+{-# LANGUAGE QuasiQuotes         #-}+{-# LANGUAGE DataKinds           #-}+{-# LANGUAGE ScopedTypeVariables #-}+{-# LANGUAGE TypeAbstractions    #-}+{-# LANGUAGE TypeApplications    #-}++{-# OPTIONS_GHC -Wall -Werror -Wno-name-shadowing -ddump-splices #-}++-- Positive: Scoping regression test for pCase. Pattern var 'k' from 'Num k' is+-- used in one branch of a nested case on SBool, while a sibling branch shadows+-- 'k' with a let binding. Old scope-unaware freeVars would drop the accessor+-- binding for 'k', causing a compilation error. See also SCase107 for the sCase+-- counterpart.+module T where++import Expr+import Data.SBV+import Data.SBV.TP++t :: TP (Proof (Forall "e" Expr -> Forall "b" Bool -> SBool))+t = calc "t" (\(Forall @"e" (e :: SExpr)) (Forall @"b" (_ :: SBool)) -> e .== e) $ \e b -> []+    |- [pCase| e of+         Zero    -> e .== e =: qed+         Num k   -> case b of+                      True  -> let k = (0 :: SInteger) in k .== k =: e .== e =: qed+                      False -> k .>= 0 .|| e .== e =: sTrue =: qed+         Var _   -> e .== e =: qed+         Add _ _ -> e .== e =: qed+         Let _ _ _ -> e .== e =: qed+       |]
+ SBVTestSuite/TestSuite/CompileTests/PCase/PCase77.stderr view
@@ -0,0 +1,24 @@+PCase77.hs:(22,15)-(30,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      pCase+      " e of\n\+      \         Zero    -> e .== e =: qed\n\+      \         Num k   -> case b of\n\+      \                      True  -> let k = (0 :: SInteger) in k .== k =: e .== e =: qed\n\+      \                      False -> k .>= 0 .|| e .== e =: sTrue =: qed\n\+      \         Var _   -> e .== e =: qed\n\+      \         Add _ _ -> e .== e =: qed\n\+      \         Let _ _ _ -> e .== e =: qed\n\+      \       "+  ======>+    cases+      [(isZero e ==> (e .== e =: qed)),+       (isNum e+          ==>+            (let k = getNum_1 e+             in+               cases+                 [(b ==> (let k = (0 :: SInteger) in k .== k =: e .== e =: qed)),+                  (sNot b ==> (k .>= 0 .|| e .== e =: sTrue =: qed))])),+       (isVar e ==> (e .== e =: qed)), (isAdd e ==> (e .== e =: qed)),+       (isLet e ==> (e .== e =: qed))]
+ SBVTestSuite/TestSuite/CompileTests/SCase.hs view
@@ -0,0 +1,19 @@+-----------------------------------------------------------------------------+-- |+-- Module    : TestSuite.CompileTests.SCase+-- Copyright : (c) Levent Erkok+-- License   : BSD3+-- Maintainer: erkokl@gmail.com+-- Stability : experimental+--+-- Testing TH messages+-----------------------------------------------------------------------------++{-# OPTIONS_GHC -Wall -Werror #-}++module TestSuite.CompileTests.SCase(tests) where++import Utils.SBVTestFramework++tests :: IO TestTree+tests = testGroup "THTests.SCase" <$> mkCompileTestGlob "SBVTestSuite/TestSuite/CompileTests/SCase/SCase*.hs"
+ SBVTestSuite/TestSuite/CompileTests/SCase/Expr.hs view
@@ -0,0 +1,18 @@+{-# LANGUAGE FlexibleInstances #-}+{-# LANGUAGE TemplateHaskell   #-}+{-# LANGUAGE TypeApplications  #-}++{-# OPTIONS_GHC -Wall -Werror #-}++module Expr where++import Data.SBV++data Expr = Zero+          | Num Integer+          | Var String+          | Add Expr Expr+          | Let String Expr Expr+          deriving Show++mkSymbolic [''Expr]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase01.hs view
@@ -0,0 +1,11 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV++t :: SExpr -> SInteger+t e = [sCase| e of|]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase01.stderr view
@@ -0,0 +1,8 @@+SCase01.hs:11:14: error: [GHC-39584]+    " SCase01.hs:11:19: Parse error: EOF++    " In the quasi-quotation: [sCase| e of|]+   |+11 | t e = [sCase| e of|]+   |              ^^^^^^^+
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase02.hs view
@@ -0,0 +1,14 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV++t :: SExpr -> SInteger+t e = [sCase| e of+        Zero  -> 0+        Num i -> i+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase02.stderr view
@@ -0,0 +1,17 @@+SCase02.hs:11:14: error: [GHC-39584]+    " sCase: Pattern match(es) are non-exhaustive.+        Not matched     : Var+        Patterns of type: Expr+        Must match each : Zero, Num, Var, Add, Let++      You can use a '_' to match multiple cases.++    " In the quasi-quotation:+        [sCase| e of+        Zero  -> 0+        Num i -> i+      |]+   |+11 | t e = [sCase| e of+   |              ^^^^^...+
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase03.hs view
@@ -0,0 +1,17 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV++t :: SExpr -> SInteger+t e = [sCase| e of+        Zero  -> 0+        Num _ _ -> i+        Var _ -> 0+        Add _ _ -> 2+        Let _ _ _ -> 3+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase03.stderr view
@@ -0,0 +1,19 @@+SCase03.hs:11:14: error: [GHC-39584]+    " SCase03.hs:13:9-15: sCase: Arity mismatch.+        Type       : Expr+        Constructor: Num+        Expected   : 1+        Given      : 2++    " In the quasi-quotation:+        [sCase| e of+        Zero  -> 0+        Num _ _ -> i+        Var _ -> 0+        Add _ _ -> 2+        Let _ _ _ -> 3+      |]+   |+11 | t e = [sCase| e of+   |              ^^^^^...+
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase04.hs view
@@ -0,0 +1,16 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV++-- Rejected at the top level+[sCase| e of+        Zero  -> 0+        Num i -> i+      |]++{- HLint ignore module "Unused LANGUAGE pragma" -}
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase04.stderr view
@@ -0,0 +1,6 @@+SCase04.hs:11:8: error: [GHC-39584]+    sCase: not usable in declaration context+   |+11 | [sCase| e of+   |        ^^^^^...+
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase05.hs view
@@ -0,0 +1,12 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV++-- bad syntax+t :: SExpr -> SInteger+t e = [sCase| e + 1|]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase05.stderr view
@@ -0,0 +1,8 @@+SCase05.hs:12:14: error: [GHC-39584]+    " SCase05.hs:12:20: Parse error: EOF++    " In the quasi-quotation: [sCase| e + 1|]+   |+12 | t e = [sCase| e + 1|]+   |              ^^^^^^^^+
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase06.hs view
@@ -0,0 +1,12 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV++-- Unknown constructor+t :: SExpr -> SInteger+t e = [sCase| e of FooBar _ -> 1|]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase06.stderr view
@@ -0,0 +1,11 @@+SCase06.hs:12:14: error: [GHC-39584]+    " sCase: Unknown constructor: FooBar++        Cannot find this constructor in scope.+        Make sure the type is declared and mkSymbolic is called.++    " In the quasi-quotation: [sCase| e of FooBar _ -> 1|]+   |+12 | t e = [sCase| e of FooBar _ -> 1|]+   |              ^^^^^^^^^^^^^^^^^^^^^+
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase07.hs view
@@ -0,0 +1,17 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV++t :: SExpr -> SInteger+t e = [sCase| e of+               Zero          -> 0+               Num i | Just 1 <- Just i         -> i+               Var s        -> ite (s .== "a") 1 2+               Add a b       -> t e + t b+               Let _   _a  b -> t b+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase07.stderr view
@@ -0,0 +1,16 @@+SCase07.hs:11:14: error: [GHC-39584]+    " sCase/pCase: Pattern guards are not supported: +        Just 1 <- Just i++    " In the quasi-quotation:+        [sCase| e of+               Zero          -> 0+               Num i | Just 1 <- Just i         -> i+               Var s        -> ite (s .== "a") 1 2+               Add a b       -> t e + t b+               Let _   _a  b -> t b+      |]+   |+11 | t e = [sCase| e of+   |              ^^^^^...+
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase08.hs view
@@ -0,0 +1,17 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV++t :: SExpr -> SInteger+t e = [sCase| e of+               Zero          -> 0+               Num i | Just 1 <- Just i         -> i+               Var s        -> ite (s .== "a") 1 else 2+               Add a b       -> t e + t b+               Let _   _a  b -> t b+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase08.stderr view
@@ -0,0 +1,15 @@+SCase08.hs:11:14: error: [GHC-39584]+    " SCase08.hs:14:50: Parse error: else++    " In the quasi-quotation:+        [sCase| e of+               Zero          -> 0+               Num i | Just 1 <- Just i         -> i+               Var s        -> ite (s .== "a") 1 else 2+               Add a b       -> t e + t b+               Let _   _a  b -> t b+      |]+   |+11 | t e = [sCase| e of+   |              ^^^^^...+
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase09.hs view
@@ -0,0 +1,17 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV++t :: SExpr -> SInteger+t e = [sCase| e of+               Zero          -> 0+               Num i         -> i+               Viar s         -> ite (s .== "a") 1 2+               Add a b       -> t e + t b+               Let _   _a  b -> t b+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase09.stderr view
@@ -0,0 +1,14 @@+SCase09.hs:11:14: error: [GHC-39584]+    " SCase09.hs:14:16-21: sCase/pCase: Not in scope: data constructor: Viar+    " In the quasi-quotation:+        [sCase| e of+               Zero          -> 0+               Num i         -> i+               Viar s         -> ite (s .== "a") 1 2+               Add a b       -> t e + t b+               Let _   _a  b -> t b+      |]+   |+11 | t e = [sCase| e of+   |              ^^^^^...+
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase10.hs view
@@ -0,0 +1,18 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV++t :: SExpr -> SInteger+t e = [sCase| e of+               Zero          -> 0+               Num k         -> k+               Var s         -> ite (s .== literal "a") 1 2+               Add (Num i) j -> i + t j+               Add a b       -> t a + t b+               Let _   _a  b -> t b+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase10.stderr view
@@ -0,0 +1,28 @@+SCase10.hs:(11,14)-(18,8): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " e of\n\+      \               Zero          -> 0\n\+      \               Num k         -> k\n\+      \               Var s         -> ite (s .== literal \"a\") 1 2\n\+      \               Add (Num i) j -> i + t j\n\+      \               Add a b       -> t a + t b\n\+      \               Let _   _a  b -> t b\n\+      \      "+  ======>+    ite+      (isZero e) 0+      (ite+         (isNum e) ((\ k -> k) (getNum_1 e))+         (ite+            (isVar e) ((\ s -> ite (s .== literal "a") 1 2) (getVar_1 e))+            (ite+               ((.&&)+                  (isAdd e)+                  ((\ _ j -> const (isNum (getAdd_1 e)) j)+                     (getAdd_1 e) (getAdd_2 e)))+               ((\ _ j -> let i = getNum_1 (getAdd_1 e) in i + t j)+                  (getAdd_1 e) (getAdd_2 e))+               (ite+                  (isAdd e) ((\ a b -> (t a) + t b) (getAdd_1 e) (getAdd_2 e))+                  ((\ _ _a b -> t b) (getLet_1 e) (getLet_2 e) (getLet_3 e))))))
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase100.hs view
@@ -0,0 +1,16 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Positive: Top-level as-pattern on Maybe+module T where++import Data.SBV++t :: SMaybe Integer -> SInteger+t m = [sCase| m of+               whole@(Just v) -> v + case whole of+                                       Just w  -> w+                                       Nothing -> 0+               Nothing        -> 0+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase100.stderr view
@@ -0,0 +1,16 @@+SCase100.hs:(11,14)-(16,8): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " m of\n\+      \               whole@(Just v) -> v + case whole of\n\+      \                                       Just w  -> w\n\+      \                                       Nothing -> 0\n\+      \               Nothing        -> 0\n\+      \      "+  ======>+    Data.SBV.Maybe.sCaseMaybe+      0+      (\ v+         -> let whole = m+            in v + Data.SBV.Maybe.sCaseMaybe 0 (\ w -> w) whole)+      m
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase101.hs view
@@ -0,0 +1,17 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Positive: Nested as-pattern on Either inside Maybe+module T where++import Data.SBV++t :: SMaybe (Either Integer Bool) -> SInteger+t m = [sCase| m of+               Just inner@(Left v)  -> v + case inner of+                                              Left w  -> w+                                              Right _ -> 0+               Just (Right _)       -> 1+               Nothing              -> 0+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase101.stderr view
@@ -0,0 +1,31 @@+SCase101.hs:(11,14)-(17,8): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " m of\n\+      \               Just inner@(Left v)  -> v + case inner of\n\+      \                                              Left w  -> w\n\+      \                                              Right _ -> 0\n\+      \               Just (Right _)       -> 1\n\+      \               Nothing              -> 0\n\+      \      "+  ======>+    ite+      ((.&&)+         (Data.SBV.Maybe.isJust m)+         ((\ _ -> Data.SBV.Either.isLeft (Data.SBV.Maybe.getJust_1 m))+            (Data.SBV.Maybe.getJust_1 m)))+      ((\ _+          -> let+               inner = Data.SBV.Maybe.getJust_1 m+               v = Data.SBV.Either.getLeft_1 (Data.SBV.Maybe.getJust_1 m)+             in v + Data.SBV.Either.sCaseEither (\ w -> w) (\ _ -> 0) inner)+         (Data.SBV.Maybe.getJust_1 m))+      (ite+         ((.&&)+            (Data.SBV.Maybe.isJust m)+            ((\ _ -> Data.SBV.Either.isRight (Data.SBV.Maybe.getJust_1 m))+               (Data.SBV.Maybe.getJust_1 m)))+         ((\ _ -> 1) (Data.SBV.Maybe.getJust_1 m))+         (ite+            (Data.SBV.Maybe.isNothing m) 0+            (symWithKind "unmatched_sCase_Maybe_6989586621679035008")))
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase102.hs view
@@ -0,0 +1,15 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Positive: As-pattern on wildcard+module T where++import Data.SBV++t :: SMaybe Integer -> SInteger+t m = [sCase| m of+               x@_ -> case x of+                         Just v  -> v+                         Nothing -> 0+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase102.stderr view
@@ -0,0 +1,10 @@+SCase102.hs:(11,14)-(15,8): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " m of\n\+      \               x@_ -> case x of\n\+      \                         Just v  -> v\n\+      \                         Nothing -> 0\n\+      \      "+  ======>+    let x = m in Data.SBV.Maybe.sCaseMaybe 0 (\ v -> v) x
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase103.hs view
@@ -0,0 +1,16 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Positive: As-pattern with Expr ADT (recursive use of as-bound name)+module T where++import Expr+import Data.SBV++t :: SExpr -> SInteger+t e = [sCase| e of+               whole@(Add a _) -> t a + t whole+               Num k           -> k+               _               -> 0+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase103.stderr view
@@ -0,0 +1,12 @@+SCase103.hs:(12,14)-(16,8): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " e of\n\+      \               whole@(Add a _) -> t a + t whole\n\+      \               Num k           -> k\n\+      \               _               -> 0\n\+      \      "+  ======>+    sCaseExpr+      0 (\ k -> k) (\ _ -> 0) (\ a _ -> let whole = e in (t a) + t whole)+      (\ _ _ _ -> 0) e
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase104.hs view
@@ -0,0 +1,14 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Positive: As-pattern where binding is unused (should be elided)+module T where++import Data.SBV++t :: SMaybe Integer -> SInteger+t m = [sCase| m of+               _unused@(Just v) -> v+               Nothing          -> 0+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase104.stderr view
@@ -0,0 +1,9 @@+SCase104.hs:(11,14)-(14,8): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " m of\n\+      \               _unused@(Just v) -> v\n\+      \               Nothing          -> 0\n\+      \      "+  ======>+    Data.SBV.Maybe.sCaseMaybe 0 (\ v -> v) m
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase105.hs view
@@ -0,0 +1,17 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Positive: As-pattern on list cons pattern+module T where++import Data.SBV++t :: SList Integer -> SInteger+t xs = [sCase| xs of+                a : tl@(_ : _) -> a + case tl of+                                         b : _ -> b+                                         []    -> 0+                _ : _           -> 0+                []              -> 0+       |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase105.stderr view
@@ -0,0 +1,34 @@+SCase105.hs:(11,15)-(17,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " xs of\n\+      \                a : tl@(_ : _) -> a + case tl of\n\+      \                                         b : _ -> b\n\+      \                                         []    -> 0\n\+      \                _ : _           -> 0\n\+      \                []              -> 0\n\+      \       "+  ======>+    ite+      ((.&&)+         (sNot (Data.SBV.List.null xs))+         ((\ a _+             -> const+                  ((.&&)+                     (sNot (Data.SBV.List.null (Data.SBV.List.tail xs)))+                     ((.===)+                        (Data.SBV.List.tail xs)+                        (Data.SBV.List.head (Data.SBV.List.tail xs)+                           .: Data.SBV.List.tail (Data.SBV.List.tail xs))))+                  a)+            (Data.SBV.List.head xs) (Data.SBV.List.tail xs)))+      ((\ a _+          -> let tl = Data.SBV.List.tail xs+             in+               a + ite+                     (sNot (Data.SBV.List.null tl))+                     ((\ b _ -> b) (Data.SBV.List.head tl) (Data.SBV.List.tail tl)) 0)+         (Data.SBV.List.head xs) (Data.SBV.List.tail xs))+      (ite+         (sNot (Data.SBV.List.null xs))+         ((\ _ _ -> 0) (Data.SBV.List.head xs) (Data.SBV.List.tail xs)) 0)
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase106.hs view
@@ -0,0 +1,14 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Positive: As-pattern on tuple+module T where++import Data.SBV++t :: STuple Integer Bool -> SInteger+t p = [sCase| p of+               whole@(v, b) -> ite b v (case whole of+                                           (w, _) -> negate w)+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase106.stderr view
@@ -0,0 +1,16 @@+SCase106.hs:(11,14)-(14,8): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " p of\n\+      \               whole@(v, b) -> ite b v (case whole of\n\+      \                                           (w, _) -> negate w)\n\+      \      "+  ======>+    (\ v b+       -> let whole = p+          in+            ite+              b v+              ((\ w _ -> negate w)+                 (Data.SBV.Tuple._1 whole) (Data.SBV.Tuple._2 whole)))+      (Data.SBV.Tuple._1 p) (Data.SBV.Tuple._2 p)
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase107.hs view
@@ -0,0 +1,24 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -Wno-name-shadowing -ddump-splices #-}++-- Positive: Scoping regression test. Nested pattern var 'k' from 'Add (Num k) _'+-- is used in one branch of a nested case on SMaybe, while a sibling branch shadows+-- 'k' with a let binding. Old scope-unaware freeVars would drop the accessor binding+-- for 'k', causing a compilation error. See also PCase77 for the pCase counterpart.+module T where++import Expr+import Data.SBV++t :: SExpr -> SMaybe Integer -> SInteger+t e m = [sCase| e of+                Zero          -> 0+                Num _         -> 0+                Var _         -> 0+                Add (Num k) _ -> case m of+                                   Nothing -> let k = 42 in k+                                   Just v  -> k + v+                Add _ _       -> 0+                Let _ _ _     -> 0+       |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase107.stderr view
@@ -0,0 +1,31 @@+SCase107.hs:(15,16)-(24,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " e of\n\+      \                Zero          -> 0\n\+      \                Num _         -> 0\n\+      \                Var _         -> 0\n\+      \                Add (Num k) _ -> case m of\n\+      \                                   Nothing -> let k = 42 in k\n\+      \                                   Just v  -> k + v\n\+      \                Add _ _       -> 0\n\+      \                Let _ _ _     -> 0\n\+      \       "+  ======>+    ite+      (isZero e) 0+      (ite+         (isNum e) ((\ _ -> 0) (getNum_1 e))+         (ite+            (isVar e) ((\ _ -> 0) (getVar_1 e))+            (ite+               ((.&&)+                  (isAdd e)+                  ((\ _ _ -> isNum (getAdd_1 e)) (getAdd_1 e) (getAdd_2 e)))+               ((\ _ _+                   -> let k = getNum_1 (getAdd_1 e)+                      in Data.SBV.Maybe.sCaseMaybe (let k = 42 in k) (\ v -> k + v) m)+                  (getAdd_1 e) (getAdd_2 e))+               (ite+                  (isAdd e) ((\ _ _ -> 0) (getAdd_1 e) (getAdd_2 e))+                  ((\ _ _ _ -> 0) (getLet_1 e) (getLet_2 e) (getLet_3 e))))))
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase11.hs view
@@ -0,0 +1,18 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV++t :: SExpr -> SInteger+t e = [sCase| e of+               Zero          -> 0+               Num i         -> i+               _ -> 3+               Var s         -> ite (s .== "a") 1 2+               Add a b       -> t e + t b+               Let _   _a  b -> t b+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase11.stderr view
@@ -0,0 +1,19 @@+SCase11.hs:11:14: error: [GHC-39584]+    " SCase11.hs:14:16: sCase: Wildcard makes the remaining matches redundant:+        SCase11.hs:15:16-20: Var s+        SCase11.hs:16:16-22: Add a b+        SCase11.hs:17:16-28: Let _ _a b++    " In the quasi-quotation:+        [sCase| e of+               Zero          -> 0+               Num i         -> i+               _ -> 3+               Var s         -> ite (s .== "a") 1 2+               Add a b       -> t e + t b+               Let _   _a  b -> t b+      |]+   |+11 | t e = [sCase| e of+   |              ^^^^^...+
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase12.hs view
@@ -0,0 +1,16 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV++t :: SExpr -> SInteger+t e = [sCase| e of+               Zero          -> 0+               Num i         -> i+               _ -> 3+               _ -> 5+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase12.stderr view
@@ -0,0 +1,15 @@+SCase12.hs:11:14: error: [GHC-39584]+    " SCase12.hs:14:16: sCase: Wildcard makes the remaining matches redundant:+        SCase12.hs:15:16: _++    " In the quasi-quotation:+        [sCase| e of+               Zero          -> 0+               Num i         -> i+               _ -> 3+               _ -> 5+      |]+   |+11 | t e = [sCase| e of+   |              ^^^^^...+
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase13.hs view
@@ -0,0 +1,17 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV++t :: SExpr -> SInteger+t e = [sCase| e of+               Zero          -> 0+               Num i         -> i+               Var {} _      -> ite (s .== "a") 1 2+               Add a b       -> t e + t b+               Let _   _a  b -> t b+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase13.stderr view
@@ -0,0 +1,15 @@+SCase13.hs:11:14: error: [GHC-39584]+    " SCase13.hs:14:30: Parse error in pattern: Var{}++    " In the quasi-quotation:+        [sCase| e of+               Zero          -> 0+               Num i         -> i+               Var {} _      -> ite (s .== "a") 1 2+               Add a b       -> t e + t b+               Let _   _a  b -> t b+      |]+   |+11 | t e = [sCase| e of+   |              ^^^^^...+
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase14.hs view
@@ -0,0 +1,17 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV++t :: SExpr -> SInteger+t e = [sCase| e of+               Zero          -> 0+               Num i         -> i+               Var s _       -> ite (s .== "a") 1 2+               Add a b       -> t e + t b+               Let _   _a  b -> t b+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase14.stderr view
@@ -0,0 +1,19 @@+SCase14.hs:11:14: error: [GHC-39584]+    " SCase14.hs:14:16-22: sCase: Arity mismatch.+        Type       : Expr+        Constructor: Var+        Expected   : 1+        Given      : 2++    " In the quasi-quotation:+        [sCase| e of+               Zero          -> 0+               Num i         -> i+               Var s _       -> ite (s .== "a") 1 2+               Add a b       -> t e + t b+               Let _   _a  b -> t b+      |]+   |+11 | t e = [sCase| e of+   |              ^^^^^...+
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase15.hs view
@@ -0,0 +1,17 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV++t :: SExpr -> SInteger+t e = [sCase| e of+               Zero          -> 0+               Num i         -> i+               Var s         -> ite (s .== "a") 1 2+               Add a b       -> t e + t b+               _ _ -> 3+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase15.stderr view
@@ -0,0 +1,15 @@+SCase15.hs:11:14: error: [GHC-39584]+    " SCase15.hs:16:20: Parse error in pattern: _++    " In the quasi-quotation:+        [sCase| e of+               Zero          -> 0+               Num i         -> i+               Var s         -> ite (s .== "a") 1 2+               Add a b       -> t e + t b+               _ _ -> 3+      |]+   |+11 | t e = [sCase| e of+   |              ^^^^^...+
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase16.hs view
@@ -0,0 +1,17 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV++t :: SExpr -> SInteger+t e = [sCase| e of+               Zero           -> 0+               Num i | i .< 3 -> i+               Var s          -> ite (s .== "a") 1 2+               Add a b        -> t e + t b+               Let _   _a  b  -> t b+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase16.stderr view
@@ -0,0 +1,18 @@+SCase16.hs:11:14: error: [GHC-39584]+    " SCase16.hs:13:16-20: sCase: Non-exhaustive match:+        Type       : Expr+        Constructor: Num i | i .< 3+      NB. Guarded match might fail.++    " In the quasi-quotation:+        [sCase| e of+               Zero           -> 0+               Num i | i .< 3 -> i+               Var s          -> ite (s .== "a") 1 2+               Add a b        -> t e + t b+               Let _   _a  b  -> t b+      |]+   |+11 | t e = [sCase| e of+   |              ^^^^^...+
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase17.hs view
@@ -0,0 +1,18 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV++t :: SExpr -> SInteger+t e = [sCase| e of+               Zero           -> 0+               Num i | i .< 3 -> i+               Var s          -> ite (s .== literal "a") 1 2+               Add a b        -> t a + t b+               Num i          -> i+1+               Let _   _a  b  -> t b+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase17.stderr view
@@ -0,0 +1,24 @@+SCase17.hs:(11,14)-(18,8): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " e of\n\+      \               Zero           -> 0\n\+      \               Num i | i .< 3 -> i\n\+      \               Var s          -> ite (s .== literal \"a\") 1 2\n\+      \               Add a b        -> t a + t b\n\+      \               Num i          -> i+1\n\+      \               Let _   _a  b  -> t b\n\+      \      "+  ======>+    ite+      (isZero e) 0+      (ite+         ((.&&) (isNum e) ((\ i -> i .< 3) (getNum_1 e)))+         ((\ i -> i) (getNum_1 e))+         (ite+            (isVar e) ((\ s -> ite (s .== literal "a") 1 2) (getVar_1 e))+            (ite+               (isAdd e) ((\ a b -> (t a) + t b) (getAdd_1 e) (getAdd_2 e))+               (ite+                  (isNum e) ((\ i -> i + 1) (getNum_1 e))+                  ((\ _ _a b -> t b) (getLet_1 e) (getLet_2 e) (getLet_3 e))))))
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase18.hs view
@@ -0,0 +1,18 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV++t :: SExpr -> SInteger+t e = [sCase| e of+               Zero           -> 0+               Num i -> 4+               Num i | i .< 3 -> i+               Var s          -> ite (s .== literal "a") 1 2+               Add a b        -> t e + t b+               Let _   _a  b  -> t b+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase18.stderr view
@@ -0,0 +1,20 @@+SCase18.hs:11:14: error: [GHC-39584]+    " SCase18.hs:14:16-20: sCase: Overlapping case constructors:+        Type       : Expr+        Constructor: Num i | i .< 3+      Overlaps with:+        SCase18.hs:13:16-20: Num i++    " In the quasi-quotation:+        [sCase| e of+               Zero           -> 0+               Num i -> 4+               Num i | i .< 3 -> i+               Var s          -> ite (s .== literal "a") 1 2+               Add a b        -> t e + t b+               Let _   _a  b  -> t b+      |]+   |+11 | t e = [sCase| e of+   |              ^^^^^...+
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase19.hs view
@@ -0,0 +1,18 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV++t :: SExpr -> SInteger+t e = [sCase| e of+               Zero           -> 0+               Num i -> 4+               Var s          -> ite (s .== literal "a") 1 2+               Add a b        -> t e + t b+               Let _   _a  b  -> t b+               _ | 2 .>= 3 -> 4+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase19.stderr view
@@ -0,0 +1,19 @@+SCase19.hs:11:14: error: [GHC-39584]+    " SCase19.hs:17:16: sCase: Non-exhaustive match:+        Type       : Expr+        Constructor: _ | 2 .>= 3+      NB. Guarded match might fail.++    " In the quasi-quotation:+        [sCase| e of+               Zero           -> 0+               Num i -> 4+               Var s          -> ite (s .== literal "a") 1 2+               Add a b        -> t e + t b+               Let _   _a  b  -> t b+               _ | 2 .>= 3 -> 4+      |]+   |+11 | t e = [sCase| e of+   |              ^^^^^...+
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase20.hs view
@@ -0,0 +1,18 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV++t :: SExpr -> SInteger+t e = [sCase| e of+               Zero           -> 0+               Num i          -> 4+               Var s          -> ite (s .== literal "a") 1 2+               Add a b        -> t e + t b+               Let _   _a  b  -> t b+               _ -> 4+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase20.stderr view
@@ -0,0 +1,15 @@+SCase20.hs:11:14: error: [GHC-39584]+    " SCase20.hs:17:16: sCase: Wildcard match is redundant+    " In the quasi-quotation:+        [sCase| e of+               Zero           -> 0+               Num i          -> 4+               Var s          -> ite (s .== literal "a") 1 2+               Add a b        -> t e + t b+               Let _   _a  b  -> t b+               _ -> 4+      |]+   |+11 | t e = [sCase| e of+   |              ^^^^^...+
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase21.hs view
@@ -0,0 +1,17 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV++t :: SExpr -> SInteger+t e = [sCase| e of+               Zero           -> 0+               Num i | i .> 4 -> 4+               Var s          -> ite (s .== literal "a") 1 2+               Add a b        -> t e + t b+               Let _   _a  b  -> t b+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase21.stderr view
@@ -0,0 +1,18 @@+SCase21.hs:11:14: error: [GHC-39584]+    " SCase21.hs:13:16-20: sCase: Non-exhaustive match:+        Type       : Expr+        Constructor: Num i | i .> 4+      NB. Guarded match might fail.++    " In the quasi-quotation:+        [sCase| e of+               Zero           -> 0+               Num i | i .> 4 -> 4+               Var s          -> ite (s .== literal "a") 1 2+               Add a b        -> t e + t b+               Let _   _a  b  -> t b+      |]+   |+11 | t e = [sCase| e of+   |              ^^^^^...+
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase22.hs view
@@ -0,0 +1,18 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV++t :: SExpr -> SInteger+t e = [sCase| e of+               Zero           -> 0+               Num i | i .> 4 -> 4+               Var s          -> ite (s .== literal "a") 1 2+               Add a b        -> t e + t b+               Let _   _a  b  -> t b+               _ | 2 .>= 3    -> 5+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase22.stderr view
@@ -0,0 +1,19 @@+SCase22.hs:11:14: error: [GHC-39584]+    " SCase22.hs:13:16-20: sCase: Non-exhaustive match:+        Type       : Expr+        Constructor: Num i | i .> 4+      NB. Guarded match might fail.++    " In the quasi-quotation:+        [sCase| e of+               Zero           -> 0+               Num i | i .> 4 -> 4+               Var s          -> ite (s .== literal "a") 1 2+               Add a b        -> t e + t b+               Let _   _a  b  -> t b+               _ | 2 .>= 3    -> 5+      |]+   |+11 | t e = [sCase| e of+   |              ^^^^^...+
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase23.hs view
@@ -0,0 +1,17 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV++t :: SExpr -> SInteger+t e = [sCase| e of+               Zero           -> 0+               Num i          -> 4+               Var s          -> ite (s .== literal "a") 1 2+               Add a b        -> t a + t b+               Let _   _a  b  -> t b+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase23.stderr view
@@ -0,0 +1,20 @@+SCase23.hs:(11,14)-(17,8): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " e of\n\+      \               Zero           -> 0\n\+      \               Num i          -> 4\n\+      \               Var s          -> ite (s .== literal \"a\") 1 2\n\+      \               Add a b        -> t a + t b\n\+      \               Let _   _a  b  -> t b\n\+      \      "+  ======>+    sCaseExpr+      0 (\ i -> 4) (\ s -> ite (s .== literal "a") 1 2)+      (\ a b -> (t a) + t b) (\ _ _a b -> t b) e+SCase23.hs:11:14: error: [GHC-40910] [-Wunused-matches, Werror=unused-matches]+    Defined but not used: i+   |+11 | t e = [sCase| e of+   |              ^^^^^...+
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase24.hs view
@@ -0,0 +1,18 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV++t :: SExpr -> SInteger+t e = [sCase| e of+               Zero           -> 0+               Num _          -> 4+               Var s          -> ite (s .== literal "a") 1 2+               Add a b | t a .== 4 -> t b+               Let _   _a  b  -> t b+               _ -> 2+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase24.stderr view
@@ -0,0 +1,26 @@+SCase24.hs:(11,14)-(18,8): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " e of\n\+      \               Zero           -> 0\n\+      \               Num _          -> 4\n\+      \               Var s          -> ite (s .== literal \"a\") 1 2\n\+      \               Add a b | t a .== 4 -> t b\n\+      \               Let _   _a  b  -> t b\n\+      \               _ -> 2\n\+      \      "+  ======>+    ite+      (isZero e) 0+      (ite+         (isNum e) ((\ _ -> 4) (getNum_1 e))+         (ite+            (isVar e) ((\ s -> ite (s .== literal "a") 1 2) (getVar_1 e))+            (ite+               ((.&&)+                  (isAdd e)+                  ((\ a b -> const ((t a) .== 4) b) (getAdd_1 e) (getAdd_2 e)))+               ((\ a b -> const (t b) a) (getAdd_1 e) (getAdd_2 e))+               (ite+                  (isLet e)+                  ((\ _ _a b -> t b) (getLet_1 e) (getLet_2 e) (getLet_3 e)) 2))))
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase25.hs view
@@ -0,0 +1,19 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV++f :: SExpr -> SInteger+f e = [sCase| e of+         Var s     | s .== literal "a"                       -> 0+                   | s .== literal "b" .|| s .== literal "c" -> 1+                   | sTrue                                   -> 2++         Num i     | sTrue                                   -> 3++         _                                                   -> 6+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase25.stderr view
@@ -0,0 +1,30 @@+SCase25.hs:(11,14)-(19,8): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " e of\n\+      \         Var s     | s .== literal \"a\"                       -> 0\n\+      \                   | s .== literal \"b\" .|| s .== literal \"c\" -> 1\n\+      \                   | sTrue                                   -> 2\n\+      \\n\+      \         Num i     | sTrue                                   -> 3\n\+      \\n\+      \         _                                                   -> 6\n\+      \      "+  ======>+    ite+      ((.&&) (isVar e) ((\ s -> s .== literal "a") (getVar_1 e)))+      ((\ s -> const 0 s) (getVar_1 e))+      (ite+         ((.&&)+            (isVar e)+            ((\ s -> s .== literal "b" .|| s .== literal "c") (getVar_1 e)))+         ((\ s -> const 1 s) (getVar_1 e))+         (ite+            (isVar e) ((\ s -> const 2 s) (getVar_1 e))+            (ite (isNum e) ((\ i -> 3) (getNum_1 e)) 6)))+SCase25.hs:11:14: error: [GHC-40910] [-Wunused-matches, Werror=unused-matches]+    Defined but not used: i+   |+11 | f e = [sCase| e of+   |              ^^^^^...+
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase26.hs view
@@ -0,0 +1,15 @@+{-# LANGUAGE FlexibleInstances #-}+{-# LANGUAGE TemplateHaskell   #-}+{-# LANGUAGE TypeApplications  #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Data.SBV++data A = A1 { u :: Integer }+       | B1 { s :: String, k :: Float }+       | C1++mkSymbolic [''A]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase26.stderr view
@@ -0,0 +1,1 @@+There was no failure during compilation.
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase27.hs view
@@ -0,0 +1,14 @@+{-# LANGUAGE TemplateHaskell #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Data.SBV++-- don't allow multiple accessors+data A = A1 { u :: Integer }+       | B1 { u :: Integer, s :: String}+       | C1++mkSymbolic [''A]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase27.stderr view
@@ -0,0 +1,11 @@+SCase27.hs:14:1: error: [GHC-39584]+    mkSymbolic: Unsupported field accessor definition.+      Multiply used: u+      +      SBV does not support cases where accessor fields are replicated.+      Please use each accessor only once.++   |+14 | mkSymbolic [''A]+   | ^^^^^^^^^^^^^^^^+
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase28.hs view
@@ -0,0 +1,19 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV++t :: SExpr -> SInteger+t e = [sCase| e of+               Num i | i .> 3 -> 5+                     | sTrue  -> 12++               Zero{} -> 0+               Var{}  -> 0+               Add{}  -> 0+               Let{}  -> 0+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase28.stderr view
@@ -0,0 +1,25 @@+SCase28.hs:(11,14)-(19,8): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " e of\n\+      \               Num i | i .> 3 -> 5\n\+      \                     | sTrue  -> 12\n\+      \\n\+      \               Zero{} -> 0\n\+      \               Var{}  -> 0\n\+      \               Add{}  -> 0\n\+      \               Let{}  -> 0\n\+      \      "+  ======>+    ite+      ((.&&) (isNum e) ((\ i -> i .> 3) (getNum_1 e)))+      ((\ i -> const 5 i) (getNum_1 e))+      (ite+         (isNum e) ((\ i -> const 12 i) (getNum_1 e))+         (ite+            (isZero e) 0+            (ite+               (isVar e) ((\ _ -> 0) (getVar_1 e))+               (ite+                  (isAdd e) ((\ _ _ -> 0) (getAdd_1 e) (getAdd_2 e))+                  ((\ _ _ _ -> 0) (getLet_1 e) (getLet_2 e) (getLet_3 e))))))
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase29.hs view
@@ -0,0 +1,20 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV++t :: SExpr -> SInteger+t e = [sCase| e of+               Num i | i > 3  -> 5+                     | sTrue  -> 12+               Num i | i > 12 -> 7++               Zero{} -> 0+               Var{}  -> 0+               Add{}  -> 0+               Let{}  -> 0+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase29.stderr view
@@ -0,0 +1,22 @@+SCase29.hs:11:14: error: [GHC-39584]+    " SCase29.hs:14:16-20: sCase: Overlapping case constructors:+        Type       : Expr+        Constructor: Num i | i > 12+      Overlaps with:+        SCase29.hs:12:16-20: Num i++    " In the quasi-quotation:+        [sCase| e of+               Num i | i > 3  -> 5+                     | sTrue  -> 12+               Num i | i > 12 -> 7++               Zero{} -> 0+               Var{}  -> 0+               Add{}  -> 0+               Let{}  -> 0+      |]+   |+11 | t e = [sCase| e of+   |              ^^^^^...+
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase30.hs view
@@ -0,0 +1,24 @@+{-# LANGUAGE FlexibleInstances #-}+{-# LANGUAGE QuasiQuotes       #-}+{-# LANGUAGE TemplateHaskell   #-}+{-# LANGUAGE TypeApplications  #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Data.SBV++-- Testing constructor/type name conflct+data A = A Integer+       | B Float+       | C A A++mkSymbolic [''A]++t :: SA -> SA+t a = [sCase| a of+         A u     -> sA (u+1)+         B f     -> sB (f+2)+         C a1 a2 -> sC (t a1) (t a2)+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase30.stderr view
@@ -0,0 +1,12 @@+SCase30.hs:(20,14)-(24,8): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " a of\n\+      \         A u     -> sA (u+1)\n\+      \         B f     -> sB (f+2)\n\+      \         C a1 a2 -> sC (t a1) (t a2)\n\+      \      "+  ======>+    sCaseA+      (\ u -> sA (u + 1)) (\ f -> sB (f + 2))+      (\ a1 a2 -> sC (t a1) (t a2)) a
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase31.hs view
@@ -0,0 +1,13 @@+{-# LANGUAGE TemplateHaskell   #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Data.SBV++-- Testing bad fields+data A = F (Integer -> Bool)+       | I Integer++mkSymbolic [''A]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase31.stderr view
@@ -0,0 +1,12 @@+SCase31.hs:13:1: error: [GHC-39584]+    mkSymbolic: Unsupported constructor kind+      Datatype   : A+      Constructor: F+      Kind       : GHC.Internal.Bignum.Integer.Integer -> GHC.Internal.Types.Bool+      +      Higher order fields (i.e., function values) are not supported.++   |+13 | mkSymbolic [''A]+   | ^^^^^^^^^^^^^^^^+
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase32.hs view
@@ -0,0 +1,13 @@+{-# LANGUAGE TemplateHaskell   #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Data.SBV++-- Testing bad fields+data A = F (A -> Bool)+       | I Integer++mkSymbolic [''A]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase32.stderr view
@@ -0,0 +1,12 @@+SCase32.hs:13:1: error: [GHC-39584]+    mkSymbolic: Unsupported constructor kind+      Datatype   : A+      Constructor: F+      Kind       : T.A -> GHC.Internal.Types.Bool+      +      Higher order fields (i.e., function values) are not supported.++   |+13 | mkSymbolic [''A]+   | ^^^^^^^^^^^^^^^^+
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase33.hs view
@@ -0,0 +1,19 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV++-- Positive: deeply nested pattern Add (Add (Num i) j) k+t :: SExpr -> SInteger+t e = [sCase| e of+               Zero                  -> 0+               Num k                 -> k+               Var s                 -> ite (s .== literal "a") 1 2+               Add (Add (Num i) j) k -> i + t j + t k+               Add a b               -> t a + t b+               Let _   _a  b         -> t b+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase33.stderr view
@@ -0,0 +1,34 @@+SCase33.hs:(12,14)-(19,8): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " e of\n\+      \               Zero                  -> 0\n\+      \               Num k                 -> k\n\+      \               Var s                 -> ite (s .== literal \"a\") 1 2\n\+      \               Add (Add (Num i) j) k -> i + t j + t k\n\+      \               Add a b               -> t a + t b\n\+      \               Let _   _a  b         -> t b\n\+      \      "+  ======>+    ite+      (isZero e) 0+      (ite+         (isNum e) ((\ k -> k) (getNum_1 e))+         (ite+            (isVar e) ((\ s -> ite (s .== literal "a") 1 2) (getVar_1 e))+            (ite+               ((.&&)+                  (isAdd e)+                  ((\ _ k+                      -> const+                           ((.&&) (isAdd (getAdd_1 e)) (isNum (getAdd_1 (getAdd_1 e)))) k)+                     (getAdd_1 e) (getAdd_2 e)))+               ((\ _ k+                   -> let+                        j = getAdd_2 (getAdd_1 e)+                        i = getNum_1 (getAdd_1 (getAdd_1 e))+                      in i + t j + t k)+                  (getAdd_1 e) (getAdd_2 e))+               (ite+                  (isAdd e) ((\ a b -> (t a) + t b) (getAdd_1 e) (getAdd_2 e))+                  ((\ _ _a b -> t b) (getLet_1 e) (getLet_2 e) (getLet_3 e))))))
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase34.hs view
@@ -0,0 +1,19 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV++-- Positive: nested pattern combined with a guard+t :: SExpr -> SInteger+t e = [sCase| e of+               Zero                -> 0+               Num k               -> k+               Var s               -> ite (s .== literal "a") 1 2+               Add (Num i) j | i .> 0 -> i + t j+               Add a b             -> t a + t b+               Let _   _a  b       -> t b+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase34.stderr view
@@ -0,0 +1,32 @@+SCase34.hs:(12,14)-(19,8): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " e of\n\+      \               Zero                -> 0\n\+      \               Num k               -> k\n\+      \               Var s               -> ite (s .== literal \"a\") 1 2\n\+      \               Add (Num i) j | i .> 0 -> i + t j\n\+      \               Add a b             -> t a + t b\n\+      \               Let _   _a  b       -> t b\n\+      \      "+  ======>+    ite+      (isZero e) 0+      (ite+         (isNum e) ((\ k -> k) (getNum_1 e))+         (ite+            (isVar e) ((\ s -> ite (s .== literal "a") 1 2) (getVar_1 e))+            (ite+               ((.&&)+                  (isAdd e)+                  ((\ _ j+                      -> const+                           ((.&&)+                              (isNum (getAdd_1 e)) (let i = getNum_1 (getAdd_1 e) in i .> 0))+                           j)+                     (getAdd_1 e) (getAdd_2 e)))+               ((\ _ j -> let i = getNum_1 (getAdd_1 e) in i + t j)+                  (getAdd_1 e) (getAdd_2 e))+               (ite+                  (isAdd e) ((\ a b -> (t a) + t b) (getAdd_1 e) (getAdd_2 e))+                  ((\ _ _a b -> t b) (getLet_1 e) (getLet_2 e) (getLet_3 e))))))
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase35.hs view
@@ -0,0 +1,19 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV++-- Positive: nested patterns on both sides of Add+t :: SExpr -> SInteger+t e = [sCase| e of+               Zero              -> 0+               Num k             -> k+               Var s             -> ite (s .== literal "a") 1 2+               Add (Num i) (Num j) -> i + j+               Add a b           -> t a + t b+               Let _   _a  b     -> t b+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase35.stderr view
@@ -0,0 +1,32 @@+SCase35.hs:(12,14)-(19,8): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " e of\n\+      \               Zero              -> 0\n\+      \               Num k             -> k\n\+      \               Var s             -> ite (s .== literal \"a\") 1 2\n\+      \               Add (Num i) (Num j) -> i + j\n\+      \               Add a b           -> t a + t b\n\+      \               Let _   _a  b     -> t b\n\+      \      "+  ======>+    ite+      (isZero e) 0+      (ite+         (isNum e) ((\ k -> k) (getNum_1 e))+         (ite+            (isVar e) ((\ s -> ite (s .== literal "a") 1 2) (getVar_1 e))+            (ite+               ((.&&)+                  (isAdd e)+                  ((\ _ _ -> (.&&) (isNum (getAdd_1 e)) (isNum (getAdd_2 e)))+                     (getAdd_1 e) (getAdd_2 e)))+               ((\ _ _+                   -> let+                        i = getNum_1 (getAdd_1 e)+                        j = getNum_1 (getAdd_2 e)+                      in i + j)+                  (getAdd_1 e) (getAdd_2 e))+               (ite+                  (isAdd e) ((\ a b -> (t a) + t b) (getAdd_1 e) (getAdd_2 e))+                  ((\ _ _a b -> t b) (getLet_1 e) (getLet_2 e) (getLet_3 e))))))
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase36.hs view
@@ -0,0 +1,19 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV++-- Positive: nested pattern with wildcard inside the nested constructor+t :: SExpr -> SInteger+t e = [sCase| e of+               Zero          -> 0+               Num k         -> k+               Var s         -> ite (s .== literal "a") 1 2+               Add (Num _) j -> 1 + t j+               Add a b       -> t a + t b+               Let _   _a  b -> t b+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase36.stderr view
@@ -0,0 +1,27 @@+SCase36.hs:(12,14)-(19,8): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " e of\n\+      \               Zero          -> 0\n\+      \               Num k         -> k\n\+      \               Var s         -> ite (s .== literal \"a\") 1 2\n\+      \               Add (Num _) j -> 1 + t j\n\+      \               Add a b       -> t a + t b\n\+      \               Let _   _a  b -> t b\n\+      \      "+  ======>+    ite+      (isZero e) 0+      (ite+         (isNum e) ((\ k -> k) (getNum_1 e))+         (ite+            (isVar e) ((\ s -> ite (s .== literal "a") 1 2) (getVar_1 e))+            (ite+               ((.&&)+                  (isAdd e)+                  ((\ _ j -> const (isNum (getAdd_1 e)) j)+                     (getAdd_1 e) (getAdd_2 e)))+               ((\ _ j -> 1 + t j) (getAdd_1 e) (getAdd_2 e))+               (ite+                  (isAdd e) ((\ a b -> (t a) + t b) (getAdd_1 e) (getAdd_2 e))+                  ((\ _ _a b -> t b) (getLet_1 e) (getLet_2 e) (getLet_3 e))))))
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase37.hs view
@@ -0,0 +1,19 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV++-- Negative: literal pattern inside nested position is not supported+t :: SExpr -> SInteger+t e = [sCase| e of+               Zero          -> 0+               Num k         -> k+               Var s         -> ite (s .== literal "a") 1 2+               Add (Num 0) j -> t j+               Add a b       -> t a + t b+               Let _   _a  b -> t b+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase37.stderr view
@@ -0,0 +1,29 @@+SCase37.hs:(12,14)-(19,8): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " e of\n\+      \               Zero          -> 0\n\+      \               Num k         -> k\n\+      \               Var s         -> ite (s .== literal \"a\") 1 2\n\+      \               Add (Num 0) j -> t j\n\+      \               Add a b       -> t a + t b\n\+      \               Let _   _a  b -> t b\n\+      \      "+  ======>+    ite+      (isZero e) 0+      (ite+         (isNum e) ((\ k -> k) (getNum_1 e))+         (ite+            (isVar e) ((\ s -> ite (s .== literal "a") 1 2) (getVar_1 e))+            (ite+               ((.&&)+                  (isAdd e)+                  ((\ _ j+                      -> const+                           ((.&&) (isNum (getAdd_1 e)) ((.==) (getNum_1 (getAdd_1 e)) 0)) j)+                     (getAdd_1 e) (getAdd_2 e)))+               ((\ _ j -> t j) (getAdd_1 e) (getAdd_2 e))+               (ite+                  (isAdd e) ((\ a b -> (t a) + t b) (getAdd_1 e) (getAdd_2 e))+                  ((\ _ _a b -> t b) (getLet_1 e) (getLet_2 e) (getLet_3 e))))))
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase38.hs view
@@ -0,0 +1,19 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV++-- Negative: nested constructor with wrong arity (Num takes 1 arg, given 2)+t :: SExpr -> SInteger+t e = [sCase| e of+               Zero              -> 0+               Num k             -> k+               Var s             -> ite (s .== literal "a") 1 2+               Add (Num i j) b   -> i + t b+               Add a b           -> t a + t b+               Let _   _a  b     -> t b+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase38.stderr view
@@ -0,0 +1,19 @@+SCase38.hs:12:14: error: [GHC-39584]+    " SCase38.hs:16:16-30: sCase/pCase: Arity mismatch in nested pattern.+        Constructor: Num+        Expected   : 1+        Given      : 2++    " In the quasi-quotation:+        [sCase| e of+               Zero              -> 0+               Num k             -> k+               Var s             -> ite (s .== literal "a") 1 2+               Add (Num i j) b   -> i + t b+               Add a b           -> t a + t b+               Let _   _a  b     -> t b+      |]+   |+12 | t e = [sCase| e of+   |              ^^^^^...+
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase39.hs view
@@ -0,0 +1,19 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV++-- Negative: nested constructor that is not in scope+t :: SExpr -> SInteger+t e = [sCase| e of+               Zero              -> 0+               Num k             -> k+               Var s             -> ite (s .== literal "a") 1 2+               Add (Numb i) b    -> i + t b+               Add a b           -> t a + t b+               Let _   _a  b     -> t b+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase39.stderr view
@@ -0,0 +1,15 @@+SCase39.hs:12:14: error: [GHC-39584]+    " SCase39.hs:16:16-29: sCase/pCase: Not in scope: data constructor: Numb+    " In the quasi-quotation:+        [sCase| e of+               Zero              -> 0+               Num k             -> k+               Var s             -> ite (s .== literal "a") 1 2+               Add (Numb i) b    -> i + t b+               Add a b           -> t a + t b+               Let _   _a  b     -> t b+      |]+   |+12 | t e = [sCase| e of+   |              ^^^^^...+
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase40.hs view
@@ -0,0 +1,19 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV++-- Positive: nested pattern using parenthesized constructor (ParensP)+t :: SExpr -> SInteger+t e = [sCase| e of+               Zero                    -> 0+               Num k                   -> k+               Var s                   -> ite (s .== literal "a") 1 2+               Let _ (Num i) b         -> i + t b+               Let _ a       b         -> t a + t b+               Add a b                 -> t a + t b+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase40.stderr view
@@ -0,0 +1,29 @@+SCase40.hs:(12,14)-(19,8): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " e of\n\+      \               Zero                    -> 0\n\+      \               Num k                   -> k\n\+      \               Var s                   -> ite (s .== literal \"a\") 1 2\n\+      \               Let _ (Num i) b         -> i + t b\n\+      \               Let _ a       b         -> t a + t b\n\+      \               Add a b                 -> t a + t b\n\+      \      "+  ======>+    ite+      (isZero e) 0+      (ite+         (isNum e) ((\ k -> k) (getNum_1 e))+         (ite+            (isVar e) ((\ s -> ite (s .== literal "a") 1 2) (getVar_1 e))+            (ite+               ((.&&)+                  (isLet e)+                  ((\ _ _ b -> const (isNum (getLet_2 e)) b)+                     (getLet_1 e) (getLet_2 e) (getLet_3 e)))+               ((\ _ _ b -> let i = getNum_1 (getLet_2 e) in i + t b)+                  (getLet_1 e) (getLet_2 e) (getLet_3 e))+               (ite+                  (isLet e)+                  ((\ _ a b -> (t a) + t b) (getLet_1 e) (getLet_2 e) (getLet_3 e))+                  ((\ a b -> (t a) + t b) (getAdd_1 e) (getAdd_2 e))))))
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase41.hs view
@@ -0,0 +1,18 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV++-- Negative: nested pattern covers only a subset of Add; missing fallback for Add _ _+t :: SExpr -> SInteger+t e = [sCase| e of+               Zero          -> 0+               Num k         -> k+               Var s         -> ite (s .== literal "a") 1 2+               Add (Num i) j -> i + t j+               Let _   _a  b -> t b+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase41.stderr view
@@ -0,0 +1,18 @@+SCase41.hs:12:14: error: [GHC-39584]+    " SCase41.hs:16:16-28: sCase: Non-exhaustive match:+        Type       : Expr+        Constructor: Add _ j | isNum (getAdd_1 e)+      NB. Guarded match might fail.++    " In the quasi-quotation:+        [sCase| e of+               Zero          -> 0+               Num k         -> k+               Var s         -> ite (s .== literal "a") 1 2+               Add (Num i) j -> i + t j+               Let _   _a  b -> t b+      |]+   |+12 | t e = [sCase| e of+   |              ^^^^^...+
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase42.hs view
@@ -0,0 +1,18 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV++-- Negative: deeply nested pattern covers only a subset of the outermost Add; missing fallback+t :: SExpr -> SInteger+t e = [sCase| e of+               Zero                          -> 0+               Num k                         -> k+               Var s                         -> ite (s .== literal "a") 1 2+               Add (Add (Add (Num _) b) c) d -> t b + t c + t d+               Let _   _a  b                 -> t b+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase42.stderr view
@@ -0,0 +1,18 @@+SCase42.hs:12:14: error: [GHC-39584]+    " SCase42.hs:16:16-44: sCase: Non-exhaustive match:+        Type       : Expr+        Constructor: Add _ d | (Data.SBV.Core.Data..&&) (isAdd (getAdd_1 e)) ((Data.SBV.Core.Data..&&) (isAdd (getAdd_1 (getAdd_1 e))) (isNum (getAdd_1 (getAdd_1 (getAdd_1 e)))))+      NB. Guarded match might fail.++    " In the quasi-quotation:+        [sCase| e of+               Zero                          -> 0+               Num k                         -> k+               Var s                         -> ite (s .== literal "a") 1 2+               Add (Add (Add (Num _) b) c) d -> t b + t c + t d+               Let _   _a  b                 -> t b+      |]+   |+12 | t e = [sCase| e of+   |              ^^^^^...+
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase43.hs view
@@ -0,0 +1,19 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV++-- Positive: integer literal at top level (Num 1 -> ...)+t :: SExpr -> SInteger+t e = [sCase| e of+               Zero  -> 0+               Num 1 -> 100+               Num k -> k+               Var _ -> -1+               Add a b -> t a + t b+               Let _ _ b -> t b+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase43.stderr view
@@ -0,0 +1,24 @@+SCase43.hs:(12,14)-(19,8): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " e of\n\+      \               Zero  -> 0\n\+      \               Num 1 -> 100\n\+      \               Num k -> k\n\+      \               Var _ -> -1\n\+      \               Add a b -> t a + t b\n\+      \               Let _ _ b -> t b\n\+      \      "+  ======>+    ite+      (isZero e) 0+      (ite+         ((.&&) (isNum e) ((\ _ -> (.==) (getNum_1 e) 1) (getNum_1 e)))+         ((\ _ -> 100) (getNum_1 e))+         (ite+            (isNum e) ((\ k -> k) (getNum_1 e))+            (ite+               (isVar e) ((\ _ -> negate 1) (getVar_1 e))+               (ite+                  (isAdd e) ((\ a b -> (t a) + t b) (getAdd_1 e) (getAdd_2 e))+                  ((\ _ _ b -> t b) (getLet_1 e) (getLet_2 e) (getLet_3 e))))))
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase44.hs view
@@ -0,0 +1,19 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV++-- Positive: integer literal in nested position (Add (Num 0) j -> ...)+t :: SExpr -> SInteger+t e = [sCase| e of+               Zero          -> 0+               Num k         -> k+               Var _         -> -1+               Add (Num 0) j -> t j+               Add a       b -> t a + t b+               Let _ _     b -> t b+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase44.stderr view
@@ -0,0 +1,29 @@+SCase44.hs:(12,14)-(19,8): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " e of\n\+      \               Zero          -> 0\n\+      \               Num k         -> k\n\+      \               Var _         -> -1\n\+      \               Add (Num 0) j -> t j\n\+      \               Add a       b -> t a + t b\n\+      \               Let _ _     b -> t b\n\+      \      "+  ======>+    ite+      (isZero e) 0+      (ite+         (isNum e) ((\ k -> k) (getNum_1 e))+         (ite+            (isVar e) ((\ _ -> negate 1) (getVar_1 e))+            (ite+               ((.&&)+                  (isAdd e)+                  ((\ _ j+                      -> const+                           ((.&&) (isNum (getAdd_1 e)) ((.==) (getNum_1 (getAdd_1 e)) 0)) j)+                     (getAdd_1 e) (getAdd_2 e)))+               ((\ _ j -> t j) (getAdd_1 e) (getAdd_2 e))+               (ite+                  (isAdd e) ((\ a b -> (t a) + t b) (getAdd_1 e) (getAdd_2 e))+                  ((\ _ _ b -> t b) (getLet_1 e) (getLet_2 e) (getLet_3 e))))))
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase45.hs view
@@ -0,0 +1,19 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV++-- Positive: string literal in nested position (Var "x" -> ...)+t :: SExpr -> SInteger+t e = [sCase| e of+               Zero      -> 0+               Num k     -> k+               Var "x"   -> 42+               Var _     -> -1+               Add a b   -> t a + t b+               Let _ _ b -> t b+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase45.stderr view
@@ -0,0 +1,25 @@+SCase45.hs:(12,14)-(19,8): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " e of\n\+      \               Zero      -> 0\n\+      \               Num k     -> k\n\+      \               Var \"x\"   -> 42\n\+      \               Var _     -> -1\n\+      \               Add a b   -> t a + t b\n\+      \               Let _ _ b -> t b\n\+      \      "+  ======>+    ite+      (isZero e) 0+      (ite+         (isNum e) ((\ k -> k) (getNum_1 e))+         (ite+            ((.&&)+               (isVar e) ((\ _ -> (.==) (getVar_1 e) (literal "x")) (getVar_1 e)))+            ((\ _ -> 42) (getVar_1 e))+            (ite+               (isVar e) ((\ _ -> negate 1) (getVar_1 e))+               (ite+                  (isAdd e) ((\ a b -> (t a) + t b) (getAdd_1 e) (getAdd_2 e))+                  ((\ _ _ b -> t b) (getLet_1 e) (getLet_2 e) (getLet_3 e))))))
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase46.hs view
@@ -0,0 +1,19 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV++-- Positive: integer literals on both sides of nested pattern (Add (Num 1) (Num 2) -> ...)+t :: SExpr -> SInteger+t e = [sCase| e of+               Zero              -> 0+               Num k             -> k+               Var _             -> -1+               Add (Num 1) (Num 2) -> 99+               Add a           b -> t a + t b+               Let _       _   b -> t b+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase46.stderr view
@@ -0,0 +1,32 @@+SCase46.hs:(12,14)-(19,8): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " e of\n\+      \               Zero              -> 0\n\+      \               Num k             -> k\n\+      \               Var _             -> -1\n\+      \               Add (Num 1) (Num 2) -> 99\n\+      \               Add a           b -> t a + t b\n\+      \               Let _       _   b -> t b\n\+      \      "+  ======>+    ite+      (isZero e) 0+      (ite+         (isNum e) ((\ k -> k) (getNum_1 e))+         (ite+            (isVar e) ((\ _ -> negate 1) (getVar_1 e))+            (ite+               ((.&&)+                  (isAdd e)+                  ((\ _ _+                      -> (.&&)+                           (isNum (getAdd_1 e))+                           ((.&&)+                              ((.==) (getNum_1 (getAdd_1 e)) 1)+                              ((.&&) (isNum (getAdd_2 e)) ((.==) (getNum_1 (getAdd_2 e)) 2))))+                     (getAdd_1 e) (getAdd_2 e)))+               ((\ _ _ -> 99) (getAdd_1 e) (getAdd_2 e))+               (ite+                  (isAdd e) ((\ a b -> (t a) + t b) (getAdd_1 e) (getAdd_2 e))+                  ((\ _ _ b -> t b) (getLet_1 e) (getLet_2 e) (getLet_3 e))))))
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase47.hs view
@@ -0,0 +1,18 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV++-- Negative: Num 1 without a fallback for the Num constructor+t :: SExpr -> SInteger+t e = [sCase| e of+               Zero      -> 0+               Num 1     -> 100+               Var _     -> -1+               Add a b   -> t a + t b+               Let _ _ b -> t b+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase47.stderr view
@@ -0,0 +1,18 @@+SCase47.hs:12:14: error: [GHC-39584]+    " SCase47.hs:14:16-20: sCase: Non-exhaustive match:+        Type       : Expr+        Constructor: Num _ | (Data.SBV.Core.Data..==) (getNum_1 e) 1+      NB. Guarded match might fail.++    " In the quasi-quotation:+        [sCase| e of+               Zero      -> 0+               Num 1     -> 100+               Var _     -> -1+               Add a b   -> t a + t b+               Let _ _ b -> t b+      |]+   |+12 | t e = [sCase| e of+   |              ^^^^^...+
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase48.hs view
@@ -0,0 +1,18 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV++-- Negative: Add (Num 1) j without a fallback for the Add constructor+t :: SExpr -> SInteger+t e = [sCase| e of+               Zero          -> 0+               Num k         -> k+               Var _         -> -1+               Add (Num 1) j -> 100 + t j+               Let _ _     b -> t b+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase48.stderr view
@@ -0,0 +1,18 @@+SCase48.hs:12:14: error: [GHC-39584]+    " SCase48.hs:16:16-28: sCase: Non-exhaustive match:+        Type       : Expr+        Constructor: Add _ j | (Data.SBV.Core.Data..&&) (isNum (getAdd_1 e)) ((Data.SBV.Core.Data..==) (getNum_1 (getAdd_1 e)) 1)+      NB. Guarded match might fail.++    " In the quasi-quotation:+        [sCase| e of+               Zero          -> 0+               Num k         -> k+               Var _         -> -1+               Add (Num 1) j -> 100 + t j+               Let _ _     b -> t b+      |]+   |+12 | t e = [sCase| e of+   |              ^^^^^...+
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase49.hs view
@@ -0,0 +1,18 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV++-- Dump test: simple unguarded, all constructors, no guards/wildcards/nesting+t :: SExpr -> SInteger+t e = [sCase| e of+               Zero          -> 0+               Num i         -> i+               Var _         -> 1+               Add _ _       -> 2+               Let _ _ _     -> 3+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase49.stderr view
@@ -0,0 +1,12 @@+SCase49.hs:(12,14)-(18,8): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " e of\n\+      \               Zero          -> 0\n\+      \               Num i         -> i\n\+      \               Var _         -> 1\n\+      \               Add _ _       -> 2\n\+      \               Let _ _ _     -> 3\n\+      \      "+  ======>+    sCaseExpr 0 (\ i -> i) (\ _ -> 1) (\ _ _ -> 2) (\ _ _ _ -> 3) e
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase50.hs view
@@ -0,0 +1,20 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV++-- Dump test: multiple guards on same constructor (guard accumulation, ite chain)+t :: SExpr -> SInteger+t e = [sCase| e of+               Zero              -> 0+               Num i | i .< 3    -> i+                     | i .< 10   -> i + 1+               Num i             -> i + 2+               Var _             -> 1+               Add _ _           -> 2+               Let _ _ _         -> 3+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase50.stderr view
@@ -0,0 +1,28 @@+SCase50.hs:(12,14)-(20,8): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " e of\n\+      \               Zero              -> 0\n\+      \               Num i | i .< 3    -> i\n\+      \                     | i .< 10   -> i + 1\n\+      \               Num i             -> i + 2\n\+      \               Var _             -> 1\n\+      \               Add _ _           -> 2\n\+      \               Let _ _ _         -> 3\n\+      \      "+  ======>+    ite+      (isZero e) 0+      (ite+         ((.&&) (isNum e) ((\ i -> i .< 3) (getNum_1 e)))+         ((\ i -> i) (getNum_1 e))+         (ite+            ((.&&) (isNum e) ((\ i -> i .< 10) (getNum_1 e)))+            ((\ i -> i + 1) (getNum_1 e))+            (ite+               (isNum e) ((\ i -> i + 2) (getNum_1 e))+               (ite+                  (isVar e) ((\ _ -> 1) (getVar_1 e))+                  (ite+                     (isAdd e) ((\ _ _ -> 2) (getAdd_1 e) (getAdd_2 e))+                     ((\ _ _ _ -> 3) (getLet_1 e) (getLet_2 e) (getLet_3 e)))))))
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase51.hs view
@@ -0,0 +1,16 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV++-- Dump test: wildcard catch-all after some constructors (ite chain with default)+t :: SExpr -> SInteger+t e = [sCase| e of+               Zero          -> 0+               Num i         -> i+               _             -> 99+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase51.stderr view
@@ -0,0 +1,10 @@+SCase51.hs:(12,14)-(16,8): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " e of\n\+      \               Zero          -> 0\n\+      \               Num i         -> i\n\+      \               _             -> 99\n\+      \      "+  ======>+    sCaseExpr 0 (\ i -> i) (\ _ -> 99) (\ _ _ -> 99) (\ _ _ _ -> 99) e
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase52.hs view
@@ -0,0 +1,19 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV++-- Dump test: nested pattern with literal (synthetic guards, accessors, let-bindings)+t :: SExpr -> SInteger+t e = [sCase| e of+               Add (Num 0) j -> t j+               Add a b       -> t a + t b+               Zero          -> 0+               Num i         -> i+               Var _         -> 1+               Let _ _ _     -> 3+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase52.stderr view
@@ -0,0 +1,29 @@+SCase52.hs:(12,14)-(19,8): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " e of\n\+      \               Add (Num 0) j -> t j\n\+      \               Add a b       -> t a + t b\n\+      \               Zero          -> 0\n\+      \               Num i         -> i\n\+      \               Var _         -> 1\n\+      \               Let _ _ _     -> 3\n\+      \      "+  ======>+    ite+      ((.&&)+         (isAdd e)+         ((\ _ j+             -> const+                  ((.&&) (isNum (getAdd_1 e)) ((.==) (getNum_1 (getAdd_1 e)) 0)) j)+            (getAdd_1 e) (getAdd_2 e)))+      ((\ _ j -> t j) (getAdd_1 e) (getAdd_2 e))+      (ite+         (isAdd e) ((\ a b -> (t a) + t b) (getAdd_1 e) (getAdd_2 e))+         (ite+            (isZero e) 0+            (ite+               (isNum e) ((\ i -> i) (getNum_1 e))+               (ite+                  (isVar e) ((\ _ -> 1) (getVar_1 e))+                  ((\ _ _ _ -> 3) (getLet_1 e) (getLet_2 e) (getLet_3 e))))))
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase53.hs view
@@ -0,0 +1,20 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV++-- Dump test: nested pattern with user guard (combines nesting + guard accumulation)+t :: SExpr -> SInteger+t e = [sCase| e of+               Add (Num i) b | i .> 0   -> i + t b+                              | i .> -5  -> t b+               Add a b                   -> t a + t b+               Zero                      -> 0+               Num i                     -> i+               Var _                     -> 1+               Let _ _ _                 -> 3+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase53.stderr view
@@ -0,0 +1,44 @@+SCase53.hs:(12,14)-(20,8): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " e of\n\+      \               Add (Num i) b | i .> 0   -> i + t b\n\+      \                              | i .> -5  -> t b\n\+      \               Add a b                   -> t a + t b\n\+      \               Zero                      -> 0\n\+      \               Num i                     -> i\n\+      \               Var _                     -> 1\n\+      \               Let _ _ _                 -> 3\n\+      \      "+  ======>+    ite+      ((.&&)+         (isAdd e)+         ((\ _ b+             -> const+                  ((.&&)+                     (isNum (getAdd_1 e)) (let i = getNum_1 (getAdd_1 e) in i .> 0))+                  b)+            (getAdd_1 e) (getAdd_2 e)))+      ((\ _ b -> let i = getNum_1 (getAdd_1 e) in i + t b)+         (getAdd_1 e) (getAdd_2 e))+      (ite+         ((.&&)+            (isAdd e)+            ((\ _ b+                -> const+                     ((.&&)+                        (isNum (getAdd_1 e))+                        (let i = getNum_1 (getAdd_1 e) in i .> negate 5))+                     b)+               (getAdd_1 e) (getAdd_2 e)))+         ((\ _ b -> t b) (getAdd_1 e) (getAdd_2 e))+         (ite+            (isAdd e) ((\ a b -> (t a) + t b) (getAdd_1 e) (getAdd_2 e))+            (ite+               (isZero e) 0+               (ite+                  (isNum e) ((\ i -> i) (getNum_1 e))+                  (ite+                     (isVar e) ((\ _ -> 1) (getVar_1 e))+                     ((\ _ _ _ -> 3) (getLet_1 e) (getLet_2 e) (getLet_3 e)))))))
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase54.hs view
@@ -0,0 +1,14 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Test: sCase with Maybe (no guards)+module T where++import Data.SBV++t :: SMaybe Integer -> SInteger+t m = [sCase| m of+               Nothing -> 0+               Just x  -> x + 1+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase54.stderr view
@@ -0,0 +1,9 @@+SCase54.hs:(11,14)-(14,8): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " m of\n\+      \               Nothing -> 0\n\+      \               Just x  -> x + 1\n\+      \      "+  ======>+    Data.SBV.Maybe.sCaseMaybe 0 (\ x -> x + 1) m
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase55.hs view
@@ -0,0 +1,14 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Test: sCase with Either (no guards)+module T where++import Data.SBV++t :: SEither Integer Bool -> SInteger+t e = [sCase| e of+               Left a  -> a+               Right _ -> 0+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase55.stderr view
@@ -0,0 +1,9 @@+SCase55.hs:(11,14)-(14,8): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " e of\n\+      \               Left a  -> a\n\+      \               Right _ -> 0\n\+      \      "+  ======>+    Data.SBV.Either.sCaseEither (\ a -> a) (\ _ -> 0) e
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase56.hs view
@@ -0,0 +1,16 @@+{-# LANGUAGE QuasiQuotes     #-}+{-# LANGUAGE OverloadedLists #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Test: sCase with List (no guards)+module T where++import Prelude hiding (null, head, tail)+import Data.SBV++t :: SList Integer -> SInteger+t xs = [sCase| xs of+                []     -> 0+                y : ys -> y + t ys+       |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase56.stderr view
@@ -0,0 +1,12 @@+SCase56.hs:(13,15)-(16,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " xs of\n\+      \                []     -> 0\n\+      \                y : ys -> y + t ys\n\+      \       "+  ======>+    ite+      (Data.SBV.List.null xs) 0+      ((\ y ys -> y + t ys)+         (Data.SBV.List.head xs) (Data.SBV.List.tail xs))
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase57.hs view
@@ -0,0 +1,13 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Test: sCase with Tuple2+module T where++import Data.SBV++t :: STuple Integer Bool -> SInteger+t p = [sCase| p of+               (a, _) -> a + 1+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase57.stderr view
@@ -0,0 +1,8 @@+SCase57.hs:(11,14)-(13,8): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " p of\n\+      \               (a, _) -> a + 1\n\+      \      "+  ======>+    (\ a _ -> a + 1) (Data.SBV.Tuple._1 p) (Data.SBV.Tuple._2 p)
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase58.hs view
@@ -0,0 +1,17 @@+{-# LANGUAGE QuasiQuotes     #-}+{-# LANGUAGE OverloadedLists #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Test: sCase with List, nested cons pattern+module T where++import Prelude hiding (null, head, tail)+import Data.SBV++t :: SList Integer -> SInteger+t xs = [sCase| xs of+                []          -> 0+                a : (b : _) -> a + b+                _ : _       -> 1+       |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase58.stderr view
@@ -0,0 +1,28 @@+SCase58.hs:(13,15)-(17,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " xs of\n\+      \                []          -> 0\n\+      \                a : (b : _) -> a + b\n\+      \                _ : _       -> 1\n\+      \       "+  ======>+    ite+      (Data.SBV.List.null xs) 0+      (ite+         ((.&&)+            (sNot (Data.SBV.List.null xs))+            ((\ a _+                -> const+                     ((.&&)+                        (sNot (Data.SBV.List.null (Data.SBV.List.tail xs)))+                        ((.===)+                           (Data.SBV.List.tail xs)+                           (Data.SBV.List.head (Data.SBV.List.tail xs)+                              .: Data.SBV.List.tail (Data.SBV.List.tail xs))))+                     a)+               (Data.SBV.List.head xs) (Data.SBV.List.tail xs)))+         ((\ a _+             -> let b = Data.SBV.List.head (Data.SBV.List.tail xs) in a + b)+            (Data.SBV.List.head xs) (Data.SBV.List.tail xs))+         ((\ _ _ -> 1) (Data.SBV.List.head xs) (Data.SBV.List.tail xs)))
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase59.hs view
@@ -0,0 +1,15 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Test: sCase with Maybe, nested Either pattern+module T where++import Data.SBV++t :: SMaybe (Either Integer Bool) -> SInteger+t m = [sCase| m of+               Nothing          -> 0+               Just (Left x)    -> x+               Just (Right _)   -> 1+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase59.stderr view
@@ -0,0 +1,27 @@+SCase59.hs:(11,14)-(15,8): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " m of\n\+      \               Nothing          -> 0\n\+      \               Just (Left x)    -> x\n\+      \               Just (Right _)   -> 1\n\+      \      "+  ======>+    ite+      (Data.SBV.Maybe.isNothing m) 0+      (ite+         ((.&&)+            (Data.SBV.Maybe.isJust m)+            ((\ _ -> Data.SBV.Either.isLeft (Data.SBV.Maybe.getJust_1 m))+               (Data.SBV.Maybe.getJust_1 m)))+         ((\ _+             -> let x = Data.SBV.Either.getLeft_1 (Data.SBV.Maybe.getJust_1 m)+                in x)+            (Data.SBV.Maybe.getJust_1 m))+         (ite+            ((.&&)+               (Data.SBV.Maybe.isJust m)+               ((\ _ -> Data.SBV.Either.isRight (Data.SBV.Maybe.getJust_1 m))+                  (Data.SBV.Maybe.getJust_1 m)))+            ((\ _ -> 1) (Data.SBV.Maybe.getJust_1 m))+            (symWithKind "unmatched_sCase_Maybe_6989586621679035008")))
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase60.hs view
@@ -0,0 +1,17 @@+{-# LANGUAGE QuasiQuotes     #-}+{-# LANGUAGE OverloadedLists #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Test: sCase with List and guards+module T where++import Prelude hiding (null, head, tail)+import Data.SBV++t :: SList Integer -> SInteger+t xs = [sCase| xs of+                []         -> 0+                y : _ | y .== 5 -> 100+                _ : ys     -> t ys+       |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase60.stderr view
@@ -0,0 +1,19 @@+SCase60.hs:(13,15)-(17,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " xs of\n\+      \                []         -> 0\n\+      \                y : _ | y .== 5 -> 100\n\+      \                _ : ys     -> t ys\n\+      \       "+  ======>+    ite+      (Data.SBV.List.null xs) 0+      (ite+         ((.&&)+            (sNot (Data.SBV.List.null xs))+            ((\ y _ -> y .== 5)+               (Data.SBV.List.head xs) (Data.SBV.List.tail xs)))+         ((\ y _ -> const 100 y)+            (Data.SBV.List.head xs) (Data.SBV.List.tail xs))+         ((\ _ ys -> t ys) (Data.SBV.List.head xs) (Data.SBV.List.tail xs)))
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase61.hs view
@@ -0,0 +1,15 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Test: sCase with Maybe, guards on Just+module T where++import Data.SBV++t :: SMaybe Integer -> SInteger+t m = [sCase| m of+               Nothing        -> 0+               Just x | x .> 5 -> x * 2+               Just x         -> x+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase61.stderr view
@@ -0,0 +1,17 @@+SCase61.hs:(11,14)-(15,8): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " m of\n\+      \               Nothing        -> 0\n\+      \               Just x | x .> 5 -> x * 2\n\+      \               Just x         -> x\n\+      \      "+  ======>+    ite+      (Data.SBV.Maybe.isNothing m) 0+      (ite+         ((.&&)+            (Data.SBV.Maybe.isJust m)+            ((\ x -> x .> 5) (Data.SBV.Maybe.getJust_1 m)))+         ((\ x -> x * 2) (Data.SBV.Maybe.getJust_1 m))+         ((\ x -> x) (Data.SBV.Maybe.getJust_1 m)))
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase62.hs view
@@ -0,0 +1,14 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Test: sCase with Either, guards and wildcard+module T where++import Data.SBV++t :: SEither Integer Integer -> SInteger+t e = [sCase| e of+               Left x | x .> 0 -> x+               _               -> 0+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase62.stderr view
@@ -0,0 +1,13 @@+SCase62.hs:(11,14)-(14,8): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " e of\n\+      \               Left x | x .> 0 -> x\n\+      \               _               -> 0\n\+      \      "+  ======>+    ite+      ((.&&)+         (Data.SBV.Either.isLeft e)+         ((\ x -> x .> 0) (Data.SBV.Either.getLeft_1 e)))+      ((\ x -> x) (Data.SBV.Either.getLeft_1 e)) 0
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase63.hs view
@@ -0,0 +1,13 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Test: sCase with Tuple3+module T where++import Data.SBV++t :: STuple3 Integer Integer Bool -> SInteger+t p = [sCase| p of+               (a, b, _) -> a + b+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase63.stderr view
@@ -0,0 +1,9 @@+SCase63.hs:(11,14)-(13,8): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " p of\n\+      \               (a, b, _) -> a + b\n\+      \      "+  ======>+    (\ a b _ -> a + b)+      (Data.SBV.Tuple._1 p) (Data.SBV.Tuple._2 p) (Data.SBV.Tuple._3 p)
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase64.hs view
@@ -0,0 +1,16 @@+{-# LANGUAGE QuasiQuotes     #-}+{-# LANGUAGE OverloadedLists #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Test: sCase with List, wildcard only for cons+module T where++import Prelude hiding (null, head, tail)+import Data.SBV++t :: SList Integer -> SBool+t xs = [sCase| xs of+                []     -> sTrue+                _ : _  -> sFalse+       |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase64.stderr view
@@ -0,0 +1,11 @@+SCase64.hs:(13,15)-(16,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " xs of\n\+      \                []     -> sTrue\n\+      \                _ : _  -> sFalse\n\+      \       "+  ======>+    ite+      (Data.SBV.List.null xs) sTrue+      ((\ _ _ -> sFalse) (Data.SBV.List.head xs) (Data.SBV.List.tail xs))
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase65.hs view
@@ -0,0 +1,14 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Test: sCase with nested tuple inside Maybe+module T where++import Data.SBV++t :: SMaybe (Integer, Bool) -> SInteger+t m = [sCase| m of+               Nothing     -> 0+               Just (a, _) -> a+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase65.stderr view
@@ -0,0 +1,13 @@+SCase65.hs:(11,14)-(14,8): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " m of\n\+      \               Nothing     -> 0\n\+      \               Just (a, _) -> a\n\+      \      "+  ======>+    Data.SBV.Maybe.sCaseMaybe+      0+      (\ _+         -> let a = Data.SBV.Tuple._1 (Data.SBV.Maybe.getJust_1 m) in a)+      m
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase66.hs view
@@ -0,0 +1,17 @@+{-# LANGUAGE QuasiQuotes     #-}+{-# LANGUAGE OverloadedLists #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Test: sCase with nested list inside Either+module T where++import Prelude hiding (null, head, tail)+import Data.SBV++t :: SEither ([] Integer) Bool -> SInteger+t e = [sCase| e of+               Left (x : _) -> x+               Left []      -> 0+               Right _      -> 1+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase66.stderr view
@@ -0,0 +1,33 @@+SCase66.hs:(13,14)-(17,8): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " e of\n\+      \               Left (x : _) -> x\n\+      \               Left []      -> 0\n\+      \               Right _      -> 1\n\+      \      "+  ======>+    ite+      ((.&&)+         (Data.SBV.Either.isLeft e)+         ((\ _+             -> (.&&)+                  (sNot (Data.SBV.List.null (Data.SBV.Either.getLeft_1 e)))+                  ((.===)+                     (Data.SBV.Either.getLeft_1 e)+                     (Data.SBV.List.head (Data.SBV.Either.getLeft_1 e)+                        .: Data.SBV.List.tail (Data.SBV.Either.getLeft_1 e))))+            (Data.SBV.Either.getLeft_1 e)))+      ((\ _+          -> let x = Data.SBV.List.head (Data.SBV.Either.getLeft_1 e) in x)+         (Data.SBV.Either.getLeft_1 e))+      (ite+         ((.&&)+            (Data.SBV.Either.isLeft e)+            ((\ _ -> Data.SBV.List.null (Data.SBV.Either.getLeft_1 e))+               (Data.SBV.Either.getLeft_1 e)))+         ((\ _ -> 0) (Data.SBV.Either.getLeft_1 e))+         (ite+            (Data.SBV.Either.isRight e)+            ((\ _ -> 1) (Data.SBV.Either.getRight_1 e))+            (symWithKind "unmatched_sCase_Either_6989586621679034970")))
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase67.hs view
@@ -0,0 +1,14 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Test: sCase with Tuple2 with guard+module T where++import Data.SBV++t :: STuple Integer Integer -> SInteger+t p = [sCase| p of+               (a, b) | a .> b -> a+               (_, b)          -> b+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase67.stderr view
@@ -0,0 +1,12 @@+SCase67.hs:(11,14)-(14,8): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " p of\n\+      \               (a, b) | a .> b -> a\n\+      \               (_, b)          -> b\n\+      \      "+  ======>+    ite+      ((\ a b -> a .> b) (Data.SBV.Tuple._1 p) (Data.SBV.Tuple._2 p))+      ((\ a b -> const a b) (Data.SBV.Tuple._1 p) (Data.SBV.Tuple._2 p))+      ((\ _ b -> b) (Data.SBV.Tuple._1 p) (Data.SBV.Tuple._2 p))
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase68.hs view
@@ -0,0 +1,13 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Test: sCase with wildcard-only, no guards+module T where++import Data.SBV++t :: SInteger -> SInteger+t x = [sCase| x of+               _ -> x + 1+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase68.stderr view
@@ -0,0 +1,8 @@+SCase68.hs:(11,14)-(13,8): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " x of\n\+      \               _ -> x + 1\n\+      \      "+  ======>+    x + 1
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase69.hs view
@@ -0,0 +1,14 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Test: sCase with guarded wildcards only+module T where++import Data.SBV++t :: SInteger -> SInteger+t x = [sCase| x of+               _ | x .> 0 -> x+                 | sTrue   -> -x+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase69.stderr view
@@ -0,0 +1,9 @@+SCase69.hs:(11,14)-(14,8): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " x of\n\+      \               _ | x .> 0 -> x\n\+      \                 | sTrue   -> -x\n\+      \      "+  ======>+    ite (x .> 0) x (negate x)
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase70.hs view
@@ -0,0 +1,14 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Test: sCase with integer literal pattern and wildcard+module T where++import Data.SBV++t :: SInteger -> SBool+t x = [sCase| x of+               0 -> sTrue+               _ -> sFalse+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase70.stderr view
@@ -0,0 +1,9 @@+SCase70.hs:(11,14)-(14,8): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " x of\n\+      \               0 -> sTrue\n\+      \               _ -> sFalse\n\+      \      "+  ======>+    ite ((.==) x 0) sTrue sFalse
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase71.hs view
@@ -0,0 +1,16 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Test: sCase with multiple integer literals and wildcard+module T where++import Data.SBV++t :: SInteger -> SInteger+t x = [sCase| x of+               0 -> 10+               1 -> 20+               2 -> 30+               _ -> x+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase71.stderr view
@@ -0,0 +1,11 @@+SCase71.hs:(11,14)-(16,8): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " x of\n\+      \               0 -> 10\n\+      \               1 -> 20\n\+      \               2 -> 30\n\+      \               _ -> x\n\+      \      "+  ======>+    ite ((.==) x 0) 10 (ite ((.==) x 1) 20 (ite ((.==) x 2) 30 x))
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase72.hs view
@@ -0,0 +1,14 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Test: sCase with integer literal and variable binding+module T where++import Data.SBV++t :: SInteger -> SInteger+t x = [sCase| x of+               0 -> 0+               n -> n + 1+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase72.stderr view
@@ -0,0 +1,9 @@+SCase72.hs:(11,14)-(14,8): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " x of\n\+      \               0 -> 0\n\+      \               n -> n + 1\n\+      \      "+  ======>+    ite ((.==) x 0) 0 (let n = x in n + 1)
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase73.hs view
@@ -0,0 +1,15 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Test: sCase with char literal patterns+module T where++import Data.SBV++t :: SChar -> SBool+t c = [sCase| c of+               'a' -> sTrue+               'b' -> sTrue+               _   -> sFalse+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase73.stderr view
@@ -0,0 +1,12 @@+SCase73.hs:(11,14)-(15,8): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " c of\n\+      \               'a' -> sTrue\n\+      \               'b' -> sTrue\n\+      \               _   -> sFalse\n\+      \      "+  ======>+    ite+      ((.==) c (literal 'a')) sTrue+      (ite ((.==) c (literal 'b')) sTrue sFalse)
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase74.hs view
@@ -0,0 +1,15 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Test: sCase with integer literal and guard+module T where++import Data.SBV++t :: SInteger -> SInteger -> SInteger+t x y = [sCase| x of+                 0         -> y+                 _ | x .> y -> x+                   | sTrue  -> y+        |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase74.stderr view
@@ -0,0 +1,10 @@+SCase74.hs:(11,16)-(15,10): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " x of\n\+      \                 0         -> y\n\+      \                 _ | x .> y -> x\n\+      \                   | sTrue  -> y\n\+      \        "+  ======>+    ite ((.==) x 0) y (ite (x .> y) x y)
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase75.hs view
@@ -0,0 +1,15 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Test: sCase with string literal patterns+module T where++import Data.SBV++t :: SString -> SInteger+t s = [sCase| s of+               "hello" -> 1+               "world" -> 2+               _       -> 0+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase75.stderr view
@@ -0,0 +1,11 @@+SCase75.hs:(11,14)-(15,8): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " s of\n\+      \               \"hello\" -> 1\n\+      \               \"world\" -> 2\n\+      \               _       -> 0\n\+      \      "+  ======>+    ite+      ((.==) s (literal "hello")) 1 (ite ((.==) s (literal "world")) 2 0)
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase76.hs view
@@ -0,0 +1,15 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Test: sCase with negative integer literal (uses LitP with negative value)+module T where++import Data.SBV++t :: SInteger -> SBool+t x = [sCase| x of+               0    -> sTrue+               (-1) -> sTrue+               _    -> sFalse+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase76.stderr view
@@ -0,0 +1,10 @@+SCase76.hs:(11,14)-(15,8): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " x of\n\+      \               0    -> sTrue\n\+      \               (-1) -> sTrue\n\+      \               _    -> sFalse\n\+      \      "+  ======>+    ite ((.==) x 0) sTrue (ite ((.==) x (-1)) sTrue sFalse)
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase77.hs view
@@ -0,0 +1,16 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Test: sCase with integer literal patterns (no dump, just compilation check)+-- Tests that the generated code actually type-checks with SBV types+module T where++import Data.SBV++clamp :: SInteger -> SInteger+clamp x = [sCase| x of+                   0 -> 0+                   1 -> 1+                   n -> ite (n .> 0) 100 (-100)+           |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase77.stderr view
@@ -0,0 +1,12 @@+SCase77.hs:(12,18)-(16,13): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " x of\n\+      \                   0 -> 0\n\+      \                   1 -> 1\n\+      \                   n -> ite (n .> 0) 100 (-100)\n\+      \           "+  ======>+    ite+      ((.==) x 0) 0+      (ite ((.==) x 1) 1 (let n = x in ite (n .> 0) 100 (negate 100)))
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase78.hs view
@@ -0,0 +1,14 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Test: sCase with Bool constructor patterns+module T where++import Data.SBV++t :: SBool -> SBool+t x = [sCase| x of+               True  -> sTrue+               False -> sFalse+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase78.stderr view
@@ -0,0 +1,9 @@+SCase78.hs:(11,14)-(14,8): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " x of\n\+      \               True  -> sTrue\n\+      \               False -> sFalse\n\+      \      "+  ======>+    ite x sTrue sFalse
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase79.hs view
@@ -0,0 +1,15 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Test: sCase with Bool patterns and guard+module T where++import Data.SBV++t :: SBool -> SInteger -> SInteger+t b x = [sCase| b of+                 True  | x .> 0 -> x+                 True           -> 0+                 False          -> -x+        |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase79.stderr view
@@ -0,0 +1,10 @@+SCase79.hs:(11,16)-(15,10): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " b of\n\+      \                 True  | x .> 0 -> x\n\+      \                 True           -> 0\n\+      \                 False          -> -x\n\+      \        "+  ======>+    ite ((.&&) b (x .> 0)) x (ite b 0 (negate x))
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase80.hs view
@@ -0,0 +1,13 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Test: sCase Bool non-exhaustive (only True, no wildcard) — should fail+module T where++import Data.SBV++t :: SBool -> SInteger+t x = [sCase| x of+               True -> 1+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase80.stderr view
@@ -0,0 +1,16 @@+SCase80.hs:11:14: error: [GHC-39584]+    " sCase: Pattern match(es) are non-exhaustive.+        Not matched     : False+        Patterns of type: Bool+        Must match each : True, False++      You can use a '_' to match multiple cases.++    " In the quasi-quotation:+        [sCase| x of+               True -> 1+      |]+   |+11 | t x = [sCase| x of+   |              ^^^^^...+
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase81.hs view
@@ -0,0 +1,14 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Test: sCase Bool with wildcard catch-all+module T where++import Data.SBV++t :: SBool -> SInteger+t x = [sCase| x of+               True -> 1+               _    -> 0+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase81.stderr view
@@ -0,0 +1,9 @@+SCase81.hs:(11,14)-(14,8): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " x of\n\+      \               True -> 1\n\+      \               _    -> 0\n\+      \      "+  ======>+    ite x 1 0
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase82.hs view
@@ -0,0 +1,16 @@+{-# LANGUAGE QuasiQuotes #-}+{-# LANGUAGE DataKinds   #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Test: sCase with Word8 integer literal patterns+module T where++import Data.SBV++t :: SWord8 -> SWord8+t x = [sCase| x of+               0 -> 10+               1 -> 20+               _ -> x+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase82.stderr view
@@ -0,0 +1,10 @@+SCase82.hs:(12,14)-(16,8): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " x of\n\+      \               0 -> 10\n\+      \               1 -> 20\n\+      \               _ -> x\n\+      \      "+  ======>+    ite ((.==) x 0) 10 (ite ((.==) x 1) 20 x)
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase83.hs view
@@ -0,0 +1,17 @@+{-# LANGUAGE QuasiQuotes #-}+{-# LANGUAGE DataKinds   #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Test: sCase with Int16 integer literals, variable binding, and guard+module T where++import Data.SBV++t :: SInt16 -> SInt16+t x = [sCase| x of+               0          -> 0+               1          -> 100+               n | n .> 0 -> n+                 | sTrue   -> -n+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase83.stderr view
@@ -0,0 +1,16 @@+SCase83.hs:(12,14)-(17,8): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " x of\n\+      \               0          -> 0\n\+      \               1          -> 100\n\+      \               n | n .> 0 -> n\n\+      \                 | sTrue   -> -n\n\+      \      "+  ======>+    ite+      ((.==) x 0) 0+      (ite+         ((.==) x 1) 100+         (ite+            (let n = x in n .> 0) (let n = x in n) (let n = x in negate n)))
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase84.hs view
@@ -0,0 +1,14 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Test: sCase Integer non-exhaustive (all guarded, no catch-all) — should fail+module T where++import Data.SBV++t :: SInteger -> SBool+t x = [sCase| x of+               0 -> sTrue+               1 -> sFalse+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase84.stderr view
@@ -0,0 +1,14 @@+SCase84.hs:11:14: error: [GHC-39584]+    " SCase84.hs:12:16: sCase: Non-exhaustive pattern match.+        All branches are guarded; add an unguarded wildcard or variable+        as the last branch to ensure all cases are covered.++    " In the quasi-quotation:+        [sCase| x of+               0 -> sTrue+               1 -> sFalse+      |]+   |+11 | t x = [sCase| x of+   |              ^^^^^...+
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase85.hs view
@@ -0,0 +1,14 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Test: sCase Bool reversed order (False first, then True)+module T where++import Data.SBV++t :: SBool -> SInteger+t x = [sCase| x of+               False -> 0+               True  -> 1+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase85.stderr view
@@ -0,0 +1,9 @@+SCase85.hs:(11,14)-(14,8): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " x of\n\+      \               False -> 0\n\+      \               True  -> 1\n\+      \      "+  ======>+    ite (sNot x) 0 1
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase86.hs view
@@ -0,0 +1,16 @@+{-# LANGUAGE QuasiQuotes #-}+{-# LANGUAGE DataKinds   #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Test: sCase with Word8 and mixed literal/variable/wildcard+module T where++import Data.SBV++t :: SWord8 -> SWord8 -> SWord8+t x y = [sCase| x of+                 0         -> y+                 n | n .> y -> n+                   | sTrue  -> y+        |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase86.stderr view
@@ -0,0 +1,10 @@+SCase86.hs:(12,16)-(16,10): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " x of\n\+      \                 0         -> y\n\+      \                 n | n .> y -> n\n\+      \                   | sTrue  -> y\n\+      \        "+  ======>+    ite ((.==) x 0) y (ite (let n = x in n .> y) (let n = x in n) y)
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase87.hs view
@@ -0,0 +1,14 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Test: sCase String non-exhaustive (only literals, no catch-all) — should fail+module T where++import Data.SBV++t :: SString -> SInteger+t s = [sCase| s of+               "hello" -> 1+               "world" -> 2+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase87.stderr view
@@ -0,0 +1,14 @@+SCase87.hs:11:14: error: [GHC-39584]+    " SCase87.hs:12:16-22: sCase: Non-exhaustive pattern match.+        All branches are guarded; add an unguarded wildcard or variable+        as the last branch to ensure all cases are covered.++    " In the quasi-quotation:+        [sCase| s of+               "hello" -> 1+               "world" -> 2+      |]+   |+11 | t s = [sCase| s of+   |              ^^^^^...+
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase88.hs view
@@ -0,0 +1,14 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Test: sCase Char non-exhaustive (only literals, no catch-all) — should fail+module T where++import Data.SBV++t :: SChar -> SBool+t c = [sCase| c of+               'x' -> sTrue+               'y' -> sFalse+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase88.stderr view
@@ -0,0 +1,14 @@+SCase88.hs:11:14: error: [GHC-39584]+    " SCase88.hs:12:16-18: sCase: Non-exhaustive pattern match.+        All branches are guarded; add an unguarded wildcard or variable+        as the last branch to ensure all cases are covered.++    " In the quasi-quotation:+        [sCase| c of+               'x' -> sTrue+               'y' -> sFalse+      |]+   |+11 | t c = [sCase| c of+   |              ^^^^^...+
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase89.hs view
@@ -0,0 +1,19 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++module T where++import Expr+import Data.SBV++-- Dump test: nested pattern with user guard (combines nesting + guard accumulation)+t :: SExpr -> SInteger+t e = [sCase| e of+               Add (Num i) b | i .> 0   -> i + t b+                              | i .> -5  -> t b+               Zero                      -> 0+               Num i                     -> i+               Var _                     -> 1+               Let _ _ _                 -> 3+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase89.stderr view
@@ -0,0 +1,43 @@+SCase89.hs:(12,14)-(19,8): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " e of\n\+      \               Add (Num i) b | i .> 0   -> i + t b\n\+      \                              | i .> -5  -> t b\n\+      \               Zero                      -> 0\n\+      \               Num i                     -> i\n\+      \               Var _                     -> 1\n\+      \               Let _ _ _                 -> 3\n\+      \      "+  ======>+    ite+      ((.&&)+         (isAdd e)+         ((\ _ b+             -> const+                  ((.&&)+                     (isNum (getAdd_1 e)) (let i = getNum_1 (getAdd_1 e) in i .> 0))+                  b)+            (getAdd_1 e) (getAdd_2 e)))+      ((\ _ b -> let i = getNum_1 (getAdd_1 e) in i + t b)+         (getAdd_1 e) (getAdd_2 e))+      (ite+         ((.&&)+            (isAdd e)+            ((\ _ b+                -> const+                     ((.&&)+                        (isNum (getAdd_1 e))+                        (let i = getNum_1 (getAdd_1 e) in i .> negate 5))+                     b)+               (getAdd_1 e) (getAdd_2 e)))+         ((\ _ b -> t b) (getAdd_1 e) (getAdd_2 e))+         (ite+            (isZero e) 0+            (ite+               (isNum e) ((\ i -> i) (getNum_1 e))+               (ite+                  (isVar e) ((\ _ -> 1) (getVar_1 e))+                  (ite+                     (isLet e) ((\ _ _ _ -> 3) (getLet_1 e) (getLet_2 e) (getLet_3 e))+                     (symWithKind "unmatched_sCase_Expr_6989586621679080570"))))))
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase90.hs view
@@ -0,0 +1,20 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Positive: Nested case expressions. Inner case on Maybe inside outer case on Expr.+module T where++import Expr+import Data.SBV++t :: SExpr -> SMaybe Integer -> SInteger+t e m = [sCase| e of+                Zero      -> case m of+                               Nothing -> 0+                               Just v  -> v+                Num k     -> k+                Var _     -> -1+                Add a b   -> t a m + t b m+                Let _ _ b -> t b m+       |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase90.stderr view
@@ -0,0 +1,16 @@+SCase90.hs:(12,16)-(20,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " e of\n\+      \                Zero      -> case m of\n\+      \                               Nothing -> 0\n\+      \                               Just v  -> v\n\+      \                Num k     -> k\n\+      \                Var _     -> -1\n\+      \                Add a b   -> t a m + t b m\n\+      \                Let _ _ b -> t b m\n\+      \       "+  ======>+    sCaseExpr+      (Data.SBV.Maybe.sCaseMaybe 0 (\ v -> v) m) (\ k -> k)+      (\ _ -> negate 1) (\ a b -> (t a m) + t b m) (\ _ _ b -> t b m) e
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase91.hs view
@@ -0,0 +1,23 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Positive: Same-type nesting. Inner case on Expr inside outer case on Expr.+module T where++import Expr+import Data.SBV++t :: SExpr -> SInteger+t e = [sCase| e of+               Zero      -> 0+               Num k     -> k+               Var _     -> -1+               Add a b   -> case a of+                              Zero    -> t b+                              Num k   -> k + t b+                              Var _   -> t b+                              Add _ _ -> t a + t b+                              Let _ _ c -> t c + t b+               Let _ _ b -> t b+      |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase91.stderr view
@@ -0,0 +1,23 @@+SCase91.hs:(12,14)-(23,8): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " e of\n\+      \               Zero      -> 0\n\+      \               Num k     -> k\n\+      \               Var _     -> -1\n\+      \               Add a b   -> case a of\n\+      \                              Zero    -> t b\n\+      \                              Num k   -> k + t b\n\+      \                              Var _   -> t b\n\+      \                              Add _ _ -> t a + t b\n\+      \                              Let _ _ c -> t c + t b\n\+      \               Let _ _ b -> t b\n\+      \      "+  ======>+    sCaseExpr+      0 (\ k -> k) (\ _ -> negate 1)+      (\ a b+         -> sCaseExpr+              (t b) (\ k -> k + t b) (\ _ -> t b) (\ _ _ -> (t a) + t b)+              (\ _ _ c -> (t c) + t b) a)+      (\ _ _ b -> t b) e
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase92.hs view
@@ -0,0 +1,22 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Positive: Deep nesting (3 levels). Outer Expr, inner Maybe, innermost Either.+module T where++import Expr+import Data.SBV++t :: SExpr -> SMaybe (Either Integer Bool) -> SInteger+t e m = [sCase| e of+                Zero  -> case m of+                           Nothing -> 0+                           Just v  -> case v of+                                        Left  x -> x+                                        Right _ -> 1+                Num k     -> k+                Var _     -> -1+                Add a b   -> t a m + t b m+                Let _ _ b -> t b m+       |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase92.stderr view
@@ -0,0 +1,20 @@+SCase92.hs:(12,16)-(22,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " e of\n\+      \                Zero  -> case m of\n\+      \                           Nothing -> 0\n\+      \                           Just v  -> case v of\n\+      \                                        Left  x -> x\n\+      \                                        Right _ -> 1\n\+      \                Num k     -> k\n\+      \                Var _     -> -1\n\+      \                Add a b   -> t a m + t b m\n\+      \                Let _ _ b -> t b m\n\+      \       "+  ======>+    sCaseExpr+      (Data.SBV.Maybe.sCaseMaybe+         0 (\ v -> Data.SBV.Either.sCaseEither (\ x -> x) (\ _ -> 1) v) m)+      (\ k -> k) (\ _ -> negate 1) (\ a b -> (t a m) + t b m)+      (\ _ _ b -> t b m) e
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase93.hs view
@@ -0,0 +1,22 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Positive: Nested case in multiple branches of outer case.+module T where++import Expr+import Data.SBV++t :: SExpr -> SBool -> SInteger+t e b = [sCase| e of+                Zero      -> case b of+                               True  -> 1+                               False -> 0+                Num k     -> case b of+                               True  -> k+                               False -> -k+                Var _     -> -1+                Add a _   -> t a b+                Let _ _ c -> t c b+       |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase93.stderr view
@@ -0,0 +1,18 @@+SCase93.hs:(12,16)-(22,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " e of\n\+      \                Zero      -> case b of\n\+      \                               True  -> 1\n\+      \                               False -> 0\n\+      \                Num k     -> case b of\n\+      \                               True  -> k\n\+      \                               False -> -k\n\+      \                Var _     -> -1\n\+      \                Add a _   -> t a b\n\+      \                Let _ _ c -> t c b\n\+      \       "+  ======>+    sCaseExpr+      (ite b 1 0) (\ k -> ite b k (negate k)) (\ _ -> negate 1)+      (\ a _ -> t a b) (\ _ _ c -> t c b) e
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase94.hs view
@@ -0,0 +1,20 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Positive: Nested case with wildcard in inner case.+module T where++import Expr+import Data.SBV++t :: SExpr -> SMaybe Integer -> SInteger+t e m = [sCase| e of+                Zero  -> case m of+                           Just v -> v+                           _      -> 0+                Num k     -> k+                _         -> case m of+                               Nothing -> -1+                               _       -> 42+       |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase94.stderr view
@@ -0,0 +1,18 @@+SCase94.hs:(12,16)-(20,9): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " e of\n\+      \                Zero  -> case m of\n\+      \                           Just v -> v\n\+      \                           _      -> 0\n\+      \                Num k     -> k\n\+      \                _         -> case m of\n\+      \                               Nothing -> -1\n\+      \                               _       -> 42\n\+      \       "+  ======>+    sCaseExpr+      (Data.SBV.Maybe.sCaseMaybe 0 (\ v -> v) m) (\ k -> k)+      (\ _ -> Data.SBV.Maybe.sCaseMaybe (negate 1) (\ _ -> 42) m)+      (\ _ _ -> Data.SBV.Maybe.sCaseMaybe (negate 1) (\ _ -> 42) m)+      (\ _ _ _ -> Data.SBV.Maybe.sCaseMaybe (negate 1) (\ _ -> 42) m) e
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase95.hs view
@@ -0,0 +1,19 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Negative: Non-exhaustive inner case (missing Nothing).+module T where++import Expr+import Data.SBV++t :: SExpr -> SMaybe Integer -> SInteger+t e m = [sCase| e of+                Zero      -> case m of+                               Just v -> v+                Num k     -> k+                Var _     -> -1+                Add a b   -> t a m + t b m+                Let _ _ b -> t b m+       |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase95.stderr view
@@ -0,0 +1,21 @@+SCase95.hs:12:16: error: [GHC-39584]+    " sCase: Pattern match(es) are non-exhaustive.+        Not matched     : Nothing+        Patterns of type: Maybe+        Must match each : Nothing, Just++      You can use a '_' to match multiple cases.++    " In the quasi-quotation:+        [sCase| e of+                Zero      -> case m of+                               Just v -> v+                Num k     -> k+                Var _     -> -1+                Add a b   -> t a m + t b m+                Let _ _ b -> t b m+       |]+   |+12 | t e m = [sCase| e of+   |                ^^^^^...+
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase96.hs view
@@ -0,0 +1,21 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Negative: Overlapping patterns in inner case (duplicate Just).+module T where++import Expr+import Data.SBV++t :: SExpr -> SMaybe Integer -> SInteger+t e m = [sCase| e of+                Zero      -> case m of+                               Nothing -> 0+                               Just v  -> v+                               Just _  -> 42+                Num k     -> k+                Var _     -> -1+                Add a b   -> t a m + t b m+                Let _ _ b -> t b m+       |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase96.stderr view
@@ -0,0 +1,22 @@+SCase96.hs:12:16: error: [GHC-39584]+    " sCase: Overlapping case constructors:+        Type       : Maybe+        Constructor: Just _+      Overlaps with:+        SCase96.hs:(12,16)-(21,10): Just v++    " In the quasi-quotation:+        [sCase| e of+                Zero      -> case m of+                               Nothing -> 0+                               Just v  -> v+                               Just _  -> 42+                Num k     -> k+                Var _     -> -1+                Add a b   -> t a m + t b m+                Let _ _ b -> t b m+       |]+   |+12 | t e m = [sCase| e of+   |                ^^^^^...+
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase97.hs view
@@ -0,0 +1,23 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Negative: Inner case on ADT without mkSymbolic.+module T where++import Expr+import Data.SBV++data Color = Red | Green | Blue++t :: SExpr -> Color -> SInteger+t e c = [sCase| e of+                Zero      -> case c of+                               Red   -> 0+                               Green -> 1+                               Blue  -> 2+                Num k     -> k+                Var _     -> -1+                Add a b   -> t a c + t b c+                Let _ _ b -> t b c+       |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase97.stderr view
@@ -0,0 +1,17 @@+SCase97.hs:14:16: error: [GHC-79890]+    " Red is not in the type environment at a reify+    " In the quasi-quotation:+        [sCase| e of+                Zero      -> case c of+                               Red   -> 0+                               Green -> 1+                               Blue  -> 2+                Num k     -> k+                Var _     -> -1+                Add a b   -> t a c + t b c+                Let _ _ b -> t b c+       |]+   |+14 | t e c = [sCase| e of+   |                ^^^^^...+
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase98.hs view
@@ -0,0 +1,19 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Negative: Non-exhaustive guarded inner case (missing Nothing, guard might fail).+module T where++import Expr+import Data.SBV++t :: SExpr -> SMaybe Integer -> SInteger+t e m = [sCase| e of+                Zero      -> case m of+                               Just v | v .> 0 -> v+                Num k     -> k+                Var _     -> -1+                Add a b   -> t a m + t b m+                Let _ _ b -> t b m+       |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase98.stderr view
@@ -0,0 +1,19 @@+SCase98.hs:12:16: error: [GHC-39584]+    " sCase: Non-exhaustive match:+        Type       : Maybe+        Constructor: Just v | v .> 0+      NB. Guarded match might fail.++    " In the quasi-quotation:+        [sCase| e of+                Zero      -> case m of+                               Just v | v .> 0 -> v+                Num k     -> k+                Var _     -> -1+                Add a b   -> t a m + t b m+                Let _ _ b -> t b m+       |]+   |+12 | t e m = [sCase| e of+   |                ^^^^^...+
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase99.hs view
@@ -0,0 +1,24 @@+{-# LANGUAGE QuasiQuotes #-}++{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}++-- Positive: Deep nesting (4 levels). Outer Expr, inner Maybe, inner Either, innermost Bool.+module T where++import Expr+import Data.SBV++t :: SExpr -> SMaybe (Either Integer Bool) -> SBool -> SInteger+t e m b = [sCase| e of+                  Zero      -> case m of+                                 Nothing -> 0+                                 Just v  -> case v of+                                              Left x  -> case b of+                                                           True  -> x+                                                           False -> -x+                                              Right _ -> 1+                  Num k     -> k+                  Var _     -> -1+                  Add a _   -> t a m b+                  Let _ _ c -> t c m b+         |]
+ SBVTestSuite/TestSuite/CompileTests/SCase/SCase99.stderr view
@@ -0,0 +1,26 @@+SCase99.hs:(12,18)-(24,11): Splicing expression+    ghc-internal:GHC.Internal.TH.Quote.quoteExp+      sCase+      " e of\n\+      \                  Zero      -> case m of\n\+      \                                 Nothing -> 0\n\+      \                                 Just v  -> case v of\n\+      \                                              Left x  -> case b of\n\+      \                                                           True  -> x\n\+      \                                                           False -> -x\n\+      \                                              Right _ -> 1\n\+      \                  Num k     -> k\n\+      \                  Var _     -> -1\n\+      \                  Add a _   -> t a m b\n\+      \                  Let _ _ c -> t c m b\n\+      \         "+  ======>+    sCaseExpr+      (Data.SBV.Maybe.sCaseMaybe+         0+         (\ v+            -> Data.SBV.Either.sCaseEither+                 (\ x -> ite b x (negate x)) (\ _ -> 1) v)+         m)+      (\ k -> k) (\ _ -> negate 1) (\ a _ -> t a m b)+      (\ _ _ c -> t c m b) e
SBVTestSuite/TestSuite/Optimization/Basics.hs view
@@ -9,18 +9,26 @@ -- Test suite for optimization routines ----------------------------------------------------------------------------- +{-# LANGUAGE ScopedTypeVariables #-} {-# OPTIONS_GHC -Wall -Werror #-}  module TestSuite.Optimization.Basics(tests) where  import Utils.SBVTestFramework+import Data.SBV.Control +import Control.Monad++import qualified Control.Exception as C+ -- Test suite tests :: TestTree tests =   testGroup "Optimization.Basics" $        [ goldenVsStringShow "optBasics1" (optimize Lexicographic optBasics1)        , goldenVsStringShow "optBasics2" (optimize Lexicographic optBasics2)+       , goldenCapturedIO   "qOpt_1"     (qOpt False)+       , goldenCapturedIO   "qOpt_2"     (qOpt True)        ]     ++ [ goldenVsStringShow ("optBasicsRange_" ++ n) (optimize Lexicographic f)        | (n, f) <- [ ("08_unsigned_max", sWord8  "x" >>= maximize "m")@@ -60,3 +68,18 @@                 constrain $ y .> 1                  minimize "x_plus_y" $ x+y++qOpt :: Bool -> FilePath -> IO ()+qOpt mb rf = testQuery $ do+                vs <- forM [1 .. 5] $ \i -> do x <- sInteger ("x" <> show (i::Int))+                                               constrain $ 1 .<= x+                                               when mb $ constrain $ x .< 10+                                               maximize ("goal" <> show i) x+                                               pure x+                query $ do cs <- checkSat+                           case cs of+                             Sat -> forM vs getValue+                             _   -> pure []+ where testQuery fv = do r <- runSMTWith defaultSMTCfg{verbose=True, redirectVerbose=Just rf} fv+                         appendFile rf ("\n FINAL:" ++ show r ++ "\nDONE!\n")+                      `C.catch` (\(e :: C.SomeException) -> appendFile rf ("\nEXCEPTION CAUGHT:\n" ++ show e ++ "\n"))
SBVTestSuite/TestSuite/Optimization/NoOpt.hs view
@@ -9,9 +9,9 @@ -- Check that if optimization is done, there must be goals and vice versa ----------------------------------------------------------------------------- -{-# OPTIONS_GHC -Wall -Werror #-}- {-# LANGUAGE ScopedTypeVariables #-}++{-# OPTIONS_GHC -Wall -Werror #-}  module TestSuite.Optimization.NoOpt(tests) where 
SBVTestSuite/TestSuite/Overflows/Arithmetic.hs view
@@ -11,7 +11,7 @@  {-# LANGUAGE DataKinds           #-} {-# LANGUAGE FlexibleContexts    #-}-{-# LANGUAGE Rank2Types          #-}+{-# LANGUAGE RankNTypes          #-} {-# LANGUAGE TypeApplications    #-} {-# LANGUAGE TypeOperators       #-} {-# LANGUAGE ScopedTypeVariables #-}
SBVTestSuite/TestSuite/Overflows/Casts.hs view
@@ -9,7 +9,7 @@ -- Test suite for overflow checking ----------------------------------------------------------------------------- -{-# LANGUAGE Rank2Types          #-}+{-# LANGUAGE RankNTypes          #-} {-# LANGUAGE ScopedTypeVariables #-}  {-# OPTIONS_GHC -Wall -Werror #-}
SBVTestSuite/TestSuite/Puzzles/Sudoku.hs view
@@ -15,7 +15,6 @@  import Documentation.SBV.Examples.Puzzles.Sudoku -import Data.Maybe (fromMaybe) import Utils.SBVTestFramework  tests :: TestTree@@ -27,4 +26,4 @@ checkPuzzle :: Puzzle -> IO Bool checkPuzzle p = do final <- fillBoard p                    let vld = valid (map (map literal) final)-                   pure $ fromMaybe False (unliteral vld)+                   pure $ Just True == unliteral vld
SBVTestSuite/TestSuite/Queries/Enums.hs view
@@ -9,12 +9,10 @@ -- Test suite for Documentation.SBV.Examples.Uninterpreted.AUF ----------------------------------------------------------------------------- -{-# LANGUAGE DeriveAnyClass      #-}-{-# LANGUAGE DeriveDataTypeable  #-} {-# LANGUAGE FlexibleInstances   #-} {-# LANGUAGE ScopedTypeVariables #-}-{-# LANGUAGE StandaloneDeriving  #-} {-# LANGUAGE TemplateHaskell     #-}+{-# LANGUAGE TypeApplications    #-}  {-# OPTIONS_GHC -Wall -Werror #-} @@ -24,8 +22,8 @@  import Utils.SBVTestFramework -data BinOp  = Plus | Minus | Times deriving (Enum, Bounded, Ord, Eq)-mkSymbolicEnumeration ''BinOp+data BinOp  = Plus | Minus | Times+mkSymbolic [''BinOp]  -- Test suite tests :: TestTree
SBVTestSuite/TestSuite/Queries/FreshVars.hs view
@@ -9,14 +9,12 @@ -- Testing fresh-vars in query mode ----------------------------------------------------------------------------- -{-# LANGUAGE DeriveAnyClass      #-}-{-# LANGUAGE DeriveDataTypeable  #-} {-# LANGUAGE FlexibleInstances   #-} {-# LANGUAGE OverloadedLists     #-} {-# LANGUAGE OverloadedStrings   #-} {-# LANGUAGE ScopedTypeVariables #-}-{-# LANGUAGE StandaloneDeriving  #-} {-# LANGUAGE TemplateHaskell     #-}+{-# LANGUAGE TypeApplications    #-}  {-# OPTIONS_GHC -Wall -Werror #-} @@ -26,11 +24,8 @@  import Utils.SBVTestFramework -data BinOp  = Plus | Minus | Times deriving (Enum, Bounded)-mkSymbolicEnumeration ''BinOp--_unused :: a-_unused = error "stop GHC from complaining unused names" sPlus sMinus sTimes+data BinOp  = Plus | Minus | Times+mkSymbolic [''BinOp]  -- Test suite tests :: TestTree@@ -93,7 +88,7 @@                    constrain $ readArray vSArray vi1 .== 2                     let viSArray  :: SArray Integer Integer-                       viSArray = lambdaArray (const 42)+                       viSArray = constArray 42                    mustBe42                              <- freshVar "mustBe42"                     constrain $ readArray viSArray 96     .== mustBe42
SBVTestSuite/TestSuite/Queries/Sums.hs view
@@ -60,24 +60,23 @@        then return av        else error $ "Didn't expect this: " ++ show av -queryListOfSum :: Symbolic [Either Integer Char]+-- This one has decidability problems if I force+-- the list to have two elements. The current model+-- returned has only one element; which is fine.+-- (Adding a constraint to set the length to be anything causes unknown)+queryListOfSum :: Symbolic [Either Integer Integer] queryListOfSum = do-  lst <- sList @(Either Integer Char) "lst"-  constrain $ L.length lst .== 2+  lst <- sList @(Either Integer Integer) "lst"   constrain $ isLeft $ L.head lst   constrain $ isRight $ L.head $ L.tail lst    query $ do-    _  <- checkSat-    av <- getValue lst--    case av of-      [Left _, Right _] -> return av-      _                 -> error $ "Didn't expect this: " ++ show av+    ensureSat+    getValue lst  queryMaybe :: Symbolic (Maybe Integer) queryMaybe = do-  a <- sMaybe @Integer "a"+  a :: M.SMaybe Integer <- free "a"    constrain $ M.maybe sFalse (.== 1) a @@ -90,20 +89,19 @@        then return av        else error $ "Didn't expect this: " ++ show av +-- This one has decidability problems if I force+-- the list to have two elements. The current model+-- returned has only one element; which is fine.+-- (Adding a constraint to set the length to be anything causes unknown) queryListOfMaybe :: Symbolic [Maybe Char] queryListOfMaybe = do   lst <- sList @(Maybe Char) "lst"-  constrain $ L.length lst .== 2-  constrain $ isJust $ L.head lst-  constrain $ isNothing $ L.head $ L.tail lst+  constrain $ isJust (L.head lst)+  constrain $ isNothing (L.head (L.tail lst))    query $ do-    _  <- checkSat-    av <- getValue lst--    case av of-      [Just _, Nothing] -> return av-      _                 -> error $ "Didn't expect this: " ++ show av+    ensureSat+    getValue lst  querySumMaybeBoth :: Symbolic (Either Integer Integer, Maybe Integer) querySumMaybeBoth = query $ do
SBVTestSuite/TestSuite/Queries/Tables.hs view
@@ -9,11 +9,11 @@ -- Test case for https://github.com/LeventErkok/sbv/issues/539 ----------------------------------------------------------------------------- -{-# LANGUAGE DeriveAnyClass                #-}-{-# LANGUAGE DeriveGeneric                 #-}-{-# LANGUAGE FlexibleContexts              #-}-{-# LANGUAGE Rank2Types                    #-}-{-# LANGUAGE QuantifiedConstraints         #-}+{-# LANGUAGE DeriveAnyClass        #-}+{-# LANGUAGE DeriveGeneric         #-}+{-# LANGUAGE FlexibleContexts      #-}+{-# LANGUAGE RankNTypes            #-}+{-# LANGUAGE QuantifiedConstraints #-}  {-# OPTIONS_GHC -Wall -Werror -Wno-orphans #-} @@ -124,7 +124,7 @@     return $ map (.== 1) locs `pbExactly` 1  perform :: SInput -> Engine ()-perform (verb, noun) = sCase verb (return ())+perform (verb, noun) = goCase verb (return ())     [ (1, builtin_go)     , (10, builtin_get)     ]@@ -153,8 +153,8 @@ replaceAt :: (Mergeable a) => SInt16 -> a -> [a] -> [a] replaceAt i x' = zipWith (\j x -> ite (i .== literal j) x' x) [0..] -sCase :: (Mergeable a) => SInt16 -> a -> [(Int16, a)] -> a-sCase x def = go+goCase :: (Mergeable a) => SInt16 -> a -> [(Int16, a)] -> a+goCase x def = go   where     go [] = def     go ((k,v):kvs) = ite (x .== literal k) v (go kvs)@@ -165,7 +165,7 @@ sWhen :: (Monad m, Mergeable (m ())) => SBool -> m () -> m () sWhen b act = ite b act (return ()) -sFindIndex :: (a -> SBool) -> [a] -> SMaybe Int16+sFindIndex :: (a -> SBool) -> [a] -> SBV.SMaybe Int16 sFindIndex p = go 0   where     go _ [] = SBV.sNothing
SBVTestSuite/TestSuite/Queries/UISatEx.hs view
@@ -14,11 +14,8 @@ {-# LANGUAGE OverloadedLists     #-} {-# LANGUAGE OverloadedStrings   #-} {-# LANGUAGE ScopedTypeVariables #-}-{-# LANGUAGE TypeApplications    #-}--#if MIN_VERSION_base(4,19,0) {-# LANGUAGE TypeAbstractions    #-}-#endif+{-# LANGUAGE TypeApplications    #-}  {-# OPTIONS_GHC -Wall -Werror #-} 
SBVTestSuite/TestSuite/Queries/Uninterpreted.hs view
@@ -9,12 +9,10 @@ -- Testing uninterpreted value extraction ----------------------------------------------------------------------------- -{-# LANGUAGE DeriveAnyClass      #-}-{-# LANGUAGE DeriveDataTypeable  #-} {-# LANGUAGE FlexibleInstances   #-} {-# LANGUAGE ScopedTypeVariables #-}-{-# LANGUAGE StandaloneDeriving  #-} {-# LANGUAGE TemplateHaskell     #-}+{-# LANGUAGE TypeApplications    #-}  {-# OPTIONS_GHC -Wall -Werror #-} @@ -23,8 +21,8 @@ import Data.SBV.Control import Utils.SBVTestFramework -data L = A | B deriving (Enum, Bounded)-mkSymbolicEnumeration ''L+data L = A | B deriving Show+mkSymbolic [''L]  -- Test suite tests :: TestTree
SBVTestSuite/TestSuite/QuickCheck/QC.hs view
@@ -9,7 +9,7 @@ -- Quick-check based test suite for SBV ----------------------------------------------------------------------------- -{-# LANGUAGE Rank2Types #-}+{-# LANGUAGE RankNTypes #-}  {-# OPTIONS_GHC -Wall -Werror #-} 
SBVTestSuite/TestSuite/Uninterpreted/Axioms.hs view
@@ -9,10 +9,7 @@ -- Test suite for basic axioms and uninterpreted functions ----------------------------------------------------------------------------- -{-# LANGUAGE DeriveAnyClass     #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE StandaloneDeriving #-}-{-# LANGUAGE TemplateHaskell    #-}+{-# LANGUAGE TemplateHaskell #-}  {-# OPTIONS_GHC -Wall -Werror #-} @@ -26,9 +23,9 @@ data B data Thing -mkUninterpretedSort ''Bitstring-mkUninterpretedSort ''B-mkUninterpretedSort ''Thing+mkSymbolic [''Bitstring]+mkSymbolic [''B]+mkSymbolic [''Thing]  tests :: TestTree tests =
+ SBVTestSuite/TestSuite/Uninterpreted/EUFLogic.hs view
@@ -0,0 +1,48 @@+-----------------------------------------------------------------------------+-- |+-- Module    : Documentation.SBV.Examples.Uninterpreted.EUFLogic+-- License   : BSD3+-- Stability : experimental+--+-- Test suite for the EUFLogic example+-----------------------------------------------------------------------------++{-# LANGUAGE DataKinds #-}++{-# OPTIONS_GHC -Wall -Werror #-}++module TestSuite.Uninterpreted.EUFLogic where++import Documentation.SBV.Examples.Uninterpreted.EUFLogic++import Utils.SBVTestFramework++-- Test suite+tests :: TestTree+tests =+  testGroup "Uninterpreted.LargeArgs"+    [ testCase "euflogic-1" $ assertIsSat (interpEUF fourteen)+    , testCase "unint17arg" $ assertIsSat f17Args+    ]++fourteen :: EUFExpr Tp_Bool+fourteen = applyOp (Op_BVEq knownBVWidth)+                   (applyOp f14 0 0 0 0 0 0 0 0 0 0 0 0 0 0)+                   (applyOp (Op_Plus knownBVWidth) a b)+  where+    f14 :: Op '[Tp_BV 8, Tp_BV 8, Tp_BV 8, Tp_BV 8, Tp_BV 8, Tp_BV 8, Tp_BV 8,+                Tp_BV 8, Tp_BV 8, Tp_BV 8, Tp_BV 8, Tp_BV 8, Tp_BV 8, Tp_BV 8]+           (Tp_BV 8)++    f14 = mkUnintOp "f"+    a, b :: EUFExpr (Tp_BV 8)+    a = mkUnintExpr "a"+    b = mkUnintExpr "b"++f17Args :: SWord  1 -> SWord  2 -> SWord  3 -> SWord  4 -> SWord  5 -> SWord  6 -> SWord  7 -> SWord 8+        -> SWord  9 -> SWord 10 -> SWord 11 -> SWord 12 -> SWord 13 -> SWord 14 -> SWord 15 -> SWord 16+        -> SWord 17+        -> SBool+f17Args = uninterpret "f17Args"++{- HLint ignore "Use camelCase" -}
SBVTestSuite/TestSuite/Uninterpreted/Function.hs view
@@ -9,11 +9,7 @@ -- Testsuite for Documentation.SBV.Examples.Uninterpreted.Function ----------------------------------------------------------------------------- -{-# LANGUAGE DeriveAnyClass      #-}-{-# LANGUAGE DeriveDataTypeable  #-}-{-# LANGUAGE ScopedTypeVariables #-}-{-# LANGUAGE StandaloneDeriving  #-}-{-# LANGUAGE TemplateHaskell     #-}+{-# LANGUAGE TemplateHaskell #-}  {-# OPTIONS_GHC -Wall -Werror #-} @@ -24,40 +20,40 @@ import Utils.SBVTestFramework  data A1-mkUninterpretedSort ''A1+mkSymbolic [''A1]  data A2-mkUninterpretedSort ''A2+mkSymbolic [''A2]  data A3-mkUninterpretedSort ''A3+mkSymbolic [''A3]  data A4-mkUninterpretedSort ''A4+mkSymbolic [''A4]  data A5-mkUninterpretedSort ''A5+mkSymbolic [''A5]  data A6-mkUninterpretedSort ''A6+mkSymbolic [''A6]  data A7-mkUninterpretedSort ''A7+mkSymbolic [''A7]  data A8-mkUninterpretedSort ''A8+mkSymbolic [''A8]  data A9-mkUninterpretedSort ''A9+mkSymbolic [''A9]  data A10-mkUninterpretedSort ''A10+mkSymbolic [''A10]  data A11-mkUninterpretedSort ''A11+mkSymbolic [''A11]  data A12-mkUninterpretedSort ''A12+mkSymbolic [''A12]   f1 :: SA1 -> SBool
SBVTestSuite/TestSuite/Uninterpreted/Sort.hs view
@@ -9,10 +9,7 @@ -- Test suite for uninterpreted sorts ----------------------------------------------------------------------------- -{-# LANGUAGE DeriveAnyClass      #-}-{-# LANGUAGE DeriveDataTypeable  #-} {-# LANGUAGE ScopedTypeVariables #-}-{-# LANGUAGE StandaloneDeriving  #-} {-# LANGUAGE TemplateHaskell     #-}  {-# OPTIONS_GHC -Wall -Werror #-}@@ -22,13 +19,12 @@ import Utils.SBVTestFramework  data L-mkUninterpretedSort ''L+mkSymbolic [''L]  tests :: TestTree tests =   testGroup "Uninterpreted.Sort"-    [ testCase "unint-sort"-        (assert . (==4) . length . (extractModels :: AllSatResult -> [L]) =<< allSat p0)+    [ goldenVsStringShow "unint-sort01" $ allSat p0     ]  len :: SL -> SInteger
SBVTestSuite/TestSuite/Uninterpreted/Uninterpreted.hs view
@@ -8,18 +8,16 @@ -- ----------------------------------------------------------------------------- -{-# LANGUAGE DeriveAnyClass     #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE StandaloneDeriving #-}-{-# LANGUAGE TemplateHaskell    #-}-{-# OPTIONS_GHC -Wall -Werror   #-}+{-# LANGUAGE TemplateHaskell #-} +{-# OPTIONS_GHC -Wall -Werror #-}+ module TestSuite.Uninterpreted.Uninterpreted(tests) where  import Utils.SBVTestFramework  data Q-mkUninterpretedSort ''Q+mkSymbolic [''Q]  -- Test suite tests :: TestTree@@ -27,6 +25,7 @@   testGroup "Uninterpreted.Uninterpreted"     [ testCase         "uninterpreted-0"  $ assertIsThm   p0     , testCase         "uninterpreted-1"  $ assertIsThm   p1+    , goldenCapturedIO "uninterpreted-1a" $ t p1_unc satWith     , testCase         "uninterpreted-2"  $ assertIsntThm p2     , goldenCapturedIO "uninterpreted-3"  $ t p3 satWith     , goldenCapturedIO "uninterpreted-3a" $ t p3 allSatWith@@ -51,7 +50,15 @@ p2 :: SInt8 -> SWord16 -> SWord16 -> SBool p2 x y z = y .== z .=> g x y .== f x    -- Not true +-- | Uncurried version of 'g'+g_unc :: (SInt8, SWord16) -> SWord32+g_unc = uninterpret "g" +-- | Same as 'p1' but using the uncurried version 'g_unc' of 'g'+p1_unc :: SInt8 -> SWord16 -> SWord16 -> SBool+p1_unc x y z = y .== z .=> g_unc (x, y) .== g_unc (x, z)  -- OK++ a, b :: SBool a = sym "p" b = sym "q"@@ -65,3 +72,5 @@  p4 :: SBool p4 = c ./= d++{- HLint ignore type g_unc "Use camelCase" -}
SBVTestSuite/Utils/SBVTestFramework.hs view
@@ -26,6 +26,8 @@         , goldenCapturedIO         , qc1, qc2         , shouldNotTypeCheck+        , mkCompileTest+        , mkCompileTestGlob         -- module exports to simplify life         , module Test.Tasty         , module Test.Tasty.HUnit@@ -39,12 +41,12 @@ import Control.Monad.Trans (liftIO)  import qualified Data.ByteString.Lazy.Char8 as LBC-import System.Directory   (removeFile)+import System.Directory   (getCurrentDirectory, removeFile)  import Test.Tasty            (testGroup, TestTree, TestName) import Test.Tasty.HUnit      ((@?), Assertion, testCase, AssertionPredicable, assertFailure) -import Test.Tasty.Golden     (goldenVsString, goldenVsFileDiff)+import Test.Tasty.Golden     (goldenVsString, goldenVsFileDiff, goldenVsStringDiff)  import qualified Test.Tasty.QuickCheck   as QC import qualified Test.QuickCheck.Monadic as QC@@ -54,10 +56,17 @@ import Data.SBV import Data.SBV.Control -import System.FilePath ((</>), (<.>))+import System.FilePath      ((</>), (<.>), takeDirectory, takeBaseName)+import System.FilePath.Glob (glob)+ import Data.List       (isInfixOf, isSuffixOf) +import System.Exit+import System.Process+import System.IO hiding (stderr) +import System.IO.Temp (withSystemTempDirectory)+ import Data.SBV.Internals (runSymbolic, Result, SBVRunMode(..), IStage(..), SBV(..), SVal(..), showModel, SMTModel(..), QueryContext(..), Outputtable)  -- | Generic assertion. This is less safe than usual, but will do.@@ -231,5 +240,103 @@               -> pure ()       | True       -> throwIO e++-- | Like readProcessWithExitCode, but in a given directory+readProcessInDir :: FilePath -> String -> [String] -> String -> IO (ExitCode, String, String)+readProcessInDir dir cmd args input = do+    let cp = (proc cmd args)+                { cwd     = Just dir+                , std_in  = CreatePipe+                , std_out = CreatePipe+                , std_err = CreatePipe+                }+    withCreateProcess cp $ \mIn mOut mErr ph -> do+        -- feed input if needed+        case mIn of+            Just hin -> hPutStr hin input >> hClose hin+            Nothing  -> return ()++        out <- case mOut of+            Just hout -> do+                s <- hGetContents hout+                _ <- evaluate (length s)  -- force full read+                return s+            Nothing -> return ""++        err <- case mErr of+            Just herr -> do+                s <- hGetContents herr+                _ <- evaluate (length s)  -- force full read+                return s+            Nothing -> return ""++        exitCode <- waitForProcess ph+        return (exitCode, out, err)++-- | Make a compilation test from all the files matching glob+mkCompileTestGlob :: String -> IO [TestTree]+mkCompileTestGlob g = do fs <- glob g+                         pure $ map mkCompileTest fs++-- | Make a compilation test+mkCompileTest :: FilePath -> TestTree+mkCompileTest file = goldenVsStringDiff nm diffCmd (testDir </> nm <.> "stderr") (compile (nm <.> "hs"))+  where testDir = takeDirectory file+        nm      = takeBaseName  file++        diffCmd ref new = ["diff", "-u", ref, new]++        packages = [ "QuickCheck"+                   , "array"+                   , "containers"+                   , "deepseq"+                   , "libBF"+                   , "mtl"+                   , "random"+                   , "syb"+                   , "template-haskell"+                   , "text"+                   , "time"+                   , "transformers"+                   , "uniplate"+                   ]++        args td  =  "-XHaskell2010 -fforce-recomp -tmpdir " ++ td ++ " -outputdir " ++ td+                 ++ concat [" -package " ++ pkg | pkg <- packages]++        compile path = withSystemTempDirectory "SBVTempDir" $ \tmpDir -> do+           -- Use the inplace package DB from dist-newstyle so we pick up+           -- the locally-built sbv (built by cabal test) without needing+           -- a separate 'cabal install --lib' step.+           projRoot <- getCurrentDirectory+           let cabalFile = projRoot </> "sbv.cabal"+           ver <- extractVersion <$> readFile cabalFile+           sbvDBs <- glob (projRoot </> "dist-newstyle/build/*/ghc-*/sbv-" ++ ver ++ "/package.conf.inplace")+           let pkgDbArgs = case sbvDBs of+                             (db:_) -> ["-package-db", db]+                             []     -> []+           (exitCode, sOut, sErr) <- readProcessInDir testDir "ghc" (pkgDbArgs ++ words (args tmpDir) ++ [path]) ""+           -- If the source uses -ddump-splices, include stdout (where GHC dumps splices)+           -- Filter to only keep "Splicing expression" blocks, stripping temp paths and preamble+           src <- readFile (testDir </> path)+           let hasDump  = "-ddump-splices" `isInfixOf` src+               splices  = unlines $ filter (not . skipLine) $ dropWhile (not . isSpliceLine) $ lines sOut+               out      = if hasDump then splices ++ sErr else sErr+           case exitCode of+             ExitSuccess   -> return $ LBC.pack $ if hasDump && not (null splices)+                                                   then splices+                                                   else "There was no failure during compilation."+             ExitFailure _ -> return $ LBC.pack out++        isSpliceLine l = "Splicing expression" `isInfixOf` l+        skipLine     l = "Loaded package environment" `isInfixOf` l+                      || "Compiling" `isInfixOf` l++        -- Extract the version string from sbv.cabal+        extractVersion = go . lines+          where go []     = error "mkCompileTest: Cannot find Version in sbv.cabal"+                go (l:ls) = case words l of+                              ["Version", ":", v] -> v+                              _                   -> go ls  {- HLint ignore module "Reduce duplication" -}
sbv.cabal view
@@ -1,13 +1,13 @@ Cabal-Version: 2.2  Name        : sbv-Version     : 12.2+Version     : 14.4 Category    : Formal Methods, Theorem Provers, Bit vectors, Symbolic Computation, Math, SMT Synopsis    : SMT Based Verification: Symbolic Haskell theorem prover using SMT solving. Description : Express properties about Haskell programs and automatically prove them using SMT                (Satisfiability Modulo Theories) solvers. -Copyright          : Levent Erkok, 2010-2025+Copyright          : Levent Erkok, 2010-2026 License            : BSD-3-Clause License-file       : LICENSE Stability          : Experimental@@ -17,15 +17,22 @@ Maintainer         : Levent Erkok (erkokl@gmail.com) Build-Type         : Simple Data-Files         : SBVTestSuite/GoldFiles/*.gold+                     SBVTestSuite/TestSuite/CompileTests/SCase/*.hs+                     SBVTestSuite/TestSuite/CompileTests/SCase/*.stderr+                     SBVTestSuite/TestSuite/CompileTests/PCase/*.hs+                     SBVTestSuite/TestSuite/CompileTests/PCase/*.stderr Extra-Doc-Files    : INSTALL, README.md, COPYRIGHT, CHANGES.md -Tested-With        : GHC==9.10.1- flag doctest_is_running   description: Define this flag during doctest run   default    : False   manual     : True +flag compile_examples+  description: Compile examples for documentation.+  default    : True+  manual     : True+ source-repository head   type    : git   location: https://github.com/LeventErkok/sbv.git@@ -34,7 +41,8 @@    default-language: Haskell2010    ghc-options     : -Wall    build-depends   : base >= 4.19.2 && < 5-   other-extensions: BangPatterns+   other-extensions: AllowAmbiguousTypes+                     BangPatterns                      CPP                      ConstraintKinds                      DataKinds@@ -59,15 +67,14 @@                      MultiParamTypeClasses                      NamedFieldPuns                      NegativeLiterals+                     NumericUnderscores                      OverloadedLists                      OverloadedRecordDot                      OverloadedStrings                      PackageImports                      ParallelListComp-                     PatternGuards                      QuantifiedConstraints                      QuasiQuotes-                     Rank2Types                      RankNTypes                      RecordWildCards                      ScopedTypeVariables@@ -81,12 +88,9 @@                      TypeOperators                      UndecidableInstances                      ViewPatterns--   if impl(ghc >= 9.8.1)-      other-extensions: TypeAbstractions+                     TypeAbstractions -   if impl(ghc >= 8.10.1)-      ghc-options  : -Wunused-packages+   ghc-options  : -Wunused-packages  Library   import          : common-settings@@ -114,6 +118,7 @@                   , random                   , syb                   , template-haskell+                  , th-expand-syns                   , text                   , time                   , transformers@@ -133,7 +138,6 @@                   , Data.SBV.Tuple                   , Data.SBV.RegExp                   , Data.SBV.TP-                  , Data.SBV.TP.List                   , Data.SBV.Tools.BMC                   , Data.SBV.Tools.BVOptimize                   , Data.SBV.Tools.Induction@@ -146,124 +150,151 @@                   , Data.SBV.Tools.WeakestPreconditions                   , Data.SBV.Trans                   , Data.SBV.Trans.Control-                  , Documentation.SBV.Examples.BitPrecise.BitTricks-                  , Documentation.SBV.Examples.BitPrecise.BrokenSearch-                  , Documentation.SBV.Examples.BitPrecise.Legato-                  , Documentation.SBV.Examples.BitPrecise.MergeSort-                  , Documentation.SBV.Examples.BitPrecise.PEXT_PDEP-                  , Documentation.SBV.Examples.BitPrecise.PrefixSum-                  , Documentation.SBV.Examples.CodeGeneration.AddSub-                  , Documentation.SBV.Examples.CodeGeneration.CRC_USB5-                  , Documentation.SBV.Examples.CodeGeneration.Fibonacci-                  , Documentation.SBV.Examples.CodeGeneration.GCD-                  , Documentation.SBV.Examples.CodeGeneration.PopulationCount-                  , Documentation.SBV.Examples.CodeGeneration.Uninterpreted-                  , Documentation.SBV.Examples.Crypto.AES-                  , Documentation.SBV.Examples.Crypto.RC4-                  , Documentation.SBV.Examples.Crypto.Prince-                  , Documentation.SBV.Examples.Crypto.SHA-                  , Documentation.SBV.Examples.DeltaSat.DeltaSat-                  , Documentation.SBV.Examples.Existentials.Diophantine-                  , Documentation.SBV.Examples.Lists.Fibonacci-                  , Documentation.SBV.Examples.Lists.BoundedMutex-                  , Documentation.SBV.Examples.Lists.CountOutAndTransfer-                  , Documentation.SBV.Examples.Misc.Definitions-                  , Documentation.SBV.Examples.Misc.Enumerate-                  , Documentation.SBV.Examples.Misc.FirstOrderLogic-                  , Documentation.SBV.Examples.Misc.Floating-                  , Documentation.SBV.Examples.Misc.LambdaArray-                  , Documentation.SBV.Examples.Misc.ModelExtract-                  , Documentation.SBV.Examples.Misc.NestedArray-                  , Documentation.SBV.Examples.Misc.Auxiliary-                  , Documentation.SBV.Examples.Misc.NoDiv0-                  , Documentation.SBV.Examples.Misc.Newtypes-                  , Documentation.SBV.Examples.Misc.Polynomials-                  , Documentation.SBV.Examples.Misc.ProgramPaths-                  , Documentation.SBV.Examples.Misc.SetAlgebra-                  , Documentation.SBV.Examples.Misc.SoftConstrain-                  , Documentation.SBV.Examples.Misc.Tuple-                  , Documentation.SBV.Examples.Optimization.Enumerate-                  , Documentation.SBV.Examples.Optimization.ExtField-                  , Documentation.SBV.Examples.Optimization.LinearOpt-                  , Documentation.SBV.Examples.Optimization.Production-                  , Documentation.SBV.Examples.Optimization.VM-                  , Documentation.SBV.Examples.ProofTools.AddHorn-                  , Documentation.SBV.Examples.ProofTools.BMC-                  , Documentation.SBV.Examples.ProofTools.Fibonacci-                  , Documentation.SBV.Examples.ProofTools.Strengthen-                  , Documentation.SBV.Examples.ProofTools.Sum-                  , Documentation.SBV.Examples.WeakestPreconditions.Append-                  , Documentation.SBV.Examples.WeakestPreconditions.Basics-                  , Documentation.SBV.Examples.WeakestPreconditions.Fib-                  , Documentation.SBV.Examples.WeakestPreconditions.GCD-                  , Documentation.SBV.Examples.WeakestPreconditions.IntDiv-                  , Documentation.SBV.Examples.WeakestPreconditions.IntSqrt-                  , Documentation.SBV.Examples.WeakestPreconditions.Length-                  , Documentation.SBV.Examples.WeakestPreconditions.Sum-                  , Documentation.SBV.Examples.Puzzles.AOC_2021_24-                  , Documentation.SBV.Examples.Puzzles.Birthday-                  , Documentation.SBV.Examples.Puzzles.Coins-                  , Documentation.SBV.Examples.Puzzles.Counts-                  , Documentation.SBV.Examples.Puzzles.DieHard-                  , Documentation.SBV.Examples.Puzzles.DogCatMouse-                  , Documentation.SBV.Examples.Puzzles.Drinker-                  , Documentation.SBV.Examples.Puzzles.Euler185-                  , Documentation.SBV.Examples.Puzzles.Fish-                  , Documentation.SBV.Examples.Puzzles.Garden-                  , Documentation.SBV.Examples.Puzzles.HexPuzzle-                  , Documentation.SBV.Examples.Puzzles.Jugs-                  , Documentation.SBV.Examples.Puzzles.KnightsAndKnaves-                  , Documentation.SBV.Examples.Puzzles.LadyAndTigers-                  , Documentation.SBV.Examples.Puzzles.MagicSquare-                  , Documentation.SBV.Examples.Puzzles.Murder-                  , Documentation.SBV.Examples.Puzzles.Newspaper-                  , Documentation.SBV.Examples.Puzzles.NQueens-                  , Documentation.SBV.Examples.Puzzles.Orangutans-                  , Documentation.SBV.Examples.Puzzles.Rabbits-                  , Documentation.SBV.Examples.Puzzles.SendMoreMoney-                  , Documentation.SBV.Examples.Puzzles.Sudoku-                  , Documentation.SBV.Examples.Puzzles.Tower-                  , Documentation.SBV.Examples.Puzzles.U2Bridge-                  , Documentation.SBV.Examples.Queries.Abducts-                  , Documentation.SBV.Examples.Queries.AllSat-                  , Documentation.SBV.Examples.Queries.UnsatCore-                  , Documentation.SBV.Examples.Queries.FourFours-                  , Documentation.SBV.Examples.Queries.GuessNumber-                  , Documentation.SBV.Examples.Queries.CaseSplit-                  , Documentation.SBV.Examples.Queries.Enums-                  , Documentation.SBV.Examples.Queries.Interpolants-                  , Documentation.SBV.Examples.Queries.Concurrency-                  , Documentation.SBV.Examples.Strings.RegexCrossword-                  , Documentation.SBV.Examples.Strings.SQLInjection-                  , Documentation.SBV.Examples.TP.Basics-                  , Documentation.SBV.Examples.TP.BinarySearch-                  , Documentation.SBV.Examples.TP.CaseSplit-                  , Documentation.SBV.Examples.TP.Fibonacci-                  , Documentation.SBV.Examples.TP.GCD-                  , Documentation.SBV.Examples.TP.InsertionSort-                  , Documentation.SBV.Examples.TP.Kleene-                  , Documentation.SBV.Examples.TP.McCarthy91-                  , Documentation.SBV.Examples.TP.Majority-                  , Documentation.SBV.Examples.TP.MergeSort-                  , Documentation.SBV.Examples.TP.Numeric-                  , Documentation.SBV.Examples.TP.PowerMod-                  , Documentation.SBV.Examples.TP.QuickSort-                  , Documentation.SBV.Examples.TP.RevAcc-                  , Documentation.SBV.Examples.TP.Reverse-                  , Documentation.SBV.Examples.TP.ShefferStroke-                  , Documentation.SBV.Examples.TP.SortHelpers-                  , Documentation.SBV.Examples.TP.Sqrt2IsIrrational-                  , Documentation.SBV.Examples.TP.StrongInduction-                  , Documentation.SBV.Examples.TP.SumReverse-                  , Documentation.SBV.Examples.TP.Tao-                  , Documentation.SBV.Examples.Transformers.SymbolicEval-                  , Documentation.SBV.Examples.Uninterpreted.AUF-                  , Documentation.SBV.Examples.Uninterpreted.Deduce-                  , Documentation.SBV.Examples.Uninterpreted.Function-                  , Documentation.SBV.Examples.Uninterpreted.Multiply-                  , Documentation.SBV.Examples.Uninterpreted.Shannon-                  , Documentation.SBV.Examples.Uninterpreted.Sort-                  , Documentation.SBV.Examples.Uninterpreted.UISortAllSat++  if flag(compile_examples)+    Exposed-modules : Documentation.SBV.Examples.ADT.Expr+                    , Documentation.SBV.Examples.ADT.Param+                    , Documentation.SBV.Examples.ADT.Types+                    , Documentation.SBV.Examples.BitPrecise.Adders+                    , Documentation.SBV.Examples.BitPrecise.BitTricks+                    , Documentation.SBV.Examples.BitPrecise.BrokenSearch+                    , Documentation.SBV.Examples.BitPrecise.Legato+                    , Documentation.SBV.Examples.BitPrecise.MergeSort+                    , Documentation.SBV.Examples.BitPrecise.PEXT_PDEP+                    , Documentation.SBV.Examples.BitPrecise.PrefixSum+                    , Documentation.SBV.Examples.CodeGeneration.AddSub+                    , Documentation.SBV.Examples.CodeGeneration.CRC_USB5+                    , Documentation.SBV.Examples.CodeGeneration.Fibonacci+                    , Documentation.SBV.Examples.CodeGeneration.GCD+                    , Documentation.SBV.Examples.CodeGeneration.PopulationCount+                    , Documentation.SBV.Examples.CodeGeneration.Uninterpreted+                    , Documentation.SBV.Examples.Crypto.AES+                    , Documentation.SBV.Examples.Crypto.RC4+                    , Documentation.SBV.Examples.Crypto.Prince+                    , Documentation.SBV.Examples.Crypto.SHA+                    , Documentation.SBV.Examples.DeltaSat.DeltaSat+                    , Documentation.SBV.Examples.Existentials.Diophantine+                    , Documentation.SBV.Examples.Lists.Fibonacci+                    , Documentation.SBV.Examples.Lists.BoundedMutex+                    , Documentation.SBV.Examples.Lists.CountOutAndTransfer+                    , Documentation.SBV.Examples.Misc.Definitions+                    , Documentation.SBV.Examples.Misc.Enumerate+                    , Documentation.SBV.Examples.Misc.FirstOrderLogic+                    , Documentation.SBV.Examples.Misc.Floating+                    , Documentation.SBV.Examples.Misc.LambdaArray+                    , Documentation.SBV.Examples.Misc.ModelExtract+                    , Documentation.SBV.Examples.Misc.NestedArray+                    , Documentation.SBV.Examples.Misc.Auxiliary+                    , Documentation.SBV.Examples.Misc.NoDiv0+                    , Documentation.SBV.Examples.Misc.Newtypes+                    , Documentation.SBV.Examples.Misc.Polynomials+                    , Documentation.SBV.Examples.Misc.ProgramPaths+                    , Documentation.SBV.Examples.Misc.SetAlgebra+                    , Documentation.SBV.Examples.Misc.SoftConstrain+                    , Documentation.SBV.Examples.Misc.Tuple+                    , Documentation.SBV.Examples.Optimization.Enumerate+                    , Documentation.SBV.Examples.Optimization.ExtField+                    , Documentation.SBV.Examples.Optimization.LinearOpt+                    , Documentation.SBV.Examples.Optimization.Production+                    , Documentation.SBV.Examples.Optimization.VM+                    , Documentation.SBV.Examples.ProofTools.AddHorn+                    , Documentation.SBV.Examples.ProofTools.BMC+                    , Documentation.SBV.Examples.ProofTools.Fibonacci+                    , Documentation.SBV.Examples.ProofTools.Strengthen+                    , Documentation.SBV.Examples.ProofTools.Sum+                    , Documentation.SBV.Examples.WeakestPreconditions.Append+                    , Documentation.SBV.Examples.WeakestPreconditions.Basics+                    , Documentation.SBV.Examples.WeakestPreconditions.Fib+                    , Documentation.SBV.Examples.WeakestPreconditions.GCD+                    , Documentation.SBV.Examples.WeakestPreconditions.IntDiv+                    , Documentation.SBV.Examples.WeakestPreconditions.IntSqrt+                    , Documentation.SBV.Examples.WeakestPreconditions.Length+                    , Documentation.SBV.Examples.WeakestPreconditions.Sum+                    , Documentation.SBV.Examples.Puzzles.AOC_2021_24+                    , Documentation.SBV.Examples.Puzzles.Birthday+                    , Documentation.SBV.Examples.Puzzles.Coins+                    , Documentation.SBV.Examples.Puzzles.Counts+                    , Documentation.SBV.Examples.Puzzles.DieHard+                    , Documentation.SBV.Examples.Puzzles.DogCatMouse+                    , Documentation.SBV.Examples.Puzzles.Drinker+                    , Documentation.SBV.Examples.Puzzles.Euler185+                    , Documentation.SBV.Examples.Puzzles.Fish+                    , Documentation.SBV.Examples.Puzzles.Garden+                    , Documentation.SBV.Examples.Puzzles.HexPuzzle+                    , Documentation.SBV.Examples.Puzzles.Jugs+                    , Documentation.SBV.Examples.Puzzles.KnightsAndKnaves+                    , Documentation.SBV.Examples.Puzzles.LadyAndTigers+                    , Documentation.SBV.Examples.Puzzles.MagicSquare+                    , Documentation.SBV.Examples.Puzzles.Murder+                    , Documentation.SBV.Examples.Puzzles.Newspaper+                    , Documentation.SBV.Examples.Puzzles.NQueens+                    , Documentation.SBV.Examples.Puzzles.Orangutans+                    , Documentation.SBV.Examples.Puzzles.Rabbits+                    , Documentation.SBV.Examples.Puzzles.SendMoreMoney+                    , Documentation.SBV.Examples.Puzzles.SquareBirthday+                    , Documentation.SBV.Examples.Puzzles.Sudoku+                    , Documentation.SBV.Examples.Puzzles.Tower+                    , Documentation.SBV.Examples.Puzzles.U2Bridge+                    , Documentation.SBV.Examples.Queries.Abducts+                    , Documentation.SBV.Examples.Queries.AllSat+                    , Documentation.SBV.Examples.Queries.UnsatCore+                    , Documentation.SBV.Examples.Queries.FourFours+                    , Documentation.SBV.Examples.Queries.GuessNumber+                    , Documentation.SBV.Examples.Queries.CaseSplit+                    , Documentation.SBV.Examples.Queries.Enums+                    , Documentation.SBV.Examples.Queries.Interpolants+                    , Documentation.SBV.Examples.Queries.Concurrency+                    , Documentation.SBV.Examples.Strings.RegexCrossword+                    , Documentation.SBV.Examples.Strings.SQLInjection+                    , Documentation.SBV.Examples.TP.Ackermann+                    , Documentation.SBV.Examples.TP.Adder+                    , Documentation.SBV.Examples.TP.Basics+                    , Documentation.SBV.Examples.TP.BinarySearch+                    , Documentation.SBV.Examples.TP.CaseSplit+                    , Documentation.SBV.Examples.TP.Coins+                    , Documentation.SBV.Examples.TP.Collatz+                    , Documentation.SBV.Examples.TP.ConstFold+                    , Documentation.SBV.Examples.TP.Countdown+                    , Documentation.SBV.Examples.TP.Fibonacci+                    , Documentation.SBV.Examples.TP.GCD+                    , Documentation.SBV.Examples.TP.InsertionSort+                    , Documentation.SBV.Examples.TP.Kadane+                    , Documentation.SBV.Examples.TP.Kleene+                    , Documentation.SBV.Examples.TP.Lists+                    , Documentation.SBV.Examples.TP.McCarthy91+                    , Documentation.SBV.Examples.TP.Majority+                    , Documentation.SBV.Examples.TP.MergeSort+                    , Documentation.SBV.Examples.TP.MutualCorecursion+                    , Documentation.SBV.Examples.TP.NatStream+                    , Documentation.SBV.Examples.TP.Numeric+                    , Documentation.SBV.Examples.TP.Peano+                    , Documentation.SBV.Examples.TP.PigeonHole+                    , Documentation.SBV.Examples.TP.PowerMod+                    , Documentation.SBV.Examples.TP.Primes+                    , Documentation.SBV.Examples.TP.Queue+                    , Documentation.SBV.Examples.TP.QuickSort+                    , Documentation.SBV.Examples.TP.RevAcc+                    , Documentation.SBV.Examples.TP.Reverse+                    , Documentation.SBV.Examples.TP.RunLength+                    , Documentation.SBV.Examples.TP.ShefferStroke+                    , Documentation.SBV.Examples.TP.SortHelpers+                    , Documentation.SBV.Examples.TP.Sqrt2IsIrrational+                    , Documentation.SBV.Examples.TP.StrongInduction+                    , Documentation.SBV.Examples.TP.SumReverse+                    , Documentation.SBV.Examples.TP.Tao+                    , Documentation.SBV.Examples.TP.TautologyChecker+                    , Documentation.SBV.Examples.TP.UpDown+                    , Documentation.SBV.Examples.TP.VM+                    , Documentation.SBV.Examples.Transformers.SymbolicEval+                    , Documentation.SBV.Examples.Uninterpreted.AUF+                    , Documentation.SBV.Examples.Uninterpreted.Deduce+                    , Documentation.SBV.Examples.Uninterpreted.EUFLogic+                    , Documentation.SBV.Examples.Uninterpreted.Function+                    , Documentation.SBV.Examples.Uninterpreted.Multiply+                    , Documentation.SBV.Examples.Uninterpreted.Shannon+                    , Documentation.SBV.Examples.Uninterpreted.Sort+                    , Documentation.SBV.Examples.Uninterpreted.UISortAllSat+   other-modules   : Data.SBV.Client                   , Data.SBV.Client.BaseIO                   , Data.SBV.Core.AlgReals@@ -276,6 +307,7 @@                   , Data.SBV.Core.Sized                   , Data.SBV.Core.SizedFloats                   , Data.SBV.Core.Symbolic+                  , Data.SBV.Core.TH                   , Data.SBV.Control.BaseIO                   , Data.SBV.Control.Query                   , Data.SBV.Control.Types@@ -283,6 +315,7 @@                   , Data.SBV.Compilers.C                   , Data.SBV.Compilers.CodeGen                   , Data.SBV.Lambda+                  , Data.SBV.SCase                   , Data.SBV.SEnum                   , Data.SBV.SMT.SMT                   , Data.SBV.SMT.SMTLib@@ -316,22 +349,29 @@   default-language : Haskell2010   type             : exitcode-stdio-1.0   ghc-options      : -with-rtsopts=-K64m-  build-depends   : QuickCheck+  build-depends   : Glob+                  , QuickCheck                   , bytestring                   , containers                   , deepseq                   , directory                   , filepath                   , mtl+                  , process                   , random                   , sbv                   , tasty                   , tasty-golden                   , tasty-hunit                   , tasty-quickcheck+                  , temporary   hs-source-dirs  : SBVTestSuite   main-is         : SBVTest.hs   other-modules   : Utils.SBVTestFramework+                  , TestSuite.ADT.ADT+                  , TestSuite.ADT.Expr+                  , TestSuite.ADT.MutRec+                  , TestSuite.ADT.PExpr                   , TestSuite.Arrays.InitVals                   , TestSuite.Arrays.Memory                   , TestSuite.Arrays.Query@@ -360,7 +400,9 @@                   , TestSuite.Basics.QRem                   , TestSuite.Basics.Quantifiers                   , TestSuite.Basics.Recursive+                  , TestSuite.Basics.TPCaching                   , TestSuite.Basics.Set+                  , TestSuite.Basics.SmtFunctionUnique                   , TestSuite.Basics.SmallShifts                   , TestSuite.Basics.SquashReals                   , TestSuite.Basics.String@@ -368,6 +410,11 @@                   , TestSuite.Basics.TOut                   , TestSuite.Basics.Tuple                   , TestSuite.Basics.UISat+                  , TestSuite.CRC.CCITT+                  , TestSuite.CRC.CCITT_Unidir+                  , TestSuite.CRC.GenPoly+                  , TestSuite.CRC.Parity+                  , TestSuite.CRC.USB5                   , TestSuite.Char.Char                   , TestSuite.BitPrecise.BitTricks                   , TestSuite.BitPrecise.Legato@@ -381,11 +428,8 @@                   , TestSuite.CodeGeneration.GCD                   , TestSuite.CodeGeneration.PopulationCount                   , TestSuite.CodeGeneration.Uninterpreted-                  , TestSuite.CRC.CCITT-                  , TestSuite.CRC.CCITT_Unidir-                  , TestSuite.CRC.GenPoly-                  , TestSuite.CRC.Parity-                  , TestSuite.CRC.USB5+                  , TestSuite.CompileTests.SCase+                  , TestSuite.CompileTests.PCase                   , TestSuite.Crypto.AES                   , TestSuite.Crypto.RC4                   , TestSuite.Crypto.SHA@@ -440,6 +484,7 @@                   , TestSuite.Uninterpreted.Function                   , TestSuite.Uninterpreted.Sort                   , TestSuite.Uninterpreted.Uninterpreted+                  , TestSuite.Uninterpreted.EUFLogic                   , TestSuite.CantTypeCheck.Misc  Test-Suite SBVConnections