sidekick/src/smt/theory_id.ml
Simon Cruanes 5feb5d8e73
refactor: new API for combination, with theories claiming terms
interface variables are terms claimed by >= 2 theories. Theories now
have a unique ID attributed at their creation.
2022-08-27 22:51:16 -04:00

12 lines
150 B
OCaml

include CCInt
type state = int ref
let create () = ref 1
let fresh (self : state) =
let n = !self in
incr self;
n
module Set = Util.Int_set