1234567891011121314151617181920212223242526272829303132333435363738394041424344454647(******************************************************************************)(* *)(* Alt-Ergo: The SMT Solver For Software Verification *)(* Copyright (C) 2013-2018 --- OCamlPro SAS *)(* *)(* This file is distributed under the terms of the Apache Software *)(* License version 2.0 *)(* *)(******************************************************************************)openAltErgoLibopenOptionsopenFormatlet()=List.iter(funp->ifverbose()theneprintf"[Dynlink] Loading the parser in %S ...@."p;tryMyDynlink.loadfilep;ifverbose()theneprintf"Success !@.@."with|MyDynlink.Errorm1->ifverbose()thenbegineprintf"[Dynlink] Loading the parser in plugin %S failed!@."p;eprintf">> Failure message: %s@.@."(MyDynlink.error_messagem1);end;letpp=sprintf"%s/%s"Config.pluginsdirpinifverbose()theneprintf"[Dynlink] Loading the parser in %S ... with prefix %S@."pConfig.pluginsdir;tryMyDynlink.loadfilepp;ifverbose()theneprintf"Success !@.@."with|MyDynlink.Errorm2->ifnot(verbose())thenbegineprintf"[Dynlink] Loading the parser in plugin %S failed!@."p;eprintf">> Failure message: %s@.@."(MyDynlink.error_messagem1);end;eprintf"[Dynlink] Trying to load the plugin from %S failed too!@."pp;eprintf">> Failure message: %s@.@."(MyDynlink.error_messagem2);exit1)(Options.parsers())