cryptol/tests/mono-binds/test05.icry.stdout

84 lines
3.0 KiB
Plaintext
Raw Normal View History

Loading module Cryptol
Loading module Cryptol
Loading module test05
[warning] at ./test05.cry:9:3--9:6
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)
[warning] at ./test05.cry:13:5--13:8
This binding for foo shadows the existing binding from
(at ./test05.cry:9:3--9:6, foo)
module test05
import Cryptol
/* Not recursive */
test05::foo : [10]
2018-06-16 00:15:39 +03:00
test05::foo = Cryptol::demote 10 [10] <>
/* Not recursive */
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 <>
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] <>
/* 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
Loading module Cryptol
Loading module test05
[warning] at ./test05.cry:9:3--9:6
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)
[warning] at ./test05.cry:13:5--13:8
This binding for foo shadows the existing binding from
(at ./test05.cry:9:3--9:6, foo)
[warning] at ./test05.cry:14:11--14:21:
Defaulting type argument 'front' of '(#)' to 0
module test05
import Cryptol
/* Not recursive */
test05::foo : [10]
2018-06-16 00:15:39 +03:00
test05::foo = Cryptol::demote 10 [10] <>
/* Not recursive */
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 <>
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] <>
/* 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