123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163(**************************************************************************)(* *)(* This file is part of Aorai plug-in of Frama-C. *)(* *)(* Copyright (C) 2007-2023 *)(* CEA (Commissariat à l'énergie atomique et aux énergies *)(* alternatives) *)(* INRIA (Institut National de Recherche en Informatique et en *)(* Automatique) *)(* INSA (Institut National des Sciences Appliquees) *)(* *)(* 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, version 2.1. *)(* *)(* It 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. *)(* *)(* See the GNU Lesser General Public License version 2.1 *)(* for more details (enclosed in the file licenses/LGPLv2.1). *)(* *)(**************************************************************************)includePlugin.Register(structletname="aorai"letshortname="aorai"lethelp="verification of behavioral properties (experimental)"end)moduleYa=Filepath(structletoption_name="-aorai-automata"letarg_name="f"letfile_kind="Ya"letexistence=Fc_Filepath.Must_existlethelp="considers the property described by the ya automata \
(in Ya language) from file <f>."end)moduleDot=False(structletoption_name="-aorai-dot"lethelp="generates a dot file of the Buchi automata"end)moduleDotSeparatedLabels=False(structletoption_name="-aorai-dot-sep-labels"lethelp="tells dot to not output guards directly over the edges"end)moduleAbstractInterpretation=False(structletoption_name="-aorai-simple-AI"lethelp="use simple abstract interpretation"end)moduleAbstractInterpretationOff=False(structletoption_name="-aorai-AI-off"lethelp="does not use abstract interpretation"end)let()=Parameter_customize.set_negative_option_name"-aorai-spec-off"moduleAxiomatization=True(structletoption_name="-aorai-spec-on"lethelp="if set, does not axiomatize automata"end)moduleGenerateAnnotations=True(structletoption_name="-aorai-generate-annotations"lethelp="generate computed ACSL annotations for the program"end)moduleGenerateDeterministicLemmas=True(structletoption_name="-aorai-generate-deterministic-lemmas"lethelp="generate lemmas to be proven in order to prove that an \
automaton is indeed deterministic"end)moduleConsiderAcceptance=False(structletoption_name="-aorai-acceptance"lethelp="if set, considers acceptation states"end)let()=Parameter_customize.set_negative_option_name"-aorai-raw-auto"moduleAutomataSimplification=True(structletoption_name="-aorai-simplified-auto"lethelp="If set, does not simplify automata"end)moduleAddingOperationNameAndStatusInSpecification=False(structletoption_name="-aorai-add-oper"lethelp="Adding current operation name (and statut) in pre/post \
conditions"end)moduleDeterministic=State_builder.Ref(Datatype.Bool)(structletname="Aorai_option.Deterministic"letdependencies=[]letdefault()=falseend)moduleSmokeTests=False(structletoption_name="-aorai-smoke-tests"lethelp="Add assertion in the generated functions to ensure \
that the automaton is always in at least one state"end)moduleInstrumentationHistory=Int(structletoption_name="-aorai-instrumentation-history"letarg_name="N"lethelp="the instrumentation will keep an history of the N last states"letdefault=0end)letis_on()=not(Ya.is_default())letadvance_abstract_interpretation()=not(AbstractInterpretationOff.get())&¬(AbstractInterpretation.get())letemitter=Emitter.create"Aorai"[Emitter.Code_annot;Emitter.Funspec;Emitter.Global_annot]~correctness:[Ya.parameter;Axiomatization.parameter;ConsiderAcceptance.parameter;AutomataSimplification.parameter]~tuning:[AbstractInterpretation.parameter;AddingOperationNameAndStatusInSpecification.parameter;InstrumentationHistory.parameter;GenerateAnnotations.parameter](*
Local Variables:
compile-command: "make -C ../../.."
End:
*)