123456789101112131415161718192021222324252627282930(**************************************************************************)(* *)(* SPDX-License-Identifier LGPL-2.1 *)(* Copyright (C) *)(* CEA (Commissariat à l'énergie atomique et aux énergies alternatives) *)(* *)(**************************************************************************)letcompute()=(* compute RTE annotations, whether Enabled is set or not *)Ast.compute();letinclude_functionkf=letfsel=Options.FunctionSelection.get()inKernel_function.Set.is_emptyfsel||Kernel_function.Set.memkffselinGlobals.Functions.iter(funkf->ifinclude_functionkfthenVisit.annotatekf)letmain()=(* reset "rte generated" properties for all functions *)ifOptions.Enabled.get()thenbeginOptions.feedback~dkey:Options.dkey_annot~level:2"generating annotations";compute();Options.feedback~dkey:Options.dkey_annot~level:2"annotations computed"endlet()=Boot.Main.extendmain