1 (***********************************************************************)
5 (* Xavier Leroy, projet Cristal, INRIA Rocquencourt *)
7 (* Copyright 1996 Institut National de Recherche en Informatique et *)
8 (* en Automatique. All rights reserved. This file is distributed *)
9 (* under the terms of the Q Public License version 1.0. *)
11 (***********************************************************************)
15 (function "tak" (x:int y:int z:int)
17 (app "tak" (app "tak" (- x 1) y z int)
18 (app "tak" (- y 1) z x int)
19 (app "tak" (- z 1) x y int) int)
22 (function "takmain" (dummy: int)
23 (app "tak" 18 12 6 int))