Embedding HT.entity into ST.entity + equality
commit8489b468bcd7cfb7c73485d2d551fa533e490cab
authorStefan Zetzsche <zetzsche@fb.com>
Tue, 9 Aug 2022 15:07:56 +0000 (9 08:07 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Tue, 9 Aug 2022 15:07:56 +0000 (9 08:07 -0700)
tree973c17b398ef6bc66f88e63ebae39f33d914ec5a
parentee41af3aa5b68d8860766aff4ad6ab78e1e02e07
Embedding HT.entity into ST.entity + equality

Summary: We extend `Shape_analysis_types.entity_`such that it embeds `Hips_types.entity` and implement an equality function `val is_same_entity : Hips_types.entity -> Shape_analysis_types.entity_ -> bool`. The latter will be used to instantiate a module of type `Intra` for shape-like-dict, see D38290182 (https://github.com/facebook/hhvm/commit/340cc0f837a1cb42dfa042596265e0d484e9adc7).

Reviewed By: madgen

Differential Revision: D38501584

fbshipit-source-id: f447e6fb23a710dd39be7e0faf24b7c0139c29d9
hphp/hack/src/hips/dune
hphp/hack/src/hips/hips_types.ml
hphp/hack/src/hips/hips_types.mli
hphp/hack/src/shape_analysis/dune
hphp/hack/src/shape_analysis/shape_analysis_pretty_printer.ml
hphp/hack/src/shape_analysis/shape_analysis_solver.ml
hphp/hack/src/shape_analysis/shape_analysis_solver.mli
hphp/hack/src/shape_analysis/shape_analysis_types.ml
hphp/hack/src/shape_analysis/shape_analysis_types.mli