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

84 lines
3.0 KiB
Plaintext

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
(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]
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) ->
Cryptol::demote 10 c <>
where
/* Not recursive */
test05::foo : [10]
test05::foo = Cryptol::demote 10 [10] <>
/* Not recursive */
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 */
test05::bar : {e} (fin e) => [e + a]b
test05::bar = \{e} (fin e) ->
(Cryptol::#) e a b <> (Cryptol::zero ([e]b) <>) test05::foo
Loading module Cryptol
Loading module test05
[warning] at ./test05.cry:9:3--9:6
This binding for foo shadows the existing binding from
(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]
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) ->
Cryptol::demote 10 c <>
where
/* Not recursive */
test05::foo : [10]
test05::foo = Cryptol::demote 10 [10] <>
/* Not recursive */
test05::f : [a]b
test05::f = test05::bar
where
/* Not recursive */
test05::foo : [a]b
test05::foo = a
/* Not recursive */
test05::bar : [a]b
test05::bar = (Cryptol::#) 0 a b <> (Cryptol::zero ([0]b) <>) test05::foo