mirror of
https://github.com/Z3Prover/z3
synced 2026-03-01 03:11:30 +00:00
Add missing API functions to Go, OCaml, and TypeScript bindings
Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
This commit is contained in:
parent
3f6acc45ed
commit
282db840de
6 changed files with 100 additions and 0 deletions
|
|
@ -4251,6 +4251,14 @@ export function createApi(Z3: Z3Core, em?: any): Z3HighLevel {
|
|||
isPositive(): Bool<Name> {
|
||||
return new BoolImpl(check(Z3.mk_fpa_is_positive(contextPtr, this.ast)));
|
||||
}
|
||||
|
||||
toIEEEBV(): BitVec<number, Name> {
|
||||
return new BitVecImpl(check(Z3.mk_fpa_to_ieee_bv(contextPtr, this.ast)));
|
||||
}
|
||||
|
||||
toReal(): Arith<Name> {
|
||||
return new ArithImpl(check(Z3.mk_fpa_to_real(contextPtr, this.ast)));
|
||||
}
|
||||
}
|
||||
|
||||
class FPNumImpl extends FPImpl implements FPNum<Name> {
|
||||
|
|
|
|||
|
|
@ -3398,6 +3398,12 @@ export interface FP<Name extends string = 'main'> extends Expr<Name, FPSort<Name
|
|||
|
||||
/** @category Predicates */
|
||||
isPositive(): Bool<Name>;
|
||||
|
||||
/** @category Conversion */
|
||||
toIEEEBV(): BitVec<number, Name>;
|
||||
|
||||
/** @category Conversion */
|
||||
toReal(): Arith<Name>;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue