(****************************************************************************)
(*                           the diy toolsuite                              *)
(*                                                                          *)
(* Jade Alglave, University College London, UK.                             *)
(* Luc Maranget, INRIA Paris-Rocquencourt, France.                          *)
(*                                                                          *)
(* Copyright 2013-present Institut National de Recherche en Informatique et *)
(* en Automatique and the authors. All rights reserved.                     *)
(*                                                                          *)
(* This software is governed by the CeCILL-B license under French law and   *)
(* abiding by the rules of distribution of free software. You can use,      *)
(* modify and/ or redistribute the software under the terms of the CeCILL-B *)
(* license as circulated by CEA, CNRS and INRIA at the following URL        *)
(* "http://www.cecill.info". We also give a copy in LICENSE.txt.            *)
(****************************************************************************)

(* We need this to apply symbolic register renaming (used in mprog) *)

module type S = sig
  include ArchBase.S

  module RegSet : MySet.S with type elt = reg
  module ProcMap : MyMap.S with type key = int

  type v = ParsedConstant.v
  val zero : v
  val one : v
  val symbToV : string -> v
  val maybevToV  : ParsedConstant.v -> v
  val pp_v : v -> string

  type global = ParsedConstant.v
  val maybevToGlobal  : global -> v

  include Location.S with type loc_reg = reg and type loc_global = global

  module FaultType : FaultType.S
  type fault_type = FaultType.t

  type test = (location,v,pseudo,fault_type) MiscParser.r3
  type prop = (location,v,fault_type) ConstrGen.prop
  type constr = prop ConstrGen.constr

end
