file_name stringlengths 5 52 | name stringlengths 4 95 | original_source_type stringlengths 0 23k | source_type stringlengths 9 23k | source_definition stringlengths 9 57.9k | source dict | source_range dict | file_context stringlengths 0 721k | dependencies dict | opens_and_abbrevs listlengths 2 94 | vconfig dict | interleaved bool 1
class | verbose_type stringlengths 1 7.42k | effect stringclasses 118
values | effect_flags listlengths 0 2 | mutual_with listlengths 0 11 | ideal_premises listlengths 0 236 | proof_features listlengths 0 1 | is_simple_lemma bool 2
classes | is_div bool 2
classes | is_proof bool 2
classes | is_simply_typed bool 2
classes | is_type bool 2
classes | partial_definition stringlengths 5 3.99k | completed_definiton stringlengths 1 1.63M | isa_cross_project_example bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Z3TestGen.fst | Z3TestGen.parse_dep_pair_with_refinement | val parse_dep_pair_with_refinement
(tag: parser reading)
(cond_binder: A.ident)
(cond: (unit -> ML string))
(payload_binder: A.ident)
(payload: parser not_reading)
: parser not_reading | val parse_dep_pair_with_refinement
(tag: parser reading)
(cond_binder: A.ident)
(cond: (unit -> ML string))
(payload_binder: A.ident)
(payload: parser not_reading)
: parser not_reading | let parse_dep_pair_with_refinement (tag: parser reading) (cond_binder: A.ident) (cond: unit -> ML string) (payload_binder: A.ident) (payload: parser not_reading) : parser not_reading =
parse_dep_pair_with_refinement_gen tag (ident_to_string cond_binder) cond (ident_to_string payload_binder) payload | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 116,
"end_line": 632,
"start_col": 0,
"start_line": 631
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
tag: Z3TestGen.parser Z3TestGen.reading ->
cond_binder: Ast.ident ->
cond: (_: Prims.unit -> FStar.All.ML Prims.string) ->
payload_binder: Ast.ident ->
payload: Z3TestGen.parser Z3TestGen.not_reading
-> Z3TestGen.parser Z3TestGen.not_reading | Prims.Tot | [
"total"
] | [] | [
"Z3TestGen.parser",
"Z3TestGen.reading",
"Ast.ident",
"Prims.unit",
"Prims.string",
"Z3TestGen.not_reading",
"Z3TestGen.parse_dep_pair_with_refinement_gen",
"Z3TestGen.ident_to_string"
] | [] | false | false | false | false | false | let parse_dep_pair_with_refinement
(tag: parser reading)
(cond_binder: A.ident)
(cond: (unit -> ML string))
(payload_binder: A.ident)
(payload: parser not_reading)
: parser not_reading =
| parse_dep_pair_with_refinement_gen tag
(ident_to_string cond_binder)
cond
(ident_to_string payload_binder)
payload | false |
Z3TestGen.fst | Z3TestGen.parse_exact | val parse_exact (size: (unit -> ML string)) (body: parser not_reading) : Tot (parser not_reading) | val parse_exact (size: (unit -> ML string)) (body: parser not_reading) : Tot (parser not_reading) | let parse_exact
(size: unit -> ML string)
(body: parser not_reading)
: Tot (parser not_reading)
= fun name binders _ out ->
let body_name = Printf.sprintf "%s-body" name in
let body = body body_name binders false out in
out (mk_parse_exact name binders.bind body.call (size ()));
{ call = mk_function... | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 44,
"end_line": 769,
"start_col": 0,
"start_line": 761
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | size: (_: Prims.unit -> FStar.All.ML Prims.string) -> body: Z3TestGen.parser Z3TestGen.not_reading
-> Z3TestGen.parser Z3TestGen.not_reading | Prims.Tot | [
"total"
] | [] | [
"Prims.unit",
"Prims.string",
"Z3TestGen.parser",
"Z3TestGen.not_reading",
"Z3TestGen.binders",
"Prims.bool",
"Z3TestGen.Mknot_reading",
"Z3TestGen.mk_function_call",
"Z3TestGen.mk_parse_exact",
"Z3TestGen.__proj__Mkbinders__item__bind",
"Z3TestGen.__proj__Mknot_reading__item__call",
"FStar.Pr... | [] | false | false | false | false | false | let parse_exact (size: (unit -> ML string)) (body: parser not_reading) : Tot (parser not_reading) =
| fun name binders _ out ->
let body_name = Printf.sprintf "%s-body" name in
let body = body body_name binders false out in
out (mk_parse_exact name binders.bind body.call (size ()));
{ call = mk_function_call name binders } | false |
Z3TestGen.fst | Z3TestGen.mk_op | val mk_op: T.op -> option string -> ML string | val mk_op: T.op -> option string -> ML string | let mk_op : T.op -> option string -> ML string = function
| T.Eq -> mk_app "="
| T.Neq -> (fun s -> mk_app "not" (Some (mk_app "=" s)))
| T.And -> mk_app "and"
| T.Or -> mk_app "or"
| T.Not -> mk_app "not"
| T.Plus _ -> mk_app "+"
| T.Minus _ -> mk_app "-"
| T.Mul _ -> mk_app "*"
| T.Division _ -> mk_... | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 23,
"end_line": 372,
"start_col": 0,
"start_line": 348
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | _: Target.op -> _: FStar.Pervasives.Native.option Prims.string -> FStar.All.ML Prims.string | FStar.All.ML | [
"ml"
] | [] | [
"Target.op",
"Z3TestGen.mk_app",
"FStar.Pervasives.Native.option",
"Prims.string",
"FStar.Pervasives.Native.Some",
"Ast.integer_type",
"Z3TestGen.mk_bitwise_op",
"Z3TestGen.mk_bitwise_not",
"Prims.int",
"Ast.bitfield_bit_order",
"FStar.Printf.sprintf",
"Z3TestGen.assert_some"
] | [] | false | true | false | false | false | let mk_op: T.op -> option string -> ML string =
| function
| T.Eq -> mk_app "="
| T.Neq -> (fun s -> mk_app "not" (Some (mk_app "=" s)))
| T.And -> mk_app "and"
| T.Or -> mk_app "or"
| T.Not -> mk_app "not"
| T.Plus _ -> mk_app "+"
| T.Minus _ -> mk_app "-"
| T.Mul _ -> mk_app "*"
| T.Division _ -> mk_app "div"
| T.Remainder _ -> mk_app "mod"
| T.BitwiseAnd _ -> mk_bi... | false |
Z3TestGen.fst | Z3TestGen.parse_pair | val parse_pair (fst snd: parser not_reading) : parser not_reading | val parse_pair (fst snd: parser not_reading) : parser not_reading | let parse_pair (fst: parser not_reading) (snd: parser not_reading) : parser not_reading =
fun name binders _ out ->
let name_fst = Printf.sprintf "%s-fst" name in
let body_fst = fst name_fst binders false out in
let name_snd = Printf.sprintf "%s-snd" name in
let body_snd = snd name_snd binders false o... | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 44,
"end_line": 573,
"start_col": 0,
"start_line": 566
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | fst: Z3TestGen.parser Z3TestGen.not_reading -> snd: Z3TestGen.parser Z3TestGen.not_reading
-> Z3TestGen.parser Z3TestGen.not_reading | Prims.Tot | [
"total"
] | [] | [
"Z3TestGen.parser",
"Z3TestGen.not_reading",
"Prims.string",
"Z3TestGen.binders",
"Prims.bool",
"Prims.unit",
"Z3TestGen.Mknot_reading",
"Z3TestGen.mk_function_call",
"Z3TestGen.mk_parse_pair",
"Z3TestGen.__proj__Mkbinders__item__bind",
"Z3TestGen.__proj__Mknot_reading__item__call",
"FStar.Pri... | [] | false | false | false | true | false | let parse_pair (fst snd: parser not_reading) : parser not_reading =
| fun name binders _ out ->
let name_fst = Printf.sprintf "%s-fst" name in
let body_fst = fst name_fst binders false out in
let name_snd = Printf.sprintf "%s-snd" name in
let body_snd = snd name_snd binders false out in
out (mk_parse_pair name binders.bind body_fst.call body_snd.call);
{ call = mk_function_ca... | false |
Z3TestGen.fst | Z3TestGen.mk_parse_pair | val mk_parse_pair (name binders fst snd: string) : string | val mk_parse_pair (name binders fst snd: string) : string | let mk_parse_pair
(name: string)
(binders: string)
(fst: string)
(snd: string)
: string
= let input = Printf.sprintf "%s-input" name in
let tmp = Printf.sprintf "%s-tmp" name in
"(define-fun "^name^" ("^binders^"("^input^" State)) State
(let (("^tmp^" ("^fst^" "^input^")))
(if (< (input-size "^tmp^") ... | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 1,
"end_line": 564,
"start_col": 0,
"start_line": 548
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | name: Prims.string -> binders: Prims.string -> fst: Prims.string -> snd: Prims.string
-> Prims.string | Prims.Tot | [
"total"
] | [] | [
"Prims.string",
"Prims.op_Hat",
"FStar.Printf.sprintf"
] | [] | false | false | false | true | false | let mk_parse_pair (name binders fst snd: string) : string =
| let input = Printf.sprintf "%s-input" name in
let tmp = Printf.sprintf "%s-tmp" name in
"(define-fun " ^
name ^
" (" ^
binders ^
"(" ^
input ^
" State)) State\n (let ((" ^
tmp ^
" (" ^
fst ^
" " ^
input ^
")))\n (if (< (input-size " ^
tmp ^ ") 0)\n " ^ tmp ^ "\n (" ^ snd ^ " " ^ tmp ^ ")\n )\n )... | false |
Z3TestGen.fst | Z3TestGen.parse_dep_pair_with_refinement_gen | val parse_dep_pair_with_refinement_gen
(tag: parser reading)
(cond_binder: string)
(cond: (unit -> ML string))
(payload_binder: string)
(payload: parser not_reading)
: parser not_reading | val parse_dep_pair_with_refinement_gen
(tag: parser reading)
(cond_binder: string)
(cond: (unit -> ML string))
(payload_binder: string)
(payload: parser not_reading)
: parser not_reading | let parse_dep_pair_with_refinement_gen (tag: parser reading) (cond_binder: string) (cond: unit -> ML string) (payload_binder: string) (payload: parser not_reading) : parser not_reading =
fun name binders _ out ->
let name_tag = Printf.sprintf "%s-tag" name in
let body_tag = tag name_tag binders false out in
... | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 44,
"end_line": 629,
"start_col": 0,
"start_line": 621
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
tag: Z3TestGen.parser Z3TestGen.reading ->
cond_binder: Prims.string ->
cond: (_: Prims.unit -> FStar.All.ML Prims.string) ->
payload_binder: Prims.string ->
payload: Z3TestGen.parser Z3TestGen.not_reading
-> Z3TestGen.parser Z3TestGen.not_reading | Prims.Tot | [
"total"
] | [] | [
"Z3TestGen.parser",
"Z3TestGen.reading",
"Prims.string",
"Prims.unit",
"Z3TestGen.not_reading",
"Z3TestGen.binders",
"Prims.bool",
"Z3TestGen.Mknot_reading",
"Z3TestGen.mk_function_call",
"Z3TestGen.mk_parse_dep_pair_with_refinement",
"Z3TestGen.__proj__Mkbinders__item__bind",
"Z3TestGen.__pro... | [] | false | false | false | false | false | let parse_dep_pair_with_refinement_gen
(tag: parser reading)
(cond_binder: string)
(cond: (unit -> ML string))
(payload_binder: string)
(payload: parser not_reading)
: parser not_reading =
| fun name binders _ out ->
let name_tag = Printf.sprintf "%s-tag" name in
let body_tag = tag name_tag binders false out in
let binders' = push_binder payload_binder "Int" binders in
let name_payload = Printf.sprintf "%s-payload" name in
let body_payload = payload name_payload binders' false out in
out (mk_pa... | false |
Z3TestGen.fst | Z3TestGen.parse_dep_pair | val parse_dep_pair (tag: parser reading) (payload_binder: A.ident) (payload: parser not_reading)
: parser not_reading | val parse_dep_pair (tag: parser reading) (payload_binder: A.ident) (payload: parser not_reading)
: parser not_reading | let parse_dep_pair (tag: parser reading) (payload_binder: A.ident) (payload: parser not_reading) : parser not_reading =
fun name binders _ out ->
let payload_binder = ident_to_string payload_binder in
let name_tag = Printf.sprintf "%s-tag" name in
let body_tag = tag name_tag binders false out in
let b... | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 44,
"end_line": 664,
"start_col": 0,
"start_line": 655
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
tag: Z3TestGen.parser Z3TestGen.reading ->
payload_binder: Ast.ident ->
payload: Z3TestGen.parser Z3TestGen.not_reading
-> Z3TestGen.parser Z3TestGen.not_reading | Prims.Tot | [
"total"
] | [] | [
"Z3TestGen.parser",
"Z3TestGen.reading",
"Ast.ident",
"Z3TestGen.not_reading",
"Prims.string",
"Z3TestGen.binders",
"Prims.bool",
"Prims.unit",
"Z3TestGen.Mknot_reading",
"Z3TestGen.mk_function_call",
"Z3TestGen.mk_parse_dep_pair",
"Z3TestGen.__proj__Mkbinders__item__bind",
"Z3TestGen.__proj... | [] | false | false | false | true | false | let parse_dep_pair (tag: parser reading) (payload_binder: A.ident) (payload: parser not_reading)
: parser not_reading =
| fun name binders _ out ->
let payload_binder = ident_to_string payload_binder in
let name_tag = Printf.sprintf "%s-tag" name in
let body_tag = tag name_tag binders false out in
let binders' = push_binder payload_binder "Int" binders in
let name_payload = Printf.sprintf "%s-payload" name in
let body_payload ... | false |
Z3TestGen.fst | Z3TestGen.mk_parse_ifthenelse_cons | val mk_parse_ifthenelse_cons (counter: int) (name binders cond f_then f_else: string) : string | val mk_parse_ifthenelse_cons (counter: int) (name binders cond f_then f_else: string) : string | let mk_parse_ifthenelse_cons
(counter: int)
(name: string)
(binders: string)
(cond: string)
(f_then: string)
(f_else: string)
: string
= let input = Printf.sprintf "%s-input" name in
"(define-fun "^name^" ("^binders^"("^input^" State)) State
(if (and "^cond^" (or (< (branch-index "^input^") 0) (= (branch... | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 1,
"end_line": 687,
"start_col": 0,
"start_line": 669
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
counter: Prims.int ->
name: Prims.string ->
binders: Prims.string ->
cond: Prims.string ->
f_then: Prims.string ->
f_else: Prims.string
-> Prims.string | Prims.Tot | [
"total"
] | [] | [
"Prims.int",
"Prims.string",
"Prims.op_Hat",
"Prims.string_of_int",
"FStar.Printf.sprintf"
] | [] | false | false | false | true | false | let mk_parse_ifthenelse_cons (counter: int) (name binders cond f_then f_else: string) : string =
| let input = Printf.sprintf "%s-input" name in
"(define-fun " ^
name ^
" (" ^
binders ^
"(" ^
input ^
" State)) State\n (if (and " ^
cond ^
" (or (< (branch-index " ^
input ^
") 0) (= (branch-trace (branch-index " ^
input ^
")) " ^
string_of_int counter ^
")))\n (" ^
f_then ^
" (if (< (branch-index " ^
input ^
") ... | false |
Z3TestGen.fst | Z3TestGen.parse_nlist | val parse_nlist (size: (unit -> ML string)) (body: parser not_reading) : Tot (parser not_reading) | val parse_nlist (size: (unit -> ML string)) (body: parser not_reading) : Tot (parser not_reading) | let parse_nlist
(size: unit -> ML string)
(body: parser not_reading)
: Tot (parser not_reading)
= parse_exact size (parse_list body) | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 36,
"end_line": 853,
"start_col": 0,
"start_line": 849
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | size: (_: Prims.unit -> FStar.All.ML Prims.string) -> body: Z3TestGen.parser Z3TestGen.not_reading
-> Z3TestGen.parser Z3TestGen.not_reading | Prims.Tot | [
"total"
] | [] | [
"Prims.unit",
"Prims.string",
"Z3TestGen.parser",
"Z3TestGen.not_reading",
"Z3TestGen.parse_exact",
"Z3TestGen.parse_list"
] | [] | false | false | false | false | false | let parse_nlist (size: (unit -> ML string)) (body: parser not_reading) : Tot (parser not_reading) =
| parse_exact size (parse_list body) | false |
Z3TestGen.fst | Z3TestGen.parse_ifthenelse_nil | val parse_ifthenelse_nil
(cond: (unit -> ML string))
(pthen pelse: parser not_reading)
(counter: int)
: parser not_reading | val parse_ifthenelse_nil
(cond: (unit -> ML string))
(pthen pelse: parser not_reading)
(counter: int)
: parser not_reading | let parse_ifthenelse_nil (cond: unit -> ML string) (pthen: parser not_reading) (pelse: parser not_reading) (counter: int) : parser not_reading =
fun name binders _ out ->
let name_then = Printf.sprintf "%s-then" name in
let body_then = pthen name_then binders false out in
let name_else = Printf.sprintf "%... | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 44,
"end_line": 728,
"start_col": 0,
"start_line": 721
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
cond: (_: Prims.unit -> FStar.All.ML Prims.string) ->
pthen: Z3TestGen.parser Z3TestGen.not_reading ->
pelse: Z3TestGen.parser Z3TestGen.not_reading ->
counter: Prims.int
-> Z3TestGen.parser Z3TestGen.not_reading | Prims.Tot | [
"total"
] | [] | [
"Prims.unit",
"Prims.string",
"Z3TestGen.parser",
"Z3TestGen.not_reading",
"Prims.int",
"Z3TestGen.binders",
"Prims.bool",
"Z3TestGen.Mknot_reading",
"Z3TestGen.mk_function_call",
"Z3TestGen.mk_parse_ifthenelse_nil",
"Z3TestGen.__proj__Mkbinders__item__bind",
"Z3TestGen.__proj__Mknot_reading__... | [] | false | false | false | false | false | let parse_ifthenelse_nil
(cond: (unit -> ML string))
(pthen pelse: parser not_reading)
(counter: int)
: parser not_reading =
| fun name binders _ out ->
let name_then = Printf.sprintf "%s-then" name in
let body_then = pthen name_then binders false out in
let name_else = Printf.sprintf "%s-else" name in
let body_else = pelse name_else binders false out in
out (mk_parse_ifthenelse_nil counter name binders.bind (cond ()) body_then.call ... | false |
Z3TestGen.fst | Z3TestGen.mk_expr | val mk_expr (e: T.expr) : ML string | val mk_expr (e: T.expr) : ML string | let rec mk_expr (e: T.expr) : ML string = match fst e with
| T.Constant c -> mk_constant c
| T.Identifier i -> ident_to_string i
| T.App hd args -> mk_op hd (mk_args (is_bitwise_op hd) args)
| _ -> failwith "mk_expr: not supported"
and mk_args_aux (is_bitwise_op: option A.integer_type) accu : (list T.expr -> M... | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 97,
"end_line": 396,
"start_col": 0,
"start_line": 384
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | e: Target.expr -> FStar.All.ML Prims.string | FStar.All.ML | [
"ml"
] | [
"mk_expr",
"mk_args_aux",
"mk_args"
] | [
"Target.expr",
"FStar.Pervasives.Native.fst",
"Target.expr'",
"Ast.range",
"Ast.constant",
"Z3TestGen.mk_constant",
"Prims.string",
"Ast.ident",
"Z3TestGen.ident_to_string",
"Target.op",
"Prims.list",
"FStar.Pervasives.Native.tuple2",
"Z3TestGen.mk_op",
"FStar.Pervasives.Native.option",
... | [
"mutual recursion"
] | false | true | false | false | false | let rec mk_expr (e: T.expr) : ML string =
| match fst e with
| T.Constant c -> mk_constant c
| T.Identifier i -> ident_to_string i
| T.App hd args -> mk_op hd (mk_args (is_bitwise_op hd) args)
| _ -> failwith "mk_expr: not supported" | false |
Z3TestGen.fst | Z3TestGen.mk_parse_string | val mk_parse_string (name rec_call binders body terminator: string) : string | val mk_parse_string (name rec_call binders body terminator: string) : string | let mk_parse_string
(name: string)
(rec_call: string)
(binders: string)
(body: string)
(terminator: string)
: string
= let input = Printf.sprintf "%s-input" name in
let tmp = Printf.sprintf "%s-tmp" name in
"(define-fun-rec "^name^" ("^binders^"("^input^" State)) State
(let (("^tmp^" ("^body^" "^input^"))... | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 1,
"end_line": 893,
"start_col": 0,
"start_line": 873
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
name: Prims.string ->
rec_call: Prims.string ->
binders: Prims.string ->
body: Prims.string ->
terminator: Prims.string
-> Prims.string | Prims.Tot | [
"total"
] | [] | [
"Prims.string",
"Prims.op_Hat",
"FStar.Printf.sprintf"
] | [] | false | false | false | true | false | let mk_parse_string (name rec_call binders body terminator: string) : string =
| let input = Printf.sprintf "%s-input" name in
let tmp = Printf.sprintf "%s-tmp" name in
"(define-fun-rec " ^
name ^
" (" ^
binders ^
"(" ^
input ^
" State)) State\n (let ((" ^
tmp ^
" (" ^
body ^
" " ^
input ^
")))\n (if (< (choice-index (after-state " ^
tmp ^
")) 0)\n (mk-state -1 (choice-index (after-state "... | false |
Z3TestGen.fst | Z3TestGen.parse_at_most | val parse_at_most (size: (unit -> ML string)) (body: parser not_reading) : Tot (parser not_reading) | val parse_at_most (size: (unit -> ML string)) (body: parser not_reading) : Tot (parser not_reading) | let parse_at_most
(size: unit -> ML string)
(body: parser not_reading)
: Tot (parser not_reading)
= parse_exact size (parse_pair body parse_all_bytes) | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 52,
"end_line": 775,
"start_col": 0,
"start_line": 771
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | size: (_: Prims.unit -> FStar.All.ML Prims.string) -> body: Z3TestGen.parser Z3TestGen.not_reading
-> Z3TestGen.parser Z3TestGen.not_reading | Prims.Tot | [
"total"
] | [] | [
"Prims.unit",
"Prims.string",
"Z3TestGen.parser",
"Z3TestGen.not_reading",
"Z3TestGen.parse_exact",
"Z3TestGen.parse_pair",
"Z3TestGen.parse_all_bytes"
] | [] | false | false | false | false | false | let parse_at_most (size: (unit -> ML string)) (body: parser not_reading) : Tot (parser not_reading) =
| parse_exact size (parse_pair body parse_all_bytes) | false |
Z3TestGen.fst | Z3TestGen.mk_parse_list | val mk_parse_list (name rec_call binders body: string) : string | val mk_parse_list (name rec_call binders body: string) : string | let mk_parse_list
(name: string)
(rec_call: string)
(binders: string)
(body: string)
: string
= let input = Printf.sprintf "%s-input" name in
"(define-fun-rec "^name^" ("^binders^"("^input^" State)) State
(if (<= (input-size "^input^") 0)
"^input^"
("^rec_call^" ("^body^" "^input^"))
)
)
" | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 1,
"end_line": 837,
"start_col": 0,
"start_line": 824
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | name: Prims.string -> rec_call: Prims.string -> binders: Prims.string -> body: Prims.string
-> Prims.string | Prims.Tot | [
"total"
] | [] | [
"Prims.string",
"Prims.op_Hat",
"FStar.Printf.sprintf"
] | [] | false | false | false | true | false | let mk_parse_list (name rec_call binders body: string) : string =
| let input = Printf.sprintf "%s-input" name in
"(define-fun-rec " ^
name ^
" (" ^
binders ^
"(" ^
input ^
" State)) State\n (if (<= (input-size " ^
input ^ ") 0)\n " ^ input ^ "\n (" ^ rec_call ^ " (" ^ body ^ " " ^ input ^ "))\n )\n)\n" | false |
Z3TestGen.fst | Z3TestGen.readable_itype_parser_suffix | val readable_itype_parser_suffix (i: I.itype) : Tot string | val readable_itype_parser_suffix (i: I.itype) : Tot string | let readable_itype_parser_suffix (i: I.itype) : Tot string = match i with
| I.UInt8 | I.UInt8BE -> "u8"
| I.UInt16 -> "u16-le"
| I.UInt16BE -> "u16-be"
| I.UInt32 -> "u32-le"
| I.UInt32BE -> "u32-be"
| I.UInt64 -> "u64-le"
| I.UInt64BE -> "u64-be"
| I.Unit -> "empty"
| I.AllBytes -> "all-bytes"
| I.... | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 29,
"end_line": 445,
"start_col": 0,
"start_line": 435
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | i: InterpreterTarget.itype -> Prims.string | Prims.Tot | [
"total"
] | [] | [
"InterpreterTarget.itype",
"Prims.string"
] | [] | false | false | false | true | false | let readable_itype_parser_suffix (i: I.itype) : Tot string =
| match i with
| I.UInt8 | I.UInt8BE -> "u8"
| I.UInt16 -> "u16-le"
| I.UInt16BE -> "u16-be"
| I.UInt32 -> "u32-le"
| I.UInt32BE -> "u32-be"
| I.UInt64 -> "u64-le"
| I.UInt64BE -> "u64-be"
| I.Unit -> "empty"
| I.AllBytes -> "all-bytes"
| I.AllZeros -> "all-zeros" | false |
Z3TestGen.fst | Z3TestGen.itype_byte_size | val itype_byte_size (i: I.itype) : Tot (option pos) | val itype_byte_size (i: I.itype) : Tot (option pos) | let itype_byte_size (i: I.itype) : Tot (option pos) = match i with
| I.UInt8 | I.UInt8BE -> Some 1
| I.UInt16 | I.UInt16BE -> Some 2
| I.UInt32 | I.UInt32BE -> Some 4
| I.UInt64 | I.UInt64BE -> Some 8
| _ -> None | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 13,
"end_line": 860,
"start_col": 0,
"start_line": 855
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | i: InterpreterTarget.itype -> FStar.Pervasives.Native.option Prims.pos | Prims.Tot | [
"total"
] | [] | [
"InterpreterTarget.itype",
"FStar.Pervasives.Native.Some",
"Prims.pos",
"FStar.Pervasives.Native.None",
"FStar.Pervasives.Native.option"
] | [] | false | false | false | true | false | let itype_byte_size (i: I.itype) : Tot (option pos) =
| match i with
| I.UInt8 | I.UInt8BE -> Some 1
| I.UInt16 | I.UInt16BE -> Some 2
| I.UInt32 | I.UInt32BE -> Some 4
| I.UInt64 | I.UInt64BE -> Some 8
| _ -> None | false |
Z3TestGen.fst | Z3TestGen.parse_list | val parse_list (body: parser not_reading) : Tot (parser not_reading) | val parse_list (body: parser not_reading) : Tot (parser not_reading) | let parse_list
(body: parser not_reading)
: Tot (parser not_reading)
= fun name binders _ out ->
let rec_call = mk_function_call name binders in
let body_name = Printf.sprintf "%s-body" name in
let body = body body_name binders false out in
out (mk_parse_list name rec_call binders.bind body.call);
... | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 23,
"end_line": 847,
"start_col": 0,
"start_line": 839
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | body: Z3TestGen.parser Z3TestGen.not_reading -> Z3TestGen.parser Z3TestGen.not_reading | Prims.Tot | [
"total"
] | [] | [
"Z3TestGen.parser",
"Z3TestGen.not_reading",
"Prims.string",
"Z3TestGen.binders",
"Prims.bool",
"Prims.unit",
"Z3TestGen.Mknot_reading",
"Z3TestGen.mk_parse_list",
"Z3TestGen.__proj__Mkbinders__item__bind",
"Z3TestGen.__proj__Mknot_reading__item__call",
"FStar.Printf.sprintf",
"Z3TestGen.mk_fu... | [] | false | false | false | true | false | let parse_list (body: parser not_reading) : Tot (parser not_reading) =
| fun name binders _ out ->
let rec_call = mk_function_call name binders in
let body_name = Printf.sprintf "%s-body" name in
let body = body body_name binders false out in
out (mk_parse_list name rec_call binders.bind body.call);
{ call = rec_call } | false |
Z3TestGen.fst | Z3TestGen.mk_parse_ifthenelse_nil | val mk_parse_ifthenelse_nil (counter: int) (name binders cond f_then f_else: string) : string | val mk_parse_ifthenelse_nil (counter: int) (name binders cond f_then f_else: string) : string | let mk_parse_ifthenelse_nil
(counter: int)
(name: string)
(binders: string)
(cond: string)
(f_then: string)
(f_else: string)
: string
= let input = Printf.sprintf "%s-input" name in
let tmp = Printf.sprintf "%s-tmp" name in
"(define-fun "^name^" ("^binders^"("^input^" State)) State
(let (("^tmp^" (if (... | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 1,
"end_line": 719,
"start_col": 0,
"start_line": 698
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
counter: Prims.int ->
name: Prims.string ->
binders: Prims.string ->
cond: Prims.string ->
f_then: Prims.string ->
f_else: Prims.string
-> Prims.string | Prims.Tot | [
"total"
] | [] | [
"Prims.int",
"Prims.string",
"Prims.op_Hat",
"Prims.string_of_int",
"Prims.op_Addition",
"FStar.Printf.sprintf"
] | [] | false | false | false | true | false | let mk_parse_ifthenelse_nil (counter: int) (name binders cond f_then f_else: string) : string =
| let input = Printf.sprintf "%s-input" name in
let tmp = Printf.sprintf "%s-tmp" name in
"(define-fun " ^
name ^
" (" ^
binders ^
"(" ^
input ^
" State)) State\n (let ((" ^
tmp ^
" (if (< (branch-index " ^
input ^
") 0) " ^
input ^
" (mk-state (input-size " ^
input ^
") (choice-index " ^
input ^
") (+ 1 (branch-index ... | false |
Z3TestGen.fst | Z3TestGen.mk_parse_exact | val mk_parse_exact (name binders body size: string) : string | val mk_parse_exact (name binders body size: string) : string | let mk_parse_exact
(name: string)
(binders: string)
(body: string)
(size: string)
: string
= let input = Printf.sprintf "%s-input" name in
let sz = Printf.sprintf "%s-size" name in
let res = Printf.sprintf "%s-res" name in
"(define-fun "^name^" ("^binders^"("^input^" State)) State
(let (("^sz^" "^size^"))... | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 1,
"end_line": 759,
"start_col": 0,
"start_line": 730
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | name: Prims.string -> binders: Prims.string -> body: Prims.string -> size: Prims.string
-> Prims.string | Prims.Tot | [
"total"
] | [] | [
"Prims.string",
"Prims.op_Hat",
"FStar.Printf.sprintf"
] | [] | false | false | false | true | false | let mk_parse_exact (name binders body size: string) : string =
| let input = Printf.sprintf "%s-input" name in
let sz = Printf.sprintf "%s-size" name in
let res = Printf.sprintf "%s-res" name in
"(define-fun " ^
name ^
" (" ^
binders ^
"(" ^
input ^
" State)) State\n (let ((" ^
sz ^
" " ^
size ^
"))\n (if (< (input-size " ^
input ^
") " ^
sz ^
")\n (mk-state -1 (choice-inde... | false |
Z3TestGen.fst | Z3TestGen.parse_string | val parse_string (body: parser reading) (terminator: (unit -> ML string)) : Tot (parser not_reading) | val parse_string (body: parser reading) (terminator: (unit -> ML string)) : Tot (parser not_reading) | let parse_string
(body: parser reading)
(terminator: (unit -> ML string))
: Tot (parser not_reading)
= fun name binders _ out ->
let rec_call = mk_function_call name binders in
let body_name = Printf.sprintf "%s-body" name in
let body = body body_name binders false out in
out (mk_parse_string name r... | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 23,
"end_line": 904,
"start_col": 0,
"start_line": 895
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | body: Z3TestGen.parser Z3TestGen.reading -> terminator: (_: Prims.unit -> FStar.All.ML Prims.string)
-> Z3TestGen.parser Z3TestGen.not_reading | Prims.Tot | [
"total"
] | [] | [
"Z3TestGen.parser",
"Z3TestGen.reading",
"Prims.unit",
"Prims.string",
"Z3TestGen.binders",
"Prims.bool",
"Z3TestGen.Mknot_reading",
"Z3TestGen.not_reading",
"Z3TestGen.mk_parse_string",
"Z3TestGen.__proj__Mkbinders__item__bind",
"Z3TestGen.__proj__Mkreading__item__call",
"FStar.Printf.sprintf... | [] | false | false | false | false | false | let parse_string (body: parser reading) (terminator: (unit -> ML string)) : Tot (parser not_reading) =
| fun name binders _ out ->
let rec_call = mk_function_call name binders in
let body_name = Printf.sprintf "%s-body" name in
let body = body body_name binders false out in
out (mk_parse_string name rec_call binders.bind body.call (terminator ()));
{ call = rec_call } | false |
Z3TestGen.fst | Z3TestGen.smt_type_of_typ | val smt_type_of_typ (t: T.typ) : Tot string | val smt_type_of_typ (t: T.typ) : Tot string | let smt_type_of_typ (t: T.typ) : Tot string =
match arg_type_of_typ t with
| Some ArgBool -> "Bool"
| _ -> "Int" | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 14,
"end_line": 1009,
"start_col": 0,
"start_line": 1006
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | t: Target.typ -> Prims.string | Prims.Tot | [
"total"
] | [] | [
"Target.typ",
"Z3TestGen.arg_type_of_typ",
"FStar.Pervasives.Native.option",
"Z3TestGen.arg_type",
"Prims.string"
] | [] | false | false | false | true | false | let smt_type_of_typ (t: T.typ) : Tot string =
| match arg_type_of_typ t with
| Some ArgBool -> "Bool"
| _ -> "Int" | false |
Z3TestGen.fst | Z3TestGen.mk_definition | val mk_definition (name binders typ body: string) : Tot string | val mk_definition (name binders typ body: string) : Tot string | let mk_definition
(name: string)
(binders: string)
(typ: string)
(body: string)
: Tot string
= "(define-fun "^name^" ("^binders^") "^typ^" "^body^")" | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 56,
"end_line": 1021,
"start_col": 0,
"start_line": 1015
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | name: Prims.string -> binders: Prims.string -> typ: Prims.string -> body: Prims.string
-> Prims.string | Prims.Tot | [
"total"
] | [] | [
"Prims.string",
"Prims.op_Hat"
] | [] | false | false | false | true | false | let mk_definition (name binders typ body: string) : Tot string =
| "(define-fun " ^ name ^ " (" ^ binders ^ ") " ^ typ ^ " " ^ body ^ ")" | false |
LowParse.Spec.VLData.fsti | LowParse.Spec.VLData.serialize_bounded_vldata_strong_upd_chain | val serialize_bounded_vldata_strong_upd_chain
(min: nat)
(max: nat{min <= max /\ max > 0 /\ max < 4294967296})
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p)
(x: parse_bounded_vldata_strong_t min max s)
(y: t)
(i': nat)
(s': bytes)
: Lemma... | val serialize_bounded_vldata_strong_upd_chain
(min: nat)
(max: nat{min <= max /\ max > 0 /\ max < 4294967296})
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p)
(x: parse_bounded_vldata_strong_t min max s)
(y: t)
(i': nat)
(s': bytes)
: Lemma... | let serialize_bounded_vldata_strong_upd_chain
(min: nat)
(max: nat { min <= max /\ max > 0 /\ max < 4294967296 } )
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p)
(x: parse_bounded_vldata_strong_t min max s)
(y: t)
(i' : nat)
(s' : bytes)
: Lemma
(requires (
let sx = serialize ... | {
"file_name": "src/lowparse/LowParse.Spec.VLData.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 61,
"end_line": 769,
"start_col": 0,
"start_line": 735
} | module LowParse.Spec.VLData
include LowParse.Spec.FLData
include LowParse.Spec.AllIntegers // for bounded_integer, in_bounds, etc.
module Seq = FStar.Seq
module U32 = FStar.UInt32
module M = LowParse.Math
#reset-options "--z3rlimit 64 --max_fuel 64 --max_ifuel 64 --z3refresh --z3cliopt smt.arith.nl=false"
let parse_... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.FLData.fst.checked",
"LowParse.Spec.AllIntegers.fst.checked",
"LowParse.Math.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.... | [
{
"abbrev": true,
"full_module": "LowParse.Math",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "LowPars... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
min: Prims.nat ->
max: Prims.nat{min <= max /\ max > 0 /\ max < 4294967296} ->
s: LowParse.Spec.Base.serializer p ->
x: LowParse.Spec.VLData.parse_bounded_vldata_strong_t min max s ->
y: t ->
i': Prims.nat ->
s': LowParse.Bytes.bytes
-> FStar.Pervasives.Lemma
(requires
(let ... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.nat",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_GreaterThan",
"Prims.op_LessThan",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Base.serializer",
"LowParse.Spec.VLData.parse_bounded_vldata_strong_t",
"LowParse.Bytes.bytes",
"LowPa... | [] | true | false | true | false | false | let serialize_bounded_vldata_strong_upd_chain
(min: nat)
(max: nat{min <= max /\ max > 0 /\ max < 4294967296})
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p)
(x: parse_bounded_vldata_strong_t min max s)
(y: t)
(i': nat)
(s': bytes)
: Lemma... | serialize_bounded_vldata_strong_upd min max s x y;
let sx = serialize s x in
let sx' = serialize (serialize_bounded_vldata_strong min max s) x in
let lm = log256' max in
let sz = serialize (serialize_bounded_integer lm) (U32.uint_to_t (Seq.length sx)) in
seq_upd_seq_right_to_left sx' lm sx i' s';
Seq.lemma_split sx' lm... | false |
Z3TestGen.fst | Z3TestGen.produce_definition | val produce_definition
(i: A.ident)
(param: list T.param)
(typ: T.typ)
(body: T.expr)
(out: (string -> ML unit))
: ML unit | val produce_definition
(i: A.ident)
(param: list T.param)
(typ: T.typ)
(body: T.expr)
(out: (string -> ML unit))
: ML unit | let produce_definition
(i: A.ident)
(param: list T.param)
(typ: T.typ)
(body: T.expr)
(out: string -> ML unit)
: ML unit
= let binders = binders_of_params param in
out (mk_definition (ident_to_string i) binders.bind (smt_type_of_typ typ) (mk_expr body)) | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 91,
"end_line": 1031,
"start_col": 0,
"start_line": 1023
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
i: Ast.ident ->
param: Prims.list Target.param ->
typ: Target.typ ->
body: Target.expr ->
out: (_: Prims.string -> FStar.All.ML Prims.unit)
-> FStar.All.ML Prims.unit | FStar.All.ML | [
"ml"
] | [] | [
"Ast.ident",
"Prims.list",
"Target.param",
"Target.typ",
"Target.expr",
"Prims.string",
"Prims.unit",
"Z3TestGen.mk_definition",
"Z3TestGen.ident_to_string",
"Z3TestGen.__proj__Mkbinders__item__bind",
"Z3TestGen.smt_type_of_typ",
"Z3TestGen.mk_expr",
"Z3TestGen.binders",
"Z3TestGen.binders... | [] | false | true | false | false | false | let produce_definition
(i: A.ident)
(param: list T.param)
(typ: T.typ)
(body: T.expr)
(out: (string -> ML unit))
: ML unit =
| let binders = binders_of_params param in
out (mk_definition (ident_to_string i) binders.bind (smt_type_of_typ typ) (mk_expr body)) | false |
Z3TestGen.fst | Z3TestGen.prog | val prog : Type0 | let prog = list (string & prog_def) | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 35,
"end_line": 1050,
"start_col": 0,
"start_line": 1050
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Type0 | Prims.Tot | [
"total"
] | [] | [
"Prims.list",
"FStar.Pervasives.Native.tuple2",
"Prims.string",
"Z3TestGen.prog_def"
] | [] | false | false | false | true | true | let prog =
| list (string & prog_def) | false | |
Z3TestGen.fst | Z3TestGen.parse_itype | val parse_itype: I.itype -> parser not_reading | val parse_itype: I.itype -> parser not_reading | let parse_itype : I.itype -> parser not_reading = function
| I.AllBytes -> parse_all_bytes
| I.AllZeros -> parse_all_zeros
| i -> wrap_parser (parse_readable_itype i) | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 45,
"end_line": 500,
"start_col": 0,
"start_line": 497
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | _: InterpreterTarget.itype -> Z3TestGen.parser Z3TestGen.not_reading | Prims.Tot | [
"total"
] | [] | [
"InterpreterTarget.itype",
"Z3TestGen.parse_all_bytes",
"Z3TestGen.parse_all_zeros",
"Z3TestGen.wrap_parser",
"Z3TestGen.parse_readable_itype",
"Z3TestGen.parser",
"Z3TestGen.not_reading"
] | [] | false | false | false | true | false | let parse_itype: I.itype -> parser not_reading =
| function
| I.AllBytes -> parse_all_bytes
| I.AllZeros -> parse_all_zeros
| i -> wrap_parser (parse_readable_itype i) | false |
LowParse.Spec.VLData.fsti | LowParse.Spec.VLData.parse_vldata_payload_size | val parse_vldata_payload_size (sz: integer_size)
: Pure nat (requires True) (ensures (fun y -> y == pow2 (FStar.Mul.op_Star 8 sz) - 1)) | val parse_vldata_payload_size (sz: integer_size)
: Pure nat (requires True) (ensures (fun y -> y == pow2 (FStar.Mul.op_Star 8 sz) - 1)) | let parse_vldata_payload_size
(sz: integer_size)
: Pure nat
(requires True)
(ensures (fun y -> y == pow2 (FStar.Mul.op_Star 8 sz) - 1 ))
= match sz with
| 1 -> 255
| 2 -> 65535
| 3 -> 16777215
| 4 -> 4294967295 | {
"file_name": "src/lowparse/LowParse.Spec.VLData.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 19,
"end_line": 20,
"start_col": 0,
"start_line": 11
} | module LowParse.Spec.VLData
include LowParse.Spec.FLData
include LowParse.Spec.AllIntegers // for bounded_integer, in_bounds, etc.
module Seq = FStar.Seq
module U32 = FStar.UInt32
module M = LowParse.Math
#reset-options "--z3rlimit 64 --max_fuel 64 --max_ifuel 64 --z3refresh --z3cliopt smt.arith.nl=false" | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.FLData.fst.checked",
"LowParse.Spec.AllIntegers.fst.checked",
"LowParse.Math.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.... | [
{
"abbrev": true,
"full_module": "LowParse.Math",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "LowPars... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 64,
"max_ifuel": 64,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_... | false | sz: LowParse.Spec.BoundedInt.integer_size -> Prims.Pure Prims.nat | Prims.Pure | [] | [] | [
"LowParse.Spec.BoundedInt.integer_size",
"Prims.nat",
"Prims.l_True",
"Prims.eq2",
"Prims.int",
"Prims.op_Subtraction",
"Prims.pow2",
"FStar.Mul.op_Star"
] | [] | false | false | false | false | false | let parse_vldata_payload_size (sz: integer_size)
: Pure nat (requires True) (ensures (fun y -> y == pow2 (FStar.Mul.op_Star 8 sz) - 1)) =
| match sz with
| 1 -> 255
| 2 -> 65535
| 3 -> 16777215
| 4 -> 4294967295 | false |
Z3TestGen.fst | Z3TestGen.with_out_file | val with_out_file (#a: Type) (name: string) (body: ((string -> ML unit) -> ML a)) : ML a | val with_out_file (#a: Type) (name: string) (body: ((string -> ML unit) -> ML a)) : ML a | let with_out_file
(#a: Type)
(name: string)
(body: ((string -> ML unit) -> ML a))
: ML a
= let fd = FStar.IO.open_write_file name in
let res = body (FStar.IO.write_string fd) in
FStar.IO.close_write_file fd;
res | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 5,
"end_line": 1105,
"start_col": 0,
"start_line": 1097
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | name: Prims.string -> body: (_: (_: Prims.string -> FStar.All.ML Prims.unit) -> FStar.All.ML a)
-> FStar.All.ML a | FStar.All.ML | [
"ml"
] | [] | [
"Prims.string",
"Prims.unit",
"FStar.IO.close_write_file",
"FStar.IO.write_string",
"FStar.IO.fd_write",
"FStar.IO.open_write_file"
] | [] | false | true | false | false | false | let with_out_file (#a: Type) (name: string) (body: ((string -> ML unit) -> ML a)) : ML a =
| let fd = FStar.IO.open_write_file name in
let res = body (FStar.IO.write_string fd) in
FStar.IO.close_write_file fd;
res | false |
Z3TestGen.fst | Z3TestGen.parse_readable_dtyp | val parse_readable_dtyp (d: I.readable_dtyp) : Tot (parser reading) | val parse_readable_dtyp (d: I.readable_dtyp) : Tot (parser reading) | let parse_readable_dtyp
(d: I.readable_dtyp)
: Tot (parser reading)
= match d with
| I.DT_IType i -> parse_readable_itype i
| I.DT_App _ hd args -> parse_readable_app hd args | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 52,
"end_line": 519,
"start_col": 0,
"start_line": 514
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | d: InterpreterTarget.readable_dtyp -> Z3TestGen.parser Z3TestGen.reading | Prims.Tot | [
"total"
] | [] | [
"InterpreterTarget.readable_dtyp",
"InterpreterTarget.itype",
"Z3TestGen.parse_readable_itype",
"Prims.bool",
"Ast.ident",
"Prims.list",
"InterpreterTarget.expr",
"Z3TestGen.parse_readable_app",
"Z3TestGen.parser",
"Z3TestGen.reading"
] | [] | false | false | false | true | false | let parse_readable_dtyp (d: I.readable_dtyp) : Tot (parser reading) =
| match d with
| I.DT_IType i -> parse_readable_itype i
| I.DT_App _ hd args -> parse_readable_app hd args | false |
Z3TestGen.fst | Z3TestGen.print_witness_as_c_gen | val print_witness_as_c_gen
(out: (string -> ML unit))
(witness: Seq.seq int)
(f: (len: int{len == Seq.length witness} -> ML unit))
: ML unit | val print_witness_as_c_gen
(out: (string -> ML unit))
(witness: Seq.seq int)
(f: (len: int{len == Seq.length witness} -> ML unit))
: ML unit | let print_witness_as_c_gen
(out: (string -> ML unit))
(witness: Seq.seq int)
(f: (len: int { len == Seq.length witness }) -> ML unit)
: ML unit
= let len = Seq.length witness in
out "{\n";
print_witness_as_c_aux out witness len;
out "
printf(\"";
print_witness_as_c_aux out witness len;
out "\\n\");
";... | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 1,
"end_line": 1249,
"start_col": 0,
"start_line": 1234
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
out: (_: Prims.string -> FStar.All.ML Prims.unit) ->
witness: FStar.Seq.Base.seq Prims.int ->
f: (len: Prims.int{len == FStar.Seq.Base.length witness} -> FStar.All.ML Prims.unit)
-> FStar.All.ML Prims.unit | FStar.All.ML | [
"ml"
] | [] | [
"Prims.string",
"Prims.unit",
"FStar.Seq.Base.seq",
"Prims.int",
"Prims.eq2",
"FStar.Seq.Base.length",
"Z3TestGen.print_witness_as_c_aux",
"Prims.nat"
] | [] | false | true | false | false | false | let print_witness_as_c_gen
(out: (string -> ML unit))
(witness: Seq.seq int)
(f: (len: int{len == Seq.length witness} -> ML unit))
: ML unit =
| let len = Seq.length witness in
out "{\n";
print_witness_as_c_aux out witness len;
out "\n printf(\"";
print_witness_as_c_aux out witness len;
out "\\n\");\n";
f len;
out "};\n" | false |
Z3TestGen.fst | Z3TestGen.print_witness_call_as_c_aux | val print_witness_call_as_c_aux
(out: (string -> ML unit))
(validator_name: string)
(arg_types: list arg_type)
(witness_length: nat)
(args: list string)
: ML unit | val print_witness_call_as_c_aux
(out: (string -> ML unit))
(validator_name: string)
(arg_types: list arg_type)
(witness_length: nat)
(args: list string)
: ML unit | let print_witness_call_as_c_aux
(out: (string -> ML unit))
(validator_name: string)
(arg_types: list arg_type)
(witness_length: nat)
(args: list string)
: ML unit
=
out validator_name;
out "(";
print_witness_args_as_c out arg_types args;
out "&context, &TestErrorHandler, witness, ";
out (string_of_i... | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 13,
"end_line": 1176,
"start_col": 0,
"start_line": 1163
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
out: (_: Prims.string -> FStar.All.ML Prims.unit) ->
validator_name: Prims.string ->
arg_types: Prims.list Z3TestGen.arg_type ->
witness_length: Prims.nat ->
args: Prims.list Prims.string
-> FStar.All.ML Prims.unit | FStar.All.ML | [
"ml"
] | [] | [
"Prims.string",
"Prims.unit",
"Prims.list",
"Z3TestGen.arg_type",
"Prims.nat",
"Prims.string_of_int",
"Z3TestGen.print_witness_args_as_c"
] | [] | false | true | false | false | false | let print_witness_call_as_c_aux
(out: (string -> ML unit))
(validator_name: string)
(arg_types: list arg_type)
(witness_length: nat)
(args: list string)
: ML unit =
| out validator_name;
out "(";
print_witness_args_as_c out arg_types args;
out "&context, &TestErrorHandler, witness, ";
out (string_of_int witness_length);
out ", 0);" | false |
Z3TestGen.fst | Z3TestGen.mk_args | val mk_args (is_bitwise_op: option A.integer_type) (l: list T.expr) : ML (option string) | val mk_args (is_bitwise_op: option A.integer_type) (l: list T.expr) : ML (option string) | let rec mk_expr (e: T.expr) : ML string = match fst e with
| T.Constant c -> mk_constant c
| T.Identifier i -> ident_to_string i
| T.App hd args -> mk_op hd (mk_args (is_bitwise_op hd) args)
| _ -> failwith "mk_expr: not supported"
and mk_args_aux (is_bitwise_op: option A.integer_type) accu : (list T.expr -> M... | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 97,
"end_line": 396,
"start_col": 0,
"start_line": 384
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | is_bitwise_op: FStar.Pervasives.Native.option Ast.integer_type -> l: Prims.list Target.expr
-> FStar.All.ML (FStar.Pervasives.Native.option Prims.string) | FStar.All.ML | [
"ml"
] | [
"mk_expr",
"mk_args_aux",
"mk_args"
] | [
"FStar.Pervasives.Native.option",
"Ast.integer_type",
"Prims.list",
"Target.expr",
"FStar.Pervasives.Native.None",
"Prims.string",
"FStar.Pervasives.Native.Some",
"Z3TestGen.mk_args_aux",
"Z3TestGen.mk_maybe_bitwise_arg",
"Z3TestGen.mk_expr"
] | [
"mutual recursion"
] | false | true | false | false | false | let rec mk_args (is_bitwise_op: option A.integer_type) (l: list T.expr) : ML (option string) =
| match l with
| [] -> None
| a :: q -> Some (mk_args_aux is_bitwise_op (mk_maybe_bitwise_arg is_bitwise_op (mk_expr a)) q) | false |
Z3TestGen.fst | Z3TestGen.produce_decls | val produce_decls (out: (string -> ML unit)) (accu: prog) (l: list I.decl) : ML prog | val produce_decls (out: (string -> ML unit)) (accu: prog) (l: list I.decl) : ML prog | let produce_decls (out: string -> ML unit) (accu: prog) (l: list I.decl) : ML prog =
List.fold_left (produce_decl out) accu l | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 42,
"end_line": 1093,
"start_col": 0,
"start_line": 1092
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
out: (_: Prims.string -> FStar.All.ML Prims.unit) ->
accu: Z3TestGen.prog ->
l: Prims.list InterpreterTarget.decl
-> FStar.All.ML Z3TestGen.prog | FStar.All.ML | [
"ml"
] | [] | [
"Prims.string",
"Prims.unit",
"Z3TestGen.prog",
"Prims.list",
"InterpreterTarget.decl",
"FStar.List.fold_left",
"Z3TestGen.produce_decl"
] | [] | false | true | false | false | false | let produce_decls (out: (string -> ML unit)) (accu: prog) (l: list I.decl) : ML prog =
| List.fold_left (produce_decl out) accu l | false |
Z3TestGen.fst | Z3TestGen.print_witness_args_as_c | val print_witness_args_as_c (out: (string -> ML unit)) (l: list arg_type) (args: list string)
: ML unit | val print_witness_args_as_c (out: (string -> ML unit)) (l: list arg_type) (args: list string)
: ML unit | let rec print_witness_args_as_c
(out: (string -> ML unit))
(l: list arg_type) (args: list string)
: ML unit
= match l, args with
| ArgPointer :: q, _ ->
out "NULL, ";
print_witness_args_as_c out q args
| ty :: ql, a :: qargs ->
out a;
(if ArgInt? ty then out "U" else ());
out ", ";
print... | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 11,
"end_line": 1161,
"start_col": 0,
"start_line": 1148
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
out: (_: Prims.string -> FStar.All.ML Prims.unit) ->
l: Prims.list Z3TestGen.arg_type ->
args: Prims.list Prims.string
-> FStar.All.ML Prims.unit | FStar.All.ML | [
"ml"
] | [] | [
"Prims.string",
"Prims.unit",
"Prims.list",
"Z3TestGen.arg_type",
"FStar.Pervasives.Native.Mktuple2",
"Z3TestGen.print_witness_args_as_c",
"Z3TestGen.uu___is_ArgInt",
"Prims.bool",
"FStar.Pervasives.Native.tuple2"
] | [
"recursion"
] | false | true | false | false | false | let rec print_witness_args_as_c (out: (string -> ML unit)) (l: list arg_type) (args: list string)
: ML unit =
| match l, args with
| ArgPointer :: q, _ ->
out "NULL, ";
print_witness_args_as_c out q args
| ty :: ql, a :: qargs ->
out a;
(if ArgInt? ty then out "U");
out ", ";
print_witness_args_as_c out ql qargs
| _ -> () | false |
Z3TestGen.fst | Z3TestGen.print_witness_call_as_c | val print_witness_call_as_c
(out: (string -> ML unit))
(positive: bool)
(validator_name: string)
(arg_types: list arg_type)
(witness_length: nat)
(args: list string)
: ML unit | val print_witness_call_as_c
(out: (string -> ML unit))
(positive: bool)
(validator_name: string)
(arg_types: list arg_type)
(witness_length: nat)
(args: list string)
: ML unit | let print_witness_call_as_c
(out: (string -> ML unit))
(positive: bool)
(validator_name: string)
(arg_types: list arg_type)
(witness_length: nat)
(args: list string)
: ML unit
=
out "
{
uint8_t context = 0;
uint64_t output = ";
print_witness_call_as_c_aux out validator_name arg_types witness_l... | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 1,
"end_line": 1215,
"start_col": 0,
"start_line": 1178
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
out: (_: Prims.string -> FStar.All.ML Prims.unit) ->
positive: Prims.bool ->
validator_name: Prims.string ->
arg_types: Prims.list Z3TestGen.arg_type ->
witness_length: Prims.nat ->
args: Prims.list Prims.string
-> FStar.All.ML Prims.unit | FStar.All.ML | [
"ml"
] | [] | [
"Prims.string",
"Prims.unit",
"Prims.bool",
"Prims.list",
"Z3TestGen.arg_type",
"Prims.nat",
"Prims.string_of_int",
"Z3TestGen.print_witness_call_as_c_aux"
] | [] | false | true | false | false | false | let print_witness_call_as_c
(out: (string -> ML unit))
(positive: bool)
(validator_name: string)
(arg_types: list arg_type)
(witness_length: nat)
(args: list string)
: ML unit =
| out "\n {\n uint8_t context = 0;\n uint64_t output = ";
print_witness_call_as_c_aux out validator_name arg_types witness_length args;
out "\n printf(\" ";
print_witness_call_as_c_aux out validator_name arg_types witness_length args;
out " // \");\n BOOLEAN result = !EverParseIsError(output);\n BOOLEAN ... | false |
Z3TestGen.fst | Z3TestGen.module_and_validator_name | val module_and_validator_name (s: string) : ML (string & string) | val module_and_validator_name (s: string) : ML (string & string) | let module_and_validator_name
(s: string)
: ML (string & string)
= match String.split ['.'] s with
| [modul; fn] -> modul, Target.validator_name modul fn
| _ -> failwith "Z3TestGen.validator_name" | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 44,
"end_line": 1146,
"start_col": 0,
"start_line": 1141
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s: Prims.string -> FStar.All.ML (Prims.string * Prims.string) | FStar.All.ML | [
"ml"
] | [] | [
"Prims.string",
"FStar.String.split",
"Prims.Cons",
"FStar.String.char",
"Prims.Nil",
"FStar.Pervasives.Native.Mktuple2",
"FStar.Pervasives.Native.tuple2",
"Target.validator_name",
"Prims.list",
"FStar.All.failwith"
] | [] | false | true | false | false | false | let module_and_validator_name (s: string) : ML (string & string) =
| match String.split ['.'] s with
| [modul ; fn] -> modul, Target.validator_name modul fn
| _ -> failwith "Z3TestGen.validator_name" | false |
Z3TestGen.fst | Z3TestGen.read_witness | val read_witness (z3: Z3.z3) : ML (Seq.seq int) | val read_witness (z3: Z3.z3) : ML (Seq.seq int) | let read_witness (z3: Z3.z3) : ML (Seq.seq int) =
z3.to_z3 "(get-value (state-witness-size))\n";
let (_, witness_size) = Lisp.read_int_from z3.from_z3 "state-witness-size" in
let rec aux (accu: Seq.seq int) (remaining: int) : ML (Seq.seq int) =
if remaining <= 0
then accu
else
let index = remain... | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 28,
"end_line": 1129,
"start_col": 0,
"start_line": 1117
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | z3: Z3.Base.z3 -> FStar.All.ML (FStar.Seq.Base.seq Prims.int) | FStar.All.ML | [
"ml"
] | [] | [
"Z3.Base.z3",
"Prims.string",
"Prims.int",
"FStar.Seq.Base.empty",
"FStar.Seq.Base.seq",
"Prims.op_LessThanOrEqual",
"Prims.bool",
"FStar.Seq.Base.cons",
"Lisp.read_bare_int_from",
"Z3.Base.__proj__Mkz3__item__from_z3",
"Prims.unit",
"Z3.Base.__proj__Mkz3__item__to_z3",
"FStar.Printf.sprintf... | [] | false | true | false | false | false | let read_witness (z3: Z3.z3) : ML (Seq.seq int) =
| z3.to_z3 "(get-value (state-witness-size))\n";
let _, witness_size = Lisp.read_int_from z3.from_z3 "state-witness-size" in
let rec aux (accu: Seq.seq int) (remaining: int) : ML (Seq.seq int) =
if remaining <= 0
then accu
else
let index = remaining - 1 in
let _ = z3.to_z3 (Printf.sprintf "(eval (choose %d)... | false |
Z3TestGen.fst | Z3TestGen.print_witness_and_call | val print_witness_and_call
(name: string)
(l: list arg_type)
(witness: Seq.seq int)
(args: list string)
: ML unit | val print_witness_and_call
(name: string)
(l: list arg_type)
(witness: Seq.seq int)
(args: list string)
: ML unit | let print_witness_and_call (name: string) (l: list arg_type) (witness: Seq.seq int) (args: list string) : ML unit =
FStar.IO.print_string ";; call ";
FStar.IO.print_string (mk_witness_call name l args);
print_witness witness | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 23,
"end_line": 1312,
"start_col": 0,
"start_line": 1309
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
name: Prims.string ->
l: Prims.list Z3TestGen.arg_type ->
witness: FStar.Seq.Base.seq Prims.int ->
args: Prims.list Prims.string
-> FStar.All.ML Prims.unit | FStar.All.ML | [
"ml"
] | [] | [
"Prims.string",
"Prims.list",
"Z3TestGen.arg_type",
"FStar.Seq.Base.seq",
"Prims.int",
"Z3TestGen.print_witness",
"Prims.unit",
"FStar.IO.print_string",
"Z3TestGen.mk_witness_call"
] | [] | false | true | false | false | false | let print_witness_and_call
(name: string)
(l: list arg_type)
(witness: Seq.seq int)
(args: list string)
: ML unit =
| FStar.IO.print_string ";; call ";
FStar.IO.print_string (mk_witness_call name l args);
print_witness witness | false |
Z3TestGen.fst | Z3TestGen.print_witness | val print_witness (witness: Seq.seq int) : ML unit | val print_witness (witness: Seq.seq int) : ML unit | let print_witness (witness: Seq.seq int) : ML unit =
FStar.IO.print_string " produced witness: [";
List.iter (fun i -> FStar.IO.print_string (string_of_int i); FStar.IO.print_string "; ") (Seq.seq_to_list witness);
FStar.IO.print_string "]\n" | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 29,
"end_line": 1301,
"start_col": 0,
"start_line": 1298
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | witness: FStar.Seq.Base.seq Prims.int -> FStar.All.ML Prims.unit | FStar.All.ML | [
"ml"
] | [] | [
"FStar.Seq.Base.seq",
"Prims.int",
"FStar.IO.print_string",
"Prims.unit",
"FStar.List.iter",
"Prims.string_of_int",
"FStar.Seq.Base.seq_to_list"
] | [] | false | true | false | false | false | let print_witness (witness: Seq.seq int) : ML unit =
| FStar.IO.print_string " produced witness: [";
List.iter (fun i ->
FStar.IO.print_string (string_of_int i);
FStar.IO.print_string "; ")
(Seq.seq_to_list witness);
FStar.IO.print_string "]\n" | false |
Z3TestGen.fst | Z3TestGen.count_args | val count_args (l: list arg_type) : Tot nat | val count_args (l: list arg_type) : Tot nat | let count_args (l: list arg_type) : Tot nat = List.Tot.length (List.Tot.filter (function ArgPointer -> false | _ -> true) l) | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 124,
"end_line": 1314,
"start_col": 0,
"start_line": 1314
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | l: Prims.list Z3TestGen.arg_type -> Prims.nat | Prims.Tot | [
"total"
] | [] | [
"Prims.list",
"Z3TestGen.arg_type",
"FStar.List.Tot.Base.length",
"FStar.List.Tot.Base.filter",
"Prims.bool",
"Prims.nat"
] | [] | false | false | false | true | false | let count_args (l: list arg_type) : Tot nat =
| List.Tot.length (List.Tot.filter (function
| ArgPointer -> false
| _ -> true)
l) | false |
Z3TestGen.fst | Z3TestGen.enumerate_branch_traces | val enumerate_branch_traces (z3: Z3.z3) (max_depth: nat) : ML (list branch_trace_node) | val enumerate_branch_traces (z3: Z3.z3) (max_depth: nat) : ML (list branch_trace_node) | let enumerate_branch_traces
(z3: Z3.z3)
(max_depth: nat)
: ML (list branch_trace_node)
= z3.to_z3 "(push)\n";
let res = enumerate_branch_traces' z3 max_depth 0 "" in
z3.to_z3 "(pop)\n";
res | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 5,
"end_line": 1463,
"start_col": 0,
"start_line": 1456
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | z3: Z3.Base.z3 -> max_depth: Prims.nat -> FStar.All.ML (Prims.list Z3TestGen.branch_trace_node) | FStar.All.ML | [
"ml"
] | [] | [
"Z3.Base.z3",
"Prims.nat",
"Prims.list",
"Z3TestGen.branch_trace_node",
"Prims.unit",
"Z3.Base.__proj__Mkz3__item__to_z3",
"Z3TestGen.enumerate_branch_traces'"
] | [] | false | true | false | false | false | let enumerate_branch_traces (z3: Z3.z3) (max_depth: nat) : ML (list branch_trace_node) =
| z3.to_z3 "(push)\n";
let res = enumerate_branch_traces' z3 max_depth 0 "" in
z3.to_z3 "(pop)\n";
res | false |
Z3TestGen.fst | Z3TestGen.witnesses_for | val witnesses_for : z3: Z3.Base.z3 ->
name: Prims.string ->
l: Prims.list Z3TestGen.arg_type ->
nargs: Prims.nat{nargs == Z3TestGen.count_args l} ->
print_test_case_mk_get_first_witness:
Prims.list ((_: FStar.Seq.Base.seq Prims.int -> _: Prims.list Prims.string
-> FStar.All.ML Prims.... | let witnesses_for (z3: Z3.z3) (name: string) (l: list arg_type) (nargs: nat { nargs == count_args l }) (print_test_case_mk_get_first_witness: list ((Seq.seq int -> list string -> ML unit) & (unit -> ML string))) nbwitnesses max_depth =
z3.to_z3 "(push)\n";
z3.to_z3 (mk_get_witness name l);
let traces = enumerate_... | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 20,
"end_line": 1499,
"start_col": 0,
"start_line": 1484
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
z3: Z3.Base.z3 ->
name: Prims.string ->
l: Prims.list Z3TestGen.arg_type ->
nargs: Prims.nat{nargs == Z3TestGen.count_args l} ->
print_test_case_mk_get_first_witness:
Prims.list ((_: FStar.Seq.Base.seq Prims.int -> _: Prims.list Prims.string
-> FStar.All.ML Prims.unit) *
... | FStar.All.ML | [
"ml"
] | [] | [
"Z3.Base.z3",
"Prims.string",
"Prims.list",
"Z3TestGen.arg_type",
"Prims.nat",
"Prims.eq2",
"Z3TestGen.count_args",
"FStar.Pervasives.Native.tuple2",
"FStar.Seq.Base.seq",
"Prims.int",
"Prims.unit",
"Z3.Base.__proj__Mkz3__item__to_z3",
"FStar.List.iter",
"Z3TestGen.want_witnesses_with_dept... | [] | false | true | false | false | false | let witnesses_for
(z3: Z3.z3)
(name: string)
(l: list arg_type)
(nargs: nat{nargs == count_args l})
(print_test_case_mk_get_first_witness:
list ((Seq.seq int -> list string -> ML unit) & (unit -> ML string)))
nbwitnesses
max_depth
=
| z3.to_z3 "(push)\n";
z3.to_z3 (mk_get_witness name l);
let traces = enumerate_branch_traces z3 max_depth in
z3.to_z3 assert_valid_state;
List.iter #((Seq.seq int -> list string -> ML unit) & (unit -> ML string))
(fun (ptc, f) ->
z3.to_z3 "(push)\n";
z3.to_z3 (f ());
want_witnesses_with_depth ptc z3 ... | false | |
Z3TestGen.fst | Z3TestGen.assert_valid_state | val assert_valid_state : Prims.string | let assert_valid_state =
"(assert (or (= state-witness-input-size -1) (= state-witness-input-size 0)))\n" | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 82,
"end_line": 1394,
"start_col": 0,
"start_line": 1393
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Prims.string | Prims.Tot | [
"total"
] | [] | [] | [] | false | false | false | true | false | let assert_valid_state =
| "(assert (or (= state-witness-input-size -1) (= state-witness-input-size 0)))\n" | false | |
Z3TestGen.fst | Z3TestGen.mk_get_positive_test_witness | val mk_get_positive_test_witness (name: string) (l: list arg_type) : string | val mk_get_positive_test_witness (name: string) (l: list arg_type) : string | let mk_get_positive_test_witness (name: string) (l: list arg_type) : string =
"
(assert (= (input-size state-witness) 0)) ; validator shall consume all input
" | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 1,
"end_line": 1504,
"start_col": 0,
"start_line": 1501
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | name: Prims.string -> l: Prims.list Z3TestGen.arg_type -> Prims.string | Prims.Tot | [
"total"
] | [] | [
"Prims.string",
"Prims.list",
"Z3TestGen.arg_type"
] | [] | false | false | false | true | false | let mk_get_positive_test_witness (name: string) (l: list arg_type) : string =
| "\n(assert (= (input-size state-witness) 0)) ; validator shall consume all input\n" | false |
Vale.SHA.PPC64LE.Rounds.fst | Vale.SHA.PPC64LE.Rounds.va_lemma_Loop_rounds_16_47 | val va_lemma_Loop_rounds_16_47 : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 ->
block:block_w -> hash_orig:hash256
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Loop_rounds_16_47 i) va_s0 /\ va_get_ok va_s0 /\ (l_or
(i == 16) (i == 32) /\ validSrcAddrsOffset128 (va_get... | val va_lemma_Loop_rounds_16_47 : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 ->
block:block_w -> hash_orig:hash256
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Loop_rounds_16_47 i) va_s0 /\ va_get_ok va_s0 /\ (l_or
(i == 16) (i == 32) /\ validSrcAddrsOffset128 (va_get... | let va_lemma_Loop_rounds_16_47 va_b0 va_s0 i k_b block hash_orig =
let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec
22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16;
va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod... | {
"file_name": "obj/Vale.SHA.PPC64LE.Rounds.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 16,
"end_line": 299,
"start_col": 0,
"start_line": 253
} | module Vale.SHA.PPC64LE.Rounds
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open FStar.Seq
open Vale.Arch.Types
open Vale.Arch.HeapImpl
open Vale.PPC64LE.Machine_s
open Vale.PPC64LE.Memory
open Vale.PPC64LE.Stack_i
open Vale.PPC64LE.State
open Vale.PPC64LE.Decls
open Vale... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fsti.checked",
"Vale.SHA.PPC64LE.SHA_helpers.fsti.checked",
"Vale.SHA.PPC64LE.Rounds.Core.fsti.checked",
"Vale.PPC64LE.State.fsti.checked",
"Vale.PPC64LE.Stack_i.fsti.checked",
"Vale.PPC64LE.QuickCodes.fsti.checked",
"Vale.PPC64... | [
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.SHA.PPC64LE.Rounds.Core",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec.Loops",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
va_b0: Vale.PPC64LE.Decls.va_code ->
va_s0: Vale.PPC64LE.Decls.va_state ->
i: Prims.nat ->
k_b: Vale.PPC64LE.Memory.buffer128 ->
block: Vale.SHA.PPC64LE.SHA_helpers.block_w ->
hash_orig: Vale.SHA.PPC64LE.SHA_helpers.hash256
-> Prims.Ghost (Vale.PPC64LE.Decls.va_state * Vale.PPC64LE.Decls.va_f... | Prims.Ghost | [] | [] | [
"Vale.PPC64LE.Decls.va_code",
"Vale.PPC64LE.Decls.va_state",
"Prims.nat",
"Vale.PPC64LE.Memory.buffer128",
"Vale.SHA.PPC64LE.SHA_helpers.block_w",
"Vale.SHA.PPC64LE.SHA_helpers.hash256",
"Vale.PPC64LE.QuickCodes.fuel",
"Prims.unit",
"FStar.Pervasives.Native.Mktuple2",
"Vale.PPC64LE.Decls.va_fuel",... | [] | false | false | false | false | false | let va_lemma_Loop_rounds_16_47 va_b0 va_s0 i k_b block hash_orig =
| let va_mods:va_mods_t =
[
va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21;
va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_vec 15;
va_Mod_vec 14; va_Mod_vec 13; va_Mod_vec 12; va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9;
va_Mod_... | false |
Z3TestGen.fst | Z3TestGen.binders_of_params | val binders_of_params : _: Prims.list (Ast.with_meta_t Ast.ident' * Target.typ) -> Z3TestGen.binders | let rec binders_of_params = function
| [] -> empty_binders
| (id, t) :: q -> push_binder (ident_to_string id) (smt_type_of_typ t) (binders_of_params q) | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 92,
"end_line": 1013,
"start_col": 0,
"start_line": 1011
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | _: Prims.list (Ast.with_meta_t Ast.ident' * Target.typ) -> Z3TestGen.binders | Prims.Tot | [
"total"
] | [] | [
"Prims.list",
"FStar.Pervasives.Native.tuple2",
"Ast.with_meta_t",
"Ast.ident'",
"Target.typ",
"Z3TestGen.empty_binders",
"Z3TestGen.push_binder",
"Z3TestGen.ident_to_string",
"Z3TestGen.smt_type_of_typ",
"Z3TestGen.binders_of_params",
"Z3TestGen.binders"
] | [
"recursion"
] | false | false | false | true | false | let rec binders_of_params =
| function
| [] -> empty_binders
| (id, t) :: q -> push_binder (ident_to_string id) (smt_type_of_typ t) (binders_of_params q) | false | |
Z3TestGen.fst | Z3TestGen.parse_dtyp | val parse_dtyp (d: I.dtyp) : Tot (parser not_reading) | val parse_dtyp (d: I.dtyp) : Tot (parser not_reading) | let parse_dtyp
(d: I.dtyp)
: Tot (parser not_reading)
= if I.allow_reader_of_dtyp d
then wrap_parser (parse_readable_dtyp d)
else match d with
| I.DT_IType i -> parse_itype i
| I.DT_App _ hd args -> parse_not_readable_app hd args | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 58,
"end_line": 540,
"start_col": 0,
"start_line": 533
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | d: InterpreterTarget.dtyp -> Z3TestGen.parser Z3TestGen.not_reading | Prims.Tot | [
"total"
] | [] | [
"InterpreterTarget.dtyp",
"InterpreterTarget.allow_reader_of_dtyp",
"Z3TestGen.wrap_parser",
"Z3TestGen.parse_readable_dtyp",
"Prims.bool",
"InterpreterTarget.itype",
"Z3TestGen.parse_itype",
"Ast.ident",
"Prims.list",
"InterpreterTarget.expr",
"Z3TestGen.parse_not_readable_app",
"Z3TestGen.pa... | [] | false | false | false | true | false | let parse_dtyp (d: I.dtyp) : Tot (parser not_reading) =
| if I.allow_reader_of_dtyp d
then wrap_parser (parse_readable_dtyp d)
else
match d with
| I.DT_IType i -> parse_itype i
| I.DT_App _ hd args -> parse_not_readable_app hd args | false |
Z3TestGen.fst | Z3TestGen.test_error_handler | val test_error_handler : Prims.string | let test_error_handler = "
static void TestErrorHandler (
const char *typename_s,
const char *fieldname,
const char *reason,
uint64_t error_code,
uint8_t *context,
EVERPARSE_INPUT_BUFFER input,
uint64_t start_pos
) {
(void) error_code;
(void) input;
if (*context) {
printf(\"Reached from position... | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 1,
"end_line": 1530,
"start_col": 0,
"start_line": 1511
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Prims.string | Prims.Tot | [
"total"
] | [] | [] | [] | false | false | false | true | false | let test_error_handler =
| "\nstatic void TestErrorHandler (\n const char *typename_s,\n const char *fieldname,\n const char *reason,\n uint64_t error_code,\n uint8_t *context,\n EVERPARSE_INPUT_BUFFER input,\n uint64_t start_pos\n) {\n (void) error_code;\n (void) input;\n if (*context) {\n printf(\"Reached from position %ld: type n... | false | |
Z3TestGen.fst | Z3TestGen.do_diff_test_for | val do_diff_test_for : out_dir: Prims.string ->
counter: FStar.ST.ref Prims.int ->
cout: (_: Prims.string -> FStar.All.ML Prims.unit) ->
z3: Z3.Base.z3 ->
prog: Z3TestGen.prog ->
name1: Prims.string ->
name2: Prims.string ->
args: Prims.list Z3TestGen.arg_type ->
nargs: Prims.nat{nargs =... | let do_diff_test_for (out_dir: string) (counter: ref int) (cout: string -> ML unit) (z3: Z3.z3) (prog: prog) name1 name2 args (nargs: nat { nargs == count_args args }) validator_name1 validator_name2 nbwitnesses depth =
FStar.IO.print_string (Printf.sprintf ";; Witnesses that work with %s but not with %s\n" name1 nam... | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 193,
"end_line": 1588,
"start_col": 0,
"start_line": 1586
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
out_dir: Prims.string ->
counter: FStar.ST.ref Prims.int ->
cout: (_: Prims.string -> FStar.All.ML Prims.unit) ->
z3: Z3.Base.z3 ->
prog: Z3TestGen.prog ->
name1: Prims.string ->
name2: Prims.string ->
args: Prims.list Z3TestGen.arg_type ->
nargs: Prims.nat{nargs == Z3TestGen.count_... | FStar.All.ALL | [] | [] | [
"Prims.string",
"FStar.ST.ref",
"Prims.int",
"Prims.unit",
"Z3.Base.z3",
"Z3TestGen.prog",
"Prims.list",
"Z3TestGen.arg_type",
"Prims.nat",
"Prims.eq2",
"Z3TestGen.count_args",
"Z3TestGen.witnesses_for",
"Prims.Cons",
"FStar.Pervasives.Native.tuple2",
"FStar.Seq.Base.seq",
"FStar.Perva... | [] | false | true | false | false | false | let do_diff_test_for
(out_dir: string)
(counter: ref int)
(cout: (string -> ML unit))
(z3: Z3.z3)
(prog: prog)
name1
name2
args
(nargs: nat{nargs == count_args args})
validator_name1
validator_name2
nbwitnesses
depth
=
| FStar.IO.print_string (Printf.sprintf ";; Witnesses that work with %s but not with %s\n" name1 name2
);
witnesses_for z3
name1
args
nargs
([
print_diff_witness_as_c out_dir cout validator_name1 validator_name2 args counter,
(fun _ -> mk_get_diff_test_witness name1 args name2)
])
nbwitnesses
... | false | |
Z3TestGen.fst | Z3TestGen.arg_type_of_typ | val arg_type_of_typ (t: T.typ) : Tot (option arg_type) | val arg_type_of_typ (t: T.typ) : Tot (option arg_type) | let arg_type_of_typ (t: T.typ) : Tot (option arg_type) =
match t with
| T.T_pointer _
| T.T_app _ A.KindOutput _
| T.T_app _ A.KindExtern _
| T.T_app {v = {modul_name = None; name = "PUINT8"}} _ _
-> Some ArgPointer
| T.T_app {v = {modul_name = None; name = "Bool"}} _ _
-> Some ArgBool
| T.T_app i... | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 13,
"end_line": 1004,
"start_col": 0,
"start_line": 989
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | t: Target.typ -> FStar.Pervasives.Native.option Z3TestGen.arg_type | Prims.Tot | [
"total"
] | [] | [
"Target.typ",
"FStar.Pervasives.Native.Some",
"Z3TestGen.arg_type",
"Z3TestGen.ArgPointer",
"Ast.ident",
"Prims.list",
"FStar.Pervasives.either",
"Target.expr",
"Ast.range",
"Ast.comments",
"Ast.t_kind",
"Z3TestGen.ArgBool",
"Ast.maybe_as_integer_typ",
"Ast.integer_type",
"Z3TestGen.ArgI... | [] | false | false | false | true | false | let arg_type_of_typ (t: T.typ) : Tot (option arg_type) =
| match t with
| T.T_pointer _
| T.T_app _ A.KindOutput _
| T.T_app _ A.KindExtern _
| T.T_app { v = { modul_name = None ; name = "PUINT8" } } _ _ -> Some ArgPointer
| T.T_app { v = { modul_name = None ; name = "Bool" } } _ _ -> Some ArgBool
| T.T_app i _ _ ->
(match A.maybe_as_integer_typ i with
| Some t -> Some (... | false |
Z3TestGen.fst | Z3TestGen.mk_get_negative_test_witness | val mk_get_negative_test_witness (name: string) (l: list arg_type) : string | val mk_get_negative_test_witness (name: string) (l: list arg_type) : string | let mk_get_negative_test_witness (name: string) (l: list arg_type) : string =
"
(assert (= state-witness-input-size -1)) ; validator shall genuinely fail, we are not interested in positive cases followed by garbage
" | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 1,
"end_line": 1509,
"start_col": 0,
"start_line": 1506
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | name: Prims.string -> l: Prims.list Z3TestGen.arg_type -> Prims.string | Prims.Tot | [
"total"
] | [] | [
"Prims.string",
"Prims.list",
"Z3TestGen.arg_type"
] | [] | false | false | false | true | false | let mk_get_negative_test_witness (name: string) (l: list arg_type) : string =
| "\n(assert (= state-witness-input-size -1)) ; validator shall genuinely fail, we are not interested in positive cases followed by garbage\n" | false |
Z3TestGen.fst | Z3TestGen.mk_get_witness | val mk_get_witness (name: string) (l: list arg_type) : string | val mk_get_witness (name: string) (l: list arg_type) : string | let mk_get_witness (name: string) (l: list arg_type) : string =
Printf.sprintf "
%s
(define-fun state-witness () State (%s initial-state))
(define-fun state-witness-input-size () Int (input-size state-witness))
(declare-fun state-witness-size () Int)
(assert (<= state-witness-size (choice-index state-witness)))
(assert... | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 25,
"end_line": 1387,
"start_col": 0,
"start_line": 1377
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | name: Prims.string -> l: Prims.list Z3TestGen.arg_type -> Prims.string | Prims.Tot | [
"total"
] | [] | [
"Prims.string",
"Prims.list",
"Z3TestGen.arg_type",
"FStar.Printf.sprintf",
"Z3TestGen.mk_assert_args",
"Z3TestGen.mk_call_args"
] | [] | false | false | false | true | false | let mk_get_witness (name: string) (l: list arg_type) : string =
| Printf.sprintf "\n%s\n(define-fun state-witness () State (%s initial-state))\n(define-fun state-witness-input-size () Int (input-size state-witness))\n(declare-fun state-witness-size () Int)\n(assert (<= state-witness-size (choice-index state-witness)))\n(assert (>= state-witness-size (choice-index state-witness)))\n"
... | false |
Z3TestGen.fst | Z3TestGen.parse_nlist_total_constant_size | val parse_nlist_total_constant_size (i: I.itype{Some? (itype_byte_size i)}) (size: I.expr)
: Tot (parser not_reading) | val parse_nlist_total_constant_size (i: I.itype{Some? (itype_byte_size i)}) (size: I.expr)
: Tot (parser not_reading) | let parse_nlist_total_constant_size
(i: I.itype {Some? (itype_byte_size i)}) // TODO: DT_App?
(size: I.expr)
: Tot (parser not_reading)
= parse_not_readable_app'
"parse-nlist-total-constant-size"
[
size;
T.mk_expr (T.Constant (A.Int A.UInt8 (Some?.v (itype_byte_size i))));
] | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 5,
"end_line": 871,
"start_col": 0,
"start_line": 862
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | i: InterpreterTarget.itype{Some? (Z3TestGen.itype_byte_size i)} -> size: InterpreterTarget.expr
-> Z3TestGen.parser Z3TestGen.not_reading | Prims.Tot | [
"total"
] | [] | [
"InterpreterTarget.itype",
"Prims.b2t",
"FStar.Pervasives.Native.uu___is_Some",
"Prims.pos",
"Z3TestGen.itype_byte_size",
"InterpreterTarget.expr",
"Z3TestGen.parse_not_readable_app'",
"Prims.Cons",
"Target.mk_expr",
"Target.Constant",
"Ast.Int",
"Ast.UInt8",
"FStar.Pervasives.Native.__proj_... | [] | false | false | false | false | false | let parse_nlist_total_constant_size (i: I.itype{Some? (itype_byte_size i)}) (size: I.expr)
: Tot (parser not_reading) =
| parse_not_readable_app' "parse-nlist-total-constant-size"
[size; T.mk_expr (T.Constant (A.Int A.UInt8 (Some?.v (itype_byte_size i))))] | false |
Z3TestGen.fst | Z3TestGen.type_has_actions | val type_has_actions : _: InterpreterTarget.typ -> Prims.bool | let rec type_has_actions = function
| I.T_with_dep_action _ _ _
| I.T_dep_pair_with_action _ _ _ _
| I.T_refine_with_action _ _ _ _
| I.T_dep_pair_with_refinement_and_action _ _ _ _ _
| I.T_with_action _ _ _
| I.T_probe_then_validate _ _ _ _ _
-> true
| I.T_false _
| I.T_denoted _ _
| I.T_refine _... | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 22,
"end_line": 928,
"start_col": 0,
"start_line": 906
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | _: InterpreterTarget.typ -> Prims.bool | Prims.Tot | [
"total"
] | [] | [
"InterpreterTarget.typ",
"InterpreterTarget.non_empty_string",
"InterpreterTarget.readable_dtyp",
"InterpreterTarget.lam",
"InterpreterTarget.action",
"InterpreterTarget.expr",
"InterpreterTarget.dtyp",
"Ast.ident",
"Prims.op_BarBar",
"Z3TestGen.type_has_actions",
"Prims.string",
"Prims.bool"
... | [
"recursion"
] | false | false | false | true | false | let rec type_has_actions =
| function
| I.T_with_dep_action _ _ _
| I.T_dep_pair_with_action _ _ _ _
| I.T_refine_with_action _ _ _ _
| I.T_dep_pair_with_refinement_and_action _ _ _ _ _
| I.T_with_action _ _ _
| I.T_probe_then_validate _ _ _ _ _ -> true
| I.T_false _ | I.T_denoted _ _ | I.T_refine _ _ _ | I.T_string _ _ _ -> false
| I.T_if_else _ ... | false | |
Z3TestGen.fst | Z3TestGen.arg_type_of_typ_with_prog | val arg_type_of_typ_with_prog (accu: prog) (t: T.typ) : Tot (option arg_type) (decreases t) | val arg_type_of_typ_with_prog (accu: prog) (t: T.typ) : Tot (option arg_type) (decreases t) | let rec arg_type_of_typ_with_prog
(accu: prog)
(t: T.typ)
: Tot (option arg_type)
(decreases t)
= match arg_type_of_typ t with
| Some ty -> Some ty
| None ->
begin match t with
| T.T_app hd _ _ ->
begin match List.Tot.assoc (ident_to_string hd) accu with
| Some def -> def.enum_base_type
... | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 7,
"end_line": 1072,
"start_col": 0,
"start_line": 1052
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | accu: Z3TestGen.prog -> t: Target.typ
-> Prims.Tot (FStar.Pervasives.Native.option Z3TestGen.arg_type) | Prims.Tot | [
"total",
""
] | [] | [
"Z3TestGen.prog",
"Target.typ",
"Z3TestGen.arg_type_of_typ",
"Z3TestGen.arg_type",
"FStar.Pervasives.Native.Some",
"Ast.ident",
"Ast.t_kind",
"Prims.list",
"FStar.Pervasives.either",
"Target.expr",
"FStar.List.Tot.Base.assoc",
"Prims.string",
"Z3TestGen.prog_def",
"Z3TestGen.ident_to_strin... | [
"recursion"
] | false | false | false | true | false | let rec arg_type_of_typ_with_prog (accu: prog) (t: T.typ) : Tot (option arg_type) (decreases t) =
| match arg_type_of_typ t with
| Some ty -> Some ty
| None ->
match t with
| T.T_app hd _ _ ->
(match List.Tot.assoc (ident_to_string hd) accu with
| Some def -> def.enum_base_type
| _ -> None)
| T.T_with_action base _
| T.T_with_dep_action base _
| T.T_with_comment base _
| T.T_refine base _ ... | false |
Z3TestGen.fst | Z3TestGen.typ_depth | val typ_depth (t: I.typ) : GTot nat (decreases t) | val typ_depth (t: I.typ) : GTot nat (decreases t) | let rec typ_depth (t: I.typ) : GTot nat
(decreases t)
= match t with
| I.T_if_else _ t1 t2 // 2 accounts for the call to parse_then_else_with_branch_trace
-> 2 + typ_depth t1 + typ_depth t2
| I.T_pair _ t1 t2
-> 1 + typ_depth t1 + typ_depth t2
| I.T_dep_pair _ _ (_, t')
| I.T_dep_pair_with_refinement ... | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 8,
"end_line": 945,
"start_col": 0,
"start_line": 930
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | t: InterpreterTarget.typ -> Prims.GTot Prims.nat | Prims.GTot | [
"sometrivial",
""
] | [] | [
"InterpreterTarget.typ",
"InterpreterTarget.expr",
"Prims.op_Addition",
"Z3TestGen.typ_depth",
"InterpreterTarget.non_empty_string",
"InterpreterTarget.readable_dtyp",
"Ast.ident",
"InterpreterTarget.lam",
"Prims.string",
"Prims.nat"
] | [
"recursion"
] | false | false | false | false | false | let rec typ_depth (t: I.typ) : GTot nat (decreases t) =
| match t with
| I.T_if_else _ t1 t2 -> 2 + typ_depth t1 + typ_depth t2
| I.T_pair _ t1 t2 -> 1 + typ_depth t1 + typ_depth t2
| I.T_dep_pair _ _ (_, t')
| I.T_dep_pair_with_refinement _ _ _ (_, t')
| I.T_with_comment _ t' _
| I.T_at_most _ _ t'
| I.T_exact _ _ t'
| I.T_nlist _ _ t' -> 1 + typ_depth t'
| _ -> 0 | false |
Z3TestGen.fst | Z3TestGen.test_checker_c | val test_checker_c (modul validator_name: string) (params: list arg_type) : Tot string | val test_checker_c (modul validator_name: string) (params: list arg_type) : Tot string | let test_checker_c
(modul: string)
(validator_name: string)
(params: list arg_type)
: Tot string
=
let (nb_cmd_and_args, read_args, call_args_lhs, call_args_rhs) = List.Tot.fold_left test_exe_mk_arg (2, "", "", "") params in
let nb_cmd_and_args_s = string_of_int nb_cmd_and_args in
let nb_args_s = string_of_... | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 1,
"end_line": 1727,
"start_col": 0,
"start_line": 1654
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | modul: Prims.string -> validator_name: Prims.string -> params: Prims.list Z3TestGen.arg_type
-> Prims.string | Prims.Tot | [
"total"
] | [] | [
"Prims.string",
"Prims.list",
"Z3TestGen.arg_type",
"Prims.int",
"Prims.op_Hat",
"Z3TestGen.test_error_handler",
"Prims.string_of_int",
"Prims.op_Subtraction",
"FStar.Pervasives.Native.tuple4",
"FStar.List.Tot.Base.fold_left",
"Z3TestGen.test_exe_mk_arg",
"FStar.Pervasives.Native.Mktuple4"
] | [] | false | false | false | true | false | let test_checker_c (modul validator_name: string) (params: list arg_type) : Tot string =
| let nb_cmd_and_args, read_args, call_args_lhs, call_args_rhs =
List.Tot.fold_left test_exe_mk_arg (2, "", "", "") params
in
let nb_cmd_and_args_s = string_of_int nb_cmd_and_args in
let nb_args_s = string_of_int (nb_cmd_and_args - 1) in
"\n#include \"" ^
modul ^
".h\"\n#include <fcntl.h>\n#include <sys/mman.h>\n#inclu... | false |
Z3TestGen.fst | Z3TestGen.test_exe_mk_arg | val test_exe_mk_arg (accu: (int & string & string & string)) (p: arg_type)
: Tot (int & string & string & string) | val test_exe_mk_arg (accu: (int & string & string & string)) (p: arg_type)
: Tot (int & string & string & string) | let test_exe_mk_arg
(accu: (int & string & string & string))
(p: arg_type)
: Tot (int & string & string & string)
= let (cur_arg, read_args, call_args_lhs, call_args_rhs) = accu in
let cur_arg_s = string_of_int cur_arg in
let arg_var = "arg" ^ cur_arg_s in
let cur_arg' = cur_arg + 1 in
let read_args' = read... | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 56,
"end_line": 1652,
"start_col": 0,
"start_line": 1625
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | accu: (((Prims.int * Prims.string) * Prims.string) * Prims.string) -> p: Z3TestGen.arg_type
-> ((Prims.int * Prims.string) * Prims.string) * Prims.string | Prims.Tot | [
"total"
] | [] | [
"FStar.Pervasives.Native.tuple4",
"Prims.int",
"Prims.string",
"Z3TestGen.arg_type",
"FStar.Pervasives.Native.Mktuple4",
"Prims.op_Hat",
"Ast.integer_type",
"Prims.op_Addition",
"Prims.string_of_int"
] | [] | false | false | false | true | false | let test_exe_mk_arg (accu: (int & string & string & string)) (p: arg_type)
: Tot (int & string & string & string) =
| let cur_arg, read_args, call_args_lhs, call_args_rhs = accu in
let cur_arg_s = string_of_int cur_arg in
let arg_var = "arg" ^ cur_arg_s in
let cur_arg' = cur_arg + 1 in
let read_args' =
read_args ^
(match p with
| ArgInt _ ->
"\n unsigned long long " ^ arg_var ^ " = strtoull(argv[" ^ cur_arg_s ^ "], NULL... | false |
Z3TestGen.fst | Z3TestGen.produce_decl | val produce_decl (out: (string -> ML unit)) (accu: prog) (a: I.decl) : ML prog | val produce_decl (out: (string -> ML unit)) (accu: prog) (a: I.decl) : ML prog | let produce_decl (out: string -> ML unit) (accu: prog) (a: I.decl) : ML prog =
match a with
| Inl a -> produce_not_type_decl a out; accu
| Inr a -> produce_type_decl out accu a | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 41,
"end_line": 1090,
"start_col": 0,
"start_line": 1087
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
out: (_: Prims.string -> FStar.All.ML Prims.unit) ->
accu: Z3TestGen.prog ->
a: InterpreterTarget.decl
-> FStar.All.ML Z3TestGen.prog | FStar.All.ML | [
"ml"
] | [] | [
"Prims.string",
"Prims.unit",
"Z3TestGen.prog",
"InterpreterTarget.decl",
"InterpreterTarget.not_type_decl",
"Z3TestGen.produce_not_type_decl",
"InterpreterTarget.type_decl",
"Z3TestGen.produce_type_decl"
] | [] | false | true | false | false | false | let produce_decl (out: (string -> ML unit)) (accu: prog) (a: I.decl) : ML prog =
| match a with
| Inl a ->
produce_not_type_decl a out;
accu
| Inr a -> produce_type_decl out accu a | false |
Z3TestGen.fst | Z3TestGen.mk_witness_call | val mk_witness_call (accu: string) (l: list arg_type) (args: list string) : Tot string (decreases l) | val mk_witness_call (accu: string) (l: list arg_type) (args: list string) : Tot string (decreases l) | let rec mk_witness_call (accu: string) (l: list arg_type) (args: list string) : Tot string (decreases l) =
match l, args with
| ArgPointer :: q, _ -> mk_witness_call (Printf.sprintf "%s 0" accu) q args
| _ :: ql, a :: qargs -> mk_witness_call (Printf.sprintf "%s %s" accu a) ql qargs
| _ -> Printf.sprintf "(%s)"... | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 35,
"end_line": 1307,
"start_col": 0,
"start_line": 1303
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | accu: Prims.string -> l: Prims.list Z3TestGen.arg_type -> args: Prims.list Prims.string
-> Prims.Tot Prims.string | Prims.Tot | [
"total",
""
] | [] | [
"Prims.string",
"Prims.list",
"Z3TestGen.arg_type",
"FStar.Pervasives.Native.Mktuple2",
"Z3TestGen.mk_witness_call",
"FStar.Printf.sprintf",
"FStar.Pervasives.Native.tuple2"
] | [
"recursion"
] | false | false | false | true | false | let rec mk_witness_call (accu: string) (l: list arg_type) (args: list string)
: Tot string (decreases l) =
| match l, args with
| ArgPointer :: q, _ -> mk_witness_call (Printf.sprintf "%s 0" accu) q args
| _ :: ql, a :: qargs -> mk_witness_call (Printf.sprintf "%s %s" accu a) ql qargs
| _ -> Printf.sprintf "(%s)" accu | false |
Z3TestGen.fst | Z3TestGen.parse_typ | val parse_typ (t: I.typ)
: Pure (parser not_reading)
(requires (type_has_actions t == false))
(ensures (fun _ -> True))
(decreases (typ_depth t)) | val parse_typ (t: I.typ)
: Pure (parser not_reading)
(requires (type_has_actions t == false))
(ensures (fun _ -> True))
(decreases (typ_depth t)) | let rec parse_typ (t : I.typ) : Pure (parser not_reading)
(requires (type_has_actions t == false))
(ensures (fun _ -> True))
(decreases (typ_depth t))
=
match t with
| I.T_false _ -> parse_false
| I.T_denoted _ d -> parse_denoted d
| I.T_pair _ t1 t2 -> parse_pair (parse_typ t1) (parse_typ t2)
| I.T_de... | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 84,
"end_line": 982,
"start_col": 0,
"start_line": 947
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | t: InterpreterTarget.typ -> Prims.Pure (Z3TestGen.parser Z3TestGen.not_reading) | Prims.Pure | [
""
] | [
"parse_typ",
"parse_ifthenelse"
] | [
"InterpreterTarget.typ",
"InterpreterTarget.non_empty_string",
"Z3TestGen.parse_false",
"InterpreterTarget.dtyp",
"Z3TestGen.parse_denoted",
"Z3TestGen.parse_pair",
"Z3TestGen.parse_typ",
"InterpreterTarget.readable_dtyp",
"Ast.ident",
"Z3TestGen.parse_dep_pair",
"Z3TestGen.parse_readable_dtyp",... | [
"mutual recursion"
] | false | false | false | false | false | let rec parse_typ (t: I.typ)
: Pure (parser not_reading)
(requires (type_has_actions t == false))
(ensures (fun _ -> True))
(decreases (typ_depth t)) =
| match t with
| I.T_false _ -> parse_false
| I.T_denoted _ d -> parse_denoted d
| I.T_pair _ t1 t2 -> parse_pair (parse_typ t1) (parse_typ t2)
| I.T_dep_pair _ t1 (lam, t2) -> parse_dep_pair (parse_readable_dtyp t1) lam (parse_typ t2)
| I.T_refine _ base (lam, cond) ->
parse_refine (parse_readable_dtyp base) lam (fun ... | false |
Z3TestGen.fst | Z3TestGen.mk_args_as_file_name | val mk_args_as_file_name (accu: string) (l: list string) : Tot string (decreases l) | val mk_args_as_file_name (accu: string) (l: list string) : Tot string (decreases l) | let rec mk_args_as_file_name (accu: string) (l: list string) : Tot string
(decreases l)
= match l with
| [] -> accu
| a :: q -> mk_args_as_file_name (accu ^ "." ^ a) q | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 53,
"end_line": 1255,
"start_col": 0,
"start_line": 1251
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | accu: Prims.string -> l: Prims.list Prims.string -> Prims.Tot Prims.string | Prims.Tot | [
"total",
""
] | [] | [
"Prims.string",
"Prims.list",
"Z3TestGen.mk_args_as_file_name",
"Prims.op_Hat"
] | [
"recursion"
] | false | false | false | true | false | let rec mk_args_as_file_name (accu: string) (l: list string) : Tot string (decreases l) =
| match l with
| [] -> accu
| a :: q -> mk_args_as_file_name (accu ^ "." ^ a) q | false |
Z3TestGen.fst | Z3TestGen.mk_get_diff_test_witness | val mk_get_diff_test_witness (name1: string) (l: list arg_type) (name2: string) : string | val mk_get_diff_test_witness (name1: string) (l: list arg_type) (name2: string) : string | let mk_get_diff_test_witness (name1: string) (l: list arg_type) (name2: string) : string =
let call2 = mk_call_args name2 0 l in
Printf.sprintf
"
%s
(define-fun negative-state-witness () State (%s (mk-state initial-input-size 0 -1))) ; branch trace is ignored for the second parser
(assert (not (= (input-size negati... | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 7,
"end_line": 1584,
"start_col": 0,
"start_line": 1574
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | name1: Prims.string -> l: Prims.list Z3TestGen.arg_type -> name2: Prims.string -> Prims.string | Prims.Tot | [
"total"
] | [] | [
"Prims.string",
"Prims.list",
"Z3TestGen.arg_type",
"FStar.Printf.sprintf",
"Z3TestGen.mk_get_positive_test_witness",
"Z3TestGen.mk_call_args"
] | [] | false | false | false | true | false | let mk_get_diff_test_witness (name1: string) (l: list arg_type) (name2: string) : string =
| let call2 = mk_call_args name2 0 l in
Printf.sprintf "\n%s\n(define-fun negative-state-witness () State (%s (mk-state initial-input-size 0 -1))) ; branch trace is ignored for the second parser\n(assert (not (= (input-size negative-state-witness) 0))) ; test cases that do not consume everything are considered failing\n(... | false |
Z3TestGen.fst | Z3TestGen.mk_call_args | val mk_call_args (accu: string) (i: nat) (l: list arg_type) : Tot string (decreases l) | val mk_call_args (accu: string) (i: nat) (l: list arg_type) : Tot string (decreases l) | let rec mk_call_args (accu: string) (i: nat) (l: list arg_type) : Tot string (decreases l) =
match l with
| [] -> accu
| ArgPointer :: q -> mk_call_args (Printf.sprintf "%s 0" accu) i q
| _ :: q -> mk_call_args (Printf.sprintf "%s arg-%d" accu i) (i + 1) q | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 72,
"end_line": 1368,
"start_col": 0,
"start_line": 1364
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | accu: Prims.string -> i: Prims.nat -> l: Prims.list Z3TestGen.arg_type -> Prims.Tot Prims.string | Prims.Tot | [
"total",
""
] | [] | [
"Prims.string",
"Prims.nat",
"Prims.list",
"Z3TestGen.arg_type",
"Z3TestGen.mk_call_args",
"FStar.Printf.sprintf",
"Prims.op_Addition"
] | [
"recursion"
] | false | false | false | true | false | let rec mk_call_args (accu: string) (i: nat) (l: list arg_type) : Tot string (decreases l) =
| match l with
| [] -> accu
| ArgPointer :: q -> mk_call_args (Printf.sprintf "%s 0" accu) i q
| _ :: q -> mk_call_args (Printf.sprintf "%s arg-%d" accu i) (i + 1) q | false |
Z3TestGen.fst | Z3TestGen.print_witness_as_c_aux | val print_witness_as_c_aux
(out: (string -> ML unit))
(witness: Seq.seq int)
(len: int{len == Seq.length witness})
: ML unit | val print_witness_as_c_aux
(out: (string -> ML unit))
(witness: Seq.seq int)
(len: int{len == Seq.length witness})
: ML unit | let print_witness_as_c_aux
(out: (string -> ML unit))
(witness: Seq.seq int)
(len: int { len == Seq.length witness })
: ML unit
=
out " uint8_t witness[";
out (string_of_int len);
out "] = {";
begin match Seq.seq_to_list witness with
| [] -> ()
| a :: q ->
out (string_of_int a);
List.iter (fu... | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 10,
"end_line": 1232,
"start_col": 0,
"start_line": 1217
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
out: (_: Prims.string -> FStar.All.ML Prims.unit) ->
witness: FStar.Seq.Base.seq Prims.int ->
len: Prims.int{len == FStar.Seq.Base.length witness}
-> FStar.All.ML Prims.unit | FStar.All.ML | [
"ml"
] | [] | [
"Prims.string",
"Prims.unit",
"FStar.Seq.Base.seq",
"Prims.int",
"Prims.eq2",
"FStar.Seq.Base.length",
"FStar.Seq.Base.seq_to_list",
"Prims.list",
"FStar.List.iter",
"Prims.string_of_int"
] | [] | false | true | false | false | false | let print_witness_as_c_aux
(out: (string -> ML unit))
(witness: Seq.seq int)
(len: int{len == Seq.length witness})
: ML unit =
| out " uint8_t witness[";
out (string_of_int len);
out "] = {";
(match Seq.seq_to_list witness with
| [] -> ()
| a :: q ->
out (string_of_int a);
List.iter (fun i ->
out ", ";
out (string_of_int i))
q);
out "};" | false |
Z3TestGen.fst | Z3TestGen.mk_output_filename | val mk_output_filename (counter: ref int) (out_dir validator_name: string) (args: list string)
: ML string | val mk_output_filename (counter: ref int) (out_dir validator_name: string) (args: list string)
: ML string | let mk_output_filename
(counter: ref int)
(out_dir: string)
(validator_name: string)
(args: list string)
: ML string
= let i = !counter in
counter := i + 1;
OS.concat out_dir (mk_args_as_file_name ("witness." ^ string_of_int i ^ "." ^ validator_name) args ^ ".dat") | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 110,
"end_line": 1265,
"start_col": 0,
"start_line": 1257
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
counter: FStar.ST.ref Prims.int ->
out_dir: Prims.string ->
validator_name: Prims.string ->
args: Prims.list Prims.string
-> FStar.All.ML Prims.string | FStar.All.ML | [
"ml"
] | [] | [
"FStar.ST.ref",
"Prims.int",
"Prims.string",
"Prims.list",
"OS.concat",
"Prims.op_Hat",
"Z3TestGen.mk_args_as_file_name",
"Prims.string_of_int",
"Prims.unit",
"FStar.ST.op_Colon_Equals",
"FStar.Heap.trivial_preorder",
"Prims.op_Addition",
"FStar.ST.op_Bang"
] | [] | false | true | false | false | false | let mk_output_filename (counter: ref int) (out_dir validator_name: string) (args: list string)
: ML string =
| let i = !counter in
counter := i + 1;
OS.concat out_dir
(mk_args_as_file_name ("witness." ^ string_of_int i ^ "." ^ validator_name) args ^ ".dat") | false |
Z3TestGen.fst | Z3TestGen.produce_type_decl | val produce_type_decl (out: (string -> ML unit)) (accu: prog) (a: I.type_decl) : ML prog | val produce_type_decl (out: (string -> ML unit)) (accu: prog) (a: I.type_decl) : ML prog | let produce_type_decl (out: string -> ML unit) (accu: prog) (a: I.type_decl) : ML prog =
let binders = binders_of_params a.name.td_params in
let name = ident_to_string a.name.td_name in
if type_has_actions a.typ then failwith (Printf.sprintf "produce_type_decl: %s still has some actions" name);
let _ = parse_ty... | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 12,
"end_line": 1085,
"start_col": 0,
"start_line": 1074
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
out: (_: Prims.string -> FStar.All.ML Prims.unit) ->
accu: Z3TestGen.prog ->
a: InterpreterTarget.type_decl
-> FStar.All.ML Z3TestGen.prog | FStar.All.ML | [
"ml"
] | [] | [
"Prims.string",
"Prims.unit",
"Z3TestGen.prog",
"InterpreterTarget.type_decl",
"Prims.Cons",
"FStar.Pervasives.Native.tuple2",
"Z3TestGen.prog_def",
"FStar.Pervasives.Native.Mktuple2",
"Z3TestGen.Mkprog_def",
"InterpreterTarget.__proj__Mktype_decl__item__enum_typ",
"Target.typ",
"Prims.b2t",
... | [] | false | true | false | false | false | let produce_type_decl (out: (string -> ML unit)) (accu: prog) (a: I.type_decl) : ML prog =
| let binders = binders_of_params a.name.td_params in
let name = ident_to_string a.name.td_name in
if type_has_actions a.typ
then failwith (Printf.sprintf "produce_type_decl: %s still has some actions" name);
let _ = parse_typ a.typ name binders true out in
(name,
{
args
=
List.map (fun (i, ty) ->
... | false |
Z3TestGen.fst | Z3TestGen.read_witness_args | val read_witness_args (z3: Z3.z3) (accu: list string) (n: nat) : ML (list string) | val read_witness_args (z3: Z3.z3) (accu: list string) (n: nat) : ML (list string) | let rec read_witness_args (z3: Z3.z3) (accu: list string) (n: nat) : ML (list string) =
if n = 0
then accu
else begin
let n' = n - 1 in
z3.to_z3 (Printf.sprintf "(get-value (arg-%d))\n" n');
let arg = Lisp.read_any_from z3.from_z3 (Printf.sprintf "arg-%d" n') in
read_witness_args z3 (arg :: accu) ... | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 5,
"end_line": 1139,
"start_col": 0,
"start_line": 1131
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | z3: Z3.Base.z3 -> accu: Prims.list Prims.string -> n: Prims.nat
-> FStar.All.ML (Prims.list Prims.string) | FStar.All.ML | [
"ml"
] | [] | [
"Z3.Base.z3",
"Prims.list",
"Prims.string",
"Prims.nat",
"Prims.op_Equality",
"Prims.int",
"Prims.bool",
"Z3TestGen.read_witness_args",
"Prims.Cons",
"Lisp.read_any_from",
"Z3.Base.__proj__Mkz3__item__from_z3",
"FStar.Printf.sprintf",
"Prims.unit",
"Z3.Base.__proj__Mkz3__item__to_z3",
"P... | [
"recursion"
] | false | true | false | false | false | let rec read_witness_args (z3: Z3.z3) (accu: list string) (n: nat) : ML (list string) =
| if n = 0
then accu
else
let n' = n - 1 in
z3.to_z3 (Printf.sprintf "(get-value (arg-%d))\n" n');
let arg = Lisp.read_any_from z3.from_z3 (Printf.sprintf "arg-%d" n') in
read_witness_args z3 (arg :: accu) n' | false |
Z3TestGen.fst | Z3TestGen.produce_not_type_decl | val produce_not_type_decl (a: I.not_type_decl) (out: (string -> ML unit)) : ML unit | val produce_not_type_decl (a: I.not_type_decl) (out: (string -> ML unit)) : ML unit | let produce_not_type_decl (a: I.not_type_decl) (out: string -> ML unit) : ML unit =
match fst a with
| T.Definition (i, param, typ, body) ->
produce_definition i param typ body out
| T.Assumption _ -> failwith "produce_not_type_decl: unsupported"
| T.Output_type _
| T.Output_type_expr _ _
| T.Extern_typ... | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 7,
"end_line": 1043,
"start_col": 0,
"start_line": 1033
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: InterpreterTarget.not_type_decl -> out: (_: Prims.string -> FStar.All.ML Prims.unit)
-> FStar.All.ML Prims.unit | FStar.All.ML | [
"ml"
] | [] | [
"InterpreterTarget.not_type_decl",
"Prims.string",
"Prims.unit",
"FStar.Pervasives.Native.fst",
"Target.decl'",
"Target.decl_attributes",
"Ast.ident",
"Prims.list",
"Target.param",
"Target.typ",
"Target.expr",
"Z3TestGen.produce_definition",
"Target.assumption",
"FStar.All.failwith",
"As... | [] | false | true | false | false | false | let produce_not_type_decl (a: I.not_type_decl) (out: (string -> ML unit)) : ML unit =
| match fst a with
| T.Definition (i, param, typ, body) -> produce_definition i param typ body out
| T.Assumption _ -> failwith "produce_not_type_decl: unsupported"
| T.Output_type _
| T.Output_type_expr _ _
| T.Extern_type _
| T.Extern_fn _ _ _
| T.Extern_probe _ -> () | false |
Z3TestGen.fst | Z3TestGen.mk_choose_conj | val mk_choose_conj (witness: Seq.seq int) (accu: string) (i: nat)
: Tot string (decreases (if i >= Seq.length witness then 0 else Seq.length witness - i)) | val mk_choose_conj (witness: Seq.seq int) (accu: string) (i: nat)
: Tot string (decreases (if i >= Seq.length witness then 0 else Seq.length witness - i)) | let rec mk_choose_conj (witness: Seq.seq int) (accu: string) (i: nat) : Tot string
(decreases (if i >= Seq.length witness then 0 else Seq.length witness - i))
= if i >= Seq.length witness
then accu
else mk_choose_conj witness ("(and (= (choose "^string_of_int i^") "^string_of_int (Seq.index witness i)^") "^accu^"... | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 129,
"end_line": 1320,
"start_col": 0,
"start_line": 1316
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | witness: FStar.Seq.Base.seq Prims.int -> accu: Prims.string -> i: Prims.nat
-> Prims.Tot Prims.string | Prims.Tot | [
"total",
""
] | [] | [
"FStar.Seq.Base.seq",
"Prims.int",
"Prims.string",
"Prims.nat",
"Prims.op_GreaterThanOrEqual",
"FStar.Seq.Base.length",
"Prims.bool",
"Z3TestGen.mk_choose_conj",
"Prims.op_Hat",
"Prims.string_of_int",
"FStar.Seq.Base.index",
"Prims.op_Addition"
] | [
"recursion"
] | false | false | false | true | false | let rec mk_choose_conj (witness: Seq.seq int) (accu: string) (i: nat)
: Tot string (decreases (if i >= Seq.length witness then 0 else Seq.length witness - i)) =
| if i >= Seq.length witness
then accu
else
mk_choose_conj witness
("(and (= (choose " ^
string_of_int i ^ ") " ^ string_of_int (Seq.index witness i) ^ ") " ^ accu ^ ")")
(i + 1) | false |
LowParse.Spec.VLData.fsti | LowParse.Spec.VLData.serialize_bounded_vldata_strong_upd_bw_chain | val serialize_bounded_vldata_strong_upd_bw_chain
(min: nat)
(max: nat{min <= max /\ max > 0 /\ max < 4294967296})
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p)
(x: parse_bounded_vldata_strong_t min max s)
(y: t)
(i': nat)
(s': bytes)
: Le... | val serialize_bounded_vldata_strong_upd_bw_chain
(min: nat)
(max: nat{min <= max /\ max > 0 /\ max < 4294967296})
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p)
(x: parse_bounded_vldata_strong_t min max s)
(y: t)
(i': nat)
(s': bytes)
: Le... | let serialize_bounded_vldata_strong_upd_bw_chain
(min: nat)
(max: nat { min <= max /\ max > 0 /\ max < 4294967296 } )
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p)
(x: parse_bounded_vldata_strong_t min max s)
(y: t)
(i' : nat)
(s' : bytes)
: Lemma
(requires (
let sx = seriali... | {
"file_name": "src/lowparse/LowParse.Spec.VLData.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 110,
"end_line": 799,
"start_col": 0,
"start_line": 773
} | module LowParse.Spec.VLData
include LowParse.Spec.FLData
include LowParse.Spec.AllIntegers // for bounded_integer, in_bounds, etc.
module Seq = FStar.Seq
module U32 = FStar.UInt32
module M = LowParse.Math
#reset-options "--z3rlimit 64 --max_fuel 64 --max_ifuel 64 --z3refresh --z3cliopt smt.arith.nl=false"
let parse_... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.FLData.fst.checked",
"LowParse.Spec.AllIntegers.fst.checked",
"LowParse.Math.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.... | [
{
"abbrev": true,
"full_module": "LowParse.Math",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "LowPars... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
min: Prims.nat ->
max: Prims.nat{min <= max /\ max > 0 /\ max < 4294967296} ->
s: LowParse.Spec.Base.serializer p ->
x: LowParse.Spec.VLData.parse_bounded_vldata_strong_t min max s ->
y: t ->
i': Prims.nat ->
s': LowParse.Bytes.bytes
-> FStar.Pervasives.Lemma
(requires
(let ... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.nat",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_GreaterThan",
"Prims.op_LessThan",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Base.serializer",
"LowParse.Spec.VLData.parse_bounded_vldata_strong_t",
"LowParse.Bytes.bytes",
"LowPa... | [] | true | false | true | false | false | let serialize_bounded_vldata_strong_upd_bw_chain
(min: nat)
(max: nat{min <= max /\ max > 0 /\ max < 4294967296})
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p)
(x: parse_bounded_vldata_strong_t min max s)
(y: t)
(i': nat)
(s': bytes)
: Le... | serialize_bounded_vldata_strong_upd_chain min
max
s
x
y
(Seq.length (serialize s x) - i' - Seq.length s')
s' | false |
Z3TestGen.fst | Z3TestGen.with_option_out_file | val with_option_out_file (#a: Type) (name: option string)
: Tot (body: ((string -> ML unit) -> ML a) -> ML a) | val with_option_out_file (#a: Type) (name: option string)
: Tot (body: ((string -> ML unit) -> ML a) -> ML a) | let with_option_out_file
(#a: Type)
(name: option string)
: Tot ((body: ((string -> ML unit) -> ML a)) -> ML a)
= match name with
| Some name -> with_out_file name
| None -> (fun body -> body (fun _ -> ())) | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 44,
"end_line": 1113,
"start_col": 0,
"start_line": 1107
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
name: FStar.Pervasives.Native.option Prims.string ->
body: (_: (_: Prims.string -> FStar.All.ML Prims.unit) -> FStar.All.ML a)
-> FStar.All.ML a | FStar.All.ML | [
"ml"
] | [] | [
"FStar.Pervasives.Native.option",
"Prims.string",
"Z3TestGen.with_out_file",
"Prims.unit"
] | [] | false | true | false | false | false | let with_option_out_file (#a: Type) (name: option string)
: Tot (body: ((string -> ML unit) -> ML a) -> ML a) =
| match name with
| Some name -> with_out_file name
| None -> (fun body -> body (fun _ -> ())) | false |
Z3TestGen.fst | Z3TestGen.mk_arg_conj | val mk_arg_conj (accu: string) (i: nat) (l: list string) : Tot string (decreases l) | val mk_arg_conj (accu: string) (i: nat) (l: list string) : Tot string (decreases l) | let rec mk_arg_conj (accu: string) (i: nat) (l: list string) : Tot string (decreases l) =
match l with
| [] -> accu
| arg :: q ->
mk_arg_conj (Printf.sprintf "(and %s (= arg-%d %s))" accu i arg) (i + 1) q | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 78,
"end_line": 1326,
"start_col": 0,
"start_line": 1322
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | accu: Prims.string -> i: Prims.nat -> l: Prims.list Prims.string -> Prims.Tot Prims.string | Prims.Tot | [
"total",
""
] | [] | [
"Prims.string",
"Prims.nat",
"Prims.list",
"Z3TestGen.mk_arg_conj",
"FStar.Printf.sprintf",
"Prims.op_Addition"
] | [
"recursion"
] | false | false | false | true | false | let rec mk_arg_conj (accu: string) (i: nat) (l: list string) : Tot string (decreases l) =
| match l with
| [] -> accu
| arg :: q -> mk_arg_conj (Printf.sprintf "(and %s (= arg-%d %s))" accu i arg) (i + 1) q | false |
Z3TestGen.fst | Z3TestGen.print_diff_witness_as_c | val print_diff_witness_as_c
(out_dir: string)
(out: (string -> ML unit))
(validator_name1 validator_name2: string)
(arg_types: list arg_type)
(counter: ref int)
(witness: Seq.seq int)
(args: list string)
: ML unit | val print_diff_witness_as_c
(out_dir: string)
(out: (string -> ML unit))
(validator_name1 validator_name2: string)
(arg_types: list arg_type)
(counter: ref int)
(witness: Seq.seq int)
(args: list string)
: ML unit | let print_diff_witness_as_c
(out_dir: string)
(out: (string -> ML unit))
(validator_name1: string)
(validator_name2: string)
(arg_types: list arg_type)
(counter: ref int)
(witness: Seq.seq int)
(args: list string)
: ML unit
= OS.write_witness_to_file (Seq.seq_to_list witness) (mk_output_filename counter... | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 3,
"end_line": 1296,
"start_col": 0,
"start_line": 1282
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
out_dir: Prims.string ->
out: (_: Prims.string -> FStar.All.ML Prims.unit) ->
validator_name1: Prims.string ->
validator_name2: Prims.string ->
arg_types: Prims.list Z3TestGen.arg_type ->
counter: FStar.ST.ref Prims.int ->
witness: FStar.Seq.Base.seq Prims.int ->
args: Prims.list Prims.... | FStar.All.ML | [
"ml"
] | [] | [
"Prims.string",
"Prims.unit",
"Prims.list",
"Z3TestGen.arg_type",
"FStar.ST.ref",
"Prims.int",
"FStar.Seq.Base.seq",
"Z3TestGen.print_witness_as_c_gen",
"Prims.eq2",
"FStar.Seq.Base.length",
"Z3TestGen.print_witness_call_as_c",
"OS.write_witness_to_file",
"FStar.Seq.Base.seq_to_list",
"Z3T... | [] | false | true | false | false | false | let print_diff_witness_as_c
(out_dir: string)
(out: (string -> ML unit))
(validator_name1 validator_name2: string)
(arg_types: list arg_type)
(counter: ref int)
(witness: Seq.seq int)
(args: list string)
: ML unit =
| OS.write_witness_to_file (Seq.seq_to_list witness)
(mk_output_filename counter out_dir ("POS." ^ validator_name1 ^ ".NEG." ^ validator_name2) args);
print_witness_as_c_gen out
witness
(fun len ->
print_witness_call_as_c out true validator_name1 arg_types len args;
print_witness_call_as_c out false val... | false |
Z3TestGen.fst | Z3TestGen.print_witness_as_c | val print_witness_as_c
(out_dir: string)
(out: (string -> ML unit))
(positive: bool)
(validator_name: string)
(arg_types: list arg_type)
(counter: ref int)
(witness: Seq.seq int)
(args: list string)
: ML unit | val print_witness_as_c
(out_dir: string)
(out: (string -> ML unit))
(positive: bool)
(validator_name: string)
(arg_types: list arg_type)
(counter: ref int)
(witness: Seq.seq int)
(args: list string)
: ML unit | let print_witness_as_c
(out_dir: string)
(out: (string -> ML unit))
(positive: bool)
(validator_name: string)
(arg_types: list arg_type)
(counter: ref int)
(witness: Seq.seq int)
(args: list string)
: ML unit
= OS.write_witness_to_file (Seq.seq_to_list witness) (mk_output_filename counter out_dir ((if p... | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 3,
"end_line": 1280,
"start_col": 0,
"start_line": 1267
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
out_dir: Prims.string ->
out: (_: Prims.string -> FStar.All.ML Prims.unit) ->
positive: Prims.bool ->
validator_name: Prims.string ->
arg_types: Prims.list Z3TestGen.arg_type ->
counter: FStar.ST.ref Prims.int ->
witness: FStar.Seq.Base.seq Prims.int ->
args: Prims.list Prims.string
-... | FStar.All.ML | [
"ml"
] | [] | [
"Prims.string",
"Prims.unit",
"Prims.bool",
"Prims.list",
"Z3TestGen.arg_type",
"FStar.ST.ref",
"Prims.int",
"FStar.Seq.Base.seq",
"Z3TestGen.print_witness_as_c_gen",
"Prims.eq2",
"FStar.Seq.Base.length",
"Z3TestGen.print_witness_call_as_c",
"OS.write_witness_to_file",
"FStar.Seq.Base.seq_... | [] | false | true | false | false | false | let print_witness_as_c
(out_dir: string)
(out: (string -> ML unit))
(positive: bool)
(validator_name: string)
(arg_types: list arg_type)
(counter: ref int)
(witness: Seq.seq int)
(args: list string)
: ML unit =
| OS.write_witness_to_file (Seq.seq_to_list witness)
(mk_output_filename counter out_dir ((if positive then "POS." else "NEG.") ^ validator_name) args);
print_witness_as_c_gen out
witness
(fun len -> print_witness_call_as_c out positive validator_name arg_types len args) | false |
Z3TestGen.fst | Z3TestGen.parse_ifthenelse | val parse_ifthenelse (cond: I.expr) (tthen telse: I.typ)
: Pure (int -> parser not_reading)
(requires (type_has_actions tthen == false /\ type_has_actions telse == false))
(ensures (fun _ -> True))
(decreases (1 + typ_depth tthen + typ_depth telse)) | val parse_ifthenelse (cond: I.expr) (tthen telse: I.typ)
: Pure (int -> parser not_reading)
(requires (type_has_actions tthen == false /\ type_has_actions telse == false))
(ensures (fun _ -> True))
(decreases (1 + typ_depth tthen + typ_depth telse)) | let rec parse_typ (t : I.typ) : Pure (parser not_reading)
(requires (type_has_actions t == false))
(ensures (fun _ -> True))
(decreases (typ_depth t))
=
match t with
| I.T_false _ -> parse_false
| I.T_denoted _ d -> parse_denoted d
| I.T_pair _ t1 t2 -> parse_pair (parse_typ t1) (parse_typ t2)
| I.T_de... | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 84,
"end_line": 982,
"start_col": 0,
"start_line": 947
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | cond: InterpreterTarget.expr -> tthen: InterpreterTarget.typ -> telse: InterpreterTarget.typ
-> Prims.Pure (_: Prims.int -> Z3TestGen.parser Z3TestGen.not_reading) | Prims.Pure | [
""
] | [
"parse_typ",
"parse_ifthenelse"
] | [
"InterpreterTarget.expr",
"InterpreterTarget.typ",
"Z3TestGen.parse_ifthenelse_cons",
"Prims.unit",
"Z3TestGen.mk_expr",
"Prims.string",
"Z3TestGen.parse_typ",
"Z3TestGen.parse_ifthenelse",
"Z3TestGen.parse_ifthenelse_nil",
"Prims.int",
"Z3TestGen.parser",
"Z3TestGen.not_reading",
"Prims.l_a... | [
"mutual recursion"
] | false | false | false | false | false | let rec parse_ifthenelse (cond: I.expr) (tthen telse: I.typ)
: Pure (int -> parser not_reading)
(requires (type_has_actions tthen == false /\ type_has_actions telse == false))
(ensures (fun _ -> True))
(decreases (1 + typ_depth tthen + typ_depth telse)) =
| match telse with
| I.T_if_else cond2 tthen2 telse2 ->
parse_ifthenelse_cons (fun _ -> mk_expr cond)
(parse_typ tthen)
(parse_ifthenelse cond2 tthen2 telse2)
| _ -> parse_ifthenelse_nil (fun _ -> mk_expr cond) (parse_typ tthen) (parse_typ telse) | false |
Z3TestGen.fst | Z3TestGen.mk_assert_args | val mk_assert_args (accu: string) (i: nat) (l: list arg_type) : Tot string (decreases l) | val mk_assert_args (accu: string) (i: nat) (l: list arg_type) : Tot string (decreases l) | let rec mk_assert_args (accu: string) (i: nat) (l: list arg_type) : Tot string (decreases l) =
match l with
| [] -> accu
| ArgPointer :: q -> mk_assert_args accu i q
| ArgBool :: q -> mk_assert_args (Printf.sprintf "%s(declare-fun arg-%d () Bool)\n" accu i) (i + 1) q
| ArgInt it :: q -> mk_assert_args (Printf... | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 186,
"end_line": 1375,
"start_col": 0,
"start_line": 1370
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | accu: Prims.string -> i: Prims.nat -> l: Prims.list Z3TestGen.arg_type -> Prims.Tot Prims.string | Prims.Tot | [
"total",
""
] | [] | [
"Prims.string",
"Prims.nat",
"Prims.list",
"Z3TestGen.arg_type",
"Z3TestGen.mk_assert_args",
"FStar.Printf.sprintf",
"Prims.op_Addition",
"Ast.integer_type",
"Prims.pow2",
"Z3TestGen.integer_type_bit_size"
] | [
"recursion"
] | false | false | false | true | false | let rec mk_assert_args (accu: string) (i: nat) (l: list arg_type) : Tot string (decreases l) =
| match l with
| [] -> accu
| ArgPointer :: q -> mk_assert_args accu i q
| ArgBool :: q ->
mk_assert_args (Printf.sprintf "%s(declare-fun arg-%d () Bool)\n" accu i) (i + 1) q
| ArgInt it :: q ->
mk_assert_args (Printf.sprintf "%s(declare-fun arg-%d () Int)\n(assert (and (<= 0 arg-%d) (< arg-%d %d)))\n"
accu
... | false |
Z3TestGen.fst | Z3TestGen.enumerate_branch_traces' | val enumerate_branch_traces' (z3: Z3.z3) (max_depth cur_depth: nat) (branch_trace: string)
: ML (list branch_trace_node) | val enumerate_branch_traces' (z3: Z3.z3) (max_depth cur_depth: nat) (branch_trace: string)
: ML (list branch_trace_node) | let rec enumerate_branch_traces'
(z3: Z3.z3)
(max_depth cur_depth: nat)
(branch_trace: string)
: ML (list branch_trace_node)
= if max_depth = cur_depth
then []
else begin
z3.to_z3 (Printf.sprintf "(assert (> (branch-index state-witness) %d))\n" cur_depth);
z3.to_z3 "(check-sat)\n";
let status = z3... | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 5,
"end_line": 1454,
"start_col": 0,
"start_line": 1396
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | z3: Z3.Base.z3 -> max_depth: Prims.nat -> cur_depth: Prims.nat -> branch_trace: Prims.string
-> FStar.All.ML (Prims.list Z3TestGen.branch_trace_node) | FStar.All.ML | [
"ml"
] | [] | [
"Z3.Base.z3",
"Prims.nat",
"Prims.string",
"Prims.op_Equality",
"Prims.Nil",
"Z3TestGen.branch_trace_node",
"Prims.list",
"Prims.bool",
"Prims.int",
"Prims.b2t",
"Prims.op_GreaterThanOrEqual",
"Prims.op_Addition",
"Prims.unit",
"Z3.Base.__proj__Mkz3__item__to_z3",
"FStar.IO.print_string"... | [
"recursion"
] | false | true | false | false | false | let rec enumerate_branch_traces' (z3: Z3.z3) (max_depth cur_depth: nat) (branch_trace: string)
: ML (list branch_trace_node) =
| if max_depth = cur_depth
then []
else
(z3.to_z3 (Printf.sprintf "(assert (> (branch-index state-witness) %d))\n" cur_depth);
z3.to_z3 "(check-sat)\n";
let status = z3.from_z3 () in
if status = "sat"
then
let rec aux accu choice : ML (list branch_trace_node) =
let branch_trace' = branch_t... | false |
Z3TestGen.fst | Z3TestGen.do_diff_test | val do_diff_test : out_dir: Prims.string ->
out_file: FStar.Pervasives.Native.option Prims.string ->
z3: Z3.Base.z3 ->
prog: Z3TestGen.prog ->
name1: Prims.string ->
name2: Prims.string ->
nbwitnesses: Prims.int ->
depth: Prims.nat
-> FStar.All.ALL Prims.unit | let do_diff_test (out_dir: string) (out_file: option string) (z3: Z3.z3) (prog: prog) name1 name2 nbwitnesses depth =
let def = List.assoc name1 prog in
if None? def
then failwith (Printf.sprintf "do_diff_test: parser %s not found" name1);
let args = (Some?.v def).args in
let def2 = List.assoc name2 prog in
... | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 1,
"end_line": 1623,
"start_col": 0,
"start_line": 1590
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
out_dir: Prims.string ->
out_file: FStar.Pervasives.Native.option Prims.string ->
z3: Z3.Base.z3 ->
prog: Z3TestGen.prog ->
name1: Prims.string ->
name2: Prims.string ->
nbwitnesses: Prims.int ->
depth: Prims.nat
-> FStar.All.ALL Prims.unit | FStar.All.ALL | [] | [] | [
"Prims.string",
"FStar.Pervasives.Native.option",
"Z3.Base.z3",
"Z3TestGen.prog",
"Prims.int",
"Prims.nat",
"Z3TestGen.with_option_out_file",
"Prims.unit",
"Z3TestGen.do_diff_test_for",
"FStar.ST.mref",
"FStar.Heap.trivial_preorder",
"FStar.ST.alloc",
"Z3TestGen.test_error_handler",
"FStar... | [] | false | true | false | false | false | let do_diff_test
(out_dir: string)
(out_file: option string)
(z3: Z3.z3)
(prog: prog)
name1
name2
nbwitnesses
depth
=
| let def = List.assoc name1 prog in
if None? def then failwith (Printf.sprintf "do_diff_test: parser %s not found" name1);
let args = (Some?.v def).args in
let def2 = List.assoc name2 prog in
if None? def2 then failwith (Printf.sprintf "do_diff_test: parser %s not found" name2);
if def2 <> def
then
failwith (Printf.sp... | false | |
Z3TestGen.fst | Z3TestGen.do_test | val do_test
(out_dir: string)
(out_file: option string)
(z3: Z3.z3)
(prog: prog)
(name1: string)
(nbwitnesses: int)
(depth: nat)
(pos neg: bool)
: ML unit | val do_test
(out_dir: string)
(out_file: option string)
(z3: Z3.z3)
(prog: prog)
(name1: string)
(nbwitnesses: int)
(depth: nat)
(pos neg: bool)
: ML unit | let do_test (out_dir: string) (out_file: option string) (z3: Z3.z3) (prog: prog) (name1: string) (nbwitnesses: int) (depth: nat) (pos: bool) (neg: bool) : ML unit =
let def = List.assoc name1 prog in
if None? def
then failwith (Printf.sprintf "do_test: parser %s not found" name1);
let args = (Some?.v def).args ... | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 3,
"end_line": 1572,
"start_col": 0,
"start_line": 1532
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
out_dir: Prims.string ->
out_file: FStar.Pervasives.Native.option Prims.string ->
z3: Z3.Base.z3 ->
prog: Z3TestGen.prog ->
name1: Prims.string ->
nbwitnesses: Prims.int ->
depth: Prims.nat ->
pos: Prims.bool ->
neg: Prims.bool
-> FStar.All.ML Prims.unit | FStar.All.ML | [
"ml"
] | [] | [
"Prims.string",
"FStar.Pervasives.Native.option",
"Z3.Base.z3",
"Z3TestGen.prog",
"Prims.int",
"Prims.nat",
"Prims.bool",
"Z3TestGen.with_option_out_file",
"Prims.unit",
"Z3TestGen.witnesses_for",
"Prims.list",
"FStar.Pervasives.Native.tuple2",
"FStar.Seq.Base.seq",
"FStar.List.Tot.Base.ap... | [] | false | true | false | false | false | let do_test
(out_dir: string)
(out_file: option string)
(z3: Z3.z3)
(prog: prog)
(name1: string)
(nbwitnesses: int)
(depth: nat)
(pos neg: bool)
: ML unit =
| let def = List.assoc name1 prog in
if None? def then failwith (Printf.sprintf "do_test: parser %s not found" name1);
let args = (Some?.v def).args in
let modul, validator_name = module_and_validator_name name1 in
let nargs = count_args args in
with_option_out_file out_file
(fun cout ->
cout "#include <stdio.h>\... | false |
Z3TestGen.fst | Z3TestGen.produce_test_checker_exe | val produce_test_checker_exe (out_file: string) (prog: prog) (name1: string) : ML unit | val produce_test_checker_exe (out_file: string) (prog: prog) (name1: string) : ML unit | let produce_test_checker_exe (out_file: string) (prog: prog) (name1: string) : ML unit =
let def = List.assoc name1 prog in
if None? def
then failwith (Printf.sprintf "produce_test_checker_exe: parser %s not found" name1);
let args = (Some?.v def).args in
let modul, validator_name = module_and_validator_name ... | {
"file_name": "src/3d/Z3TestGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 3,
"end_line": 1737,
"start_col": 0,
"start_line": 1729
} | module Z3TestGen
module Printf = FStar.Printf
open FStar.All
open FStar.Mul
module A = Ast
module T = Target
module I = InterpreterTarget
let prelude : string =
"
(set-option :produce-models true)
(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))
(declare-datatypes () ... | {
"checked_file": "/",
"dependencies": [
"Z3.fsti.checked",
"Target.fsti.checked",
"prims.fst.checked",
"OS.fsti.checked",
"Lisp.fsti.checked",
"InterpreterTarget.fsti.checked",
"FStar.String.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasive... | [
{
"abbrev": true,
"full_module": "InterpreterTarget",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "Target",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"sh... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | out_file: Prims.string -> prog: Z3TestGen.prog -> name1: Prims.string -> FStar.All.ML Prims.unit | FStar.All.ML | [
"ml"
] | [] | [
"Prims.string",
"Z3TestGen.prog",
"Z3TestGen.with_out_file",
"Prims.unit",
"Z3TestGen.test_checker_c",
"FStar.Pervasives.Native.tuple2",
"Z3TestGen.module_and_validator_name",
"Prims.list",
"Z3TestGen.arg_type",
"Z3TestGen.__proj__Mkprog_def__item__args",
"FStar.Pervasives.Native.__proj__Some__i... | [] | false | true | false | false | false | let produce_test_checker_exe (out_file: string) (prog: prog) (name1: string) : ML unit =
| let def = List.assoc name1 prog in
if None? def then failwith (Printf.sprintf "produce_test_checker_exe: parser %s not found" name1);
let args = (Some?.v def).args in
let modul, validator_name = module_and_validator_name name1 in
with_out_file out_file (fun cout -> cout (test_checker_c modul validator_name args)) | false |
Steel.ST.HigherReference.fst | Steel.ST.HigherReference._free_and_pop_frame | val _free_and_pop_frame (#a: Type) (#v: erased a) (r: ref a)
: STT unit ((pts_to r full_perm v) `star` _stack_frame) (fun _ -> emp) | val _free_and_pop_frame (#a: Type) (#v: erased a) (r: ref a)
: STT unit ((pts_to r full_perm v) `star` _stack_frame) (fun _ -> emp) | let _free_and_pop_frame
(#a:Type)
(#v:erased a)
(r:ref a)
: STT unit
(pts_to r full_perm v `star` _stack_frame)
(fun _ -> emp)
= free r;
rewrite _stack_frame (pure True);
elim_pure _ | {
"file_name": "lib/steel/Steel.ST.HigherReference.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 13,
"end_line": 126,
"start_col": 0,
"start_line": 117
} | (*
Copyright 2020 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Steel.ST.Util.fsti.checked",
"Steel.ST.Coercions.fsti.checked",
"Steel.HigherReference.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": true,
"source_file": "Steel.ST.HigherRef... | [
{
"abbrev": true,
"full_module": "Steel.HigherReference",
"short_module": "R"
},
{
"abbrev": false,
"full_module": "Steel.ST.Coercions",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.ST.Util",
"short_module": null
},
{
"abbrev": false,
"full... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r: Steel.ST.HigherReference.ref a -> Steel.ST.Effect.STT Prims.unit | Steel.ST.Effect.STT | [] | [] | [
"FStar.Ghost.erased",
"Steel.ST.HigherReference.ref",
"Steel.ST.Util.elim_pure",
"FStar.Ghost.hide",
"FStar.Set.set",
"Steel.Memory.iname",
"FStar.Set.empty",
"Prims.l_True",
"Prims.unit",
"Steel.ST.Util.rewrite",
"Steel.ST.HigherReference._stack_frame",
"Steel.ST.Util.pure",
"Steel.ST.Highe... | [] | false | true | false | false | false | let _free_and_pop_frame (#a: Type) (#v: erased a) (r: ref a)
: STT unit ((pts_to r full_perm v) `star` _stack_frame) (fun _ -> emp) =
| free r;
rewrite _stack_frame (pure True);
elim_pure _ | false |
LListReverse.fst | LListReverse.intro_llist_reverse_invariant | val intro_llist_reverse_invariant
(#opened: _)
(l: Ghost.erased (list U64.t))
(ppdone pptodo: ref (ref llist_cell))
(cont: bool)
(pdone: ref llist_cell)
(done: Ghost.erased (list U64.t))
(ptodo: ref llist_cell)
(todo: Ghost.erased (list U64.t))
: STGhost unit
op... | val intro_llist_reverse_invariant
(#opened: _)
(l: Ghost.erased (list U64.t))
(ppdone pptodo: ref (ref llist_cell))
(cont: bool)
(pdone: ref llist_cell)
(done: Ghost.erased (list U64.t))
(ptodo: ref llist_cell)
(todo: Ghost.erased (list U64.t))
: STGhost unit
op... | let intro_llist_reverse_invariant
(#opened: _)
(l: Ghost.erased (list U64.t))
(ppdone: ref (ref llist_cell))
(pptodo: ref (ref llist_cell))
(cont: bool)
(pdone: ref llist_cell)
(done: Ghost.erased (list U64.t))
(ptodo: ref llist_cell)
(todo: Ghost.erased (list U64.t))
: STGhost unit opened
(llist_... | {
"file_name": "share/steel/tests/krml/LListReverse.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 50,
"end_line": 171,
"start_col": 0,
"start_line": 143
} | module LListReverse
open Steel.ST.GenElim
open Steel.ST.Reference
open Steel.ST.Loops
module U64 = FStar.UInt64
let main () = C.EXIT_SUCCESS // dummy for compilation
noeq
type llist_cell = {
value: U64.t;
next: ref llist_cell;
}
[@@__reduce__]
let llist_nil
(p: ref llist_cell)
: Tot vprop
= pure (p == null)
... | {
"checked_file": "/",
"dependencies": [
"Steel.ST.Reference.fsti.checked",
"Steel.ST.Loops.fsti.checked",
"Steel.ST.GenElim.fsti.checked",
"prims.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.Ghost.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": false,
"full_module": "Steel.ST.Loops",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.ST.Reference",
"short_module": null
},
{
"abbrev": false,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
l: FStar.Ghost.erased (Prims.list FStar.UInt64.t) ->
ppdone: Steel.ST.Reference.ref (Steel.ST.Reference.ref LListReverse.llist_cell) ->
pptodo: Steel.ST.Reference.ref (Steel.ST.Reference.ref LListReverse.llist_cell) ->
cont: Prims.bool ->
pdone: Steel.ST.Reference.ref LListReverse.llist_cell ->
... | Steel.ST.Effect.Ghost.STGhost | [] | [] | [
"Steel.Memory.inames",
"FStar.Ghost.erased",
"Prims.list",
"FStar.UInt64.t",
"Steel.ST.Reference.ref",
"LListReverse.llist_cell",
"Prims.bool",
"Steel.ST.Util.rewrite",
"LListReverse.llist_reverse_invariant0",
"LListReverse.llist_reverse_invariant",
"Prims.unit",
"LListReverse.llist_reverse_in... | [] | false | true | false | false | false | let intro_llist_reverse_invariant
(#opened: _)
(l: Ghost.erased (list U64.t))
(ppdone pptodo: ref (ref llist_cell))
(cont: bool)
(pdone: ref llist_cell)
(done: Ghost.erased (list U64.t))
(ptodo: ref llist_cell)
(todo: Ghost.erased (list U64.t))
: STGhost unit
op... | let x:llist_reverse_invariant_t l cont =
{ pdone = pdone; done = done; ptodo = ptodo; todo = todo; prf = () }
in
rewrite (llist_reverse_invariant_body ppdone pptodo pdone done ptodo todo)
(llist_reverse_invariant_body ppdone pptodo x.pdone x.done x.ptodo x.todo);
rewrite (llist_reverse_invariant0 l ppdone pptodo co... | false |
Pulse.C.Types.Scalar.fsti | Pulse.C.Types.Scalar.read_prf | val read_prf (#t: Type) (v0: t) (p: perm)
: Lemma
(forall v0' p'.
mk_fraction (scalar t) (mk_scalar v0') p' == mk_fraction (scalar t) (mk_scalar v0) p ==>
(v0' == v0 /\ p' == p)) | val read_prf (#t: Type) (v0: t) (p: perm)
: Lemma
(forall v0' p'.
mk_fraction (scalar t) (mk_scalar v0') p' == mk_fraction (scalar t) (mk_scalar v0) p ==>
(v0' == v0 /\ p' == p)) | let read_prf
(#t: Type)
(v0: t)
(p: perm)
: Lemma
(forall v0' p' . (* {:pattern (mk_fraction (scalar t) (mk_scalar v0) p)} *) mk_fraction (scalar t) (mk_scalar v0') p' == mk_fraction (scalar t) (mk_scalar v0) p ==> (
v0' == v0 /\
p' == p
))
=
let prf v0' p' : Lemma
(requires (mk_fraction (scala... | {
"file_name": "share/steel/examples/pulse/lib/c/Pulse.C.Types.Scalar.fsti",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 31,
"end_line": 129,
"start_col": 0,
"start_line": 110
} | module Pulse.C.Types.Scalar
open Pulse.Lib.Pervasives
include Pulse.C.Types.Base
// To be extracted as: t
[@@noextract_to "krml"] // primitive
val scalar_t ( [@@@strictly_positive] t: Type0) : Type0
[@@noextract_to "krml"] // proof-only
val scalar (t: Type) : typedef (scalar_t t)
val mk_scalar (#t: Type) (v: t) : Ghos... | {
"checked_file": "/",
"dependencies": [
"Pulse.Lib.Pervasives.fst.checked",
"Pulse.C.Types.Base.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.IndefiniteDescription.fsti.checked",
"FStar.Ghost.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_f... | [
{
"abbrev": false,
"full_module": "Pulse.C.Types.Base",
"short_module": null
},
{
"abbrev": false,
"full_module": "Pulse.Lib.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Pulse.C.Types",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | v0: t -> p: PulseCore.FractionalPermission.perm
-> FStar.Pervasives.Lemma
(ensures
forall (v0': t) (p': PulseCore.FractionalPermission.perm).
Pulse.C.Types.Base.mk_fraction (Pulse.C.Types.Scalar.scalar t)
(Pulse.C.Types.Scalar.mk_scalar v0')
p' ==
Pulse.C.Types.Base.mk_fr... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"PulseCore.FractionalPermission.perm",
"FStar.Classical.forall_intro_2",
"Prims.l_imp",
"Prims.eq2",
"Pulse.C.Types.Scalar.scalar_t",
"Pulse.C.Types.Base.mk_fraction",
"Pulse.C.Types.Scalar.scalar",
"Pulse.C.Types.Scalar.mk_scalar",
"Prims.l_and",
"FStar.Ghost.reveal",
"FStar.Ghost.hide",
"Pri... | [] | false | false | true | false | false | let read_prf (#t: Type) (v0: t) (p: perm)
: Lemma
(forall v0' p'.
mk_fraction (scalar t) (mk_scalar v0') p' == mk_fraction (scalar t) (mk_scalar v0) p ==>
(v0' == v0 /\ p' == p)) =
| let prf v0' p'
: Lemma
(requires
(mk_fraction (scalar t) (mk_scalar v0') p' == mk_fraction (scalar t) (mk_scalar v0) p))
(ensures (v0' == Ghost.reveal v0 /\ p' == Ghost.reveal p)) =
mk_scalar_inj (Ghost.reveal v0) v0' p p'
in
let prf' v0' p'
: Lemma
((mk_fraction (scalar t) (mk_scalar ... | false |
Pulse.C.Types.Scalar.fsti | Pulse.C.Types.Scalar.indefinite_description_tot0 | val indefinite_description_tot0 (a: Type) (p: (a -> prop)) (q: squash (exists x. p x))
: Tot (w: Ghost.erased a {p w}) | val indefinite_description_tot0 (a: Type) (p: (a -> prop)) (q: squash (exists x. p x))
: Tot (w: Ghost.erased a {p w}) | let indefinite_description_tot0 (a:Type) (p:(a -> prop)) (q: squash (exists x. p x))
: Tot (w:Ghost.erased a{ p w })
= FStar.IndefiniteDescription.indefinite_description_tot a p | {
"file_name": "share/steel/examples/pulse/lib/c/Pulse.C.Types.Scalar.fsti",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 60,
"end_line": 134,
"start_col": 0,
"start_line": 132
} | module Pulse.C.Types.Scalar
open Pulse.Lib.Pervasives
include Pulse.C.Types.Base
// To be extracted as: t
[@@noextract_to "krml"] // primitive
val scalar_t ( [@@@strictly_positive] t: Type0) : Type0
[@@noextract_to "krml"] // proof-only
val scalar (t: Type) : typedef (scalar_t t)
val mk_scalar (#t: Type) (v: t) : Ghos... | {
"checked_file": "/",
"dependencies": [
"Pulse.Lib.Pervasives.fst.checked",
"Pulse.C.Types.Base.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.IndefiniteDescription.fsti.checked",
"FStar.Ghost.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_f... | [
{
"abbrev": false,
"full_module": "Pulse.C.Types.Base",
"short_module": null
},
{
"abbrev": false,
"full_module": "Pulse.Lib.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Pulse.C.Types",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Type -> p: (_: a -> Prims.prop) -> q: Prims.squash (exists (x: a). p x)
-> w: FStar.Ghost.erased a {p (FStar.Ghost.reveal w)} | Prims.Tot | [
"total"
] | [] | [
"Prims.prop",
"Prims.squash",
"Prims.l_Exists",
"FStar.IndefiniteDescription.indefinite_description_tot",
"FStar.Ghost.erased",
"FStar.Ghost.reveal"
] | [] | false | false | false | false | false | let indefinite_description_tot0 (a: Type) (p: (a -> prop)) (q: squash (exists x. p x))
: Tot (w: Ghost.erased a {p w}) =
| FStar.IndefiniteDescription.indefinite_description_tot a p | false |
LListReverse.fst | LListReverse.elim_llist_reverse_invariant | val elim_llist_reverse_invariant
(#opened: _)
(l: Ghost.erased (list U64.t))
(ppdone pptodo: ref (ref llist_cell))
(cont: bool)
: STGhostT (llist_reverse_invariant_t l cont)
opened
(llist_reverse_invariant l ppdone pptodo cont)
(fun x -> llist_reverse_invariant_body ppdone ... | val elim_llist_reverse_invariant
(#opened: _)
(l: Ghost.erased (list U64.t))
(ppdone pptodo: ref (ref llist_cell))
(cont: bool)
: STGhostT (llist_reverse_invariant_t l cont)
opened
(llist_reverse_invariant l ppdone pptodo cont)
(fun x -> llist_reverse_invariant_body ppdone ... | let elim_llist_reverse_invariant
(#opened: _)
(l: Ghost.erased (list U64.t))
(ppdone: ref (ref llist_cell))
(pptodo: ref (ref llist_cell))
(cont: bool)
: STGhostT (llist_reverse_invariant_t l cont) opened
(llist_reverse_invariant l ppdone pptodo cont)
(fun x -> llist_reverse_invariant_body ppdone ppto... | {
"file_name": "share/steel/tests/krml/LListReverse.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 3,
"end_line": 183,
"start_col": 0,
"start_line": 173
} | module LListReverse
open Steel.ST.GenElim
open Steel.ST.Reference
open Steel.ST.Loops
module U64 = FStar.UInt64
let main () = C.EXIT_SUCCESS // dummy for compilation
noeq
type llist_cell = {
value: U64.t;
next: ref llist_cell;
}
[@@__reduce__]
let llist_nil
(p: ref llist_cell)
: Tot vprop
= pure (p == null)
... | {
"checked_file": "/",
"dependencies": [
"Steel.ST.Reference.fsti.checked",
"Steel.ST.Loops.fsti.checked",
"Steel.ST.GenElim.fsti.checked",
"prims.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.Ghost.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": false,
"full_module": "Steel.ST.Loops",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.ST.Reference",
"short_module": null
},
{
"abbrev": false,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
l: FStar.Ghost.erased (Prims.list FStar.UInt64.t) ->
ppdone: Steel.ST.Reference.ref (Steel.ST.Reference.ref LListReverse.llist_cell) ->
pptodo: Steel.ST.Reference.ref (Steel.ST.Reference.ref LListReverse.llist_cell) ->
cont: Prims.bool
-> Steel.ST.Effect.Ghost.STGhostT
(LListReverse.llist_reverse... | Steel.ST.Effect.Ghost.STGhostT | [] | [] | [
"Steel.Memory.inames",
"FStar.Ghost.erased",
"Prims.list",
"FStar.UInt64.t",
"Steel.ST.Reference.ref",
"LListReverse.llist_cell",
"Prims.bool",
"FStar.Ghost.reveal",
"LListReverse.llist_reverse_invariant_t",
"Steel.ST.Util.elim_exists",
"LListReverse.llist_reverse_invariant_body",
"LListRevers... | [] | false | true | false | false | false | let elim_llist_reverse_invariant
(#opened: _)
(l: Ghost.erased (list U64.t))
(ppdone pptodo: ref (ref llist_cell))
(cont: bool)
: STGhostT (llist_reverse_invariant_t l cont)
opened
(llist_reverse_invariant l ppdone pptodo cont)
(fun x -> llist_reverse_invariant_body ppdone ... | let x = elim_exists () in
x | false |
Hacl.Impl.Blake2.Generic.fst | Hacl.Impl.Blake2.Generic.blake2 | val blake2:
#al:Spec.alg
-> #ms:m_spec
-> blake2_init_st al ms
-> blake2_update_st al ms
-> blake2_finish_st al ms
-> blake2_st al ms | val blake2:
#al:Spec.alg
-> #ms:m_spec
-> blake2_init_st al ms
-> blake2_update_st al ms
-> blake2_finish_st al ms
-> blake2_st al ms | let blake2 #al #ms blake2_init blake2_update blake2_finish output output_len input input_len key key_len =
[@inline_let]
let stlen = le_sigh al ms in
[@inline_let]
let stzero = zero_element al ms in
let h0 = ST.get() in
[@inline_let]
let spec _ h1 = h1.[|output|] == Spec.blake2 al h0.[|(input <: lbuffer u... | {
"file_name": "code/blake2/Hacl.Impl.Blake2.Generic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 41,
"end_line": 1041,
"start_col": 0,
"start_line": 1025
} | module Hacl.Impl.Blake2.Generic
open FStar.Mul
open FStar.HyperStack
open FStar.HyperStack.ST
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
open Lib.LoopCombinators
module ST = FStar.HyperStack.ST
module Seq = Lib.Sequence
module Loops = Lib.LoopCombinators
module Spec = Spec.Blake2
open Hacl.Impl.Blake2.Co... | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Modifies.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"L... | [
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Core",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Constants",
"short_module": null
},
{
"abbrev": true,
"full_module": "Spec.Blake2",
"short_module": "Spec"
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
blake2_init: Hacl.Impl.Blake2.Generic.blake2_init_st al ms ->
blake2_update: Hacl.Impl.Blake2.Generic.blake2_update_st al ms ->
blake2_finish: Hacl.Impl.Blake2.Generic.blake2_finish_st al ms
-> Hacl.Impl.Blake2.Generic.blake2_st al ms | Prims.Tot | [
"total"
] | [] | [
"Spec.Blake2.Definitions.alg",
"Hacl.Impl.Blake2.Core.m_spec",
"Hacl.Impl.Blake2.Generic.blake2_init_st",
"Hacl.Impl.Blake2.Generic.blake2_update_st",
"Hacl.Impl.Blake2.Generic.blake2_finish_st",
"Lib.Buffer.buffer_t",
"Lib.Buffer.MUT",
"Lib.IntTypes.uint8",
"Lib.IntTypes.size_t",
"Prims.l_and",
... | [] | false | false | false | false | false | let blake2
#al
#ms
blake2_init
blake2_update
blake2_finish
output
output_len
input
input_len
key
key_len
=
| [@@ inline_let ]let stlen = le_sigh al ms in
[@@ inline_let ]let stzero = zero_element al ms in
let h0 = ST.get () in
[@@ inline_let ]let spec _ h1 =
h1.[| output |] ==
Spec.blake2 al
h0.[| (input <: lbuffer uint8 input_len) |]
(Spec.blake2_default_params al)
(v key_len)
h0.[| key |]
(v output_l... | false |
DependentBoolRefinement.fst | DependentBoolRefinement.var | val var : Type0 | let var = nat | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 13,
"end_line": 8,
"start_col": 0,
"start_line": 8
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'" | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Reflection.V2",
"short_module": "R"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Type0 | Prims.Tot | [
"total"
] | [] | [
"Prims.nat"
] | [] | false | false | false | true | true | let var =
| nat | false | |
DependentBoolRefinement.fst | DependentBoolRefinement.index | val index : Type0 | let index = nat | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 15,
"end_line": 9,
"start_col": 0,
"start_line": 9
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'" | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Reflection.V2",
"short_module": "R"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Type0 | Prims.Tot | [
"total"
] | [] | [
"Prims.nat"
] | [] | false | false | false | true | true | let index =
| nat | false | |
DependentBoolRefinement.fst | DependentBoolRefinement.tun | val tun : FStar.Stubs.Reflection.Types.term | let tun = R.pack_ln R.Tv_Unknown | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 32,
"end_line": 11,
"start_col": 0,
"start_line": 11
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Reflection.V2",
"short_module": "R"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | FStar.Stubs.Reflection.Types.term | Prims.Tot | [
"total"
] | [] | [
"FStar.Stubs.Reflection.V2.Builtins.pack_ln",
"FStar.Stubs.Reflection.V2.Data.Tv_Unknown"
] | [] | false | false | false | true | false | let tun =
| R.pack_ln R.Tv_Unknown | false | |
DependentBoolRefinement.fst | DependentBoolRefinement.ln | val ln : e: DependentBoolRefinement.src_exp -> Prims.bool | let ln e = ln' e (-1) | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 21,
"end_line": 59,
"start_col": 0,
"start_line": 59
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Reflection.V2",
"short_module": "R"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | e: DependentBoolRefinement.src_exp -> Prims.bool | Prims.Tot | [
"total"
] | [] | [
"DependentBoolRefinement.src_exp",
"DependentBoolRefinement.ln'",
"Prims.op_Minus",
"Prims.bool"
] | [] | false | false | false | true | false | let ln e =
| ln' e (- 1) | false | |
DependentBoolRefinement.fst | DependentBoolRefinement.ln_ty | val ln_ty : t: DependentBoolRefinement.src_ty -> Prims.bool | let ln_ty t = ln_ty' t (-1) | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 27,
"end_line": 60,
"start_col": 0,
"start_line": 60
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Reflection.V2",
"short_module": "R"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | t: DependentBoolRefinement.src_ty -> Prims.bool | Prims.Tot | [
"total"
] | [] | [
"DependentBoolRefinement.src_ty",
"DependentBoolRefinement.ln_ty'",
"Prims.op_Minus",
"Prims.bool"
] | [] | false | false | false | true | false | let ln_ty t =
| ln_ty' t (- 1) | false | |
DependentBoolRefinement.fst | DependentBoolRefinement.open_exp | val open_exp : e: DependentBoolRefinement.src_exp -> v: DependentBoolRefinement.var
-> DependentBoolRefinement.src_exp | let open_exp e v = open_exp' e (EVar v) 0 | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 41,
"end_line": 100,
"start_col": 0,
"start_line": 100
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Reflection.V2",
"short_module": "R"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | e: DependentBoolRefinement.src_exp -> v: DependentBoolRefinement.var
-> DependentBoolRefinement.src_exp | Prims.Tot | [
"total"
] | [] | [
"DependentBoolRefinement.src_exp",
"DependentBoolRefinement.var",
"DependentBoolRefinement.open_exp'",
"DependentBoolRefinement.EVar"
] | [] | false | false | false | true | false | let open_exp e v =
| open_exp' e (EVar v) 0 | false | |
DependentBoolRefinement.fst | DependentBoolRefinement.close_exp | val close_exp : e: DependentBoolRefinement.src_exp -> v: DependentBoolRefinement.var
-> DependentBoolRefinement.src_exp | let close_exp e v = close_exp' e v 0 | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 36,
"end_line": 101,
"start_col": 0,
"start_line": 101
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Reflection.V2",
"short_module": "R"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | e: DependentBoolRefinement.src_exp -> v: DependentBoolRefinement.var
-> DependentBoolRefinement.src_exp | Prims.Tot | [
"total"
] | [] | [
"DependentBoolRefinement.src_exp",
"DependentBoolRefinement.var",
"DependentBoolRefinement.close_exp'"
] | [] | false | false | false | true | false | let close_exp e v =
| close_exp' e v 0 | false | |
DependentBoolRefinement.fst | DependentBoolRefinement.open_with | val open_with : e: DependentBoolRefinement.src_exp -> e': DependentBoolRefinement.src_exp
-> DependentBoolRefinement.src_exp | let open_with e e' = open_exp' e e' 0 | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 37,
"end_line": 102,
"start_col": 0,
"start_line": 102
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Reflection.V2",
"short_module": "R"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | e: DependentBoolRefinement.src_exp -> e': DependentBoolRefinement.src_exp
-> DependentBoolRefinement.src_exp | Prims.Tot | [
"total"
] | [] | [
"DependentBoolRefinement.src_exp",
"DependentBoolRefinement.open_exp'"
] | [] | false | false | false | true | false | let open_with e e' =
| open_exp' e e' 0 | false | |
DependentBoolRefinement.fst | DependentBoolRefinement.open_ty | val open_ty : t: DependentBoolRefinement.src_ty -> v: DependentBoolRefinement.var
-> DependentBoolRefinement.src_ty | let open_ty t v = open_ty' t (EVar v) 0 | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 39,
"end_line": 104,
"start_col": 0,
"start_line": 104
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Reflection.V2",
"short_module": "R"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | t: DependentBoolRefinement.src_ty -> v: DependentBoolRefinement.var
-> DependentBoolRefinement.src_ty | Prims.Tot | [
"total"
] | [] | [
"DependentBoolRefinement.src_ty",
"DependentBoolRefinement.var",
"DependentBoolRefinement.open_ty'",
"DependentBoolRefinement.EVar"
] | [] | false | false | false | true | false | let open_ty t v =
| open_ty' t (EVar v) 0 | false | |
DependentBoolRefinement.fst | DependentBoolRefinement.open_ty_with | val open_ty_with : t: DependentBoolRefinement.src_ty -> e: DependentBoolRefinement.src_exp
-> DependentBoolRefinement.src_ty | let open_ty_with t e = open_ty' t e 0 | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 37,
"end_line": 106,
"start_col": 0,
"start_line": 106
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Reflection.V2",
"short_module": "R"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | t: DependentBoolRefinement.src_ty -> e: DependentBoolRefinement.src_exp
-> DependentBoolRefinement.src_ty | Prims.Tot | [
"total"
] | [] | [
"DependentBoolRefinement.src_ty",
"DependentBoolRefinement.src_exp",
"DependentBoolRefinement.open_ty'"
] | [] | false | false | false | true | false | let open_ty_with t e =
| open_ty' t e 0 | false | |
DependentBoolRefinement.fst | DependentBoolRefinement.binding | val binding : Type0 | let binding = either src_ty src_eqn | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 35,
"end_line": 147,
"start_col": 0,
"start_line": 147
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Reflection.V2",
"short_module": "R"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Type0 | Prims.Tot | [
"total"
] | [] | [
"FStar.Pervasives.either",
"DependentBoolRefinement.src_ty",
"DependentBoolRefinement.src_eqn"
] | [] | false | false | false | true | true | let binding =
| either src_ty src_eqn | false | |
DependentBoolRefinement.fst | DependentBoolRefinement.src_eqn | val src_eqn : Type0 | let src_eqn = src_exp & src_exp | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 31,
"end_line": 146,
"start_col": 0,
"start_line": 146
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Reflection.V2",
"short_module": "R"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Type0 | Prims.Tot | [
"total"
] | [] | [
"FStar.Pervasives.Native.tuple2",
"DependentBoolRefinement.src_exp"
] | [] | false | false | false | true | true | let src_eqn =
| src_exp & src_exp | false | |
DependentBoolRefinement.fst | DependentBoolRefinement.close_ty | val close_ty : t: DependentBoolRefinement.src_ty -> v: DependentBoolRefinement.var
-> DependentBoolRefinement.src_ty | let close_ty t v = close_ty' t v 0 | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 34,
"end_line": 105,
"start_col": 0,
"start_line": 105
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Reflection.V2",
"short_module": "R"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | t: DependentBoolRefinement.src_ty -> v: DependentBoolRefinement.var
-> DependentBoolRefinement.src_ty | Prims.Tot | [
"total"
] | [] | [
"DependentBoolRefinement.src_ty",
"DependentBoolRefinement.var",
"DependentBoolRefinement.close_ty'"
] | [] | false | false | false | true | false | let close_ty t v =
| close_ty' t v 0 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.