Library
Module
Module type
Parameter
Class
Class type
Types
Type constructors and type testing.
val int : unit -> typ
Get built-in type for whole numbers
val bool : unit -> typ
Get built-in type for Booleans
val real : unit -> typ
Get build-in type for real numbers
val bitvector : int -> typ
Get type for bitvector of given size (in bits)
val new_scalar : int -> typ
Create new type for scalar of given cardinality
val new_uninterpreted : unit -> typ
Create new uninterpreted type
val parse : string -> typ
Parse type
val by_name : string -> typ
Get type by name
val get_name : typ -> string
Get name of type
val set_name : typ -> string -> unit
Set name of type
val clear_name : typ -> unit
Unbind type of its associated name, if any
val bitsize : typ -> int
Get size of bit-vector type in bits
val is_bool : typ -> bool
Check if type is boolean
val is_int : typ -> bool
Check if type is integer
val is_real : typ -> bool
Check if type is real
val is_arithmetic : typ -> bool
Check if type is arithmetic
val is_bitvector : typ -> bool
Check if type is bit-vector
val is_tuple : typ -> bool
Check if type is tuple
val is_function : typ -> bool
Check if type is function
val is_scalar : typ -> bool
Check if type is scalar
val is_uninterpreted : typ -> bool
Check if type is uninterpreted
val print :
?width:int ->
?height:int ->
?offset:int ->
(string -> unit) ->
typ ->
unit
Print type