2014-12-16 04:48:25 +03:00
|
|
|
Loading module Cryptol
|
|
|
|
Loading module Cryptol
|
|
|
|
Loading module test05
|
2015-02-18 02:27:59 +03:00
|
|
|
[warning] at ./test05.cry:9:3--9:6
|
2014-12-16 04:48:25 +03:00
|
|
|
This binding for foo shadows the existing binding from
|
2015-02-18 02:27:59 +03:00
|
|
|
(at ./test05.cry:4:1--4:4, test05::foo)
|
|
|
|
[warning] at ./test05.cry:13:5--13:8
|
2014-12-16 04:48:25 +03:00
|
|
|
This binding for foo shadows the existing binding from
|
2015-02-18 02:27:59 +03:00
|
|
|
(at ./test05.cry:9:3--9:6, foo)
|
2014-12-16 04:48:25 +03:00
|
|
|
module test05
|
|
|
|
import Cryptol
|
|
|
|
/* Not recursive */
|
|
|
|
test05::foo : [10]
|
|
|
|
test05::foo = demote 10 10 <> <> <>
|
|
|
|
|
|
|
|
/* Not recursive */
|
2015-02-26 04:21:51 +03:00
|
|
|
test05::test : {a, b, c} (fin c, c >= 4) => [a]b -> [c]
|
|
|
|
test05::test = \{a, b, c} (fin c, c >= 4) (a : [a]b) ->
|
2014-12-16 04:48:25 +03:00
|
|
|
demote 10 c <> <> <>
|
|
|
|
where
|
|
|
|
/* Not recursive */
|
|
|
|
foo : [10]
|
|
|
|
foo = demote 10 10 <> <> <>
|
|
|
|
|
|
|
|
/* Not recursive */
|
|
|
|
f : {d} (fin d) => [a + d]b
|
|
|
|
f = \{d} (fin d) ->
|
2015-05-28 01:32:17 +03:00
|
|
|
bar d <>
|
|
|
|
where
|
|
|
|
/* Not recursive */
|
|
|
|
foo : [a]b
|
|
|
|
foo = a
|
|
|
|
|
|
|
|
/* Not recursive */
|
|
|
|
bar : {e} (fin e) => [a + e]b
|
|
|
|
bar = \{e} (fin e) -> (#) e a b <> (zero ([e]b)) foo : [a + e]b
|
|
|
|
|
|
|
|
|
2014-12-16 04:48:25 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Loading module Cryptol
|
|
|
|
Loading module test05
|
2015-02-18 02:27:59 +03:00
|
|
|
[warning] at ./test05.cry:9:3--9:6
|
2014-12-16 04:48:25 +03:00
|
|
|
This binding for foo shadows the existing binding from
|
2015-02-18 02:27:59 +03:00
|
|
|
(at ./test05.cry:4:1--4:4, test05::foo)
|
|
|
|
[warning] at ./test05.cry:13:5--13:8
|
2014-12-16 04:48:25 +03:00
|
|
|
This binding for foo shadows the existing binding from
|
2015-02-18 02:27:59 +03:00
|
|
|
(at ./test05.cry:9:3--9:6, foo)
|
|
|
|
[warning] at ./test05.cry:1:1--14:21:
|
2014-12-16 04:48:25 +03:00
|
|
|
Defaulting 1st type parameter
|
|
|
|
of expression (#)
|
2015-06-03 21:42:33 +03:00
|
|
|
at ./test05.cry:14:11--14:21
|
2014-12-16 04:48:25 +03:00
|
|
|
to 0
|
|
|
|
module test05
|
|
|
|
import Cryptol
|
|
|
|
/* Not recursive */
|
|
|
|
test05::foo : [10]
|
|
|
|
test05::foo = demote 10 10 <> <> <>
|
|
|
|
|
|
|
|
/* Not recursive */
|
2015-02-26 04:21:51 +03:00
|
|
|
test05::test : {a, b, c} (fin c, c >= 4) => [a]b -> [c]
|
|
|
|
test05::test = \{a, b, c} (fin c, c >= 4) (a : [a]b) ->
|
2014-12-16 04:48:25 +03:00
|
|
|
demote 10 c <> <> <>
|
|
|
|
where
|
|
|
|
/* Not recursive */
|
|
|
|
foo : [10]
|
|
|
|
foo = demote 10 10 <> <> <>
|
|
|
|
|
|
|
|
/* Not recursive */
|
|
|
|
f : [0 + a]b
|
|
|
|
f = bar
|
|
|
|
where
|
|
|
|
/* Not recursive */
|
|
|
|
foo : [a]b
|
|
|
|
foo = a
|
|
|
|
|
|
|
|
/* Not recursive */
|
|
|
|
bar : [0 + a]b
|
|
|
|
bar = (#) 0 a b <> (zero ([0]b)) foo
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|