12345678910111213141516171819202122232425262728293031323334353637383940(**************************************************************************)(* *)(* SPDX-License-Identifier LGPL-2.1 *)(* Copyright (C) *)(* CEA (Commissariat à l'énergie atomique et aux énergies alternatives) *)(* *)(**************************************************************************)letname="Instantiate"letshortname="instantiate"includePlugin.Register(structletname=nameletshortname=shortnamelethelp="Overrides standard library functions"end)moduleEnabled=False(structletoption_name="-"^shortnamelethelp=""end)let()=Parameter_customize.argument_may_be_fundecl()moduleKfs=Kernel_function_set(structletoption_name="-"^shortname^"-fct"letarg_name="f,..."lethelp="Override stdlib functions only into the specified functions (defaults to all)."end)moduleNewInstantiator(I:sigvalfunction_name:stringend)=True(structletoption_name="-"^shortname^"-"^I.function_namelethelp="Activate replacement for function '"^I.function_name^"'"end)letemitter=Emitter.createshortname[Emitter.Funspec]~correctness:[]~tuning:[]