Skip to content
Snippets Groups Projects
Commit efe25831 authored by Basile Desloges's avatar Basile Desloges
Browse files

[eacsl] Add a function to check if a type is any of the GMP types

parent 38296d70
No related branches found
No related tags found
No related merge requests found
...@@ -123,6 +123,9 @@ let init () = ...@@ -123,6 +123,9 @@ let init () =
end in end in
try Cil.visitCilFileSameGlobals set_mp_t (Ast.get ()) with Exit -> () try Cil.visitCilFileSameGlobals set_mp_t (Ast.get ()) with Exit -> ()
let is_t ty =
Z.is_t ty || Q.is_t ty
(* (*
Local Variables: Local Variables:
compile-command: "make -C ../../../../.." compile-command: "make -C ../../../../.."
......
...@@ -27,6 +27,9 @@ open Cil_types ...@@ -27,6 +27,9 @@ open Cil_types
val init: unit -> unit val init: unit -> unit
(** Must be called before any use of GMP *) (** Must be called before any use of GMP *)
val is_t: typ -> bool
(** @return true iff the given type is equivalent to one of the GMP type. *)
(**************************************************************************) (**************************************************************************)
(******************************** Types ***********************************) (******************************** Types ***********************************)
(**************************************************************************) (**************************************************************************)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment