12345678910111213141516171819202122232425262728293031323334353637383940414243444546(**************************************************************************)(* *)(* This file is part of the Frama-C's Luncov plug-in. *)(* *)(* Copyright (C) 2012-2022 *)(* CEA (Commissariat à l'énergie atomique et aux énergies *)(* alternatives) *)(* *)(* 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 LICENSE) *)(* *)(**************************************************************************)(** Initializer of .labels file *)openCommonsletcompute?(force=false)data=ifforcethenData_labels.cleardata;letopenInstrumentinletf_lblsidinfo=lettag=info.li_taginletcurrent_loc=location_stringinfo.li_locinData_labels.updatedata~force~tag~current_loc~status:Data_labels.Unknownidinletf_bindinfo=lettag=info.bi_taginletid=info.bi_idinletcurrent_loc=location_stringinfo.bi_locinData_labels.updatedata~force~tag~current_loc~status:Data_labels.Unknownid;inletfidinfo=matchinfowith|Instrument.Labellinfo->f_lblsidlinfo|Instrument.Bindingbinfo->List.iter(funbind->f_bindbind)binfoinInstrument.iterf;