[inferbo] Remove Symbol.get_new (not used)

Summary: This removes Symbol.get_new function that is not used.

Reviewed By: mbouaziz

Differential Revision: D6038641

fbshipit-source-id: 0a54c30
master
Sungkeun Cho 7 years ago committed by Facebook Github Bot
parent 2cb2963641
commit a9a430876c

@ -15,8 +15,6 @@ open! AbstractDomain.Types
module F = Format
module L = Logging
let sym_size = ref 0
exception Not_one_symbol
module Symbol = struct
@ -24,12 +22,6 @@ module Symbol = struct
let eq = [%compare.equal : t]
let get_new : Typ.Procname.t -> t =
fun pname ->
let i = !sym_size in
sym_size := !sym_size + 1 ;
(pname, i)
let make : Typ.Procname.t -> int -> t = fun pname i -> (pname, i)
let pp : F.formatter -> t -> unit =
@ -70,7 +62,6 @@ module SymLinear = struct
let le : t -> t -> bool = fun x y -> M.for_all (fun s v -> v <= find s y) x
let get_new : Typ.Procname.t -> t = fun pname -> M.add (Symbol.get_new pname) 1 empty
let make : Typ.Procname.t -> int -> t = fun pname i -> M.add (Symbol.make pname i) 1 empty
@ -731,12 +722,6 @@ module ItvPure = struct
let of_int_lit : IntLit.t -> t option =
fun s -> match IntLit.to_int s with size -> Some (of_int size) | exception _ -> None
let get_new_sym : Typ.Procname.t -> t =
fun pname ->
let lower = Bound.of_sym (SymLinear.get_new pname) in
let upper = Bound.of_sym (SymLinear.get_new pname) in
(lower, upper)
let make_sym : unsigned:bool -> Typ.Procname.t -> (unit -> int) -> t =
fun ~unsigned pname new_sym_num ->
let lower =
@ -1122,8 +1107,6 @@ let plus : t -> t -> t = lift2 ItvPure.plus
let minus : t -> t -> t = lift2 ItvPure.minus
let get_new_sym : Typ.Procname.t -> t = fun pname -> NonBottom (ItvPure.get_new_sym pname)
let make_sym : ?unsigned:bool -> Typ.Procname.t -> (unit -> int) -> t =
fun ?(unsigned= false) pname new_sym_num ->
NonBottom (ItvPure.make_sym ~unsigned pname new_sym_num)

Loading…
Cancel
Save