package electrod
- Overview
- No Docs
You can search for identifiers within the package.
in-package search v0.2.0
Formal analysis for the Electrod formal pivot language
Install
Dune Dependency
Authors
Maintainers
Sources
electrod-0.8.0.tbz
sha256=dd47a6d755dc80a9a75fa21bda7a6507316ca2a33f7201d25ee9ba01d902a6a2
sha512=abc8bb1194df32bfe3c00f499dd989868c9ad208c8c7401085b9c18e87890eae1c087dbbb9bf128f95f4e759de27e1d7a6d6b2f7a5e6a9b000b469d72c77b87a
doc/src/electrod.libelectrod/Transfo.ml.html
Source file Transfo.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
(******************************************************************************* * electrod - a model finder for relational first-order linear temporal logic * * Copyright (C) 2016-2020 ONERA * Authors: Julien Brunel (ONERA), David Chemouil (ONERA) * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * SPDX-License-Identifier: MPL-2.0 * License-Filename: LICENSE.md ******************************************************************************) (** Type of transformations. *) open Containers type ('src, 'dst) t = { name : string ; run : 'src -> 'dst } let make name run = assert (not @@ String.is_empty name); { name; run } let name { name; _ } = name let run t x = t.run x let fby t1 t2 = { name = t1.name ^ "$$" ^ t2.name; run = (fun x -> t1.run x |> t2.run) } let identity = { name = "$$id"; run = (fun x -> x) } (* association list *) type ('src, 'dst) tlist = (string * ('src, 'dst) t) list let tlist ts = assert (not @@ List.is_empty ts); let open List in let add transfos t = assert (not @@ Assoc.mem ~eq:String.equal t.name transfos); Assoc.set ~eq:String.equal t.name t transfos in fold_left add [] ts let get_exn ts t = List.Assoc.get_exn ~eq:String.equal t ts
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>