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