CozySynthesizer / cozy

The collection synthesizer
https://cozy.uwplse.org
Apache License 2.0
209 stars 18 forks source link

TTreeMultiset constructor bug #107

Open izgzhen opened 5 years ago

izgzhen commented 5 years ago

In https://github.com/CozySynthesizer/cozy/commit/7d932b6dcb2813725bb8c1d42c34a869a4a2b6b6

The following lines seem wrong:

def rep_type(self, t : Type) -> Type:
    assert isinstance(t, TMinTreeMultiset) or isinstance(t, TMaxTreeMultiset), repr(t)
    return TTreeMultiset(t.elem_type)