add serialisation for abs on integer to target language operation
authorAndreas Lochbihler
Fri, 18 Dec 2015 14:23:11 +0100
changeset 61857 542f2c6da692
parent 61856 4b1b85f38944
child 61858 3f494c048142
child 61890 f6ded81f5690
add serialisation for abs on integer to target language operation
src/HOL/Code_Numeral.thy
--- a/src/HOL/Code_Numeral.thy	Fri Dec 18 11:14:28 2015 +0100
+++ b/src/HOL/Code_Numeral.thy	Fri Dec 18 14:23:11 2015 +0100
@@ -648,6 +648,12 @@
     and (Haskell) infix 4 "<"
     and (Scala) infixl 4 "<"
     and (Eval) infixl 6 "<"
+| constant "abs :: integer \<Rightarrow> _" \<rightharpoonup>
+    (SML) "IntInf.abs"
+    and (OCaml) "Big'_int.abs'_big'_int"
+    and (Haskell) "Prelude.abs"
+    and (Scala) "_.abs"
+    and (Eval) "abs"
 
 code_identifier
   code_module Code_Numeral \<rightharpoonup> (SML) Arith and (OCaml) Arith and (Haskell) Arith