mirror of
https://github.com/GaloisInc/cryptol.git
synced 2024-11-28 01:13:34 +03:00
84 lines
2.9 KiB
Plaintext
84 lines
2.9 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 at
|
|
test05.cry:4:1--4:4
|
|
[warning] at test05.cry:13:5--13:8
|
|
This binding for `foo` shadows the existing binding at
|
|
test05.cry:9:3--9:6
|
|
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 at
|
|
test05.cry:4:1--4:4
|
|
[warning] at test05.cry:13:5--13:8
|
|
This binding for `foo` shadows the existing binding at
|
|
test05.cry:9:3--9:6
|
|
[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
|
|
|
|
|
|
|
|
|
|
|