Skip to content

Commit

Permalink
Only emit one definition/lookup of the free variables/constants in nn…
Browse files Browse the repository at this point in the history
…rc->js #80
  • Loading branch information
shinnar committed Jan 10, 2018
1 parent dff8814 commit 4ae6a5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coq/Translation/NNRCtoJavaScript.v
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ Section NNRCtoJavaScript.
(* Free variables are assumed to be constant lookups *)
(* Java equivalent: JavaScriptBackend.closeFreeVars *)
Definition closeFreeVars (input:string) (e:nnrc) (params:list string) : nnrc :=
let all_free_vars := nnrc_global_vars e in
let all_free_vars := bdistinct (nnrc_global_vars e) in
let wrap_one_free_var (e':nnrc) (fv:string) : nnrc :=
if (in_dec string_dec fv params)
then e'
Expand Down

0 comments on commit 4ae6a5f

Please sign in to comment.