package mopsa
MOPSA: A Modular and Open Platform for Static Analysis using Abstract Interpretation
Install
Dune Dependency
Authors
Maintainers
Sources
mopsa-analyzer-v1.0.tar.gz
md5=9f673f79708b44a7effb3b6bb3618d2c
sha512=cb91cb428e43a22f1abbcb8219710d0c10a5b3756d0da392d4084b3b3a6157350776c596983e63def344f617d39964e91f244f60c07958695ee5c8c809a9f0f4
doc/src/combiner/stacked.ml.html
Source file stacked.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 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
(****************************************************************************) (* *) (* This file is part of MOPSA, a Modular Open Platform for Static Analysis. *) (* *) (* Copyright (C) 2017-2019 The MOPSA Project. *) (* *) (* This program is free software: you can redistribute it and/or modify *) (* it under the terms of the GNU Lesser General Public License as published *) (* by the Free Software Foundation, either version 3 of the License, or *) (* (at your option) any later version. *) (* *) (* This program is distributed in the hope that it will be useful, *) (* but WITHOUT ANY WARRANTY; without even the implied warranty of *) (* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *) (* GNU Lesser General Public License for more details. *) (* *) (* You should have received a copy of the GNU Lesser General Public License *) (* along with this program. If not, see <http://www.gnu.org/licenses/>. *) (* *) (****************************************************************************) (** Signature of stacked combiner domains *) open Core.All open Abstraction.Stacked module type STACKED_COMBINER = sig include STACKED val domains : DomainSet.t val semantics : SemanticSet.t val routing_table : routing_table val merge : t -> t * teffect -> t * teffect -> t val exec : DomainSet.t option -> stmt -> ('a,t) man -> 'a flow -> 'a post option val eval : DomainSet.t option -> expr -> ('a,t) man -> 'a flow -> 'a eval option val ask : DomainSet.t option -> ('a,'r) query -> ('a,t) man -> 'a flow -> ('a, 'r) cases option val print_state : DomainSet.t option -> printer -> t -> unit val print_expr : DomainSet.t option -> ('a,t) man -> 'a flow -> printer -> expr -> unit end module EmptyDomain : STACKED_COMBINER = struct type t = unit let name = "empty" include GenDomainId(struct type nonrec t = t let name = name end) let domains = DomainSet.singleton name let semantics = SemanticSet.empty let routing_table = empty_routing_table let checks = [] let bottom = () let top = () let is_bottom _ = false let print_state _ _ _ = () let print_expr _ _ _ _ _ = () let subset _ _ ((),s) ((),s') = true,s,s' let join _ _ ((),s) ((),s') = (),s,s' let meet _ _ ((),s) ((),s') = (),s,s' let widen _ _ ((),s) ((),s') = (),s,s',true let merge _ _ _ = () let init _ _ flow = flow let exec _ _ _ flow = None let eval _ _ _ flow = None let ask _ _ _ _ = None end module StackedToCombiner(D:STACKED) : STACKED_COMBINER with type t = D.t = struct include D let domains = DomainSet.singleton D.name let semantics = SemanticSet.empty let routing_table = empty_routing_table let merge pre (a1,te1) (a2,te2) = let e1 = get_root_effect te1 in let e2 = get_root_effect te2 in if compare_effect e1 e2 = 0 then a1 else if is_empty_effect e1 then a2 else if is_empty_effect e2 then a1 else D.merge pre (a1,e1) (a2,e2) let exec targets = D.exec let eval targets = D.eval let ask targets = D.ask let print_state targets = D.print_state let print_expr targets = D.print_expr end module CombinerToStacked(T:STACKED_COMBINER) : STACKED with type t = T.t = struct include T let merge pre (a1,e1) (a2,e2) = let te1 = mk_teffect e1 empty_teffect empty_teffect in let te2 = mk_teffect e2 empty_teffect empty_teffect in T.merge pre (a1,te1) (a2,te2) let exec stmt man flow = T.exec None stmt man flow let eval exp man flow = T.eval None exp man flow let ask query man flow = T.ask None query man flow let print_state printer a = T.print_state None printer a let print_expr man flow printer e = T.print_expr None man flow printer e end
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>