Skip to content

Commit 8ce5957

Browse files
committed
Add comment
1 parent 2e4b5da commit 8ce5957

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/elixir/lib/module/types/descr.ex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6190,7 +6190,8 @@ defmodule Module.Types.Descr do
61906190
end
61916191
end
61926192

6193-
# Lazy negation: eliminate the union, then perform normal negation (switching leaves)
6193+
# {lit, c, u, d} = (lit and c) or u or (not lit and d), so
6194+
# its negation is ((lit and not c) or (not lit and not d)) and not u.
61946195
def bdd_negation(:bdd_top), do: :bdd_bot
61956196
def bdd_negation(:bdd_bot), do: :bdd_top
61966197
def bdd_negation({_, _} = pair), do: {pair, :bdd_bot, :bdd_bot, :bdd_top}

0 commit comments

Comments
 (0)