diff -r c49564b6eb0f -r 803b5d19c48c src/Doc/Codegen/Adaptation.thy --- a/src/Doc/Codegen/Adaptation.thy Sun Apr 20 11:42:13 2025 +0200 +++ b/src/Doc/Codegen/Adaptation.thy Sun Apr 20 16:45:09 2025 +0200 @@ -190,6 +190,16 @@ Part of \HOL-Main\. + \item[\<^theory>\HOL-Library.IArray\] provides a type \<^typ>\'a iarray\ + isomorphic to lists but implemented by (effectively immutable) + arrays \emph{in SML only}. + + \end{description} + + \noindent Using these adaptation setups the following extensions are provided: + + \begin{description} + \item[\Code_Target_Int\] implements type \<^typ>\int\ by \<^typ>\integer\ and thus by target-language built-in integers. @@ -207,14 +217,14 @@ \item[\Code_Target_Numeral\] is a convenience theory containing \Code_Target_Nat\, \Code_Target_Int\ and \Code_Target_Bit_Shifts\- + \item[\Code_Bit_Shifts_for_Arithmetic\] uses the preprocessor to + replace arithmetic operations on numeric types by target-language + built-in bit shifts whenever feasible. + \item[\Code_Abstract_Char\] implements type \<^typ>\char\ by target language integers, sacrificing pattern patching in exchange for dramatically increased performance for comparisons. - \item[\<^theory>\HOL-Library.IArray\] provides a type \<^typ>\'a iarray\ - isomorphic to lists but implemented by (effectively immutable) - arrays \emph{in SML only}. - \end{description} \