doc-src/IsarAdvanced/Codegen/Thy/examples/integers.ML
author paulson
Tue, 28 Nov 2006 16:19:01 +0100
changeset 21573 8a7a68c0096c
parent 21178 c3618fc6a6f7
child 21993 4b802a9e0738
permissions -rw-r--r--
Removed the references for counting combinators. Instead they are counted in actual clauses.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
21178
c3618fc6a6f7 added gfx
haftmann
parents:
diff changeset
     1
structure ROOT = 
c3618fc6a6f7 added gfx
haftmann
parents:
diff changeset
     2
struct
c3618fc6a6f7 added gfx
haftmann
parents:
diff changeset
     3
c3618fc6a6f7 added gfx
haftmann
parents:
diff changeset
     4
structure Codegen = 
c3618fc6a6f7 added gfx
haftmann
parents:
diff changeset
     5
struct
c3618fc6a6f7 added gfx
haftmann
parents:
diff changeset
     6
c3618fc6a6f7 added gfx
haftmann
parents:
diff changeset
     7
fun double_inc a =
c3618fc6a6f7 added gfx
haftmann
parents:
diff changeset
     8
  IntInf.+ ((IntInf.* ((2 : IntInf.int), a)), (1 : IntInf.int));
c3618fc6a6f7 added gfx
haftmann
parents:
diff changeset
     9
c3618fc6a6f7 added gfx
haftmann
parents:
diff changeset
    10
end; (*struct Codegen*)
c3618fc6a6f7 added gfx
haftmann
parents:
diff changeset
    11
c3618fc6a6f7 added gfx
haftmann
parents:
diff changeset
    12
end; (*struct ROOT*)