((\+ Missing/(Missing\==Create), \+ Create , \+ ~(Create)) ==> Create)). /*~ ~*/ % this should have been ok % (if_missing(Missing,Create) ==> ((\+ Missing/(Missing\==Create), \+ Create , \+ ~(Create)) ==> Create)). if_missing(Missing,Create) ==> ( ( \+ Missing/( % nonvar(Missing),nonvar(Create), Missing\=@=Create)) ==> Create). % prevents segfaults /*~ ~*/ % prevents segfaults :- set_prolog_flag(gc,true). % :- rtrace. /*~ ~*/ % :- rtrace. if_missing(foob(_),foob(a)). /*~ ~*/ :- nortrace. /*~ ~*/ :- mpred_test(foob(a)). /*~ %~ ?-( mpred_test("Test_0001_Line_0000__A_in_user",user:foob(a))). passed=info(why_was_true(user:foob(a))) no_proof_for(foob(a)). no_proof_for(foob(a)). no_proof_for(foob(a)). name='logicmoo.pfc.test.sanity_base.IF_MISSING_01-Test_0001_Line_0000__A_in_user'. JUNIT_CLASSNAME='logicmoo.pfc.test.sanity_base.IF_MISSING_01'. JUNIT_CMD='timeout --foreground --preserve-status -s SIGKILL -k 10s 10s swipl -x /var/lib/jenkins/workspace/logicmoo_workspace/bin/lmoo-clif -t "[\'if_missing_01.pfc\']"'. % saving_junit: /var/lib/jenkins/workspace/logicmoo_workspace/test_results/jenkins/Report-logicmoo-pfc-test-sanity_base-vSTARv0vSTARvvDOTvvSTARv-2-1--grep-2-i-WARN-ERROR-_file-00-fail-pass--Units-Logicmoo_pfc_test_sanity_base_IF_MISSING_01_Test_0001_Line_0000_A_in_user-junit.xml ~*/ :- set_prolog_flag(gc,false). /*~ ~*/ :- ain(foob(b)). /*~ ~*/ :- mpred_test(\+foob(a)). /*~ %~ /var/lib/jenkins/workspace/logicmoo_workspace/packs_sys/pfc/t/sanity_base/if_missing_01.pfc:43 %~ ?-( mpred_test("Test_0002_Line_0000__naf_A_in_user",user:(\+foob(a)))). failure=info((why_was_true(user:foob(a)),nop(ftrace(user:(\+foob(a)))))) no_proof_for(foob(a)). no_proof_for(foob(a)). no_proof_for(foob(a)). name='logicmoo.pfc.test.sanity_base.IF_MISSING_01-Test_0002_Line_0000__naf_A_in_user'. JUNIT_CLASSNAME='logicmoo.pfc.test.sanity_base.IF_MISSING_01'. JUNIT_CMD='timeout --foreground --preserve-status -s SIGKILL -k 10s 10s swipl -x /var/lib/jenkins/workspace/logicmoo_workspace/bin/lmoo-clif -t "[\'if_missing_01.pfc\']"'. % saving_junit: /var/lib/jenkins/workspace/logicmoo_workspace/test_results/jenkins/Report-logicmoo-pfc-test-sanity_base-vSTARv0vSTARvvDOTvvSTARv-2-1--grep-2-i-WARN-ERROR-_file-00-fail-pass--Units-Logicmoo_pfc_test_sanity_base_IF_MISSING_01_Test_0002_Line_0000_naf_A_in_user-junit.xml ~*/ :- mpred_test(foob(b)). /*~ %~ /var/lib/jenkins/workspace/logicmoo_works goal=user:foob(b). time=0.0004229545593261719. passed=passed=info(why_was_true(user:foob(b))) no_proof_for(foob(b)). no_proof_for(foob(b)). no_proof_for(foob(b)). result=passed. ]]>