module Constant:Constants.sig
..end
type
t
val equal : t -> t -> bool
val hash : t -> int
val compare : t -> t -> int
val arity : t -> int
arity x >= 0
val string_of : t -> string
val pp_print : Format.formatter -> t -> unit
val log : int -> t -> unit
log level c
is equivalent to
Log.log level pp_print c
val symbolic : Symbol.t -> t
val is_symbolic : t -> bool
val symbolic_value : t -> Symbol.t
symbolic_value c
is the symbol underlying a symbolic constant.
is_symbolic c
symbolic_value (symbolic s) = s
val integer : Big_int.big_int -> t
val is_integer : t -> bool
val integer_value : t -> Big_int.big_int
integer_value c
is the integer value of c.
is_integer c
integer_value (integer i) = i
val rational : Num.num -> t
val is_rational : t -> bool
val rational_value : t -> Num.num
rational_value c
is the rational value of c.
is_rational c
rational_value (rational r) = r