logic :: LNot :: defaultinit
core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
core :: Object :: defaultinit
logic :: LExpr :: defaultinit
logic :: LNot :: defaultinit
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
core :: Object :: output_class_name
Display class name on stdout (debug only).
# A logical negation operation
class LNot
super LExpr
# The argument
var e: LExpr
redef fun ~ do return e
redef fun to_s do return "~{e}"
redef fun nnf do return e.nnnf
redef fun nnnf do return e.nnf
redef fun cnf(v) do
if e isa LVar then return super
return e.nnnf.cnf(v)
end
redef fun size do return e.size + 1
end
lib/logic/lexpr.nit:276,1--292,3