cryptol/tests/mono-binds/test05.icry.stdout
2018-12-11 15:52:19 -08:00

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::number 10 [10] <>
/* Not recursive */
test05::test : {n, a, b} (Zero b, Literal 10 a) => [n]b -> a
test05::test = \{n, a, b} (Zero b, Literal 10 a) (a : [n]b) ->
Cryptol::number 10 a <>
where
/* Not recursive */
test05::foo : [10]
test05::foo = Cryptol::number 10 [10] <>
/* Not recursive */
test05::f : {m} (fin m) => [n + m]b
test05::f = \{m} (fin m) ->
test05::bar m <>
where
/* Not recursive */
test05::foo : [n]b
test05::foo = a
/* Not recursive */
test05::bar : {i} (fin i) => [i + n]b
test05::bar = \{i} (fin i) ->
(Cryptol::#) i n b <> (Cryptol::zero ([i]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::number 10 [10] <>
/* Not recursive */
test05::test : {n, a, b} (Zero b, Literal 10 a) => [n]b -> a
test05::test = \{n, a, b} (Zero b, Literal 10 a) (a : [n]b) ->
Cryptol::number 10 a <>
where
/* Not recursive */
test05::foo : [10]
test05::foo = Cryptol::number 10 [10] <>
/* Not recursive */
test05::f : [n]b
test05::f = test05::bar
where
/* Not recursive */
test05::foo : [n]b
test05::foo = a
/* Not recursive */
test05::bar : [n]b
test05::bar = (Cryptol::#) 0 n b <> (Cryptol::zero ([0]b) <>) test05::foo