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-09-29 07:26:26 +03:00
|
|
|
(at ./test05.cry:4:1--4:4, foo)
|
2015-02-18 02:27:59 +03:00
|
|
|
[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]
|
2018-06-16 00:15:39 +03:00
|
|
|
test05::foo = Cryptol::demote 10 [10] <>
|
2014-12-16 04:48:25 +03:00
|
|
|
|
|
|
|
/* Not recursive */
|
2018-06-21 01:06:19 +03:00
|
|
|
test05::test : {a, b, c} (Zero b, Literal 10 c) => [a]b -> c
|
|
|
|
test05::test = \{a, b, c} (Zero b, Literal 10 c) (a : [a]b) ->
|
2018-06-16 00:15:39 +03:00
|
|
|
Cryptol::demote 10 c <>
|
2014-12-16 04:48:25 +03:00
|
|
|
where
|
|
|
|
/* Not recursive */
|
2015-09-29 07:26:26 +03:00
|
|
|
test05::foo : [10]
|
2018-06-16 00:15:39 +03:00
|
|
|
test05::foo = Cryptol::demote 10 [10] <>
|
2014-12-16 04:48:25 +03:00
|
|
|
|
|
|
|
/* Not recursive */
|
2015-09-29 07:26:26 +03:00
|
|
|
test05::f : {d} (fin d) => [a + d]b
|
|
|
|
test05::f = \{d} (fin d) ->
|
|
|
|
test05::bar d <>
|
|
|
|
where
|
|
|
|
/* Not recursive */
|
|
|
|
test05::foo : [a]b
|
|
|
|
test05::foo = a
|
|
|
|
|
|
|
|
/* Not recursive */
|
2017-02-09 04:24:15 +03:00
|
|
|
test05::bar : {e} (fin e) => [e + a]b
|
2015-09-29 07:26:26 +03:00
|
|
|
test05::bar = \{e} (fin e) ->
|
2017-09-16 00:05:27 +03:00
|
|
|
(Cryptol::#) e a b <> (Cryptol::zero ([e]b) <>) test05::foo
|
2015-09-29 07:26:26 +03:00
|
|
|
|
|
|
|
|
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-06-10 00:27:43 +03:00
|
|
|
(at ./test05.cry:4:1--4:4, foo)
|
2015-02-18 02:27:59 +03:00
|
|
|
[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)
|
2018-06-20 03:28:59 +03:00
|
|
|
[warning] at ./test05.cry:14:11--14:21:
|
2018-06-26 02:48:10 +03:00
|
|
|
Defaulting type argument 'front' of '(#)' to 0
|
2014-12-16 04:48:25 +03:00
|
|
|
module test05
|
|
|
|
import Cryptol
|
|
|
|
/* Not recursive */
|
|
|
|
test05::foo : [10]
|
2018-06-16 00:15:39 +03:00
|
|
|
test05::foo = Cryptol::demote 10 [10] <>
|
2014-12-16 04:48:25 +03:00
|
|
|
|
|
|
|
/* Not recursive */
|
2018-06-21 01:06:19 +03:00
|
|
|
test05::test : {a, b, c} (Zero b, Literal 10 c) => [a]b -> c
|
|
|
|
test05::test = \{a, b, c} (Zero b, Literal 10 c) (a : [a]b) ->
|
2018-06-16 00:15:39 +03:00
|
|
|
Cryptol::demote 10 c <>
|
2014-12-16 04:48:25 +03:00
|
|
|
where
|
|
|
|
/* Not recursive */
|
2015-09-29 07:26:26 +03:00
|
|
|
test05::foo : [10]
|
2018-06-16 00:15:39 +03:00
|
|
|
test05::foo = Cryptol::demote 10 [10] <>
|
2014-12-16 04:48:25 +03:00
|
|
|
|
|
|
|
/* Not recursive */
|
2017-02-09 04:24:15 +03:00
|
|
|
test05::f : [a]b
|
2015-09-29 07:26:26 +03:00
|
|
|
test05::f = test05::bar
|
|
|
|
where
|
|
|
|
/* Not recursive */
|
|
|
|
test05::foo : [a]b
|
|
|
|
test05::foo = a
|
|
|
|
|
|
|
|
/* Not recursive */
|
2017-02-09 04:24:15 +03:00
|
|
|
test05::bar : [a]b
|
2017-09-16 00:05:27 +03:00
|
|
|
test05::bar = (Cryptol::#) 0 a b <> (Cryptol::zero ([0]b) <>) test05::foo
|
2015-09-29 07:26:26 +03:00
|
|
|
|
|
|
|
|
2014-12-16 04:48:25 +03:00
|
|
|
|
|
|
|
|
|
|
|
|