package mc2

  1. Overview
  2. Docs
A mcsat-based SMT solver in pure OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

v0.1.tar.gz
md5=92de696251ec76fbf3eba6ee917fd80f
sha512=e88ba0cfc23186570a52172a0bd7c56053273941eaf3cda0b80fb6752e05d1b75986b01a4e4d46d9711124318e57cba1cd92d302e81d34f9f1ae8b49f39114f0

doc/mc2.core/Mc2_core/Plugin/Factory/index.html

Module Plugin.FactorySource

Sourcetype plugin = t
Sourcetype t =
  1. | Factory : {
    1. name : string;
    2. priority : int;
      (*

      how prioritary this plugin is. The lower, the earlier this plugin is loaded. NOTE: if plugin b requires services provided by plugin a, then we need to ensure a.priority < b.priority

      *)
    3. requires : 'a service_key_list;
      (*

      list of required services

      *)
    4. build : int -> 'a service_list -> plugin;
      (*

      builder, taking:

      • the unique ID of the plugin
      • the list of services required by requires
      *)
    } -> t
    (*

    A plugin factory, i.e. the method to build a plugin with a given ID.

    *)
Sourceval compare : t -> t -> int
Sourceval make : ?priority:int -> name:string -> requires:'a service_key_list -> build:(int -> 'a service_list -> plugin) -> unit -> t
OCaml

Innovation. Community. Security.