summaryrefslogtreecommitdiff
path: root/tests/hol4/misc-external
diff options
context:
space:
mode:
authorSon HO2023-07-31 16:15:58 +0200
committerGitHub2023-07-31 16:15:58 +0200
commit887d0ef1efc8912c6273b5ebcf979384e9d7fa97 (patch)
tree92d6021eb549f7cc25501856edd58859786b7e90 /tests/hol4/misc-external
parent53adf30fe440eb8b6f58ba89f4a4c0acc7877498 (diff)
parent9b3a58e423333fc9a4a5a264c3beb0a3d951e86b (diff)
Merge pull request #31 from AeneasVerif/son_lean_backend
Improve the Lean backend
Diffstat (limited to '')
-rw-r--r--tests/hol4/misc-external/external_FunsScript.sml18
-rw-r--r--tests/hol4/misc-external/external_OpaqueScript.sml12
2 files changed, 15 insertions, 15 deletions
diff --git a/tests/hol4/misc-external/external_FunsScript.sml b/tests/hol4/misc-external/external_FunsScript.sml
index 8172bc1c..f3692ee2 100644
--- a/tests/hol4/misc-external/external_FunsScript.sml
+++ b/tests/hol4/misc-external/external_FunsScript.sml
@@ -7,7 +7,7 @@ val _ = new_theory "external_Funs"
val swap_fwd_def = Define ‘
- (** [external::swap] *)
+ (** [external::swap]: forward function *)
swap_fwd (x : 't) (y : 't) (st : state) : (state # unit) result =
do
(st0, _) <- core_mem_swap_fwd x y st;
@@ -18,7 +18,7 @@ val swap_fwd_def = Define ‘
val swap_back_def = Define ‘
- (** [external::swap] *)
+ (** [external::swap]: backward function 0 *)
swap_back
(x : 't) (y : 't) (st : state) (st0 : state) : (state # ('t # 't)) result =
do
@@ -30,7 +30,7 @@ val swap_back_def = Define ‘
val test_new_non_zero_u32_fwd_def = Define ‘
- (** [external::test_new_non_zero_u32] *)
+ (** [external::test_new_non_zero_u32]: forward function *)
test_new_non_zero_u32_fwd
(x : u32) (st : state) : (state # core_num_nonzero_non_zero_u32_t) result =
do
@@ -40,7 +40,7 @@ val test_new_non_zero_u32_fwd_def = Define ‘
val test_vec_fwd_def = Define ‘
- (** [external::test_vec] *)
+ (** [external::test_vec]: forward function *)
test_vec_fwd : unit result =
let v = vec_new in do
_ <- vec_push_back v (int_to_u32 0);
@@ -52,7 +52,7 @@ val test_vec_fwd_def = Define ‘
val _ = assert_return (“test_vec_fwd”)
val custom_swap_fwd_def = Define ‘
- (** [external::custom_swap] *)
+ (** [external::custom_swap]: forward function *)
custom_swap_fwd (x : 't) (y : 't) (st : state) : (state # 't) result =
do
(st0, _) <- core_mem_swap_fwd x y st;
@@ -63,7 +63,7 @@ val custom_swap_fwd_def = Define ‘
val custom_swap_back_def = Define ‘
- (** [external::custom_swap] *)
+ (** [external::custom_swap]: backward function 0 *)
custom_swap_back
(x : 't) (y : 't) (st : state) (ret : 't) (st0 : state) :
(state # ('t # 't)) result
@@ -77,7 +77,7 @@ val custom_swap_back_def = Define ‘
val test_custom_swap_fwd_def = Define ‘
- (** [external::test_custom_swap] *)
+ (** [external::test_custom_swap]: forward function *)
test_custom_swap_fwd
(x : u32) (y : u32) (st : state) : (state # unit) result =
do
@@ -87,7 +87,7 @@ val test_custom_swap_fwd_def = Define ‘
val test_custom_swap_back_def = Define ‘
- (** [external::test_custom_swap] *)
+ (** [external::test_custom_swap]: backward function 0 *)
test_custom_swap_back
(x : u32) (y : u32) (st : state) (st0 : state) :
(state # (u32 # u32)) result
@@ -96,7 +96,7 @@ val test_custom_swap_back_def = Define ‘
val test_swap_non_zero_fwd_def = Define ‘
- (** [external::test_swap_non_zero] *)
+ (** [external::test_swap_non_zero]: forward function *)
test_swap_non_zero_fwd (x : u32) (st : state) : (state # u32) result =
do
(st0, _) <- swap_fwd x (int_to_u32 0) st;
diff --git a/tests/hol4/misc-external/external_OpaqueScript.sml b/tests/hol4/misc-external/external_OpaqueScript.sml
index e2fd281d..b5a6d91d 100644
--- a/tests/hol4/misc-external/external_OpaqueScript.sml
+++ b/tests/hol4/misc-external/external_OpaqueScript.sml
@@ -1,25 +1,25 @@
(** THIS FILE WAS AUTOMATICALLY GENERATED BY AENEAS *)
-(** [external]: opaque function definitions *)
+(** [external]: external function declarations *)
open primitivesLib divDefLib
open external_TypesTheory
val _ = new_theory "external_Opaque"
-val _ = new_constant ("core_mem_swap_fwd",
+(** [core::mem::swap]: forward function *)val _ = new_constant ("core_mem_swap_fwd",
“:'t -> 't -> state -> (state # unit) result”)
-val _ = new_constant ("core_mem_swap_back0",
+(** [core::mem::swap]: backward function 0 *)val _ = new_constant ("core_mem_swap_back0",
“:'t -> 't -> state -> state -> (state # 't) result”)
-val _ = new_constant ("core_mem_swap_back1",
+(** [core::mem::swap]: backward function 1 *)val _ = new_constant ("core_mem_swap_back1",
“:'t -> 't -> state -> state -> (state # 't) result”)
-val _ = new_constant ("core_num_nonzero_non_zero_u32_new_fwd",
+(** [core::num::nonzero::NonZeroU32::{14}::new]: forward function *)val _ = new_constant ("core_num_nonzero_non_zero_u32_new_fwd",
“:u32 -> state -> (state # core_num_nonzero_non_zero_u32_t option)
result”)
-val _ = new_constant ("core_option_option_unwrap_fwd",
+(** [core::option::Option::{0}::unwrap]: forward function *)val _ = new_constant ("core_option_option_unwrap_fwd",
“:'t option -> state -> (state # 't) result”)
val _ = export_theory ()