Module IR__Const

The Smallfoot Intermediate Language: Constants

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

integer constants

| Cfun of IR.Procname.t

function names

| Cstr of string

string constants

| Cfloat of float

float constants

| Cclass of IR.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