Changelog for hasmtlib-2.5.1
Changelog
All notable changes to the hasmtlib library will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to PVP versioning.
v2.5.1 (2024-08-26)
Added
- Added
SharingMode = None | StableNames
inLanguage.Hasmtlib.Internal.Sharing
. Defaults toStableNames
. - Added function
setSharingMode
which allows you to change theSharingMode
.
Changed
runSharing
inLanguage.Hasmtlib.Internal.Sharing
now differentiates sharing behavior based on newly given argument of typeSharingMode
v2.5.0 (2024-08-25)
Added
- added instances
Eq
,Ord
,GEq
andGCompare
forExpr t
- added instances
Real
andEnum
forExpr IntSort
,Expr RealSort
andExpr (BvSort n)
- added instance
Integral
forExpr IntSort
andExpr (BvSort n)
- added instance
Bits
forExpr BoolSort
andExpr (BvSort n)
Changed
- Removed
Language.Hasmtlib.Integraled
: use the addedIntegral
instance instead - Removed redundant BitVec constructors from
Expr
and replaced usage in instances with the more generic existing ones. For example: WhereBvNot
was used previously, we now useNot
which is already used for Expr BoolSort. Differentiation between such operations now takes place inLanguage.Hasmtlib.Internal.Render#render
when rendering expressions, e.g. renderingbvnot
forBvSort
andnot
forBoolSort
. Therefore there is no behavioral change for the solver. - Removed functions
bvRotL
andbvRotR
fromLanguage.Hasmtlib.Type.Expr
: use the addedBits
instance instead withrotateL
androtateR
v2.4.0 (2024-08-21)
Added
- Added observable sharing with
Language.Hasmtlib.Internal.Sharing
. Thank you fabeulous@github for the great help! - Added
Language.Hasmtlib.Internal.Uniplate1
for plating GADTs
Changed
- Deleted and moved
Language.Hasmtlib.Equatable
,Language.Hasmtlib.Orderable
,Language.Hasmtlib.Iteable
&Language.Hasmtlib.Internal.Expr
intoLanguage.Hasmtlib.Type.Expr
v2.3.2 (2024-08-17)
Changed
- Internal replacement of
Prelude.liftA2
for backwards compatiblity - Fixed bug where
solveMaximizedDebug
would solve minimized instead of maximized
v2.3.1 (2024-08-16)
Changed
- Instances for
Boolean
,Num
&Fractional
onExpr
now use smart constructors
v2.3.0 (2024-08-12)
Added
- Added full SMTLib2.6-standard support for sort String
- Added module
Language.Hasmtlib.Lens
featuringinstance Plated (Expr t)
for rewriting
Changed
- Export constructors of
Expr t
instance Show (Expr t)
now displays expressions in SMTLib2-Syntax
v2.2.0 (2024-08-09)
Added
- Added multiple basic instances for
Equatable
,Orderable
,Iteable
,Variable
&Codec
Changed
- (breaking change)
Variable
&Codec
now ship with aGeneric
default implementation instead of relying onApplicative
. This will break your instances if the type does not have an instance forGeneric
.
v2.1.0 (2024-07-26)
Added
- Added solver Bitwuzla
- Added debugging capabilities for
Pipe
by introducingdebugInteractiveWith
Changed
- Yices now uses flag
--incremental
by default - (breaking change) Removed functional dependency
m -> s
fromMonadIncrSMT s m
. This forces you to specify the underlying state when usinginteractiveWith
. ThereforeinteractiveWith cvc5Living $ do ...
now becomesinteractiveWith @Pipe cvc5Living $ do ...
. - (breaking change) Removed
newtype ProcessSolver
and replaced it with underlyingSMTLIB.Backends.Process.Config
. This may only affect you if you instantiated custom solvers.
v2.0.1 (2024-07-23)
Added
- Added more documentation
Changed
(<==>)
now hasinfixr 4
(<==)
now hasinfixl 0
v2.0.0 (2024-07-23)
Added
- Arithmetic functions:
isIntSort
,toIntSort
&toRealSort
- Asserting maybe-formulas:
assertMaybe :: MonadSMT s m => Maybe (Expr BoolSort) -> m ()
- Logical equivalence
(<==>)
& reverse logical implication(<==)
- Solvers: OpenSMT, OptiMathSAT
- Iterative refinement optimizations utilizing incremental stack
- Custom solver options via
Custom String String :: SMTOption
- Optimization Modulo Theories (OMT) / MaxSMT support with:
minimize
,maximize
&assertSoft
Changed
- (breaking change) The functions
solver
anddebug
which createSolver
s fromProcessSolver
s are polymorph in the states
now. This requires you to annotate the mentioned functions with the targetted state. These areSMT
andOMT
. For example,solverWith (solver cvc5) $ do ...
becomessolverWith (solver @SMT cvc5) $ do ...
. - Prefix
xor
now has aninfix 4
v1.3.1 (2024-07-12)
Added
- Added
count
inLanguage.Hasmtlib.Counting
v1.3.0 (2024-07-12)
Added
- Added cardinality constraints with
Language.Hasmtlib.Counting
v1.2.0 (2024-07-11)
Added
- Added n-ary comparisons
distinct
&equal
Changed
- (breaking change) When using
interactiveWith
theSMTOption
Incremental
is no longer set by default anymore
v1.1.2 (2024-07-02)
Changed
- Minor internal changes
v1.1.1 (2024-06-25)
Added
- Added this
CHANGELOG.md
file
v1.1.0 (2024-06-21)
Added
- Added
ArraySort
and full support for its SMTLib2 standard specification