Module IR.Const

module F = Stdlib.Format
type t =
| Cint of IntLit.t

integer constants

| Cfun of Procname.t

function names

| Cstr of string

string constants

| Cfloat of float

float constants

| Cclass of Ident.name

class constant

Constants

val compare : t -> t -> int
val equal : t -> t -> bool
val kind_equal : t -> t -> bool

Return true if the constants have the same kind (both integers, ...)

val pp : IStdlib.Pp.env -> F.formatter -> t -> unit

Pretty print a const

val iszero_int_float : t -> bool
val isone_int_float : t -> bool
val isminusone_int_float : t -> bool