2b2aa228e3
The universe constraint manager is more flexible now. We don't need to start with a huge universe U >= 512. We can start small, and increase it on demand. If module mod1 needs it, it can always add universe U >= 3 Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
9 lines
216 B
Text
9 lines
216 B
Text
universe M >= 1
|
|
universe U >= M + 1
|
|
universe Z >= max U+1 M+1
|
|
print environment 2
|
|
(*
|
|
local env = get_environment()
|
|
assert(env:get_universe_distance("Z", "U") == 1)
|
|
assert(env:get_universe_distance("Z", "M") == 2)
|
|
*)
|