Skip to content

Commit

Permalink
Merge pull request #3571 from mtzguido/perf
Browse files Browse the repository at this point in the history
Small perf improvements, also fixing order dependency of qualifiers
  • Loading branch information
mtzguido authored Oct 16, 2024
2 parents 164b9e2 + 1fd7fea commit 74f189b
Show file tree
Hide file tree
Showing 29 changed files with 695 additions and 126 deletions.
1 change: 1 addition & 0 deletions ocaml/fstar-lib/FStarC_Compiler_Util.ml
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,7 @@ let pimap_find_default (map: 'value pimap) (key: Z.t) (dflt: 'value) =
let pimap_try_find (map: 'value pimap) (key: Z.t) =
ZMap.Exceptionless.find key map
let pimap_fold (m:'value pimap) f a = ZMap.fold f m a
let pimap_remove (m:'value pimap) k = ZMap.remove k m

(* restore pre-2.11 BatString.nsplit behavior,
see https://github.com/ocaml-batteries-team/batteries-included/issues/845 *)
Expand Down
2 changes: 2 additions & 0 deletions ocaml/fstar-lib/FStarC_Hash.ml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ type hash_code = int

let cmp_hash (x:hash_code) (y:hash_code) : Z.t = Z.of_int (x-y)

let to_int (i:int) = Z.of_int i

let of_int (i:Z.t) = Z.to_int i
let of_string (s:string) = BatHashtbl.hash s

Expand Down
57 changes: 48 additions & 9 deletions ocaml/fstar-lib/generated/FStarC_Class_Ord.ml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 21 additions & 1 deletion ocaml/fstar-lib/generated/FStarC_Ident.ml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

108 changes: 108 additions & 0 deletions ocaml/fstar-lib/generated/FStarC_Syntax_Syntax.ml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

48 changes: 23 additions & 25 deletions ocaml/fstar-lib/generated/FStarC_ToSyntax_ToSyntax.ml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 74f189b

Please sign in to comment.