jeannin / zelus

A synchronous language with ODEs
http://zelus.di.ens.fr
Other
0 stars 4 forks source link

[Summer] Optimize the data structure for storing refinement/non-refinement variable declaration #39

Closed EasonZ2022 closed 2 years ago

EasonZ2022 commented 2 years ago

| Erefinementdecl of name * name * exp * exp * is_static | Econstdecl of name * is_static * exp

For now, we store non-refinement variable declaration like let var : type = exp as trivially true refinement variable in Erefinementdecl, but for declaration without type annotation (like let var = exp), we are still storing it in Econstdecl.

We hope to finally use a pattern called Econstdecl (which has the same name as the original one but with some modifications on inner data structure) to store all variable declarations

jchen-cs commented 2 years ago

44