File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 328328 factEmbeddedObject(A , B , C ))
329329 ).
330330
331+ % We committed to a condition being true (or false). Make sure that it stays
332+ % that way.
333+ :- table insanityNegation /1 as incremental .
334+ insanityNegation (Out ) :-
335+ negation_commit(G ),
336+
337+ not(G ),
338+
339+ Out = (
340+ logwarnln('Consistency checks failed.~nThe condition "~Q" was committed to, but has become false.~n' , [G ])
341+ ).
342+
331343:- table sanityChecks /1 as incremental .
332344sanityChecks (Out ) :-
333345 insanityNoBaseConsistency(Out );
346358 insanityInheritanceLoop(Out );
347359 insanityContradictoryMerges(Out );
348360 insanityContradictoryNOTConstructor(Out );
349- insanityTwoRealDestructorsOnClass(Out ).
361+ insanityTwoRealDestructorsOnClass(Out );
362+ insanityNegation(Out ).
350363
351364sanityChecks :-
352365 sanityChecks(Out )
You can’t perform that action at this time.
0 commit comments