Advertisement
Guest User

Untitled

a guest
Oct 12th, 2015
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
OCaml 0.44 KB | None | 0 0
  1. module InsnNodes = struct
  2.   type t = (mem * insn)
  3.   let compare hit1 hit2 =
  4.     let mem1, insn1 = hit1 in
  5.     let mem2, insn2 = hit2 in
  6.     Insn.compare insn1 insn2
  7.   let hash insn = 0
  8.   let equal insn1 insn2 = false
  9. end
  10.  
  11. module ProbabilisticEdges = struct
  12.   type t = float
  13.   let compare = Float.compare
  14.   let default = 0.0
  15. end
  16.  
  17. module G = Graph.Imperative.Digraph.ConcreteBidirectionalLabeled
  18.     (InsnNodes)(ProbabilisticEdges)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement