-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
184 additions
and
0 deletions.
There are no files selected for viewing
97 changes: 97 additions & 0 deletions
97
test-harness/src/snapshots/toolchain__include-flag into-coq.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
--- | ||
source: test-harness/src/harness.rs | ||
expression: snapshot | ||
info: | ||
kind: | ||
Translate: | ||
backend: coq | ||
info: | ||
name: include-flag | ||
manifest: cli/include-flag/Cargo.toml | ||
description: ~ | ||
spec: | ||
optional: false | ||
broken: false | ||
issue_id: ~ | ||
positive: true | ||
snapshot: | ||
stderr: false | ||
stdout: true | ||
include_flag: ~ | ||
--- | ||
exit = 0 | ||
|
||
[stdout] | ||
diagnostics = [] | ||
|
||
[stdout.files] | ||
"Include_flag.v" = ''' | ||
(* File automatically generated by Hacspec *) | ||
From Hacspec Require Import Hacspec_Lib MachineIntegers. | ||
From Coq Require Import ZArith. | ||
Import List.ListNotations. | ||
Open Scope Z_scope. | ||
Open Scope bool_scope. | ||
|
||
Class t_Trait Self := { | ||
}. | ||
|
||
(*Not implemented yet? todo(item)*) | ||
|
||
Definition main_a_a (_ : unit) : unit := | ||
tt. | ||
|
||
Definition main_a_b (_ : unit) : unit := | ||
tt. | ||
|
||
Definition main_a_c (_ : unit) : unit := | ||
tt. | ||
|
||
Definition main_a (x : T) : unit := | ||
let _ := (main_a_a tt) : unit in | ||
let _ := (main_a_b tt) : unit in | ||
let _ := (main_a_c tt) : unit in | ||
tt. | ||
|
||
Definition main_b_a (_ : unit) : unit := | ||
tt. | ||
|
||
Definition main_b_b (_ : unit) : unit := | ||
tt. | ||
|
||
Definition main_b_c (_ : unit) : unit := | ||
tt. | ||
|
||
Definition main_b (_ : unit) : unit := | ||
let _ := (main_b_a tt) : unit in | ||
let _ := (main_b_b tt) : unit in | ||
let _ := (main_b_c tt) : unit in | ||
tt. | ||
|
||
Definition main_c_a (_ : unit) : unit := | ||
tt. | ||
|
||
Definition main_c_b (_ : unit) : unit := | ||
tt. | ||
|
||
Definition main_c_c (_ : unit) : unit := | ||
tt. | ||
|
||
Definition main_c (_ : unit) : unit := | ||
let _ := (main_c_a tt) : unit in | ||
let _ := (main_c_b tt) : unit in | ||
let _ := (main_c_c tt) : unit in | ||
tt. | ||
|
||
Record t_Foo : Type :={ | ||
}. | ||
|
||
Instance t_Foo_t_t_Trait : t_Trait t_Foo_t := { | ||
}. | ||
|
||
Definition main (_ : unit) : unit := | ||
let _ := (main_a Foot_Foo_t) : unit in | ||
let _ := (main_b tt) : unit in | ||
let _ := (main_c tt) : unit in | ||
tt. | ||
''' |
87 changes: 87 additions & 0 deletions
87
test-harness/src/snapshots/toolchain__include-flag into-fstar.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
--- | ||
source: test-harness/src/harness.rs | ||
expression: snapshot | ||
info: | ||
kind: | ||
Translate: | ||
backend: fstar | ||
info: | ||
name: include-flag | ||
manifest: cli/include-flag/Cargo.toml | ||
description: ~ | ||
spec: | ||
optional: false | ||
broken: false | ||
issue_id: ~ | ||
positive: true | ||
snapshot: | ||
stderr: false | ||
stdout: true | ||
include_flag: ~ | ||
--- | ||
exit = 0 | ||
|
||
[stdout] | ||
diagnostics = [] | ||
|
||
[stdout.files] | ||
"Include_flag.fst" = ''' | ||
module Include_flag | ||
#set-options "--fuel 0 --ifuel 1 --z3rlimit 15" | ||
open Core | ||
open FStar.Mul | ||
|
||
class t_Trait (v_Self: Type) = { __marker_trait_t_Trait:Prims.unit } | ||
|
||
let main_a_a (_: Prims.unit) : Prims.unit = () | ||
|
||
let main_a_b (_: Prims.unit) : Prims.unit = () | ||
|
||
let main_a_c (_: Prims.unit) : Prims.unit = () | ||
|
||
let main_a | ||
(#v_T: Type) | ||
(#[FStar.Tactics.Typeclasses.tcresolve ()] i0: Core.Marker.t_Sized v_T) | ||
(#[FStar.Tactics.Typeclasses.tcresolve ()] i1: t_Trait v_T) | ||
(x: v_T) | ||
: Prims.unit = | ||
let _:Prims.unit = main_a_a () in | ||
let _:Prims.unit = main_a_b () in | ||
let _:Prims.unit = main_a_c () in | ||
() | ||
|
||
let main_b_a (_: Prims.unit) : Prims.unit = () | ||
|
||
let main_b_b (_: Prims.unit) : Prims.unit = () | ||
|
||
let main_b_c (_: Prims.unit) : Prims.unit = () | ||
|
||
let main_b (_: Prims.unit) : Prims.unit = | ||
let _:Prims.unit = main_b_a () in | ||
let _:Prims.unit = main_b_b () in | ||
let _:Prims.unit = main_b_c () in | ||
() | ||
|
||
let main_c_a (_: Prims.unit) : Prims.unit = () | ||
|
||
let main_c_b (_: Prims.unit) : Prims.unit = () | ||
|
||
let main_c_c (_: Prims.unit) : Prims.unit = () | ||
|
||
let main_c (_: Prims.unit) : Prims.unit = | ||
let _:Prims.unit = main_c_a () in | ||
let _:Prims.unit = main_c_b () in | ||
let _:Prims.unit = main_c_c () in | ||
() | ||
|
||
type t_Foo = | Foo : t_Foo | ||
|
||
[@@ FStar.Tactics.Typeclasses.tcinstance] | ||
let impl_Trait_for_Foo: t_Trait t_Foo = { __marker_trait = () } | ||
|
||
let main (_: Prims.unit) : Prims.unit = | ||
let _:Prims.unit = main_a (Foo <: t_Foo) in | ||
let _:Prims.unit = main_b () in | ||
let _:Prims.unit = main_c () in | ||
() | ||
''' |