1% Enter your password.
    2% Connected to PrologMUD, running eggdrop v1.6.21
    3%      ____                __
    4%     / __/___ _ ___ _ ___/ /____ ___   ___
    5%    / _/ / _ `// _ `// _  // __// _ \ / _ \
    6%   /___/ \_, / \_, / \_,_//_/   \___// .__/
    7%        /___/ /___/                 /_/
    8% Hey swipl!  My name is PrologMUD and I am running eggdrop v1.6.21, on Linux 5.0.0-38-generic.
    9% Local time is now 13:56
   10% You are an owner of this bot. Only +n users can see this! For more info,
   11% see .help set motd. Please edit the motd file in your bot's 'text'
   12% Use .help for basic help.
   13% Use .help <command> for help on a specific command.
   14% Use .help all to get a full command list.
   15% Use .help *somestring* to list any help texts containing "somestring".
   16% Have fun.
   17% Commands start with '.' (like '.quit' or '.help')
   18% Everything else goes out to the party line.
   19% get2react([chon,"swipl","10"]).
   20% You have no messages.
   21% *** swipl joined the party line.
   22% Echo turned off.
   23% Set your console to ##prolog: - (none).
   24% That channel already exists!
   25% That channel already exists!
   26% That channel already exists!
   27% That channel already exists!
   28% Msg to nickserv: identify swipl
   29% Set your console to #logicmoo: - (none).
   30% /pack/lps_corner/examples/binaryChop2.pl:2
   31% push_lps_dialect.
   32% ops.
   33% [ti=user, load= /.../(examples, 'binaryChop2.pl'), strip=lps, ctx=lps, sm= /.../(examples, 'binaryChop2.pl'), lps= /.../(examples, 'binaryChop2.pl'), using= /.../(examples, 'binaryChop2.pl')].
   34% continue_lps_dialect.
   35% ops.
   36
   37% LPS:  fluents((left(_18944),right(_18944),searching(_19000))).
   38% Into: fluents([left(_18944),right(_18944),searching(_19000)]).
   39
   40% LPS:  initially((left(0),right(9),searching(60))).
   41% Into: initial_state([left(0),right(9),searching(60)]).
   42
   43% LPS:  actions(sample(_20552)).
   44% Into: actions([sample(_20552)]).
   45
   46% LPS:  events(do_sample/0).
   47% Into: events([do_sample]).
   48
   49% LPS:  if(at(found(_38926),_38948),(at(left(_38926),_38948),at(right(_38926),_38948))).
   50% Into: l_int(holds(found(_38926),_38948),[holds(left(_38926),_38948),holds(right(_38926),_38948)]).
   51
   52% LPS:  if(do_sample,(left(_40974),right(_41014),_41156 is (_41014+_40974)div 2,sample(_41156))).
   53% Into: l_events(happens(do_sample,_42410,_42416),[holds(left(_40974),_42410),holds(right(_41014),_42410),_41156 is (_41014+_40974)div 2,happens(sample(_41156),_42410,_42416)]).
   54
   55% LPS:  then(if(not(found(_43290))),do_sample).
   56% Into: reactive_rule([holds(not(found(_43290)),_44386)],[happens(do_sample,_44466,_44472)]).
   57
   58% LPS:  if(initiates(sample(_44390),left(_44430)),(searching(_44502),a(_44390,_44558),_44558<_44502,_44430 is _44390+1)).
   59% Into: initiated(happens(sample(_44390),_46052,_46058),left(_44430),[holds(searching(_44502),_46052),a(_44390,_44558),_44558<_44502,_44430 is _44390+1]).
   60
   61% LPS:  if(terminates(sample(_45962),left(_46002)),(searching(_46074),a(_45962,_46130),_46130<_46074)).
   62% Into: terminated(happens(sample(_45962),_47442,_47448),left(_46002),[holds(searching(_46074),_47442),a(_45962,_46130),_46130<_46074]).
   63
   64% LPS:  if(initiates(sample(_47360),right(_47360)),(searching(_47472),a(_47360,_47528),_47528>=_47472)).
   65% Into: initiated(happens(sample(_47360),_48840,_48846),right(_47360),[holds(searching(_47472),_48840),a(_47360,_47528),_47528>=_47472]).
   66
   67% LPS:  if(terminates(sample(_48758),right(_48798)),(searching(_48870),a(_48758,_48926),_48926>=_48870)).
   68% Into: terminated(happens(sample(_48758),_50238,_50244),right(_48798),[holds(searching(_48870),_50238),a(_48758,_48926),_48926>=_48870]).
   69% /pack/lps_corner/examples/binaryChop2.pl:29
   70% pop_lps_dialect('$BLOB'("<stream>(0x562ef33c0700)"),  (/.../(examples, 'binaryChop2.pl')-> /.../(examples, 'binaryChop2.pl'))).
   71% ops.
   72% :-listing('/pack/lps_corner/examples/binaryChop2.pl':_58286).
   73
   74
   75initiated(happens(sample(A), B, _), left(C), [holds(searching(D), B), a(A, E), E<D, C is A+1]).
   76initiated(happens(sample(A), B, _), right(A), [holds(searching(C), B), a(A, D), D>=C]).
   77
   78fluents([left(A), right(A), searching(_)]).
   79
   80l_int(holds(found(A), B), [holds(left(A), B), holds(right(A), B)]).
   81
   82a(0, 10).
   83a(1, 12).
   84a(2, 20).
   85a(3, 25).
   86a(4, 30).
   87a(5, 31).
   88a(6, 35).
   89a(7, 60).
   90a(8, 65).
   91a(9, 500).
   92
   93reactive_rule([holds(not(found(_)), _)], [happens(do_sample, _, _)]).
   94
   95initial_state([left(0), right(9), searching(60)]).
   96
   97l_events(happens(do_sample, A, B), [holds(left(C), A), holds(right(D), A), E is (D+C)div 2, happens(sample(E), A, B)]).
   98
   99terminated(happens(sample(A), B, _), left(_), [holds(searching(C), B), a(A, D), D<C]).
  100terminated(happens(sample(A), B, _), right(_), [holds(searching(C), B), a(A, D), D>=C]).
  101
  102:- dynamic actions/1.  103:- multifile actions/1.  104
  105actions([sample(_)]).
  106
  107events([do_sample]).
  108% dB(/.../(examples, 'binaryChop2.pl'), lps_visualization(_62278{groups:[_60894{content:"left(A)", id:"left/1", order:3, subgroupStack:"false"}, _60972{content:"right(A)", id:"right/1", order:3, subgroupStack:"false"}, _61050{content:"searching(A)", id:"searching/1", order:3, subgroupStack:"false"}, _61116{content:"Actions", id:"action", order:4}], items:[_61238{content:"0", end:2, group:"left/1", id:0, start:1, subgroup:"0", title:"Fluent left(0) initiated at 1<br/>and terminated at transition to 2"}, _61364{content:"5", end:4, group:"left/1", id:1, start:2, subgroup:"5", title:"Fluent left(5) initiated at 2<br/>and terminated at transition to 4"}, _61490{content:"7", end:21, group:"left/1", id:2, start:4, subgroup:"7", title:"Fluent left(7) initiated at 4<br/>and terminated at transition to 21"}, _61616{content:"7", end:21, group:"right/1", id:3, start:3, subgroup:"7", title:"Fluent right(7) initiated at 3<br/>and terminated at transition to 21"}, _61742{content:"9", end:3, group:"right/1", id:4, start:1, subgroup:"9", title:"Fluent right(9) initiated at 1<br/>and terminated at transition to 3"}, _61868{content:"60", end:21, group:"searching/1", id:5, start:1, subgroup:"60", title:"Fluent searching(60) initiated at 1<br/>and terminated at transition to 21"}, _61994{content:"sample(4)", group:"action", id:6, start:2, style:"color:green", title:"happens(sample(4),1,2)", type:"point"}, _62120{content:"sample(7)", group:"action", id:7, start:3, style:"color:green", title:"happens(sample(7),2,3)", type:"point"}, _62246{content:"sample(6)", group:"action", id:8, start:4, style:"color:green", title:"happens(sample(6),3,4)", type:"point"}]}, [])).
  109% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'salomon.pl')).
  110% run_lps_corner_file1(/.../(lps_user_examples, 'salomon.pl')).
  111% /pack/logicmoo_ec/test/lps_user_examples/salomon.pl:1
  112% push_lps_dialect.
  113% ops.
  114% [ti=user, load= /.../(lps_user_examples, 'salomon.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'salomon.pl'), lps= /.../(lps_user_examples, 'salomon.pl'), using= /.../(lps_user_examples, 'salomon.pl')].
  115% continue_lps_dialect.
  116% ops.
  117
  118% LPS:  events((disputa_entre(_19928,_19930),poner_a_prueba(_19928,_19930),propone_salida_drastica(_20026),tomar_decision)).
  119% Into: events([disputa_entre(_19928,_19930),poner_a_prueba(_19928,_19930),propone_salida_drastica(_20026),tomar_decision]).
  120
  121% LPS:  actions((propone_dividir_nino(_21290),dice(_21290,_21346),declara(_21290,_21402),dicta(_21290,_21458))).
  122% Into: actions([propone_dividir_nino(_21290),dice(_21290,_21346),declara(_21290,_21402),dicta(_21290,_21458)]).
  123
  124% LPS:  observe(from(disputa_entre(a,b),to(1,2))).
  125% Into: observe([disputa_entre(a,b)],2).
  126
  127% LPS:  then(if(from(disputa_entre(_23912,_23914),to(_23950,_23952))),from(poner_a_prueba(_23912,_23914),to(_23952,_24128))).
  128% Into: reactive_rule([happens(disputa_entre(_23912,_23914),_23950,_23952)],[happens(poner_a_prueba(_23912,_23914),_23952,_24128)]).
  129
  130% LPS:  if(from(poner_a_prueba(_25390,_25392),to(_25428,_25430)),from(propone_salida_drastica(salomon),to(_25428,_25430))).
  131% Into: l_events(happens(poner_a_prueba(_25390,_25392),_25428,_25430),[happens(propone_salida_drastica(salomon),_25428,_25430)]).
  132
  133% LPS:  if(from(propone_salida_drastica(_26730),to(_26766,_26768)),from(propone_dividir_nino(_26730),to(_26766,_26768))).
  134% Into: l_events(happens(propone_salida_drastica(_26730),_26766,_26768),[happens(propone_dividir_nino(_26730),_26766,_26768)]).
  135
  136% LPS:  then(if((from(propone_dividir_nino(salomon),to(_28154,_28156)),mujer(_28254),soy_su_madre(_28254))),from(dice(_28254,'No lo mate! D�selo a Ella'),to(_28156,_28476))).
  137% Into: reactive_rule([happens(propone_dividir_nino(salomon),_28154,_28156),mujer(_28254),soy_su_madre(_28254)],[happens(dice(_28254,'No lo mate! D�selo a Ella'),_28156,_28476)]).
  138
  139% LPS:  then(if((from(propone_dividir_nino(salomon),to(_30698,_30700)),mujer(_30798),not(soy_su_madre(_30798)))),from(dice(_30798,'S�, m�telo'),to(_30700,_31044))).
  140% Into: reactive_rule([happens(propone_dividir_nino(salomon),_30698,_30700),mujer(_30798),not(soy_su_madre(_30798))],[happens(dice(_30798,'S�, m�telo'),_30700,_31044)]).
  141
  142% LPS:  then(if((from(propone_dividir_nino(_33742),to(_33778,_33780)),from(dice(_33892,'No lo mate! D�selo a Ella'),to(_33930,_33932)),from(dice(_34044,'S�, m�telo'),to(_34082,_34084)))),(from(declara(_33742,la_verdadera_madre_es(_33892)),to(_34346,_34348)),from(dicta(_33742,entreguen_nino_a(_33892)),to(_34348,_34524)))).
  143% Into: reactive_rule([happens(propone_dividir_nino(_33742),_33778,_33780),happens(dice(_33892,'No lo mate! D�selo a Ella'),_33930,_33932),happens(dice(_34044,'S�, m�telo'),_34082,_34084)],[happens(declara(_33742,la_verdadera_madre_es(_33892)),_34346,_34348),happens(dicta(_33742,entreguen_nino_a(_33892)),_34348,_34524)]).
  144% /pack/logicmoo_ec/test/lps_user_examples/salomon.pl:68
  145% pop_lps_dialect('$BLOB'("<stream>(0x562ef33c3e00)"),  (/.../(lps_user_examples, 'salomon.pl')-> /.../(lps_user_examples, 'salomon.pl'))).
  146% ops.
  147% :-listing('/pack/logicmoo_ec/test/lps_user_examples/salomon.pl':_47468).
  148
  149
  150reactive_rule([happens(disputa_entre(A, B), _, C)], [happens(poner_a_prueba(A, B), C, _)]).
  151reactive_rule([happens(propone_dividir_nino(salomon), _, A), mujer(B), soy_su_madre(B)], [happens(dice(B, 'No lo mate! D�selo a Ella'), A, _)]).
  152reactive_rule([happens(propone_dividir_nino(salomon), _, A), mujer(B), not(soy_su_madre(B))], [happens(dice(B, 'S�, m�telo'), A, _)]).
  153reactive_rule([happens(propone_dividir_nino(A), _, _), happens(dice(B, 'No lo mate! D�selo a Ella'), _, _), happens(dice(_, 'S�, m�telo'), _, _)], [happens(declara(A, la_verdadera_madre_es(B)), _, C), happens(dicta(A, entreguen_nino_a(B)), C, _)]).
  154
  155soy_su_madre(b).
  156
  157l_events(happens(poner_a_prueba(_, _), A, B), [happens(propone_salida_drastica(salomon), A, B)]).
  158l_events(happens(propone_salida_drastica(A), B, C), [happens(propone_dividir_nino(A), B, C)]).
  159
  160maxtime(10).
  161
  162:- dynamic actions/1.  163:- multifile actions/1.  164
  165actions([propone_dividir_nino(A), dice(A, _), declara(A, _), dicta(A, _)]).
  166
  167events([disputa_entre(A, B), poner_a_prueba(A, B), propone_salida_drastica(_), tomar_decision]).
  168
  169observe([disputa_entre(a, b)], 2).
  170
  171mujer(a).
  172mujer(b).
  173% dB(/.../(lps_user_examples, 'salomon.pl'), lps_visualization(_74304{groups:[_73458{content:"Events", id:"event", order:1}, _73520{content:"Actions", id:"action", order:4}], items:[_73642{content:"disputa_entre(a,b)", group:"event", id:0, start:2, style:"color:#E19735", title:"happens(disputa_entre(a,b),1,2)", type:"point"}, _73768{content:"propone_dividir_nino(salomon)", group:"action", id:1, start:3, style:"color:green", title:"happens(propone_dividir_nino(salomon),2,3)", type:"point"}, _73894{content:"dice(a,S�, m�telo)", group:"action", id:2, start:4, style:"color:green", title:"happens(dice(a,S�, m�telo),3,4)", type:"point"}, _74020{content:"dice(b,No lo mate! D�selo a Ella)", group:"action", id:3, start:4, style:"color:green", title:"happens(dice(b,No lo mate! D�selo a Ella),3,4)", type:"point"}, _74146{content:"declara(salomon,la_verdadera_madre_es(b))", group:"action", id:4, start:5, style:"color:green", title:"happens(declara(salomon,la_verdadera_madre_es(b)),4,5)", type:"point"}, _74272{content:"dicta(salomon,entreguen_nino_a(b))", group:"action", id:5, start:6, style:"color:green", title:"happens(dicta(salomon,entreguen_nino_a(b)),5,6)", type:"point"}]}, [])).
  174% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'Samuel Contreras.pl')).
  175% run_lps_corner_file1(/.../(lps_user_examples, 'Samuel Contreras.pl')).
  176% /pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl:1
  177% push_lps_dialect.
  178% ops.
  179% [ti=user, load= /.../(lps_user_examples, 'Samuel Contreras.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'Samuel Contreras.pl'), lps= /.../(lps_user_examples, 'Samuel Contreras.pl'), using= /.../(lps_user_examples, 'Samuel Contreras.pl')].
  180% continue_lps_dialect.
  181% ops.
  182
  183% LPS:  fluents(enga�a/2).
  184% Into: fluents([enga�a(_55932,_55934)]).
  185
  186% LPS:  actions((ayuda/2,encuentra/1)).
  187% Into: actions([ayuda(_57134,_57136),encuentra(_57146)]).
  188
  189% LPS:  events((necesita/2,escapa/1)).
  190% Into: events([necesita(_58294,_58296),escapa(_58306)]).
  191
  192% LPS:  initially(enga�a(bruja,ni�o)).
  193% Into: initial_state([enga�a(bruja,ni�o)]).
  194
  195% LPS:  observe(from(necesita(bruja,objeto),to(1,2))).
  196% Into: observe([necesita(bruja,objeto)],2).
  197
  198% LPS:  if(initiates(encuentra(_60436),enga�a(_60490,_60492)),enga�a(_60492,_60490)).
  199% Into: initiated(happens(encuentra(_60436),_61754,_61760),enga�a(_60490,_60492),[holds(enga�a(_60492,_60490),_61754)]).
  200
  201% LPS:  then(if(necesita(bruja,objeto)),ayuda(ni�o,bruja)).
  202% Into: reactive_rule([happens(necesita(bruja,objeto),_63140,_63146)],[happens(ayuda(ni�o,bruja),_63172,_63178)]).
  203
  204% LPS:  then(if(ayuda(ni�o,bruja)),encuentra(objeto)).
  205% Into: reactive_rule([happens(ayuda(ni�o,bruja),_64514,_64520)],[happens(encuentra(objeto),_64678,_64684)]).
  206
  207% LPS:  if(escapa(ni�o),enga�a(ni�o,bruja)).
  208% Into: l_events(happens(escapa(ni�o),_65806,_65806),[holds(enga�a(ni�o,bruja),_65806)]).
  209
  210% LPS:  observe(from(necesita(bruja,objeto),to(4,5))).
  211% Into: observe([necesita(bruja,objeto)],5).
  212
  213% LPS:  then(if(necesita(bruja,objeto)),ayuda(ni�o,bruja)).
  214% Into: reactive_rule([happens(necesita(bruja,objeto),_68356,_68362)],[happens(ayuda(ni�o,bruja),_68388,_68394)]).
  215
  216% LPS:  then(if(ayuda(ni�o,bruja)),encuentra(objeto)).
  217% Into: reactive_rule([happens(ayuda(ni�o,bruja),_69482,_69488)],[happens(encuentra(objeto),_69514,_69520)]).
  218
  219% LPS:  then(if((encuentra(objeto),enga�a(ni�o,bruja))),escapa(ni�o)).
  220% Into: reactive_rule([happens(encuentra(objeto),_70690,_70696),holds(enga�a(ni�o,bruja),_70696)],[happens(escapa(ni�o),_70788,_70794)]).
  221% /usr/lib/swipl/library/option.pl:0
  222% tryed(tmp:% module_dialect_lps('$BLOB'("<stream>(0x562ef33a9a00)"), _64924, /.../(lps_user_examples, 'Samuel Contreras.pl'), _64928)).
  223:- thread_local % module_dialect_lps/4.
  224:- dynamic % module_dialect_lps/4.
  225:- volatile % module_dialect_lps/4.
  226
  227% module_dialect_lps('$BLOB'("<stream>(0x562ef32ab000)"), '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl', '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl', [op(0, fy, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':not), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':then), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':if), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':if), op(0, xfy, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':else), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':terminates), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':initiates), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':updates), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':observe), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':false), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':initially), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':fluents), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':events), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':prolog_events), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':actions), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':unserializable), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':update), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':initiate), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':terminate), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':in), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':at), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':during), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':from), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':to), op(0, xfy, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': ::), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': <-), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': <-), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': <=)]).
  228
  229% /usr/lib/swipl/library/option.pl:37
  230% tryed(tmp:% module_dialect_lps('$BLOB'("<stream>(0x562ef33a9a00)"), _72670, /.../(lps_user_examples, 'Samuel Contreras.pl'), _72674)).
  231:- thread_local % module_dialect_lps/4.
  232:- dynamic % module_dialect_lps/4.
  233:- volatile % module_dialect_lps/4.
  234
  235% module_dialect_lps('$BLOB'("<stream>(0x562ef32ab000)"), '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl', '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl', [op(0, fy, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':not), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':then), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':if), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':if), op(0, xfy, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':else), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':terminates), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':initiates), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':updates), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':observe), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':false), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':initially), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':fluents), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':events), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':prolog_events), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':actions), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':unserializable), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':update), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':initiate), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':terminate), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':in), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':at), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':during), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':from), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':to), op(0, xfy, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': ::), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': <-), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': <-), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': <=)]).
  236
  237% /usr/lib/swipl/library/option.pl:0
  238% tryed(tmp:% module_dialect_lps('$BLOB'("<stream>(0x562ef33a9400)"), _22632, /.../(lps_user_examples, 'Samuel Contreras.pl'), _22636)).
  239:- thread_local % module_dialect_lps/4.
  240:- dynamic % module_dialect_lps/4.
  241:- volatile % module_dialect_lps/4.
  242
  243% module_dialect_lps('$BLOB'("<stream>(0x562ef32ab000)"), '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl', '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl', [op(0, fy, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':not), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':then), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':if), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':if), op(0, xfy, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':else), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':terminates), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':initiates), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':updates), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':observe), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':false), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':initially), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':fluents), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':events), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':prolog_events), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':actions), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':unserializable), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':update), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':initiate), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':terminate), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':in), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':at), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':during), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':from), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':to), op(0, xfy, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': ::), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': <-), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': <-), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': <=)]).
  244
  245% /usr/lib/swipl/library/option.pl:37
  246% tryed(tmp:% module_dialect_lps('$BLOB'("<stream>(0x562ef33a9400)"), _30036, /.../(lps_user_examples, 'Samuel Contreras.pl'), _30040)).
  247:- thread_local % module_dialect_lps/4.
  248:- dynamic % module_dialect_lps/4.
  249:- volatile % module_dialect_lps/4.
  250
  251% module_dialect_lps('$BLOB'("<stream>(0x562ef32ab000)"), '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl', '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl', [op(0, fy, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':not), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':then), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':if), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':if), op(0, xfy, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':else), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':terminates), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':initiates), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':updates), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':observe), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':false), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':initially), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':fluents), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':events), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':prolog_events), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':actions), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':unserializable), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':update), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':initiate), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':terminate), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':in), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':at), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':during), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':from), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':to), op(0, xfy, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': ::), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': <-), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': <-), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': <=)]).
  252
  253% /usr/lib/swipl/library/process.pl:0
  254% tryed(tmp:% module_dialect_lps('$BLOB'("<stream>(0x562ef33a8e00)"), _37396, /.../(lps_user_examples, 'Samuel Contreras.pl'), _37400)).
  255:- thread_local % module_dialect_lps/4.
  256:- dynamic % module_dialect_lps/4.
  257:- volatile % module_dialect_lps/4.
  258
  259% module_dialect_lps('$BLOB'("<stream>(0x562ef32ab000)"), '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl', '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl', [op(0, fy, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':not), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':then), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':if), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':if), op(0, xfy, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':else), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':terminates), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':initiates), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':updates), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':observe), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':false), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':initially), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':fluents), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':events), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':prolog_events), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':actions), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':unserializable), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':update), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':initiate), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':terminate), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':in), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':at), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':during), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':from), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':to), op(0, xfy, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': ::), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': <-), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': <-), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': <=)]).
  260
  261% /usr/lib/swipl/library/process.pl:37
  262% tryed(tmp:% module_dialect_lps('$BLOB'("<stream>(0x562ef33a8e00)"), _45334, /.../(lps_user_examples, 'Samuel Contreras.pl'), _45338)).
  263:- thread_local % module_dialect_lps/4.
  264:- dynamic % module_dialect_lps/4.
  265:- volatile % module_dialect_lps/4.
  266
  267% module_dialect_lps('$BLOB'("<stream>(0x562ef32ab000)"), '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl', '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl', [op(0, fy, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':not), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':then), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':if), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':if), op(0, xfy, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':else), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':terminates), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':initiates), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':updates), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':observe), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':false), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':initially), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':fluents), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':events), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':prolog_events), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':actions), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':unserializable), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':update), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':initiate), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':terminate), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':in), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':at), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':during), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':from), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':to), op(0, xfy, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': ::), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': <-), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': <-), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': <=)]).
  268
  269% /usr/lib/swipl/library/error.pl:0
  270% tryed(tmp:% module_dialect_lps('$BLOB'("<stream>(0x562ef33a8800)"), _52816, /.../(lps_user_examples, 'Samuel Contreras.pl'), _52820)).
  271:- thread_local % module_dialect_lps/4.
  272:- dynamic % module_dialect_lps/4.
  273:- volatile % module_dialect_lps/4.
  274
  275% module_dialect_lps('$BLOB'("<stream>(0x562ef32ab000)"), '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl', '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl', [op(0, fy, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':not), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':then), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':if), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':if), op(0, xfy, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':else), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':terminates), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':initiates), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':updates), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':observe), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':false), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':initially), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':fluents), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':events), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':prolog_events), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':actions), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':unserializable), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':update), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':initiate), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':terminate), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':in), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':at), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':during), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':from), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':to), op(0, xfy, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': ::), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': <-), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': <-), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': <=)]).
  276
  277% /usr/lib/swipl/library/error.pl:36
  278% tryed(tmp:% module_dialect_lps('$BLOB'("<stream>(0x562ef33a8800)"), _60872, /.../(lps_user_examples, 'Samuel Contreras.pl'), _60876)).
  279:- thread_local % module_dialect_lps/4.
  280:- dynamic % module_dialect_lps/4.
  281:- volatile % module_dialect_lps/4.
  282
  283% module_dialect_lps('$BLOB'("<stream>(0x562ef32ab000)"), '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl', '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl', [op(0, fy, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':not), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':then), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':if), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':if), op(0, xfy, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':else), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':terminates), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':initiates), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':updates), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':observe), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':false), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':initially), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':fluents), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':events), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':prolog_events), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':actions), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':unserializable), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':update), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':initiate), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':terminate), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':in), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':at), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':during), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':from), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':to), op(0, xfy, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': ::), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': <-), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': <-), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': <=)]).
  284
  285% /usr/lib/swipl/library/apply.pl:0
  286% tryed(tmp:% module_dialect_lps('$BLOB'("<stream>(0x562ef33a8300)"), _68076, /.../(lps_user_examples, 'Samuel Contreras.pl'), _68080)).
  287:- thread_local % module_dialect_lps/4.
  288:- dynamic % module_dialect_lps/4.
  289:- volatile % module_dialect_lps/4.
  290
  291% module_dialect_lps('$BLOB'("<stream>(0x562ef32ab000)"), '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl', '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl', [op(0, fy, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':not), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':then), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':if), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':if), op(0, xfy, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':else), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':terminates), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':initiates), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':updates), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':observe), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':false), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':initially), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':fluents), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':events), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':prolog_events), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':actions), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':unserializable), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':update), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':initiate), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':terminate), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':in), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':at), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':during), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':from), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':to), op(0, xfy, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': ::), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': <-), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': <-), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': <=)]).
  292
  293% /usr/lib/swipl/library/apply.pl:36
  294% tryed(tmp:% module_dialect_lps('$BLOB'("<stream>(0x562ef33a8300)"), _76690, /.../(lps_user_examples, 'Samuel Contreras.pl'), _76694)).
  295:- thread_local % module_dialect_lps/4.
  296:- dynamic % module_dialect_lps/4.
  297:- volatile % module_dialect_lps/4.
  298
  299% module_dialect_lps('$BLOB'("<stream>(0x562ef32ab000)"), '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl', '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl', [op(0, fy, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':not), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':then), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':if), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':if), op(0, xfy, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':else), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':terminates), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':initiates), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':updates), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':observe), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':false), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':initially), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':fluents), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':events), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':prolog_events), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':actions), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':unserializable), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':update), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':initiate), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':terminate), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':in), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':at), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':during), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':from), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':to), op(0, xfy, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': ::), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': <-), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': <-), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': <=)]).
  300
  301% /usr/lib/swipl/library/option.pl:0
  302% tryed(tmp:% module_dialect_lps('$BLOB'("<stream>(0x562ef33a7d00)"), _83960, /.../(lps_user_examples, 'Samuel Contreras.pl'), _83964)).
  303:- thread_local % module_dialect_lps/4.
  304:- dynamic % module_dialect_lps/4.
  305:- volatile % module_dialect_lps/4.
  306
  307% module_dialect_lps('$BLOB'("<stream>(0x562ef32ab000)"), '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl', '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl', [op(0, fy, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':not), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':then), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':if), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':if), op(0, xfy, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':else), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':terminates), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':initiates), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':updates), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':observe), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':false), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':initially), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':fluents), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':events), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':prolog_events), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':actions), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':unserializable), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':update), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':initiate), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':terminate), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':in), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':at), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':during), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':from), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':to), op(0, xfy, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': ::), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': <-), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': <-), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': <=)]).
  308
  309% /usr/lib/swipl/library/option.pl:37
  310% tryed(tmp:% module_dialect_lps('$BLOB'("<stream>(0x562ef33a7d00)"), _91364, /.../(lps_user_examples, 'Samuel Contreras.pl'), _91368)).
  311:- thread_local % module_dialect_lps/4.
  312:- dynamic % module_dialect_lps/4.
  313:- volatile % module_dialect_lps/4.
  314
  315% module_dialect_lps('$BLOB'("<stream>(0x562ef32ab000)"), '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl', '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl', [op(0, fy, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':not), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':then), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':if), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':if), op(0, xfy, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':else), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':terminates), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':initiates), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':updates), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':observe), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':false), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':initially), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':fluents), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':events), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':prolog_events), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':actions), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':unserializable), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':update), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':initiate), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':terminate), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':in), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':at), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':during), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':from), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':to), op(0, xfy, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': ::), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': <-), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': <-), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': <=)]).
  316
  317% /usr/lib/swipl/library/readutil.pl:0
  318% tryed(tmp:% module_dialect_lps('$BLOB'("<stream>(0x562ef33a7600)"), _21206, /.../(lps_user_examples, 'Samuel Contreras.pl'), _21210)).
  319:- thread_local % module_dialect_lps/4.
  320:- dynamic % module_dialect_lps/4.
  321:- volatile % module_dialect_lps/4.
  322
  323% module_dialect_lps('$BLOB'("<stream>(0x562ef32ab000)"), '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl', '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl', [op(0, fy, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':not), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':then), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':if), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':if), op(0, xfy, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':else), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':terminates), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':initiates), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':updates), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':observe), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':false), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':initially), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':fluents), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':events), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':prolog_events), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':actions), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':unserializable), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':update), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':initiate), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':terminate), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':in), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':at), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':during), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':from), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':to), op(0, xfy, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': ::), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': <-), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': <-), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': <=)]).
  324
  325% /usr/lib/swipl/library/readutil.pl:37
  326% tryed(tmp:% module_dialect_lps('$BLOB'("<stream>(0x562ef33a7600)"), _28732, /.../(lps_user_examples, 'Samuel Contreras.pl'), _28736)).
  327:- thread_local % module_dialect_lps/4.
  328:- dynamic % module_dialect_lps/4.
  329:- volatile % module_dialect_lps/4.
  330
  331% module_dialect_lps('$BLOB'("<stream>(0x562ef32ab000)"), '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl', '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl', [op(0, fy, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':not), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':then), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':if), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':if), op(0, xfy, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':else), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':terminates), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':initiates), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':updates), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':observe), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':false), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':initially), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':fluents), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':events), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':prolog_events), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':actions), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':unserializable), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':update), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':initiate), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':terminate), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':in), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':at), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':during), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':from), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':to), op(0, xfy, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': ::), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': <-), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': <-), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': <=)]).
  332
  333% /usr/lib/swipl/library/readutil.pl:0
  334% tryed(tmp:% module_dialect_lps('$BLOB'("<stream>(0x562ef33a7000)"), _36084, /.../(lps_user_examples, 'Samuel Contreras.pl'), _36088)).
  335:- thread_local % module_dialect_lps/4.
  336:- dynamic % module_dialect_lps/4.
  337:- volatile % module_dialect_lps/4.
  338
  339% module_dialect_lps('$BLOB'("<stream>(0x562ef32ab000)"), '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl', '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl', [op(0, fy, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':not), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':then), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':if), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':if), op(0, xfy, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':else), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':terminates), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':initiates), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':updates), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':observe), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':false), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':initially), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':fluents), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':events), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':prolog_events), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':actions), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':unserializable), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':update), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':initiate), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':terminate), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':in), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':at), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':during), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':from), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':to), op(0, xfy, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': ::), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': <-), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': <-), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': <=)]).
  340
  341% /usr/lib/swipl/library/readutil.pl:37
  342% tryed(tmp:% module_dialect_lps('$BLOB'("<stream>(0x562ef33a7000)"), _43610, /.../(lps_user_examples, 'Samuel Contreras.pl'), _43614)).
  343:- thread_local % module_dialect_lps/4.
  344:- dynamic % module_dialect_lps/4.
  345:- volatile % module_dialect_lps/4.
  346
  347% module_dialect_lps('$BLOB'("<stream>(0x562ef32ab000)"), '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl', '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl', [op(0, fy, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':not), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':then), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':if), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':if), op(0, xfy, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':else), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':terminates), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':initiates), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':updates), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':observe), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':false), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':initially), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':fluents), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':events), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':prolog_events), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':actions), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':unserializable), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':update), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':initiate), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':terminate), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':in), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':at), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':during), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':from), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':to), op(0, xfy, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': ::), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': <-), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': <-), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': <=)]).
  348
  349% /usr/lib/swipl/library/process.pl:0
  350% tryed(tmp:% module_dialect_lps('$BLOB'("<stream>(0x562ef33a6700)"), _50712, /.../(lps_user_examples, 'Samuel Contreras.pl'), _50716)).
  351:- thread_local % module_dialect_lps/4.
  352:- dynamic % module_dialect_lps/4.
  353:- volatile % module_dialect_lps/4.
  354
  355% module_dialect_lps('$BLOB'("<stream>(0x562ef32ab000)"), '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl', '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl', [op(0, fy, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':not), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':then), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':if), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':if), op(0, xfy, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':else), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':terminates), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':initiates), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':updates), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':observe), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':false), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':initially), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':fluents), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':events), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':prolog_events), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':actions), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':unserializable), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':update), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':initiate), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':terminate), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':in), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':at), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':during), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':from), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':to), op(0, xfy, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': ::), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': <-), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': <-), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': <=)]).
  356
  357% /usr/lib/swipl/library/process.pl:37
  358% tryed(tmp:% module_dialect_lps('$BLOB'("<stream>(0x562ef33a6700)"), _58650, /.../(lps_user_examples, 'Samuel Contreras.pl'), _58654)).
  359:- thread_local % module_dialect_lps/4.
  360:- dynamic % module_dialect_lps/4.
  361:- volatile % module_dialect_lps/4.
  362
  363% module_dialect_lps('$BLOB'("<stream>(0x562ef32ab000)"), '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl', '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl', [op(0, fy, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':not), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':then), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':if), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':if), op(0, xfy, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':else), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':terminates), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':initiates), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':updates), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':observe), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':false), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':initially), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':fluents), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':events), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':prolog_events), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':actions), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':unserializable), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':update), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':initiate), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':terminate), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':in), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':at), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':during), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':from), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':to), op(0, xfy, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': ::), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': <-), op(0, fx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': <-), op(0, xfx, '/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl': <=)]).
  364
  365LPS version 21ef6da75fc8874032a83b114d06961df3effedc
  366Using dc:
  367
  368 Simulation time is up. Unsolved goals:
  369
  370** -1 cycles took 0.000410 seconds **
  371% /pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl:32
  372% pop_lps_dialect('$BLOB'("<stream>(0x562ef32ab000)"),  (/.../(lps_user_examples, 'Samuel Contreras.pl')-> /.../(lps_user_examples, 'Samuel Contreras.pl'))).
  373% ops.
  374% :-listing('/pack/logicmoo_ec/test/lps_user_examples/Samuel Contreras.pl':_73798).
  375
  376
  377:- dynamic used/1.
  378
  379used(0).
  380used(0).
  381
  382:- dynamic state/1.  383
  384state(enga�a(bruja, ni�o)).
  385state(enga�a(ni�o, bruja)).
  386state(real_time(1601499407.5697262)).
  387state(lps_user(unknown_user)).
  388state(lps_user(unknown_user, unknown_email)).
  389state(enga�a(bruja, ni�o)).
  390state(real_time(1601499407.6215806)).
  391state(lps_user(unknown_user)).
  392state(lps_user(unknown_user, unknown_email)).
  393
  394:- dynamic tried/3.  395
  396
  397maxTime(8).
  398
  399:- dynamic happens/3.  400
  401
  402fluents([enga�a(_, _)]).
  403
  404:- dynamic lps_test_result/3.  405
  406lps_test_result(fluents, 0, 1).
  407lps_test_result(events, 1, 0).
  408lps_test_result(fluents, 1, 1).
  409lps_test_result(events, 2, 1).
  410lps_test_result(fluents, 2, 1).
  411lps_test_result(events, 3, 1).
  412lps_test_result(fluents, 3, 1).
  413lps_test_result(events, 4, 1).
  414lps_test_result(fluents, 4, 2).
  415lps_test_result(events, 5, 1).
  416lps_test_result(fluents, 5, 2).
  417lps_test_result(events, 6, 1).
  418lps_test_result(fluents, 6, 2).
  419lps_test_result(events, 7, 1).
  420lps_test_result(fluents, 7, 2).
  421lps_test_result(events, 8, 0).
  422lps_test_result(fluents, 8, 2).
  423
  424l_events(happens(escapa(ni�o), A, A), [holds(enga�a(ni�o, bruja), A)]).
  425
  426:- dynamic actions/1.  427:- multifile actions/1.  428
  429actions([ayuda(_, _), encuentra(_)]).
  430
  431initiated(happens(encuentra(_), A, _), enga�a(B, C), [holds(enga�a(C, B), A)]).
  432
  433:- dynamic current_goal/1.  434
  435current_goal(0).
  436current_goal(0).
  437
  438:- dynamic lps_test_result_item/3.  439
  440lps_test_result_item(fluents, 0, enga�a(bruja, ni�o)).
  441lps_test_result_item(fluents, 1, enga�a(bruja, ni�o)).
  442lps_test_result_item(events, 2, necesita(bruja, objeto)).
  443lps_test_result_item(fluents, 2, enga�a(bruja, ni�o)).
  444lps_test_result_item(events, 3, ayuda(ni�o, bruja)).
  445lps_test_result_item(fluents, 3, enga�a(bruja, ni�o)).
  446lps_test_result_item(events, 4, encuentra(objeto)).
  447lps_test_result_item(fluents, 4, enga�a(bruja, ni�o)).
  448lps_test_result_item(fluents, 4, enga�a(ni�o, bruja)).
  449lps_test_result_item(events, 5, necesita(bruja, objeto)).
  450lps_test_result_item(fluents, 5, enga�a(bruja, ni�o)).
  451lps_test_result_item(fluents, 5, enga�a(ni�o, bruja)).
  452lps_test_result_item(events, 6, ayuda(ni�o, bruja)).
  453lps_test_result_item(fluents, 6, enga�a(bruja, ni�o)).
  454lps_test_result_item(fluents, 6, enga�a(ni�o, bruja)).
  455lps_test_result_item(events, 7, encuentra(objeto)).
  456lps_test_result_item(fluents, 7, enga�a(bruja, ni�o)).
  457lps_test_result_item(fluents, 7, enga�a(ni�o, bruja)).
  458lps_test_result_item(fluents, 8, enga�a(bruja, ni�o)).
  459lps_test_result_item(fluents, 8, enga�a(ni�o, bruja)).
  460
  461:- dynamic next_state/1.  462
  463
  464initial_state([enga�a(bruja, ni�o)]).
  465
  466:- dynamic lps_updating_current_state/0.  467
  468
  469:- dynamic real_time_beginning/1.  470
  471real_time_beginning(1601499407.4535487).
  472real_time_beginning(1601499407.621502).
  473
  474:- dynamic option/1.  475
  476option(swish).
  477option(dc).
  478
  479reactive_rule([happens(necesita(bruja, objeto), _, _)], [happens(ayuda(ni�o, bruja), _, _)]).
  480reactive_rule([happens(ayuda(ni�o, bruja), _, _)], [happens(encuentra(objeto), _, _)]).
  481reactive_rule([happens(necesita(bruja, objeto), _, _)], [happens(ayuda(ni�o, bruja), _, _)]).
  482reactive_rule([happens(ayuda(ni�o, bruja), _, _)], [happens(encuentra(objeto), _, _)]).
  483reactive_rule([happens(encuentra(objeto), _, A), holds(enga�a(ni�o, bruja), A)], [happens(escapa(ni�o), _, _)]).
  484
  485:- dynamic depth/1.  486
  487depth(0).
  488depth(0).
  489
  490:- dynamic current_time/1.  491
  492current_time(0).
  493current_time(10).
  494
  495events([necesita(_, _), escapa(_)]).
  496
  497observe([necesita(bruja, objeto)], 2).
  498observe([necesita(bruja, objeto)], 5).
  499% dB(/.../(lps_user_examples, 'Samuel Contreras.pl'), lps_visualization(_53206{groups:[_52030{content:"Events", id:"event", order:1}, _52104{content:"enga�a(A,B)", id:"enga�a/2", order:3, subgroupStack:"false"}, _52170{content:"Actions", id:"action", order:4}], items:[_52292{content:"bruja,ni�o", end:9, group:"enga�a/2", id:0, start:1, subgroup:"bruja", title:"Fluent enga�a(bruja,ni�o) initiated at 1<br/>and terminated at transition to 9"}, _52418{content:"ni�o,bruja", end:9, group:"enga�a/2", id:1, start:4, subgroup:"ni�o", title:"Fluent enga�a(ni�o,bruja) initiated at 4<br/>and terminated at transition to 9"}, _52544{content:"necesita(bruja,objeto)", group:"event", id:2, start:2, style:"color:#E19735", title:"happens(necesita(bruja,objeto),1,2)", type:"point"}, _52670{content:"ayuda(ni�o,bruja)", group:"action", id:3, start:3, style:"color:green", title:"happens(ayuda(ni�o,bruja),2,3)", type:"point"}, _52796{content:"encuentra(objeto)", group:"action", id:4, start:4, style:"color:green", title:"happens(encuentra(objeto),3,4)", type:"point"}, _52922{content:"necesita(bruja,objeto)", group:"event", id:5, start:5, style:"color:#E19735", title:"happens(necesita(bruja,objeto),4,5)", type:"point"}, _53048{content:"ayuda(ni�o,bruja)", group:"action", id:6, start:6, style:"color:green", title:"happens(ayuda(ni�o,bruja),5,6)", type:"point"}, _53174{content:"encuentra(objeto)", group:"action", id:7, start:7, style:"color:green", title:"happens(encuentra(objeto),6,7)", type:"point"}]}, [])).
  500% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'sdsd.pl')).
  501% run_lps_corner_file1(/.../(lps_user_examples, 'sdsd.pl')).
  502% /pack/logicmoo_ec/test/lps_user_examples/sdsd.pl:1
  503% push_lps_dialect.
  504% ops.
  505% [ti=user, load= /.../(lps_user_examples, 'sdsd.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'sdsd.pl'), lps= /.../(lps_user_examples, 'sdsd.pl'), using= /.../(lps_user_examples, 'sdsd.pl')].
  506% continue_lps_dialect.
  507% ops.
  508
  509% LPS:  fluents(enga�a(_19262,_19264)).
  510% Into: fluents([enga�a(_19262,_19264)]).
  511
  512% LPS:  actions((ayuda/2,encuentra/1,obtiene/1)).
  513% Into: actions([ayuda(_21672,_21674),encuentra(_21684),obtiene(_21694)]).
  514
  515% LPS:  events((necesita/2,escapa/1)).
  516% Into: events([necesita(_22790,_22792),escapa(_22802)]).
  517
  518% LPS:  initially(enga�a(bruja,ni�o)).
  519% Into: initial_state([enga�a(bruja,ni�o)]).
  520
  521% LPS:  observe(from(necesita(bruja,objeto),to(1,2))).
  522% Into: observe([necesita(bruja,objeto)],2).
  523
  524% LPS:  if(initiates(ayuda(_24946,_24948),enga�a(_24946,_24948)),obtiene(objeto)).
  525% Into: initiated(happens(ayuda(_24946,_24948),_26240,_26246),enga�a(_24946,_24948),[happens(obtiene(objeto),_26240,_26246)]).
  526
  527% LPS:  if(escapa(ni�o),ayuda(ni�o,bruja)).
  528% Into: l_events(happens(escapa(ni�o),_27556,_27562),[happens(ayuda(ni�o,bruja),_27556,_27562)]).
  529
  530% LPS:  then(if(from(necesita(bruja,objeto),to(_27634,_27636))),from(escapa(ni�o),to(_27636,_27796))).
  531% Into: reactive_rule([happens(necesita(bruja,objeto),_27634,_27636)],[happens(escapa(ni�o),_27636,_27796)]).
  532LPS version 21ef6da75fc8874032a83b114d06961df3effedc
  533Using dc:
  534
  535 Simulation time is up. Unsolved goals:
  536
  537** -1 cycles took 0.000451 seconds **
  538% /pack/logicmoo_ec/test/lps_user_examples/sdsd.pl:29
  539% pop_lps_dialect('$BLOB'("<stream>(0x562ef32abb00)"),  (/.../(lps_user_examples, 'sdsd.pl')-> /.../(lps_user_examples, 'sdsd.pl'))).
  540% ops.
  541% :-listing('/pack/logicmoo_ec/test/lps_user_examples/sdsd.pl':_73000).
  542
  543
  544:- dynamic used/1.
  545
  546used(0).
  547used(0).
  548
  549:- dynamic state/1.  550
  551state(enga�a(bruja, ni�o)).
  552state(real_time(1601499407.8738532)).
  553state(lps_user(unknown_user)).
  554state(lps_user(unknown_user, unknown_email)).
  555state(enga�a(bruja, ni�o)).
  556state(real_time(1601499407.8823154)).
  557state(lps_user(unknown_user)).
  558state(lps_user(unknown_user, unknown_email)).
  559
  560:- dynamic tried/3.  561
  562
  563maxTime(8).
  564
  565:- dynamic happens/3.  566
  567
  568fluents([enga�a(_, _)]).
  569
  570:- dynamic lps_test_result/3.  571
  572lps_test_result(fluents, 0, 1).
  573lps_test_result(events, 1, 0).
  574lps_test_result(fluents, 1, 1).
  575lps_test_result(events, 2, 1).
  576lps_test_result(fluents, 2, 1).
  577lps_test_result(events, 3, 1).
  578lps_test_result(fluents, 3, 1).
  579lps_test_result(events, 4, 0).
  580lps_test_result(fluents, 4, 1).
  581lps_test_result(events, 5, 0).
  582lps_test_result(fluents, 5, 1).
  583lps_test_result(events, 6, 0).
  584lps_test_result(fluents, 6, 1).
  585lps_test_result(events, 7, 0).
  586lps_test_result(fluents, 7, 1).
  587lps_test_result(events, 8, 0).
  588lps_test_result(fluents, 8, 1).
  589
  590l_events(happens(escapa(ni�o), A, B), [happens(ayuda(ni�o, bruja), A, B)]).
  591
  592:- dynamic lps_test_action_ancestor/3.  593
  594lps_test_action_ancestor(escapa(ni�o), 2, 3).
  595
  596:- dynamic actions/1.  597:- multifile actions/1.  598
  599actions([ayuda(_, _), encuentra(_), obtiene(_)]).
  600
  601initiated(happens(ayuda(A, B), C, D), enga�a(A, B), [happens(obtiene(objeto), C, D)]).
  602
  603:- dynamic current_goal/1.  604
  605current_goal(0).
  606current_goal(0).
  607
  608:- dynamic lps_test_result_item/3.  609
  610lps_test_result_item(fluents, 0, enga�a(bruja, ni�o)).
  611lps_test_result_item(fluents, 1, enga�a(bruja, ni�o)).
  612lps_test_result_item(events, 2, necesita(bruja, objeto)).
  613lps_test_result_item(fluents, 2, enga�a(bruja, ni�o)).
  614lps_test_result_item(events, 3, ayuda(ni�o, bruja)).
  615lps_test_result_item(fluents, 3, enga�a(bruja, ni�o)).
  616lps_test_result_item(fluents, 4, enga�a(bruja, ni�o)).
  617lps_test_result_item(fluents, 5, enga�a(bruja, ni�o)).
  618lps_test_result_item(fluents, 6, enga�a(bruja, ni�o)).
  619lps_test_result_item(fluents, 7, enga�a(bruja, ni�o)).
  620lps_test_result_item(fluents, 8, enga�a(bruja, ni�o)).
  621
  622:- dynamic next_state/1.  623
  624
  625initial_state([enga�a(bruja, ni�o)]).
  626
  627:- dynamic lps_updating_current_state/0.  628
  629
  630:- dynamic real_time_beginning/1.  631
  632real_time_beginning(1601499407.6736755).
  633real_time_beginning(1601499407.8822443).
  634
  635:- dynamic option/1.  636
  637option(swish).
  638option(dc).
  639
  640reactive_rule([happens(necesita(bruja, objeto), _, A)], [happens(escapa(ni�o), A, _)]).
  641
  642:- dynamic depth/1.  643
  644depth(0).
  645depth(0).
  646
  647:- dynamic current_time/1.  648
  649current_time(0).
  650current_time(10).
  651
  652events([necesita(_, _), escapa(_)]).
  653
  654observe([necesita(bruja, objeto)], 2).
  655% dB(/.../(lps_user_examples, 'sdsd.pl'), lps_visualization(_39800{groups:[_39254{content:"Events", id:"event", order:1}, _39328{content:"enga�a(A,B)", id:"enga�a/2", order:3, subgroupStack:"false"}, _39394{content:"Actions", id:"action", order:4}], items:[_39516{content:"bruja,ni�o", end:9, group:"enga�a/2", id:0, start:1, subgroup:"bruja", title:"Fluent enga�a(bruja,ni�o) initiated at 1<br/>and terminated at transition to 9"}, _39642{content:"necesita(bruja,objeto)", group:"event", id:1, start:2, style:"color:#E19735", title:"happens(necesita(bruja,objeto),1,2)", type:"point"}, _39768{content:"ayuda(ni�o,bruja)", group:"action", id:2, start:3, style:"color:green", title:"happens(ayuda(ni�o,bruja),2,3)", type:"point"}]}, [])).
  656% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'search.pl')).
  657% run_lps_corner_file1(/.../(lps_user_examples, 'search.pl')).
  658% /pack/logicmoo_ec/test/lps_user_examples/search.pl:1
  659% push_lps_dialect.
  660% ops.
  661% [ti=user, load= /.../(lps_user_examples, 'search.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'search.pl'), lps= /.../(lps_user_examples, 'search.pl'), using= /.../(lps_user_examples, 'search.pl')].
  662% continue_lps_dialect.
  663% ops.
  664
  665% LPS:  events((g/2,gx/1,o)).
  666% Into: events([g(_20526,_20528),gx(_20538),o]).
  667
  668% LPS:  actions(s/1).
  669% Into: actions([s(_21512)]).
  670
  671% LPS:  observe(from(o,to(1,2))).
  672% Into: observe([o],2).
  673
  674% LPS:  if(g(_22620,_22622),(_22620\==_22622,c(_22620,_22742),g(_22620,_22742),g(_22742,_22622))).
  675% Into: l_events(happens(g(_22620,_22622),_24040,_24046),[_22620\==_22622,c(_22620,_22742),happens(g(_22620,_22742),_24040,_24812),happens(g(_22742,_22622),_24812,_24046)]).
  676
  677% LPS:  if(g(_24826,_24826),s(_24826)).
  678% Into: l_events(happens(g(_24826,_24826),_25896,_25902),[happens(s(_24826),_25896,_25902)]).
  679
  680% LPS:  if(from(gx(_25914),to(_25950,_25952)),(c(_26064,_25914),from(gx(_26064),to(_25950,_25952)),s(_25914))).
  681% Into: l_events(happens(gx(_25914),_25950,_25952),[c(_26064,_25914),happens(gx(_26064),_25950,_25952),happens(s(_25914),_27822,_27508)]).
  682
  683% LPS:  if(from(gx(_27752),to(_27788,_27790)),from(s(_27752),to(_27788,_27790))).
  684% Into: l_events(happens(gx(_27752),_27788,_27790),[happens(s(_27752),_27788,_27790)]).
  685
  686% LPS:  then(if(from(o,to(_34480,_34482))),from(gx(5),to(_34482,_34642))).
  687% Into: reactive_rule([happens(o,_34480,_34482)],[happens(gx(5),_34482,_34642)]).
  688% /pack/logicmoo_ec/test/lps_user_examples/search.pl:28
  689% pop_lps_dialect('$BLOB'("<stream>(0x562ef33a8000)"),  (/.../(lps_user_examples, 'search.pl')-> /.../(lps_user_examples, 'search.pl'))).
  690% ops.
  691% :-listing('/pack/logicmoo_ec/test/lps_user_examples/search.pl':_43462).
  692
  693
  694reactive_rule([happens(o, _, A)], [happens(gx(5), A, _)]).
  695
  696l_events(happens(g(A, B), C, D), [A\==B, c(A, E), happens(g(A, E), C, F), happens(g(E, B), F, D)]).
  697l_events(happens(g(A, A), B, C), [happens(s(A), B, C)]).
  698l_events(happens(gx(A), B, C), [c(D, A), happens(gx(D), B, C), happens(s(A), _, _)]).
  699l_events(happens(gx(A), B, C), [happens(s(A), B, C)]).
  700
  701:- dynamic actions/1.  702:- multifile actions/1.  703
  704actions([s(_)]).
  705
  706events([g(_, _), gx(_), o]).
  707
  708observe([o], 2).
  709
  710maxTime(10).
  711
  712c(1, 2).
  713c(2, 3).
  714c(3, 4).
  715c(4, 5).
  716% dB(/.../(lps_user_examples, 'search.pl'), lps_visualization(_70572{groups:[_69726{content:"Events", id:"event", order:1}, _69788{content:"Actions", id:"action", order:4}], items:[_69910{content:"o", group:"event", id:0, start:2, style:"color:#E19735", title:"happens(o,1,2)", type:"point"}, _70036{content:"s(1)", group:"action", id:1, start:3, style:"color:green", title:"happens(s(1),2,3)", type:"point"}, _70162{content:"s(2)", group:"action", id:2, start:3, style:"color:green", title:"happens(s(2),2,3)", type:"point"}, _70288{content:"s(3)", group:"action", id:3, start:3, style:"color:green", title:"happens(s(3),2,3)", type:"point"}, _70414{content:"s(4)", group:"action", id:4, start:3, style:"color:green", title:"happens(s(4),2,3)", type:"point"}, _70540{content:"s(5)", group:"action", id:5, start:3, style:"color:green", title:"happens(s(5),2,3)", type:"point"}]}, [])).
  717% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'sel-driving cars.pl')).
  718% run_lps_corner_file1(/.../(lps_user_examples, 'sel-driving cars.pl')).
  719% /pack/logicmoo_ec/test/lps_user_examples/sel-driving cars.pl:1
  720% push_lps_dialect.
  721% ops.
  722% [ti=user, load= /.../(lps_user_examples, 'sel-driving cars.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'sel-driving cars.pl'), lps= /.../(lps_user_examples, 'sel-driving cars.pl'), using= /.../(lps_user_examples, 'sel-driving cars.pl')].
  723% continue_lps_dialect.
  724% ops.
  725
  726% LPS:  fluents(location(_19264,_19266,_19268)).
  727% Into: fluents([location(_19264,_19266,_19268)]).
  728
  729% LPS:  events(destination(_20348,_20350)).
  730% Into: events([destination(_20348,_20350)]).
  731
  732% LPS:  actions((step(_21402),turn(_21402,_21458))).
  733% Into: actions([step(_21402),turn(_21402,_21458)]).
  734
  735% LPS:  if(updates(step(_22544),in(to(_22580,_22582),location(_22544,_22580,_22680))),next(_22580,_22680,_22582)).
  736% Into: updated(happens(step(_22544),_24064,_24070),location(_22544,_22580,_22680),_22580-_22582,[next(_22580,_22680,_22582)]).
  737
  738% LPS:  updates(turn(_32264,_32266),in(to(_32302,_32266),location(_32264,_32400,_32302))).
  739% Into: updated(happens(turn(_32264,_32266),_33654,_33660),location(_32264,_32400,_32302),_32302-_32266,[]).
  740
  741% LPS:  initially((location(mycar,2-1,northward),location(yourcar,9-9,westward))).
  742% Into: initial_state([location(mycar,2-1,northward),location(yourcar,9-9,westward)]).
  743
  744% LPS:  observe(from(destination(mycar,9-9),to(2,3))).
  745% Into: observe([destination(mycar,9-9)],3).
  746
  747% LPS:  observe(from(destination(yourcar,2-1),to(3,4))).
  748% Into: observe([destination(yourcar,2-1)],4).
  749
  750% LPS:  then(if((to(destination(_50646,_50648),_50670),at(location(_50646,_50766,_50768),_50670),directions(_50766,_50886,_50648))),from(drive(_50646,_50886,_50648),to(_50670,_51086))).
  751% Into: reactive_rule([happens(destination(_50646,_50648),_52318,_50670),holds(location(_50646,_50766,_50768),_50670),directions(_50766,_50886,_50648)],[happens(drive(_50646,_50886,_50648),_50670,_51086)]).
  752
  753% LPS:  if(from(drive(_53782,_53784,_53786),to(_53822,_53822)),at(location(_53782,_53786,_53954),_53822)).
  754% Into: l_events(happens(drive(_53782,_53784,_53786),_53822,_53822),[holds(location(_53782,_53786,_53954),_53822)]).
  755
  756% LPS:  if(from(drive(_55514,[_55454-_55456|_55488],_55518),to(_55554,_55556)),(location(_55514,_55684,_55454),on(_55684,_55456),next(_55684,_55454,_55814),on(_55814,_55456),from(step(_55514),to(_55554,_55948)),from(drive(_55514,[_55454-_55456|_55488],_55518),to(_55948,_55556)))).
  757% Into: l_events(happens(drive(_55514,[_55454-_55456|_55488],_55518),_55554,_55556),[holds(location(_55514,_55684,_55454),_57772),on(_55684,_55456),next(_55684,_55454,_55814),on(_55814,_55456),happens(step(_55514),_55554,_55948),happens(drive(_55514,[_55454-_55456|_55488],_55518),_55948,_55556)]).
  758
  759% LPS:  if(from(drive(_58674,[_58546-_58548,_58614-_58616|_58648],_58678),to(_58714,_58716)),(location(_58674,_58844,_58546),on(_58844,_58548),on(_58844,_58616),from(turn(_58674,_58614),to(_58714,_59052)),from(drive(_58674,[_58614-_58616|_58648],_58678),to(_59052,_58716)))).
  760% Into: l_events(happens(drive(_58674,[_58546-_58548,_58614-_58616|_58648],_58678),_58714,_58716),[holds(location(_58674,_58844,_58546),_60856),on(_58844,_58548),on(_58844,_58616),happens(turn(_58674,_58614),_58714,_59052),happens(drive(_58674,[_58614-_58616|_58648],_58678),_59052,_58716)]).
  761% /pack/logicmoo_ec/test/lps_user_examples/sel-driving cars.pl:77
  762% pop_lps_dialect('$BLOB'("<stream>(0x562ef33a6d00)"),  (/.../(lps_user_examples, 'sel-driving cars.pl')-> /.../(lps_user_examples, 'sel-driving cars.pl'))).
  763% ops.
  764% :-listing('/pack/logicmoo_ec/test/lps_user_examples/sel-driving cars.pl':_30514).
  765
  766
  767d(location(mycar, X-Y, Heading), [type:circle, center:[XX, YY], radius:5, fillColor:blue]) :-
  768    XX is X*10,
  769    YY is Y*10.
  770d(location(yourcar, X-Y, Heading), [type:circle, center:[XX, YY], radius:5, fillColor:red]) :-
  771    XX is X*10,
  772    YY is Y*10.
  773d(timeless, [type:rectangle, fillColor:yellow, from:[A, B], to:[_, _]]) :-
  774    1=<C,
  775    C=<10,
  776    1=<D,
  777    D=<10,
  778    not(on(C-D, _)),
  779    A is C*10,
  780    B is D*10,
  781    _ is A+10,
  782    _ is B+10.
  783
  784d(timeless, [type:rectangle, fillColor:yellow, from:[20, 20], to:[30, 30]], sendToBack).
  785
  786fluents([location(_, _, _)]).
  787
  788next(X-Y1, northward, X-Y2) :-
  789    Y2 is Y1+1.
  790next(X-Y1, southward, X-Y2) :-
  791    Y2 is Y1-1.
  792next(X1-Y, eastward, X2-Y) :-
  793    X2 is X1+1.
  794next(X1-Y, westward, X2-Y) :-
  795    X2 is X1-1.
  796
  797directions(2-1, [northward-westStreet, eastward-northStreet], 9-9).
  798directions(9-9, [westward-northStreet, southward-westStreet], 2-1).
  799
  800reactive_rule([happens(destination(A, B), _, C), holds(location(A, D, _), C), directions(D, E, B)], [happens(drive(A, E, B), C, _)]).
  801
  802initial_state([location(mycar, 2-1, northward), location(yourcar, 9-9, westward)]).
  803
  804l_events(happens(drive(A, _, B), C, C), [holds(location(A, B, _), C)]).
  805l_events(happens(drive(A, [B-C|D], E), F, G), [holds(location(A, H, B), _), on(H, C), next(H, B, I), on(I, C), happens(step(A), F, J), happens(drive(A, [B-C|D], E), J, G)]).
  806l_events(happens(drive(A, [B-C, D-E|F], G), H, I), [holds(location(A, J, B), _), on(J, C), on(J, E), happens(turn(A, D), H, K), happens(drive(A, [D-E|F], G), K, I)]).
  807
  808:- dynamic actions/1.  809:- multifile actions/1.  810
  811actions([step(A), turn(A, _)]).
  812
  813on(X-5, mainStreet) :-
  814    3=<X,
  815    X=<8.
  816on(X-9, northStreet) :-
  817    2=<X,
  818    X=<9.
  819on(6-Y, highStreet) :-
  820    1=<Y,
  821    Y=<9.
  822on(2-Y, westStreet) :-
  823    1=<Y,
  824    Y=<9.
  825on(7-Y, eastStreet) :-
  826    1=<Y,
  827    Y=<9.
  828
  829events([destination(_, _)]).
  830
  831updated(happens(step(A), _, _), location(A, B, C), B-D, [next(B, C, D)]).
  832updated(happens(turn(A, B), _, _), location(A, _, C), C-B, []).
  833
  834maxTime(20).
  835
  836observe([destination(mycar, 9-9)], 3).
  837observe([destination(yourcar, 2-1)], 4).
  838% get2react([notc,"NickServ","NickServ@services.","*","You are already logged in as \002\PrologMUD\002\.","PrologMUD"]).
  839% irc_receive("NickServ","NickServ@services.","*","PrologMUD",ctcp("NOTICE","You are already logged in as \002\PrologMUD\002\.")).
  840% unused(ircEventNow("PrologMUD","nickserv",ctcp("NOTICE","You are already logged in as \002\PrologMUD\002\."))).
  841% dB(/.../(lps_user_examples, 'sel-driving cars.pl'), lps_visualization(_189458{groups:[_180722{content:"Events", id:"event", order:1}, _180796{content:"location(A,B,C)", id:"location/3", order:3, subgroupStack:"false"}, _180862{content:"Actions", id:"action", order:4}], items:[_180984{content:"mycar,2-1,northward", end:4, group:"location/3", id:0, start:1, subgroup:"mycar", title:"Fluent location(mycar,2-1,northward) initiated at 1<br/>and terminated at transition to 4"}, _181110{content:"mycar,2-2,northward", end:5, group:"location/3", id:1, start:4, subgroup:"mycar", title:"Fluent location(mycar,2-2,northward) initiated at 4<br/>and terminated at transition to 5"}, _181236{content:"mycar,2-3,northward", end:6, group:"location/3", id:2, start:5, subgroup:"mycar", title:"Fluent location(mycar,2-3,northward) initiated at 5<br/>and terminated at transition to 6"}, _181362{content:"mycar,2-4,northward", end:7, group:"location/3", id:3, start:6, subgroup:"mycar", title:"Fluent location(mycar,2-4,northward) initiated at 6<br/>and terminated at transition to 7"}, _181488{content:"mycar,2-5,northward", end:8, group:"location/3", id:4, start:7, subgroup:"mycar", title:"Fluent location(mycar,2-5,northward) initiated at 7<br/>and terminated at transition to 8"}, _181614{content:"mycar,2-6,northward", end:9, group:"location/3", id:5, start:8, subgroup:"mycar", title:"Fluent location(mycar,2-6,northward) initiated at 8<br/>and terminated at transition to 9"}, _181740{content:"mycar,2-7,northward", end:10, group:"location/3", id:6, start:9, subgroup:"mycar", title:"Fluent location(mycar,2-7,northward) initiated at 9<br/>and terminated at transition to 10"}, _181866{content:"mycar,2-8,northward", end:11, group:"location/3", id:7, start:10, subgroup:"mycar", title:"Fluent location(mycar,2-8,northward) initiated at 10<br/>and terminated at transition to 11"}, _181992{content:"mycar,2-9,eastward", end:13, group:"location/3", id:8, start:12, subgroup:"mycar", title:"Fluent location(mycar,2-9,eastward) initiated at 12<br/>and terminated at transition to 13"}, _182118{content:"mycar,2-9,northward", end:12, group:"location/3", id:9, start:11, subgroup:"mycar", title:"Fluent location(mycar,2-9,northward) initiated at 11<br/>and terminated at transition to 12"}, _182244{content:"mycar,3-9,eastward", end:14, group:"location/3", id:10, start:13, subgroup:"mycar", title:"Fluent location(mycar,3-9,eastward) initiated at 13<br/>and terminated at transition to 14"}, _182370{content:"mycar,4-9,eastward", end:15, group:"location/3", id:11, start:14, subgroup:"mycar", title:"Fluent location(mycar,4-9,eastward) initiated at 14<br/>and terminated at transition to 15"}, _182496{content:"mycar,5-9,eastward", end:16, group:"location/3", id:12, start:15, subgroup:"mycar", title:"Fluent location(mycar,5-9,eastward) initiated at 15<br/>and terminated at transition to 16"}, _182622{content:"mycar,6-9,eastward", end:17, group:"location/3", id:13, start:16, subgroup:"mycar", title:"Fluent location(mycar,6-9,eastward) initiated at 16<br/>and terminated at transition to 17"}, _182748{content:"mycar,7-9,eastward", end:18, group:"location/3", id:14, start:17, subgroup:"mycar", title:"Fluent location(mycar,7-9,eastward) initiated at 17<br/>and terminated at transition to 18"}, _182874{content:"mycar,8-9,eastward", end:19, group:"location/3", id:15, start:18, subgroup:"mycar", title:"Fluent location(mycar,8-9,eastward) initiated at 18<br/>and terminated at transition to 19"}, _183000{content:"mycar,9-9,eastward", end:21, group:"location/3", id:16, start:19, subgroup:"mycar", title:"Fluent location(mycar,9-9,eastward) initiated at 19<br/>and terminated at transition to 21"}, _183126{content:"yourcar,2-1,southward", end:21, group:"location/3", id:17, start:20, subgroup:"yourcar", title:"Fluent location(yourcar,2-1,southward) initiated at 20<br/>and terminated at transition to 21"}, _183252{content:"yourcar,2-2,southward", end:20, group:"location/3", id:18, start:19, subgroup:"yourcar", title:"Fluent location(yourcar,2-2,southward) initiated at 19<br/>and terminated at transition to 20"}, _183378{content:"yourcar,2-3,southward", end:19, group:"location/3", id:19, start:18, subgroup:"yourcar", title:"Fluent location(yourcar,2-3,southward) initiated at 18<br/>and terminated at transition to 19"}, _183504{content:"yourcar,2-4,southward", end:18, group:"location/3", id:20, start:17, subgroup:"yourcar", title:"Fluent location(yourcar,2-4,southward) initiated at 17<br/>and terminated at transition to 18"}, _183630{content:"yourcar,2-5,southward", end:17, group:"location/3", id:21, start:16, subgroup:"yourcar", title:"Fluent location(yourcar,2-5,southward) initiated at 16<br/>and terminated at transition to 17"}, _183756{content:"yourcar,2-6,southward", end:16, group:"location/3", id:22, start:15, subgroup:"yourcar", title:"Fluent location(yourcar,2-6,southward) initiated at 15<br/>and terminated at transition to 16"}, _183882{content:"yourcar,2-7,southward", end:15, group:"location/3", id:23, start:14, subgroup:"yourcar", title:"Fluent location(yourcar,2-7,southward) initiated at 14<br/>and terminated at transition to 15"}, _184008{content:"yourcar,2-8,southward", end:14, group:"location/3", id:24, start:13, subgroup:"yourcar", title:"Fluent location(yourcar,2-8,southward) initiated at 13<br/>and terminated at transition to 14"}, _184134{content:"yourcar,2-9,southward", end:13, group:"location/3", id:25, start:12, subgroup:"yourcar", title:"Fluent location(yourcar,2-9,southward) initiated at 12<br/>and terminated at transition to 13"}, _184260{content:"yourcar,2-9,westward", end:12, group:"location/3", id:26, start:11, subgroup:"yourcar", title:"Fluent location(yourcar,2-9,westward) initiated at 11<br/>and terminated at transition to 12"}, _184386{content:"yourcar,3-9,westward", end:11, group:"location/3", id:27, start:10, subgroup:"yourcar", title:"Fluent location(yourcar,3-9,westward) initiated at 10<br/>and terminated at transition to 11"}, _184512{content:"yourcar,4-9,westward", end:10, group:"location/3", id:28, start:9, subgroup:"yourcar", title:"Fluent location(yourcar,4-9,westward) initiated at 9<br/>and terminated at transition to 10"}, _184638{content:"yourcar,5-9,westward", end:9, group:"location/3", id:29, start:8, subgroup:"yourcar", title:"Fluent location(yourcar,5-9,westward) initiated at 8<br/>and terminated at transition to 9"}, _184764{content:"yourcar,6-9,westward", end:8, group:"location/3", id:30, start:7, subgroup:"yourcar", title:"Fluent location(yourcar,6-9,westward) initiated at 7<br/>and terminated at transition to 8"}, _184890{content:"yourcar,7-9,westward", end:7, group:"location/3", id:31, start:6, subgroup:"yourcar", title:"Fluent location(yourcar,7-9,westward) initiated at 6<br/>and terminated at transition to 7"}, _185016{content:"yourcar,8-9,westward", end:6, group:"location/3", id:32, start:5, subgroup:"yourcar", title:"Fluent location(yourcar,8-9,westward) initiated at 5<br/>and terminated at transition to 6"}, _185142{content:"yourcar,9-9,westward", end:5, group:"location/3", id:33, start:1, subgroup:"yourcar", title:"Fluent location(yourcar,9-9,westward) initiated at 1<br/>and terminated at transition to 5"}, _185268{content:"destination(mycar,9-9)", group:"event", id:34, start:3, style:"color:#E19735", title:"happens(destination(mycar,9-9),2,3)", type:"point"}, _185394{content:"destination(yourcar,2-1)", group:"event", id:35, start:4, style:"color:#E19735", title:"happens(destination(yourcar,2-1),3,4)", type:"point"}, _185520{content:"step(mycar)", group:"action", id:36, start:4, style:"color:green", title:"happens(step(mycar),3,4)", type:"point"}, _185646{content:"step(mycar)", group:"action", id:37, start:5, style:"color:green", title:"happens(step(mycar),4,5)", type:"point"}, _185772{content:"step(yourcar)", group:"action", id:38, start:5, style:"color:green", title:"happens(step(yourcar),4,5)", type:"point"}, _185898{content:"step(yourcar)", group:"action", id:39, start:6, style:"color:green", title:"happens(step(yourcar),5,6)", type:"point"}, _186024{content:"step(mycar)", group:"action", id:40, start:6, style:"color:green", title:"happens(step(mycar),5,6)", type:"point"}, _186150{content:"step(mycar)", group:"action", id:41, start:7, style:"color:green", title:"happens(step(mycar),6,7)", type:"point"}, _186276{content:"step(yourcar)", group:"action", id:42, start:7, style:"color:green", title:"happens(step(yourcar),6,7)", type:"point"}, _186402{content:"step(yourcar)", group:"action", id:43, start:8, style:"color:green", title:"happens(step(yourcar),7,8)", type:"point"}, _186528{content:"step(mycar)", group:"action", id:44, start:8, style:"color:green", title:"happens(step(mycar),7,8)", type:"point"}, _186654{content:"step(mycar)", group:"action", id:45, start:9, style:"color:green", title:"happens(step(mycar),8,9)", type:"point"}, _186780{content:"step(yourcar)", group:"action", id:46, start:9, style:"color:green", title:"happens(step(yourcar),8,9)", type:"point"}, _186906{content:"step(yourcar)", group:"action", id:47, start:10, style:"color:green", title:"happens(step(yourcar),9,10)", type:"point"}, _187032{content:"step(mycar)", group:"action", id:48, start:10, style:"color:green", title:"happens(step(mycar),9,10)", type:"point"}, _187158{content:"step(mycar)", group:"action", id:49, start:11, style:"color:green", title:"happens(step(mycar),10,11)", type:"point"}, _187284{content:"step(yourcar)", group:"action", id:50, start:11, style:"color:green", title:"happens(step(yourcar),10,11)", type:"point"}, _187410{content:"turn(yourcar,southward)", group:"action", id:51, start:12, style:"color:green", title:"happens(turn(yourcar,southward),11,12)", type:"point"}, _187536{content:"turn(mycar,eastward)", group:"action", id:52, start:12, style:"color:green", title:"happens(turn(mycar,eastward),11,12)", type:"point"}, _187662{content:"step(mycar)", group:"action", id:53, start:13, style:"color:green", title:"happens(step(mycar),12,13)", type:"point"}, _187788{content:"step(yourcar)", group:"action", id:54, start:13, style:"color:green", title:"happens(step(yourcar),12,13)", type:"point"}, _187914{content:"step(yourcar)", group:"action", id:55, start:14, style:"color:green", title:"happens(step(yourcar),13,14)", type:"point"}, _188040{content:"step(mycar)", group:"action", id:56, start:14, style:"color:green", title:"happens(step(mycar),13,14)", type:"point"}, _188166{content:"step(mycar)", group:"action", id:57, start:15, style:"color:green", title:"happens(step(mycar),14,15)", type:"point"}, _188292{content:"step(yourcar)", group:"action", id:58, start:15, style:"color:green", title:"happens(step(yourcar),14,15)", type:"point"}, _188418{content:"step(yourcar)", group:"action", id:59, start:16, style:"color:green", title:"happens(step(yourcar),15,16)", type:"point"}, _188544{content:"step(mycar)", group:"action", id:60, start:16, style:"color:green", title:"happens(step(mycar),15,16)", type:"point"}, _188670{content:"step(mycar)", group:"action", id:61, start:17, style:"color:green", title:"happens(step(mycar),16,17)", type:"point"}, _188796{content:"step(yourcar)", group:"action", id:62, start:17, style:"color:green", title:"happens(step(yourcar),16,17)", type:"point"}, _188922{content:"step(yourcar)", group:"action", id:63, start:18, style:"color:green", title:"happens(step(yourcar),17,18)", type:"point"}, _189048{content:"step(mycar)", group:"action", id:64, start:18, style:"color:green", title:"happens(step(mycar),17,18)", type:"point"}, _189174{content:"step(mycar)", group:"action", id:65, start:19, style:"color:green", title:"happens(step(mycar),18,19)", type:"point"}, _189300{content:"step(yourcar)", group:"action", id:66, start:19, style:"color:green", title:"happens(step(yourcar),18,19)", type:"point"}, _189426{content:"step(yourcar)", group:"action", id:67, start:20, style:"color:green", title:"happens(step(yourcar),19,20)", type:"point"}]}, _247852{cycles:[[_242414{create:_242390{center:[20, 10], fillColor:"blue", id:"location(mycar,2-1,northward)", radius:5, type:"circle"}}, _242544{create:_242520{center:[90, 90], fillColor:"red", id:"location(yourcar,9-9,westward)", radius:5, type:"circle"}}], [], [], [_242692{create:_242668{center:[20, 20], fillColor:"blue", id:"location(mycar,2-2,northward)", radius:5, type:"circle"}}, _242722{kill:"location(mycar,2-1,northward)"}], [_242858{create:_242834{center:[20, 30], fillColor:"blue", id:"location(mycar,2-3,northward)", radius:5, type:"circle"}}, _242988{create:_242964{center:[80, 90], fillColor:"red", id:"location(yourcar,8-9,westward)", radius:5, type:"circle"}}, _243018{kill:"location(mycar,2-2,northward)"}, _243048{kill:"location(yourcar,9-9,westward)"}], [_243184{create:_243160{center:[20, 40], fillColor:"blue", id:"location(mycar,2-4,northward)", radius:5, type:"circle"}}, _243314{create:_243290{center:[70, 90], fillColor:"red", id:"location(yourcar,7-9,westward)", radius:5, type:"circle"}}, _243344{kill:"location(mycar,2-3,northward)"}, _243374{kill:"location(yourcar,8-9,westward)"}], [_243510{create:_243486{center:[20, 50], fillColor:"blue", id:"location(mycar,2-5,northward)", radius:5, type:"circle"}}, _243640{create:_243616{center:[60, 90], fillColor:"red", id:"location(yourcar,6-9,westward)", radius:5, type:"circle"}}, _243670{kill:"location(mycar,2-4,northward)"}, _243700{kill:"location(yourcar,7-9,westward)"}], [_243836{create:_243812{center:[20, 60], fillColor:"blue", id:"location(mycar,2-6,northward)", radius:5, type:"circle"}}, _243966{create:_243942{center:[50, 90], fillColor:"red", id:"location(yourcar,5-9,westward)", radius:5, type:"circle"}}, _243996{kill:"location(mycar,2-5,northward)"}, _244026{kill:"location(yourcar,6-9,westward)"}], [_244162{create:_244138{center:[20, 70], fillColor:"blue", id:"location(mycar,2-7,northward)", radius:5, type:"circle"}}, _244292{create:_244268{center:[40, 90], fillColor:"red", id:"location(yourcar,4-9,westward)", radius:5, type:"circle"}}, _244322{kill:"location(mycar,2-6,northward)"}, _244352{kill:"location(yourcar,5-9,westward)"}], [_244488{create:_244464{center:[20, 80], fillColor:"blue", id:"location(mycar,2-8,northward)", radius:5, type:"circle"}}, _244618{create:_244594{center:[30, 90], fillColor:"red", id:"location(yourcar,3-9,westward)", radius:5, type:"circle"}}, _244648{kill:"location(mycar,2-7,northward)"}, _244678{kill:"location(yourcar,4-9,westward)"}], [_244814{create:_244790{center:[20, 90], fillColor:"blue", id:"location(mycar,2-9,northward)", radius:5, type:"circle"}}, _244944{create:_244920{center:[20, 90], fillColor:"red", id:"location(yourcar,2-9,westward)", radius:5, type:"circle"}}, _244974{kill:"location(mycar,2-8,northward)"}, _245004{kill:"location(yourcar,3-9,westward)"}], [_245140{create:_245116{center:[20, 90], fillColor:"blue", id:"location(mycar,2-9,eastward)", radius:5, type:"circle"}}, _245270{create:_245246{center:[20, 90], fillColor:"red", id:"location(yourcar,2-9,southward)", radius:5, type:"circle"}}, _245300{kill:"location(mycar,2-9,northward)"}, _245330{kill:"location(yourcar,2-9,westward)"}], [_245466{create:_245442{center:[30, 90], fillColor:"blue", id:"location(mycar,3-9,eastward)", radius:5, type:"circle"}}, _245596{create:_245572{center:[20, 80], fillColor:"red", id:"location(yourcar,2-8,southward)", radius:5, type:"circle"}}, _245626{kill:"location(mycar,2-9,eastward)"}, _245656{kill:"location(yourcar,2-9,southward)"}], [_245792{create:_245768{center:[40, 90], fillColor:"blue", id:"location(mycar,4-9,eastward)", radius:5, type:"circle"}}, _245922{create:_245898{center:[20, 70], fillColor:"red", id:"location(yourcar,2-7,southward)", radius:5, type:"circle"}}, _245952{kill:"location(mycar,3-9,eastward)"}, _245982{kill:"location(yourcar,2-8,southward)"}], [_246118{create:_246094{center:[50, 90], fillColor:"blue", id:"location(mycar,5-9,eastward)", radius:5, type:"circle"}}, _246248{create:_246224{center:[20, 60], fillColor:"red", id:"location(yourcar,2-6,southward)", radius:5, type:"circle"}}, _246278{kill:"location(mycar,4-9,eastward)"}, _246308{kill:"location(yourcar,2-7,southward)"}], [_246444{create:_246420{center:[60, 90], fillColor:"blue", id:"location(mycar,6-9,eastward)", radius:5, type:"circle"}}, _246574{create:_246550{center:[20, 50], fillColor:"red", id:"location(yourcar,2-5,southward)", radius:5, type:"circle"}}, _246604{kill:"location(mycar,5-9,eastward)"}, _246634{kill:"location(yourcar,2-6,southward)"}], [_246770{create:_246746{center:[70, 90], fillColor:"blue", id:"location(mycar,7-9,eastward)", radius:5, type:"circle"}}, _246900{create:_246876{center:[20, 40], fillColor:"red", id:"location(yourcar,2-4,southward)", radius:5, type:"circle"}}, _246930{kill:"location(mycar,6-9,eastward)"}, _246960{kill:"location(yourcar,2-5,southward)"}], [_247096{create:_247072{center:[80, 90], fillColor:"blue", id:"location(mycar,8-9,eastward)", radius:5, type:"circle"}}, _247226{create:_247202{center:[20, 30], fillColor:"red", id:"location(yourcar,2-3,southward)", radius:5, type:"circle"}}, _247256{kill:"location(mycar,7-9,eastward)"}, _247286{kill:"location(yourcar,2-4,southward)"}], [_247422{create:_247398{center:[90, 90], fillColor:"blue", id:"location(mycar,9-9,eastward)", radius:5, type:"circle"}}, _247552{create:_247528{center:[20, 20], fillColor:"red", id:"location(yourcar,2-2,southward)", radius:5, type:"circle"}}, _247582{kill:"location(mycar,8-9,eastward)"}, _247612{kill:"location(yourcar,2-3,southward)"}], [_247748{create:_247724{center:[20, 10], fillColor:"red", id:"location(yourcar,2-1,southward)", radius:5, type:"circle"}}, _247778{kill:"location(yourcar,2-2,southward)"}], [_247814{kill:"location(mycar,9-9,eastward)"}, _247844{kill:"location(yourcar,2-1,southward)"}]]})).
  842% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'self-drivers.pl')).
  843% run_lps_corner_file1(/.../(lps_user_examples, 'self-drivers.pl')).
  844% /pack/logicmoo_ec/test/lps_user_examples/self-drivers.pl:1
  845% push_lps_dialect.
  846% ops.
  847% [ti=user, load= /.../(lps_user_examples, 'self-drivers.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'self-drivers.pl'), lps= /.../(lps_user_examples, 'self-drivers.pl'), using= /.../(lps_user_examples, 'self-drivers.pl')].
  848% continue_lps_dialect.
  849% ops.
  850
  851% LPS:  fluents((location(_81626,_81628,_81630),collisionWarning(_81698,_81700,_81628),rightOfWay(_81698,_81700,_81628),collisionPossible(_81698,_81700))).
  852% Into: fluents([location(_81626,_81628,_81630),collisionWarning(_81698,_81700,_81628),rightOfWay(_81698,_81700,_81628),collisionPossible(_81698,_81700)]).
  853
  854% LPS:  events((destination(_83070,_83072),remove(_83070))).
  855% Into: events([destination(_83070,_83072),remove(_83070)]).
  856
  857% LPS:  actions((step(_84234,_84236,_84238),turn(_84234,_84294))).
  858% Into: actions([step(_84234,_84236,_84238),turn(_84234,_84294)]).
  859
  860% LPS:  initially((location(mycar,2-1,northward),location(yourcar,6-1,northward),location(othercar,10-5,westward),location(troubleMaker,6-2,northward),location(brokencar,2-7,noward))).
  861% Into: initial_state([location(mycar,2-1,northward),location(yourcar,6-1,northward),location(othercar,10-5,westward),location(troubleMaker,6-2,northward),location(brokencar,2-7,noward)]).
  862
  863% LPS:  observe(from(destination(mycar,9-9),to(2,3))).
  864% Into: observe([destination(mycar,9-9)],3).
  865
  866% LPS:  observe(from(destination(troubleMaker,9-9),to(2,3))).
  867% Into: observe([destination(troubleMaker,9-9)],3).
  868
  869% LPS:  observe(from(destination(yourcar,9-9),to(2,3))).
  870% Into: observe([destination(yourcar,9-9)],3).
  871
  872% LPS:  observe(from(destination(othercar,6-1),to(1,2))).
  873% Into: observe([destination(othercar,6-1)],2).
  874
  875% LPS:  observe(from(remove(brokencar),to(15,16))).
  876% Into: observe([remove(brokencar)],16).
  877
  878% LPS:  terminates(remove(_93240),location(_93240,_93310,_93312)).
  879% Into: terminated(happens(remove(_93240),_94428,_94434),location(_93240,_93310,_93312),[]).
  880
  881% LPS:  then(if((to(destination(_94446,_94448),_94470),at(location(_94446,_94566,_94568),_94470))),(directions(_94566,_94742,_94448),from(drive(_94446,_94742,_94448),_94470))).
  882% Into: reactive_rule([happens(destination(_94446,_94448),_96052,_94470),holds(location(_94446,_94566,_94568),_94470)],[directions(_94566,_94742,_94448),happens(drive(_94446,_94742,_94448),_94470,_96624)]).
  883
  884% LPS:  if(from(drive(_19082,[_19034-_19036],_19086),to(_19102,_19104)),(at(location(_19082,_19212,_19034),_19102),_19212\=_19086,next(_19212,_19034,_19348),on(_19348,_19036),from(step(_19082,_19212,_19348),to(_19462,_19464)),from(drive(_19082,[_19034-_19036],_19086),to(_19464,_19104)))).
  885% Into: l_events(happens(drive(_19082,[_19034-_19036],_19086),_19102,_19104),[holds(location(_19082,_19212,_19034),_19102),_19212\=_19086,next(_19212,_19034,_19348),on(_19348,_19036),happens(step(_19082,_19212,_19348),_19462,_19464),happens(drive(_19082,[_19034-_19036],_19086),_19464,_19104)]).
  886
  887% LPS:  if(from(drive(_21974,[_21846-_21848,_21914-_21916|_21948],_21978),to(_22014,_22016)),(location(_21974,_22144,_21846),next(_22144,_21846,_22218),not(on(_22218,_21916)),from(step(_21974,_22144,_22218),to(_22414,_22416)),from(drive(_21974,[_21846-_21848,_21914-_21916|_21948],_21978),to(_22416,_22016)))).
  888% Into: l_events(happens(drive(_21974,[_21846-_21848,_21914-_21916|_21948],_21978),_22014,_22016),[holds(location(_21974,_22144,_21846),_24332),next(_22144,_21846,_22218),not(on(_22218,_21916)),happens(step(_21974,_22144,_22218),_22414,_22416),happens(drive(_21974,[_21846-_21848,_21914-_21916|_21948],_21978),_22416,_22016)]).
  889
  890% LPS:  if(from(drive(_25372,[_25244-_25246,_25312-_25314|_25346],_25376),to(_25412,_25414)),(location(_25372,_25542,_25244),next(_25542,_25244,_25616),on(_25616,_25314),from(step(_25372,_25542,_25616),to(_25780,_25782)),from(turn(_25372,_25312),to(_25780,_25782)),from(drive(_25372,[_25312-_25314|_25346],_25376),to(_25782,_25414)))).
  891% Into: l_events(happens(drive(_25372,[_25244-_25246,_25312-_25314|_25346],_25376),_25412,_25414),[holds(location(_25372,_25542,_25244),_27822),next(_25542,_25244,_25616),on(_25616,_25314),happens(step(_25372,_25542,_25616),_25780,_25782),happens(turn(_25372,_25312),_25780,_25782),happens(drive(_25372,[_25312-_25314|_25346],_25376),_25782,_25414)]).
  892
  893% LPS:  updates(step(_28408,_28410,_28412),in(to(_28410,_28412),location(_28408,_28410,_28548))).
  894% Into: updated(happens(step(_28408,_28410,_28412),_29796,_29802),location(_28408,_28410,_28548),_28410-_28412,[]).
  895
  896% LPS:  updates(turn(_29694,_29696),in(to(_29732,_29696),location(_29694,_29830,_29732))).
  897% Into: updated(happens(turn(_29694,_29696),_31076,_31082),location(_29694,_29830,_29732),_29732-_29696,[]).
  898
  899% LPS:  false((step(_37744,_37746,_37748),collisionPossible(_37744,_37804))).
  900% Into: d_pre([happens(step(_37744,_37746,_37748),_38898,_38904),holds(collisionPossible(_37744,_37804),_38898)]).
  901
  902% LPS:  if(at(collisionPossible(_38932,_38934),_38956),(at(location(_38932,_39052,_39054),_38956),next(_39052,_39054,_39174),at(location(_38934,_39174,_39246),_38956),not(opposite(_39054,_39246)))).
  903% Into: l_int(holds(collisionPossible(_38932,_38934),_38956),[holds(location(_38932,_39052,_39054),_38956),next(_39052,_39054,_39174),holds(location(_38934,_39174,_39246),_38956),not(opposite(_39054,_39246))]).
  904
  905% LPS:  false((step(_45810,_45812,_45814),collisionWarning(_45810,_45884,_45814),not(rightOfWay(_45810,_45884,_45814)))).
  906% Into: d_pre([happens(step(_45810,_45812,_45814),_47136,_47142),holds(collisionWarning(_45810,_45884,_45814),_47136),holds(not(rightOfWay(_45810,_45884,_45814)),_47136)]).
  907
  908% LPS:  if(at(collisionWarning(_47184,_47186,_47188),_47210),(at(location(_47184,_47306,_47308),_47210),at(location(_47186,_47426,_47428),_47210),next(_47306,_47308,_47188),next(_47426,_47428,_47188),clash(_47308,_47428))).
  909% Into: l_int(holds(collisionWarning(_47184,_47186,_47188),_47210),[holds(location(_47184,_47306,_47308),_47210),holds(location(_47186,_47426,_47428),_47210),next(_47306,_47308,_47188),next(_47426,_47428,_47188),clash(_47308,_47428)]).
  910
  911% LPS:  if(rightOfWay(_53868,_53870,_53872),(priorityTjunction(_53872,_53928),location(_53868,_53998,_54000),on(_53998,_53928))).
  912% Into: l_int(holds(rightOfWay(_53868,_53870,_53872),_55226),[priorityTjunction(_53872,_53928),holds(location(_53868,_53998,_54000),_55226),on(_53998,_53928)]).
  913
  914% LPS:  if(rightOfWay(_55272,_55274,_55276),(crossRoads(_55276),at(location(_55272,_55386,_55388),_55410),at(location(_55274,_55506,_55508),_55410),rightOf(_55388,_55508))).
  915% Into: l_int(holds(rightOfWay(_55272,_55274,_55276),_56850),[crossRoads(_55276),holds(location(_55272,_55386,_55388),_55410),holds(location(_55274,_55506,_55508),_55410),rightOf(_55388,_55508)]).
  916% /pack/logicmoo_ec/test/lps_user_examples/self-drivers.pl:237
  917% pop_lps_dialect('$BLOB'("<stream>(0x562ef31d3700)"),  (/.../(lps_user_examples, 'self-drivers.pl')-> /.../(lps_user_examples, 'self-drivers.pl'))).
  918% ops.
  919% :-listing('/pack/logicmoo_ec/test/lps_user_examples/self-drivers.pl':_41872).
  920
  921
  922clash(Heading1, Heading2) :-
  923    horizontal(Heading1),
  924    vertical(Heading2).
  925clash(Heading1, Heading2) :-
  926    vertical(Heading1),
  927    horizontal(Heading2).
  928
  929d_pre([happens(step(A, _, _), B, _), holds(collisionPossible(A, _), B)]).
  930d_pre([happens(step(A, _, B), C, _), holds(collisionWarning(A, D, B), C), holds(not(rightOfWay(A, D, B)), C)]).
  931
  932directions(Start, [Heading-Street], Finish) :-
  933    on(Start, Street),
  934    on(Finish, Street),
  935    orientation(Start, Finish, Heading).
  936directions(Start, NewRoute, Finish) :-
  937    on(Finish, Street2),
  938    route(_, Route, _),
  939    append(FirstPart,
  940           [Heading2-Street2|_],
  941           Route),
  942    on(Start, Street1),
  943    append(_, [Heading1-Street1|Link], FirstPart),
  944    append([Heading1-Street1|Link],
  945           [Heading2-Street2],
  946           NewRoute).
  947
  948crossRoads(6-5).
  949crossRoads(8-5).
  950
  951updated(happens(step(A, B, C), _, _), location(A, B, _), B-C, []).
  952updated(happens(turn(A, B), _, _), location(A, _, C), C-B, []).
  953
  954maxTime(30).
  955
  956opposite(northward, southward).
  957opposite(southward, northward).
  958opposite(eastward, westward).
  959opposite(westward, eastward).
  960
  961fluents([location(_, A, _), collisionWarning(B, C, A), rightOfWay(B, C, A), collisionPossible(B, C)]).
  962
  963next(X-Y1, northward, X-Y2) :-
  964    Y2 is Y1+1.
  965next(X-Y1, southward, X-Y2) :-
  966    Y2 is Y1-1.
  967next(X1-Y, eastward, X2-Y) :-
  968    X2 is X1+1.
  969next(X1-Y, westward, X2-Y) :-
  970    X2 is X1-1.
  971
  972vertical(H) :-
  973    (   H=northward
  974    ;   H=southward
  975    ).
  976
  977l_events(happens(drive(A, [B-C], D), E, F), [holds(location(A, G, B), E), G\=D, next(G, B, H), on(H, C), happens(step(A, G, H), _, I), happens(drive(A, [B-C], D), I, F)]).
  978l_events(happens(drive(A, [B-C, D-E|F], G), _, H), [holds(location(A, I, B), _), next(I, B, J), not(on(J, E)), happens(step(A, I, J), _, K), happens(drive(A, [B-C, D-E|F], G), K, H)]).
  979l_events(happens(drive(A, [B-_, C-D|E], F), _, G), [holds(location(A, H, B), _), next(H, B, I), on(I, D), happens(step(A, H, I), J, K), happens(turn(A, C), J, K), happens(drive(A, [C-D|E], F), K, G)]).
  980
  981:- dynamic actions/1.  982:- multifile actions/1.  983
  984actions([step(A, _, _), turn(A, _)]).
  985
  986rightOf(westward, northward).
  987rightOf(southward, westward).
  988rightOf(eastward, southward).
  989rightOf(northward, eastward).
  990
  991horizontal(H) :-
  992    (   H=eastward
  993    ;   H=westward
  994    ).
  995
  996d(location(mycar, X-Y, Heading), [type:ellipse, point:[XX, YY], size:[Xcar, Ycar], fillColor:blue]) :-
  997    position(X,
  998             Y,
  999             Heading,
 1000             XX,
 1001             YY,
 1002             Xcar,
 1003             Ycar).
 1004d(location(yourcar, X-Y, Heading), [type:ellipse, point:[XX, YY], size:[Xcar, Ycar], fillColor:red]) :-
 1005    position(X,
 1006             Y,
 1007             Heading,
 1008             XX,
 1009             YY,
 1010             Xcar,
 1011             Ycar).
 1012d(location(othercar, X-Y, Heading), [type:ellipse, point:[XX, YY], size:[Xcar, Ycar], fillColor:green]) :-
 1013    position(X,
 1014             Y,
 1015             Heading,
 1016             XX,
 1017             YY,
 1018             Xcar,
 1019             Ycar).
 1020d(location(troubleMaker, X-Y, Heading), [type:ellipse, point:[XX, YY], size:[Xcar, Ycar], fillColor:maroon]) :-
 1021    position(X,
 1022             Y,
 1023             Heading,
 1024             XX,
 1025             YY,
 1026             Xcar,
 1027             Ycar).
 1028d(location(brokencar, X-Y, Heading), [type:circle, center:[XX, YY], radius:10, fillColor:red]) :-
 1029    XX is X*20+10,
 1030    YY is Y*20+10.
 1031d(timeless, A) :-
 1032    findall([ type:rectangle,
 1033              from:[B, C],
 1034              to:[D, E],
 1035              fillColor:yellow
 1036            ],
 1037            ( place(F-G),
 1038              not(on(F-G, _)),
 1039              B is F*20,
 1040              C is G*20,
 1041              D is B+20,
 1042              E is C+20
 1043            ),
 1044            A).
 1045
 1046initial_state([location(mycar, 2-1, northward), location(yourcar, 6-1, northward), location(othercar, 10-5, westward), location(troubleMaker, 6-2, northward), location(brokencar, 2-7, noward)]).
 1047
 1048route(2-9, [eastward-northStreet], 9-9).
 1049route(2-1, [northward-westStreet, eastward-northStreet], 9-9).
 1050route(2-1, [northward-westStreet, eastward-mainStreet], 9-6).
 1051route(6-1, [northward-highStreet, eastward-northStreet], 9-9).
 1052route(9-9, [westward-northStreet, southward-westStreet], 2-1).
 1053route(10-5, [westward-mainStreet, southward-highStreet], 6-1).
 1054
 1055on(X-5, mainStreet) :-
 1056    2=<X,
 1057    X=<10.
 1058on(X-9, northStreet) :-
 1059    2=<X,
 1060    X=<9.
 1061on(6-Y, highStreet) :-
 1062    1=<Y,
 1063    Y=<9.
 1064on(2-Y, westStreet) :-
 1065    1=<Y,
 1066    Y=<9.
 1067on(8-Y, eastStreet) :-
 1068    1=<Y,
 1069    Y=<9.
 1070
 1071place(X-Y) :-
 1072    member(X, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]),
 1073    member(Y, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]).
 1074
 1075priorityTjunction(2-5, westStreet).
 1076priorityTjunction(6-9, northStreet).
 1077priorityTjunction(8-9, northStreet).
 1078
 1079orientation(X-Y1, X-Y2, northward) :-
 1080    Y1<Y2.
 1081orientation(X-Y1, X-Y2, southward) :-
 1082    Y1>Y2.
 1083orientation(X1-Y, X2-Y, eastward) :-
 1084    X1<X2.
 1085orientation(X1-Y, X2-Y, westward) :-
 1086    X1>X2.
 1087
 1088terminated(happens(remove(A), _, _), location(A, _, _), []).
 1089
 1090l_int(holds(collisionPossible(A, B), C), [holds(location(A, D, E), C), next(D, E, F), holds(location(B, F, G), C), not(opposite(E, G))]).
 1091l_int(holds(collisionWarning(A, B, C), D), [holds(location(A, E, F), D), holds(location(B, G, H), D), next(E, F, C), next(G, H, C), clash(F, H)]).
 1092l_int(holds(rightOfWay(A, _, B), C), [priorityTjunction(B, D), holds(location(A, E, _), C), on(E, D)]).
 1093l_int(holds(rightOfWay(A, B, C), _), [crossRoads(C), holds(location(A, _, D), E), holds(location(B, _, F), E), rightOf(D, F)]).
 1094
 1095reactive_rule([happens(destination(A, B), _, C), holds(location(A, D, _), C)], [directions(D, E, B), happens(drive(A, E, B), C, _)]).
 1096
 1097position(X, Y, northward, XX, YY, 3, 7) :-
 1098    XX is X*20,
 1099    YY is Y*20.
 1100position(X, Y, southward, XX, YY, 3, 7) :-
 1101    XX is X*20+15,
 1102    YY is Y*20.
 1103position(X, Y, westward, XX, YY, 7, 3) :-
 1104    XX is X*20+15,
 1105    YY is Y*20.
 1106position(X, Y, eastward, XX, YY, 7, 3) :-
 1107    XX is X*20,
 1108    YY is Y*20+15.
 1109
 1110events([destination(A, _), remove(A)]).
 1111
 1112observe([destination(mycar, 9-9)], 3).
 1113observe([destination(troubleMaker, 9-9)], 3).
 1114observe([destination(yourcar, 9-9)], 3).
 1115observe([destination(othercar, 6-1)], 2).
 1116observe([remove(brokencar)], 16).
 1117% dB(/.../(lps_user_examples, 'self-drivers.pl'), lps_visualization(_280106{groups:[_267842{content:"Events", id:"event", order:1}, _267916{content:"location(A,B,C)", id:"location/3", order:3, subgroupStack:"false"}, _267982{content:"Actions", id:"action", order:4}], items:[_268104{content:"brokencar,2-7,noward", end:16, group:"location/3", id:0, start:1, subgroup:"brokencar", title:"Fluent location(brokencar,2-7,noward) initiated at 1<br/>and terminated at transition to 16"}, _268230{content:"mycar,2-1,northward", end:4, group:"location/3", id:1, start:1, subgroup:"mycar", title:"Fluent location(mycar,2-1,northward) initiated at 1<br/>and terminated at transition to 4"}, _268356{content:"mycar,2-2,northward", end:5, group:"location/3", id:2, start:4, subgroup:"mycar", title:"Fluent location(mycar,2-2,northward) initiated at 4<br/>and terminated at transition to 5"}, _268482{content:"mycar,2-3,northward", end:6, group:"location/3", id:3, start:5, subgroup:"mycar", title:"Fluent location(mycar,2-3,northward) initiated at 5<br/>and terminated at transition to 6"}, _268608{content:"mycar,2-4,northward", end:7, group:"location/3", id:4, start:6, subgroup:"mycar", title:"Fluent location(mycar,2-4,northward) initiated at 6<br/>and terminated at transition to 7"}, _268734{content:"mycar,2-5,northward", end:8, group:"location/3", id:5, start:7, subgroup:"mycar", title:"Fluent location(mycar,2-5,northward) initiated at 7<br/>and terminated at transition to 8"}, _268860{content:"mycar,2-6,northward", end:17, group:"location/3", id:6, start:8, subgroup:"mycar", title:"Fluent location(mycar,2-6,northward) initiated at 8<br/>and terminated at transition to 17"}, _268986{content:"mycar,2-7,northward", end:18, group:"location/3", id:7, start:17, subgroup:"mycar", title:"Fluent location(mycar,2-7,northward) initiated at 17<br/>and terminated at transition to 18"}, _269112{content:"mycar,2-8,northward", end:19, group:"location/3", id:8, start:18, subgroup:"mycar", title:"Fluent location(mycar,2-8,northward) initiated at 18<br/>and terminated at transition to 19"}, _269238{content:"mycar,2-9,eastward", end:20, group:"location/3", id:9, start:19, subgroup:"mycar", title:"Fluent location(mycar,2-9,eastward) initiated at 19<br/>and terminated at transition to 20"}, _269364{content:"mycar,3-9,eastward", end:21, group:"location/3", id:10, start:20, subgroup:"mycar", title:"Fluent location(mycar,3-9,eastward) initiated at 20<br/>and terminated at transition to 21"}, _269490{content:"mycar,4-9,eastward", end:22, group:"location/3", id:11, start:21, subgroup:"mycar", title:"Fluent location(mycar,4-9,eastward) initiated at 21<br/>and terminated at transition to 22"}, _269616{content:"mycar,5-9,eastward", end:23, group:"location/3", id:12, start:22, subgroup:"mycar", title:"Fluent location(mycar,5-9,eastward) initiated at 22<br/>and terminated at transition to 23"}, _269742{content:"mycar,6-9,eastward", end:24, group:"location/3", id:13, start:23, subgroup:"mycar", title:"Fluent location(mycar,6-9,eastward) initiated at 23<br/>and terminated at transition to 24"}, _269868{content:"mycar,7-9,eastward", end:31, group:"location/3", id:14, start:24, subgroup:"mycar", title:"Fluent location(mycar,7-9,eastward) initiated at 24<br/>and terminated at transition to 31"}, _269994{content:"othercar,6-1,southward", end:31, group:"location/3", id:15, start:10, subgroup:"othercar", title:"Fluent location(othercar,6-1,southward) initiated at 10<br/>and terminated at transition to 31"}, _270120{content:"othercar,6-2,southward", end:10, group:"location/3", id:16, start:9, subgroup:"othercar", title:"Fluent location(othercar,6-2,southward) initiated at 9<br/>and terminated at transition to 10"}, _270246{content:"othercar,6-3,southward", end:9, group:"location/3", id:17, start:8, subgroup:"othercar", title:"Fluent location(othercar,6-3,southward) initiated at 8<br/>and terminated at transition to 9"}, _270372{content:"othercar,6-4,southward", end:8, group:"location/3", id:18, start:7, subgroup:"othercar", title:"Fluent location(othercar,6-4,southward) initiated at 7<br/>and terminated at transition to 8"}, _270498{content:"othercar,6-5,southward", end:7, group:"location/3", id:19, start:6, subgroup:"othercar", title:"Fluent location(othercar,6-5,southward) initiated at 6<br/>and terminated at transition to 7"}, _270624{content:"othercar,7-5,westward", end:6, group:"location/3", id:20, start:5, subgroup:"othercar", title:"Fluent location(othercar,7-5,westward) initiated at 5<br/>and terminated at transition to 6"}, _270750{content:"othercar,8-5,westward", end:5, group:"location/3", id:21, start:4, subgroup:"othercar", title:"Fluent location(othercar,8-5,westward) initiated at 4<br/>and terminated at transition to 5"}, _270876{content:"othercar,9-5,westward", end:4, group:"location/3", id:22, start:3, subgroup:"othercar", title:"Fluent location(othercar,9-5,westward) initiated at 3<br/>and terminated at transition to 4"}, _271002{content:"othercar,10-5,westward", end:3, group:"location/3", id:23, start:1, subgroup:"othercar", title:"Fluent location(othercar,10-5,westward) initiated at 1<br/>and terminated at transition to 3"}, _271128{content:"troubleMaker,6-2,northward", end:4, group:"location/3", id:24, start:1, subgroup:"troubleMaker", title:"Fluent location(troubleMaker,6-2,northward) initiated at 1<br/>and terminated at transition to 4"}, _271254{content:"troubleMaker,6-3,northward", end:5, group:"location/3", id:25, start:4, subgroup:"troubleMaker", title:"Fluent location(troubleMaker,6-3,northward) initiated at 4<br/>and terminated at transition to 5"}, _271380{content:"troubleMaker,6-4,northward", end:7, group:"location/3", id:26, start:5, subgroup:"troubleMaker", title:"Fluent location(troubleMaker,6-4,northward) initiated at 5<br/>and terminated at transition to 7"}, _271506{content:"troubleMaker,6-5,northward", end:8, group:"location/3", id:27, start:7, subgroup:"troubleMaker", title:"Fluent location(troubleMaker,6-5,northward) initiated at 7<br/>and terminated at transition to 8"}, _271632{content:"troubleMaker,6-6,northward", end:9, group:"location/3", id:28, start:8, subgroup:"troubleMaker", title:"Fluent location(troubleMaker,6-6,northward) initiated at 8<br/>and terminated at transition to 9"}, _271758{content:"troubleMaker,6-7,northward", end:10, group:"location/3", id:29, start:9, subgroup:"troubleMaker", title:"Fluent location(troubleMaker,6-7,northward) initiated at 9<br/>and terminated at transition to 10"}, _271884{content:"troubleMaker,6-8,northward", end:11, group:"location/3", id:30, start:10, subgroup:"troubleMaker", title:"Fluent location(troubleMaker,6-8,northward) initiated at 10<br/>and terminated at transition to 11"}, _272010{content:"troubleMaker,6-9,eastward", end:12, group:"location/3", id:31, start:11, subgroup:"troubleMaker", title:"Fluent location(troubleMaker,6-9,eastward) initiated at 11<br/>and terminated at transition to 12"}, _272136{content:"troubleMaker,7-9,eastward", end:13, group:"location/3", id:32, start:12, subgroup:"troubleMaker", title:"Fluent location(troubleMaker,7-9,eastward) initiated at 12<br/>and terminated at transition to 13"}, _272262{content:"troubleMaker,8-9,eastward", end:14, group:"location/3", id:33, start:13, subgroup:"troubleMaker", title:"Fluent location(troubleMaker,8-9,eastward) initiated at 13<br/>and terminated at transition to 14"}, _272388{content:"troubleMaker,9-9,eastward", end:31, group:"location/3", id:34, start:14, subgroup:"troubleMaker", title:"Fluent location(troubleMaker,9-9,eastward) initiated at 14<br/>and terminated at transition to 31"}, _272514{content:"yourcar,6-1,northward", end:5, group:"location/3", id:35, start:1, subgroup:"yourcar", title:"Fluent location(yourcar,6-1,northward) initiated at 1<br/>and terminated at transition to 5"}, _272640{content:"yourcar,6-2,northward", end:6, group:"location/3", id:36, start:5, subgroup:"yourcar", title:"Fluent location(yourcar,6-2,northward) initiated at 5<br/>and terminated at transition to 6"}, _272766{content:"yourcar,6-3,northward", end:8, group:"location/3", id:37, start:6, subgroup:"yourcar", title:"Fluent location(yourcar,6-3,northward) initiated at 6<br/>and terminated at transition to 8"}, _272892{content:"yourcar,6-4,northward", end:9, group:"location/3", id:38, start:8, subgroup:"yourcar", title:"Fluent location(yourcar,6-4,northward) initiated at 8<br/>and terminated at transition to 9"}, _273018{content:"yourcar,6-5,northward", end:10, group:"location/3", id:39, start:9, subgroup:"yourcar", title:"Fluent location(yourcar,6-5,northward) initiated at 9<br/>and terminated at transition to 10"}, _273144{content:"yourcar,6-6,northward", end:11, group:"location/3", id:40, start:10, subgroup:"yourcar", title:"Fluent location(yourcar,6-6,northward) initiated at 10<br/>and terminated at transition to 11"}, _273270{content:"yourcar,6-7,northward", end:12, group:"location/3", id:41, start:11, subgroup:"yourcar", title:"Fluent location(yourcar,6-7,northward) initiated at 11<br/>and terminated at transition to 12"}, _273396{content:"yourcar,6-8,northward", end:13, group:"location/3", id:42, start:12, subgroup:"yourcar", title:"Fluent location(yourcar,6-8,northward) initiated at 12<br/>and terminated at transition to 13"}, _273522{content:"yourcar,6-9,eastward", end:14, group:"location/3", id:43, start:13, subgroup:"yourcar", title:"Fluent location(yourcar,6-9,eastward) initiated at 13<br/>and terminated at transition to 14"}, _273648{content:"yourcar,7-9,eastward", end:15, group:"location/3", id:44, start:14, subgroup:"yourcar", title:"Fluent location(yourcar,7-9,eastward) initiated at 14<br/>and terminated at transition to 15"}, _273774{content:"yourcar,8-9,eastward", end:31, group:"location/3", id:45, start:15, subgroup:"yourcar", title:"Fluent location(yourcar,8-9,eastward) initiated at 15<br/>and terminated at transition to 31"}, _273900{content:"destination(othercar,6-1)", group:"event", id:46, start:2, style:"color:#E19735", title:"happens(destination(othercar,6-1),1,2)", type:"point"}, _274026{content:"destination(mycar,9-9)", group:"event", id:47, start:3, style:"color:#E19735", title:"happens(destination(mycar,9-9),2,3)", type:"point"}, _274152{content:"destination(troubleMaker,9-9)", group:"event", id:48, start:3, style:"color:#E19735", title:"happens(destination(troubleMaker,9-9),2,3)", type:"point"}, _274278{content:"destination(yourcar,9-9)", group:"event", id:49, start:3, style:"color:#E19735", title:"happens(destination(yourcar,9-9),2,3)", type:"point"}, _274404{content:"step(othercar,10-5,9-5)", group:"action", id:50, start:3, style:"color:green", title:"happens(step(othercar,10-5,9-5),2,3)", type:"point"}, _274530{content:"step(othercar,9-5,8-5)", group:"action", id:51, start:4, style:"color:green", title:"happens(step(othercar,9-5,8-5),3,4)", type:"point"}, _274656{content:"step(troubleMaker,6-2,6-3)", group:"action", id:52, start:4, style:"color:green", title:"happens(step(troubleMaker,6-2,6-3),3,4)", type:"point"}, _274782{content:"step(mycar,2-1,2-2)", group:"action", id:53, start:4, style:"color:green", title:"happens(step(mycar,2-1,2-2),3,4)", type:"point"}, _274908{content:"step(mycar,2-2,2-3)", group:"action", id:54, start:5, style:"color:green", title:"happens(step(mycar,2-2,2-3),4,5)", type:"point"}, _275034{content:"step(troubleMaker,6-3,6-4)", group:"action", id:55, start:5, style:"color:green", title:"happens(step(troubleMaker,6-3,6-4),4,5)", type:"point"}, _275160{content:"step(yourcar,6-1,6-2)", group:"action", id:56, start:5, style:"color:green", title:"happens(step(yourcar,6-1,6-2),4,5)", type:"point"}, _275286{content:"step(othercar,8-5,7-5)", group:"action", id:57, start:5, style:"color:green", title:"happens(step(othercar,8-5,7-5),4,5)", type:"point"}, _275412{content:"step(othercar,7-5,6-5)", group:"action", id:58, start:6, style:"color:green", title:"happens(step(othercar,7-5,6-5),5,6)", type:"point"}, _275538{content:"turn(othercar,southward)", group:"action", id:59, start:6, style:"color:green", title:"happens(turn(othercar,southward),5,6)", type:"point"}, _275664{content:"step(yourcar,6-2,6-3)", group:"action", id:60, start:6, style:"color:green", title:"happens(step(yourcar,6-2,6-3),5,6)", type:"point"}, _275790{content:"step(mycar,2-3,2-4)", group:"action", id:61, start:6, style:"color:green", title:"happens(step(mycar,2-3,2-4),5,6)", type:"point"}, _275916{content:"step(mycar,2-4,2-5)", group:"action", id:62, start:7, style:"color:green", title:"happens(step(mycar,2-4,2-5),6,7)", type:"point"}, _276042{content:"step(troubleMaker,6-4,6-5)", group:"action", id:63, start:7, style:"color:green", title:"happens(step(troubleMaker,6-4,6-5),6,7)", type:"point"}, _276168{content:"step(othercar,6-5,6-4)", group:"action", id:64, start:7, style:"color:green", title:"happens(step(othercar,6-5,6-4),6,7)", type:"point"}, _276294{content:"step(othercar,6-4,6-3)", group:"action", id:65, start:8, style:"color:green", title:"happens(step(othercar,6-4,6-3),7,8)", type:"point"}, _276420{content:"step(yourcar,6-3,6-4)", group:"action", id:66, start:8, style:"color:green", title:"happens(step(yourcar,6-3,6-4),7,8)", type:"point"}, _276546{content:"step(troubleMaker,6-5,6-6)", group:"action", id:67, start:8, style:"color:green", title:"happens(step(troubleMaker,6-5,6-6),7,8)", type:"point"}, _276672{content:"step(mycar,2-5,2-6)", group:"action", id:68, start:8, style:"color:green", title:"happens(step(mycar,2-5,2-6),7,8)", type:"point"}, _276798{content:"step(troubleMaker,6-6,6-7)", group:"action", id:69, start:9, style:"color:green", title:"happens(step(troubleMaker,6-6,6-7),8,9)", type:"point"}, _276924{content:"step(yourcar,6-4,6-5)", group:"action", id:70, start:9, style:"color:green", title:"happens(step(yourcar,6-4,6-5),8,9)", type:"point"}, _277050{content:"step(othercar,6-3,6-2)", group:"action", id:71, start:9, style:"color:green", title:"happens(step(othercar,6-3,6-2),8,9)", type:"point"}, _277176{content:"step(othercar,6-2,6-1)", group:"action", id:72, start:10, style:"color:green", title:"happens(step(othercar,6-2,6-1),9,10)", type:"point"}, _277302{content:"step(yourcar,6-5,6-6)", group:"action", id:73, start:10, style:"color:green", title:"happens(step(yourcar,6-5,6-6),9,10)", type:"point"}, _277428{content:"step(troubleMaker,6-7,6-8)", group:"action", id:74, start:10, style:"color:green", title:"happens(step(troubleMaker,6-7,6-8),9,10)", type:"point"}, _277554{content:"step(troubleMaker,6-8,6-9)", group:"action", id:75, start:11, style:"color:green", title:"happens(step(troubleMaker,6-8,6-9),10,11)", type:"point"}, _277680{content:"turn(troubleMaker,eastward)", group:"action", id:76, start:11, style:"color:green", title:"happens(turn(troubleMaker,eastward),10,11)", type:"point"}, _277806{content:"step(yourcar,6-6,6-7)", group:"action", id:77, start:11, style:"color:green", title:"happens(step(yourcar,6-6,6-7),10,11)", type:"point"}, _277932{content:"step(yourcar,6-7,6-8)", group:"action", id:78, start:12, style:"color:green", title:"happens(step(yourcar,6-7,6-8),11,12)", type:"point"}, _278058{content:"step(troubleMaker,6-9,7-9)", group:"action", id:79, start:12, style:"color:green", title:"happens(step(troubleMaker,6-9,7-9),11,12)", type:"point"}, _278184{content:"step(troubleMaker,7-9,8-9)", group:"action", id:80, start:13, style:"color:green", title:"happens(step(troubleMaker,7-9,8-9),12,13)", type:"point"}, _278310{content:"step(yourcar,6-8,6-9)", group:"action", id:81, start:13, style:"color:green", title:"happens(step(yourcar,6-8,6-9),12,13)", type:"point"}, _278436{content:"turn(yourcar,eastward)", group:"action", id:82, start:13, style:"color:green", title:"happens(turn(yourcar,eastward),12,13)", type:"point"}, _278562{content:"step(yourcar,6-9,7-9)", group:"action", id:83, start:14, style:"color:green", title:"happens(step(yourcar,6-9,7-9),13,14)", type:"point"}, _278688{content:"step(troubleMaker,8-9,9-9)", group:"action", id:84, start:14, style:"color:green", title:"happens(step(troubleMaker,8-9,9-9),13,14)", type:"point"}, _278814{content:"step(yourcar,7-9,8-9)", group:"action", id:85, start:15, style:"color:green", title:"happens(step(yourcar,7-9,8-9),14,15)", type:"point"}, _278940{content:"remove(brokencar)", group:"event", id:86, start:16, style:"color:#E19735", title:"happens(remove(brokencar),15,16)", type:"point"}, _279066{content:"step(mycar,2-6,2-7)", group:"action", id:87, start:17, style:"color:green", title:"happens(step(mycar,2-6,2-7),16,17)", type:"point"}, _279192{content:"step(mycar,2-7,2-8)", group:"action", id:88, start:18, style:"color:green", title:"happens(step(mycar,2-7,2-8),17,18)", type:"point"}, _279318{content:"step(mycar,2-8,2-9)", group:"action", id:89, start:19, style:"color:green", title:"happens(step(mycar,2-8,2-9),18,19)", type:"point"}, _279444{content:"turn(mycar,eastward)", group:"action", id:90, start:19, style:"color:green", title:"happens(turn(mycar,eastward),18,19)", type:"point"}, _279570{content:"step(mycar,2-9,3-9)", group:"action", id:91, start:20, style:"color:green", title:"happens(step(mycar,2-9,3-9),19,20)", type:"point"}, _279696{content:"step(mycar,3-9,4-9)", group:"action", id:92, start:21, style:"color:green", title:"happens(step(mycar,3-9,4-9),20,21)", type:"point"}, _279822{content:"step(mycar,4-9,5-9)", group:"action", id:93, start:22, style:"color:green", title:"happens(step(mycar,4-9,5-9),21,22)", type:"point"}, _279948{content:"step(mycar,5-9,6-9)", group:"action", id:94, start:23, style:"color:green", title:"happens(step(mycar,5-9,6-9),22,23)", type:"point"}, _280074{content:"step(mycar,6-9,7-9)", group:"action", id:95, start:24, style:"color:green", title:"happens(step(mycar,6-9,7-9),23,24)", type:"point"}]}, _422170{cycles:[[_414046{create:[_406824{fillColor:"yellow", from:[20, 20], id:"timeless", to:[40, 40], type:"rectangle"}, _406942{fillColor:"yellow", from:[20, 40], id:"timeless", to:[40, 60], type:"rectangle"}, _407060{fillColor:"yellow", from:[20, 60], id:"timeless", to:[40, 80], type:"rectangle"}, _407178{fillColor:"yellow", from:[20, 80], id:"timeless", to:[40, 100], type:"rectangle"}, _407296{fillColor:"yellow", from:[20, 100], id:"timeless", to:[40, 120], type:"rectangle"}, _407414{fillColor:"yellow", from:[20, 120], id:"timeless", to:[40, 140], type:"rectangle"}, _407532{fillColor:"yellow", from:[20, 140], id:"timeless", to:[40, 160], type:"rectangle"}, _407650{fillColor:"yellow", from:[20, 160], id:"timeless", to:[40, 180], type:"rectangle"}, _407768{fillColor:"yellow", from:[20, 180], id:"timeless", to:[40, 200], type:"rectangle"}, _407886{fillColor:"yellow", from:[20, 200], id:"timeless", to:[40, 220], type:"rectangle"}, _408004{fillColor:"yellow", from:[40, 200], id:"timeless", to:[60, 220], type:"rectangle"}, _408122{fillColor:"yellow", from:[60, 20], id:"timeless", to:[80, 40], type:"rectangle"}, _408240{fillColor:"yellow", from:[60, 40], id:"timeless", to:[80, 60], type:"rectangle"}, _408358{fillColor:"yellow", from:[60, 60], id:"timeless", to:[80, 80], type:"rectangle"}, _408476{fillColor:"yellow", from:[60, 80], id:"timeless", to:[80, 100], type:"rectangle"}, _408594{fillColor:"yellow", from:[60, 120], id:"timeless", to:[80, 140], type:"rectangle"}, _408712{fillColor:"yellow", from:[60, 140], id:"timeless", to:[80, 160], type:"rectangle"}, _408830{fillColor:"yellow", from:[60, 160], id:"timeless", to:[80, 180], type:"rectangle"}, _408948{fillColor:"yellow", from:[60, 200], id:"timeless", to:[80, 220], type:"rectangle"}, _409066{fillColor:"yellow", from:[80, 20], id:"timeless", to:[100, 40], type:"rectangle"}, _409184{fillColor:"yellow", from:[80, 40], id:"timeless", to:[100, 60], type:"rectangle"}, _409302{fillColor:"yellow", from:[80, 60], id:"timeless", to:[100, 80], type:"rectangle"}, _409420{fillColor:"yellow", from:[80, 80], id:"timeless", to:[100, 100], type:"rectangle"}, _409538{fillColor:"yellow", from:[80, 120], id:"timeless", to:[100, 140], type:"rectangle"}, _409656{fillColor:"yellow", from:[80, 140], id:"timeless", to:[100, 160], type:"rectangle"}, _409774{fillColor:"yellow", from:[80, 160], id:"timeless", to:[100, 180], type:"rectangle"}, _409892{fillColor:"yellow", from:[80, 200], id:"timeless", to:[100, 220], type:"rectangle"}, _410010{fillColor:"yellow", from:[100, 20], id:"timeless", to:[120, 40], type:"rectangle"}, _410128{fillColor:"yellow", from:[100, 40], id:"timeless", to:[120, 60], type:"rectangle"}, _410246{fillColor:"yellow", from:[100, 60], id:"timeless", to:[120, 80], type:"rectangle"}, _410364{fillColor:"yellow", from:[100, 80], id:"timeless", to:[120, 100], type:"rectangle"}, _410482{fillColor:"yellow", from:[100, 120], id:"timeless", to:[120, 140], type:"rectangle"}, _410600{fillColor:"yellow", from:[100, 140], id:"timeless", to:[120, 160], type:"rectangle"}, _410718{fillColor:"yellow", from:[100, 160], id:"timeless", to:[120, 180], type:"rectangle"}, _410836{fillColor:"yellow", from:[100, 200], id:"timeless", to:[120, 220], type:"rectangle"}, _410954{fillColor:"yellow", from:[120, 200], id:"timeless", to:[140, 220], type:"rectangle"}, _411072{fillColor:"yellow", from:[140, 20], id:"timeless", to:[160, 40], type:"rectangle"}, _411190{fillColor:"yellow", from:[140, 40], id:"timeless", to:[160, 60], type:"rectangle"}, _411308{fillColor:"yellow", from:[140, 60], id:"timeless", to:[160, 80], type:"rectangle"}, _411426{fillColor:"yellow", from:[140, 80], id:"timeless", to:[160, 100], type:"rectangle"}, _411544{fillColor:"yellow", from:[140, 120], id:"timeless", to:[160, 140], type:"rectangle"}, _411662{fillColor:"yellow", from:[140, 140], id:"timeless", to:[160, 160], type:"rectangle"}, _411780{fillColor:"yellow", from:[140, 160], id:"timeless", to:[160, 180], type:"rectangle"}, _411898{fillColor:"yellow", from:[140, 200], id:"timeless", to:[160, 220], type:"rectangle"}, _412016{fillColor:"yellow", from:[160, 200], id:"timeless", to:[180, 220], type:"rectangle"}, _412134{fillColor:"yellow", from:[180, 20], id:"timeless", to:[200, 40], type:"rectangle"}, _412252{fillColor:"yellow", from:[180, 40], id:"timeless", to:[200, 60], type:"rectangle"}, _412370{fillColor:"yellow", from:[180, 60], id:"timeless", to:[200, 80], type:"rectangle"}, _412488{fillColor:"yellow", from:[180, 80], id:"timeless", to:[200, 100], type:"rectangle"}, _412606{fillColor:"yellow", from:[180, 120], id:"timeless", to:[200, 140], type:"rectangle"}, _412724{fillColor:"yellow", from:[180, 140], id:"timeless", to:[200, 160], type:"rectangle"}, _412842{fillColor:"yellow", from:[180, 160], id:"timeless", to:[200, 180], type:"rectangle"}, _412960{fillColor:"yellow", from:[180, 200], id:"timeless", to:[200, 220], type:"rectangle"}, _413078{fillColor:"yellow", from:[200, 20], id:"timeless", to:[220, 40], type:"rectangle"}, _413196{fillColor:"yellow", from:[200, 40], id:"timeless", to:[220, 60], type:"rectangle"}, _413314{fillColor:"yellow", from:[200, 60], id:"timeless", to:[220, 80], type:"rectangle"}, _413432{fillColor:"yellow", from:[200, 80], id:"timeless", to:[220, 100], type:"rectangle"}, _413550{fillColor:"yellow", from:[200, 120], id:"timeless", to:[220, 140], type:"rectangle"}, _413668{fillColor:"yellow", from:[200, 140], id:"timeless", to:[220, 160], type:"rectangle"}, _413786{fillColor:"yellow", from:[200, 160], id:"timeless", to:[220, 180], type:"rectangle"}, _413904{fillColor:"yellow", from:[200, 180], id:"timeless", to:[220, 200], type:"rectangle"}, _414022{fillColor:"yellow", from:[200, 200], id:"timeless", to:[220, 220], type:"rectangle"}]}], [_414182{create:_414158{center:[50, 150], fillColor:"red", id:"location(brokencar,2-7,noward)", radius:10, type:"circle"}}, _414324{create:_414300{fillColor:"blue", id:"location(mycar,2-1,northward)", point:[40, 20], size:[3, 7], type:"ellipse"}}, _414466{create:_414442{fillColor:"green", id:"location(othercar,10-5,westward)", point:[215, 100], size:[7, 3], type:"ellipse"}}, _414608{create:_414584{fillColor:"maroon", id:"location(troubleMaker,6-2,northward)", point:[120, 40], size:[3, 7], type:"ellipse"}}, _414750{create:_414726{fillColor:"red", id:"location(yourcar,6-1,northward)", point:[120, 20], size:[3, 7], type:"ellipse"}}], [], [_414904{create:_414880{fillColor:"green", id:"location(othercar,9-5,westward)", point:[195, 100], size:[7, 3], type:"ellipse"}}, _414934{kill:"location(othercar,10-5,westward)"}], [_415082{create:_415058{fillColor:"blue", id:"location(mycar,2-2,northward)", point:[40, 40], size:[3, 7], type:"ellipse"}}, _415224{create:_415200{fillColor:"green", id:"location(othercar,8-5,westward)", point:[175, 100], size:[7, 3], type:"ellipse"}}, _415366{create:_415342{fillColor:"maroon", id:"location(troubleMaker,6-3,northward)", point:[120, 60], size:[3, 7], type:"ellipse"}}, _415396{kill:"location(mycar,2-1,northward)"}, _415426{kill:"location(othercar,9-5,westward)"}, _415456{kill:"location(troubleMaker,6-2,northward)"}], [_415604{create:_415580{fillColor:"blue", id:"location(mycar,2-3,northward)", point:[40, 60], size:[3, 7], type:"ellipse"}}, _415746{create:_415722{fillColor:"green", id:"location(othercar,7-5,westward)", point:[155, 100], size:[7, 3], type:"ellipse"}}, _415888{create:_415864{fillColor:"maroon", id:"location(troubleMaker,6-4,northward)", point:[120, 80], size:[3, 7], type:"ellipse"}}, _416030{create:_416006{fillColor:"red", id:"location(yourcar,6-2,northward)", point:[120, 40], size:[3, 7], type:"ellipse"}}, _416060{kill:"location(mycar,2-2,northward)"}, _416090{kill:"location(othercar,8-5,westward)"}, _416120{kill:"location(troubleMaker,6-3,northward)"}, _416150{kill:"location(yourcar,6-1,northward)"}], [_416298{create:_416274{fillColor:"blue", id:"location(mycar,2-4,northward)", point:[40, 80], size:[3, 7], type:"ellipse"}}, _416440{create:_416416{fillColor:"green", id:"location(othercar,6-5,southward)", point:[135, 100], size:[3, 7], type:"ellipse"}}, _416582{create:_416558{fillColor:"red", id:"location(yourcar,6-3,northward)", point:[120, 60], size:[3, 7], type:"ellipse"}}, _416612{kill:"location(mycar,2-3,northward)"}, _416642{kill:"location(othercar,7-5,westward)"}, _416672{kill:"location(yourcar,6-2,northward)"}], [_416820{create:_416796{fillColor:"blue", id:"location(mycar,2-5,northward)", point:[40, 100], size:[3, 7], type:"ellipse"}}, _416962{create:_416938{fillColor:"green", id:"location(othercar,6-4,southward)", point:[135, 80], size:[3, 7], type:"ellipse"}}, _417104{create:_417080{fillColor:"maroon", id:"location(troubleMaker,6-5,northward)", point:[120, 100], size:[3, 7], type:"ellipse"}}, _417134{kill:"location(mycar,2-4,northward)"}, _417164{kill:"location(othercar,6-5,southward)"}, _417194{kill:"location(troubleMaker,6-4,northward)"}], [_417342{create:_417318{fillColor:"blue", id:"location(mycar,2-6,northward)", point:[40, 120], size:[3, 7], type:"ellipse"}}, _417484{create:_417460{fillColor:"green", id:"location(othercar,6-3,southward)", point:[135, 60], size:[3, 7], type:"ellipse"}}, _417626{create:_417602{fillColor:"maroon", id:"location(troubleMaker,6-6,northward)", point:[120, 120], size:[3, 7], type:"ellipse"}}, _417768{create:_417744{fillColor:"red", id:"location(yourcar,6-4,northward)", point:[120, 80], size:[3, 7], type:"ellipse"}}, _417798{kill:"location(mycar,2-5,northward)"}, _417828{kill:"location(othercar,6-4,southward)"}, _417858{kill:"location(troubleMaker,6-5,northward)"}, _417888{kill:"location(yourcar,6-3,northward)"}], [_418036{create:_418012{fillColor:"green", id:"location(othercar,6-2,southward)", point:[135, 40], size:[3, 7], type:"ellipse"}}, _418178{create:_418154{fillColor:"maroon", id:"location(troubleMaker,6-7,northward)", point:[120, 140], size:[3, 7], type:"ellipse"}}, _418320{create:_418296{fillColor:"red", id:"location(yourcar,6-5,northward)", point:[120, 100], size:[3, 7], type:"ellipse"}}, _418350{kill:"location(othercar,6-3,southward)"}, _418380{kill:"location(troubleMaker,6-6,northward)"}, _418410{kill:"location(yourcar,6-4,northward)"}], [_418558{create:_418534{fillColor:"green", id:"location(othercar,6-1,southward)", point:[135, 20], size:[3, 7], type:"ellipse"}}, _418700{create:_418676{fillColor:"maroon", id:"location(troubleMaker,6-8,northward)", point:[120, 160], size:[3, 7], type:"ellipse"}}, _418842{create:_418818{fillColor:"red", id:"location(yourcar,6-6,northward)", point:[120, 120], size:[3, 7], type:"ellipse"}}, _418872{kill:"location(othercar,6-2,southward)"}, _418902{kill:"location(troubleMaker,6-7,northward)"}, _418932{kill:"location(yourcar,6-5,northward)"}], [_419080{create:_419056{fillColor:"maroon", id:"location(troubleMaker,6-9,eastward)", point:[120, 195], size:[7, 3], type:"ellipse"}}, _419222{create:_419198{fillColor:"red", id:"location(yourcar,6-7,northward)", point:[120, 140], size:[3, 7], type:"ellipse"}}, _419252{kill:"location(troubleMaker,6-8,northward)"}, _419282{kill:"location(yourcar,6-6,northward)"}], [_419430{create:_419406{fillColor:"maroon", id:"location(troubleMaker,7-9,eastward)", point:[140, 195], size:[7, 3], type:"ellipse"}}, _419572{create:_419548{fillColor:"red", id:"location(yourcar,6-8,northward)", point:[120, 160], size:[3, 7], type:"ellipse"}}, _419602{kill:"location(troubleMaker,6-9,eastward)"}, _419632{kill:"location(yourcar,6-7,northward)"}], [_419780{create:_419756{fillColor:"maroon", id:"location(troubleMaker,8-9,eastward)", point:[160, 195], size:[7, 3], type:"ellipse"}}, _419922{create:_419898{fillColor:"red", id:"location(yourcar,6-9,eastward)", point:[120, 195], size:[7, 3], type:"ellipse"}}, _419952{kill:"location(troubleMaker,7-9,eastward)"}, _419982{kill:"location(yourcar,6-8,northward)"}], [_420130{create:_420106{fillColor:"maroon", id:"location(troubleMaker,9-9,eastward)", point:[180, 195], size:[7, 3], type:"ellipse"}}, _420272{create:_420248{fillColor:"red", id:"location(yourcar,7-9,eastward)", point:[140, 195], size:[7, 3], type:"ellipse"}}, _420302{kill:"location(troubleMaker,8-9,eastward)"}, _420332{kill:"location(yourcar,6-9,eastward)"}], [_420480{create:_420456{fillColor:"red", id:"location(yourcar,8-9,eastward)", point:[160, 195], size:[7, 3], type:"ellipse"}}, _420510{kill:"location(yourcar,7-9,eastward)"}], [_420546{kill:"location(brokencar,2-7,noward)"}], [_420694{create:_420670{fillColor:"blue", id:"location(mycar,2-7,northward)", point:[40, 140], size:[3, 7], type:"ellipse"}}, _420724{kill:"location(mycar,2-6,northward)"}], [_420872{create:_420848{fillColor:"blue", id:"location(mycar,2-8,northward)", point:[40, 160], size:[3, 7], type:"ellipse"}}, _420902{kill:"location(mycar,2-7,northward)"}], [_421050{create:_421026{fillColor:"blue", id:"location(mycar,2-9,eastward)", point:[40, 195], size:[7, 3], type:"ellipse"}}, _421080{kill:"location(mycar,2-8,northward)"}], [_421228{create:_421204{fillColor:"blue", id:"location(mycar,3-9,eastward)", point:[60, 195], size:[7, 3], type:"ellipse"}}, _421258{kill:"location(mycar,2-9,eastward)"}], [_421406{create:_421382{fillColor:"blue", id:"location(mycar,4-9,eastward)", point:[80, 195], size:[7, 3], type:"ellipse"}}, _421436{kill:"location(mycar,3-9,eastward)"}], [_421584{create:_421560{fillColor:"blue", id:"location(mycar,5-9,eastward)", point:[100, 195], size:[7, 3], type:"ellipse"}}, _421614{kill:"location(mycar,4-9,eastward)"}], [_421762{create:_421738{fillColor:"blue", id:"location(mycar,6-9,eastward)", point:[120, 195], size:[7, 3], type:"ellipse"}}, _421792{kill:"location(mycar,5-9,eastward)"}], [_421940{create:_421916{fillColor:"blue", id:"location(mycar,7-9,eastward)", point:[140, 195], size:[7, 3], type:"ellipse"}}, _421970{kill:"location(mycar,6-9,eastward)"}], [], [], [], [], [], [], [_422042{kill:"location(mycar,7-9,eastward)"}, _422072{kill:"location(othercar,6-1,southward)"}, _422102{kill:"location(troubleMaker,9-9,eastward)"}, _422132{kill:"location(yourcar,8-9,eastward)"}, _422162{kill:"timeless"}]]})).
 1118% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'self-driving cars.pl')).
 1119% run_lps_corner_file1(/.../(lps_user_examples, 'self-driving cars.pl')).
 1120% /pack/logicmoo_ec/test/lps_user_examples/self-driving cars.pl:1
 1121% push_lps_dialect.
 1122% ops.
 1123% [ti=user, load= /.../(lps_user_examples, 'self-driving cars.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'self-driving cars.pl'), lps= /.../(lps_user_examples, 'self-driving cars.pl'), using= /.../(lps_user_examples, 'self-driving cars.pl')].
 1124% continue_lps_dialect.
 1125% ops.
 1126
 1127% LPS:  fluents(location(_107232,_107234,_107236)).
 1128% Into: fluents([location(_107232,_107234,_107236)]).
 1129
 1130% LPS:  events(destination(_108316,_108318)).
 1131% Into: events([destination(_108316,_108318)]).
 1132
 1133% LPS:  actions((step(_109370),turn(_109370,_109426))).
 1134% Into: actions([step(_109370),turn(_109370,_109426)]).
 1135
 1136% LPS:  if(updates(step(_110512),in(to(_110548,_110550),location(_110512,_110548,_110648))),next(_110548,_110648,_110550)).
 1137% Into: updated(happens(step(_110512),_112024,_112030),location(_110512,_110548,_110648),_110548-_110550,[next(_110548,_110648,_110550)]).
 1138
 1139% LPS:  updates(turn(_120224,_120226),in(to(_120262,_120226),location(_120224,_120360,_120262))).
 1140% Into: updated(happens(turn(_120224,_120226),_121606,_121612),location(_120224,_120360,_120262),_120262-_120226,[]).
 1141
 1142% LPS:  initially((location(mycar,2-1,northward),location(yourcar,9-9,westward))).
 1143% Into: initial_state([location(mycar,2-1,northward),location(yourcar,9-9,westward)]).
 1144
 1145% LPS:  observe(from(destination(mycar,9-9),to(2,3))).
 1146% Into: observe([destination(mycar,9-9)],3).
 1147
 1148% LPS:  observe(from(destination(yourcar,2-1),to(3,4))).
 1149% Into: observe([destination(yourcar,2-1)],4).
 1150
 1151% LPS:  then(if((to(destination(_138670,_138672),_138694),at(location(_138670,_138790,_138792),_138694),directions(_138790,_138910,_138672))),from(drive(_138670,_138910,_138672),to(_138694,_139110))).
 1152% Into: reactive_rule([happens(destination(_138670,_138672),_140342,_138694),holds(location(_138670,_138790,_138792),_138694),directions(_138790,_138910,_138672)],[happens(drive(_138670,_138910,_138672),_138694,_139110)]).
 1153
 1154% LPS:  if(from(drive(_141806,_141808,_141810),to(_141846,_141846)),at(location(_141806,_141810,_141978),_141846)).
 1155% Into: l_events(happens(drive(_141806,_141808,_141810),_141846,_141846),[holds(location(_141806,_141810,_141978),_141846)]).
 1156
 1157% LPS:  if(from(drive(_143538,[_143478-_143480|_143512],_143542),to(_143578,_143580)),(location(_143538,_143708,_143478),on(_143708,_143480),next(_143708,_143478,_143838),on(_143838,_143480),from(step(_143538),to(_143578,_143972)),from(drive(_143538,[_143478-_143480|_143512],_143542),to(_143972,_143580)))).
 1158% Into: l_events(happens(drive(_143538,[_143478-_143480|_143512],_143542),_143578,_143580),[holds(location(_143538,_143708,_143478),_145796),on(_143708,_143480),next(_143708,_143478,_143838),on(_143838,_143480),happens(step(_143538),_143578,_143972),happens(drive(_143538,[_143478-_143480|_143512],_143542),_143972,_143580)]).
 1159
 1160% LPS:  if(from(drive(_146694,[_146566-_146568,_146634-_146636|_146668],_146698),to(_146734,_146736)),(location(_146694,_146864,_146566),on(_146864,_146568),on(_146864,_146636),from(turn(_146694,_146634),to(_146734,_147072)),from(drive(_146694,[_146634-_146636|_146668],_146698),to(_147072,_146736)))).
 1161% Into: l_events(happens(drive(_146694,[_146566-_146568,_146634-_146636|_146668],_146698),_146734,_146736),[holds(location(_146694,_146864,_146566),_148876),on(_146864,_146568),on(_146864,_146636),happens(turn(_146694,_146634),_146734,_147072),happens(drive(_146694,[_146634-_146636|_146668],_146698),_147072,_146736)]).
 1162% /pack/logicmoo_ec/test/lps_user_examples/self-driving cars.pl:83
 1163% pop_lps_dialect('$BLOB'("<stream>(0x562ef3ca3900)"),  (/.../(lps_user_examples, 'self-driving cars.pl')-> /.../(lps_user_examples, 'self-driving cars.pl'))).
 1164% ops.
 1165% :-listing('/pack/logicmoo_ec/test/lps_user_examples/self-driving cars.pl':_166774).
 1166
 1167
 1168d(location(mycar, X-Y, Heading), [type:circle, center:[XX, YY], radius:5, fillColor:blue]) :-
 1169    XX is X*10+5,
 1170    YY is Y*10+5.
 1171d(location(yourcar, X-Y, Heading), [type:circle, center:[XX, YY], radius:5, fillColor:red]) :-
 1172    XX is X*10+5,
 1173    YY is Y*10+5.
 1174d(timeless, A) :-
 1175    findall([ type:rectangle,
 1176              from:[B, C],
 1177              to:[D, E],
 1178              fillColor:yellow
 1179            ],
 1180            ( place(F-G),
 1181              not(on(F-G, _)),
 1182              B is F*10,
 1183              C is G*10,
 1184              D is B+10,
 1185              E is C+10
 1186            ),
 1187            A).
 1188
 1189fluents([location(_, _, _)]).
 1190
 1191next(X-Y1, northward, X-Y2) :-
 1192    Y2 is Y1+1.
 1193next(X-Y1, southward, X-Y2) :-
 1194    Y2 is Y1-1.
 1195next(X1-Y, eastward, X2-Y) :-
 1196    X2 is X1+1.
 1197next(X1-Y, westward, X2-Y) :-
 1198    X2 is X1-1.
 1199
 1200directions(2-1, [northward-westStreet, eastward-northStreet], 9-9).
 1201directions(9-9, [westward-northStreet, southward-westStreet], 2-1).
 1202
 1203reactive_rule([happens(destination(A, B), _, C), holds(location(A, D, _), C), directions(D, E, B)], [happens(drive(A, E, B), C, _)]).
 1204
 1205initial_state([location(mycar, 2-1, northward), location(yourcar, 9-9, westward)]).
 1206
 1207l_events(happens(drive(A, _, B), C, C), [holds(location(A, B, _), C)]).
 1208l_events(happens(drive(A, [B-C|D], E), F, G), [holds(location(A, H, B), _), on(H, C), next(H, B, I), on(I, C), happens(step(A), F, J), happens(drive(A, [B-C|D], E), J, G)]).
 1209l_events(happens(drive(A, [B-C, D-E|F], G), H, I), [holds(location(A, J, B), _), on(J, C), on(J, E), happens(turn(A, D), H, K), happens(drive(A, [D-E|F], G), K, I)]).
 1210
 1211:- dynamic actions/1. 1212:- multifile actions/1. 1213
 1214actions([step(A), turn(A, _)]).
 1215
 1216on(X-5, mainStreet) :-
 1217    3=<X,
 1218    X=<10.
 1219on(X-9, northStreet) :-
 1220    2=<X,
 1221    X=<9.
 1222on(6-Y, highStreet) :-
 1223    1=<Y,
 1224    Y=<9.
 1225on(2-Y, westStreet) :-
 1226    1=<Y,
 1227    Y=<9.
 1228on(8-Y, eastStreet) :-
 1229    1=<Y,
 1230    Y=<9.
 1231
 1232events([destination(_, _)]).
 1233
 1234updated(happens(step(A), _, _), location(A, B, C), B-D, [next(B, C, D)]).
 1235updated(happens(turn(A, B), _, _), location(A, _, C), C-B, []).
 1236
 1237maxTime(20).
 1238
 1239observe([destination(mycar, 9-9)], 3).
 1240observe([destination(yourcar, 2-1)], 4).
 1241
 1242place(X-Y) :-
 1243    member(X, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]),
 1244    member(Y, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]).
 1245% dB(/.../(lps_user_examples, 'self-driving cars.pl'), lps_visualization(_209334{groups:[_200598{content:"Events", id:"event", order:1}, _200672{content:"location(A,B,C)", id:"location/3", order:3, subgroupStack:"false"}, _200738{content:"Actions", id:"action", order:4}], items:[_200860{content:"mycar,2-1,northward", end:4, group:"location/3", id:0, start:1, subgroup:"mycar", title:"Fluent location(mycar,2-1,northward) initiated at 1<br/>and terminated at transition to 4"}, _200986{content:"mycar,2-2,northward", end:5, group:"location/3", id:1, start:4, subgroup:"mycar", title:"Fluent location(mycar,2-2,northward) initiated at 4<br/>and terminated at transition to 5"}, _201112{content:"mycar,2-3,northward", end:6, group:"location/3", id:2, start:5, subgroup:"mycar", title:"Fluent location(mycar,2-3,northward) initiated at 5<br/>and terminated at transition to 6"}, _201238{content:"mycar,2-4,northward", end:7, group:"location/3", id:3, start:6, subgroup:"mycar", title:"Fluent location(mycar,2-4,northward) initiated at 6<br/>and terminated at transition to 7"}, _201364{content:"mycar,2-5,northward", end:8, group:"location/3", id:4, start:7, subgroup:"mycar", title:"Fluent location(mycar,2-5,northward) initiated at 7<br/>and terminated at transition to 8"}, _201490{content:"mycar,2-6,northward", end:9, group:"location/3", id:5, start:8, subgroup:"mycar", title:"Fluent location(mycar,2-6,northward) initiated at 8<br/>and terminated at transition to 9"}, _201616{content:"mycar,2-7,northward", end:10, group:"location/3", id:6, start:9, subgroup:"mycar", title:"Fluent location(mycar,2-7,northward) initiated at 9<br/>and terminated at transition to 10"}, _201742{content:"mycar,2-8,northward", end:11, group:"location/3", id:7, start:10, subgroup:"mycar", title:"Fluent location(mycar,2-8,northward) initiated at 10<br/>and terminated at transition to 11"}, _201868{content:"mycar,2-9,eastward", end:13, group:"location/3", id:8, start:12, subgroup:"mycar", title:"Fluent location(mycar,2-9,eastward) initiated at 12<br/>and terminated at transition to 13"}, _201994{content:"mycar,2-9,northward", end:12, group:"location/3", id:9, start:11, subgroup:"mycar", title:"Fluent location(mycar,2-9,northward) initiated at 11<br/>and terminated at transition to 12"}, _202120{content:"mycar,3-9,eastward", end:14, group:"location/3", id:10, start:13, subgroup:"mycar", title:"Fluent location(mycar,3-9,eastward) initiated at 13<br/>and terminated at transition to 14"}, _202246{content:"mycar,4-9,eastward", end:15, group:"location/3", id:11, start:14, subgroup:"mycar", title:"Fluent location(mycar,4-9,eastward) initiated at 14<br/>and terminated at transition to 15"}, _202372{content:"mycar,5-9,eastward", end:16, group:"location/3", id:12, start:15, subgroup:"mycar", title:"Fluent location(mycar,5-9,eastward) initiated at 15<br/>and terminated at transition to 16"}, _202498{content:"mycar,6-9,eastward", end:17, group:"location/3", id:13, start:16, subgroup:"mycar", title:"Fluent location(mycar,6-9,eastward) initiated at 16<br/>and terminated at transition to 17"}, _202624{content:"mycar,7-9,eastward", end:18, group:"location/3", id:14, start:17, subgroup:"mycar", title:"Fluent location(mycar,7-9,eastward) initiated at 17<br/>and terminated at transition to 18"}, _202750{content:"mycar,8-9,eastward", end:19, group:"location/3", id:15, start:18, subgroup:"mycar", title:"Fluent location(mycar,8-9,eastward) initiated at 18<br/>and terminated at transition to 19"}, _202876{content:"mycar,9-9,eastward", end:21, group:"location/3", id:16, start:19, subgroup:"mycar", title:"Fluent location(mycar,9-9,eastward) initiated at 19<br/>and terminated at transition to 21"}, _203002{content:"yourcar,2-1,southward", end:21, group:"location/3", id:17, start:20, subgroup:"yourcar", title:"Fluent location(yourcar,2-1,southward) initiated at 20<br/>and terminated at transition to 21"}, _203128{content:"yourcar,2-2,southward", end:20, group:"location/3", id:18, start:19, subgroup:"yourcar", title:"Fluent location(yourcar,2-2,southward) initiated at 19<br/>and terminated at transition to 20"}, _203254{content:"yourcar,2-3,southward", end:19, group:"location/3", id:19, start:18, subgroup:"yourcar", title:"Fluent location(yourcar,2-3,southward) initiated at 18<br/>and terminated at transition to 19"}, _203380{content:"yourcar,2-4,southward", end:18, group:"location/3", id:20, start:17, subgroup:"yourcar", title:"Fluent location(yourcar,2-4,southward) initiated at 17<br/>and terminated at transition to 18"}, _203506{content:"yourcar,2-5,southward", end:17, group:"location/3", id:21, start:16, subgroup:"yourcar", title:"Fluent location(yourcar,2-5,southward) initiated at 16<br/>and terminated at transition to 17"}, _203632{content:"yourcar,2-6,southward", end:16, group:"location/3", id:22, start:15, subgroup:"yourcar", title:"Fluent location(yourcar,2-6,southward) initiated at 15<br/>and terminated at transition to 16"}, _203758{content:"yourcar,2-7,southward", end:15, group:"location/3", id:23, start:14, subgroup:"yourcar", title:"Fluent location(yourcar,2-7,southward) initiated at 14<br/>and terminated at transition to 15"}, _203884{content:"yourcar,2-8,southward", end:14, group:"location/3", id:24, start:13, subgroup:"yourcar", title:"Fluent location(yourcar,2-8,southward) initiated at 13<br/>and terminated at transition to 14"}, _204010{content:"yourcar,2-9,southward", end:13, group:"location/3", id:25, start:12, subgroup:"yourcar", title:"Fluent location(yourcar,2-9,southward) initiated at 12<br/>and terminated at transition to 13"}, _204136{content:"yourcar,2-9,westward", end:12, group:"location/3", id:26, start:11, subgroup:"yourcar", title:"Fluent location(yourcar,2-9,westward) initiated at 11<br/>and terminated at transition to 12"}, _204262{content:"yourcar,3-9,westward", end:11, group:"location/3", id:27, start:10, subgroup:"yourcar", title:"Fluent location(yourcar,3-9,westward) initiated at 10<br/>and terminated at transition to 11"}, _204388{content:"yourcar,4-9,westward", end:10, group:"location/3", id:28, start:9, subgroup:"yourcar", title:"Fluent location(yourcar,4-9,westward) initiated at 9<br/>and terminated at transition to 10"}, _204514{content:"yourcar,5-9,westward", end:9, group:"location/3", id:29, start:8, subgroup:"yourcar", title:"Fluent location(yourcar,5-9,westward) initiated at 8<br/>and terminated at transition to 9"}, _204640{content:"yourcar,6-9,westward", end:8, group:"location/3", id:30, start:7, subgroup:"yourcar", title:"Fluent location(yourcar,6-9,westward) initiated at 7<br/>and terminated at transition to 8"}, _204766{content:"yourcar,7-9,westward", end:7, group:"location/3", id:31, start:6, subgroup:"yourcar", title:"Fluent location(yourcar,7-9,westward) initiated at 6<br/>and terminated at transition to 7"}, _204892{content:"yourcar,8-9,westward", end:6, group:"location/3", id:32, start:5, subgroup:"yourcar", title:"Fluent location(yourcar,8-9,westward) initiated at 5<br/>and terminated at transition to 6"}, _205018{content:"yourcar,9-9,westward", end:5, group:"location/3", id:33, start:1, subgroup:"yourcar", title:"Fluent location(yourcar,9-9,westward) initiated at 1<br/>and terminated at transition to 5"}, _205144{content:"destination(mycar,9-9)", group:"event", id:34, start:3, style:"color:#E19735", title:"happens(destination(mycar,9-9),2,3)", type:"point"}, _205270{content:"destination(yourcar,2-1)", group:"event", id:35, start:4, style:"color:#E19735", title:"happens(destination(yourcar,2-1),3,4)", type:"point"}, _205396{content:"step(mycar)", group:"action", id:36, start:4, style:"color:green", title:"happens(step(mycar),3,4)", type:"point"}, _205522{content:"step(mycar)", group:"action", id:37, start:5, style:"color:green", title:"happens(step(mycar),4,5)", type:"point"}, _205648{content:"step(yourcar)", group:"action", id:38, start:5, style:"color:green", title:"happens(step(yourcar),4,5)", type:"point"}, _205774{content:"step(yourcar)", group:"action", id:39, start:6, style:"color:green", title:"happens(step(yourcar),5,6)", type:"point"}, _205900{content:"step(mycar)", group:"action", id:40, start:6, style:"color:green", title:"happens(step(mycar),5,6)", type:"point"}, _206026{content:"step(mycar)", group:"action", id:41, start:7, style:"color:green", title:"happens(step(mycar),6,7)", type:"point"}, _206152{content:"step(yourcar)", group:"action", id:42, start:7, style:"color:green", title:"happens(step(yourcar),6,7)", type:"point"}, _206278{content:"step(yourcar)", group:"action", id:43, start:8, style:"color:green", title:"happens(step(yourcar),7,8)", type:"point"}, _206404{content:"step(mycar)", group:"action", id:44, start:8, style:"color:green", title:"happens(step(mycar),7,8)", type:"point"}, _206530{content:"step(mycar)", group:"action", id:45, start:9, style:"color:green", title:"happens(step(mycar),8,9)", type:"point"}, _206656{content:"step(yourcar)", group:"action", id:46, start:9, style:"color:green", title:"happens(step(yourcar),8,9)", type:"point"}, _206782{content:"step(yourcar)", group:"action", id:47, start:10, style:"color:green", title:"happens(step(yourcar),9,10)", type:"point"}, _206908{content:"step(mycar)", group:"action", id:48, start:10, style:"color:green", title:"happens(step(mycar),9,10)", type:"point"}, _207034{content:"step(mycar)", group:"action", id:49, start:11, style:"color:green", title:"happens(step(mycar),10,11)", type:"point"}, _207160{content:"step(yourcar)", group:"action", id:50, start:11, style:"color:green", title:"happens(step(yourcar),10,11)", type:"point"}, _207286{content:"turn(yourcar,southward)", group:"action", id:51, start:12, style:"color:green", title:"happens(turn(yourcar,southward),11,12)", type:"point"}, _207412{content:"turn(mycar,eastward)", group:"action", id:52, start:12, style:"color:green", title:"happens(turn(mycar,eastward),11,12)", type:"point"}, _207538{content:"step(mycar)", group:"action", id:53, start:13, style:"color:green", title:"happens(step(mycar),12,13)", type:"point"}, _207664{content:"step(yourcar)", group:"action", id:54, start:13, style:"color:green", title:"happens(step(yourcar),12,13)", type:"point"}, _207790{content:"step(yourcar)", group:"action", id:55, start:14, style:"color:green", title:"happens(step(yourcar),13,14)", type:"point"}, _207916{content:"step(mycar)", group:"action", id:56, start:14, style:"color:green", title:"happens(step(mycar),13,14)", type:"point"}, _208042{content:"step(mycar)", group:"action", id:57, start:15, style:"color:green", title:"happens(step(mycar),14,15)", type:"point"}, _208168{content:"step(yourcar)", group:"action", id:58, start:15, style:"color:green", title:"happens(step(yourcar),14,15)", type:"point"}, _208294{content:"step(yourcar)", group:"action", id:59, start:16, style:"color:green", title:"happens(step(yourcar),15,16)", type:"point"}, _208420{content:"step(mycar)", group:"action", id:60, start:16, style:"color:green", title:"happens(step(mycar),15,16)", type:"point"}, _208546{content:"step(mycar)", group:"action", id:61, start:17, style:"color:green", title:"happens(step(mycar),16,17)", type:"point"}, _208672{content:"step(yourcar)", group:"action", id:62, start:17, style:"color:green", title:"happens(step(yourcar),16,17)", type:"point"}, _208798{content:"step(yourcar)", group:"action", id:63, start:18, style:"color:green", title:"happens(step(yourcar),17,18)", type:"point"}, _208924{content:"step(mycar)", group:"action", id:64, start:18, style:"color:green", title:"happens(step(mycar),17,18)", type:"point"}, _209050{content:"step(mycar)", group:"action", id:65, start:19, style:"color:green", title:"happens(step(mycar),18,19)", type:"point"}, _209176{content:"step(yourcar)", group:"action", id:66, start:19, style:"color:green", title:"happens(step(yourcar),18,19)", type:"point"}, _209302{content:"step(yourcar)", group:"action", id:67, start:20, style:"color:green", title:"happens(step(yourcar),19,20)", type:"point"}]}, _326008{cycles:[[_320404{create:[_313182{fillColor:"yellow", from:[10, 10], id:"timeless", to:[20, 20], type:"rectangle"}, _313300{fillColor:"yellow", from:[10, 20], id:"timeless", to:[20, 30], type:"rectangle"}, _313418{fillColor:"yellow", from:[10, 30], id:"timeless", to:[20, 40], type:"rectangle"}, _313536{fillColor:"yellow", from:[10, 40], id:"timeless", to:[20, 50], type:"rectangle"}, _313654{fillColor:"yellow", from:[10, 50], id:"timeless", to:[20, 60], type:"rectangle"}, _313772{fillColor:"yellow", from:[10, 60], id:"timeless", to:[20, 70], type:"rectangle"}, _313890{fillColor:"yellow", from:[10, 70], id:"timeless", to:[20, 80], type:"rectangle"}, _314008{fillColor:"yellow", from:[10, 80], id:"timeless", to:[20, 90], type:"rectangle"}, _314126{fillColor:"yellow", from:[10, 90], id:"timeless", to:[20, 100], type:"rectangle"}, _314244{fillColor:"yellow", from:[10, 100], id:"timeless", to:[20, 110], type:"rectangle"}, _314362{fillColor:"yellow", from:[20, 100], id:"timeless", to:[30, 110], type:"rectangle"}, _314480{fillColor:"yellow", from:[30, 10], id:"timeless", to:[40, 20], type:"rectangle"}, _314598{fillColor:"yellow", from:[30, 20], id:"timeless", to:[40, 30], type:"rectangle"}, _314716{fillColor:"yellow", from:[30, 30], id:"timeless", to:[40, 40], type:"rectangle"}, _314834{fillColor:"yellow", from:[30, 40], id:"timeless", to:[40, 50], type:"rectangle"}, _314952{fillColor:"yellow", from:[30, 60], id:"timeless", to:[40, 70], type:"rectangle"}, _315070{fillColor:"yellow", from:[30, 70], id:"timeless", to:[40, 80], type:"rectangle"}, _315188{fillColor:"yellow", from:[30, 80], id:"timeless", to:[40, 90], type:"rectangle"}, _315306{fillColor:"yellow", from:[30, 100], id:"timeless", to:[40, 110], type:"rectangle"}, _315424{fillColor:"yellow", from:[40, 10], id:"timeless", to:[50, 20], type:"rectangle"}, _315542{fillColor:"yellow", from:[40, 20], id:"timeless", to:[50, 30], type:"rectangle"}, _315660{fillColor:"yellow", from:[40, 30], id:"timeless", to:[50, 40], type:"rectangle"}, _315778{fillColor:"yellow", from:[40, 40], id:"timeless", to:[50, 50], type:"rectangle"}, _315896{fillColor:"yellow", from:[40, 60], id:"timeless", to:[50, 70], type:"rectangle"}, _316014{fillColor:"yellow", from:[40, 70], id:"timeless", to:[50, 80], type:"rectangle"}, _316132{fillColor:"yellow", from:[40, 80], id:"timeless", to:[50, 90], type:"rectangle"}, _316250{fillColor:"yellow", from:[40, 100], id:"timeless", to:[50, 110], type:"rectangle"}, _316368{fillColor:"yellow", from:[50, 10], id:"timeless", to:[60, 20], type:"rectangle"}, _316486{fillColor:"yellow", from:[50, 20], id:"timeless", to:[60, 30], type:"rectangle"}, _316604{fillColor:"yellow", from:[50, 30], id:"timeless", to:[60, 40], type:"rectangle"}, _316722{fillColor:"yellow", from:[50, 40], id:"timeless", to:[60, 50], type:"rectangle"}, _316840{fillColor:"yellow", from:[50, 60], id:"timeless", to:[60, 70], type:"rectangle"}, _316958{fillColor:"yellow", from:[50, 70], id:"timeless", to:[60, 80], type:"rectangle"}, _317076{fillColor:"yellow", from:[50, 80], id:"timeless", to:[60, 90], type:"rectangle"}, _317194{fillColor:"yellow", from:[50, 100], id:"timeless", to:[60, 110], type:"rectangle"}, _317312{fillColor:"yellow", from:[60, 100], id:"timeless", to:[70, 110], type:"rectangle"}, _317430{fillColor:"yellow", from:[70, 10], id:"timeless", to:[80, 20], type:"rectangle"}, _317548{fillColor:"yellow", from:[70, 20], id:"timeless", to:[80, 30], type:"rectangle"}, _317666{fillColor:"yellow", from:[70, 30], id:"timeless", to:[80, 40], type:"rectangle"}, _317784{fillColor:"yellow", from:[70, 40], id:"timeless", to:[80, 50], type:"rectangle"}, _317902{fillColor:"yellow", from:[70, 60], id:"timeless", to:[80, 70], type:"rectangle"}, _318020{fillColor:"yellow", from:[70, 70], id:"timeless", to:[80, 80], type:"rectangle"}, _318138{fillColor:"yellow", from:[70, 80], id:"timeless", to:[80, 90], type:"rectangle"}, _318256{fillColor:"yellow", from:[70, 100], id:"timeless", to:[80, 110], type:"rectangle"}, _318374{fillColor:"yellow", from:[80, 100], id:"timeless", to:[90, 110], type:"rectangle"}, _318492{fillColor:"yellow", from:[90, 10], id:"timeless", to:[100, 20], type:"rectangle"}, _318610{fillColor:"yellow", from:[90, 20], id:"timeless", to:[100, 30], type:"rectangle"}, _318728{fillColor:"yellow", from:[90, 30], id:"timeless", to:[100, 40], type:"rectangle"}, _318846{fillColor:"yellow", from:[90, 40], id:"timeless", to:[100, 50], type:"rectangle"}, _318964{fillColor:"yellow", from:[90, 60], id:"timeless", to:[100, 70], type:"rectangle"}, _319082{fillColor:"yellow", from:[90, 70], id:"timeless", to:[100, 80], type:"rectangle"}, _319200{fillColor:"yellow", from:[90, 80], id:"timeless", to:[100, 90], type:"rectangle"}, _319318{fillColor:"yellow", from:[90, 100], id:"timeless", to:[100, 110], type:"rectangle"}, _319436{fillColor:"yellow", from:[100, 10], id:"timeless", to:[110, 20], type:"rectangle"}, _319554{fillColor:"yellow", from:[100, 20], id:"timeless", to:[110, 30], type:"rectangle"}, _319672{fillColor:"yellow", from:[100, 30], id:"timeless", to:[110, 40], type:"rectangle"}, _319790{fillColor:"yellow", from:[100, 40], id:"timeless", to:[110, 50], type:"rectangle"}, _319908{fillColor:"yellow", from:[100, 60], id:"timeless", to:[110, 70], type:"rectangle"}, _320026{fillColor:"yellow", from:[100, 70], id:"timeless", to:[110, 80], type:"rectangle"}, _320144{fillColor:"yellow", from:[100, 80], id:"timeless", to:[110, 90], type:"rectangle"}, _320262{fillColor:"yellow", from:[100, 90], id:"timeless", to:[110, 100], type:"rectangle"}, _320380{fillColor:"yellow", from:[100, 100], id:"timeless", to:[110, 110], type:"rectangle"}]}], [_320540{create:_320516{center:[25, 15], fillColor:"blue", id:"location(mycar,2-1,northward)", radius:5, type:"circle"}}, _320670{create:_320646{center:[95, 95], fillColor:"red", id:"location(yourcar,9-9,westward)", radius:5, type:"circle"}}], [], [], [_320818{create:_320794{center:[25, 25], fillColor:"blue", id:"location(mycar,2-2,northward)", radius:5, type:"circle"}}, _320848{kill:"location(mycar,2-1,northward)"}], [_320984{create:_320960{center:[25, 35], fillColor:"blue", id:"location(mycar,2-3,northward)", radius:5, type:"circle"}}, _321114{create:_321090{center:[85, 95], fillColor:"red", id:"location(yourcar,8-9,westward)", radius:5, type:"circle"}}, _321144{kill:"location(mycar,2-2,northward)"}, _321174{kill:"location(yourcar,9-9,westward)"}], [_321310{create:_321286{center:[25, 45], fillColor:"blue", id:"location(mycar,2-4,northward)", radius:5, type:"circle"}}, _321440{create:_321416{center:[75, 95], fillColor:"red", id:"location(yourcar,7-9,westward)", radius:5, type:"circle"}}, _321470{kill:"location(mycar,2-3,northward)"}, _321500{kill:"location(yourcar,8-9,westward)"}], [_321636{create:_321612{center:[25, 55], fillColor:"blue", id:"location(mycar,2-5,northward)", radius:5, type:"circle"}}, _321766{create:_321742{center:[65, 95], fillColor:"red", id:"location(yourcar,6-9,westward)", radius:5, type:"circle"}}, _321796{kill:"location(mycar,2-4,northward)"}, _321826{kill:"location(yourcar,7-9,westward)"}], [_321962{create:_321938{center:[25, 65], fillColor:"blue", id:"location(mycar,2-6,northward)", radius:5, type:"circle"}}, _322092{create:_322068{center:[55, 95], fillColor:"red", id:"location(yourcar,5-9,westward)", radius:5, type:"circle"}}, _322122{kill:"location(mycar,2-5,northward)"}, _322152{kill:"location(yourcar,6-9,westward)"}], [_322288{create:_322264{center:[25, 75], fillColor:"blue", id:"location(mycar,2-7,northward)", radius:5, type:"circle"}}, _322418{create:_322394{center:[45, 95], fillColor:"red", id:"location(yourcar,4-9,westward)", radius:5, type:"circle"}}, _322448{kill:"location(mycar,2-6,northward)"}, _322478{kill:"location(yourcar,5-9,westward)"}], [_322614{create:_322590{center:[25, 85], fillColor:"blue", id:"location(mycar,2-8,northward)", radius:5, type:"circle"}}, _322744{create:_322720{center:[35, 95], fillColor:"red", id:"location(yourcar,3-9,westward)", radius:5, type:"circle"}}, _322774{kill:"location(mycar,2-7,northward)"}, _322804{kill:"location(yourcar,4-9,westward)"}], [_322940{create:_322916{center:[25, 95], fillColor:"blue", id:"location(mycar,2-9,northward)", radius:5, type:"circle"}}, _323070{create:_323046{center:[25, 95], fillColor:"red", id:"location(yourcar,2-9,westward)", radius:5, type:"circle"}}, _323100{kill:"location(mycar,2-8,northward)"}, _323130{kill:"location(yourcar,3-9,westward)"}], [_323266{create:_323242{center:[25, 95], fillColor:"blue", id:"location(mycar,2-9,eastward)", radius:5, type:"circle"}}, _323396{create:_323372{center:[25, 95], fillColor:"red", id:"location(yourcar,2-9,southward)", radius:5, type:"circle"}}, _323426{kill:"location(mycar,2-9,northward)"}, _323456{kill:"location(yourcar,2-9,westward)"}], [_323592{create:_323568{center:[35, 95], fillColor:"blue", id:"location(mycar,3-9,eastward)", radius:5, type:"circle"}}, _323722{create:_323698{center:[25, 85], fillColor:"red", id:"location(yourcar,2-8,southward)", radius:5, type:"circle"}}, _323752{kill:"location(mycar,2-9,eastward)"}, _323782{kill:"location(yourcar,2-9,southward)"}], [_323918{create:_323894{center:[45, 95], fillColor:"blue", id:"location(mycar,4-9,eastward)", radius:5, type:"circle"}}, _324048{create:_324024{center:[25, 75], fillColor:"red", id:"location(yourcar,2-7,southward)", radius:5, type:"circle"}}, _324078{kill:"location(mycar,3-9,eastward)"}, _324108{kill:"location(yourcar,2-8,southward)"}], [_324244{create:_324220{center:[55, 95], fillColor:"blue", id:"location(mycar,5-9,eastward)", radius:5, type:"circle"}}, _324374{create:_324350{center:[25, 65], fillColor:"red", id:"location(yourcar,2-6,southward)", radius:5, type:"circle"}}, _324404{kill:"location(mycar,4-9,eastward)"}, _324434{kill:"location(yourcar,2-7,southward)"}], [_324570{create:_324546{center:[65, 95], fillColor:"blue", id:"location(mycar,6-9,eastward)", radius:5, type:"circle"}}, _324700{create:_324676{center:[25, 55], fillColor:"red", id:"location(yourcar,2-5,southward)", radius:5, type:"circle"}}, _324730{kill:"location(mycar,5-9,eastward)"}, _324760{kill:"location(yourcar,2-6,southward)"}], [_324896{create:_324872{center:[75, 95], fillColor:"blue", id:"location(mycar,7-9,eastward)", radius:5, type:"circle"}}, _325026{create:_325002{center:[25, 45], fillColor:"red", id:"location(yourcar,2-4,southward)", radius:5, type:"circle"}}, _325056{kill:"location(mycar,6-9,eastward)"}, _325086{kill:"location(yourcar,2-5,southward)"}], [_325222{create:_325198{center:[85, 95], fillColor:"blue", id:"location(mycar,8-9,eastward)", radius:5, type:"circle"}}, _325352{create:_325328{center:[25, 35], fillColor:"red", id:"location(yourcar,2-3,southward)", radius:5, type:"circle"}}, _325382{kill:"location(mycar,7-9,eastward)"}, _325412{kill:"location(yourcar,2-4,southward)"}], [_325548{create:_325524{center:[95, 95], fillColor:"blue", id:"location(mycar,9-9,eastward)", radius:5, type:"circle"}}, _325678{create:_325654{center:[25, 25], fillColor:"red", id:"location(yourcar,2-2,southward)", radius:5, type:"circle"}}, _325708{kill:"location(mycar,8-9,eastward)"}, _325738{kill:"location(yourcar,2-3,southward)"}], [_325874{create:_325850{center:[25, 15], fillColor:"red", id:"location(yourcar,2-1,southward)", radius:5, type:"circle"}}, _325904{kill:"location(yourcar,2-2,southward)"}], [_325940{kill:"location(mycar,9-9,eastward)"}, _325970{kill:"location(yourcar,2-1,southward)"}, _326000{kill:"timeless"}]]})).
 1246% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'semantic_graphs.pl')).
 1247% run_lps_corner_file1(/.../(lps_user_examples, 'semantic_graphs.pl')).
 1248% /pack/logicmoo_ec/test/lps_user_examples/semantic_graphs.pl:1
 1249% push_lps_dialect.
 1250% ops.
 1251% [ti=user, load= /.../(lps_user_examples, 'semantic_graphs.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'semantic_graphs.pl'), lps= /.../(lps_user_examples, 'semantic_graphs.pl'), using= /.../(lps_user_examples, 'semantic_graphs.pl')].
 1252% continue_lps_dialect.
 1253% ops.
 1254% /pack/logicmoo_ec/test/lps_user_examples/semantic_graphs.pl:17
 1255% pop_lps_dialect('$BLOB'("<stream>(0x562ef33a9400)"),  (/.../(lps_user_examples, 'semantic_graphs.pl')-> /.../(lps_user_examples, 'semantic_graphs.pl'))).
 1256% ops.
 1257% :-listing('/pack/logicmoo_ec/test/lps_user_examples/semantic_graphs.pl':_104690).
 1258
 1259
 1260lf_graph(LogicalForm, dot(digraph(Edges))) :-
 1261    findall(edge((From->To), [label=Relation]),
 1262            ( member(P, LogicalForm),
 1263              P=..[Relation, From_, To_],
 1264              term_string(From_, From),
 1265              term_string(To_, To)
 1266            ),
 1267            Edges).
 1268
 1269:- dynamic'swish renderer'/2. 1270
 1271'swish renderer'(graphviz, []).
 1272
 1273:- dynamic actions/1. 1274:- multifile actions/1. 1275
 1276% dB(/.../(lps_user_examples, 'semantic_graphs.pl'), lps_visualization(_44390{groups:[], items:[]}, [])).
 1277% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'Simpified contaminated doesn\'t work.pl')).
 1278% run_lps_corner_file1(/.../(lps_user_examples, 'Simpified contaminated doesn\'t work.pl')).
 1279% /pack/logicmoo_ec/test/lps_user_examples/Simpified contaminated doesn't work.pl:1
 1280% push_lps_dialect.
 1281% ops.
 1282% [ti=user, load= /.../(lps_user_examples, 'Simpified contaminated doesn\'t work.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'Simpified contaminated doesn\'t work.pl'), lps= /.../(lps_user_examples, 'Simpified contaminated doesn\'t work.pl'), using= /.../(lps_user_examples, 'Simpified contaminated doesn\'t work.pl')].
 1283% continue_lps_dialect.
 1284% ops.
 1285
 1286% LPS:  fluents((contaminated/3,infected/3,met/3,tested/3)).
 1287% Into: fluents([contaminated(_21328,_21330,_21332),infected(_21342,_21344,_21346),met(_21356,_21358,_21360),tested(_21370,_21372,_21374)]).
 1288
 1289% LPS:  events((test(_21226,_21228,_21230),meets(_21226,_21300,_21230))).
 1290% Into: events([test(_21226,_21228,_21230),meets(_21226,_21300,_21230)]).
 1291
 1292% LPS:  actions(notify/3).
 1293% Into: actions([notify(_23482,_23484,_23486)]).
 1294
 1295% LPS:  initiates(meets(_23498,_23500,_23502),met(_23498,_23500,_23502)).
 1296% Into: initiated(happens(meets(_23498,_23500,_23502),_24722,_24728),met(_23498,_23500,_23502),[]).
 1297
 1298% LPS:  initiates(meets(_24678,_24680,_24682),met(_24680,_24678,_24682)).
 1299% Into: initiated(happens(meets(_24678,_24680,_24682),_25902,_25908),met(_24680,_24678,_24682),[]).
 1300
 1301% LPS:  initiates(test(_25858,_25860,_25862),tested(_25858,_25860,_25862)).
 1302% Into: initiated(happens(test(_25858,_25860,_25862),_27082,_27088),tested(_25858,_25860,_25862),[]).
 1303
 1304% LPS:  if(contaminated(_27082,_27084,_27086),(tested(_27082,positive,_27158),two_week_after(_27158,_27086),five_days_before(_27084,_27158))).
 1305% Into: l_int(holds(contaminated(_27082,_27084,_27086),_28428),[holds(tested(_27082,positive,_27158),_28428),two_week_after(_27158,_27086),five_days_before(_27084,_27158)]).
 1306
 1307% LPS:  if(contaminated(_29640,_29642,_29644),(met(_29640,_29714,_29642),contaminated(_29714,_29786,_29788),within(_29786,_29642,_29788),five_days_after(_29642,_29916),two_week_after(_29642,_29644))).
 1308% Into: l_int(holds(contaminated(_29640,_29642,_29644),_31258),[holds(met(_29640,_29714,_29642),_31258),holds(contaminated(_29714,_29786,_29788),_31258),within(_29786,_29642,_29788),five_days_after(_29642,_29916),two_week_after(_29642,_29644)]).
 1309
 1310% LPS:  observe(from(meets(gertrude,alice,date(2020,3,15,0,0,0,0,'UTC',-)),to(2,3))).
 1311% Into: observe([meets(gertrude,alice,date(2020,3,15,0,0,0,0,'UTC',-))],3).
 1312
 1313% LPS:  observe(from(test(alice,positive,date(2020,3,14,0,0,0,0,'UTC',-)),to(4,5))).
 1314% Into: observe([test(alice,positive,date(2020,3,14,0,0,0,0,'UTC',-))],5).
 1315% /pack/logicmoo_ec/test/lps_user_examples/Simpified contaminated doesn't work.pl:109
 1316% pop_lps_dialect('$BLOB'("<stream>(0x562ef3ca4f00)"),  (/.../(lps_user_examples, 'Simpified contaminated doesn\'t work.pl')-> /.../(lps_user_examples, 'Simpified contaminated doesn\'t work.pl'))).
 1317% ops.
 1318% :-listing('/pack/logicmoo_ec/test/lps_user_examples/Simpified contaminated doesn\'t work.pl':_59124).
 1319
 1320
 1321initiated(happens(meets(A, B, C), _, _), met(A, B, C), []).
 1322initiated(happens(meets(A, B, C), _, _), met(B, A, C), []).
 1323initiated(happens(test(A, B, C), _, _), tested(A, B, C), []).
 1324
 1325fluents([contaminated(_, _, _), infected(_, _, _), met(_, _, _), tested(_, _, _)]).
 1326
 1327l_int(holds(contaminated(A, B, C), D), [holds(tested(A, positive, E), D), two_week_after(E, C), five_days_before(B, E)]).
 1328l_int(holds(contaminated(A, B, C), D), [holds(met(A, E, B), D), holds(contaminated(E, F, G), D), within(F, B, G), five_days_after(B, _), two_week_after(B, C)]).
 1329
 1330two_week_after(date(Y, M, D, H, Mn, S, Off, TZ, DST), Date2) :-
 1331    nonvar(D),
 1332    NewD is D+15,
 1333    date_time_stamp(date(Y,
 1334                         M,
 1335                         NewD,
 1336                         H,
 1337                         Mn,
 1338                         S,
 1339                         Off,
 1340                         TZ,
 1341                         DST),
 1342                    Stamp),
 1343    stamp_date_time(Stamp, Date2, 0).
 1344two_week_after(Date2, date(Y, M, D, H, Mn, S, Off, TZ, DST)) :-
 1345    nonvar(D),
 1346    NewD is D+ -15,
 1347    date_time_stamp(date(Y,
 1348                         M,
 1349                         NewD,
 1350                         H,
 1351                         Mn,
 1352                         S,
 1353                         Off,
 1354                         TZ,
 1355                         DST),
 1356                    Stamp),
 1357    stamp_date_time(Stamp, Date2, 0).
 1358
 1359within(Date1, T, Date2) :-
 1360    nonvar(Date1),
 1361    nonvar(Date2),
 1362    nonvar(T),
 1363    date_time_stamp(Date1, Stamp1),
 1364    date_time_stamp(Date2, Stamp2),
 1365    date_time_stamp(T, Stamp3),
 1366    Stamp1=<Stamp3,
 1367    Stamp3=<Stamp2.
 1368
 1369maxtime(20).
 1370
 1371five_days_before(date(Y, M, D, H, Mn, S, Off, TZ, DST), Date2) :-
 1372    nonvar(D),
 1373    NewD is D+5,
 1374    date_time_stamp(date(Y,
 1375                         M,
 1376                         NewD,
 1377                         H,
 1378                         Mn,
 1379                         S,
 1380                         Off,
 1381                         TZ,
 1382                         DST),
 1383                    Stamp),
 1384    stamp_date_time(Stamp, Date2, 0).
 1385five_days_before(Date2, date(Y, M, D, H, Mn, S, Off, TZ, DST)) :-
 1386    nonvar(D),
 1387    NewD is D+ -5,
 1388    date_time_stamp(date(Y,
 1389                         M,
 1390                         NewD,
 1391                         H,
 1392                         Mn,
 1393                         S,
 1394                         Off,
 1395                         TZ,
 1396                         DST),
 1397                    Stamp),
 1398    stamp_date_time(Stamp, Date2, 0).
 1399
 1400:- dynamic actions/1. 1401:- multifile actions/1. 1402
 1403actions([notify(_, _, _)]).
 1404
 1405five_days_after(date(Y, M, D, H, Mn, S, Off, TZ, DST), Date2) :-
 1406    nonvar(D),
 1407    NewD is D+5,
 1408    date_time_stamp(date(Y,
 1409                         M,
 1410                         NewD,
 1411                         H,
 1412                         Mn,
 1413                         S,
 1414                         Off,
 1415                         TZ,
 1416                         DST),
 1417                    Stamp),
 1418    stamp_date_time(Stamp, Date2, 0).
 1419five_days_after(Date2, date(Y, M, D, H, Mn, S, Off, TZ, DST)) :-
 1420    nonvar(D),
 1421    NewD is D+ -5,
 1422    date_time_stamp(date(Y,
 1423                         M,
 1424                         NewD,
 1425                         H,
 1426                         Mn,
 1427                         S,
 1428                         Off,
 1429                         TZ,
 1430                         DST),
 1431                    Stamp),
 1432    stamp_date_time(Stamp, Date2, 0).
 1433
 1434events([test(A, _, B), meets(A, _, B)]).
 1435
 1436observe([meets(gertrude, alice, date(2020, 3, 15, 0, 0, 0, 0, 'UTC', -))], 3).
 1437observe([test(alice, positive, date(2020, 3, 14, 0, 0, 0, 0, 'UTC', -))], 5).
 1438% dB(/.../(lps_user_examples, 'Simpified contaminated doesn\'t work.pl'), lps_visualization(_71492{groups:[_70678{content:"Events", id:"event", order:1}, _70752{content:"met(A,B,C)", id:"met/3", order:3, subgroupStack:"false"}, _70830{content:"tested(A,B,C)", id:"tested/3", order:3, subgroupStack:"false"}], items:[_70956{content:"alice,gertrude,date(2020,3,15,0,0,0,0,UTC,-)", end:21, group:"met/3", id:0, start:3, subgroup:"alice", title:"Fluent met(alice,gertrude,date(2020,3,15,0,0,0,0,UTC,-)) initiated at 3<br/>and terminated at transition to 21"}, _71082{content:"gertrude,alice,date(2020,3,15,0,0,0,0,UTC,-)", end:21, group:"met/3", id:1, start:3, subgroup:"gertrude", title:"Fluent met(gertrude,alice,date(2020,3,15,0,0,0,0,UTC,-)) initiated at 3<br/>and terminated at transition to 21"}, _71208{content:"alice,positive,date(2020,3,14,0,0,0,0,UTC,-)", end:21, group:"tested/3", id:2, start:5, subgroup:"alice", title:"Fluent tested(alice,positive,date(2020,3,14,0,0,0,0,UTC,-)) initiated at 5<br/>and terminated at transition to 21"}, _71334{content:"meets(gertrude,alice,date(2020,3,15,0,0,0,0,UTC,-))", group:"event", id:3, start:3, style:"color:#E19735", title:"happens(meets(gertrude,alice,date(2020,3,15,0,0,0,0,UTC,-)),2,3)", type:"point"}, _71460{content:"test(alice,positive,date(2020,3,14,0,0,0,0,UTC,-))", group:"event", id:4, start:5, style:"color:#E19735", title:"happens(test(alice,positive,date(2020,3,14,0,0,0,0,UTC,-)),4,5)", type:"point"}]}, [])).
 1439% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'simple conveyor.pl')).
 1440% run_lps_corner_file1(/.../(lps_user_examples, 'simple conveyor.pl')).
 1441% /pack/logicmoo_ec/test/lps_user_examples/simple conveyor.pl:1
 1442% push_lps_dialect.
 1443% ops.
 1444% [ti=user, load= /.../(lps_user_examples, 'simple conveyor.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'simple conveyor.pl'), lps= /.../(lps_user_examples, 'simple conveyor.pl'), using= /.../(lps_user_examples, 'simple conveyor.pl')].
 1445% continue_lps_dialect.
 1446% ops.
 1447
 1448% LPS:  fluents((pouring(_55194),contents(_55194,_55250),location(_55304,_55306),moving(_55346))).
 1449% Into: fluents([pouring(_55194),contents(_55194,_55250),location(_55304,_55306),moving(_55346)]).
 1450
 1451% LPS:  initially((contents(bottle,0),contents(container,0),contents(tank1,100),contents(tank2,100),contents(heaven,1000),location(bottle,160),location(tank1,160),location(tank2,240),location(container,400))).
 1452% Into: initial_state([contents(bottle,0),contents(container,0),contents(tank1,100),contents(tank2,100),contents(heaven,1000),location(bottle,160),location(tank1,160),location(tank2,240),location(container,400)]).
 1453
 1454% LPS:  actions((openValve(_58406),closeValve(_58406),pourChunk(_58500,_58502),startConveyor(_58542),stopConveyor,turnConveyor/1)).
 1455% Into: actions([openValve(_58406),closeValve(_58406),pourChunk(_58500,_58502),startConveyor(_58542),stopConveyor,turnConveyor(_60084)]).
 1456
 1457% LPS:  false((closeValve(_59980),not(pouring(_59980)))).
 1458% Into: d_pre([happens(closeValve(_59980),_61108,_61114),holds(not(pouring(_59980)),_61108)]).
 1459
 1460% LPS:  if(from(makeLocation(bottle,_61720),to(_61756,_61756)),(at(location(bottle,_61872),_61756),at(location(_61720,_61872),_61756))).
 1461% Into: l_events(happens(makeLocation(bottle,_61720),_61756,_61756),[holds(location(bottle,_61872),_61756),holds(location(_61720,_61872),_61756)]).
 1462
 1463% LPS:  if(from(makeLocation(bottle,_63776),to(_63812,_63814)),(at(location(bottle,_63928),_63812),at(location(_63776,_64032),_63812),_64164 is _64032-_63928,stopPlace(_64164,_64032,_64264),from(startConveyor(_64164),_63812),at(location(bottle,_64264),_64430),at(moving(_64164),_64430),from(stopConveyor,to(_64430,_63814)))).
 1464% Into: l_events(happens(makeLocation(bottle,_63776),_63812,_63814),[holds(location(bottle,_63928),_63812),holds(location(_63776,_64032),_63812),_64164 is _64032-_63928,stopPlace(_64164,_64032,_64264),happens(startConveyor(_64164),_63812,_66910),holds(location(bottle,_64264),_64430),holds(moving(_64164),_64430),happens(stopConveyor,_64430,_63814)]).
 1465
 1466% LPS:  initiates(startConveyor(_70524),moving(_70524)).
 1467% Into: initiated(happens(startConveyor(_70524),_71672,_71678),moving(_70524),[]).
 1468
 1469% LPS:  terminates(stopConveyor,moving(_71624)).
 1470% Into: terminated(happens(stopConveyor,_72712,_72718),moving(_71624),[]).
 1471
 1472% LPS:  then(if((at(moving(_72660),_72682),_72660>0)),from(turnConveyor(clockwise),_72682)).
 1473% Into: reactive_rule([holds(moving(_72660),_72682),_72660>0],[happens(turnConveyor(clockwise),_72682,_74514)]).
 1474
 1475% LPS:  then(if((at(moving(_74560),_74582),_74560<0)),from(turnConveyor(counterClockwise),_74582)).
 1476% Into: reactive_rule([holds(moving(_74560),_74582),_74560<0],[happens(turnConveyor(counterClockwise),_74582,_76410)]).
 1477
 1478% LPS:  if(updates(turnConveyor(counterClockwise),in(to(_18990,_18992),location(bottle,_18990))),(conveyorSpeed(_19146),_18992 is _18990-_19146)).
 1479% Into: updated(happens(turnConveyor(counterClockwise),_19724,_19730),location(bottle,_18990),_18990-_18992,[conveyorSpeed(_19146),_18992 is _18990-_19146]).
 1480
 1481% LPS:  if(updates(turnConveyor(clockwise),in(to(_20206,_20208),location(bottle,_20206))),(conveyorSpeed(_20394),_20208 is _20206+_20394)).
 1482% Into: updated(happens(turnConveyor(clockwise),_21776,_21782),location(bottle,_20206),_20206-_20208,[conveyorSpeed(_20394),_20208 is _20206+_20394]).
 1483
 1484% LPS:  then(if((at(contents(bottle,0),_23710),at(location(tank1,_23792),_23710),at(location(bottle,_23792),_23710),at(not(pouring(_23992)),_23710))),(from(pour(tank1,bottle,50),to(_23710,_24294)),from(makeLocation(bottle,tank2),to(_24294,_24446)),from(pour(tank2,bottle,50),to(_24446,_24614)),from(makeLocation(bottle,container),to(_24614,_24766)),from(pour(bottle,container,100),to(_24766,_24934)),from(makeLocation(bottle,tank1),_24934))).
 1485% Into: reactive_rule([holds(contents(bottle,0),_23710),holds(location(tank1,_23792),_23710),holds(location(bottle,_23792),_23710),holds(not(pouring(_23992)),_23710)],[happens(pour(tank1,bottle,50),_23710,_24294),happens(makeLocation(bottle,tank2),_24294,_24446),happens(pour(tank2,bottle,50),_24446,_24614),happens(makeLocation(bottle,container),_24614,_24766),happens(pour(bottle,container,100),_24766,_24934),happens(makeLocation(bottle,tank1),_24934,_27030)]).
 1486
 1487% LPS:  if(from(pour(_26636,_26638,_26640),to(_26676,_26678)),(at(contents(_26638,_26792),_26676),at(contents(_26636,_26896),_26676),_26896>=_26640,_27092 is _26640+_26792,valveRate(_27160),_27244 is _27092-_27160,from(openValve(_26636),to(_26676,_27350)),at(contents(_26638,_27244),_27486),from(closeValve(_26636),to(_27486,_26678)))).
 1488% Into: l_events(happens(pour(_26636,_26638,_26640),_26676,_26678),[holds(contents(_26638,_26792),_26676),holds(contents(_26636,_26896),_26676),_26896>=_26640,_27092 is _26640+_26792,valveRate(_27160),_27244 is _27092-_27160,happens(openValve(_26636),_26676,_27350),holds(contents(_26638,_27244),_27486),happens(closeValve(_26636),_27486,_26678)]).
 1489
 1490% LPS:  initiates(openValve(_30496),pouring(_30496)).
 1491% Into: initiated(happens(openValve(_30496),_31644,_31650),pouring(_30496),[]).
 1492
 1493% LPS:  terminates(closeValve(_31580),pouring(_31580)).
 1494% Into: terminated(happens(closeValve(_31580),_32728,_32734),pouring(_31580),[]).
 1495
 1496% LPS:  then(if((at(pouring(_32672),_32694),at(location(_32672,_32776),_32694),at(location(_32878,_32776),_32694),_32878\=_32672)),from(pourChunk(_32672,_32878),to(_32694,_33206))).
 1497% Into: reactive_rule([holds(pouring(_32672),_32694),holds(location(_32672,_32776),_32694),holds(location(_32878,_32776),_32694),_32878\=_32672],[happens(pourChunk(_32672,_32878),_32694,_33206)]).
 1498
 1499% LPS:  if(updates(pourChunk(_35230,_35232),in(to(_35268,_35270),contents(_35232,_35268))),(valveRate(_35456),_35270 is _35268+_35456)).
 1500% Into: updated(happens(pourChunk(_35230,_35232),_36854,_36860),contents(_35232,_35268),_35268-_35270,[valveRate(_35456),_35270 is _35268+_35456]).
 1501
 1502% LPS:  if(updates(pourChunk(_37310,_37312),in(to(_37348,_37350),contents(_37310,_37348))),(valveRate(_37536),_37350 is _37348-_37536)).
 1503% Into: updated(happens(pourChunk(_37310,_37312),_38934,_38940),contents(_37310,_37348),_37348-_37350,[valveRate(_37536),_37350 is _37348-_37536]).
 1504
 1505% LPS:  if(at(locatedContents(_40878,_40880,_40882),_40904),(at(location(_40878,_40880),_40904),at(contents(_40878,_40882),_40904))).
 1506% Into: l_int(holds(locatedContents(_40878,_40880,_40882),_40904),[holds(location(_40878,_40880),_40904),holds(contents(_40878,_40882),_40904)]).
 1507% /pack/logicmoo_ec/test/lps_user_examples/simple conveyor.pl:180
 1508% pop_lps_dialect('$BLOB'("<stream>(0x562ef33a9200)"),  (/.../(lps_user_examples, 'simple conveyor.pl')-> /.../(lps_user_examples, 'simple conveyor.pl'))).
 1509% ops.
 1510% :-listing('/pack/logicmoo_ec/test/lps_user_examples/simple conveyor.pl':_61668).
 1511
 1512
 1513initiated(happens(startConveyor(A), _, _), moving(A), []).
 1514initiated(happens(openValve(A), _, _), pouring(A), []).
 1515
 1516d_pre([happens(closeValve(A), B, _), holds(not(pouring(A)), B)]).
 1517
 1518d(locatedContents(bottle, Pos, Level), [type:rectangle, fillColor:yellow, from:[X1, 60], to:[X2, Height]]) :-
 1519    Height is 60+Level/4,
 1520    X1 is Pos-10,
 1521    X2 is Pos+10.
 1522d(locatedContents(tank1, Pos, Level), [type:rectangle, fillColor:yellow, from:[130, 120], to:[190, Height]]) :-
 1523    Height is 120+Level/4.
 1524d(locatedContents(tank2, Pos, Level), [type:rectangle, fillColor:yellow, from:[210, 120], to:[270, Height]]) :-
 1525    Height is 120+Level/4.
 1526d(location(bottle, Pos), [type:rectangle, from:[X1, 60], to:[X2, 100], strokeColor:blue]) :-
 1527    X1 is Pos-10,
 1528    X2 is Pos+10.
 1529d(timeless, [[type:line, strokeWidth:2, strokeColor:black, from:[100, 60], to:[400, 60]], [type:circle, strokeWidth:2, strokeColor:black, center:[100, 40], radius:20], [type:circle, strokeWidth:2, strokeColor:black, center:[400, 40], radius:20], [type:rectangle, fillColor:white, from:[130, 120], to:[190, 150], strokeColor:blue], [type:rectangle, fillColor:white, from:[210, 120], to:[270, 150], strokeColor:blue], [type:line, strokeWidth:2, strokeColor:black, from:[100, 20], to:[400, 20]]]).
 1530
 1531fluents([pouring(A), contents(A, _), location(_, _), moving(_)]).
 1532
 1533l_int(holds(locatedContents(A, B, C), D), [holds(location(A, B), D), holds(contents(A, C), D)]).
 1534
 1535terminated(happens(stopConveyor, _, _), moving(_), []).
 1536terminated(happens(closeValve(A), _, _), pouring(A), []).
 1537
 1538stopPlace(Vector, Place2, Stop) :-
 1539    conveyorSpeed(S),
 1540    Vector>0,
 1541    Stop is Place2-S.
 1542stopPlace(Vector, Place2, Stop) :-
 1543    conveyorSpeed(S),
 1544    Vector<0,
 1545    Stop is Place2+S.
 1546
 1547reactive_rule([holds(moving(A), B), A>0], [happens(turnConveyor(clockwise), B, _)]).
 1548reactive_rule([holds(moving(A), B), A<0], [happens(turnConveyor(counterClockwise), B, _)]).
 1549reactive_rule([holds(contents(bottle, 0), A), holds(location(tank1, B), A), holds(location(bottle, B), A), holds(not(pouring(_)), A)], [happens(pour(tank1, bottle, 50), A, C), happens(makeLocation(bottle, tank2), C, D), happens(pour(tank2, bottle, 50), D, E), happens(makeLocation(bottle, container), E, F), happens(pour(bottle, container, 100), F, G), happens(makeLocation(bottle, tank1), G, _)]).
 1550reactive_rule([holds(pouring(A), B), holds(location(A, C), B), holds(location(D, C), B), D\=A], [happens(pourChunk(A, D), B, _)]).
 1551
 1552initial_state([contents(bottle, 0), contents(container, 0), contents(tank1, 100), contents(tank2, 100), contents(heaven, 1000), location(bottle, 160), location(tank1, 160), location(tank2, 240), location(container, 400)]).
 1553
 1554l_events(happens(makeLocation(bottle, A), B, B), [holds(location(bottle, C), B), holds(location(A, C), B)]).
 1555l_events(happens(makeLocation(bottle, A), B, C), [holds(location(bottle, D), B), holds(location(A, E), B), F is E-D, stopPlace(F, E, G), happens(startConveyor(F), B, _), holds(location(bottle, G), H), holds(moving(F), H), happens(stopConveyor, H, C)]).
 1556l_events(happens(pour(A, B, C), D, E), [holds(contents(B, F), D), holds(contents(A, G), D), G>=C, H is C+F, valveRate(I), J is H-I, happens(openValve(A), D, _), holds(contents(B, J), K), happens(closeValve(A), K, E)]).
 1557
 1558valveRate(10).
 1559
 1560:- dynamic actions/1. 1561:- multifile actions/1. 1562
 1563actions([openValve(A), closeValve(A), pourChunk(_, _), startConveyor(_), stopConveyor, turnConveyor(_)]).
 1564
 1565updated(happens(turnConveyor(counterClockwise), _, _), location(bottle, A), A-B, [conveyorSpeed(C), B is A-C]).
 1566updated(happens(turnConveyor(clockwise), _, _), location(bottle, A), A-B, [conveyorSpeed(C), B is A+C]).
 1567updated(happens(pourChunk(_, A), _, _), contents(A, B), B-C, [valveRate(D), C is B+D]).
 1568updated(happens(pourChunk(A, _), _, _), contents(A, B), B-C, [valveRate(D), C is B-D]).
 1569
 1570maxTime(160).
 1571
 1572conveyorSpeed(10).
 1573PROGRAM FAILED
 1574% dB(/.../(lps_user_examples, 'simple conveyor.pl'), lps_visualization(_68598{groups:[_54912{content:"contents(A,B)", id:"contents/2", order:3, subgroupStack:"false"}, _54938{content:"location(A,B)", id:"location/2", order:3, subgroupStack:"false"}, _54964{content:"moving(A)", id:"moving/1", order:3, subgroupStack:"false"}, _54990{content:"pouring(A)", id:"pouring/1", order:3, subgroupStack:"false"}, _55016{content:"Actions", id:"action", order:4}], items:[_55038{content:"-240", end:75, group:"moving/1", id:0, start:51, subgroup:"-240", title:"Fluent moving(-240) initiated at 51<br/>and terminated at transition to 75"}, _55076{content:"-240", end:149, group:"moving/1", id:1, start:125, subgroup:"-240", title:"Fluent moving(-240) initiated at 125<br/>and terminated at transition to 149"}, _55114{content:"80", end:16, group:"moving/1", id:2, start:8, subgroup:"80", title:"Fluent moving(80) initiated at 8<br/>and terminated at transition to 16"}, ...(_135804)]}, _134822{cycles:[[_117200{create:[_116526{from:[100, 60], id:"timeless", strokeColor:"black", strokeWidth:2, to:[400, 60], type:"line"}, _116648{center:[100, 40], id:"timeless", radius:20, strokeColor:"black", strokeWidth:2, type:"circle"}, _116770{center:[400, 40], id:"timeless", radius:20, strokeColor:"black", strokeWidth:2, type:"circle"}, _116904{fillColor:"white", from:[130, 120], id:"timeless", strokeColor:"blue", to:[190, 150], type:"rectangle"}, _117038{fillColor:"white", from:[210, 120], id:"timeless", strokeColor:"blue", to:[270, 150], type:"rectangle"}, _117172{from:[100, 20], id:"timeless", strokeColor:"black", strokeWidth:2, to:[400, 20], type:"line"}]}], [_117348{create:_117324{from:[150, 60], id:"location(bottle,160)", strokeColor:"blue", to:[170, 100], type:"rectangle"}}], [], ...(_137852)]})).
 1575% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'simplified checkout.pl')).
 1576% run_lps_corner_file1(/.../(lps_user_examples, 'simplified checkout.pl')).
 1577% /pack/logicmoo_ec/test/lps_user_examples/simplified checkout.pl:1
 1578% push_lps_dialect.
 1579% ops.
 1580% [ti=user, load= /.../(lps_user_examples, 'simplified checkout.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'simplified checkout.pl'), lps= /.../(lps_user_examples, 'simplified checkout.pl'), using= /.../(lps_user_examples, 'simplified checkout.pl')].
 1581% continue_lps_dialect.
 1582% ops.
 1583
 1584% LPS:  fluents(approved/1).
 1585% Into: fluents([approved(_177492)]).
 1586
 1587% LPS:  actions((enter/1,approve/1)).
 1588% Into: actions([enter(_179684),approve(_179694)]).
 1589
 1590% LPS:  initiates(approve(_179630),approved(_179630)).
 1591% Into: initiated(happens(approve(_179630),_180786,_180792),approved(_179630),[]).
 1592
 1593% LPS:  fluents(card/1).
 1594% Into: fluents([card(_181778)]).
 1595
 1596% LPS:  initially((card(1),card(2))).
 1597% Into: initial_state([card(1),card(2)]).
 1598
 1599% LPS:  then(if(true),(at(card(_183070),_183092),from(enter(_183070),_183092),at(approved(_183070),_183092+2))).
 1600% Into: reactive_rule([],[holds(card(_183070),_183092),happens(enter(_183070),_183092,_185032),holds(approved(_183070),_183092+2)]).
 1601
 1602% LPS:  false((enter(_185610),enter(_185650),_185610\=_185650)).
 1603% Into: d_pre([happens(enter(_185610),_186822,_186828),happens(enter(_185650),_186822,_186828),_185610\=_185650]).
 1604
 1605% LPS:  then(if(to(enter(2),_187376)),from(approve(2),_187376)).
 1606% Into: reactive_rule([happens(enter(2),_188570,_187376)],[happens(approve(2),_187376,_188660)]).
 1607% /pack/logicmoo_ec/test/lps_user_examples/simplified checkout.pl:35
 1608% pop_lps_dialect('$BLOB'("<stream>(0x562ef4162c00)"),  (/.../(lps_user_examples, 'simplified checkout.pl')-> /.../(lps_user_examples, 'simplified checkout.pl'))).
 1609% ops.
 1610% :-listing('/pack/logicmoo_ec/test/lps_user_examples/simplified checkout.pl':_196230).
 1611
 1612
 1613initiated(happens(approve(A), _, _), approved(A), []).
 1614
 1615d_pre([happens(enter(A), B, C), happens(enter(D), B, C), A\=D]).
 1616
 1617fluents([approved(_)]).
 1618fluents([card(_)]).
 1619
 1620reactive_rule([], [holds(card(A), B), happens(enter(A), B, _), holds(approved(A), B+2)]).
 1621reactive_rule([happens(enter(2), _, A)], [happens(approve(2), A, _)]).
 1622
 1623initial_state([card(1), card(2)]).
 1624
 1625:- dynamic actions/1. 1626:- multifile actions/1. 1627
 1628actions([enter(_), approve(_)]).
 1629
 1630maxTime(5).
 1631% dB(/.../(lps_user_examples, 'simplified checkout.pl'), lps_visualization(_277266{groups:[_276416{content:"card(A)", id:"card/1", order:3, subgroupStack:"false"}, _276482{content:"Actions", id:"action", order:4}], items:[_276604{content:"1", end:6, group:"card/1", id:0, start:1, subgroup:"1", title:"Fluent card(1) initiated at 1<br/>and terminated at transition to 6"}, _276730{content:"2", end:6, group:"card/1", id:1, start:1, subgroup:"2", title:"Fluent card(2) initiated at 1<br/>and terminated at transition to 6"}, _276856{content:"enter(1)", group:"action", id:2, start:2, style:"color:green", title:"happens(enter(1),1,2)", type:"point"}, _276982{content:"enter(1)", group:"action", id:3, start:3, style:"color:green", title:"happens(enter(1),2,3)", type:"point"}, _277108{content:"enter(1)", group:"action", id:4, start:4, style:"color:green", title:"happens(enter(1),3,4)", type:"point"}, _277234{content:"enter(1)", group:"action", id:5, start:5, style:"color:green", title:"happens(enter(1),4,5)", type:"point"}]}, [])).
 1632% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'Solomon and the two women.pl')).
 1633% run_lps_corner_file1(/.../(lps_user_examples, 'Solomon and the two women.pl')).
 1634% /pack/logicmoo_ec/test/lps_user_examples/Solomon and the two women.pl:1
 1635% push_lps_dialect.
 1636% ops.
 1637% [ti=user, load= /.../(lps_user_examples, 'Solomon and the two women.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'Solomon and the two women.pl'), lps= /.../(lps_user_examples, 'Solomon and the two women.pl'), using= /.../(lps_user_examples, 'Solomon and the two women.pl')].
 1638% continue_lps_dialect.
 1639% ops.
 1640
 1641% LPS:  events((dispute_between(a,b),put_to_test(a,b),propose_drastic_output(agent),make_decision)).
 1642% Into: events([dispute_between(a,b),put_to_test(a,b),propose_drastic_output(agent),make_decision]).
 1643
 1644% LPS:  actions((propose_cut_baby(agent),says(agent,message),declares(agent,verdict),decide(agent,judgment))).
 1645% Into: actions([propose_cut_baby(agent),says(agent,message),declares(agent,verdict),decide(agent,judgment)]).
 1646
 1647% LPS:  observe(from(dispute_between(a,b),to(1,2))).
 1648% Into: observe([dispute_between(a,b)],2).
 1649
 1650% LPS:  then(if(from(dispute_between(_59676,_59678),to(_59714,_59716))),from(put_a_test(_59676,_59678),to(_59716,_59892))).
 1651% Into: reactive_rule([happens(dispute_between(_59676,_59678),_59714,_59716)],[happens(put_a_test(_59676,_59678),_59716,_59892)]).
 1652
 1653% LPS:  if(from(put_a_test(_61156,_61158),to(_61194,_61196)),from(proposes_nasty_idea(salomon),to(_61194,_61196))).
 1654% Into: l_events(happens(put_a_test(_61156,_61158),_61194,_61196),[happens(proposes_nasty_idea(salomon),_61194,_61196)]).
 1655
 1656% LPS:  if(from(proposes_nasty_idea(_62496),to(_62532,_62534)),from(propose_cut_baby(_62496),to(_62532,_62534))).
 1657% Into: l_events(happens(proposes_nasty_idea(_62496),_62532,_62534),[happens(propose_cut_baby(_62496),_62532,_62534)]).
 1658
 1659% LPS:  then(if((from(propose_cut_baby(salomon),to(_63922,_63924)),woman(_64022),i_am_your_mother(_64022))),from(says(_64022,'Dont kill him! Give it to Her'),to(_63924,_64244))).
 1660% Into: reactive_rule([happens(propose_cut_baby(salomon),_63922,_63924),woman(_64022),i_am_your_mother(_64022)],[happens(says(_64022,'Dont kill him! Give it to Her'),_63924,_64244)]).
 1661
 1662% LPS:  then(if((from(propose_cut_baby(salomon),to(_66468,_66470)),woman(_66568),not(i_am_your_mother(_66568)))),from(says(_66568,'Yes, kill him'),to(_66470,_66814))).
 1663% Into: reactive_rule([happens(propose_cut_baby(salomon),_66468,_66470),woman(_66568),not(i_am_your_mother(_66568))],[happens(says(_66568,'Yes, kill him'),_66470,_66814)]).
 1664
 1665% LPS:  then(if((from(propose_cut_baby(_69510),to(_69546,_69548)),from(says(_69660,'Dont kill him! Give it to Her'),to(_69698,_69700)),from(says(_69812,'Yes, kill him'),to(_69850,_69852)))),(from(declare(_69510,the_true_mother_is(_69660)),to(_70114,_70116)),from(decide(_69510,give_baby_to(_69660)),to(_70116,_70292)))).
 1666% Into: reactive_rule([happens(propose_cut_baby(_69510),_69546,_69548),happens(says(_69660,'Dont kill him! Give it to Her'),_69698,_69700),happens(says(_69812,'Yes, kill him'),_69850,_69852)],[happens(declare(_69510,the_true_mother_is(_69660)),_70114,_70116),happens(decide(_69510,give_baby_to(_69660)),_70116,_70292)]).
 1667% /pack/logicmoo_ec/test/lps_user_examples/Solomon and the two women.pl:81
 1668% pop_lps_dialect('$BLOB'("<stream>(0x562ef33a9000)"),  (/.../(lps_user_examples, 'Solomon and the two women.pl')-> /.../(lps_user_examples, 'Solomon and the two women.pl'))).
 1669% ops.
 1670% :-listing('/pack/logicmoo_ec/test/lps_user_examples/Solomon and the two women.pl':_83296).
 1671
 1672
 1673woman(a).
 1674woman(b).
 1675
 1676reactive_rule([happens(dispute_between(A, B), _, C)], [happens(put_a_test(A, B), C, _)]).
 1677reactive_rule([happens(propose_cut_baby(salomon), _, A), woman(B), i_am_your_mother(B)], [happens(says(B, 'Dont kill him! Give it to Her'), A, _)]).
 1678reactive_rule([happens(propose_cut_baby(salomon), _, A), woman(B), not(i_am_your_mother(B))], [happens(says(B, 'Yes, kill him'), A, _)]).
 1679reactive_rule([happens(propose_cut_baby(A), _, _), happens(says(B, 'Dont kill him! Give it to Her'), _, _), happens(says(_, 'Yes, kill him'), _, _)], [happens(declare(A, the_true_mother_is(B)), _, C), happens(decide(A, give_baby_to(B)), C, _)]).
 1680
 1681l_events(happens(put_a_test(_, _), A, B), [happens(proposes_nasty_idea(salomon), A, B)]).
 1682l_events(happens(proposes_nasty_idea(A), B, C), [happens(propose_cut_baby(A), B, C)]).
 1683
 1684maxtime(10).
 1685
 1686i_am_your_mother(b).
 1687
 1688:- dynamic actions/1. 1689:- multifile actions/1. 1690
 1691actions([propose_cut_baby(agent), says(agent, message), declares(agent, verdict), decide(agent, judgment)]).
 1692
 1693events([dispute_between(a, b), put_to_test(a, b), propose_drastic_output(agent), make_decision]).
 1694
 1695observe([dispute_between(a, b)], 2).
 1696PROGRAM FAILED
 1697% dB(/.../(lps_user_examples, 'Solomon and the two women.pl'), lps_visualization(_44068{groups:[_43914{content:"Events", id:"event", order:1}], items:[_44036{content:"dispute_between(a,b)", group:"event", id:0, start:2, style:"color:#E19735", title:"happens(dispute_between(a,b),1,2)", type:"point"}]}, [])).
 1698% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'SOS.pl')).
 1699% run_lps_corner_file1(/.../(lps_user_examples, 'SOS.pl')).
 1700% /pack/logicmoo_ec/test/lps_user_examples/SOS.pl:1
 1701% push_lps_dialect.
 1702% ops.
 1703% [ti=user, load= /.../(lps_user_examples, 'SOS.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'SOS.pl'), lps= /.../(lps_user_examples, 'SOS.pl'), using= /.../(lps_user_examples, 'SOS.pl')].
 1704% continue_lps_dialect.
 1705% ops.
 1706
 1707% LPS:  fluents((lightOn,lightOff)).
 1708% Into: fluents([lightOn,lightOff]).
 1709
 1710% LPS:  events(switch).
 1711% Into: events([switch]).
 1712
 1713% LPS:  actions(switch).
 1714% Into: actions([switch]).
 1715
 1716% LPS:  if(lightOff,not(lightOn)).
 1717% Into: l_int(holds(lightOff,_23262),[holds(not(lightOn),_23262)]).
 1718
 1719% LPS:  if(from(sos,to(_23726,_23728)),(at(lightOff,_23726),from(makeOn,to(_23726,_23904)),from(makeOn,to(_23904,_24016)),from(makeOn,to(_24016,_23728)))).
 1720% Into: l_events(happens(sos,_23726,_23728),[holds(lightOff,_23726),happens(makeOn,_23726,_23904),happens(makeOn,_23904,_24016),happens(makeOn,_24016,_23728)]).
 1721
 1722% LPS:  if(from(makeOn,to(_25856,_25858)),(from(switch,to(_25856,_25970)),from(switch,to(_25970+1,_25858)))).
 1723% Into: l_events(happens(makeOn,_25856,_25858),[happens(switch,_25856,_25970),happens(switch,_25970+1,_25858)]).
 1724
 1725% LPS:  then(if(true),sos).
 1726% Into: reactive_rule([],[happens(sos,_28388,_28394)]).
 1727
 1728% LPS:  if(initiates(switch,lightOn),lightOff).
 1729% Into: initiated(happens(switch,_29554,_29560),lightOn,[holds(lightOff,_29554)]).
 1730
 1731% LPS:  if(terminates(switch,lightOn),lightOn).
 1732% Into: terminated(happens(switch,_30624,_30630),lightOn,[holds(lightOn,_30624)]).
 1733% /pack/logicmoo_ec/test/lps_user_examples/SOS.pl:38
 1734% pop_lps_dialect('$BLOB'("<stream>(0x562ef3ca5a00)"),  (/.../(lps_user_examples, 'SOS.pl')-> /.../(lps_user_examples, 'SOS.pl'))).
 1735% ops.
 1736% :-listing('/pack/logicmoo_ec/test/lps_user_examples/SOS.pl':_38180).
 1737
 1738
 1739initiated(happens(switch, A, _), lightOn, [holds(lightOff, A)]).
 1740
 1741fluents([lightOn, lightOff]).
 1742
 1743l_int(holds(lightOff, A), [holds(not(lightOn), A)]).
 1744
 1745reactive_rule([], [happens(sos, _, _)]).
 1746
 1747terminated(happens(switch, A, _), lightOn, [holds(lightOn, A)]).
 1748
 1749l_events(happens(sos, A, B), [holds(lightOff, A), happens(makeOn, A, C), happens(makeOn, C, D), happens(makeOn, D, B)]).
 1750l_events(happens(makeOn, A, B), [happens(switch, A, C), happens(switch, C+1, B)]).
 1751
 1752:- dynamic actions/1. 1753:- multifile actions/1. 1754
 1755actions([switch]).
 1756
 1757events([switch]).
 1758
 1759maxTime(25).
 1760% dB(/.../(lps_user_examples, 'SOS.pl'), lps_visualization(_65570{groups:[_64390{content:"lightOn", id:"lightOn/0", order:3, subgroupStack:"false"}, _64456{content:"Actions", id:"action", order:4}], items:[_64566{content:"lightOn", end:4, group:"lightOn/0", id:0, start:2, title:"Fluent lightOn initiated at 2<br/>and terminated at transition to 4"}, _64676{content:"lightOn", end:7, group:"lightOn/0", id:1, start:5, title:"Fluent lightOn initiated at 5<br/>and terminated at transition to 7"}, _64786{content:"lightOn", end:10, group:"lightOn/0", id:2, start:8, title:"Fluent lightOn initiated at 8<br/>and terminated at transition to 10"}, _64908{content:"switch", group:"action", id:3, start:2, style:"color:green", title:"happens(switch,1,2)", type:"point"}, _65034{content:"switch", group:"action", id:4, start:4, style:"color:green", title:"happens(switch,3,4)", type:"point"}, _65160{content:"switch", group:"action", id:5, start:5, style:"color:green", title:"happens(switch,4,5)", type:"point"}, _65286{content:"switch", group:"action", id:6, start:7, style:"color:green", title:"happens(switch,6,7)", type:"point"}, _65412{content:"switch", group:"action", id:7, start:8, style:"color:green", title:"happens(switch,7,8)", type:"point"}, _65538{content:"switch", group:"action", id:8, start:10, style:"color:green", title:"happens(switch,9,10)", type:"point"}]}, [])).
 1761% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, '123 contrato.pl')).
 1762% run_lps_corner_file1(/.../(lps_user_examples, '123 contrato.pl')).
 1763% /pack/logicmoo_ec/test/lps_user_examples/123 contrato.pl:1
 1764% push_lps_dialect.
 1765% ops.
 1766% [ti=user, load= /.../(lps_user_examples, '123 contrato.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, '123 contrato.pl'), lps= /.../(lps_user_examples, '123 contrato.pl'), using= /.../(lps_user_examples, '123 contrato.pl')].
 1767% continue_lps_dialect.
 1768% ops.
 1769
 1770% LPS:  actions(pagar(comprador,cantidad,due�o)).
 1771% Into: actions([pagar(comprador,cantidad,due�o)]).
 1772
 1773% LPS:  events(causa(personal)).
 1774% Into: events([causa(personal)]).
 1775
 1776% LPS:  fluents((validar(comprador),por_pagar(cantidad))).
 1777% Into: fluents([validar(comprador),por_pagar(cantidad)]).
 1778
 1779% LPS:  at(opcompra(comprador,cantidad,due�o),_64238).
 1780% Into: l_int(holds(opcompra(comprador,cantidad,due�o),_64238),[]).
 1781
 1782% LPS:  then(if((causa(personal),to(validar(comprador),_65532))),cantidad is acordado).
 1783% Into: reactive_rule([happens(causa(personal),_66740,_66782),happens(validar(comprador),_66804,_65532)],[cantidad is acordado]).
 1784
 1785% LPS:  then(if((causa(personal),to(validar(comprador),_67190))),from(pagar(due�o,cantidad,comprador),to(_67190,_67382))).
 1786% Into: reactive_rule([happens(causa(personal),_68528,_68570),happens(validar(comprador),_68592,_67190)],[happens(pagar(due�o,cantidad,comprador),_67190,_67382)]).
 1787ERROR: /pack/logicmoo_ec/test/lps_user_examples/123 contrato.pl:25:15: Syntax error: Operator expected
 1788% /pack/logicmoo_ec/test/lps_user_examples/123 contrato.pl:29
 1789% pop_lps_dialect('$BLOB'("<stream>(0x562ef4161a00)"),  (/.../(lps_user_examples, '123 contrato.pl')-> /.../(lps_user_examples, '123 contrato.pl'))).
 1790% ops.
 1791% :-listing('/pack/logicmoo_ec/test/lps_user_examples/123 contrato.pl':_77804).
 1792
 1793
 1794total(_).
 1795
 1796fluents([validar(comprador), por_pagar(cantidad)]).
 1797
 1798l_int(holds(opcompra(comprador, cantidad, due�o), _), []).
 1799
 1800reactive_rule([happens(causa(personal), _, _), happens(validar(comprador), _, _)], [cantidad is acordado]).
 1801reactive_rule([happens(causa(personal), _, _), happens(validar(comprador), _, A)], [happens(pagar(due�o, cantidad, comprador), A, _)]).
 1802
 1803cantidad(_).
 1804
 1805:- dynamic actions/1. 1806:- multifile actions/1. 1807
 1808actions([pagar(comprador, cantidad, due�o)]).
 1809
 1810events([causa(personal)]).
 1811
 1812maxTime(10).
 1813
 1814acordado(_).
 1815
 1816if(nCuenta is total-cantidad).
 1817% dB(/.../(lps_user_examples, '123 contrato.pl'), lps_visualization(_70132{groups:[], items:[]}, [])).
 1818% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'Acompa�a.pl')).
 1819% run_lps_corner_file1(/.../(lps_user_examples, 'Acompa�a.pl')).
 1820% /pack/logicmoo_ec/test/lps_user_examples/Acompa�a.pl:1
 1821% push_lps_dialect.
 1822% ops.
 1823% [ti=user, load= /.../(lps_user_examples, 'Acompa�a.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'Acompa�a.pl'), lps= /.../(lps_user_examples, 'Acompa�a.pl'), using= /.../(lps_user_examples, 'Acompa�a.pl')].
 1824% continue_lps_dialect.
 1825% ops.
 1826% /pack/logicmoo_ec/test/lps_user_examples/Acompa�a.pl:26
 1827% pop_lps_dialect('$BLOB'("<stream>(0x562ef31d3300)"),  (/.../(lps_user_examples, 'Acompa�a.pl')-> /.../(lps_user_examples, 'Acompa�a.pl'))).
 1828% ops.
 1829% :-listing('/pack/logicmoo_ec/test/lps_user_examples/Acompa�a.pl':_56128).
 1830
 1831
 1832acompa�a(X) :-
 1833    plato(X).
 1834
 1835:- dynamic actions/1. 1836:- multifile actions/1. 1837
 1838
 1839plato(Arroz).
 1840
 1841acompa�a(Hijo, Padre).
 1842acompa�a(Padre, Hijo).
 1843acompa�a(Madre, Hijo).
 1844acompa�a(Hijo, Madre).
 1845acompa�a(Hombre, Mujer).
 1846acompa�a(Mujer, Hombre).
 1847acompa�a(Respecto, Rezar).
 1848acompa�a(Rezar, Respecto).
 1849acompa�a(Arepa, Desayuno).
 1850acompa�a(Desayuno, arepa).
 1851acompa�a(Almuerzo, Arroz).
 1852acompa�a(Arroz, Almuerzo).
 1853acompa�a(Persona, mascota).
 1854acompa�a(mascota, Persona).
 1855acompa�a(amigo, feliz).
 1856acompa�a(Feliz, amigo).
 1857% dB(/.../(lps_user_examples, 'Acompa�a.pl'), lps_visualization(_37388{groups:[], items:[]}, [])).
 1858% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'acompa.pl')).
 1859% run_lps_corner_file1(/.../(lps_user_examples, 'acompa.pl')).
 1860% /pack/logicmoo_ec/test/lps_user_examples/acompa.pl:1
 1861% push_lps_dialect.
 1862% ops.
 1863% [ti=user, load= /.../(lps_user_examples, 'acompa.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'acompa.pl'), lps= /.../(lps_user_examples, 'acompa.pl'), using= /.../(lps_user_examples, 'acompa.pl')].
 1864% continue_lps_dialect.
 1865% ops.
 1866% /pack/logicmoo_ec/test/lps_user_examples/acompa.pl:32
 1867% pop_lps_dialect('$BLOB'("<stream>(0x562ef4163d00)"),  (/.../(lps_user_examples, 'acompa.pl')-> /.../(lps_user_examples, 'acompa.pl'))).
 1868% ops.
 1869% :-listing('/pack/logicmoo_ec/test/lps_user_examples/acompa.pl':_50570).
 1870
 1871
 1872ama(romeo, julieta).
 1873ama(julieta, romeo).
 1874ama(bolivar, colombia).
 1875ama(manuela, bolivar).
 1876
 1877rcombina(X, Y) :-
 1878    combina(Y, X).
 1879
 1880viaja_junto(fulano, sutano).
 1881
 1882:- dynamic actions/1. 1883:- multifile actions/1. 1884
 1885
 1886viaja_junto(X, Y, _) :-
 1887    viaja_junto(X, Y).
 1888viaja_junto(X, Y, C) :-
 1889    not(member((X, Y), C)),
 1890    viaja_junto(Y, X, [(X, Y)|C]).
 1891
 1892combina(cafe, chocolate).
 1893combina(salsa, pasta).
 1894
 1895acompa�a(X, Y) :-
 1896    ama(X, Y).
 1897acompa�a(X, Y) :-
 1898    combina(X, Y).
 1899acompa�a(X, Y) :-
 1900    rcombina(X, Y).
 1901acompa�a(X, Y) :-
 1902    viaja_junto(X, Y, []).
 1903% dB(/.../(lps_user_examples, 'acompa.pl'), lps_visualization(_33264{groups:[], items:[]}, [])).
 1904% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'ama.pl')).
 1905% run_lps_corner_file1(/.../(lps_user_examples, 'ama.pl')).
 1906% /pack/logicmoo_ec/test/lps_user_examples/ama.pl:1
 1907% push_lps_dialect.
 1908% ops.
 1909% [ti=user, load= /.../(lps_user_examples, 'ama.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'ama.pl'), lps= /.../(lps_user_examples, 'ama.pl'), using= /.../(lps_user_examples, 'ama.pl')].
 1910% continue_lps_dialect.
 1911% ops.
 1912% /pack/logicmoo_ec/test/lps_user_examples/ama.pl:27
 1913% pop_lps_dialect('$BLOB'("<stream>(0x562ef33a9300)"),  (/.../(lps_user_examples, 'ama.pl')-> /.../(lps_user_examples, 'ama.pl'))).
 1914% ops.
 1915% :-listing('/pack/logicmoo_ec/test/lps_user_examples/ama.pl':_46112).
 1916
 1917
 1918persona(rosa).
 1919
 1920ama(romeo, julieta).
 1921ama(julieta, romeo).
 1922ama(bolivar, colombia).
 1923ama(manuela, bolivar).
 1924
 1925humano(socrates).
 1926
 1927:- dynamic actions/1. 1928:- multifile actions/1. 1929
 1930
 1931acompa�ante(X) :-
 1932    persona(X).
 1933
 1934mortal(X) :-
 1935    humano(X).
 1936
 1937acompa�a(rosa, amanda).
 1938acompa�a(amanda, gretta).
 1939acompa�a(gretta, cesar).
 1940acompa�a(cesar, rosa).
 1941% dB(/.../(lps_user_examples, 'ama.pl'), lps_visualization(_28376{groups:[], items:[]}, [])).
 1942% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'antecedents_and_observations.pl')).
 1943% run_lps_corner_file1(/.../(lps_user_examples, 'antecedents_and_observations.pl')).
 1944% /pack/logicmoo_ec/test/lps_user_examples/antecedents_and_observations.pl:1
 1945% push_lps_dialect.
 1946% ops.
 1947% [ti=user, load= /.../(lps_user_examples, 'antecedents_and_observations.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'antecedents_and_observations.pl'), lps= /.../(lps_user_examples, 'antecedents_and_observations.pl'), using= /.../(lps_user_examples, 'antecedents_and_observations.pl')].
 1948% continue_lps_dialect.
 1949% ops.
 1950
 1951% LPS:  actions((a1,r1,a2,a3)).
 1952% Into: actions([a1,r1,a2,a3]).
 1953
 1954% LPS:  events(e2).
 1955% Into: events([e2]).
 1956
 1957% LPS:  fluents(f1).
 1958% Into: fluents([f1]).
 1959
 1960% LPS:  observe(from(a1,to(1,2))).
 1961% Into: observe([a1],2).
 1962
 1963% LPS:  observe(from(a2,to(2,3))).
 1964% Into: observe([a2],3).
 1965
 1966% LPS:  observe(from(e2,to(3,6))).
 1967% Into: observe([e2],6).
 1968
 1969% LPS:  observe(from(a3,to(8,9))).
 1970% Into: observe([a3],9).
 1971
 1972% LPS:  then(if((from(a1,to(_22180,_22182)),from(e1,to(_22182,_22294)))),from(r1,to(_22294,_22462))).
 1973% Into: reactive_rule([happens(a1,_22180,_22182),happens(e1,_22182,_22294)],[happens(r1,_22294,_22462)]).
 1974
 1975% LPS:  if(from(e1,to(_23650,_23652)),(from(a2,to(_23650,_23764)),from(e2,to(_23874,_23652)))).
 1976% Into: l_events(happens(e1,_23650,_23652),[happens(a2,_23650,_23764),happens(e2,_23874,_23652)]).
 1977
 1978% LPS:  if(from(e2,to(_25092,_25094)),from(a3,to(_25204,_25206))).
 1979% Into: l_events(happens(e2,_25092,_25094),[happens(a3,_25204,_25206)]).
 1980
 1981% LPS:  initiates(e1,f1).
 1982% Into: initiated(happens(e1,_27426,_27432),f1,[]).
 1983% /pack/logicmoo_ec/test/lps_user_examples/antecedents_and_observations.pl:20
 1984% pop_lps_dialect('$BLOB'("<stream>(0x562ef3ca3c00)"),  (/.../(lps_user_examples, 'antecedents_and_observations.pl')-> /.../(lps_user_examples, 'antecedents_and_observations.pl'))).
 1985% ops.
 1986% :-listing('/pack/logicmoo_ec/test/lps_user_examples/antecedents_and_observations.pl':_35002).
 1987
 1988
 1989initiated(happens(e1, _, _), f1, []).
 1990
 1991fluents([f1]).
 1992
 1993reactive_rule([happens(a1, _, A), happens(e1, A, B)], [happens(r1, B, _)]).
 1994
 1995l_events(happens(e1, A, B), [happens(a2, A, _), happens(e2, _, B)]).
 1996l_events(happens(e2, _, _), [happens(a3, _, _)]).
 1997
 1998:- dynamic actions/1. 1999:- multifile actions/1. 2000
 2001actions([a1, r1, a2, a3]).
 2002
 2003events([e2]).
 2004
 2005observe([a1], 2).
 2006observe([a2], 3).
 2007observe([e2], 6).
 2008observe([a3], 9).
 2009
 2010maxTime(10).
 2011% dB(/.../(lps_user_examples, 'antecedents_and_observations.pl'), lps_visualization(_51546{groups:[_50638{content:"Events", id:"event", order:1}, _50712{content:"f1", id:"f1/0", order:3, subgroupStack:"false"}, _50778{content:"Actions", id:"action", order:4}], items:[_50888{content:"f1", end:11, group:"f1/0", id:0, start:9, title:"Fluent f1 initiated at 9<br/>and terminated at transition to 11"}, _51010{content:"a1", group:"event", id:1, start:2, style:"color:#E19735", title:"happens(a1,1,2)", type:"point"}, _51136{content:"a2", group:"event", id:2, start:3, style:"color:#E19735", title:"happens(a2,2,3)", type:"point"}, _51262{content:"e2", group:"event", id:3, start:6, style:"color:#E19735", title:"happens(e2,5,6)", type:"point"}, _51388{content:"a3", group:"event", id:4, start:9, style:"color:#E19735", title:"happens(a3,8,9)", type:"point"}, _51514{content:"r1", group:"action", id:5, start:10, style:"color:green", title:"happens(r1,9,10)", type:"point"}]}, [])).
 2012% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'arrival_correct.pl')).
 2013% run_lps_corner_file1(/.../(lps_user_examples, 'arrival_correct.pl')).
 2014% /pack/logicmoo_ec/test/lps_user_examples/arrival_correct.pl:1
 2015% push_lps_dialect.
 2016% ops.
 2017% [ti=user, load= /.../(lps_user_examples, 'arrival_correct.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'arrival_correct.pl'), lps= /.../(lps_user_examples, 'arrival_correct.pl'), using= /.../(lps_user_examples, 'arrival_correct.pl')].
 2018% continue_lps_dialect.
 2019% ops.
 2020
 2021% LPS:  actions((attack,rob,call_the(_19898),repeat_wife_message(_19938))).
 2022% Into: actions([attack,rob,call_the(_19898),repeat_wife_message(_19938)]).
 2023
 2024% LPS:  fluents((is_a_weapon,is_a_gift,has_phone)).
 2025% Into: fluents([is_a_weapon,is_a_gift,has_phone]).
 2026
 2027% LPS:  events((persuade,prepare,general_shows(_22244),call_general(_22244),general_remembers_wife(_22324))).
 2028% Into: events([persuade,prepare,general_shows(_22244),call_general(_22244),general_remembers_wife(_22324)]).
 2029
 2030% LPS:  initially(is_a_weapon).
 2031% Into: initial_state([is_a_weapon]).
 2032
 2033% LPS:  false((is_a_gift,attack)).
 2034% Into: d_pre([holds(is_a_gift,_25556),happens(attack,_25556,_25562)]).
 2035
 2036% LPS:  false((has_phone,rob)).
 2037% Into: d_pre([holds(has_phone,_26994),happens(rob,_26994,_27000)]).
 2038
 2039% LPS:  then(if(is_a_weapon),(prepare,attack)).
 2040% Into: reactive_rule([holds(is_a_weapon,_28502)],[happens(prepare,_28660,_28702),happens(attack,_28702,_28666)]).
 2041
 2042% LPS:  then(if(is_a_weapon),persuade).
 2043% Into: reactive_rule([holds(is_a_weapon,_29984)],[happens(persuade,_30142,_30148)]).
 2044
 2045% LPS:  then(if(is_a_weapon),rob).
 2046% Into: reactive_rule([holds(is_a_weapon,_31246)],[happens(rob,_31404,_31410)]).
 2047
 2048% LPS:  if(from(prepare,to(_31630,_31632)),(at(true,_31630),_31632 is _31630+6)).
 2049% Into: l_events(happens(prepare,_31630,_31632),[holds(true,_31630),_31632 is _31630+6]).
 2050
 2051% LPS:  if(persuade,(general_shows(_33670),general_remembers_wife(_33710),call_general(_33670),repeat_wife_message(_33710))).
 2052% Into: l_events(happens(persuade,_34950,_34956),[happens(general_shows(_33670),_34950,_35024),happens(general_remembers_wife(_33710),_35024,_35090),happens(call_general(_33670),_35090,_35156),happens(repeat_wife_message(_33710),_35156,_34956)]).
 2053
 2054% LPS:  if(call_general(_34968),call_the(_34968)).
 2055% Into: l_events(happens(call_general(_34968),_36034,_36040),[happens(call_the(_34968),_36034,_36040)]).
 2056
 2057% LPS:  terminates(persuade,is_a_weapon).
 2058% Into: terminated(happens(persuade,_37118,_37124),is_a_weapon,[]).
 2059
 2060% LPS:  initiates(persuade,is_a_gift).
 2061% Into: initiated(happens(persuade,_38134,_38140),is_a_gift,[]).
 2062
 2063% LPS:  initiates(rob,has_phone).
 2064% Into: initiated(happens(rob,_39158,_39164),has_phone,[]).
 2065
 2066% LPS:  observe(from(general_shows('+86-555000001'),to(2,3))).
 2067% Into: observe([general_shows('+86-555000001')],3).
 2068
 2069% LPS:  observe(from(general_remembers_wife(##########),to(3,4))).
 2070% Into: observe([general_remembers_wife(##########)],4).
 2071% /pack/logicmoo_ec/test/lps_user_examples/arrival_correct.pl:46
 2072% pop_lps_dialect('$BLOB'("<stream>(0x562ef4161000)"),  (/.../(lps_user_examples, 'arrival_correct.pl')-> /.../(lps_user_examples, 'arrival_correct.pl'))).
 2073% ops.
 2074% :-listing('/pack/logicmoo_ec/test/lps_user_examples/arrival_correct.pl':_49012).
 2075
 2076
 2077initiated(happens(persuade, _, _), is_a_gift, []).
 2078initiated(happens(rob, _, _), has_phone, []).
 2079
 2080d_pre([holds(is_a_gift, A), happens(attack, A, _)]).
 2081d_pre([holds(has_phone, A), happens(rob, A, _)]).
 2082
 2083fluents([is_a_weapon, is_a_gift, has_phone]).
 2084
 2085reactive_rule([holds(is_a_weapon, _)], [happens(prepare, _, A), happens(attack, A, _)]).
 2086reactive_rule([holds(is_a_weapon, _)], [happens(persuade, _, _)]).
 2087reactive_rule([holds(is_a_weapon, _)], [happens(rob, _, _)]).
 2088
 2089terminated(happens(persuade, _, _), is_a_weapon, []).
 2090
 2091initial_state([is_a_weapon]).
 2092
 2093l_events(happens(prepare, A, B), [holds(true, A), B is A+6]).
 2094l_events(happens(persuade, A, B), [happens(general_shows(C), A, D), happens(general_remembers_wife(E), D, F), happens(call_general(C), F, G), happens(repeat_wife_message(E), G, B)]).
 2095l_events(happens(call_general(A), B, C), [happens(call_the(A), B, C)]).
 2096
 2097:- dynamic actions/1. 2098:- multifile actions/1. 2099
 2100actions([attack, rob, call_the(_), repeat_wife_message(_)]).
 2101
 2102events([persuade, prepare, general_shows(A), call_general(A), general_remembers_wife(_)]).
 2103
 2104observe([general_shows('+86-555000001')], 3).
 2105observe([general_remembers_wife(##########)], 4).
 2106
 2107maxTime(15).
 2108% dB(/.../(lps_user_examples, 'arrival_correct.pl'), lps_visualization(_65518{groups:[_64234{content:"Events", id:"event", order:1}, _64308{content:"has_phone", id:"has_phone/0", order:3, subgroupStack:"false"}, _64386{content:"is_a_gift", id:"is_a_gift/0", order:3, subgroupStack:"false"}, _64464{content:"is_a_weapon", id:"is_a_weapon/0", order:3, subgroupStack:"false"}, _64530{content:"Actions", id:"action", order:4}], items:[_64640{content:"has_phone", end:16, group:"has_phone/0", id:0, start:2, title:"Fluent has_phone initiated at 2<br/>and terminated at transition to 16"}, _64750{content:"is_a_gift", end:16, group:"is_a_gift/0", id:1, start:6, title:"Fluent is_a_gift initiated at 6<br/>and terminated at transition to 16"}, _64860{content:"is_a_weapon", end:6, group:"is_a_weapon/0", id:2, start:1, title:"Fluent is_a_weapon initiated at 1<br/>and terminated at transition to 6"}, _64982{content:"rob", group:"action", id:3, start:2, style:"color:green", title:"happens(rob,1,2)", type:"point"}, _65108{content:"general_shows(+86-555000001)", group:"event", id:4, start:3, style:"color:#E19735", title:"happens(general_shows(+86-555000001),2,3)", type:"point"}, _65234{content:"general_remembers_wife(##########)", group:"event", id:5, start:4, style:"color:#E19735", title:"happens(general_remembers_wife(##########),3,4)", type:"point"}, _65360{content:"call_the(+86-555000001)", group:"action", id:6, start:5, style:"color:green", title:"happens(call_the(+86-555000001),4,5)", type:"point"}, _65486{content:"repeat_wife_message(##########)", group:"action", id:7, start:6, style:"color:green", title:"happens(repeat_wife_message(##########),5,6)", type:"point"}]}, [])).
 2109% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'arrival_espa�ol(1).pl')).
 2110% run_lps_corner_file1(/.../(lps_user_examples, 'arrival_espa�ol(1).pl')).
 2111% /pack/logicmoo_ec/test/lps_user_examples/arrival_espa�ol(1).pl:1
 2112% push_lps_dialect.
 2113% ops.
 2114% [ti=user, load= /.../(lps_user_examples, 'arrival_espa�ol(1).pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'arrival_espa�ol(1).pl'), lps= /.../(lps_user_examples, 'arrival_espa�ol(1).pl'), using= /.../(lps_user_examples, 'arrival_espa�ol(1).pl')].
 2115% continue_lps_dialect.
 2116% ops.
 2117
 2118% LPS:  actions((atacar,robar,llamar_al(_19956),repita_mensaje_esposa(_19996))).
 2119% Into: actions([atacar,robar,llamar_al(_19956),repita_mensaje_esposa(_19996)]).
 2120
 2121% LPS:  fluents((es_un_arma,es_un_regalo)).
 2122% Into: fluents([es_un_arma,es_un_regalo]).
 2123
 2124% LPS:  events((prepare,persuade,muestra_del_general(_22436),llamar_general(_22436),general_recuerda_esposa(_22516))).
 2125% Into: events([prepare,persuade,muestra_del_general(_22436),llamar_general(_22436),general_recuerda_esposa(_22516)]).
 2126
 2127% LPS:  initially(es_un_arma).
 2128% Into: initial_state([es_un_arma]).
 2129
 2130% LPS:  observe(from(muestra_del_general('+86-555000001'),to(2,3))).
 2131% Into: observe([muestra_del_general('+86-555000001')],3).
 2132
 2133% LPS:  observe(from(general_recuerda_esposa(##########),to(3,4))).
 2134% Into: observe([general_recuerda_esposa(##########)],4).
 2135
 2136% LPS:  false((es_un_regalo,atacar)).
 2137% Into: d_pre([holds(es_un_regalo,_28204),happens(atacar,_28204,_28210)]).
 2138
 2139% LPS:  then(if(es_un_arma),(prepare,atacar)).
 2140% Into: reactive_rule([holds(es_un_arma,_29790)],[happens(prepare,_29948,_29990),happens(atacar,_29990,_29954)]).
 2141
 2142% LPS:  then(if(es_un_arma),persuade).
 2143% Into: reactive_rule([holds(es_un_arma,_31272)],[happens(persuade,_31430,_31436)]).
 2144
 2145% LPS:  if(from(prepare,to(_31560,_31562)),(at(true,_31560),_31562 is _31560+6)).
 2146% Into: l_events(happens(prepare,_31560,_31562),[holds(true,_31560),_31562 is _31560+6]).
 2147
 2148% LPS:  if(persuade,(muestra_del_general(_33592),general_recuerda_esposa(_33632),llamar_general(_33592),repita_mensaje_esposa(_33632))).
 2149% Into: l_events(happens(persuade,_34872,_34878),[happens(muestra_del_general(_33592),_34872,_34946),happens(general_recuerda_esposa(_33632),_34946,_35012),happens(llamar_general(_33592),_35012,_35078),happens(repita_mensaje_esposa(_33632),_35078,_34878)]).
 2150
 2151% LPS:  if(llamar_general(_34890),(robar,llamar_al(_34890))).
 2152% Into: l_events(happens(llamar_general(_34890),_36010,_36016),[happens(robar,_36010,_36090),happens(llamar_al(_34890),_36090,_36016)]).
 2153
 2154% LPS:  terminates(persuade,es_un_arma).
 2155% Into: terminated(happens(persuade,_37194,_37200),es_un_arma,[]).
 2156
 2157% LPS:  initiates(persuade,es_un_regalo).
 2158% Into: initiated(happens(persuade,_38210,_38216),es_un_regalo,[]).
 2159% /pack/logicmoo_ec/test/lps_user_examples/arrival_espa�ol(1).pl:61
 2160% pop_lps_dialect('$BLOB'("<stream>(0x562ef4161900)"),  (/.../(lps_user_examples, 'arrival_espa�ol(1).pl')-> /.../(lps_user_examples, 'arrival_espa�ol(1).pl'))).
 2161% ops.
 2162% :-listing('/pack/logicmoo_ec/test/lps_user_examples/arrival_espa�ol(1).pl':_45810).
 2163
 2164
 2165initiated(happens(persuade, _, _), es_un_regalo, []).
 2166
 2167d_pre([holds(es_un_regalo, A), happens(atacar, A, _)]).
 2168
 2169fluents([es_un_arma, es_un_regalo]).
 2170
 2171reactive_rule([holds(es_un_arma, _)], [happens(prepare, _, A), happens(atacar, A, _)]).
 2172reactive_rule([holds(es_un_arma, _)], [happens(persuade, _, _)]).
 2173
 2174terminated(happens(persuade, _, _), es_un_arma, []).
 2175
 2176initial_state([es_un_arma]).
 2177
 2178l_events(happens(prepare, A, B), [holds(true, A), B is A+6]).
 2179l_events(happens(persuade, A, B), [happens(muestra_del_general(C), A, D), happens(general_recuerda_esposa(E), D, F), happens(llamar_general(C), F, G), happens(repita_mensaje_esposa(E), G, B)]).
 2180l_events(happens(llamar_general(A), B, C), [happens(robar, B, D), happens(llamar_al(A), D, C)]).
 2181
 2182:- dynamic actions/1. 2183:- multifile actions/1. 2184
 2185actions([atacar, robar, llamar_al(_), repita_mensaje_esposa(_)]).
 2186
 2187events([prepare, persuade, muestra_del_general(A), llamar_general(A), general_recuerda_esposa(_)]).
 2188
 2189observe([muestra_del_general('+86-555000001')], 3).
 2190observe([general_recuerda_esposa(##########)], 4).
 2191
 2192maxTime(10).
 2193% dB(/.../(lps_user_examples, 'arrival_espa�ol(1).pl'), lps_visualization(_85454{groups:[_84358{content:"Events", id:"event", order:1}, _84432{content:"es_un_arma", id:"es_un_arma/0", order:3, subgroupStack:"false"}, _84510{content:"es_un_regalo", id:"es_un_regalo/0", order:3, subgroupStack:"false"}, _84576{content:"Actions", id:"action", order:4}], items:[_84686{content:"es_un_arma", end:7, group:"es_un_arma/0", id:0, start:1, title:"Fluent es_un_arma initiated at 1<br/>and terminated at transition to 7"}, _84796{content:"es_un_regalo", end:11, group:"es_un_regalo/0", id:1, start:7, title:"Fluent es_un_regalo initiated at 7<br/>and terminated at transition to 11"}, _84918{content:"muestra_del_general(+86-555000001)", group:"event", id:2, start:3, style:"color:#E19735", title:"happens(muestra_del_general(+86-555000001),2,3)", type:"point"}, _85044{content:"general_recuerda_esposa(##########)", group:"event", id:3, start:4, style:"color:#E19735", title:"happens(general_recuerda_esposa(##########),3,4)", type:"point"}, _85170{content:"robar", group:"action", id:4, start:5, style:"color:green", title:"happens(robar,4,5)", type:"point"}, _85296{content:"llamar_al(+86-555000001)", group:"action", id:5, start:6, style:"color:green", title:"happens(llamar_al(+86-555000001),5,6)", type:"point"}, _85422{content:"repita_mensaje_esposa(##########)", group:"action", id:6, start:7, style:"color:green", title:"happens(repita_mensaje_esposa(##########),6,7)", type:"point"}]}, [])).
 2194% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'arrival_espa�ol.pl')).
 2195% run_lps_corner_file1(/.../(lps_user_examples, 'arrival_espa�ol.pl')).
 2196% /pack/logicmoo_ec/test/lps_user_examples/arrival_espa�ol.pl:1
 2197% push_lps_dialect.
 2198% ops.
 2199% [ti=user, load= /.../(lps_user_examples, 'arrival_espa�ol.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'arrival_espa�ol.pl'), lps= /.../(lps_user_examples, 'arrival_espa�ol.pl'), using= /.../(lps_user_examples, 'arrival_espa�ol.pl')].
 2200% continue_lps_dialect.
 2201% ops.
 2202
 2203% LPS:  actions((atacar,robar,llamar_al(_56062),repita_mensaje_esposa(_56102))).
 2204% Into: actions([atacar,robar,llamar_al(_56062),repita_mensaje_esposa(_56102)]).
 2205
 2206% LPS:  fluents((es_un_arma,es_un_regalo)).
 2207% Into: fluents([es_un_arma,es_un_regalo]).
 2208
 2209% LPS:  events((prepare,persuade,muestra_del_general(_58542),llamar_general(_58542),general_recuerda_esposa(_58622))).
 2210% Into: events([prepare,persuade,muestra_del_general(_58542),llamar_general(_58542),general_recuerda_esposa(_58622)]).
 2211
 2212% LPS:  initially(es_un_arma).
 2213% Into: initial_state([es_un_arma]).
 2214
 2215% LPS:  observe(from(muestra_del_general('+86-555000001'),to(2,3))).
 2216% Into: observe([muestra_del_general('+86-555000001')],3).
 2217
 2218% LPS:  observe(from(general_recuerda_esposa(##########),to(3,4))).
 2219% Into: observe([general_recuerda_esposa(##########)],4).
 2220
 2221% LPS:  false((es_un_regalo,atacar)).
 2222% Into: d_pre([holds(es_un_regalo,_64310),happens(atacar,_64310,_64316)]).
 2223
 2224% LPS:  then(if(es_un_arma),(prepare,atacar)).
 2225% Into: reactive_rule([holds(es_un_arma,_65896)],[happens(prepare,_66054,_66096),happens(atacar,_66096,_66060)]).
 2226
 2227% LPS:  then(if(es_un_arma),persuade).
 2228% Into: reactive_rule([holds(es_un_arma,_67378)],[happens(persuade,_67536,_67542)]).
 2229
 2230% LPS:  if(from(prepare,to(_67666,_67668)),(at(true,_67666),_67668 is _67666+6)).
 2231% Into: l_events(happens(prepare,_67666,_67668),[holds(true,_67666),_67668 is _67666+6]).
 2232
 2233% LPS:  if(persuade,(muestra_del_general(_69698),general_recuerda_esposa(_69738),llamar_general(_69698),repita_mensaje_esposa(_69738))).
 2234% Into: l_events(happens(persuade,_70978,_70984),[happens(muestra_del_general(_69698),_70978,_71052),happens(general_recuerda_esposa(_69738),_71052,_71118),happens(llamar_general(_69698),_71118,_71184),happens(repita_mensaje_esposa(_69738),_71184,_70984)]).
 2235
 2236% LPS:  if(llamar_general(_70996),(robar,llamar_al(_70996))).
 2237% Into: l_events(happens(llamar_general(_70996),_72116,_72122),[happens(robar,_72116,_72196),happens(llamar_al(_70996),_72196,_72122)]).
 2238
 2239% LPS:  terminates(persuade,es_un_arma).
 2240% Into: terminated(happens(persuade,_73300,_73306),es_un_arma,[]).
 2241
 2242% LPS:  initiates(persuade,es_un_regalo).
 2243% Into: initiated(happens(persuade,_74316,_74322),es_un_regalo,[]).
 2244% /pack/logicmoo_ec/test/lps_user_examples/arrival_espa�ol.pl:61
 2245% pop_lps_dialect('$BLOB'("<stream>(0x562ef33a8d00)"),  (/.../(lps_user_examples, 'arrival_espa�ol.pl')-> /.../(lps_user_examples, 'arrival_espa�ol.pl'))).
 2246% ops.
 2247% :-listing('/pack/logicmoo_ec/test/lps_user_examples/arrival_espa�ol.pl':_81910).
 2248
 2249
 2250initiated(happens(persuade, _, _), es_un_regalo, []).
 2251
 2252d_pre([holds(es_un_regalo, A), happens(atacar, A, _)]).
 2253
 2254fluents([es_un_arma, es_un_regalo]).
 2255
 2256reactive_rule([holds(es_un_arma, _)], [happens(prepare, _, A), happens(atacar, A, _)]).
 2257reactive_rule([holds(es_un_arma, _)], [happens(persuade, _, _)]).
 2258
 2259terminated(happens(persuade, _, _), es_un_arma, []).
 2260
 2261initial_state([es_un_arma]).
 2262
 2263l_events(happens(prepare, A, B), [holds(true, A), B is A+6]).
 2264l_events(happens(persuade, A, B), [happens(muestra_del_general(C), A, D), happens(general_recuerda_esposa(E), D, F), happens(llamar_general(C), F, G), happens(repita_mensaje_esposa(E), G, B)]).
 2265l_events(happens(llamar_general(A), B, C), [happens(robar, B, D), happens(llamar_al(A), D, C)]).
 2266
 2267:- dynamic actions/1. 2268:- multifile actions/1. 2269
 2270actions([atacar, robar, llamar_al(_), repita_mensaje_esposa(_)]).
 2271
 2272events([prepare, persuade, muestra_del_general(A), llamar_general(A), general_recuerda_esposa(_)]).
 2273
 2274observe([muestra_del_general('+86-555000001')], 3).
 2275observe([general_recuerda_esposa(##########)], 4).
 2276
 2277maxTime(10).
 2278% dB(/.../(lps_user_examples, 'arrival_espa�ol.pl'), lps_visualization(_55514{groups:[_54418{content:"Events", id:"event", order:1}, _54492{content:"es_un_arma", id:"es_un_arma/0", order:3, subgroupStack:"false"}, _54570{content:"es_un_regalo", id:"es_un_regalo/0", order:3, subgroupStack:"false"}, _54636{content:"Actions", id:"action", order:4}], items:[_54746{content:"es_un_arma", end:7, group:"es_un_arma/0", id:0, start:1, title:"Fluent es_un_arma initiated at 1<br/>and terminated at transition to 7"}, _54856{content:"es_un_regalo", end:11, group:"es_un_regalo/0", id:1, start:7, title:"Fluent es_un_regalo initiated at 7<br/>and terminated at transition to 11"}, _54978{content:"muestra_del_general(+86-555000001)", group:"event", id:2, start:3, style:"color:#E19735", title:"happens(muestra_del_general(+86-555000001),2,3)", type:"point"}, _55104{content:"general_recuerda_esposa(##########)", group:"event", id:3, start:4, style:"color:#E19735", title:"happens(general_recuerda_esposa(##########),3,4)", type:"point"}, _55230{content:"robar", group:"action", id:4, start:5, style:"color:green", title:"happens(robar,4,5)", type:"point"}, _55356{content:"llamar_al(+86-555000001)", group:"action", id:5, start:6, style:"color:green", title:"happens(llamar_al(+86-555000001),5,6)", type:"point"}, _55482{content:"repita_mensaje_esposa(##########)", group:"action", id:6, start:7, style:"color:green", title:"happens(repita_mensaje_esposa(##########),6,7)", type:"point"}]}, [])).
 2279% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'arrival.pl')).
 2280% run_lps_corner_file1(/.../(lps_user_examples, 'arrival.pl')).
 2281% /pack/logicmoo_ec/test/lps_user_examples/arrival.pl:1
 2282% push_lps_dialect.
 2283% ops.
 2284% [ti=user, load= /.../(lps_user_examples, 'arrival.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'arrival.pl'), lps= /.../(lps_user_examples, 'arrival.pl'), using= /.../(lps_user_examples, 'arrival.pl')].
 2285% continue_lps_dialect.
 2286% ops.
 2287
 2288% LPS:  actions((attack,rob,call_the(_19880),repeat_wife_message(_19920))).
 2289% Into: actions([attack,rob,call_the(_19880),repeat_wife_message(_19920)]).
 2290
 2291% LPS:  fluents((is_a_weapon,is_a_gift)).
 2292% Into: fluents([is_a_weapon,is_a_gift]).
 2293
 2294% LPS:  events((persuade,prepare,general_shows(_22172),call_general(_22172),general_remembers_wife(_22252))).
 2295% Into: events([persuade,prepare,general_shows(_22172),call_general(_22172),general_remembers_wife(_22252)]).
 2296
 2297% LPS:  initially(is_a_weapon).
 2298% Into: initial_state([is_a_weapon]).
 2299
 2300% LPS:  false((is_a_gift,attack)).
 2301% Into: d_pre([holds(is_a_gift,_25484),happens(attack,_25484,_25490)]).
 2302
 2303% LPS:  then(if(is_a_weapon),(prepare,attack)).
 2304% Into: reactive_rule([holds(is_a_weapon,_26992)],[happens(prepare,_27150,_27192),happens(attack,_27192,_27156)]).
 2305
 2306% LPS:  then(if(is_a_weapon),persuade).
 2307% Into: reactive_rule([holds(is_a_weapon,_28474)],[happens(persuade,_28632,_28638)]).
 2308
 2309% LPS:  if(from(prepare,to(_28700,_28702)),(at(true,_28700),_28702 is _28700+6)).
 2310% Into: l_events(happens(prepare,_28700,_28702),[holds(true,_28700),_28702 is _28700+6]).
 2311
 2312% LPS:  if(persuade,(general_shows(_30732),general_remembers_wife(_30772),call_general(_30732),repeat_wife_message(_30772))).
 2313% Into: l_events(happens(persuade,_32012,_32018),[happens(general_shows(_30732),_32012,_32086),happens(general_remembers_wife(_30772),_32086,_32152),happens(call_general(_30732),_32152,_32218),happens(repeat_wife_message(_30772),_32218,_32018)]).
 2314
 2315% LPS:  if(call_general(_32030),(rob,call_the(_32030))).
 2316% Into: l_events(happens(call_general(_32030),_33150,_33156),[happens(rob,_33150,_33230),happens(call_the(_32030),_33230,_33156)]).
 2317
 2318% LPS:  terminates(persuade,is_a_weapon).
 2319% Into: terminated(happens(persuade,_34234,_34240),is_a_weapon,[]).
 2320
 2321% LPS:  initiates(persuade,is_a_gift).
 2322% Into: initiated(happens(persuade,_35250,_35256),is_a_gift,[]).
 2323
 2324% LPS:  observe(from(general_shows('+86-555000001'),to(2,3))).
 2325% Into: observe([general_shows('+86-555000001')],3).
 2326
 2327% LPS:  observe(from(general_remembers_wife(##########),to(3,4))).
 2328% Into: observe([general_remembers_wife(##########)],4).
 2329% /pack/logicmoo_ec/test/lps_user_examples/arrival.pl:41
 2330% pop_lps_dialect('$BLOB'("<stream>(0x562ef4163d00)"),  (/.../(lps_user_examples, 'arrival.pl')-> /.../(lps_user_examples, 'arrival.pl'))).
 2331% ops.
 2332% :-listing('/pack/logicmoo_ec/test/lps_user_examples/arrival.pl':_45100).
 2333
 2334
 2335initiated(happens(persuade, _, _), is_a_gift, []).
 2336
 2337d_pre([holds(is_a_gift, A), happens(attack, A, _)]).
 2338
 2339fluents([is_a_weapon, is_a_gift]).
 2340
 2341reactive_rule([holds(is_a_weapon, _)], [happens(prepare, _, A), happens(attack, A, _)]).
 2342reactive_rule([holds(is_a_weapon, _)], [happens(persuade, _, _)]).
 2343
 2344terminated(happens(persuade, _, _), is_a_weapon, []).
 2345
 2346initial_state([is_a_weapon]).
 2347
 2348l_events(happens(prepare, A, B), [holds(true, A), B is A+6]).
 2349l_events(happens(persuade, A, B), [happens(general_shows(C), A, D), happens(general_remembers_wife(E), D, F), happens(call_general(C), F, G), happens(repeat_wife_message(E), G, B)]).
 2350l_events(happens(call_general(A), B, C), [happens(rob, B, D), happens(call_the(A), D, C)]).
 2351
 2352:- dynamic actions/1. 2353:- multifile actions/1. 2354
 2355actions([attack, rob, call_the(_), repeat_wife_message(_)]).
 2356
 2357events([persuade, prepare, general_shows(A), call_general(A), general_remembers_wife(_)]).
 2358
 2359observe([general_shows('+86-555000001')], 3).
 2360observe([general_remembers_wife(##########)], 4).
 2361
 2362maxTime(10).
 2363% dB(/.../(lps_user_examples, 'arrival.pl'), lps_visualization(_90168{groups:[_89072{content:"Events", id:"event", order:1}, _89146{content:"is_a_gift", id:"is_a_gift/0", order:3, subgroupStack:"false"}, _89224{content:"is_a_weapon", id:"is_a_weapon/0", order:3, subgroupStack:"false"}, _89290{content:"Actions", id:"action", order:4}], items:[_89400{content:"is_a_gift", end:11, group:"is_a_gift/0", id:0, start:7, title:"Fluent is_a_gift initiated at 7<br/>and terminated at transition to 11"}, _89510{content:"is_a_weapon", end:7, group:"is_a_weapon/0", id:1, start:1, title:"Fluent is_a_weapon initiated at 1<br/>and terminated at transition to 7"}, _89632{content:"general_shows(+86-555000001)", group:"event", id:2, start:3, style:"color:#E19735", title:"happens(general_shows(+86-555000001),2,3)", type:"point"}, _89758{content:"general_remembers_wife(##########)", group:"event", id:3, start:4, style:"color:#E19735", title:"happens(general_remembers_wife(##########),3,4)", type:"point"}, _89884{content:"rob", group:"action", id:4, start:5, style:"color:green", title:"happens(rob,4,5)", type:"point"}, _90010{content:"call_the(+86-555000001)", group:"action", id:5, start:6, style:"color:green", title:"happens(call_the(+86-555000001),5,6)", type:"point"}, _90136{content:"repeat_wife_message(##########)", group:"action", id:6, start:7, style:"color:green", title:"happens(repeat_wife_message(##########),6,7)", type:"point"}]}, [])).
 2364% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'badBlocks.pl')).
 2365% run_lps_corner_file1(/.../(lps_user_examples, 'badBlocks.pl')).
 2366% /pack/logicmoo_ec/test/lps_user_examples/badBlocks.pl:1
 2367% push_lps_dialect.
 2368% ops.
 2369% [ti=user, load= /.../(lps_user_examples, 'badBlocks.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'badBlocks.pl'), lps= /.../(lps_user_examples, 'badBlocks.pl'), using= /.../(lps_user_examples, 'badBlocks.pl')].
 2370% continue_lps_dialect.
 2371% ops.
 2372
 2373% LPS:  fluents(location(_55870,_55872)).
 2374% Into: fluents([location(_55870,_55872)]).
 2375
 2376% LPS:  actions(move(_56914,_56916)).
 2377% Into: actions([move(_56914,_56916)]).
 2378
 2379% LPS:  initially((location(b,floor),location(c,b),location(a,floor))).
 2380% Into: initial_state([location(b,floor),location(c,b),location(a,floor)]).
 2381
 2382% LPS:  observe(from(move(d,a),to(3,4))).
 2383% Into: observe([move(d,a)],4).
 2384
 2385% LPS:  then(if(true),from(make_tower([b,a,floor]),to(_60518,_60520))).
 2386% Into: reactive_rule([],[happens(make_tower([b,a,floor]),_60518,_60520)]).
 2387
 2388% LPS:  if(at(clear(_61708),_61730),(_61708\=floor,at(not(location(_61882,_61708)),_61730))).
 2389% Into: l_int(holds(clear(_61708),_61730),[_61708\=floor,holds(not(location(_61882,_61708)),_61730)]).
 2390
 2391% LPS:  at(clear(floor),_63874).
 2392% Into: l_int(holds(clear(floor),_63874),[]).
 2393
 2394% LPS:  if(from(make_tower([_65102,floor]),to(_65164,_65166)),from(make_on(_65102,floor),to(_65164,_65166))).
 2395% Into: l_events(happens(make_tower([_65102,floor]),_65164,_65166),[happens(make_on(_65102,floor),_65164,_65166)]).
 2396
 2397% LPS:  if(from(make_tower([_66502,_66522|_66524]),to(_66572,_66574)),(_66522\=floor,from(make_tower([_66522|_66524]),to(_66572,_66808)),from(make_on(_66502,_66522),to(_66808,_66574)))).
 2398% Into: l_events(happens(make_tower([_66502,_66522|_66524]),_66572,_66574),[_66522\=floor,happens(make_tower([_66522|_66524]),_66572,_66808),happens(make_on(_66502,_66522),_66808,_66574)]).
 2399
 2400% LPS:  if(from(make_on(_68354,_68356),to(_68392,_68394)),(at(not(location(_68354,_68356)),_68392),from(make_clear(_68354),to(_68664,_68666)),from(make_clear(_68356),to(_68394,_68802)),from(move(_68354,_68356),to(_68952,_68954)))).
 2401% Into: l_events(happens(make_on(_68354,_68356),_68392,_68394),[holds(not(location(_68354,_68356)),_68392),happens(make_clear(_68354),_68664,_68666),happens(make_clear(_68356),_68394,_68802),happens(move(_68354,_68356),_68952,_68954)]).
 2402
 2403% LPS:  if(from(make_on(_70356,_70358),to(_70394,_70394)),at(location(_70356,_70358),_70394)).
 2404% Into: l_events(happens(make_on(_70356,_70358),_70394,_70394),[holds(location(_70356,_70358),_70394)]).
 2405
 2406% LPS:  if(from(make_clear(_71648),to(_71684,_71684)),at(clear(_71648),_71684)).
 2407% Into: l_events(happens(make_clear(_71648),_71684,_71684),[holds(clear(_71648),_71684)]).
 2408
 2409% LPS:  if(from(make_clear(_72906),to(_72942,_72944)),(at(location(_73056,_72906),_72942),from(make_on(_73056,floor),to(_72942,_72944)))).
 2410% Into: l_events(happens(make_clear(_72906),_72942,_72944),[holds(location(_73056,_72906),_72942),happens(make_on(_73056,floor),_72942,_72944)]).
 2411
 2412% LPS:  initiates(move(_74428,_74430),location(_74428,_74430)).
 2413% Into: initiated(happens(move(_74428,_74430),_75614,_75620),location(_74428,_74430),[]).
 2414
 2415% LPS:  terminates(move(_75560,_75562),location(_75560,_75618)).
 2416% Into: terminated(happens(move(_75560,_75562),_76746,_76752),location(_75560,_75618),[]).
 2417
 2418% LPS:  false((move(_76700,_76702),not(clear(_76700)))).
 2419% Into: d_pre([happens(move(_76700,_76702),_77844,_77850),holds(not(clear(_76700)),_77844)]).
 2420
 2421% LPS:  false((move(_77886,_77888),not(clear(_77888)))).
 2422% Into: d_pre([happens(move(_77886,_77888),_79030,_79036),holds(not(clear(_77888)),_79030)]).
 2423% /pack/logicmoo_ec/test/lps_user_examples/badBlocks.pl:61
 2424% pop_lps_dialect('$BLOB'("<stream>(0x562ef32aa300)"),  (/.../(lps_user_examples, 'badBlocks.pl')-> /.../(lps_user_examples, 'badBlocks.pl'))).
 2425% ops.
 2426% :-listing('/pack/logicmoo_ec/test/lps_user_examples/badBlocks.pl':_86646).
 2427
 2428
 2429initiated(happens(move(A, B), _, _), location(A, B), []).
 2430
 2431d_pre([happens(move(A, _), B, _), holds(not(clear(A)), B)]).
 2432d_pre([happens(move(_, A), B, _), holds(not(clear(A)), B)]).
 2433
 2434fluents([location(_, _)]).
 2435
 2436l_int(holds(clear(A), B), [A\=floor, holds(not(location(_, A)), B)]).
 2437l_int(holds(clear(floor), _), []).
 2438
 2439reactive_rule([], [happens(make_tower([b, a, floor]), _, _)]).
 2440
 2441terminated(happens(move(A, _), _, _), location(A, _), []).
 2442
 2443initial_state([location(b, floor), location(c, b), location(a, floor)]).
 2444
 2445l_events(happens(make_tower([A, floor]), B, C), [happens(make_on(A, floor), B, C)]).
 2446l_events(happens(make_tower([A, B|C]), D, E), [B\=floor, happens(make_tower([B|C]), D, F), happens(make_on(A, B), F, E)]).
 2447l_events(happens(make_on(A, B), C, D), [holds(not(location(A, B)), C), happens(make_clear(A), _, _), happens(make_clear(B), D, _), happens(move(A, B), _, _)]).
 2448l_events(happens(make_on(A, B), C, C), [holds(location(A, B), C)]).
 2449l_events(happens(make_clear(A), B, B), [holds(clear(A), B)]).
 2450l_events(happens(make_clear(A), B, C), [holds(location(D, A), B), happens(make_on(D, floor), B, C)]).
 2451
 2452:- dynamic actions/1. 2453:- multifile actions/1. 2454
 2455actions([move(_, _)]).
 2456
 2457observe([move(d, a)], 4).
 2458
 2459maxTime(10).
 2460Warning: Rejected observations [move(d,a)] attempting to satisfy false preconditions [happens(move(d,a),3,4),holds(not(clear(a)),3)]
 2461% dB(/.../(lps_user_examples, 'badBlocks.pl'), lps_visualization(_98908{groups:[_97932{content:"location(A,B)", id:"location/2", order:3, subgroupStack:"false"}, _97998{content:"Actions", id:"action", order:4}], items:[_98120{content:"a,floor", end:11, group:"location/2", id:0, start:1, subgroup:"a", title:"Fluent location(a,floor) initiated at 1<br/>and terminated at transition to 11"}, _98246{content:"b,a", end:11, group:"location/2", id:1, start:3, subgroup:"b", title:"Fluent location(b,a) initiated at 3<br/>and terminated at transition to 11"}, _98372{content:"b,floor", end:3, group:"location/2", id:2, start:1, subgroup:"b", title:"Fluent location(b,floor) initiated at 1<br/>and terminated at transition to 3"}, _98498{content:"c,b", end:2, group:"location/2", id:3, start:1, subgroup:"c", title:"Fluent location(c,b) initiated at 1<br/>and terminated at transition to 2"}, _98624{content:"c,floor", end:11, group:"location/2", id:4, start:2, subgroup:"c", title:"Fluent location(c,floor) initiated at 2<br/>and terminated at transition to 11"}, _98750{content:"move(c,floor)", group:"action", id:5, start:2, style:"color:green", title:"happens(move(c,floor),1,2)", type:"point"}, _98876{content:"move(b,a)", group:"action", id:6, start:3, style:"color:green", title:"happens(move(b,a),2,3)", type:"point"}]}, [])).
 2462% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'bad conveyor.pl')).
 2463% run_lps_corner_file1(/.../(lps_user_examples, 'bad conveyor.pl')).
 2464% /pack/logicmoo_ec/test/lps_user_examples/bad conveyor.pl:1
 2465% push_lps_dialect.
 2466% ops.
 2467% [ti=user, load= /.../(lps_user_examples, 'bad conveyor.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'bad conveyor.pl'), lps= /.../(lps_user_examples, 'bad conveyor.pl'), using= /.../(lps_user_examples, 'bad conveyor.pl')].
 2468% continue_lps_dialect.
 2469% ops.
 2470
 2471% LPS:  fluents((pouring(_19836),contents(_19836,_19892),empty/1,location(_20010,_20012))).
 2472% Into: fluents([pouring(_19836),contents(_19836,_19892),empty(_21324),location(_20010,_20012)]).
 2473
 2474% LPS:  initially((contents(bottle,0),contents(container,0),contents(tank1,100),contents(tank2,100),location(bottle,160),location(tank1,160),location(tank2,240),location(container,360))).
 2475% Into: initial_state([contents(bottle,0),contents(container,0),contents(tank1,100),contents(tank2,100),location(bottle,160),location(tank1,160),location(tank2,240),location(container,360)]).
 2476
 2477% LPS:  actions((openValve(_22962),closeValve(_22962),pourChunk(_23056,_23058),turnConveyor/1)).
 2478% Into: actions([openValve(_22962),closeValve(_22962),pourChunk(_23056,_23058),turnConveyor(_24426)]).
 2479
 2480% LPS:  false((pourChunk(_24370,_24372),turnConveyor(_24412))).
 2481% Into: d_pre([happens(pourChunk(_24370,_24372),_25454,_25460),happens(turnConveyor(_24412),_25454,_25460)]).
 2482
 2483% LPS:  false((pourChunk(_25540,_25542),location(_25540,_25598),location(_25542,_25654),_25598\=_25654)).
 2484% Into: d_pre([happens(pourChunk(_25540,_25542),_26898,_26904),holds(location(_25540,_25598),_26898),holds(location(_25542,_25654),_26898),_25598\=_25654]).
 2485
 2486% LPS:  if(from(makeLocation(bottle,_27744),_27766),(at(location(bottle,_27848),_27766),at(location(_27744,_27952),_27766),_28084 is _27952-_27848,from(moveConveyor(_28084),_27766))).
 2487% Into: l_events(happens(makeLocation(bottle,_27744),_27766,_29444),[holds(location(bottle,_27848),_27766),holds(location(_27744,_27952),_27766),_28084 is _27952-_27848,happens(moveConveyor(_28084),_27766,_29534)]).
 2488
 2489% LPS:  from(moveConveyor(0),to(_30470,_30470)).
 2490% Into: l_events(happens(moveConveyor(0),_30470,_30470),[]).
 2491
 2492% LPS:  if(from(moveConveyor(_31544),to(_31580,_31582)),(_31544>0,from(turnConveyor(clockwise),to(_31580,_31782)),_31924 is _31544-10,from(moveConveyor(_31924),to(_31782,_31582)))).
 2493% Into: l_events(happens(moveConveyor(_31544),_31580,_31582),[_31544>0,happens(turnConveyor(clockwise),_31580,_31782),_31924 is _31544-10,happens(moveConveyor(_31924),_31782,_31582)]).
 2494
 2495% LPS:  if(moveConveyor(_33992),(_33992<0,turnConveyor(counterClockwise),_34180 is _33992+10,moveConveyor(_34180))).
 2496% Into: l_events(happens(moveConveyor(_33992),_35422,_35428),[_33992<0,happens(turnConveyor(counterClockwise),_35422,_35704),_34180 is _33992+10,happens(moveConveyor(_34180),_35704,_35428)]).
 2497
 2498% LPS:  if(updates(turnConveyor(counterClockwise),in(to(_36012,_36014),location(bottle,_36012))),_36014 is _36012-10).
 2499% Into: updated(happens(turnConveyor(counterClockwise),_37488,_37494),location(bottle,_36012),_36012-_36014,[_36014 is _36012-10]).
 2500
 2501% LPS:  if(updates(turnConveyor(clockwise),in(to(_37766,_37768),location(bottle,_37766))),_37768 is _37766+10).
 2502% Into: updated(happens(turnConveyor(clockwise),_39242,_39248),location(bottle,_37766),_37766-_37768,[_37768 is _37766+10]).
 2503
 2504% LPS:  if(empty(_39484),contents(_39484,0)).
 2505% Into: l_int(holds(empty(_39484),_40568),[holds(contents(_39484,0),_40568)]).
 2506
 2507% LPS:  then(if((at(empty(bottle),_40616),at(location(bottle,160),_40616))),(from(pour(tank1,bottle,50),to(_40616,_40912)),from(makeLocation(bottle,tank2),to(_40912,_41064)),from(pour(tank2,bottle,50),to(_41064,_41232)),from(makeLocation(bottle,container),to(_41232,_41384)),from(pour(bottle,container,100),to(_41384,_41552)),from(makeLocation(bottle,tank1),_41552))).
 2508% Into: reactive_rule([holds(empty(bottle),_40616),holds(location(bottle,160),_40616)],[happens(pour(tank1,bottle,50),_40616,_40912),happens(makeLocation(bottle,tank2),_40912,_41064),happens(pour(tank2,bottle,50),_41064,_41232),happens(makeLocation(bottle,container),_41232,_41384),happens(pour(bottle,container,100),_41384,_41552),happens(makeLocation(bottle,tank1),_41552,_43344)]).
 2509
 2510% LPS:  if(from(pour(_43168,_43170,_43172),to(_43208,_43210)),(at(contents(_43170,_43324),_43208),_43456 is _43172+_43324,valveRate(_43524),_43608 is _43456-_43524,from(openValve(_43168),to(_43208,_43714)),at(contents(_43170,_43608),_43850),from(closeValve(_43168),to(_43850,_43210)))).
 2511% Into: l_events(happens(pour(_43168,_43170,_43172),_43208,_43210),[holds(contents(_43170,_43324),_43208),_43456 is _43172+_43324,valveRate(_43524),_43608 is _43456-_43524,happens(openValve(_43168),_43208,_43714),holds(contents(_43170,_43608),_43850),happens(closeValve(_43168),_43850,_43210)]).
 2512
 2513% LPS:  initiates(openValve(_45500),pouring(_45500)).
 2514% Into: initiated(happens(openValve(_45500),_46648,_46654),pouring(_45500),[]).
 2515
 2516% LPS:  terminates(closeValve(_46584),pouring(_46584)).
 2517% Into: terminated(happens(closeValve(_46584),_47732,_47738),pouring(_46584),[]).
 2518
 2519% LPS:  then(if((at(pouring(_47676),_47698),at(location(_47676,_47780),_47698),at(location(_47882,_47780),_47698),_47882\=_47676)),from(pourChunk(_47676,_47882),to(_47698,_48210))).
 2520% Into: reactive_rule([holds(pouring(_47676),_47698),holds(location(_47676,_47780),_47698),holds(location(_47882,_47780),_47698),_47882\=_47676],[happens(pourChunk(_47676,_47882),_47698,_48210)]).
 2521
 2522% LPS:  if(updates(pourChunk(_49446,_49448),in(to(_49484,_49486),contents(_49448,_49484))),(valveRate(_49672),_49486 is _49484+_49672)).
 2523% Into: updated(happens(pourChunk(_49446,_49448),_51070,_51076),contents(_49448,_49484),_49484-_49486,[valveRate(_49672),_49486 is _49484+_49672]).
 2524
 2525% LPS:  if(updates(pourChunk(_50954,_50956),in(to(_50992,_50994),contents(_50954,_50992))),(valveRate(_51180),_50994 is _50992-_51180)).
 2526% Into: updated(happens(pourChunk(_50954,_50956),_52578,_52584),contents(_50954,_50992),_50992-_50994,[valveRate(_51180),_50994 is _50992-_51180]).
 2527
 2528% LPS:  if(at(locatedContents(_53568,_53570,_53572),_53594),(at(location(_53568,_53570),_53594),at(contents(_53568,_53572),_53594))).
 2529% Into: l_int(holds(locatedContents(_53568,_53570,_53572),_53594),[holds(location(_53568,_53570),_53594),holds(contents(_53568,_53572),_53594)]).
 2530% /pack/logicmoo_ec/test/lps_user_examples/bad conveyor.pl:129
 2531% pop_lps_dialect('$BLOB'("<stream>(0x562ef4161900)"),  (/.../(lps_user_examples, 'bad conveyor.pl')-> /.../(lps_user_examples, 'bad conveyor.pl'))).
 2532% ops.
 2533% :-listing('/pack/logicmoo_ec/test/lps_user_examples/bad conveyor.pl':_70820).
 2534
 2535
 2536initiated(happens(openValve(A), _, _), pouring(A), []).
 2537
 2538d_pre([happens(pourChunk(_, _), A, B), happens(turnConveyor(_), A, B)]).
 2539d_pre([happens(pourChunk(A, B), C, _), holds(location(A, D), C), holds(location(B, E), C), D\=E]).
 2540
 2541d(locatedContents(bottle, Pos, Level), [type:rectangle, fillColor:yellow, from:[X1, 60], to:[X2, Height]]) :-
 2542    Height is 60+Level/4,
 2543    X1 is Pos-10,
 2544    X2 is Pos+10.
 2545d(location(bottle, Pos), [type:rectangle, from:[X1, 60], to:[X2, 100], strokeColor:blue]) :-
 2546    X1 is Pos-10,
 2547    X2 is Pos+10.
 2548d(timeless, [[type:line, strokeWidth:2, strokeColor:black, from:[100, 60], to:[400, 60]], [type:circle, strokeWidth:2, strokeColor:black, center:[100, 40], radius:20], [type:circle, strokeWidth:2, strokeColor:black, center:[400, 40], radius:20], [type:rectangle, fillColor:white, from:[130, 120], to:[190, 150], strokeColor:blue], [type:rectangle, fillColor:white, from:[210, 120], to:[270, 150], strokeColor:blue], [type:line, strokeWidth:2, strokeColor:black, from:[100, 20], to:[400, 20]]]).
 2549
 2550fluents([pouring(A), contents(A, _), empty(_), location(_, _)]).
 2551
 2552l_int(holds(empty(A), B), [holds(contents(A, 0), B)]).
 2553l_int(holds(locatedContents(A, B, C), D), [holds(location(A, B), D), holds(contents(A, C), D)]).
 2554
 2555reactive_rule([holds(empty(bottle), A), holds(location(bottle, 160), A)], [happens(pour(tank1, bottle, 50), A, B), happens(makeLocation(bottle, tank2), B, C), happens(pour(tank2, bottle, 50), C, D), happens(makeLocation(bottle, container), D, E), happens(pour(bottle, container, 100), E, F), happens(makeLocation(bottle, tank1), F, _)]).
 2556reactive_rule([holds(pouring(A), B), holds(location(A, C), B), holds(location(D, C), B), D\=A], [happens(pourChunk(A, D), B, _)]).
 2557
 2558terminated(happens(closeValve(A), _, _), pouring(A), []).
 2559
 2560valveRate(10).
 2561
 2562initial_state([contents(bottle, 0), contents(container, 0), contents(tank1, 100), contents(tank2, 100), location(bottle, 160), location(tank1, 160), location(tank2, 240), location(container, 360)]).
 2563
 2564l_events(happens(makeLocation(bottle, A), B, _), [holds(location(bottle, C), B), holds(location(A, D), B), E is D-C, happens(moveConveyor(E), B, _)]).
 2565l_events(happens(moveConveyor(0), A, A), []).
 2566l_events(happens(moveConveyor(A), B, C), [A>0, happens(turnConveyor(clockwise), B, D), E is A-10, happens(moveConveyor(E), D, C)]).
 2567l_events(happens(moveConveyor(A), B, C), [A<0, happens(turnConveyor(counterClockwise), B, D), E is A+10, happens(moveConveyor(E), D, C)]).
 2568l_events(happens(pour(A, B, C), D, E), [holds(contents(B, F), D), G is C+F, valveRate(H), I is G-H, happens(openValve(A), D, _), holds(contents(B, I), J), happens(closeValve(A), J, E)]).
 2569
 2570:- dynamic actions/1. 2571:- multifile actions/1. 2572
 2573actions([openValve(A), closeValve(A), pourChunk(_, _), turnConveyor(_)]).
 2574
 2575updated(happens(turnConveyor(counterClockwise), _, _), location(bottle, A), A-B, [B is A-10]).
 2576updated(happens(turnConveyor(clockwise), _, _), location(bottle, A), A-B, [B is A+10]).
 2577updated(happens(pourChunk(_, A), _, _), contents(A, B), B-C, [valveRate(D), C is B+D]).
 2578updated(happens(pourChunk(A, _), _, _), contents(A, B), B-C, [valveRate(D), C is B-D]).
 2579
 2580maxTime(90).
 2581ERROR: LPS: execution timeout(resolveAndUpdate)
 2582PROGRAM FAILED
 2583% dB(/.../(lps_user_examples, 'bad conveyor.pl'), lps_visualization(_50470{groups:[_41598{content:"contents(A,B)", id:"contents/2", order:3, subgroupStack:"false"}, _41624{content:"location(A,B)", id:"location/2", order:3, subgroupStack:"false"}, _41650{content:"pouring(A)", id:"pouring/1", order:3, subgroupStack:"false"}, _41676{content:"Actions", id:"action", order:4}], items:[_41698{content:"bottle", end:44, group:"pouring/1", id:0, start:34, subgroup:"bottle", title:"Fluent pouring(bottle) initiated at 34<br/>and terminated at transition to 44"}, _41736{content:"bottle", end:46, group:"pouring/1", id:1, start:45, subgroup:"bottle", title:"Fluent pouring(bottle) initiated at 45<br/>and terminated at transition to 46"}, _41774{content:"bottle", end:48, group:"pouring/1", id:2, start:47, subgroup:"bottle", title:"Fluent pouring(bottle) initiated at 47<br/>and terminated at transition to 48"}, ...(_83892)]}, _82910{cycles:[[_76854{create:[_76180{from:[100, 60], id:"timeless", strokeColor:"black", strokeWidth:2, to:[400, 60], type:"line"}, _76302{center:[100, 40], id:"timeless", radius:20, strokeColor:"black", strokeWidth:2, type:"circle"}, _76424{center:[400, 40], id:"timeless", radius:20, strokeColor:"black", strokeWidth:2, type:"circle"}, _76558{fillColor:"white", from:[130, 120], id:"timeless", strokeColor:"blue", to:[190, 150], type:"rectangle"}, _76692{fillColor:"white", from:[210, 120], id:"timeless", strokeColor:"blue", to:[270, 150], type:"rectangle"}, _76826{from:[100, 20], id:"timeless", strokeColor:"black", strokeWidth:2, to:[400, 20], type:"line"}]}], [_77002{create:_76978{from:[150, 60], id:"location(bottle,160)", strokeColor:"blue", to:[170, 100], type:"rectangle"}}], [], [], [], [], [], [], [_77186{create:_77162{from:[160, 60], id:"location(bottle,170)", strokeColor:"blue", to:[180, 100], type:"rectangle"}}, _77216{kill:"location(bottle,160)"}], [_77364{create:_77340{from:[170, 60], id:"location(bottle,180)", strokeColor:"blue", to:[190, 100], type:"rectangle"}}, _77394{kill:"location(bottle,170)"}], [_77542{create:_77518{from:[180, 60], id:"location(bottle,190)", strokeColor:"blue", to:[200, 100], type:"rectangle"}}, _77572{kill:"location(bottle,180)"}], [_77720{create:_77696{from:[190, 60], id:"location(bottle,200)", strokeColor:"blue", to:[210, 100], type:"rectangle"}}, _77750{kill:"location(bottle,190)"}], [_77898{create:_77874{from:[200, 60], id:"location(bottle,210)", strokeColor:"blue", to:[220, 100], type:"rectangle"}}, _77928{kill:"location(bottle,200)"}], [_78076{create:_78052{from:[210, 60], id:"location(bottle,220)", strokeColor:"blue", to:[230, 100], type:"rectangle"}}, _78106{kill:"location(bottle,210)"}], [_78254{create:_78230{from:[220, 60], id:"location(bottle,230)", strokeColor:"blue", to:[240, 100], type:"rectangle"}}, _78284{kill:"location(bottle,220)"}], [_78432{create:_78408{from:[230, 60], id:"location(bottle,240)", strokeColor:"blue", to:[250, 100], type:"rectangle"}}, _78462{kill:"location(bottle,230)"}], [], [], [], [], [], [], [_78646{create:_78622{from:[240, 60], id:"location(bottle,250)", strokeColor:"blue", to:[260, 100], type:"rectangle"}}, _78676{kill:"location(bottle,240)"}], [_78824{create:_78800{from:[250, 60], id:"location(bottle,260)", strokeColor:"blue", to:[270, 100], type:"rectangle"}}, _78854{kill:"location(bottle,250)"}], [_79002{create:_78978{from:[260, 60], id:"location(bottle,270)", strokeColor:"blue", to:[280, 100], type:"rectangle"}}, _79032{kill:"location(bottle,260)"}], [_79180{create:_79156{from:[270, 60], id:"location(bottle,280)", strokeColor:"blue", to:[290, 100], type:"rectangle"}}, _79210{kill:"location(bottle,270)"}], [_79358{create:_79334{from:[280, 60], id:"location(bottle,290)", strokeColor:"blue", to:[300, 100], type:"rectangle"}}, _79388{kill:"location(bottle,280)"}], [_79536{create:_79512{from:[290, 60], id:"location(bottle,300)", strokeColor:"blue", to:[310, 100], type:"rectangle"}}, _79566{kill:"location(bottle,290)"}], [_79714{create:_79690{from:[300, 60], id:"location(bottle,310)", strokeColor:"blue", to:[320, 100], type:"rectangle"}}, _79744{kill:"location(bottle,300)"}], [_79892{create:_79868{from:[310, 60], id:"location(bottle,320)", strokeColor:"blue", to:[330, 100], type:"rectangle"}}, _79922{kill:"location(bottle,310)"}], [_80070{create:_80046{from:[320, 60], id:"location(bottle,330)", strokeColor:"blue", to:[340, 100], type:"rectangle"}}, _80100{kill:"location(bottle,320)"}], [_80248{create:_80224{from:[330, 60], id:"location(bottle,340)", strokeColor:"blue", to:[350, 100], type:"rectangle"}}, _80278{kill:"location(bottle,330)"}], [_80426{create:_80402{from:[340, 60], id:"location(bottle,350)", strokeColor:"blue", to:[360, 100], type:"rectangle"}}, _80456{kill:"location(bottle,340)"}], [_80604{create:_80580{from:[350, 60], id:"location(bottle,360)", strokeColor:"blue", to:[370, 100], type:"rectangle"}}, _80634{kill:"location(bottle,350)"}], [], [], [], [], [], [], [], [], [], [], [], [_80848{create:_80824{from:[340, 60], id:"location(bottle,350)", strokeColor:"blue", to:[360, 100], type:"rectangle"}}, _80878{kill:"location(bottle,360)"}], [_81026{create:_81002{from:[330, 60], id:"location(bottle,340)", strokeColor:"blue", to:[350, 100], type:"rectangle"}}, _81056{kill:"location(bottle,350)"}], [_81204{create:_81180{from:[320, 60], id:"location(bottle,330)", strokeColor:"blue", to:[340, 100], type:"rectangle"}}, _81234{kill:"location(bottle,340)"}], [_81382{create:_81358{from:[310, 60], id:"location(bottle,320)", strokeColor:"blue", to:[330, 100], type:"rectangle"}}, _81412{kill:"location(bottle,330)"}], [_81560{create:_81536{from:[300, 60], id:"location(bottle,310)", strokeColor:"blue", to:[320, 100], type:"rectangle"}}, _81590{kill:"location(bottle,320)"}], [_81738{create:_81714{from:[290, 60], id:"location(bottle,300)", strokeColor:"blue", to:[310, 100], type:"rectangle"}}, _81768{kill:"location(bottle,310)"}], [_81916{create:_81892{from:[280, 60], id:"location(bottle,290)", strokeColor:"blue", to:[300, 100], type:"rectangle"}}, _81946{kill:"location(bottle,300)"}], [_82094{create:_82070{from:[270, 60], id:"location(bottle,280)", strokeColor:"blue", to:[290, 100], type:"rectangle"}}, _82124{kill:"location(bottle,290)"}], [_82272{create:_82248{from:[260, 60], id:"location(bottle,270)", strokeColor:"blue", to:[280, 100], type:"rectangle"}}, _82302{kill:"location(bottle,280)"}], [_82450{create:_82426{from:[250, 60], id:"location(bottle,260)", strokeColor:"blue", to:[270, 100], type:"rectangle"}}, _82480{kill:"location(bottle,270)"}], [_82628{create:_82604{from:[240, 60], id:"location(bottle,250)", strokeColor:"blue", to:[260, 100], type:"rectangle"}}, _82658{kill:"location(bottle,260)"}], [_82806{create:_82782{from:[230, 60], id:"location(bottle,240)", strokeColor:"blue", to:[250, 100], type:"rectangle"}}, _82836{kill:"location(bottle,250)"}], [_82872{kill:"location(bottle,240)"}, _82902{kill:"timeless"}]]})).
 2584% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'Ballot.pl')).
 2585% run_lps_corner_file1(/.../(lps_user_examples, 'Ballot.pl')).
 2586% /pack/logicmoo_ec/test/lps_user_examples/Ballot.pl:1
 2587% push_lps_dialect.
 2588% ops.
 2589% [ti=user, load= /.../(lps_user_examples, 'Ballot.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'Ballot.pl'), lps= /.../(lps_user_examples, 'Ballot.pl'), using= /.../(lps_user_examples, 'Ballot.pl')].
 2590% continue_lps_dialect.
 2591% ops.
 2592
 2593% LPS:  events((ballot(_147606,_147608),giveRightToVote(_147606,_147664),delegate(_147718,_147720),vote(_147664,_147776))).
 2594% Into: events([ballot(_147606,_147608),giveRightToVote(_147606,_147664),delegate(_147718,_147720),vote(_147664,_147776)]).
 2595
 2596% LPS:  fluents((chairman(_149008),voter(_149062,_149064),voted(_149062,_149120),delegateOf(_149062,_149176),voteCount(_149120,_149232))).
 2597% Into: fluents([chairman(_149008),voter(_149062,_149064),voted(_149062,_149120),delegateOf(_149062,_149176),voteCount(_149120,_149232)]).
 2598
 2599% LPS:  observe(from(ballot(chair,[trump,clinton]),to(1,2))).
 2600% Into: observe([ballot(chair,[trump,clinton])],2).
 2601
 2602% LPS:  observe((giveRightToVote(chair,miguel),giveRightToVote(chair,fariba),giveRightToVote(chair,bob),from(giveRightToVote(chair,jacinto),to(3,4)))).
 2603% Into: observe([giveRightToVote(chair,miguel),giveRightToVote(chair,fariba),giveRightToVote(chair,bob),giveRightToVote(chair,jacinto)],4).
 2604
 2605% LPS:  observe(from(delegate(bob,miguel),to(4,5))).
 2606% Into: observe([delegate(bob,miguel)],5).
 2607
 2608% LPS:  observe(from(vote(miguel,clinton),to(5,6))).
 2609% Into: observe([vote(miguel,clinton)],6).
 2610
 2611% LPS:  observe(from(delegate(jacinto,bob),to(6,7))).
 2612% Into: observe([delegate(jacinto,bob)],7).
 2613
 2614% LPS:  observe(from(delegate(fariba,miguel),to(7,8))).
 2615% Into: observe([delegate(fariba,miguel)],8).
 2616
 2617% LPS:  if(initiates(ballot(_157782,_157784),voteCount(_157838,0)),member(_157838,_157784)).
 2618% Into: initiated(happens(ballot(_157782,_157784),_159098,_159104),voteCount(_157838,0),[member(_157838,_157784)]).
 2619
 2620% LPS:  initiates(ballot(_159494,_159496),voter(_159494,1)).
 2621% Into: initiated(happens(ballot(_159494,_159496),_160680,_160686),voter(_159494,1),[]).
 2622
 2623% LPS:  initiates(ballot(_160626,_160628),chairman(_160626)).
 2624% Into: initiated(happens(ballot(_160626,_160628),_161792,_161798),chairman(_160626),[]).
 2625
 2626% LPS:  false((ballot(_161780,_161782),voteCount(_161836,_161838))).
 2627% Into: d_pre([happens(ballot(_161780,_161782),_162882,_162888),holds(voteCount(_161836,_161838),_162882)]).
 2628
 2629% LPS:  if(initiates(giveRightToVote(_163182,_163184),voter(_163184,1)),(chairman(_163182),not(voter(_163184,_163376)))).
 2630% Into: initiated(happens(giveRightToVote(_163182,_163184),_164604,_164610),voter(_163184,1),[holds(chairman(_163182),_164604),holds(not(voter(_163184,_163376)),_164604)]).
 2631
 2632% LPS:  updates(delegate(_165064,_165066),in(to(_165102,0),voter(_165064,_165102))).
 2633% Into: updated(happens(delegate(_165064,_165066),_166414,_166420),voter(_165064,_165102),_165102-0,[]).
 2634
 2635% LPS:  if(updates(delegate(_166316,_166318),in(to(_166354,_166356),voter(_166436,_166354))),(delegateOf(_166318,_166436),voter(_166316,_166614),_166356 is _166614+_166354)).
 2636% Into: updated(happens(delegate(_166316,_166318),_168082,_168088),voter(_166436,_166354),_166354-_166356,[holds(delegateOf(_166318,_166436),_168082),holds(voter(_166316,_166614),_168082),_166356 is _166614+_166354]).
 2637
 2638% LPS:  if(updates(delegate(_168936,_168938),in(to(_168974,_168976),voteCount(_169056,_168974))),(delegateOf(_168938,_169178),voted(_169178,_169056),voter(_168936,_169290),_168976 is _168974+_169290)).
 2639% Into: updated(happens(delegate(_168936,_168938),_170814,_170820),voteCount(_169056,_168974),_168974-_168976,[holds(delegateOf(_168938,_169178),_170814),holds(voted(_169178,_169056),_170814),holds(voter(_168936,_169290),_170814),_168976 is _168974+_169290]).
 2640
 2641% LPS:  initiates(delegate(_171822,_171824),voted(_171822,delegated(_171824))).
 2642% Into: initiated(happens(delegate(_171822,_171824),_173036,_173042),voted(_171822,delegated(_171824)),[]).
 2643
 2644% LPS:  if(delegateOf(_173016,_173018),(voted(_173016,delegated(_173092)),delegateOf(_173092,_173018))).
 2645% Into: l_int(holds(delegateOf(_173016,_173018),_174256),[holds(voted(_173016,delegated(_173092)),_174256),holds(delegateOf(_173092,_173018),_174256)]).
 2646
 2647% LPS:  if(delegateOf(_174868,_174868),not(voted(_174868,delegated(_174952)))).
 2648% Into: l_int(holds(delegateOf(_174868,_174868),_176020),[holds(not(voted(_174868,delegated(_174952))),_176020)]).
 2649
 2650% LPS:  false((delegate(_176494,_176496),delegate(_176550,_176496),_176494\=_176550)).
 2651% Into: d_pre([happens(delegate(_176494,_176496),_177740,_177746),happens(delegate(_176550,_176496),_177740,_177746),_176494\=_176550]).
 2652
 2653% LPS:  false((delegate(_19610,_19612),voted(_19610,_19654))).
 2654% Into: d_pre([happens(delegate(_19610,_19612),_19940,_19946),holds(voted(_19610,_19654),_19940)]).
 2655
 2656% LPS:  false((delegate(_20248,_20250),_20248==_20250)).
 2657% Into: d_pre([happens(delegate(_20248,_20250),_21382,_21388),_20248==_20250]).
 2658
 2659% LPS:  false((delegate(_21690,_21692),delegate(_21690,_21748),_21692\=_21748)).
 2660% Into: d_pre([happens(delegate(_21690,_21692),_22936,_22942),happens(delegate(_21690,_21748),_22936,_22942),_21692\=_21748]).
 2661
 2662% LPS:  false((delegate(_23344,_23346),delegateOf(_23346,_23344))).
 2663% Into: d_pre([happens(delegate(_23344,_23346),_24470,_24476),holds(delegateOf(_23346,_23344),_24470)]).
 2664
 2665% LPS:  initiates(vote(_24770,_24772),voted(_24770,_24772)).
 2666% Into: initiated(happens(vote(_24770,_24772),_25956,_25962),voted(_24770,_24772),[]).
 2667
 2668% LPS:  if(updates(vote(_25970,_25972),in(to(_26008,_26010),voteCount(_25972,_26008))),(voter(_25970,_26212),_26010 is _26008+_26212)).
 2669% Into: updated(happens(vote(_25970,_25972),_27624,_27630),voteCount(_25972,_26008),_26008-_26010,[holds(voter(_25970,_26212),_27624),_26010 is _26008+_26212]).
 2670
 2671% LPS:  false((vote(_28096,_28098),vote(_28152,_28098),_28096\=_28152)).
 2672% Into: d_pre([happens(vote(_28096,_28098),_29342,_29348),happens(vote(_28152,_28098),_29342,_29348),_28096\=_28152]).
 2673
 2674% LPS:  false((vote(_29716,_29718),voted(_29716,_29774))).
 2675% Into: d_pre([happens(vote(_29716,_29718),_30830,_30836),holds(voted(_29716,_29774),_30830)]).
 2676
 2677% LPS:  false((vote(_31138,_31140),vote(_31138,_31196),_31140\=_31196)).
 2678% Into: d_pre([happens(vote(_31138,_31140),_32384,_32390),happens(vote(_31138,_31196),_32384,_32390),_31140\=_31196]).
 2679
 2680% LPS:  if(at(winningProposal(_32750,_32752),_32774),(at(findall(_32752-_32750,voteCount(_32750,_32752),_32960),_32774),sort(_32960,_33064),append(_33206,[_32752-_32750],_33064))).
 2681% Into: l_int(holds(winningProposal(_32750,_32752),_32774),[holds(findall(_32752-_32750,[holds(voteCount(_32750,_32752),_32774)],_32960),_32774),sort(_32960,_33064),append(_33206,[_32752-_32750],_33064)]).
 2682
 2683% LPS:  then(if(winningProposal(_35530,4)),from(lps_terminate,_35594)).
 2684% Into: reactive_rule([holds(winningProposal(_35530,4),_36668)],[happens(lps_terminate,_35594,_37062)]).
 2685% /pack/logicmoo_ec/test/lps_user_examples/Ballot.pl:77
 2686% pop_lps_dialect('$BLOB'("<stream>(0x562ef4163d00)"),  (/.../(lps_user_examples, 'Ballot.pl')-> /.../(lps_user_examples, 'Ballot.pl'))).
 2687% ops.
 2688% :-listing('/pack/logicmoo_ec/test/lps_user_examples/Ballot.pl':_44738).
 2689
 2690
 2691initiated(happens(ballot(_, A), _, _), voteCount(B, 0), [member(B, A)]).
 2692initiated(happens(ballot(A, _), _, _), voter(A, 1), []).
 2693initiated(happens(ballot(A, _), _, _), chairman(A), []).
 2694initiated(happens(giveRightToVote(A, B), C, _), voter(B, 1), [holds(chairman(A), C), holds(not(voter(B, _)), C)]).
 2695initiated(happens(delegate(A, B), _, _), voted(A, delegated(B)), []).
 2696initiated(happens(vote(A, B), _, _), voted(A, B), []).
 2697
 2698d_pre([happens(ballot(_, _), A, _), holds(voteCount(_, _), A)]).
 2699d_pre([happens(delegate(A, B), C, D), happens(delegate(E, B), C, D), A\=E]).
 2700d_pre([happens(delegate(A, _), B, _), holds(voted(A, _), B)]).
 2701d_pre([happens(delegate(A, B), _, _), A==B]).
 2702d_pre([happens(delegate(A, B), C, D), happens(delegate(A, E), C, D), B\=E]).
 2703d_pre([happens(delegate(A, B), C, _), holds(delegateOf(B, A), C)]).
 2704d_pre([happens(vote(A, B), C, D), happens(vote(E, B), C, D), A\=E]).
 2705d_pre([happens(vote(A, _), B, _), holds(voted(A, _), B)]).
 2706d_pre([happens(vote(A, B), C, D), happens(vote(A, E), C, D), B\=E]).
 2707
 2708fluents([chairman(_), voter(A, _), voted(A, B), delegateOf(A, _), voteCount(B, _)]).
 2709
 2710l_int(holds(delegateOf(A, B), C), [holds(voted(A, delegated(D)), C), holds(delegateOf(D, B), C)]).
 2711l_int(holds(delegateOf(A, A), B), [holds(not(voted(A, delegated(_))), B)]).
 2712l_int(holds(winningProposal(A, B), C), [holds(findall(B-A, [holds(voteCount(A, B), C)], D), C), sort(D, E), append(_, [B-A], E)]).
 2713
 2714reactive_rule([holds(winningProposal(_, 4), _)], [happens(lps_terminate, _, _)]).
 2715
 2716:- dynamic actions/1. 2717:- multifile actions/1. 2718
 2719
 2720events([ballot(A, _), giveRightToVote(A, B), delegate(_, _), vote(B, _)]).
 2721
 2722observe([ballot(chair, [trump, clinton])], 2).
 2723observe([giveRightToVote(chair, miguel), giveRightToVote(chair, fariba), giveRightToVote(chair, bob), giveRightToVote(chair, jacinto)], 4).
 2724observe([delegate(bob, miguel)], 5).
 2725observe([vote(miguel, clinton)], 6).
 2726observe([delegate(jacinto, bob)], 7).
 2727observe([delegate(fariba, miguel)], 8).
 2728
 2729maxTime(15).
 2730
 2731updated(happens(delegate(A, _), _, _), voter(A, B), B-0, []).
 2732updated(happens(delegate(A, B), C, _), voter(D, E), E-F, [holds(delegateOf(B, D), C), holds(voter(A, G), C), F is G+E]).
 2733updated(happens(delegate(A, B), C, _), voteCount(D, E), E-F, [holds(delegateOf(B, G), C), holds(voted(G, D), C), holds(voter(A, H), C), F is E+H]).
 2734updated(happens(vote(A, B), C, _), voteCount(B, D), D-E, [holds(voter(A, F), C), E is D+F]).
 2735% dB(/.../(lps_user_examples, 'Ballot.pl'), lps_visualization(_91362{groups:[_87054{content:"Events", id:"event", order:1}, _87128{content:"chairman(A)", id:"chairman/1", order:3, subgroupStack:"false"}, _87206{content:"voteCount(A,B)", id:"voteCount/2", order:3, subgroupStack:"false"}, _87284{content:"voted(A,B)", id:"voted/2", order:3, subgroupStack:"false"}, _87362{content:"voter(A,B)", id:"voter/2", order:3, subgroupStack:"false"}, _87428{content:"Actions", id:"action", order:4}], items:[_87550{content:"chair", end:9, group:"chairman/1", id:0, start:2, subgroup:"chair", title:"Fluent chairman(chair) initiated at 2<br/>and terminated at transition to 9"}, _87676{content:"clinton,0", end:6, group:"voteCount/2", id:1, start:2, subgroup:"clinton", title:"Fluent voteCount(clinton,0) initiated at 2<br/>and terminated at transition to 6"}, _87802{content:"clinton,2", end:7, group:"voteCount/2", id:2, start:6, subgroup:"clinton", title:"Fluent voteCount(clinton,2) initiated at 6<br/>and terminated at transition to 7"}, _87928{content:"clinton,3", end:8, group:"voteCount/2", id:3, start:7, subgroup:"clinton", title:"Fluent voteCount(clinton,3) initiated at 7<br/>and terminated at transition to 8"}, _88054{content:"clinton,4", end:9, group:"voteCount/2", id:4, start:8, subgroup:"clinton", title:"Fluent voteCount(clinton,4) initiated at 8<br/>and terminated at transition to 9"}, _88180{content:"trump,0", end:9, group:"voteCount/2", id:5, start:2, subgroup:"trump", title:"Fluent voteCount(trump,0) initiated at 2<br/>and terminated at transition to 9"}, _88306{content:"bob,delegated(miguel)", end:9, group:"voted/2", id:6, start:5, subgroup:"bob", title:"Fluent voted(bob,delegated(miguel)) initiated at 5<br/>and terminated at transition to 9"}, _88432{content:"fariba,delegated(miguel)", end:9, group:"voted/2", id:7, start:8, subgroup:"fariba", title:"Fluent voted(fariba,delegated(miguel)) initiated at 8<br/>and terminated at transition to 9"}, _88558{content:"jacinto,delegated(bob)", end:9, group:"voted/2", id:8, start:7, subgroup:"jacinto", title:"Fluent voted(jacinto,delegated(bob)) initiated at 7<br/>and terminated at transition to 9"}, _88684{content:"miguel,clinton", end:9, group:"voted/2", id:9, start:6, subgroup:"miguel", title:"Fluent voted(miguel,clinton) initiated at 6<br/>and terminated at transition to 9"}, _88810{content:"bob,0", end:9, group:"voter/2", id:10, start:5, subgroup:"bob", title:"Fluent voter(bob,0) initiated at 5<br/>and terminated at transition to 9"}, _88936{content:"bob,1", end:5, group:"voter/2", id:11, start:4, subgroup:"bob", title:"Fluent voter(bob,1) initiated at 4<br/>and terminated at transition to 5"}, _89062{content:"chair,1", end:9, group:"voter/2", id:12, start:2, subgroup:"chair", title:"Fluent voter(chair,1) initiated at 2<br/>and terminated at transition to 9"}, _89188{content:"fariba,0", end:9, group:"voter/2", id:13, start:8, subgroup:"fariba", title:"Fluent voter(fariba,0) initiated at 8<br/>and terminated at transition to 9"}, _89314{content:"fariba,1", end:8, group:"voter/2", id:14, start:4, subgroup:"fariba", title:"Fluent voter(fariba,1) initiated at 4<br/>and terminated at transition to 8"}, _89440{content:"jacinto,0", end:9, group:"voter/2", id:15, start:7, subgroup:"jacinto", title:"Fluent voter(jacinto,0) initiated at 7<br/>and terminated at transition to 9"}, _89566{content:"jacinto,1", end:7, group:"voter/2", id:16, start:4, subgroup:"jacinto", title:"Fluent voter(jacinto,1) initiated at 4<br/>and terminated at transition to 7"}, _89692{content:"miguel,1", end:5, group:"voter/2", id:17, start:4, subgroup:"miguel", title:"Fluent voter(miguel,1) initiated at 4<br/>and terminated at transition to 5"}, _89818{content:"miguel,2", end:7, group:"voter/2", id:18, start:5, subgroup:"miguel", title:"Fluent voter(miguel,2) initiated at 5<br/>and terminated at transition to 7"}, _89944{content:"miguel,3", end:8, group:"voter/2", id:19, start:7, subgroup:"miguel", title:"Fluent voter(miguel,3) initiated at 7<br/>and terminated at transition to 8"}, _90070{content:"miguel,4", end:9, group:"voter/2", id:20, start:8, subgroup:"miguel", title:"Fluent voter(miguel,4) initiated at 8<br/>and terminated at transition to 9"}, _90196{content:"ballot(chair,[trump,clinton])", group:"event", id:21, start:2, style:"color:#E19735", title:"happens(ballot(chair,[trump,clinton]),1,2)", type:"point"}, _90322{content:"giveRightToVote(chair,miguel)", group:"event", id:22, start:4, style:"color:#E19735", title:"happens(giveRightToVote(chair,miguel),3,4)", type:"point"}, _90448{content:"giveRightToVote(chair,fariba)", group:"event", id:23, start:4, style:"color:#E19735", title:"happens(giveRightToVote(chair,fariba),3,4)", type:"point"}, _90574{content:"giveRightToVote(chair,bob)", group:"event", id:24, start:4, style:"color:#E19735", title:"happens(giveRightToVote(chair,bob),3,4)", type:"point"}, _90700{content:"giveRightToVote(chair,jacinto)", group:"event", id:25, start:4, style:"color:#E19735", title:"happens(giveRightToVote(chair,jacinto),3,4)", type:"point"}, _90826{content:"delegate(bob,miguel)", group:"event", id:26, start:5, style:"color:#E19735", title:"happens(delegate(bob,miguel),4,5)", type:"point"}, _90952{content:"vote(miguel,clinton)", group:"event", id:27, start:6, style:"color:#E19735", title:"happens(vote(miguel,clinton),5,6)", type:"point"}, _91078{content:"delegate(jacinto,bob)", group:"event", id:28, start:7, style:"color:#E19735", title:"happens(delegate(jacinto,bob),6,7)", type:"point"}, _91204{content:"delegate(fariba,miguel)", group:"event", id:29, start:8, style:"color:#E19735", title:"happens(delegate(fariba,miguel),7,8)", type:"point"}, _91330{content:"lps_terminate(unknown)", group:"action", id:30, start:9, style:"color:green", title:"happens(lps_terminate(unknown),8,9)", type:"point"}]}, [])).
 2736% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'bank.pl')).
 2737% run_lps_corner_file1(/.../(lps_user_examples, 'bank.pl')).
 2738% /pack/logicmoo_ec/test/lps_user_examples/bank.pl:1
 2739% push_lps_dialect.
 2740% ops.
 2741% [ti=user, load= /.../(lps_user_examples, 'bank.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'bank.pl'), lps= /.../(lps_user_examples, 'bank.pl'), using= /.../(lps_user_examples, 'bank.pl')].
 2742% continue_lps_dialect.
 2743% ops.
 2744
 2745% LPS:  actions(transfer(_62346,_62348,_62350)).
 2746% Into: actions([transfer(_62346,_62348,_62350)]).
 2747
 2748% LPS:  fluents(balance(_63430,_63432)).
 2749% Into: fluents([balance(_63430,_63432)]).
 2750
 2751% LPS:  initially((balance(bob,0),balance(fariba,100))).
 2752% Into: initial_state([balance(bob,0),balance(fariba,100)]).
 2753
 2754% LPS:  observe(from(transfer(fariba,bob,10),to(1,2))).
 2755% Into: observe([transfer(fariba,bob,10)],2).
 2756
 2757% LPS:  then(if((transfer(fariba,bob,_66830),balance(bob,_66886),_66886>=10)),transfer(bob,fariba,10)).
 2758% Into: reactive_rule([happens(transfer(fariba,bob,_66830),_68198,_68204),holds(balance(bob,_66886),_68204),_66886>=10],[happens(transfer(bob,fariba,10),_68778,_68784)]).
 2759
 2760% LPS:  then(if((transfer(bob,fariba,_68866),balance(fariba,_68922),_68922>=20)),transfer(fariba,bob,20)).
 2761% Into: reactive_rule([happens(transfer(bob,fariba,_68866),_70234,_70240),holds(balance(fariba,_68922),_70240),_68922>=20],[happens(transfer(fariba,bob,20),_70814,_70820)]).
 2762
 2763% LPS:  if(updates(transfer(_70890,_70892,_70894),in(to(_70930,_70932),balance(_70892,_70930))),_70932 is _70930+_70894).
 2764% Into: updated(happens(transfer(_70890,_70892,_70894),_72450,_72456),balance(_70892,_70930),_70930-_70932,[_70932 is _70930+_70894]).
 2765
 2766% LPS:  if(updates(transfer(_72860,_72862,_72864),in(to(_72900,_72902),balance(_72860,_72900))),_72902 is _72900-_72864).
 2767% Into: updated(happens(transfer(_72860,_72862,_72864),_74420,_74426),balance(_72860,_72900),_72900-_72902,[_72902 is _72900-_72864]).
 2768
 2769% LPS:  false((transfer(_74838,_74840,_74842),balance(_74838,_74898),_74898-_74842<0)).
 2770% Into: d_pre([happens(transfer(_74838,_74840,_74842),_76154,_76160),holds(balance(_74838,_74898),_76154),_74898-_74842<0]).
 2771% /pack/logicmoo_ec/test/lps_user_examples/bank.pl:50
 2772% pop_lps_dialect('$BLOB'("<stream>(0x562ef4163600)"),  (/.../(lps_user_examples, 'bank.pl')-> /.../(lps_user_examples, 'bank.pl'))).
 2773% ops.
 2774% :-listing('/pack/logicmoo_ec/test/lps_user_examples/bank.pl':_84656).
 2775
 2776
 2777d_pre([happens(transfer(A, _, B), C, _), holds(balance(A, D), C), D-B<0]).
 2778
 2779fluents([balance(_, _)]).
 2780
 2781reactive_rule([happens(transfer(fariba, bob, _), _, A), holds(balance(bob, B), A), B>=10], [happens(transfer(bob, fariba, 10), _, _)]).
 2782reactive_rule([happens(transfer(bob, fariba, _), _, A), holds(balance(fariba, B), A), B>=20], [happens(transfer(fariba, bob, 20), _, _)]).
 2783
 2784initial_state([balance(bob, 0), balance(fariba, 100)]).
 2785
 2786:- dynamic actions/1. 2787:- multifile actions/1. 2788
 2789actions([transfer(_, _, _)]).
 2790
 2791observe([transfer(fariba, bob, 10)], 2).
 2792
 2793maxTime(10).
 2794
 2795updated(happens(transfer(_, A, B), _, _), balance(A, C), C-D, [D is C+B]).
 2796updated(happens(transfer(A, _, B), _, _), balance(A, C), C-D, [D is C-B]).
 2797% dB(/.../(lps_user_examples, 'bank.pl'), lps_visualization(_92516{groups:[_88694{content:"Events", id:"event", order:1}, _88768{content:"balance(A,B)", id:"balance/2", order:3, subgroupStack:"false"}, _88834{content:"Actions", id:"action", order:4}], items:[_88956{content:"bob,0", end:2, group:"balance/2", id:0, start:1, subgroup:"bob", title:"Fluent balance(bob,0) initiated at 1<br/>and terminated at transition to 2"}, _89082{content:"bob,0", end:4, group:"balance/2", id:1, start:3, subgroup:"bob", title:"Fluent balance(bob,0) initiated at 3<br/>and terminated at transition to 4"}, _89208{content:"bob,10", end:3, group:"balance/2", id:2, start:2, subgroup:"bob", title:"Fluent balance(bob,10) initiated at 2<br/>and terminated at transition to 3"}, _89334{content:"bob,10", end:6, group:"balance/2", id:3, start:5, subgroup:"bob", title:"Fluent balance(bob,10) initiated at 5<br/>and terminated at transition to 6"}, _89460{content:"bob,20", end:5, group:"balance/2", id:4, start:4, subgroup:"bob", title:"Fluent balance(bob,20) initiated at 4<br/>and terminated at transition to 5"}, _89586{content:"bob,20", end:8, group:"balance/2", id:5, start:7, subgroup:"bob", title:"Fluent balance(bob,20) initiated at 7<br/>and terminated at transition to 8"}, _89712{content:"bob,30", end:7, group:"balance/2", id:6, start:6, subgroup:"bob", title:"Fluent balance(bob,30) initiated at 6<br/>and terminated at transition to 7"}, _89838{content:"bob,30", end:10, group:"balance/2", id:7, start:9, subgroup:"bob", title:"Fluent balance(bob,30) initiated at 9<br/>and terminated at transition to 10"}, _89964{content:"bob,40", end:9, group:"balance/2", id:8, start:8, subgroup:"bob", title:"Fluent balance(bob,40) initiated at 8<br/>and terminated at transition to 9"}, _90090{content:"bob,50", end:11, group:"balance/2", id:9, start:10, subgroup:"bob", title:"Fluent balance(bob,50) initiated at 10<br/>and terminated at transition to 11"}, _90216{content:"fariba,50", end:11, group:"balance/2", id:10, start:10, subgroup:"fariba", title:"Fluent balance(fariba,50) initiated at 10<br/>and terminated at transition to 11"}, _90342{content:"fariba,60", end:9, group:"balance/2", id:11, start:8, subgroup:"fariba", title:"Fluent balance(fariba,60) initiated at 8<br/>and terminated at transition to 9"}, _90468{content:"fariba,70", end:7, group:"balance/2", id:12, start:6, subgroup:"fariba", title:"Fluent balance(fariba,70) initiated at 6<br/>and terminated at transition to 7"}, _90594{content:"fariba,70", end:10, group:"balance/2", id:13, start:9, subgroup:"fariba", title:"Fluent balance(fariba,70) initiated at 9<br/>and terminated at transition to 10"}, _90720{content:"fariba,80", end:5, group:"balance/2", id:14, start:4, subgroup:"fariba", title:"Fluent balance(fariba,80) initiated at 4<br/>and terminated at transition to 5"}, _90846{content:"fariba,80", end:8, group:"balance/2", id:15, start:7, subgroup:"fariba", title:"Fluent balance(fariba,80) initiated at 7<br/>and terminated at transition to 8"}, _90972{content:"fariba,90", end:3, group:"balance/2", id:16, start:2, subgroup:"fariba", title:"Fluent balance(fariba,90) initiated at 2<br/>and terminated at transition to 3"}, _91098{content:"fariba,90", end:6, group:"balance/2", id:17, start:5, subgroup:"fariba", title:"Fluent balance(fariba,90) initiated at 5<br/>and terminated at transition to 6"}, _91224{content:"fariba,100", end:2, group:"balance/2", id:18, start:1, subgroup:"fariba", title:"Fluent balance(fariba,100) initiated at 1<br/>and terminated at transition to 2"}, _91350{content:"fariba,100", end:4, group:"balance/2", id:19, start:3, subgroup:"fariba", title:"Fluent balance(fariba,100) initiated at 3<br/>and terminated at transition to 4"}, _91476{content:"transfer(fariba,bob,10)", group:"event", id:20, start:2, style:"color:#E19735", title:"happens(transfer(fariba,bob,10),1,2)", type:"point"}, _91602{content:"transfer(bob,fariba,10)", group:"action", id:21, start:3, style:"color:green", title:"happens(transfer(bob,fariba,10),2,3)", type:"point"}, _91728{content:"transfer(fariba,bob,20)", group:"action", id:22, start:4, style:"color:green", title:"happens(transfer(fariba,bob,20),3,4)", type:"point"}, _91854{content:"transfer(bob,fariba,10)", group:"action", id:23, start:5, style:"color:green", title:"happens(transfer(bob,fariba,10),4,5)", type:"point"}, _91980{content:"transfer(fariba,bob,20)", group:"action", id:24, start:6, style:"color:green", title:"happens(transfer(fariba,bob,20),5,6)", type:"point"}, _92106{content:"transfer(bob,fariba,10)", group:"action", id:25, start:7, style:"color:green", title:"happens(transfer(bob,fariba,10),6,7)", type:"point"}, _92232{content:"transfer(fariba,bob,20)", group:"action", id:26, start:8, style:"color:green", title:"happens(transfer(fariba,bob,20),7,8)", type:"point"}, _92358{content:"transfer(bob,fariba,10)", group:"action", id:27, start:9, style:"color:green", title:"happens(transfer(bob,fariba,10),8,9)", type:"point"}, _92484{content:"transfer(fariba,bob,20)", group:"action", id:28, start:10, style:"color:green", title:"happens(transfer(fariba,bob,20),9,10)", type:"point"}]}, [])).
 2798% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'bankTransfer2D.pl')).
 2799% run_lps_corner_file1(/.../(lps_user_examples, 'bankTransfer2D.pl')).
 2800% /pack/logicmoo_ec/test/lps_user_examples/bankTransfer2D.pl:1
 2801% push_lps_dialect.
 2802% ops.
 2803% [ti=user, load= /.../(lps_user_examples, 'bankTransfer2D.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'bankTransfer2D.pl'), lps= /.../(lps_user_examples, 'bankTransfer2D.pl'), using= /.../(lps_user_examples, 'bankTransfer2D.pl')].
 2804% continue_lps_dialect.
 2805% ops.
 2806
 2807% LPS:  actions(transfer(_61330,_61332,_61334)).
 2808% Into: actions([transfer(_61330,_61332,_61334)]).
 2809
 2810% LPS:  fluents(balance(_62414,_62416)).
 2811% Into: fluents([balance(_62414,_62416)]).
 2812
 2813% LPS:  initially((balance(bob,0),balance(fariba,100))).
 2814% Into: initial_state([balance(bob,0),balance(fariba,100)]).
 2815
 2816% LPS:  observe(from(transfer(fariba,bob,10),to(1,2))).
 2817% Into: observe([transfer(fariba,bob,10)],2).
 2818
 2819% LPS:  then(if((from(transfer(fariba,bob,_65814),to(_65850,_65852)),at(balance(bob,_65966),_65852),_65966>=10)),from(transfer(bob,fariba,10),to(_65852,_66276))).
 2820% Into: reactive_rule([happens(transfer(fariba,bob,_65814),_65850,_65852),holds(balance(bob,_65966),_65852),_65966>=10],[happens(transfer(bob,fariba,10),_65852,_66276)]).
 2821
 2822% LPS:  then(if((from(transfer(bob,fariba,_68924),to(_68960,_68962)),at(balance(fariba,_69076),_68962),_69076>=20)),from(transfer(fariba,bob,20),to(_68962,_69386))).
 2823% Into: reactive_rule([happens(transfer(bob,fariba,_68924),_68960,_68962),holds(balance(fariba,_69076),_68962),_69076>=20],[happens(transfer(fariba,bob,20),_68962,_69386)]).
 2824
 2825% LPS:  if(updates(transfer(_72022,_72024,_72026),in(to(_72062,_72064),balance(_72024,_72062))),_72064 is _72062+_72026).
 2826% Into: updated(happens(transfer(_72022,_72024,_72026),_73582,_73588),balance(_72024,_72062),_72062-_72064,[_72064 is _72062+_72026]).
 2827
 2828% LPS:  if(updates(transfer(_73992,_73994,_73996),in(to(_74032,_74034),balance(_73992,_74032))),_74034 is _74032-_73996).
 2829% Into: updated(happens(transfer(_73992,_73994,_73996),_75552,_75558),balance(_73992,_74032),_74032-_74034,[_74034 is _74032-_73996]).
 2830
 2831% LPS:  false((transfer(_75970,_75972,_75974),balance(_75970,_76030),_76030<_75974)).
 2832% Into: d_pre([happens(transfer(_75970,_75972,_75974),_77232,_77238),holds(balance(_75970,_76030),_77232),_76030<_75974]).
 2833
 2834% LPS:  false((transfer(_77894,_77896,_77898),transfer(_77894,_77968,_77970),_77896\=_77968)).
 2835% Into: d_pre([happens(transfer(_77894,_77896,_77898),_79186,_79192),happens(transfer(_77894,_77968,_77970),_79186,_79192),_77896\=_77968]).
 2836
 2837% LPS:  false((transfer(_79710,_79712,_79714),transfer(_79782,_79712,_79786),_79710\=_79782)).
 2838% Into: d_pre([happens(transfer(_79710,_79712,_79714),_81002,_81008),happens(transfer(_79782,_79712,_79786),_81002,_81008),_79710\=_79782]).
 2839% /pack/logicmoo_ec/test/lps_user_examples/bankTransfer2D.pl:45
 2840% pop_lps_dialect('$BLOB'("<stream>(0x562ef4160e00)"),  (/.../(lps_user_examples, 'bankTransfer2D.pl')-> /.../(lps_user_examples, 'bankTransfer2D.pl'))).
 2841% ops.
 2842% :-listing('/pack/logicmoo_ec/test/lps_user_examples/bankTransfer2D.pl':_30044).
 2843
 2844
 2845d_pre([happens(transfer(A, _, B), C, _), holds(balance(A, D), C), D<B]).
 2846d_pre([happens(transfer(A, B, _), C, D), happens(transfer(A, E, _), C, D), B\=E]).
 2847d_pre([happens(transfer(A, B, _), C, D), happens(transfer(E, B, _), C, D), A\=E]).
 2848
 2849d(balance(Person, V), [from:[X, 0], to:[RightX, V], label:Person:V, type:rectangle, fontSize:13, fillColor:'#85bb65']) :-
 2850    (   Person=bob,
 2851        X=50
 2852    ;   Person=fariba,
 2853        X=200
 2854    ),
 2855    RightX is X+70.
 2856d(transfer(From, To, Amount), [type:arrow, label:Amount, from:[FX, 20], to:[TX, 20]]) :-
 2857    (   From=bob,
 2858        FX=120,
 2859        TX=200
 2860    ;   From=fariba,
 2861        FX=200,
 2862        TX=120
 2863    ).
 2864d(timeless, [[type:star, center:[250, 150], points:9, radius1:20, radius2:25, fillColor:yellow, sendToBack], [type:rectangle, from:[0, 0], to:[320, 200], sendToBack, fillColor:[0, 0.746, 1]], [type:ellipse, shadowOffset:5, shadowColor:darkGray, point:[50, 150], size:[110, 40], fillColor:white], [type:ellipse, point:[20, 130], size:[90, 30], fillColor:white]]).
 2865
 2866fluents([balance(_, _)]).
 2867
 2868reactive_rule([happens(transfer(fariba, bob, _), _, A), holds(balance(bob, B), A), B>=10], [happens(transfer(bob, fariba, 10), A, _)]).
 2869reactive_rule([happens(transfer(bob, fariba, _), _, A), holds(balance(fariba, B), A), B>=20], [happens(transfer(fariba, bob, 20), A, _)]).
 2870
 2871initial_state([balance(bob, 0), balance(fariba, 100)]).
 2872
 2873:- dynamic actions/1. 2874:- multifile actions/1. 2875
 2876actions([transfer(_, _, _)]).
 2877
 2878observe([transfer(fariba, bob, 10)], 2).
 2879
 2880maxTime(10).
 2881
 2882updated(happens(transfer(_, A, B), _, _), balance(A, C), C-D, [D is C+B]).
 2883updated(happens(transfer(A, _, B), _, _), balance(A, C), C-D, [D is C-B]).
 2884% dB(/.../(lps_user_examples, 'bankTransfer2D.pl'), lps_visualization(_124530{groups:[_120708{content:"Events", id:"event", order:1}, _120782{content:"balance(A,B)", id:"balance/2", order:3, subgroupStack:"false"}, _120848{content:"Actions", id:"action", order:4}], items:[_120970{content:"bob,0", end:2, group:"balance/2", id:0, start:1, subgroup:"bob", title:"Fluent balance(bob,0) initiated at 1<br/>and terminated at transition to 2"}, _121096{content:"bob,0", end:4, group:"balance/2", id:1, start:3, subgroup:"bob", title:"Fluent balance(bob,0) initiated at 3<br/>and terminated at transition to 4"}, _121222{content:"bob,10", end:3, group:"balance/2", id:2, start:2, subgroup:"bob", title:"Fluent balance(bob,10) initiated at 2<br/>and terminated at transition to 3"}, _121348{content:"bob,10", end:6, group:"balance/2", id:3, start:5, subgroup:"bob", title:"Fluent balance(bob,10) initiated at 5<br/>and terminated at transition to 6"}, _121474{content:"bob,20", end:5, group:"balance/2", id:4, start:4, subgroup:"bob", title:"Fluent balance(bob,20) initiated at 4<br/>and terminated at transition to 5"}, _121600{content:"bob,20", end:8, group:"balance/2", id:5, start:7, subgroup:"bob", title:"Fluent balance(bob,20) initiated at 7<br/>and terminated at transition to 8"}, _121726{content:"bob,30", end:7, group:"balance/2", id:6, start:6, subgroup:"bob", title:"Fluent balance(bob,30) initiated at 6<br/>and terminated at transition to 7"}, _121852{content:"bob,30", end:10, group:"balance/2", id:7, start:9, subgroup:"bob", title:"Fluent balance(bob,30) initiated at 9<br/>and terminated at transition to 10"}, _121978{content:"bob,40", end:9, group:"balance/2", id:8, start:8, subgroup:"bob", title:"Fluent balance(bob,40) initiated at 8<br/>and terminated at transition to 9"}, _122104{content:"bob,50", end:11, group:"balance/2", id:9, start:10, subgroup:"bob", title:"Fluent balance(bob,50) initiated at 10<br/>and terminated at transition to 11"}, _122230{content:"fariba,50", end:11, group:"balance/2", id:10, start:10, subgroup:"fariba", title:"Fluent balance(fariba,50) initiated at 10<br/>and terminated at transition to 11"}, _122356{content:"fariba,60", end:9, group:"balance/2", id:11, start:8, subgroup:"fariba", title:"Fluent balance(fariba,60) initiated at 8<br/>and terminated at transition to 9"}, _122482{content:"fariba,70", end:7, group:"balance/2", id:12, start:6, subgroup:"fariba", title:"Fluent balance(fariba,70) initiated at 6<br/>and terminated at transition to 7"}, _122608{content:"fariba,70", end:10, group:"balance/2", id:13, start:9, subgroup:"fariba", title:"Fluent balance(fariba,70) initiated at 9<br/>and terminated at transition to 10"}, _122734{content:"fariba,80", end:5, group:"balance/2", id:14, start:4, subgroup:"fariba", title:"Fluent balance(fariba,80) initiated at 4<br/>and terminated at transition to 5"}, _122860{content:"fariba,80", end:8, group:"balance/2", id:15, start:7, subgroup:"fariba", title:"Fluent balance(fariba,80) initiated at 7<br/>and terminated at transition to 8"}, _122986{content:"fariba,90", end:3, group:"balance/2", id:16, start:2, subgroup:"fariba", title:"Fluent balance(fariba,90) initiated at 2<br/>and terminated at transition to 3"}, _123112{content:"fariba,90", end:6, group:"balance/2", id:17, start:5, subgroup:"fariba", title:"Fluent balance(fariba,90) initiated at 5<br/>and terminated at transition to 6"}, _123238{content:"fariba,100", end:2, group:"balance/2", id:18, start:1, subgroup:"fariba", title:"Fluent balance(fariba,100) initiated at 1<br/>and terminated at transition to 2"}, _123364{content:"fariba,100", end:4, group:"balance/2", id:19, start:3, subgroup:"fariba", title:"Fluent balance(fariba,100) initiated at 3<br/>and terminated at transition to 4"}, _123490{content:"transfer(fariba,bob,10)", group:"event", id:20, start:2, style:"color:#E19735", title:"happens(transfer(fariba,bob,10),1,2)", type:"point"}, _123616{content:"transfer(bob,fariba,10)", group:"action", id:21, start:3, style:"color:green", title:"happens(transfer(bob,fariba,10),2,3)", type:"point"}, _123742{content:"transfer(fariba,bob,20)", group:"action", id:22, start:4, style:"color:green", title:"happens(transfer(fariba,bob,20),3,4)", type:"point"}, _123868{content:"transfer(bob,fariba,10)", group:"action", id:23, start:5, style:"color:green", title:"happens(transfer(bob,fariba,10),4,5)", type:"point"}, _123994{content:"transfer(fariba,bob,20)", group:"action", id:24, start:6, style:"color:green", title:"happens(transfer(fariba,bob,20),5,6)", type:"point"}, _124120{content:"transfer(bob,fariba,10)", group:"action", id:25, start:7, style:"color:green", title:"happens(transfer(bob,fariba,10),6,7)", type:"point"}, _124246{content:"transfer(fariba,bob,20)", group:"action", id:26, start:8, style:"color:green", title:"happens(transfer(fariba,bob,20),7,8)", type:"point"}, _124372{content:"transfer(bob,fariba,10)", group:"action", id:27, start:9, style:"color:green", title:"happens(transfer(bob,fariba,10),8,9)", type:"point"}, _124498{content:"transfer(fariba,bob,20)", group:"action", id:28, start:10, style:"color:green", title:"happens(transfer(fariba,bob,20),9,10)", type:"point"}]}, _182436{cycles:[[_176560{create:[_176104{center:[250, 150], fillColor:"yellow", id:"timeless", points:9, radius1:20, radius2:25, sendToBack:"true", type:"star"}, _176264{fillColor:[0, 0.746, 1], from:[0, 0], id:"timeless", sendToBack:"true", to:[320, 200], type:"rectangle"}, _176410{fillColor:"white", id:"timeless", point:[50, 150], shadowColor:"darkGray", shadowOffset:5, size:[110, 40], type:"ellipse"}, _176536{fillColor:"white", id:"timeless", point:[20, 130], size:[90, 30], type:"ellipse"}]}], [_176740{create:_176708{fillColor:"#85bb65", fontSize:13, from:[50, 0], id:"balance(bob,0)", label:"bob:0", to:[120, 0], type:"rectangle"}}, _176914{create:_176882{fillColor:"#85bb65", fontSize:13, from:[200, 0], id:"balance(fariba,100)", label:"fariba:100", to:[270, 100], type:"rectangle"}}, _177072{create:_177044{event:"true", from:[200, 20], id:"transfer(fariba,bob,10)", label:10, to:[120, 20], type:"arrow"}}], [_177252{create:_177220{fillColor:"#85bb65", fontSize:13, from:[50, 0], id:"balance(bob,10)", label:"bob:10", to:[120, 10], type:"rectangle"}}, _177426{create:_177394{fillColor:"#85bb65", fontSize:13, from:[200, 0], id:"balance(fariba,90)", label:"fariba:90", to:[270, 90], type:"rectangle"}}, _177584{create:_177556{event:"true", from:[120, 20], id:"transfer(bob,fariba,10)", label:10, to:[200, 20], type:"arrow"}}, _177614{kill:"balance(bob,0)"}, _177644{kill:"balance(fariba,100)"}, _177674{kill:"transfer(fariba,bob,10)"}], [_177854{create:_177822{fillColor:"#85bb65", fontSize:13, from:[50, 0], id:"balance(bob,0)", label:"bob:0", to:[120, 0], type:"rectangle"}}, _178028{create:_177996{fillColor:"#85bb65", fontSize:13, from:[200, 0], id:"balance(fariba,100)", label:"fariba:100", to:[270, 100], type:"rectangle"}}, _178186{create:_178158{event:"true", from:[200, 20], id:"transfer(fariba,bob,20)", label:20, to:[120, 20], type:"arrow"}}, _178216{kill:"balance(bob,10)"}, _178246{kill:"balance(fariba,90)"}, _178276{kill:"transfer(bob,fariba,10)"}], [_178456{create:_178424{fillColor:"#85bb65", fontSize:13, from:[50, 0], id:"balance(bob,20)", label:"bob:20", to:[120, 20], type:"rectangle"}}, _178630{create:_178598{fillColor:"#85bb65", fontSize:13, from:[200, 0], id:"balance(fariba,80)", label:"fariba:80", to:[270, 80], type:"rectangle"}}, _178788{create:_178760{event:"true", from:[120, 20], id:"transfer(bob,fariba,10)", label:10, to:[200, 20], type:"arrow"}}, _178818{kill:"balance(bob,0)"}, _178848{kill:"balance(fariba,100)"}, _178878{kill:"transfer(fariba,bob,20)"}], [_179058{create:_179026{fillColor:"#85bb65", fontSize:13, from:[50, 0], id:"balance(bob,10)", label:"bob:10", to:[120, 10], type:"rectangle"}}, _179232{create:_179200{fillColor:"#85bb65", fontSize:13, from:[200, 0], id:"balance(fariba,90)", label:"fariba:90", to:[270, 90], type:"rectangle"}}, _179390{create:_179362{event:"true", from:[200, 20], id:"transfer(fariba,bob,20)", label:20, to:[120, 20], type:"arrow"}}, _179420{kill:"balance(bob,20)"}, _179450{kill:"balance(fariba,80)"}, _179480{kill:"transfer(bob,fariba,10)"}], [_179660{create:_179628{fillColor:"#85bb65", fontSize:13, from:[50, 0], id:"balance(bob,30)", label:"bob:30", to:[120, 30], type:"rectangle"}}, _179834{create:_179802{fillColor:"#85bb65", fontSize:13, from:[200, 0], id:"balance(fariba,70)", label:"fariba:70", to:[270, 70], type:"rectangle"}}, _179992{create:_179964{event:"true", from:[120, 20], id:"transfer(bob,fariba,10)", label:10, to:[200, 20], type:"arrow"}}, _180022{kill:"balance(bob,10)"}, _180052{kill:"balance(fariba,90)"}, _180082{kill:"transfer(fariba,bob,20)"}], [_180262{create:_180230{fillColor:"#85bb65", fontSize:13, from:[50, 0], id:"balance(bob,20)", label:"bob:20", to:[120, 20], type:"rectangle"}}, _180436{create:_180404{fillColor:"#85bb65", fontSize:13, from:[200, 0], id:"balance(fariba,80)", label:"fariba:80", to:[270, 80], type:"rectangle"}}, _180594{create:_180566{event:"true", from:[200, 20], id:"transfer(fariba,bob,20)", label:20, to:[120, 20], type:"arrow"}}, _180624{kill:"balance(bob,30)"}, _180654{kill:"balance(fariba,70)"}, _180684{kill:"transfer(bob,fariba,10)"}], [_180864{create:_180832{fillColor:"#85bb65", fontSize:13, from:[50, 0], id:"balance(bob,40)", label:"bob:40", to:[120, 40], type:"rectangle"}}, _181038{create:_181006{fillColor:"#85bb65", fontSize:13, from:[200, 0], id:"balance(fariba,60)", label:"fariba:60", to:[270, 60], type:"rectangle"}}, _181196{create:_181168{event:"true", from:[120, 20], id:"transfer(bob,fariba,10)", label:10, to:[200, 20], type:"arrow"}}, _181226{kill:"balance(bob,20)"}, _181256{kill:"balance(fariba,80)"}, _181286{kill:"transfer(fariba,bob,20)"}], [_181466{create:_181434{fillColor:"#85bb65", fontSize:13, from:[50, 0], id:"balance(bob,30)", label:"bob:30", to:[120, 30], type:"rectangle"}}, _181640{create:_181608{fillColor:"#85bb65", fontSize:13, from:[200, 0], id:"balance(fariba,70)", label:"fariba:70", to:[270, 70], type:"rectangle"}}, _181798{create:_181770{event:"true", from:[200, 20], id:"transfer(fariba,bob,20)", label:20, to:[120, 20], type:"arrow"}}, _181828{kill:"balance(bob,40)"}, _181858{kill:"balance(fariba,60)"}, _181888{kill:"transfer(bob,fariba,10)"}], [_182068{create:_182036{fillColor:"#85bb65", fontSize:13, from:[50, 0], id:"balance(bob,50)", label:"bob:50", to:[120, 50], type:"rectangle"}}, _182242{create:_182210{fillColor:"#85bb65", fontSize:13, from:[200, 0], id:"balance(fariba,50)", label:"fariba:50", to:[270, 50], type:"rectangle"}}, _182272{kill:"balance(bob,30)"}, _182302{kill:"balance(fariba,70)"}, _182332{kill:"transfer(fariba,bob,20)"}], [_182368{kill:"balance(bob,50)"}, _182398{kill:"balance(fariba,50)"}, _182428{kill:"timeless"}]]})).
 2885% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'Basic If Then Else.pl')).
 2886% run_lps_corner_file1(/.../(lps_user_examples, 'Basic If Then Else.pl')).
 2887% /pack/logicmoo_ec/test/lps_user_examples/Basic If Then Else.pl:1
 2888% push_lps_dialect.
 2889% ops.
 2890% [ti=user, load= /.../(lps_user_examples, 'Basic If Then Else.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'Basic If Then Else.pl'), lps= /.../(lps_user_examples, 'Basic If Then Else.pl'), using= /.../(lps_user_examples, 'Basic If Then Else.pl')].
 2891% continue_lps_dialect.
 2892% ops.
 2893
 2894% LPS:  fluents((locked(_80174),trash(_80214),bin(_80254))).
 2895% Into: fluents([locked(_80174),trash(_80214),bin(_80254)]).
 2896
 2897% LPS:  actions((dispose(_81378,_81380),keep(_81420))).
 2898% Into: actions([dispose(_81378,_81380),keep(_81420)]).
 2899
 2900% LPS:  initially(bin(bucket)).
 2901% Into: initial_state([bin(bucket)]).
 2902
 2903% LPS:  then(if(true),then(if(at(bin(_83574),3)),else(dispose(garbage,_83574),keep(garbage)))).
 2904% Into: reactive_rule([],[([holds(bin(_83574),3)]->[happens(dispose(garbage,_83574),_85192,_84896)];[happens(keep(garbage),_85358,_84896)])]).
 2905
 2906% LPS:  then(if(true),(from(keep(uhuh),5),terminate(bin(bucket)),then(if(bin(_85804)),else(dispose(garbage,_85804),keep(garbage))))).
 2907% Into: reactive_rule([],[happens(keep(uhuh),5,_87202),happens(terminate(bin(bucket)),_87284,_87330),([holds(bin(_85804),_87330)]->[happens(dispose(garbage,_85804),_87330,_87166)];[happens(keep(garbage),_87888,_87166)])]).
 2908% /pack/logicmoo_ec/test/lps_user_examples/Basic If Then Else.pl:18
 2909% pop_lps_dialect('$BLOB'("<stream>(0x562ef20f0500)"),  (/.../(lps_user_examples, 'Basic If Then Else.pl')-> /.../(lps_user_examples, 'Basic If Then Else.pl'))).
 2910% ops.
 2911% :-listing('/pack/logicmoo_ec/test/lps_user_examples/Basic If Then Else.pl':_95558).
 2912
 2913
 2914fluents([locked(_), trash(_), bin(_)]).
 2915
 2916reactive_rule([], [([holds(bin(A), 3)]->[happens(dispose(garbage, A), _, B)];[happens(keep(garbage), _, B)])]).
 2917reactive_rule([], [happens(keep(uhuh), 5, _), happens(terminate(bin(bucket)), _, A),  ([holds(bin(B), A)]->[happens(dispose(garbage, B), A, C)];[happens(keep(garbage), _, C)])]).
 2918
 2919initial_state([bin(bucket)]).
 2920
 2921:- dynamic actions/1. 2922:- multifile actions/1. 2923
 2924actions([dispose(_, _), keep(_)]).
 2925
 2926maxTime(10).
 2927% dB(/.../(lps_user_examples, 'Basic If Then Else.pl'), lps_visualization(_70072{groups:[_69348{content:"bin(A)", id:"bin/1", order:3, subgroupStack:"false"}, _69414{content:"Actions", id:"action", order:4}], items:[_69536{content:"bucket", end:6, group:"bin/1", id:0, start:1, subgroup:"bucket", title:"Fluent bin(bucket) initiated at 1<br/>and terminated at transition to 6"}, _69662{content:"dispose(garbage,bucket)", group:"action", id:1, start:4, style:"color:green", title:"happens(dispose(garbage,bucket),3,4)", type:"point"}, _69788{content:"keep(uhuh)", group:"action", id:2, start:6, style:"color:green", title:"happens(keep(uhuh),5,6)", type:"point"}, _69914{content:"terminate(bin(bucket))", group:"action", id:3, start:6, style:"color:green", title:"happens(terminate(bin(bucket)),5,6)", type:"point"}, _70040{content:"keep(garbage)", group:"action", id:4, start:7, style:"color:green", title:"happens(keep(garbage),6,7)", type:"point"}]}, [])).
 2928% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'blocks_world_interference.pl')).
 2929% run_lps_corner_file1(/.../(lps_user_examples, 'blocks_world_interference.pl')).
 2930% /pack/logicmoo_ec/test/lps_user_examples/blocks_world_interference.pl:1
 2931% push_lps_dialect.
 2932% ops.
 2933% [ti=user, load= /.../(lps_user_examples, 'blocks_world_interference.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'blocks_world_interference.pl'), lps= /.../(lps_user_examples, 'blocks_world_interference.pl'), using= /.../(lps_user_examples, 'blocks_world_interference.pl')].
 2934% continue_lps_dialect.
 2935% ops.
 2936
 2937% LPS:  fluents(location(_55410,_55412)).
 2938% Into: fluents([location(_55410,_55412)]).
 2939
 2940% LPS:  actions(move(_56454,_56456)).
 2941% Into: actions([move(_56454,_56456)]).
 2942
 2943% LPS:  initially((location(b,floor),location(c,b),location(a,floor))).
 2944% Into: initial_state([location(b,floor),location(c,b),location(a,floor)]).
 2945
 2946% LPS:  observe(from(move(c,a),to(2,3))).
 2947% Into: observe([move(c,a)],3).
 2948
 2949% LPS:  then(if(true),from(make_tower([b,a,floor]),to(_60022,_60024))).
 2950% Into: reactive_rule([],[happens(make_tower([b,a,floor]),_60022,_60024)]).
 2951
 2952% LPS:  if(at(clear(_61168),_61190),(_61168\=floor,at(not(location(_61342,_61168)),_61190))).
 2953% Into: l_int(holds(clear(_61168),_61190),[_61168\=floor,holds(not(location(_61342,_61168)),_61190)]).
 2954
 2955% LPS:  at(clear(floor),_63326).
 2956% Into: l_int(holds(clear(floor),_63326),[]).
 2957
 2958% LPS:  if(from(make_tower([_64554,floor]),to(_64616,_64618)),from(make_on(_64554,floor),to(_64616,_64618))).
 2959% Into: l_events(happens(make_tower([_64554,floor]),_64616,_64618),[happens(make_on(_64554,floor),_64616,_64618)]).
 2960
 2961% LPS:  if(from(make_tower([_65954,_65974|_65976]),to(_66024,_66026)),(_65974\=floor,from(make_tower([_65974|_65976]),to(_66024,_66260)),from(make_on(_65954,_65974),to(_66260,_66026)))).
 2962% Into: l_events(happens(make_tower([_65954,_65974|_65976]),_66024,_66026),[_65974\=floor,happens(make_tower([_65974|_65976]),_66024,_66260),happens(make_on(_65954,_65974),_66260,_66026)]).
 2963
 2964% LPS:  if(from(make_on(_67730,_67732),to(_67768,_67770)),(at(not(location(_67730,_67732)),_67768),from(make_clear(_67732),to(_67768,_68042)),from(make_clear(_67730),to(_68042,_68178)),from(move(_67730,_67732),to(_68178,_67770)))).
 2965% Into: l_events(happens(make_on(_67730,_67732),_67768,_67770),[holds(not(location(_67730,_67732)),_67768),happens(make_clear(_67732),_67768,_68042),happens(make_clear(_67730),_68042,_68178),happens(move(_67730,_67732),_68178,_67770)]).
 2966
 2967% LPS:  if(from(make_on(_69696,_69698),to(_69734,_69734)),at(location(_69696,_69698),_69734)).
 2968% Into: l_events(happens(make_on(_69696,_69698),_69734,_69734),[holds(location(_69696,_69698),_69734)]).
 2969
 2970% LPS:  if(from(make_clear(_70988),to(_71024,_71024)),at(clear(_70988),_71024)).
 2971% Into: l_events(happens(make_clear(_70988),_71024,_71024),[holds(clear(_70988),_71024)]).
 2972
 2973% LPS:  if(from(make_clear(_72246),to(_72282,_72284)),(at(location(_72396,_72246),_72282),from(make_on(_72396,floor),to(_72282,_72284)))).
 2974% Into: l_events(happens(make_clear(_72246),_72282,_72284),[holds(location(_72396,_72246),_72282),happens(make_on(_72396,floor),_72282,_72284)]).
 2975
 2976% LPS:  initiates(move(_73768,_73770),location(_73768,_73770)).
 2977% Into: initiated(happens(move(_73768,_73770),_74954,_74960),location(_73768,_73770),[]).
 2978
 2979% LPS:  terminates(move(_74900,_74902),location(_74900,_74958)).
 2980% Into: terminated(happens(move(_74900,_74902),_76086,_76092),location(_74900,_74958),[]).
 2981% /pack/logicmoo_ec/test/lps_user_examples/blocks_world_interference.pl:45
 2982% pop_lps_dialect('$BLOB'("<stream>(0x562ef3ca2900)"),  (/.../(lps_user_examples, 'blocks_world_interference.pl')-> /.../(lps_user_examples, 'blocks_world_interference.pl'))).
 2983% ops.
 2984% :-listing('/pack/logicmoo_ec/test/lps_user_examples/blocks_world_interference.pl':_83638).
 2985
 2986
 2987initiated(happens(move(A, B), _, _), location(A, B), []).
 2988
 2989fluents([location(_, _)]).
 2990
 2991l_int(holds(clear(A), B), [A\=floor, holds(not(location(_, A)), B)]).
 2992l_int(holds(clear(floor), _), []).
 2993
 2994reactive_rule([], [happens(make_tower([b, a, floor]), _, _)]).
 2995
 2996terminated(happens(move(A, _), _, _), location(A, _), []).
 2997
 2998initial_state([location(b, floor), location(c, b), location(a, floor)]).
 2999
 3000l_events(happens(make_tower([A, floor]), B, C), [happens(make_on(A, floor), B, C)]).
 3001l_events(happens(make_tower([A, B|C]), D, E), [B\=floor, happens(make_tower([B|C]), D, F), happens(make_on(A, B), F, E)]).
 3002l_events(happens(make_on(A, B), C, D), [holds(not(location(A, B)), C), happens(make_clear(B), C, E), happens(make_clear(A), E, F), happens(move(A, B), F, D)]).
 3003l_events(happens(make_on(A, B), C, C), [holds(location(A, B), C)]).
 3004l_events(happens(make_clear(A), B, B), [holds(clear(A), B)]).
 3005l_events(happens(make_clear(A), B, C), [holds(location(D, A), B), happens(make_on(D, floor), B, C)]).
 3006
 3007:- dynamic actions/1. 3008:- multifile actions/1. 3009
 3010actions([move(_, _)]).
 3011
 3012observe([move(c, a)], 3).
 3013
 3014maxTime(10).
 3015% dB(/.../(lps_user_examples, 'blocks_world_interference.pl'), lps_visualization(_78056{groups:[_76754{content:"Events", id:"event", order:1}, _76828{content:"location(A,B)", id:"location/2", order:3, subgroupStack:"false"}, _76894{content:"Actions", id:"action", order:4}], items:[_77016{content:"a,floor", end:11, group:"location/2", id:0, start:1, subgroup:"a", title:"Fluent location(a,floor) initiated at 1<br/>and terminated at transition to 11"}, _77142{content:"b,a", end:11, group:"location/2", id:1, start:3, subgroup:"b", title:"Fluent location(b,a) initiated at 3<br/>and terminated at transition to 11"}, _77268{content:"b,floor", end:3, group:"location/2", id:2, start:1, subgroup:"b", title:"Fluent location(b,floor) initiated at 1<br/>and terminated at transition to 3"}, _77394{content:"c,a", end:11, group:"location/2", id:3, start:3, subgroup:"c", title:"Fluent location(c,a) initiated at 3<br/>and terminated at transition to 11"}, _77520{content:"c,b", end:2, group:"location/2", id:4, start:1, subgroup:"c", title:"Fluent location(c,b) initiated at 1<br/>and terminated at transition to 2"}, _77646{content:"c,floor", end:3, group:"location/2", id:5, start:2, subgroup:"c", title:"Fluent location(c,floor) initiated at 2<br/>and terminated at transition to 3"}, _77772{content:"move(c,floor)", group:"action", id:6, start:2, style:"color:green", title:"happens(move(c,floor),1,2)", type:"point"}, _77898{content:"move(c,a)", group:"event", id:7, start:3, style:"color:#E19735", title:"happens(move(c,a),2,3)", type:"point"}, _78024{content:"move(b,a)", group:"action", id:8, start:3, style:"color:green", title:"happens(move(b,a),2,3)", type:"point"}]}, [])).
 3016% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'brujanino.pl')).
 3017% run_lps_corner_file1(/.../(lps_user_examples, 'brujanino.pl')).
 3018% /pack/logicmoo_ec/test/lps_user_examples/brujanino.pl:1
 3019% push_lps_dialect.
 3020% ops.
 3021% [ti=user, load= /.../(lps_user_examples, 'brujanino.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'brujanino.pl'), lps= /.../(lps_user_examples, 'brujanino.pl'), using= /.../(lps_user_examples, 'brujanino.pl')].
 3022% continue_lps_dialect.
 3023% ops.
 3024
 3025% LPS:  fluents(enga�a/2).
 3026% Into: fluents([enga�a(_57220,_57222)]).
 3027
 3028% LPS:  actions((ayuda/2,encuentra/1)).
 3029% Into: actions([ayuda(_58422,_58424),encuentra(_58434)]).
 3030
 3031% LPS:  events((necesita/2,escapa/1)).
 3032% Into: events([necesita(_59582,_59584),escapa(_59594)]).
 3033
 3034% LPS:  initially(enga�a(bruja,ni�o)).
 3035% Into: initial_state([enga�a(bruja,ni�o)]).
 3036
 3037% LPS:  observe(from(necesita(bruja,objeto),to(1,2))).
 3038% Into: observe([necesita(bruja,objeto)],2).
 3039
 3040% LPS:  if(initiates(encuentra(_61724),enga�a(_61778,_61780)),enga�a(_61780,_61778)).
 3041% Into: initiated(happens(encuentra(_61724),_63034,_63040),enga�a(_61778,_61780),[holds(enga�a(_61780,_61778),_63034)]).
 3042
 3043% LPS:  then(if(necesita(bruja,objeto)),ayuda(ni�o,bruja)).
 3044% Into: reactive_rule([happens(necesita(bruja,objeto),_64420,_64426)],[happens(ayuda(ni�o,bruja),_64452,_64458)]).
 3045
 3046% LPS:  then(if(ayuda(ni�o,bruja)),encuentra(objeto)).
 3047% Into: reactive_rule([happens(ayuda(ni�o,bruja),_65546,_65552)],[happens(encuentra(objeto),_65578,_65584)]).
 3048
 3049% LPS:  if(escapa(ni�o),enga�a(ni�o,bruja)).
 3050% Into: l_events(happens(escapa(ni�o),_66622,_66622),[holds(enga�a(ni�o,bruja),_66622)]).
 3051
 3052% LPS:  observe(from(necesita(bruja,objeto),to(4,5))).
 3053% Into: observe([necesita(bruja,objeto)],5).
 3054
 3055% LPS:  then(if(necesita(bruja,objeto)),ayuda(ni�o,bruja)).
 3056% Into: reactive_rule([happens(necesita(bruja,objeto),_69172,_69178)],[happens(ayuda(ni�o,bruja),_69204,_69210)]).
 3057
 3058% LPS:  then(if(ayuda(ni�o,bruja)),encuentra(objeto)).
 3059% Into: reactive_rule([happens(ayuda(ni�o,bruja),_70298,_70304)],[happens(encuentra(objeto),_70330,_70336)]).
 3060
 3061% LPS:  then(if((encuentra(objeto),enga�a(ni�o,bruja))),escapa(ni�o)).
 3062% Into: reactive_rule([happens(encuentra(objeto),_71506,_71512),holds(enga�a(ni�o,bruja),_71512)],[happens(escapa(ni�o),_71604,_71610)]).
 3063% /pack/logicmoo_ec/test/lps_user_examples/brujanino.pl:29
 3064% pop_lps_dialect('$BLOB'("<stream>(0x562ef4162800)"),  (/.../(lps_user_examples, 'brujanino.pl')-> /.../(lps_user_examples, 'brujanino.pl'))).
 3065% ops.
 3066% :-listing('/pack/logicmoo_ec/test/lps_user_examples/brujanino.pl':_79106).
 3067
 3068
 3069initiated(happens(encuentra(_), A, _), enga�a(B, C), [holds(enga�a(C, B), A)]).
 3070
 3071fluents([enga�a(_, _)]).
 3072
 3073reactive_rule([happens(necesita(bruja, objeto), _, _)], [happens(ayuda(ni�o, bruja), _, _)]).
 3074reactive_rule([happens(ayuda(ni�o, bruja), _, _)], [happens(encuentra(objeto), _, _)]).
 3075reactive_rule([happens(necesita(bruja, objeto), _, _)], [happens(ayuda(ni�o, bruja), _, _)]).
 3076reactive_rule([happens(ayuda(ni�o, bruja), _, _)], [happens(encuentra(objeto), _, _)]).
 3077reactive_rule([happens(encuentra(objeto), _, A), holds(enga�a(ni�o, bruja), A)], [happens(escapa(ni�o), _, _)]).
 3078
 3079initial_state([enga�a(bruja, ni�o)]).
 3080
 3081l_events(happens(escapa(ni�o), A, A), [holds(enga�a(ni�o, bruja), A)]).
 3082
 3083:- dynamic actions/1. 3084:- multifile actions/1. 3085
 3086actions([ayuda(_, _), encuentra(_)]).
 3087
 3088events([necesita(_, _), escapa(_)]).
 3089
 3090observe([necesita(bruja, objeto)], 2).
 3091observe([necesita(bruja, objeto)], 5).
 3092
 3093maxTime(8).
 3094% dB(/.../(lps_user_examples, 'brujanino.pl'), lps_visualization(_66724{groups:[_65548{content:"Events", id:"event", order:1}, _65622{content:"enga�a(A,B)", id:"enga�a/2", order:3, subgroupStack:"false"}, _65688{content:"Actions", id:"action", order:4}], items:[_65810{content:"bruja,ni�o", end:9, group:"enga�a/2", id:0, start:1, subgroup:"bruja", title:"Fluent enga�a(bruja,ni�o) initiated at 1<br/>and terminated at transition to 9"}, _65936{content:"ni�o,bruja", end:9, group:"enga�a/2", id:1, start:4, subgroup:"ni�o", title:"Fluent enga�a(ni�o,bruja) initiated at 4<br/>and terminated at transition to 9"}, _66062{content:"necesita(bruja,objeto)", group:"event", id:2, start:2, style:"color:#E19735", title:"happens(necesita(bruja,objeto),1,2)", type:"point"}, _66188{content:"ayuda(ni�o,bruja)", group:"action", id:3, start:3, style:"color:green", title:"happens(ayuda(ni�o,bruja),2,3)", type:"point"}, _66314{content:"encuentra(objeto)", group:"action", id:4, start:4, style:"color:green", title:"happens(encuentra(objeto),3,4)", type:"point"}, _66440{content:"necesita(bruja,objeto)", group:"event", id:5, start:5, style:"color:#E19735", title:"happens(necesita(bruja,objeto),4,5)", type:"point"}, _66566{content:"ayuda(ni�o,bruja)", group:"action", id:6, start:6, style:"color:green", title:"happens(ayuda(ni�o,bruja),5,6)", type:"point"}, _66692{content:"encuentra(objeto)", group:"action", id:7, start:7, style:"color:green", title:"happens(encuentra(objeto),6,7)", type:"point"}]}, [])).
 3095% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'buggymartianrobot.pl')).
 3096% run_lps_corner_file1(/.../(lps_user_examples, 'buggymartianrobot.pl')).
 3097% /pack/logicmoo_ec/test/lps_user_examples/buggymartianrobot.pl:1
 3098% push_lps_dialect.
 3099% ops.
 3100% [ti=user, load= /.../(lps_user_examples, 'buggymartianrobot.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'buggymartianrobot.pl'), lps= /.../(lps_user_examples, 'buggymartianrobot.pl'), using= /.../(lps_user_examples, 'buggymartianrobot.pl')].
 3101% continue_lps_dialect.
 3102% ops.
 3103
 3104% LPS:  fluents((at_pos/2,free/2,visited/2,obstacle/2,life/2,lookingtowards/2)).
 3105% Into: fluents([at_pos(_21600,_21602),free(_21612,_21614),visited(_21624,_21626),obstacle(_21636,_21638),life(_21648,_21650),lookingtowards(_21660,_21662)]).
 3106
 3107% LPS:  actions((step(_21400,_21402),turn_right,report)).
 3108% Into: actions([step(_21400,_21402),turn_right,report]).
 3109
 3110% LPS:  initially((at_pos(0,0),life(2,1),free(1,0),free(2,0),obstacle(3,0),obstacle(2,-1),obstacle(2,1),lookingtowards(1,0))).
 3111% Into: initial_state([at_pos(0,0),life(2,1),free(1,0),free(2,0),obstacle(3,0),obstacle(2,-1),obstacle(2,1),lookingtowards(1,0)]).
 3112
 3113% LPS:  terminates(step(_24312,_24314),lookingtowards(_24312,_24314)).
 3114% Into: terminated(happens(step(_24312,_24314),_25506,_25512),lookingtowards(_24312,_24314),[]).
 3115
 3116% LPS:  if(initiates(step(_25444,_25446),lookingtowards(_25444,_25502)),(at_pos(_25444,_25590),lookingtowards(_25444,_25446),_25730 is _25446-_25590,abs(_25730)>0,_25502 is _25446+_25730)).
 3117% Into: initiated(happens(step(_25444,_25446),_27344,_27350),lookingtowards(_25444,_25502),[holds(at_pos(_25444,_25590),_27344),holds(lookingtowards(_25444,_25446),_27344),_25730 is _25446-_25590,abs(_25730)>0,_25502 is _25446+_25730]).
 3118
 3119% LPS:  if(initiates(step(_28832,_28834),lookingtowards(_28888,_28834)),(at_pos(_28976,_28834),lookingtowards(_28832,_28834),_29118 is _28832-_28976,abs(_29118)>0,_28888 is _28832+_29118)).
 3120% Into: initiated(happens(step(_28832,_28834),_30732,_30738),lookingtowards(_28888,_28834),[holds(at_pos(_28976,_28834),_30732),holds(lookingtowards(_28832,_28834),_30732),_29118 is _28832-_28976,abs(_29118)>0,_28888 is _28832+_29118]).
 3121
 3122% LPS:  initiates(step(_32220,_32222),at_pos(_32220,_32222)).
 3123% Into: initiated(happens(step(_32220,_32222),_33406,_33412),at_pos(_32220,_32222),[]).
 3124
 3125% LPS:  if(terminates(step(_33352,_33354),at_pos(_33408,_33410)),at_pos(_33408,_33410)).
 3126% Into: terminated(happens(step(_33352,_33354),_34680,_34686),at_pos(_33408,_33410),[holds(at_pos(_33408,_33410),_34680)]).
 3127
 3128% LPS:  terminates(step(_34972,_34974),free(_34972,_34974)).
 3129% Into: terminated(happens(step(_34972,_34974),_36158,_36164),free(_34972,_34974),[]).
 3130
 3131% LPS:  if(initiates(step(_36104,_36106),visited(_36160,_36162)),at_pos(_36160,_36162)).
 3132% Into: initiated(happens(step(_36104,_36106),_37432,_37438),visited(_36160,_36162),[holds(at_pos(_36160,_36162),_37432)]).
 3133
 3134% LPS:  then(if((at(lookingtowards(_37700,_37702),_37724),at(free(_37700,_37702),_37724),at(not(visited(_37700,_37702)),_37724))),from(step(_37700,_37702),to(_37724,_38164))).
 3135% Into: reactive_rule([holds(lookingtowards(_37700,_37702),_37724),holds(free(_37700,_37702),_37724),holds(not(visited(_37700,_37702)),_37724)],[happens(step(_37700,_37702),_37724,_38164)]).
 3136% /pack/logicmoo_ec/test/lps_user_examples/buggymartianrobot.pl:41
 3137% pop_lps_dialect('$BLOB'("<stream>(0x562ef3ca3100)"),  (/.../(lps_user_examples, 'buggymartianrobot.pl')-> /.../(lps_user_examples, 'buggymartianrobot.pl'))).
 3138% ops.
 3139% :-listing('/pack/logicmoo_ec/test/lps_user_examples/buggymartianrobot.pl':_48448).
 3140
 3141
 3142initiated(happens(step(A, B), C, _), lookingtowards(A, D), [holds(at_pos(A, E), C), holds(lookingtowards(A, B), C), F is B-E, abs(F)>0, D is B+F]).
 3143initiated(happens(step(A, B), C, _), lookingtowards(D, B), [holds(at_pos(E, B), C), holds(lookingtowards(A, B), C), F is A-E, abs(F)>0, D is A+F]).
 3144initiated(happens(step(A, B), _, _), at_pos(A, B), []).
 3145initiated(happens(step(_, _), A, _), visited(B, C), [holds(at_pos(B, C), A)]).
 3146
 3147fluents([at_pos(_, _), free(_, _), visited(_, _), obstacle(_, _), life(_, _), lookingtowards(_, _)]).
 3148
 3149terminated(happens(step(A, B), _, _), lookingtowards(A, B), []).
 3150terminated(happens(step(_, _), A, _), at_pos(B, C), [holds(at_pos(B, C), A)]).
 3151terminated(happens(step(A, B), _, _), free(A, B), []).
 3152
 3153reactive_rule([holds(lookingtowards(A, B), C), holds(free(A, B), C), holds(not(visited(A, B)), C)], [happens(step(A, B), C, _)]).
 3154
 3155initial_state([at_pos(0, 0), life(2, 1), free(1, 0), free(2, 0), obstacle(3, 0), obstacle(2, -1), obstacle(2, 1), lookingtowards(1, 0)]).
 3156
 3157:- dynamic actions/1. 3158:- multifile actions/1. 3159
 3160actions([step(_, _), turn_right, report]).
 3161
 3162maxTime(5).
 3163% dB(/.../(lps_user_examples, 'buggymartianrobot.pl'), lps_visualization(_93554{groups:[_91054{content:"at_pos(A,B)", id:"at_pos/2", order:3, subgroupStack:"false"}, _91132{content:"free(A,B)", id:"free/2", order:3, subgroupStack:"false"}, _91210{content:"life(A,B)", id:"life/2", order:3, subgroupStack:"false"}, _91288{content:"lookingtowards(A,B)", id:"lookingtowards/2", order:3, subgroupStack:"false"}, _91366{content:"obstacle(A,B)", id:"obstacle/2", order:3, subgroupStack:"false"}, _91444{content:"visited(A,B)", id:"visited/2", order:3, subgroupStack:"false"}, _91510{content:"Actions", id:"action", order:4}], items:[_91632{content:"0,0", end:2, group:"at_pos/2", id:0, start:1, subgroup:"0", title:"Fluent at_pos(0,0) initiated at 1<br/>and terminated at transition to 2"}, _91758{content:"1,0", end:3, group:"at_pos/2", id:1, start:2, subgroup:"1", title:"Fluent at_pos(1,0) initiated at 2<br/>and terminated at transition to 3"}, _91884{content:"2,0", end:6, group:"at_pos/2", id:2, start:3, subgroup:"2", title:"Fluent at_pos(2,0) initiated at 3<br/>and terminated at transition to 6"}, _92010{content:"1,0", end:2, group:"free/2", id:3, start:1, subgroup:"1", title:"Fluent free(1,0) initiated at 1<br/>and terminated at transition to 2"}, _92136{content:"2,0", end:3, group:"free/2", id:4, start:1, subgroup:"2", title:"Fluent free(2,0) initiated at 1<br/>and terminated at transition to 3"}, _92262{content:"2,1", end:6, group:"life/2", id:5, start:1, subgroup:"2", title:"Fluent life(2,1) initiated at 1<br/>and terminated at transition to 6"}, _92388{content:"1,0", end:2, group:"lookingtowards/2", id:6, start:1, subgroup:"1", title:"Fluent lookingtowards(1,0) initiated at 1<br/>and terminated at transition to 2"}, _92514{content:"2,0", end:3, group:"lookingtowards/2", id:7, start:2, subgroup:"2", title:"Fluent lookingtowards(2,0) initiated at 2<br/>and terminated at transition to 3"}, _92640{content:"3,0", end:6, group:"lookingtowards/2", id:8, start:3, subgroup:"3", title:"Fluent lookingtowards(3,0) initiated at 3<br/>and terminated at transition to 6"}, _92766{content:"2,-1", end:6, group:"obstacle/2", id:9, start:1, subgroup:"2", title:"Fluent obstacle(2,-1) initiated at 1<br/>and terminated at transition to 6"}, _92892{content:"2,1", end:6, group:"obstacle/2", id:10, start:1, subgroup:"2", title:"Fluent obstacle(2,1) initiated at 1<br/>and terminated at transition to 6"}, _93018{content:"3,0", end:6, group:"obstacle/2", id:11, start:1, subgroup:"3", title:"Fluent obstacle(3,0) initiated at 1<br/>and terminated at transition to 6"}, _93144{content:"0,0", end:6, group:"visited/2", id:12, start:2, subgroup:"0", title:"Fluent visited(0,0) initiated at 2<br/>and terminated at transition to 6"}, _93270{content:"1,0", end:6, group:"visited/2", id:13, start:3, subgroup:"1", title:"Fluent visited(1,0) initiated at 3<br/>and terminated at transition to 6"}, _93396{content:"step(1,0)", group:"action", id:14, start:2, style:"color:green", title:"happens(step(1,0),1,2)", type:"point"}, _93522{content:"step(2,0)", group:"action", id:15, start:3, style:"color:green", title:"happens(step(2,0),2,3)", type:"point"}]}, [])).
 3164% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'buggymartianrobot,pl.pl')).
 3165% run_lps_corner_file1(/.../(lps_user_examples, 'buggymartianrobot,pl.pl')).
 3166% /pack/logicmoo_ec/test/lps_user_examples/buggymartianrobot,pl.pl:1
 3167% push_lps_dialect.
 3168% ops.
 3169% [ti=user, load= /.../(lps_user_examples, 'buggymartianrobot,pl.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'buggymartianrobot,pl.pl'), lps= /.../(lps_user_examples, 'buggymartianrobot,pl.pl'), using= /.../(lps_user_examples, 'buggymartianrobot,pl.pl')].
 3170% continue_lps_dialect.
 3171% ops.
 3172
 3173% LPS:  fluents((at_pos/2,free/2,visited/2,obstacle/2,life/2,lookingtowards/2)).
 3174% Into: fluents([at_pos(_60298,_60300),free(_60310,_60312),visited(_60322,_60324),obstacle(_60334,_60336),life(_60346,_60348),lookingtowards(_60358,_60360)]).
 3175
 3176% LPS:  actions((step(_60098,_60100),turn_right,report)).
 3177% Into: actions([step(_60098,_60100),turn_right,report]).
 3178
 3179% LPS:  initially((at_pos(0,0),life(2,1),free(1,0),free(2,0),obstacle(3,0),obstacle(2,-1),obstacle(2,1),lookingtowards(1,0))).
 3180% Into: initial_state([at_pos(0,0),life(2,1),free(1,0),free(2,0),obstacle(3,0),obstacle(2,-1),obstacle(2,1),lookingtowards(1,0)]).
 3181
 3182% LPS:  terminates(step(_63010,_63012),lookingtowards(_63010,_63012)).
 3183% Into: terminated(happens(step(_63010,_63012),_64196,_64202),lookingtowards(_63010,_63012),[]).
 3184
 3185% LPS:  if(initiates(step(_64142,_64144),lookingtowards(_64142,_64200)),(at_pos(_64142,_64288),lookingtowards(_64142,_64144),_64428 is _64144-_64288,abs(_64428)>0,_64200 is _64144+_64428)).
 3186% Into: initiated(happens(step(_64142,_64144),_66042,_66048),lookingtowards(_64142,_64200),[holds(at_pos(_64142,_64288),_66042),holds(lookingtowards(_64142,_64144),_66042),_64428 is _64144-_64288,abs(_64428)>0,_64200 is _64144+_64428]).
 3187
 3188% LPS:  if(initiates(step(_67530,_67532),lookingtowards(_67586,_67532)),(at_pos(_67674,_67532),lookingtowards(_67530,_67532),_67816 is _67530-_67674,abs(_67816)>0,_67586 is _67530+_67816)).
 3189% Into: initiated(happens(step(_67530,_67532),_69430,_69436),lookingtowards(_67586,_67532),[holds(at_pos(_67674,_67532),_69430),holds(lookingtowards(_67530,_67532),_69430),_67816 is _67530-_67674,abs(_67816)>0,_67586 is _67530+_67816]).
 3190
 3191% LPS:  initiates(step(_70918,_70920),at_pos(_70918,_70920)).
 3192% Into: initiated(happens(step(_70918,_70920),_72104,_72110),at_pos(_70918,_70920),[]).
 3193
 3194% LPS:  if(terminates(step(_72050,_72052),at_pos(_72106,_72108)),at_pos(_72106,_72108)).
 3195% Into: terminated(happens(step(_72050,_72052),_73378,_73384),at_pos(_72106,_72108),[holds(at_pos(_72106,_72108),_73378)]).
 3196
 3197% LPS:  terminates(step(_73670,_73672),free(_73670,_73672)).
 3198% Into: terminated(happens(step(_73670,_73672),_74856,_74862),free(_73670,_73672),[]).
 3199
 3200% LPS:  if(initiates(step(_74802,_74804),visited(_74858,_74860)),at_pos(_74858,_74860)).
 3201% Into: initiated(happens(step(_74802,_74804),_76130,_76136),visited(_74858,_74860),[holds(at_pos(_74858,_74860),_76130)]).
 3202
 3203% LPS:  then(if((lookingtowards(_76398,_76400),free(_76398,_76400),not(visited(_76398,_76400)))),step(_76398,_76400)).
 3204% Into: reactive_rule([holds(lookingtowards(_76398,_76400),_77768),holds(free(_76398,_76400),_77768),holds(not(visited(_76398,_76400)),_77768)],[happens(step(_76398,_76400),_78616,_78622)]).
 3205% /pack/logicmoo_ec/test/lps_user_examples/buggymartianrobot,pl.pl:36
 3206% pop_lps_dialect('$BLOB'("<stream>(0x562ef4160300)"),  (/.../(lps_user_examples, 'buggymartianrobot,pl.pl')-> /.../(lps_user_examples, 'buggymartianrobot,pl.pl'))).
 3207% ops.
 3208% :-listing('/pack/logicmoo_ec/test/lps_user_examples/buggymartianrobot,pl.pl':_86266).
 3209
 3210
 3211initiated(happens(step(A, B), C, _), lookingtowards(A, D), [holds(at_pos(A, E), C), holds(lookingtowards(A, B), C), F is B-E, abs(F)>0, D is B+F]).
 3212initiated(happens(step(A, B), C, _), lookingtowards(D, B), [holds(at_pos(E, B), C), holds(lookingtowards(A, B), C), F is A-E, abs(F)>0, D is A+F]).
 3213initiated(happens(step(A, B), _, _), at_pos(A, B), []).
 3214initiated(happens(step(_, _), A, _), visited(B, C), [holds(at_pos(B, C), A)]).
 3215
 3216fluents([at_pos(_, _), free(_, _), visited(_, _), obstacle(_, _), life(_, _), lookingtowards(_, _)]).
 3217
 3218terminated(happens(step(A, B), _, _), lookingtowards(A, B), []).
 3219terminated(happens(step(_, _), A, _), at_pos(B, C), [holds(at_pos(B, C), A)]).
 3220terminated(happens(step(A, B), _, _), free(A, B), []).
 3221
 3222reactive_rule([holds(lookingtowards(A, B), C), holds(free(A, B), C), holds(not(visited(A, B)), C)], [happens(step(A, B), _, _)]).
 3223
 3224initial_state([at_pos(0, 0), life(2, 1), free(1, 0), free(2, 0), obstacle(3, 0), obstacle(2, -1), obstacle(2, 1), lookingtowards(1, 0)]).
 3225
 3226:- dynamic actions/1. 3227:- multifile actions/1. 3228
 3229actions([step(_, _), turn_right, report]).
 3230
 3231maxTime(5).
 3232% dB(/.../(lps_user_examples, 'buggymartianrobot,pl.pl'), lps_visualization(_62876{groups:[_60376{content:"at_pos(A,B)", id:"at_pos/2", order:3, subgroupStack:"false"}, _60454{content:"free(A,B)", id:"free/2", order:3, subgroupStack:"false"}, _60532{content:"life(A,B)", id:"life/2", order:3, subgroupStack:"false"}, _60610{content:"lookingtowards(A,B)", id:"lookingtowards/2", order:3, subgroupStack:"false"}, _60688{content:"obstacle(A,B)", id:"obstacle/2", order:3, subgroupStack:"false"}, _60766{content:"visited(A,B)", id:"visited/2", order:3, subgroupStack:"false"}, _60832{content:"Actions", id:"action", order:4}], items:[_60954{content:"0,0", end:2, group:"at_pos/2", id:0, start:1, subgroup:"0", title:"Fluent at_pos(0,0) initiated at 1<br/>and terminated at transition to 2"}, _61080{content:"1,0", end:3, group:"at_pos/2", id:1, start:2, subgroup:"1", title:"Fluent at_pos(1,0) initiated at 2<br/>and terminated at transition to 3"}, _61206{content:"2,0", end:6, group:"at_pos/2", id:2, start:3, subgroup:"2", title:"Fluent at_pos(2,0) initiated at 3<br/>and terminated at transition to 6"}, _61332{content:"1,0", end:2, group:"free/2", id:3, start:1, subgroup:"1", title:"Fluent free(1,0) initiated at 1<br/>and terminated at transition to 2"}, _61458{content:"2,0", end:3, group:"free/2", id:4, start:1, subgroup:"2", title:"Fluent free(2,0) initiated at 1<br/>and terminated at transition to 3"}, _61584{content:"2,1", end:6, group:"life/2", id:5, start:1, subgroup:"2", title:"Fluent life(2,1) initiated at 1<br/>and terminated at transition to 6"}, _61710{content:"1,0", end:2, group:"lookingtowards/2", id:6, start:1, subgroup:"1", title:"Fluent lookingtowards(1,0) initiated at 1<br/>and terminated at transition to 2"}, _61836{content:"2,0", end:3, group:"lookingtowards/2", id:7, start:2, subgroup:"2", title:"Fluent lookingtowards(2,0) initiated at 2<br/>and terminated at transition to 3"}, _61962{content:"3,0", end:6, group:"lookingtowards/2", id:8, start:3, subgroup:"3", title:"Fluent lookingtowards(3,0) initiated at 3<br/>and terminated at transition to 6"}, _62088{content:"2,-1", end:6, group:"obstacle/2", id:9, start:1, subgroup:"2", title:"Fluent obstacle(2,-1) initiated at 1<br/>and terminated at transition to 6"}, _62214{content:"2,1", end:6, group:"obstacle/2", id:10, start:1, subgroup:"2", title:"Fluent obstacle(2,1) initiated at 1<br/>and terminated at transition to 6"}, _62340{content:"3,0", end:6, group:"obstacle/2", id:11, start:1, subgroup:"3", title:"Fluent obstacle(3,0) initiated at 1<br/>and terminated at transition to 6"}, _62466{content:"0,0", end:6, group:"visited/2", id:12, start:2, subgroup:"0", title:"Fluent visited(0,0) initiated at 2<br/>and terminated at transition to 6"}, _62592{content:"1,0", end:6, group:"visited/2", id:13, start:3, subgroup:"1", title:"Fluent visited(1,0) initiated at 3<br/>and terminated at transition to 6"}, _62718{content:"step(1,0)", group:"action", id:14, start:2, style:"color:green", title:"happens(step(1,0),1,2)", type:"point"}, _62844{content:"step(2,0)", group:"action", id:15, start:3, style:"color:green", title:"happens(step(2,0),2,3)", type:"point"}]}, [])).
 3233% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'busqueda.pl')).
 3234% run_lps_corner_file1(/.../(lps_user_examples, 'busqueda.pl')).
 3235% /pack/logicmoo_ec/test/lps_user_examples/busqueda.pl:1
 3236% push_lps_dialect.
 3237% ops.
 3238% [ti=user, load= /.../(lps_user_examples, 'busqueda.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'busqueda.pl'), lps= /.../(lps_user_examples, 'busqueda.pl'), using= /.../(lps_user_examples, 'busqueda.pl')].
 3239% continue_lps_dialect.
 3240% ops.
 3241
 3242% LPS:  events((a,a1,a3)).
 3243% Into: events([a,a1,a3]).
 3244
 3245% LPS:  actions((a11,a31)).
 3246% Into: actions([a11,a31]).
 3247
 3248% LPS:  then(if(true),a).
 3249% Into: reactive_rule([],[happens(a,_21970,_21976)]).
 3250
 3251% LPS:  if(a,a2).
 3252% Into: l_events(happens(a,_22990,_22996),[happens(a2,_22990,_22996)]).
 3253
 3254% LPS:  if(a,a3).
 3255% Into: l_events(happens(a,_24006,_24012),[happens(a3,_24006,_24012)]).
 3256
 3257% LPS:  if(a1,a11).
 3258% Into: l_events(happens(a1,_25022,_25028),[happens(a11,_25022,_25028)]).
 3259
 3260% LPS:  if(a3,a31).
 3261% Into: l_events(happens(a3,_26038,_26044),[happens(a31,_26038,_26044)]).
 3262% /pack/logicmoo_ec/test/lps_user_examples/busqueda.pl:17
 3263% pop_lps_dialect('$BLOB'("<stream>(0x562ef4161200)"),  (/.../(lps_user_examples, 'busqueda.pl')-> /.../(lps_user_examples, 'busqueda.pl'))).
 3264% ops.
 3265% :-listing('/pack/logicmoo_ec/test/lps_user_examples/busqueda.pl':_36354).
 3266
 3267
 3268a22.
 3269
 3270reactive_rule([], [happens(a, _, _)]).
 3271
 3272l_events(happens(a, A, B), [happens(a2, A, B)]).
 3273l_events(happens(a, A, B), [happens(a3, A, B)]).
 3274l_events(happens(a1, A, B), [happens(a11, A, B)]).
 3275l_events(happens(a3, A, B), [happens(a31, A, B)]).
 3276
 3277a2 :-
 3278    a22,
 3279    writeln(hello).
 3280
 3281:- dynamic actions/1. 3282:- multifile actions/1. 3283
 3284actions([a11, a31]).
 3285
 3286events([a, a1, a3]).
 3287hello
 3288
 3289% dB(/.../(lps_user_examples, 'busqueda.pl'), lps_visualization(_58436{groups:[_58282{content:"Actions", id:"action", order:4}], items:[_58404{content:"a2", group:"action", id:0, start:2, style:"color:green", title:"happens(a2,1,2)", type:"point"}]}, [])).
 3290% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'carta.pl')).
 3291% run_lps_corner_file1(/.../(lps_user_examples, 'carta.pl')).
 3292% /pack/logicmoo_ec/test/lps_user_examples/carta.pl:1
 3293% push_lps_dialect.
 3294% ops.
 3295% [ti=user, load= /.../(lps_user_examples, 'carta.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'carta.pl'), lps= /.../(lps_user_examples, 'carta.pl'), using= /.../(lps_user_examples, 'carta.pl')].
 3296% continue_lps_dialect.
 3297% ops.
 3298
 3299% LPS:  fluents((alerta1,alerta2,alerta3)).
 3300% Into: fluents([alerta1,alerta2,alerta3]).
 3301
 3302% LPS:  actions(carta).
 3303% Into: actions([carta]).
 3304
 3305% LPS:  events((giroMensaje1,giroMensaje2,giroMensaje3,giroMensaje4)).
 3306% Into: events([giroMensaje1,giroMensaje2,giroMensaje3,giroMensaje4]).
 3307
 3308% LPS:  observe(from(alerta1,to(1,2))).
 3309% Into: observe([alerta1],2).
 3310
 3311% LPS:  then(if(at(alerta1,_24144)),from(giroMensaje1,to(_24144,_24248))).
 3312% Into: reactive_rule([holds(alerta1,_24144)],[happens(giroMensaje1,_24144,_24248)]).
 3313
 3314% LPS:  observe(from(alerta2,to(3,4))).
 3315% Into: observe([alerta2],4).
 3316
 3317% LPS:  then(if(at(alerta2,_26922)),from(giroMensaje2,to(_26922,_27026))).
 3318% Into: reactive_rule([holds(alerta2,_26922)],[happens(giroMensaje2,_26922,_27026)]).
 3319
 3320% LPS:  observe(from(alerta2,to(5,6))).
 3321% Into: observe([alerta2],6).
 3322
 3323% LPS:  then(if(at(alerta3,_29700)),from(giroMensaje3,to(_29700,_29804))).
 3324% Into: reactive_rule([holds(alerta3,_29700)],[happens(giroMensaje3,_29700,_29804)]).
 3325
 3326% LPS:  observe(from(carta,to(3,5))).
 3327% Into: observe([carta],5).
 3328
 3329% LPS:  if(from(giroMensaje4,to(_32484,_32486)),from(carta,to(_32484,_32486))).
 3330% Into: l_events(happens(giroMensaje4,_32484,_32486),[happens(carta,_32484,_32486)]).
 3331% /pack/logicmoo_ec/test/lps_user_examples/carta.pl:29
 3332% pop_lps_dialect('$BLOB'("<stream>(0x562ef3ca4f00)"),  (/.../(lps_user_examples, 'carta.pl')-> /.../(lps_user_examples, 'carta.pl'))).
 3333% ops.
 3334% :-listing('/pack/logicmoo_ec/test/lps_user_examples/carta.pl':_41318).
 3335
 3336
 3337fluents([alerta1, alerta2, alerta3]).
 3338
 3339reactive_rule([holds(alerta1, A)], [happens(giroMensaje1, A, _)]).
 3340reactive_rule([holds(alerta2, A)], [happens(giroMensaje2, A, _)]).
 3341reactive_rule([holds(alerta3, A)], [happens(giroMensaje3, A, _)]).
 3342
 3343l_events(happens(giroMensaje4, A, B), [happens(carta, A, B)]).
 3344
 3345:- dynamic actions/1. 3346:- multifile actions/1. 3347
 3348actions([carta]).
 3349
 3350events([giroMensaje1, giroMensaje2, giroMensaje3, giroMensaje4]).
 3351
 3352observe([alerta1], 2).
 3353observe([alerta2], 4).
 3354observe([alerta2], 6).
 3355observe([carta], 5).
 3356
 3357maxTime(20).
 3358% dB(/.../(lps_user_examples, 'carta.pl'), lps_visualization(_72730{groups:[_72198{content:"Events", id:"event", order:1}], items:[_72320{content:"alerta1", group:"event", id:0, start:2, style:"color:#E19735", title:"happens(alerta1,1,2)", type:"point"}, _72446{content:"alerta2", group:"event", id:1, start:4, style:"color:#E19735", title:"happens(alerta2,3,4)", type:"point"}, _72572{content:"carta", group:"event", id:2, start:5, style:"color:#E19735", title:"happens(carta,4,5)", type:"point"}, _72698{content:"alerta2", group:"event", id:3, start:6, style:"color:#E19735", title:"happens(alerta2,5,6)", type:"point"}]}, [])).
 3359% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'CCAcompanaB2018.pl')).
 3360% run_lps_corner_file1(/.../(lps_user_examples, 'CCAcompanaB2018.pl')).
 3361% /pack/logicmoo_ec/test/lps_user_examples/CCAcompanaB2018.pl:1
 3362% push_lps_dialect.
 3363% ops.
 3364% [ti=user, load= /.../(lps_user_examples, 'CCAcompanaB2018.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'CCAcompanaB2018.pl'), lps= /.../(lps_user_examples, 'CCAcompanaB2018.pl'), using= /.../(lps_user_examples, 'CCAcompanaB2018.pl')].
 3365% continue_lps_dialect.
 3366% ops.
 3367% /pack/logicmoo_ec/test/lps_user_examples/CCAcompanaB2018.pl:19
 3368% pop_lps_dialect('$BLOB'("<stream>(0x562ef4161300)"),  (/.../(lps_user_examples, 'CCAcompanaB2018.pl')-> /.../(lps_user_examples, 'CCAcompanaB2018.pl'))).
 3369% ops.
 3370% :-listing('/pack/logicmoo_ec/test/lps_user_examples/CCAcompanaB2018.pl':_77868).
 3371
 3372
 3373persona(claudio).
 3374persona(vanessa).
 3375persona(jorge).
 3376persona(jacinto).
 3377persona(aquiles).
 3378
 3379:- dynamic actions/1. 3380:- multifile actions/1. 3381
 3382
 3383acompa�a(jorge, claudio).
 3384acompa�a(claudio, jorge).
 3385acompa�a(vanessa, jorge).
 3386acompa�a(jorge, vanessa).
 3387acompa�a(X, Y) :-
 3388    acompa�a(Z, X),
 3389    acompa�a(Z, Y),
 3390    not(X=Y),
 3391    !.
 3392% dB(/.../(lps_user_examples, 'CCAcompanaB2018.pl'), lps_visualization(_30614{groups:[], items:[]}, [])).
 3393% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'checkout.pl')).
 3394% run_lps_corner_file1(/.../(lps_user_examples, 'checkout.pl')).
 3395% /pack/logicmoo_ec/test/lps_user_examples/checkout.pl:1
 3396% push_lps_dialect.
 3397% ops.
 3398% [ti=user, load= /.../(lps_user_examples, 'checkout.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'checkout.pl'), lps= /.../(lps_user_examples, 'checkout.pl'), using= /.../(lps_user_examples, 'checkout.pl')].
 3399% continue_lps_dialect.
 3400% ops.
 3401
 3402% LPS:  fluents((entered_at(_66334,_66336),authorised(_66334,_66392))).
 3403% Into: fluents([entered_at(_66334,_66336),authorised(_66334,_66392)]).
 3404
 3405% LPS:  actions((enter_card(_67500),authorise(_67500,_67556))).
 3406% Into: actions([enter_card(_67500),authorise(_67500,_67556)]).
 3407
 3408% LPS:  initiates(authorise(_19544,_19546),authorised(_19544,_19546)).
 3409% Into: initiated(happens(authorise(_19544,_19546),_19956,_19962),authorised(_19544,_19546),[]).
 3410
 3411% LPS:  initiates(from(enter_card(_19880),to(_19916,_19918)),entered_at(_19880,_19918)).
 3412% Into: initiated(happens(enter_card(_19880),_19916,_19918),entered_at(_19880,_19918),[]).
 3413
 3414% LPS:  if(from(checkout(_24382),to(_24418,_24420)),(have_card(_24518),from(enter_card(_24518),to(_24418,_24596)),at(authorised(_24518,_24382),_24420),_24420=<_24596+3)).
 3415% Into: l_events(happens(checkout(_24382),_24418,_24420),[have_card(_24518),happens(enter_card(_24518),_24418,_24596),holds(authorised(_24518,_24382),_24420),_24420=<_24596+3]).
 3416
 3417% LPS:  then(if(true),checkout(my_new_laptop)).
 3418% Into: reactive_rule([],[happens(checkout(my_new_laptop),_28370,_28376)]).
 3419
 3420% LPS:  false((enter_card(_28370),enter_card(_28410),_28370\=_28410)).
 3421% Into: d_pre([happens(enter_card(_28370),_29582,_29588),happens(enter_card(_28410),_29582,_29588),_28370\=_28410]).
 3422
 3423% LPS:  false((to(enter_card(_29938),_29960),entered_at(_30040,_30042),_30042<_29960,_29960=<_30042+3)).
 3424% Into: d_pre([happens(enter_card(_29938),_31408,_29960),holds(entered_at(_30040,_30042),_31524),_30042<_29960,_29960=<_30042+3]).
 3425% /pack/logicmoo_ec/test/lps_user_examples/checkout.pl:33
 3426% pop_lps_dialect('$BLOB'("<stream>(0x562ef4161500)"),  (/.../(lps_user_examples, 'checkout.pl')-> /.../(lps_user_examples, 'checkout.pl'))).
 3427% ops.
 3428% :-listing('/pack/logicmoo_ec/test/lps_user_examples/checkout.pl':_39640).
 3429
 3430
 3431initiated(happens(authorise(A, B), _, _), authorised(A, B), []).
 3432initiated(happens(enter_card(A), _, B), entered_at(A, B), []).
 3433
 3434d_pre([happens(enter_card(A), B, C), happens(enter_card(D), B, C), A\=D]).
 3435d_pre([happens(enter_card(_), _, A), holds(entered_at(_, B), _), B<A, A=<B+3]).
 3436
 3437fluents([entered_at(A, _), authorised(A, _)]).
 3438
 3439have_card(1).
 3440have_card(2).
 3441
 3442reactive_rule([], [happens(checkout(my_new_laptop), _, _)]).
 3443
 3444l_events(happens(checkout(A), B, C), [have_card(D), happens(enter_card(D), B, E), holds(authorised(D, A), C), C=<E+3]).
 3445
 3446:- dynamic actions/1. 3447:- multifile actions/1. 3448
 3449actions([enter_card(A), authorise(A, _)]).
 3450
 3451maxTime(12).
 3452% dB(/.../(lps_user_examples, 'checkout.pl'), lps_visualization(_63892{groups:[_63294{content:"entered_at(A,B)", id:"entered_at/2", order:3, subgroupStack:"false"}, _63360{content:"Actions", id:"action", order:4}], items:[_63482{content:"1,2", end:13, group:"entered_at/2", id:0, start:2, subgroup:"1", title:"Fluent entered_at(1,2) initiated at 2<br/>and terminated at transition to 13"}, _63608{content:"2,6", end:13, group:"entered_at/2", id:1, start:6, subgroup:"2", title:"Fluent entered_at(2,6) initiated at 6<br/>and terminated at transition to 13"}, _63734{content:"enter_card(1)", group:"action", id:2, start:2, style:"color:green", title:"happens(enter_card(1),1,2)", type:"point"}, _63860{content:"enter_card(2)", group:"action", id:3, start:6, style:"color:green", title:"happens(enter_card(2),5,6)", type:"point"}]}, [])).
 3453% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'checkout with more_actions.pl')).
 3454% run_lps_corner_file1(/.../(lps_user_examples, 'checkout with more_actions.pl')).
 3455% /pack/logicmoo_ec/test/lps_user_examples/checkout with more_actions.pl:1
 3456% push_lps_dialect.
 3457% ops.
 3458% [ti=user, load= /.../(lps_user_examples, 'checkout with more_actions.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'checkout with more_actions.pl'), lps= /.../(lps_user_examples, 'checkout with more_actions.pl'), using= /.../(lps_user_examples, 'checkout with more_actions.pl')].
 3459% continue_lps_dialect.
 3460% ops.
 3461
 3462% LPS:  fluents((entered_at(_32210,_32212),authorised(_32210,_32268))).
 3463% Into: fluents([entered_at(_32210,_32212),authorised(_32210,_32268)]).
 3464
 3465% LPS:  actions((enter_card(_33376),authorise(_33376,_33432))).
 3466% Into: actions([enter_card(_33376),authorise(_33376,_33432)]).
 3467
 3468% LPS:  initiates(authorise(_34532,_34534),authorised(_34532,_34534)).
 3469% Into: initiated(happens(authorise(_34532,_34534),_35718,_35724),authorised(_34532,_34534),[]).
 3470
 3471% LPS:  initiates(from(enter_card(_35650),to(_35686,_35688)),entered_at(_35650,_35688)).
 3472% Into: initiated(happens(enter_card(_35650),_35686,_35688),entered_at(_35650,_35688),[]).
 3473
 3474% LPS:  then(if(to(enter_card(2),_40150)),from(authorise(2,_40256),_40150+1)).
 3475% Into: reactive_rule([happens(enter_card(2),_41428,_40150)],[happens(authorise(2,_40256),_40150+1,_41518)]).
 3476
 3477% LPS:  if(from(checkout(_41476),to(_41512,_41514)),(have_card(_41612),from(enter_card(_41612),to(_41512,_41690)),at(authorised(_41612,_41476),_41514),_41514=<_41690+3)).
 3478% Into: l_events(happens(checkout(_41476),_41512,_41514),[have_card(_41612),happens(enter_card(_41612),_41512,_41690),holds(authorised(_41612,_41476),_41514),_41514=<_41690+3]).
 3479
 3480% LPS:  then(if(true),checkout(my_new_laptop)).
 3481% Into: reactive_rule([],[happens(checkout(my_new_laptop),_45452,_45458)]).
 3482
 3483% LPS:  false((enter_card(_45452),enter_card(_45492),_45452\=_45492)).
 3484% Into: d_pre([happens(enter_card(_45452),_46664,_46670),happens(enter_card(_45492),_46664,_46670),_45452\=_45492]).
 3485
 3486% LPS:  false((to(enter_card(_47020),_47042),entered_at(_47122,_47124),_47124<_47042,_47042=<_47124+3)).
 3487% Into: d_pre([happens(enter_card(_47020),_48490,_47042),holds(entered_at(_47122,_47124),_48606),_47124<_47042,_47042=<_47124+3]).
 3488
 3489% LPS:  false((enter_card(_49098),entered_at(_49098,_49154))).
 3490% Into: d_pre([happens(enter_card(_49098),_50208,_50214),holds(entered_at(_49098,_49154),_50208)]).
 3491% /pack/logicmoo_ec/test/lps_user_examples/checkout with more_actions.pl:36
 3492% pop_lps_dialect('$BLOB'("<stream>(0x562ef3ca4800)"),  (/.../(lps_user_examples, 'checkout with more_actions.pl')-> /.../(lps_user_examples, 'checkout with more_actions.pl'))).
 3493% ops.
 3494% :-listing('/pack/logicmoo_ec/test/lps_user_examples/checkout with more_actions.pl':_57896).
 3495
 3496
 3497initiated(happens(authorise(A, B), _, _), authorised(A, B), []).
 3498initiated(happens(enter_card(A), _, B), entered_at(A, B), []).
 3499
 3500d_pre([happens(enter_card(A), B, C), happens(enter_card(D), B, C), A\=D]).
 3501d_pre([happens(enter_card(_), _, A), holds(entered_at(_, B), _), B<A, A=<B+3]).
 3502d_pre([happens(enter_card(A), B, _), holds(entered_at(A, _), B)]).
 3503
 3504fluents([entered_at(A, _), authorised(A, _)]).
 3505
 3506have_card(1).
 3507have_card(2).
 3508
 3509reactive_rule([happens(enter_card(2), _, A)], [happens(authorise(2, _), A+1, _)]).
 3510reactive_rule([], [happens(checkout(my_new_laptop), _, _)]).
 3511
 3512l_events(happens(checkout(A), B, C), [have_card(D), happens(enter_card(D), B, E), holds(authorised(D, A), C), C=<E+3]).
 3513
 3514:- dynamic actions/1. 3515:- multifile actions/1. 3516
 3517actions([enter_card(A), authorise(A, _)]).
 3518
 3519maxTime(12).
 3520% dB(/.../(lps_user_examples, 'checkout with more_actions.pl'), lps_visualization(_87278{groups:[_86350{content:"authorised(A,B)", id:"authorised/2", order:3, subgroupStack:"false"}, _86428{content:"entered_at(A,B)", id:"entered_at/2", order:3, subgroupStack:"false"}, _86494{content:"Actions", id:"action", order:4}], items:[_86616{content:"2,A", end:13, group:"authorised/2", id:0, start:8, subgroup:"2", title:"Fluent authorised(2,A) initiated at 8<br/>and terminated at transition to 13"}, _86742{content:"1,2", end:13, group:"entered_at/2", id:1, start:2, subgroup:"1", title:"Fluent entered_at(1,2) initiated at 2<br/>and terminated at transition to 13"}, _86868{content:"2,6", end:13, group:"entered_at/2", id:2, start:6, subgroup:"2", title:"Fluent entered_at(2,6) initiated at 6<br/>and terminated at transition to 13"}, _86994{content:"enter_card(1)", group:"action", id:3, start:2, style:"color:green", title:"happens(enter_card(1),1,2)", type:"point"}, _87120{content:"enter_card(2)", group:"action", id:4, start:6, style:"color:green", title:"happens(enter_card(2),5,6)", type:"point"}, _87246{content:"authorise(2,A)", group:"action", id:5, start:8, style:"color:green", title:"happens(authorise(2,A),7,8)", type:"point"}]}, [])).
 3521% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'completeness.pl')).
 3522% run_lps_corner_file1(/.../(lps_user_examples, 'completeness.pl')).
 3523% /pack/logicmoo_ec/test/lps_user_examples/completeness.pl:1
 3524% push_lps_dialect.
 3525% ops.
 3526% [ti=user, load= /.../(lps_user_examples, 'completeness.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'completeness.pl'), lps= /.../(lps_user_examples, 'completeness.pl'), using= /.../(lps_user_examples, 'completeness.pl')].
 3527% continue_lps_dialect.
 3528% ops.
 3529
 3530% LPS:  events((e1,e2,e3,a1)).
 3531% Into: events([e1,e2,e3,a1]).
 3532
 3533% LPS:  actions(a1).
 3534% Into: actions([a1]).
 3535
 3536% LPS:  fluents(p).
 3537% Into: fluents([p]).
 3538
 3539% LPS:  then(if(from(e1,_57732)),(from(a1,_57820),_57820>_57732)).
 3540% Into: reactive_rule([happens(e1,_57732,_59020)],[happens(a1,_57820,_59130),_57820>_57732]).
 3541
 3542% LPS:  then(if(from(e2,_60000)),at(p,_60000+3)).
 3543% Into: reactive_rule([happens(e2,_60000,_61222)],[holds(p,_60000+3)]).
 3544
 3545% LPS:  initiates(a1,p).
 3546% Into: initiated(happens(a1,_62794,_62800),p,[]).
 3547
 3548% LPS:  terminates(e3,p).
 3549% Into: terminated(happens(e3,_63810,_63816),p,[]).
 3550
 3551% LPS:  observe(from(e1,1)).
 3552% Into: observe([e1],2).
 3553
 3554% LPS:  observe(from(e3,3)).
 3555% Into: observe([e3],4).
 3556
 3557% LPS:  observe(from(e2,4)).
 3558% Into: observe([e2],5).
 3559% /pack/logicmoo_ec/test/lps_user_examples/completeness.pl:15
 3560% pop_lps_dialect('$BLOB'("<stream>(0x562ef4160900)"),  (/.../(lps_user_examples, 'completeness.pl')-> /.../(lps_user_examples, 'completeness.pl'))).
 3561% ops.
 3562% :-listing('/pack/logicmoo_ec/test/lps_user_examples/completeness.pl':_74518).
 3563
 3564
 3565initiated(happens(a1, _, _), p, []).
 3566
 3567fluents([p]).
 3568
 3569reactive_rule([happens(e1, A, _)], [happens(a1, B, _), B>A]).
 3570reactive_rule([happens(e2, A, _)], [holds(p, A+3)]).
 3571
 3572terminated(happens(e3, _, _), p, []).
 3573
 3574:- dynamic actions/1. 3575:- multifile actions/1. 3576
 3577actions([a1]).
 3578
 3579events([e1, e2, e3, a1]).
 3580
 3581observe([e1], 2).
 3582observe([e3], 4).
 3583observe([e2], 5).
 3584PROGRAM FAILED
 3585% dB(/.../(lps_user_examples, 'completeness.pl'), lps_visualization(_36108{groups:[_35326{content:"Events", id:"event", order:1}, _35400{content:"p", id:"p/0", order:3, subgroupStack:"false"}, _35466{content:"Actions", id:"action", order:4}], items:[_35576{content:"p", end:4, group:"p/0", id:0, start:3, title:"Fluent p initiated at 3<br/>and terminated at transition to 4"}, _35698{content:"e1", group:"event", id:1, start:2, style:"color:#E19735", title:"happens(e1,1,2)", type:"point"}, _35824{content:"a1", group:"action", id:2, start:3, style:"color:green", title:"happens(a1,2,3)", type:"point"}, _35950{content:"e3", group:"event", id:3, start:4, style:"color:#E19735", title:"happens(e3,3,4)", type:"point"}, _36076{content:"e2", group:"event", id:4, start:5, style:"color:#E19735", title:"happens(e2,4,5)", type:"point"}]}, [])).
 3586% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'complex loan.pl')).
 3587% run_lps_corner_file1(/.../(lps_user_examples, 'complex loan.pl')).
 3588% :-listing('/pack/logicmoo_ec/test/lps_user_examples/complex loan.pl':_52822).
 3589
 3590% dB(/.../(lps_user_examples, 'complex loan.pl'), lps_visualization(_67528{groups:[], items:[]}, [])).
 3591% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'consolidated loan.pl')).
 3592% run_lps_corner_file1(/.../(lps_user_examples, 'consolidated loan.pl')).
 3593% /pack/logicmoo_ec/test/lps_user_examples/consolidated loan.pl:1
 3594% push_lps_dialect.
 3595% ops.
 3596% [ti=user, load= /.../(lps_user_examples, 'consolidated loan.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'consolidated loan.pl'), lps= /.../(lps_user_examples, 'consolidated loan.pl'), using= /.../(lps_user_examples, 'consolidated loan.pl')].
 3597% continue_lps_dialect.
 3598% ops.
 3599% /pack/logicmoo_ec/test/lps_user_examples/consolidated loan.pl:3
 3600% pop_lps_dialect('$BLOB'("<stream>(0x562ef3ca2500)"),  (/.../(lps_user_examples, 'consolidated loan.pl')-> /.../(lps_user_examples, 'consolidated loan.pl'))).
 3601% ops.
 3602% :-listing('/pack/logicmoo_ec/test/lps_user_examples/consolidated loan.pl':_109892).
 3603
 3604
 3605:- dynamic actions/1.
 3606:- multifile actions/1. 3607
 3608% dB(/.../(lps_user_examples, 'consolidated loan.pl'), lps_visualization(_31014{groups:[], items:[]}, [])).
 3609% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'contagion2.pl')).
 3610% run_lps_corner_file1(/.../(lps_user_examples, 'contagion2.pl')).
 3611% /pack/logicmoo_ec/test/lps_user_examples/contagion2.pl:1
 3612% push_lps_dialect.
 3613% ops.
 3614% [ti=user, load= /.../(lps_user_examples, 'contagion2.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'contagion2.pl'), lps= /.../(lps_user_examples, 'contagion2.pl'), using= /.../(lps_user_examples, 'contagion2.pl')].
 3615% continue_lps_dialect.
 3616% ops.
 3617% /pack/logicmoo_ec/test/lps_user_examples/contagion2.pl:3
 3618% pop_lps_dialect('$BLOB'("<stream>(0x562ef4162500)"),  (/.../(lps_user_examples, 'contagion2.pl')-> /.../(lps_user_examples, 'contagion2.pl'))).
 3619% ops.
 3620% :-listing('/pack/logicmoo_ec/test/lps_user_examples/contagion2.pl':_73344).
 3621
 3622
 3623:- dynamic actions/1. 3624:- multifile actions/1. 3625
 3626% dB(/.../(lps_user_examples, 'contagion2.pl'), lps_visualization(_31008{groups:[], items:[]}, [])).
 3627% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'contagionlps.pl')).
 3628% run_lps_corner_file1(/.../(lps_user_examples, 'contagionlps.pl')).
 3629% /pack/logicmoo_ec/test/lps_user_examples/contagionlps.pl:1
 3630% push_lps_dialect.
 3631% ops.
 3632% [ti=user, load= /.../(lps_user_examples, 'contagionlps.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'contagionlps.pl'), lps= /.../(lps_user_examples, 'contagionlps.pl'), using= /.../(lps_user_examples, 'contagionlps.pl')].
 3633% continue_lps_dialect.
 3634% ops.
 3635
 3636% LPS:  fluents((contaminated/3,infected/3,met/3)).
 3637% Into: fluents([contaminated(_20026,_20028,_20030),infected(_20040,_20042,_20044),met(_20054,_20056,_20058)]).
 3638
 3639% LPS:  events((tested(_19966,_19968,_19970),meets(_19966,_20040,_19970))).
 3640% Into: events([tested(_19966,_19968,_19970),meets(_19966,_20040,_19970)]).
 3641
 3642% LPS:  if(initiates(tested(_21186,positive,_21190),contaminated(_21186,_21260,_21262)),(two_week_after(_21190,_21262),five_days_before(_21260,_21190))).
 3643% Into: initiated(happens(tested(_21186,positive,_21190),_22640,_22646),contaminated(_21186,_21260,_21262),[two_week_after(_21190,_21262),five_days_before(_21260,_21190)]).
 3644
 3645% LPS:  if(initiates(meets(_23392,_23394,_23396),contaminated(_23394,_23466,_23468)),(at(contamination(_23392,[],_23644,(_23608,_23610)),_23668),within(_23608,_23396,_23610),five_days_after(_23608,_23466),two_week_after(_23608,_23468))).
 3646% Into: initiated(happens(meets(_23392,_23394,_23396),_25254,_25260),contaminated(_23394,_23466,_23468),[holds(contamination(_23392,[],_23644,(_23608,_23610)),_23668),within(_23608,_23396,_23610),five_days_after(_23608,_23466),two_week_after(_23608,_23468)]).
 3647
 3648% LPS:  initiates(meets(_26622,_26624,_26626),met(_26622,_26624,_26626)).
 3649% Into: initiated(happens(meets(_26622,_26624,_26626),_27846,_27852),met(_26622,_26624,_26626),[]).
 3650
 3651% LPS:  initiates(meets(_27802,_27804,_27806),met(_27804,_27802,_27806)).
 3652% Into: initiated(happens(meets(_27802,_27804,_27806),_29026,_29032),met(_27804,_27802,_27806),[]).
 3653
 3654% LPS:  if(contamination(_29054,_29056,_29056,(_29022,_29024)),contaminated(_29054,_29022,_29024)).
 3655% Into: l_int(holds(contamination(_29054,_29056,_29056,(_29022,_29024)),_30210),[holds(contaminated(_29054,_29022,_29024),_30210)]).
 3656
 3657% LPS:  if(contamination(_30778,_30780,_30782,(_30746,_30748)),(met(_30778,_30854,_30856),not(member(_30854,_30780)),contamination(_30854,[_30854|_30780],_30782,(_31078,_31080)),within(_31078,_30856,_31080),five_days_after(_30856,_30746),two_week_after(_30856,_30748))).
 3658% Into: l_int(holds(contamination(_30778,_30780,_30782,(_30746,_30748)),_32680),[holds(met(_30778,_30854,_30856),_32680),not(member(_30854,_30780)),holds(contamination(_30854,[_30854|_30780],_30782,(_31078,_31080)),_32680),within(_31078,_30856,_31080),five_days_after(_30856,_30746),two_week_after(_30856,_30748)]).
 3659
 3660% LPS:  observe(from(meets(gertrude,alice,date(2020,3,15,0,0,0,0,'UTC',-)),to(2,3))).
 3661% Into: observe([meets(gertrude,alice,date(2020,3,15,0,0,0,0,'UTC',-))],3).
 3662
 3663% LPS:  observe(from(tested(alice,positive,date(2020,3,14,0,0,0,0,'UTC',-)),to(4,5))).
 3664% Into: observe([tested(alice,positive,date(2020,3,14,0,0,0,0,'UTC',-))],5).
 3665% /pack/logicmoo_ec/test/lps_user_examples/contagionlps.pl:107
 3666% pop_lps_dialect('$BLOB'("<stream>(0x562ef4161000)"),  (/.../(lps_user_examples, 'contagionlps.pl')-> /.../(lps_user_examples, 'contagionlps.pl'))).
 3667% ops.
 3668% :-listing('/pack/logicmoo_ec/test/lps_user_examples/contagionlps.pl':_60844).
 3669
 3670
 3671initiated(happens(tested(A, positive, B), _, _), contaminated(A, C, D), [two_week_after(B, D), five_days_before(C, B)]).
 3672initiated(happens(meets(A, B, C), _, _), contaminated(B, D, E), [holds(contamination(A, [], _,  (F, G)), _), within(F, C, G), five_days_after(F, D), two_week_after(F, E)]).
 3673initiated(happens(meets(A, B, C), _, _), met(A, B, C), []).
 3674initiated(happens(meets(A, B, C), _, _), met(B, A, C), []).
 3675
 3676fluents([contaminated(_, _, _), infected(_, _, _), met(_, _, _)]).
 3677
 3678l_int(holds(contamination(A, B, B,  (C, D)), E), [holds(contaminated(A, C, D), E)]).
 3679l_int(holds(contamination(A, B, C,  (D, E)), F), [holds(met(A, G, H), F), not(member(G, B)), holds(contamination(G, [G|B], C,  (I, J)), F), within(I, H, J), five_days_after(H, D), two_week_after(H, E)]).
 3680
 3681two_week_after(date(Y, M, D, H, Mn, S, Off, TZ, DST), Date2) :-
 3682    nonvar(D),
 3683    NewD is D+15,
 3684    date_time_stamp(date(Y,
 3685                         M,
 3686                         NewD,
 3687                         H,
 3688                         Mn,
 3689                         S,
 3690                         Off,
 3691                         TZ,
 3692                         DST),
 3693                    Stamp),
 3694    stamp_date_time(Stamp, Date2, 0).
 3695two_week_after(Date2, date(Y, M, D, H, Mn, S, Off, TZ, DST)) :-
 3696    nonvar(D),
 3697    NewD is D+ -15,
 3698    date_time_stamp(date(Y,
 3699                         M,
 3700                         NewD,
 3701                         H,
 3702                         Mn,
 3703                         S,
 3704                         Off,
 3705                         TZ,
 3706                         DST),
 3707                    Stamp),
 3708    stamp_date_time(Stamp, Date2, 0).
 3709
 3710within(Date1, T, Date2) :-
 3711    nonvar(Date1),
 3712    nonvar(Date2),
 3713    nonvar(T),
 3714    date_time_stamp(Date1, Stamp1),
 3715    date_time_stamp(Date2, Stamp2),
 3716    date_time_stamp(T, Stamp3),
 3717    Stamp1=<Stamp3,
 3718    Stamp3=<Stamp2.
 3719
 3720maxtime(20).
 3721
 3722five_days_before(date(Y, M, D, H, Mn, S, Off, TZ, DST), Date2) :-
 3723    nonvar(D),
 3724    NewD is D+5,
 3725    date_time_stamp(date(Y,
 3726                         M,
 3727                         NewD,
 3728                         H,
 3729                         Mn,
 3730                         S,
 3731                         Off,
 3732                         TZ,
 3733                         DST),
 3734                    Stamp),
 3735    stamp_date_time(Stamp, Date2, 0).
 3736five_days_before(Date2, date(Y, M, D, H, Mn, S, Off, TZ, DST)) :-
 3737    nonvar(D),
 3738    NewD is D+ -5,
 3739    date_time_stamp(date(Y,
 3740                         M,
 3741                         NewD,
 3742                         H,
 3743                         Mn,
 3744                         S,
 3745                         Off,
 3746                         TZ,
 3747                         DST),
 3748                    Stamp),
 3749    stamp_date_time(Stamp, Date2, 0).
 3750
 3751:- dynamic actions/1. 3752:- multifile actions/1. 3753
 3754
 3755five_days_after(date(Y, M, D, H, Mn, S, Off, TZ, DST), Date2) :-
 3756    nonvar(D),
 3757    NewD is D+5,
 3758    date_time_stamp(date(Y,
 3759                         M,
 3760                         NewD,
 3761                         H,
 3762                         Mn,
 3763                         S,
 3764                         Off,
 3765                         TZ,
 3766                         DST),
 3767                    Stamp),
 3768    stamp_date_time(Stamp, Date2, 0).
 3769five_days_after(Date2, date(Y, M, D, H, Mn, S, Off, TZ, DST)) :-
 3770    nonvar(D),
 3771    NewD is D+ -5,
 3772    date_time_stamp(date(Y,
 3773                         M,
 3774                         NewD,
 3775                         H,
 3776                         Mn,
 3777                         S,
 3778                         Off,
 3779                         TZ,
 3780                         DST),
 3781                    Stamp),
 3782    stamp_date_time(Stamp, Date2, 0).
 3783
 3784events([tested(A, _, B), meets(A, _, B)]).
 3785
 3786observe([meets(gertrude, alice, date(2020, 3, 15, 0, 0, 0, 0, 'UTC', -))], 3).
 3787observe([tested(alice, positive, date(2020, 3, 14, 0, 0, 0, 0, 'UTC', -))], 5).
 3788% dB(/.../(lps_user_examples, 'contagionlps.pl'), lps_visualization(_70552{groups:[_69738{content:"Events", id:"event", order:1}, _69812{content:"contaminated(A,B,C)", id:"contaminated/3", order:3, subgroupStack:"false"}, _69890{content:"met(A,B,C)", id:"met/3", order:3, subgroupStack:"false"}], items:[_70016{content:"alice,date(2020,3,9,0,0,0.0,0,-,-),date(2020,3,29,0,0,0.0,0,-,-)", end:21, group:"contaminated/3", id:0, start:5, subgroup:"alice", title:"Fluent contaminated(alice,date(2020,3,9,0,0,0.0,0,-,-),date(2020,3,29,0,0,0.0,0,-,-)) initiated at 5<br/>and terminated at transition to 21"}, _70142{content:"alice,gertrude,date(2020,3,15,0,0,0,0,UTC,-)", end:21, group:"met/3", id:1, start:3, subgroup:"alice", title:"Fluent met(alice,gertrude,date(2020,3,15,0,0,0,0,UTC,-)) initiated at 3<br/>and terminated at transition to 21"}, _70268{content:"gertrude,alice,date(2020,3,15,0,0,0,0,UTC,-)", end:21, group:"met/3", id:2, start:3, subgroup:"gertrude", title:"Fluent met(gertrude,alice,date(2020,3,15,0,0,0,0,UTC,-)) initiated at 3<br/>and terminated at transition to 21"}, _70394{content:"meets(gertrude,alice,date(2020,3,15,0,0,0,0,UTC,-))", group:"event", id:3, start:3, style:"color:#E19735", title:"happens(meets(gertrude,alice,date(2020,3,15,0,0,0,0,UTC,-)),2,3)", type:"point"}, _70520{content:"tested(alice,positive,date(2020,3,14,0,0,0,0,UTC,-))", group:"event", id:4, start:5, style:"color:#E19735", title:"happens(tested(alice,positive,date(2020,3,14,0,0,0,0,UTC,-)),4,5)", type:"point"}]}, [])).
 3789% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'contagionnet.pl')).
 3790% run_lps_corner_file1(/.../(lps_user_examples, 'contagionnet.pl')).
 3791% /pack/logicmoo_ec/test/lps_user_examples/contagionnet.pl:1
 3792% push_lps_dialect.
 3793% ops.
 3794% [ti=user, load= /.../(lps_user_examples, 'contagionnet.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'contagionnet.pl'), lps= /.../(lps_user_examples, 'contagionnet.pl'), using= /.../(lps_user_examples, 'contagionnet.pl')].
 3795% continue_lps_dialect.
 3796% ops.
 3797% /pack/logicmoo_ec/test/lps_user_examples/contagionnet.pl:85
 3798% pop_lps_dialect('$BLOB'("<stream>(0x562ef5a59a00)"),  (/.../(lps_user_examples, 'contagionnet.pl')-> /.../(lps_user_examples, 'contagionnet.pl'))).
 3799% ops.
 3800% :-listing('/pack/logicmoo_ec/test/lps_user_examples/contagionnet.pl':_42318).
 3801
 3802
 3803two_week_after(date(Y, M, D, H, Mn, S, Off, TZ, DST), Date2) :-
 3804    nonvar(D),
 3805    NewD is D+15,
 3806    date_time_stamp(date(Y,
 3807                         M,
 3808                         NewD,
 3809                         H,
 3810                         Mn,
 3811                         S,
 3812                         Off,
 3813                         TZ,
 3814                         DST),
 3815                    Stamp),
 3816    stamp_date_time(Stamp, Date2, 0).
 3817two_week_after(Date2, date(Y, M, D, H, Mn, S, Off, TZ, DST)) :-
 3818    nonvar(D),
 3819    NewD is D+ -15,
 3820    date_time_stamp(date(Y,
 3821                         M,
 3822                         NewD,
 3823                         H,
 3824                         Mn,
 3825                         S,
 3826                         Off,
 3827                         TZ,
 3828                         DST),
 3829                    Stamp),
 3830    stamp_date_time(Stamp, Date2, 0).
 3831
 3832within(Date1, T, Date2) :-
 3833    nonvar(Date1),
 3834    nonvar(Date2),
 3835    nonvar(T),
 3836    date_time_stamp(Date1, Stamp1),
 3837    date_time_stamp(Date2, Stamp2),
 3838    date_time_stamp(T, Stamp3),
 3839    Stamp1=<Stamp3,
 3840    Stamp3=<Stamp2.
 3841
 3842five_days_before(date(Y, M, D, H, Mn, S, Off, TZ, DST), Date2) :-
 3843    nonvar(D),
 3844    NewD is D+5,
 3845    date_time_stamp(date(Y,
 3846                         M,
 3847                         NewD,
 3848                         H,
 3849                         Mn,
 3850                         S,
 3851                         Off,
 3852                         TZ,
 3853                         DST),
 3854                    Stamp),
 3855    stamp_date_time(Stamp, Date2, 0).
 3856five_days_before(Date2, date(Y, M, D, H, Mn, S, Off, TZ, DST)) :-
 3857    nonvar(D),
 3858    NewD is D+ -5,
 3859    date_time_stamp(date(Y,
 3860                         M,
 3861                         NewD,
 3862                         H,
 3863                         Mn,
 3864                         S,
 3865                         Off,
 3866                         TZ,
 3867                         DST),
 3868                    Stamp),
 3869    stamp_date_time(Stamp, Date2, 0).
 3870
 3871:- dynamic actions/1. 3872:- multifile actions/1. 3873
 3874
 3875met(A, B, T) :-
 3876    (   observe(meets(A, B), T)
 3877    ;   observe(meets(B, A), T)
 3878    ).
 3879
 3880observe(meets(alice, bob), date(2020, 3, 1, 0, 0, 0, 0, 'UTC', -)).
 3881observe(meets(bob, charlie), date(2020, 3, 6, 0, 0, 0, 0, 'UTC', -)).
 3882observe(meets(bob, delilah), date(2020, 3, 6, 0, 0, 0, 0, 'UTC', -)).
 3883observe(meets(delilah, edgar), date(2020, 3, 12, 0, 0, 0, 0, 'UTC', -)).
 3884observe(meets(delilah, fiona), date(2020, 3, 12, 0, 0, 0, 0, 'UTC', -)).
 3885observe(meets(delilah, gertrude), date(2020, 3, 12, 0, 0, 0, 0, 'UTC', -)).
 3886observe(meets(iona, edgar), date(2020, 3, 12, 0, 0, 0, 0, 'UTC', -)).
 3887observe(meets(iona, fiona), date(2020, 3, 12, 0, 0, 0, 0, 'UTC', -)).
 3888observe(meets(iona, gertrude), date(2020, 3, 12, 0, 0, 0, 0, 'UTC', -)).
 3889observe(meets(edgar, hannah), date(2020, 3, 14, 0, 0, 0, 0, 'UTC', -)).
 3890observe(meets(fiona, hannah), date(2020, 3, 14, 0, 0, 0, 0, 'UTC', -)).
 3891observe(meets(gertrude, hannah), date(2020, 3, 14, 0, 0, 0, 0, 'UTC', -)).
 3892observe(meets(edgar, iona), date(2020, 3, 14, 0, 0, 0, 0, 'UTC', -)).
 3893observe(meets(fiona, iona), date(2020, 3, 14, 0, 0, 0, 0, 'UTC', -)).
 3894observe(meets(gertrude, iona), date(2020, 3, 14, 0, 0, 0, 0, 'UTC', -)).
 3895observe(tested(alice, positive), date(2020, 3, 15, 0, 0, 0, 0, 'UTC', -)).
 3896
 3897contaminated(A, Path, Path,  (T1, T2)) :-
 3898    observe(tested(A, positive), Date),
 3899    five_days_before(T1, Date),
 3900    two_week_after(Date, T2).
 3901contaminated(A, Path, FPath,  (Tm, T2)) :-
 3902    met(A, B, Tm),
 3903    not(member(B, Path)),
 3904    contaminated(B,
 3905                 [B|Path],
 3906                 FPath,
 3907                 (TB1, TB2)),
 3908    within(TB1, Tm, TB2),
 3909    two_week_after(Tm, T2).
 3910% dB(/.../(lps_user_examples, 'contagionnet.pl'), lps_visualization(_53084{groups:[], items:[]}, [])).
 3911% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'contagion.pl')).
 3912% run_lps_corner_file1(/.../(lps_user_examples, 'contagion.pl')).
 3913% /pack/logicmoo_ec/test/lps_user_examples/contagion.pl:1
 3914% push_lps_dialect.
 3915% ops.
 3916% [ti=user, load= /.../(lps_user_examples, 'contagion.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'contagion.pl'), lps= /.../(lps_user_examples, 'contagion.pl'), using= /.../(lps_user_examples, 'contagion.pl')].
 3917% continue_lps_dialect.
 3918% ops.
 3919% /pack/logicmoo_ec/test/lps_user_examples/contagion.pl:3
 3920% pop_lps_dialect('$BLOB'("<stream>(0x562ef5a57300)"),  (/.../(lps_user_examples, 'contagion.pl')-> /.../(lps_user_examples, 'contagion.pl'))).
 3921% ops.
 3922% :-listing('/pack/logicmoo_ec/test/lps_user_examples/contagion.pl':_95400).
 3923
 3924
 3925:- dynamic actions/1. 3926:- multifile actions/1. 3927
 3928% dB(/.../(lps_user_examples, 'contagion.pl'), lps_visualization(_31114{groups:[], items:[]}, [])).
 3929% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'contrato116.pl')).
 3930% run_lps_corner_file1(/.../(lps_user_examples, 'contrato116.pl')).
 3931% /pack/logicmoo_ec/test/lps_user_examples/contrato116.pl:1
 3932% push_lps_dialect.
 3933% ops.
 3934% [ti=user, load= /.../(lps_user_examples, 'contrato116.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'contrato116.pl'), lps= /.../(lps_user_examples, 'contrato116.pl'), using= /.../(lps_user_examples, 'contrato116.pl')].
 3935% continue_lps_dialect.
 3936% ops.
 3937
 3938% LPS:  actions((dragar(_19502,_19504,_19506),botar(_19502,_19504,_19562),pagar(_19504),paralizar(_19618),modificar(_19646))).
 3939% Into: actions([dragar(_19502,_19504,_19506),botar(_19502,_19504,_19562),pagar(_19504),paralizar(_19618),modificar(_19646)]).
 3940
 3941% LPS:  events(validar(_20210,_20212,_20214)).
 3942% Into: events([validar(_20210,_20212,_20214)]).
 3943
 3944% LPS:  fluents((obra_paralizada,especificacion(_21406),cuenta_camion(_21446),por_pagar(_21486),validado(_21446,_21556,_21558))).
 3945% Into: fluents([obra_paralizada,especificacion(_21406),cuenta_camion(_21446),por_pagar(_21486),validado(_21446,_21556,_21558)]).
 3946
 3947% LPS:  if(from(excavar(_22832,_22834,_22836),to(_22872,_22874)),(at(especificacion(_22972),_22872),at(cuenta_camion(_22832),_22872),conforme_a(_22972,_22834,_22836),capacidad(_22832,_22834),from(dragar(_22832,_22834,_22836),to(_22872,_22874)))).
 3948% Into: l_events(happens(excavar(_22832,_22834,_22836),_22872,_22874),[holds(especificacion(_22972),_22872),holds(cuenta_camion(_22832),_22872),conforme_a(_22972,_22834,_22836),capacidad(_22832,_22834),happens(dragar(_22832,_22834,_22836),_22872,_22874)]).
 3949
 3950% LPS:  then(if((at(not(obra_paralizada),_30204),at(not(fecha_tope(_30204)),_30204))),from(excavar(_30466,_30468,_30470),to(_30204,_30508))).
 3951% Into: reactive_rule([holds(not(obra_paralizada),_30204),holds(not(fecha_tope(_30204)),_30204)],[happens(excavar(_30466,_30468,_30470),_30204,_30508)]).
 3952
 3953% LPS:  then(if(from(dragar(_31740,_31742,aqui),to(_31780,_31782))),from(botar(_31740,_31742,alli),to(_31782,_31974))).
 3954% Into: reactive_rule([happens(dragar(_31740,_31742,aqui),_31780,_31782)],[happens(botar(_31740,_31742,alli),_31782,_31974)]).
 3955
 3956% LPS:  if(updates(dragar(_33188,_33190,_33192),in(to(_33188,_33230),cuenta_camion(_33188))),_33230 is _33188+1).
 3957% Into: updated(happens(dragar(_33188,_33190,_33192),_34716,_34722),cuenta_camion(_33188),_33188-_33230,[_33230 is _33188+1]).
 3958
 3959% LPS:  if(updates(botar(_34986,_34988,_34990),in(to(_35026,_35028),por_pagar(_35026))),(validado(_34986,_34988,_34990),_35028 is _35026+_34988)).
 3960% Into: updated(happens(botar(_34986,_34988,_34990),_36644,_36650),por_pagar(_35026),_35026-_35028,[holds(validado(_34986,_34988,_34990),_36644),_35028 is _35026+_34988]).
 3961
 3962% LPS:  if(initiates(validar(_36978,_36980,_36982),validado(_36978,_36980,_36982)),cuenta_camion(_36978)).
 3963% Into: initiated(happens(validar(_36978,_36980,_36982),_38302,_38308),validado(_36978,_36980,_36982),[holds(cuenta_camion(_36978),_38302)]).
 3964
 3965% LPS:  initially((especificacion(vacia),cuenta_camion(1),por_pagar(0))).
 3966% Into: initial_state([especificacion(vacia),cuenta_camion(1),por_pagar(0)]).
 3967
 3968% LPS:  observe(from(validar(_39438,10,alli),to(1,2))).
 3969% Into: observe([validar(_39438,10,alli)],2).
 3970
 3971% LPS:  observe(from(validar(_40608,10,alli),to(2,3))).
 3972% Into: observe([validar(_40608,10,alli)],3).
 3973
 3974% LPS:  observe(from(validar(_41778,10,alli),to(3,4))).
 3975% Into: observe([validar(_41778,10,alli)],4).
 3976
 3977% LPS:  observe(from(validar(_42948,10,alli),to(4,5))).
 3978% Into: observe([validar(_42948,10,alli)],5).
 3979
 3980% LPS:  observe(from(validar(_44118,10,alli),to(6,7))).
 3981% Into: observe([validar(_44118,10,alli)],7).
 3982
 3983% LPS:  observe(from(validar(_45288,10,alli),to(7,8))).
 3984% Into: observe([validar(_45288,10,alli)],8).
 3985% /pack/logicmoo_ec/test/lps_user_examples/contrato116.pl:59
 3986% pop_lps_dialect('$BLOB'("<stream>(0x562ef3ca4f00)"),  (/.../(lps_user_examples, 'contrato116.pl')-> /.../(lps_user_examples, 'contrato116.pl'))).
 3987% ops.
 3988% :-listing('/pack/logicmoo_ec/test/lps_user_examples/contrato116.pl':_54024).
 3989
 3990
 3991initiated(happens(validar(A, B, C), D, _), validado(A, B, C), [holds(cuenta_camion(A), D)]).
 3992
 3993fluents([obra_paralizada, especificacion(_), cuenta_camion(A), por_pagar(_), validado(A, _, _)]).
 3994
 3995capacidad(_, 10).
 3996
 3997reactive_rule([holds(not(obra_paralizada), A), holds(not(fecha_tope(A)), A)], [happens(excavar(_, _, _), A, _)]).
 3998reactive_rule([happens(dragar(A, B, aqui), _, C)], [happens(botar(A, B, alli), C, _)]).
 3999
 4000initial_state([especificacion(vacia), cuenta_camion(1), por_pagar(0)]).
 4001
 4002l_events(happens(excavar(A, B, C), D, E), [holds(especificacion(F), D), holds(cuenta_camion(A), D), conforme_a(F, B, C), capacidad(A, B), happens(dragar(A, B, C), D, E)]).
 4003
 4004:- dynamic actions/1. 4005:- multifile actions/1. 4006
 4007actions([dragar(A, B, _), botar(A, B, _), pagar(B), paralizar(_), modificar(_)]).
 4008
 4009conforme_a(_, _, _).
 4010
 4011events([validar(_, _, _)]).
 4012
 4013fecha_tope(8).
 4014
 4015updated(happens(dragar(A, _, _), _, _), cuenta_camion(A), A-B, [B is A+1]).
 4016updated(happens(botar(A, B, C), D, _), por_pagar(E), E-F, [holds(validado(A, B, C), D), F is E+B]).
 4017
 4018maxTime(10).
 4019
 4020observe([validar(_, 10, alli)], 2).
 4021observe([validar(_, 10, alli)], 3).
 4022observe([validar(_, 10, alli)], 4).
 4023observe([validar(_, 10, alli)], 5).
 4024observe([validar(_, 10, alli)], 7).
 4025observe([validar(_, 10, alli)], 8).
 4026% dB(/.../(lps_user_examples, 'contrato116.pl'), lps_visualization(_157238{groups:[_151292{content:"Events", id:"event", order:1}, _151366{content:"cuenta_camion(A)", id:"cuenta_camion/1", order:3, subgroupStack:"false"}, _151444{content:"especificacion(A)", id:"especificacion/1", order:3, subgroupStack:"false"}, _151522{content:"por_pagar(A)", id:"por_pagar/1", order:3, subgroupStack:"false"}, _151600{content:"validado(A,B,C)", id:"validado/3", order:3, subgroupStack:"false"}, _151666{content:"Actions", id:"action", order:4}], items:[_151788{content:"1", end:2, group:"cuenta_camion/1", id:0, start:1, subgroup:"1", title:"Fluent cuenta_camion(1) initiated at 1<br/>and terminated at transition to 2"}, _151914{content:"2", end:3, group:"cuenta_camion/1", id:1, start:2, subgroup:"2", title:"Fluent cuenta_camion(2) initiated at 2<br/>and terminated at transition to 3"}, _152040{content:"3", end:4, group:"cuenta_camion/1", id:2, start:3, subgroup:"3", title:"Fluent cuenta_camion(3) initiated at 3<br/>and terminated at transition to 4"}, _152166{content:"4", end:5, group:"cuenta_camion/1", id:3, start:4, subgroup:"4", title:"Fluent cuenta_camion(4) initiated at 4<br/>and terminated at transition to 5"}, _152292{content:"5", end:6, group:"cuenta_camion/1", id:4, start:5, subgroup:"5", title:"Fluent cuenta_camion(5) initiated at 5<br/>and terminated at transition to 6"}, _152418{content:"6", end:7, group:"cuenta_camion/1", id:5, start:6, subgroup:"6", title:"Fluent cuenta_camion(6) initiated at 6<br/>and terminated at transition to 7"}, _152544{content:"7", end:8, group:"cuenta_camion/1", id:6, start:7, subgroup:"7", title:"Fluent cuenta_camion(7) initiated at 7<br/>and terminated at transition to 8"}, _152670{content:"8", end:10, group:"cuenta_camion/1", id:7, start:8, subgroup:"8", title:"Fluent cuenta_camion(8) initiated at 8<br/>and terminated at transition to 10"}, _152796{content:"9", end:11, group:"cuenta_camion/1", id:8, start:10, subgroup:"9", title:"Fluent cuenta_camion(9) initiated at 10<br/>and terminated at transition to 11"}, _152922{content:"vacia", end:11, group:"especificacion/1", id:9, start:1, subgroup:"vacia", title:"Fluent especificacion(vacia) initiated at 1<br/>and terminated at transition to 11"}, _153048{content:"0", end:3, group:"por_pagar/1", id:10, start:1, subgroup:"0", title:"Fluent por_pagar(0) initiated at 1<br/>and terminated at transition to 3"}, _153174{content:"10", end:4, group:"por_pagar/1", id:11, start:3, subgroup:"10", title:"Fluent por_pagar(10) initiated at 3<br/>and terminated at transition to 4"}, _153300{content:"20", end:5, group:"por_pagar/1", id:12, start:4, subgroup:"20", title:"Fluent por_pagar(20) initiated at 4<br/>and terminated at transition to 5"}, _153426{content:"30", end:6, group:"por_pagar/1", id:13, start:5, subgroup:"30", title:"Fluent por_pagar(30) initiated at 5<br/>and terminated at transition to 6"}, _153552{content:"40", end:8, group:"por_pagar/1", id:14, start:6, subgroup:"40", title:"Fluent por_pagar(40) initiated at 6<br/>and terminated at transition to 8"}, _153678{content:"50", end:9, group:"por_pagar/1", id:15, start:8, subgroup:"50", title:"Fluent por_pagar(50) initiated at 8<br/>and terminated at transition to 9"}, _153804{content:"60", end:11, group:"por_pagar/1", id:16, start:9, subgroup:"60", title:"Fluent por_pagar(60) initiated at 9<br/>and terminated at transition to 11"}, _153930{content:"1,10,alli", end:11, group:"validado/3", id:17, start:2, subgroup:"1", title:"Fluent validado(1,10,alli) initiated at 2<br/>and terminated at transition to 11"}, _154056{content:"2,10,alli", end:11, group:"validado/3", id:18, start:3, subgroup:"2", title:"Fluent validado(2,10,alli) initiated at 3<br/>and terminated at transition to 11"}, _154182{content:"3,10,alli", end:11, group:"validado/3", id:19, start:4, subgroup:"3", title:"Fluent validado(3,10,alli) initiated at 4<br/>and terminated at transition to 11"}, _154308{content:"4,10,alli", end:11, group:"validado/3", id:20, start:5, subgroup:"4", title:"Fluent validado(4,10,alli) initiated at 5<br/>and terminated at transition to 11"}, _154434{content:"6,10,alli", end:11, group:"validado/3", id:21, start:7, subgroup:"6", title:"Fluent validado(6,10,alli) initiated at 7<br/>and terminated at transition to 11"}, _154560{content:"7,10,alli", end:11, group:"validado/3", id:22, start:8, subgroup:"7", title:"Fluent validado(7,10,alli) initiated at 8<br/>and terminated at transition to 11"}, _154686{content:"validar(A,10,alli)", group:"event", id:23, start:2, style:"color:#E19735", title:"happens(validar(A,10,alli),1,2)", type:"point"}, _154812{content:"dragar(1,10,B)", group:"action", id:24, start:2, style:"color:green", title:"happens(dragar(1,10,B),1,2)", type:"point"}, _154938{content:"validar(A,10,alli)", group:"event", id:25, start:3, style:"color:#E19735", title:"happens(validar(A,10,alli),2,3)", type:"point"}, _155064{content:"dragar(2,10,B)", group:"action", id:26, start:3, style:"color:green", title:"happens(dragar(2,10,B),2,3)", type:"point"}, _155190{content:"botar(1,10,alli)", group:"action", id:27, start:3, style:"color:green", title:"happens(botar(1,10,alli),2,3)", type:"point"}, _155316{content:"validar(A,10,alli)", group:"event", id:28, start:4, style:"color:#E19735", title:"happens(validar(A,10,alli),3,4)", type:"point"}, _155442{content:"botar(2,10,alli)", group:"action", id:29, start:4, style:"color:green", title:"happens(botar(2,10,alli),3,4)", type:"point"}, _155568{content:"dragar(3,10,B)", group:"action", id:30, start:4, style:"color:green", title:"happens(dragar(3,10,B),3,4)", type:"point"}, _155694{content:"validar(A,10,alli)", group:"event", id:31, start:5, style:"color:#E19735", title:"happens(validar(A,10,alli),4,5)", type:"point"}, _155820{content:"dragar(4,10,B)", group:"action", id:32, start:5, style:"color:green", title:"happens(dragar(4,10,B),4,5)", type:"point"}, _155946{content:"botar(3,10,alli)", group:"action", id:33, start:5, style:"color:green", title:"happens(botar(3,10,alli),4,5)", type:"point"}, _156072{content:"botar(4,10,alli)", group:"action", id:34, start:6, style:"color:green", title:"happens(botar(4,10,alli),5,6)", type:"point"}, _156198{content:"dragar(5,10,A)", group:"action", id:35, start:6, style:"color:green", title:"happens(dragar(5,10,A),5,6)", type:"point"}, _156324{content:"validar(A,10,alli)", group:"event", id:36, start:7, style:"color:#E19735", title:"happens(validar(A,10,alli),6,7)", type:"point"}, _156450{content:"dragar(6,10,B)", group:"action", id:37, start:7, style:"color:green", title:"happens(dragar(6,10,B),6,7)", type:"point"}, _156576{content:"botar(5,10,alli)", group:"action", id:38, start:7, style:"color:green", title:"happens(botar(5,10,alli),6,7)", type:"point"}, _156702{content:"validar(A,10,alli)", group:"event", id:39, start:8, style:"color:#E19735", title:"happens(validar(A,10,alli),7,8)", type:"point"}, _156828{content:"botar(6,10,alli)", group:"action", id:40, start:8, style:"color:green", title:"happens(botar(6,10,alli),7,8)", type:"point"}, _156954{content:"dragar(7,10,B)", group:"action", id:41, start:8, style:"color:green", title:"happens(dragar(7,10,B),7,8)", type:"point"}, _157080{content:"botar(7,10,alli)", group:"action", id:42, start:9, style:"color:green", title:"happens(botar(7,10,alli),8,9)", type:"point"}, _157206{content:"dragar(8,10,A)", group:"action", id:43, start:10, style:"color:green", title:"happens(dragar(8,10,A),9,10)", type:"point"}]}, [])).
 4027% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'conveyor belt(1).pl')).
 4028% run_lps_corner_file1(/.../(lps_user_examples, 'conveyor belt(1).pl')).
 4029% /pack/logicmoo_ec/test/lps_user_examples/conveyor belt(1).pl:1
 4030% push_lps_dialect.
 4031% ops.
 4032% [ti=user, load= /.../(lps_user_examples, 'conveyor belt(1).pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'conveyor belt(1).pl'), lps= /.../(lps_user_examples, 'conveyor belt(1).pl'), using= /.../(lps_user_examples, 'conveyor belt(1).pl')].
 4033% continue_lps_dialect.
 4034% ops.
 4035
 4036% LPS:  fluents((normalOperation,started,contents/2,empty/1,location/2)).
 4037% Into: fluents([normalOperation,started,contents(_66506,_66508),empty(_66518),location(_66528,_66530)]).
 4038
 4039% LPS:  initially((normalOperation,contents(bottle,0),contents(container,0),contents(tank1,100),contents(tank2,100),location(bottle,2),location(tank1,2),location(tank2,5),location(container,7))).
 4040% Into: initial_state([normalOperation,contents(bottle,0),contents(container,0),contents(tank1,100),contents(tank2,100),location(bottle,2),location(tank1,2),location(tank2,5),location(container,7)]).
 4041
 4042% LPS:  actions((pour/3,turnConveyor/1,waitCycle)).
 4043% Into: actions([pour(_69440,_69442,_69444),turnConveyor(_69454),waitCycle]).
 4044
 4045% LPS:  from(wait(0),to(_69398,_69398)).
 4046% Into: l_events(happens(wait(0),_69398,_69398),[]).
 4047
 4048% LPS:  if(from(wait(_70472),to(_70508,_70510)),(_70472>0,from(waitCycle,to(_70508,_70686)),_70828 is _70472-1,from(wait(_70828),to(_70686,_70510)))).
 4049% Into: l_events(happens(wait(_70472),_70508,_70510),[_70472>0,happens(waitCycle,_70508,_70686),_70828 is _70472-1,happens(wait(_70828),_70686,_70510)]).
 4050
 4051% LPS:  false((pour(_72968,_72970,_72972),turnConveyor(_73012))).
 4052% Into: d_pre([happens(pour(_72968,_72970,_72972),_74056,_74062),happens(turnConveyor(_73012),_74056,_74062)]).
 4053
 4054% LPS:  false((pour(_74154,_74156,_74158),location(_74154,_74214),location(_74156,_74270),_74214\=_74270)).
 4055% Into: d_pre([happens(pour(_74154,_74156,_74158),_75516,_75522),holds(location(_74154,_74214),_75516),holds(location(_74156,_74270),_75516),_74214\=_74270]).
 4056
 4057% LPS:  if(from(makeLocation(bottle,_75942),_75964),(at(location(bottle,_76046),_75964),at(location(_75942,_76150),_75964),_76282 is _76150-_76046,from(moveConveyor(_76282),_75964))).
 4058% Into: l_events(happens(makeLocation(bottle,_75942),_75964,_77642),[holds(location(bottle,_76046),_75964),holds(location(_75942,_76150),_75964),_76282 is _76150-_76046,happens(moveConveyor(_76282),_75964,_77732)]).
 4059
 4060% LPS:  from(moveConveyor(0),to(_78248,_78248)).
 4061% Into: l_events(happens(moveConveyor(0),_78248,_78248),[]).
 4062
 4063% LPS:  if(from(moveConveyor(_79322),to(_79358,_79360)),(_79322>0,from(turnConveyor(clockwise),to(_79358,_79560)),_79702 is _79322-1,from(moveConveyor(_79702),to(_79560,_79360)))).
 4064% Into: l_events(happens(moveConveyor(_79322),_79358,_79360),[_79322>0,happens(turnConveyor(clockwise),_79358,_79560),_79702 is _79322-1,happens(moveConveyor(_79702),_79560,_79360)]).
 4065
 4066% LPS:  if(moveConveyor(_81770),(_81770<0,turnConveyor(counterClockwise),_81958 is _81770+1,moveConveyor(_81958))).
 4067% Into: l_events(happens(moveConveyor(_81770),_83200,_83206),[_81770<0,happens(turnConveyor(counterClockwise),_83200,_83482),_81958 is _81770+1,happens(moveConveyor(_81958),_83482,_83206)]).
 4068
 4069% LPS:  if(updates(turnConveyor(counterClockwise),in(to(_83790,_83792),location(bottle,_83790))),_83792 is _83790-1).
 4070% Into: updated(happens(turnConveyor(counterClockwise),_85266,_85272),location(bottle,_83790),_83790-_83792,[_83792 is _83790-1]).
 4071
 4072% LPS:  if(updates(turnConveyor(clockwise),in(to(_85544,_85546),location(bottle,_85544))),_85546 is _85544+1).
 4073% Into: updated(happens(turnConveyor(clockwise),_87020,_87026),location(bottle,_85544),_85544-_85546,[_85546 is _85544+1]).
 4074
 4075% LPS:  if(empty(_87262),contents(_87262,0)).
 4076% Into: l_int(holds(empty(_87262),_88346),[holds(contents(_87262,0),_88346)]).
 4077
 4078% LPS:  if(updates(pour(_88392,_88394,_88396),in(to(_88432,_88434),contents(_88394,_88432))),_88434 is _88432+_88396).
 4079% Into: updated(happens(pour(_88392,_88394,_88396),_89952,_89958),contents(_88394,_88432),_88432-_88434,[_88434 is _88432+_88396]).
 4080
 4081% LPS:  if(updates(pour(_89848,_89850,_89852),in(to(_89888,_89890),contents(_89848,_89888))),_89890 is _89888-_89852).
 4082% Into: updated(happens(pour(_89848,_89850,_89852),_91408,_91414),contents(_89848,_89888),_89888-_89890,[_89890 is _89888-_89852]).
 4083
 4084% LPS:  then(if((at(normalOperation,_91342),at(empty(bottle),_91342),at(not(started),_91342))),(initiate(from(started,_91342)),from(makeLocation(bottle,tank1),to(_91342,_91830)),from(pour(tank1,bottle,5),to(_91830,_91998)),from(wait(3),to(_91998,_92134)),from(makeLocation(bottle,tank2),to(_92134,_92286)),from(pour(tank2,bottle,5),to(_92286,_92454)),from(wait(3),to(_92454,_92590)),from(makeLocation(bottle,container),to(_92590,_92742)),from(pour(bottle,container,10),to(_92742,_92910)),from(wait(3),to(_92910,_93046)),from(makeLocation(bottle,tank1),to(_93046,_93198)),terminate(from(started,_93198)))).
 4085% Into: reactive_rule([holds(normalOperation,_91342),holds(empty(bottle),_91342),holds(not(started),_91342)],[happens(initiate(started),_91342,_95518),happens(makeLocation(bottle,tank1),_91342,_91830),happens(pour(tank1,bottle,5),_91830,_91998),happens(wait(3),_91998,_92134),happens(makeLocation(bottle,tank2),_92134,_92286),happens(pour(tank2,bottle,5),_92286,_92454),happens(wait(3),_92454,_92590),happens(makeLocation(bottle,container),_92590,_92742),happens(pour(bottle,container,10),_92742,_92910),happens(wait(3),_92910,_93046),happens(makeLocation(bottle,tank1),_93046,_93198),happens(terminate(started),_93198,_95482)]).
 4086% /pack/logicmoo_ec/test/lps_user_examples/conveyor belt(1).pl:107
 4087% pop_lps_dialect('$BLOB'("<stream>(0x562ef4162e00)"),  (/.../(lps_user_examples, 'conveyor belt(1).pl')-> /.../(lps_user_examples, 'conveyor belt(1).pl'))).
 4088% ops.
 4089% :-listing('/pack/logicmoo_ec/test/lps_user_examples/conveyor belt(1).pl':_30064).
 4090
 4091
 4092d_pre([happens(pour(_, _, _), A, B), happens(turnConveyor(_), A, B)]).
 4093d_pre([happens(pour(A, B, _), C, _), holds(location(A, D), C), holds(location(B, E), C), D\=E]).
 4094
 4095d(location(bottle, Pos), [type:rectangle, fillColor:yellow, from:[X1, 60], to:[X2, 100], strokeColor:blue]) :-
 4096    X1 is 100+Pos*30,
 4097    X2 is 110+Pos*30.
 4098d(timeless, [[type:line, strokeWidth:2, strokeColor:black, from:[100, 60], to:[400, 60]], [type:circle, strokeWidth:2, strokeColor:black, center:[100, 40], radius:20], [type:circle, strokeWidth:2, strokeColor:black, center:[400, 40], radius:20], [type:rectangle, fillColor:white, from:[130, 120], to:[190, 150], strokeColor:blue], [type:rectangle, fillColor:white, from:[210, 120], to:[270, 150], strokeColor:blue], [type:line, strokeWidth:2, strokeColor:black, from:[100, 20], to:[400, 20]]]).
 4099
 4100fluents([normalOperation, started, contents(_, _), empty(_), location(_, _)]).
 4101
 4102l_int(holds(empty(A), B), [holds(contents(A, 0), B)]).
 4103
 4104reactive_rule([holds(normalOperation, A), holds(empty(bottle), A), holds(not(started), A)], [happens(initiate(started), A, _), happens(makeLocation(bottle, tank1), A, B), happens(pour(tank1, bottle, 5), B, C), happens(wait(3), C, D), happens(makeLocation(bottle, tank2), D, E), happens(pour(tank2, bottle, 5), E, F), happens(wait(3), F, G), happens(makeLocation(bottle, container), G, H), happens(pour(bottle, container, 10), H, I), happens(wait(3), I, J), happens(makeLocation(bottle, tank1), J, K), happens(terminate(started), K, _)]).
 4105
 4106initial_state([normalOperation, contents(bottle, 0), contents(container, 0), contents(tank1, 100), contents(tank2, 100), location(bottle, 2), location(tank1, 2), location(tank2, 5), location(container, 7)]).
 4107
 4108l_events(happens(wait(0), A, A), []).
 4109l_events(happens(wait(A), B, C), [A>0, happens(waitCycle, B, D), E is A-1, happens(wait(E), D, C)]).
 4110l_events(happens(makeLocation(bottle, A), B, _), [holds(location(bottle, C), B), holds(location(A, D), B), E is D-C, happens(moveConveyor(E), B, _)]).
 4111l_events(happens(moveConveyor(0), A, A), []).
 4112l_events(happens(moveConveyor(A), B, C), [A>0, happens(turnConveyor(clockwise), B, D), E is A-1, happens(moveConveyor(E), D, C)]).
 4113l_events(happens(moveConveyor(A), B, C), [A<0, happens(turnConveyor(counterClockwise), B, D), E is A+1, happens(moveConveyor(E), D, C)]).
 4114
 4115:- dynamic actions/1. 4116:- multifile actions/1. 4117
 4118actions([pour(_, _, _), turnConveyor(_), waitCycle]).
 4119
 4120updated(happens(turnConveyor(counterClockwise), _, _), location(bottle, A), A-B, [B is A-1]).
 4121updated(happens(turnConveyor(clockwise), _, _), location(bottle, A), A-B, [B is A+1]).
 4122updated(happens(pour(_, A, B), _, _), contents(A, C), C-D, [D is C+B]).
 4123updated(happens(pour(A, _, B), _, _), contents(A, C), C-D, [D is C-B]).
 4124
 4125maxTime(30).
 4126% dB(/.../(lps_user_examples, 'conveyor belt(1).pl'), lps_visualization(_256476{groups:[_240304{content:"contents(A,B)", id:"contents/2", order:3, subgroupStack:"false"}, _240382{content:"location(A,B)", id:"location/2", order:3, subgroupStack:"false"}, _240460{content:"normalOperation", id:"normalOperation/0", order:3, subgroupStack:"false"}, _240538{content:"started", id:"started/0", order:3, subgroupStack:"false"}, _240604{content:"Actions", id:"action", order:4}], items:[_240714{content:"normalOperation", end:31, group:"normalOperation/0", id:0, start:1, title:"Fluent normalOperation initiated at 1<br/>and terminated at transition to 31"}, _240824{content:"started", end:31, group:"started/0", id:1, start:2, title:"Fluent started initiated at 2<br/>and terminated at transition to 31"}, _240946{content:"bottle,0", end:2, group:"contents/2", id:2, start:1, subgroup:"bottle", title:"Fluent contents(bottle,0) initiated at 1<br/>and terminated at transition to 2"}, ...(_268358)]}, _267376{cycles:[[_266964{create:[_266290{from:[100, 60], id:"timeless", strokeColor:"black", strokeWidth:2, to:[400, 60], type:"line"}, _266412{center:[100, 40], id:"timeless", radius:20, strokeColor:"black", strokeWidth:2, type:"circle"}, _266534{center:[400, 40], id:"timeless", radius:20, strokeColor:"black", strokeWidth:2, type:"circle"}, _266668{fillColor:"white", from:[130, 120], id:"timeless", strokeColor:"blue", to:[190, 150], type:"rectangle"}, _266802{fillColor:"white", from:[210, 120], id:"timeless", strokeColor:"blue", to:[270, 150], type:"rectangle"}, _266936{from:[100, 20], id:"timeless", strokeColor:"black", strokeWidth:2, to:[400, 20], type:"line"}]}], [_267128{create:_267100{fillColor:"yellow", from:[160, 60], id:"location(bottle,2)", strokeColor:"blue", to:[170, 100], type:"rectangle"}}], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [_267338{kill:"location(bottle,2)"}, _267368{kill:"timeless"}]]})).
 4127% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'ConveyorBelt2.pl')).
 4128% run_lps_corner_file1(/.../(lps_user_examples, 'ConveyorBelt2.pl')).
 4129% /pack/logicmoo_ec/test/lps_user_examples/ConveyorBelt2.pl:1
 4130% push_lps_dialect.
 4131% ops.
 4132% [ti=user, load= /.../(lps_user_examples, 'ConveyorBelt2.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'ConveyorBelt2.pl'), lps= /.../(lps_user_examples, 'ConveyorBelt2.pl'), using= /.../(lps_user_examples, 'ConveyorBelt2.pl')].
 4133% continue_lps_dialect.
 4134% ops.
 4135
 4136% LPS:  fluents((contents(_68840,_68842),empty/1,location(_68960,_68962))).
 4137% Into: fluents([contents(_68840,_68842),empty(_70196),location(_68960,_68962)]).
 4138
 4139% LPS:  initially((normalOperation,contents(bottle,0),contents(container,0),contents(tank1,200),contents(tank2,200),location(bottle,0),location(tank1,25),location(tank2,65),location(container,100))).
 4140% Into: initial_state([normalOperation,contents(bottle,0),contents(container,0),contents(tank1,200),contents(tank2,200),location(bottle,0),location(tank1,25),location(tank2,65),location(container,100)]).
 4141
 4142% LPS:  actions((pourChunk(_71938,_71940),turnConveyor(_71980))).
 4143% Into: actions([pourChunk(_71938,_71940),turnConveyor(_71980)]).
 4144
 4145% LPS:  if(from(makeLocation(bottle,_73150),to(_73186,_73188)),(at(location(bottle,_73302),_73186),at(location(_73150,_73406),_73186),_73538 is _73406-_73302,from(moveBottle(_73538,_73406),to(_73186,_73188)))).
 4146% Into: l_events(happens(makeLocation(bottle,_73150),_73186,_73188),[holds(location(bottle,_73302),_73186),holds(location(_73150,_73406),_73186),_73538 is _73406-_73302,happens(moveBottle(_73538,_73406),_73186,_73188)]).
 4147
 4148% LPS:  if(from(moveBottle(_75992,_75994),to(_76030,_76030)),(_75992>=0,at(location(bottle,_76210),_76030),_76210>=_75994)).
 4149% Into: l_events(happens(moveBottle(_75992,_75994),_76030,_76030),[_75992>=0,holds(location(bottle,_76210),_76030),_76210>=_75994]).
 4150
 4151% LPS:  if(from(moveBottle(_78136,_78138),to(_78174,_78174)),(_78136<0,at(location(bottle,_78354),_78174),_78354=<_78138)).
 4152% Into: l_events(happens(moveBottle(_78136,_78138),_78174,_78174),[_78136<0,holds(location(bottle,_78354),_78174),_78354=<_78138]).
 4153
 4154% LPS:  if(from(moveBottle(_80280,_80282),to(_80318,_80320)),(_80280>0,at(location(bottle,_80498),_80318),_80498<_80282,from(turnConveyor(clockwise),to(_80318,_80688)),from(moveBottle(_80280,_80282),to(_80688,_80320)))).
 4155% Into: l_events(happens(moveBottle(_80280,_80282),_80318,_80320),[_80280>0,holds(location(bottle,_80498),_80318),_80498<_80282,happens(turnConveyor(clockwise),_80318,_80688),happens(moveBottle(_80280,_80282),_80688,_80320)]).
 4156
 4157% LPS:  if(from(moveBottle(_82878,_82880),to(_82916,_82918)),(_82878<0,at(location(bottle,_83096),_82916),_83096>_82880,from(turnConveyor(counterClockwise),to(_82916,_83286)),from(moveBottle(_82878,_82880),to(_83286,_82918)))).
 4158% Into: l_events(happens(moveBottle(_82878,_82880),_82916,_82918),[_82878<0,holds(location(bottle,_83096),_82916),_83096>_82880,happens(turnConveyor(counterClockwise),_82916,_83286),happens(moveBottle(_82878,_82880),_83286,_82918)]).
 4159
 4160% LPS:  if(updates(turnConveyor(counterClockwise),in(to(_85498,_85500),location(bottle,_85498))),(conveyorSpeed(_85686),_85500 is _85498-_85686)).
 4161% Into: updated(happens(turnConveyor(counterClockwise),_87068,_87074),location(bottle,_85498),_85498-_85500,[conveyorSpeed(_85686),_85500 is _85498-_85686]).
 4162
 4163% LPS:  if(updates(turnConveyor(clockwise),in(to(_87546,_87548),location(bottle,_87546))),(conveyorSpeed(_87734),_87548 is _87546+_87734)).
 4164% Into: updated(happens(turnConveyor(clockwise),_89116,_89122),location(bottle,_87546),_87546-_87548,[conveyorSpeed(_87734),_87548 is _87546+_87734]).
 4165
 4166% LPS:  if(empty(_90922),contents(_90922,0)).
 4167% Into: l_int(holds(empty(_90922),_92006),[holds(contents(_90922,0),_92006)]).
 4168
 4169% LPS:  if(updates(pourChunk(_92038,_92040),in(to(_92076,_92078),contents(_92040,_92076))),(valveRate(_92264),_92078 is _92076+_92264)).
 4170% Into: updated(happens(pourChunk(_92038,_92040),_93662,_93668),contents(_92040,_92076),_92076-_92078,[valveRate(_92264),_92078 is _92076+_92264]).
 4171
 4172% LPS:  if(updates(pourChunk(_93546,_93548),in(to(_93584,_93586),contents(_93546,_93584))),(valveRate(_93772),_93586 is _93584-_93772)).
 4173% Into: updated(happens(pourChunk(_93546,_93548),_95170,_95176),contents(_93546,_93584),_93584-_93586,[valveRate(_93772),_93586 is _93584-_93772]).
 4174
 4175% LPS:  if(from(pour(_96104,_96106,_96108),to(_96144,_96146)),(at(contents(_96104,_96260),_96144),_96392 is _96260-_96108,from(pourUntil(_96104,_96106,_96392),to(_96144,_96146)))).
 4176% Into: l_events(happens(pour(_96104,_96106,_96108),_96144,_96146),[holds(contents(_96104,_96260),_96144),_96392 is _96260-_96108,happens(pourUntil(_96104,_96106,_96392),_96144,_96146)]).
 4177
 4178% LPS:  if(from(pourUntil(_97864,_97866,_97868),to(_97904,_97904)),(at(contents(_97864,_98020),_97904),_98020=<_97868)).
 4179% Into: l_events(happens(pourUntil(_97864,_97866,_97868),_97904,_97904),[holds(contents(_97864,_98020),_97904),_98020=<_97868]).
 4180
 4181% LPS:  if(from(pourUntil(_99308,_99310,_99312),to(_99348,_99350)),(at(contents(_99308,_99464),_99348),_99464>_99312,from(pourChunk(_99308,_99310),to(_99348,_99670)),from(pourUntil(_99308,_99310,_99312),to(_99670,_99350)))).
 4182% Into: l_events(happens(pourUntil(_99308,_99310,_99312),_99348,_99350),[holds(contents(_99308,_99464),_99348),_99464>_99312,happens(pourChunk(_99308,_99310),_99348,_99670),happens(pourUntil(_99308,_99310,_99312),_99670,_99350)]).
 4183
 4184% LPS:  if(from(dump(_101208,_101210),to(_101246,_101248)),(at(contents(_101208,_101362),_101246),from(pour(_101208,_101210,_101362),to(_101246,_101248)))).
 4185% Into: l_events(happens(dump(_101208,_101210),_101246,_101248),[holds(contents(_101208,_101362),_101246),happens(pour(_101208,_101210,_101362),_101246,_101248)]).
 4186
 4187% LPS:  then(if((at(empty(bottle),_102780),at(location(bottle,0),_102780))),(from(makeLocation(bottle,tank1),to(_102780,_103060)),from(pour(tank1,bottle,50),to(_103060,_103228)),from(makeLocation(bottle,tank2),to(_103228,_103380)),from(pour(tank2,bottle,50),to(_103380,_103548)),from(makeLocation(bottle,container),to(_103548,_103700)),from(dump(bottle,container),to(_103700,_103852)),from(makeLocation(bottle,tank1),_103852))).
 4188% Into: reactive_rule([holds(empty(bottle),_102780),holds(location(bottle,0),_102780)],[happens(makeLocation(bottle,tank1),_102780,_103060),happens(pour(tank1,bottle,50),_103060,_103228),happens(makeLocation(bottle,tank2),_103228,_103380),happens(pour(tank2,bottle,50),_103380,_103548),happens(makeLocation(bottle,container),_103548,_103700),happens(dump(bottle,container),_103700,_103852),happens(makeLocation(bottle,tank1),_103852,_105710)]).
 4189
 4190% LPS:  if(at(locatedContents(_105588,_105590,_105592),_105614),(at(location(_105588,_105590),_105614),at(contents(_105588,_105592),_105614))).
 4191% Into: l_int(holds(locatedContents(_105588,_105590,_105592),_105614),[holds(location(_105588,_105590),_105614),holds(contents(_105588,_105592),_105614)]).
 4192% /pack/logicmoo_ec/test/lps_user_examples/ConveyorBelt2.pl:101
 4193% pop_lps_dialect('$BLOB'("<stream>(0x562ef4163d00)"),  (/.../(lps_user_examples, 'ConveyorBelt2.pl')-> /.../(lps_user_examples, 'ConveyorBelt2.pl'))).
 4194% ops.
 4195% :-listing('/pack/logicmoo_ec/test/lps_user_examples/ConveyorBelt2.pl':_31056).
 4196
 4197
 4198d(locatedContents(bottle, Location, Level), [Props, [type:rectangle, fillColor:blue, from:[X1, Y1], to:[X2, Y]]]) :-
 4199    d_(location(bottle, Location), Props),
 4200    member(from:[X1, Y1], Props),
 4201    member(to:[X2, Y2], Props),
 4202    Yrange is Y2-Y1,
 4203    Y is round(Level/100*Yrange+Y1).
 4204d(timeless, [[type:rectangle, from:[0, 0], to:[450, 300]], [type:line, strokeWidth:2, strokeColor:black, from:[Start, 100], to:[End, 100]], [type:circle, strokeWidth:2, strokeColor:black, center:[Start, 80], radius:20], [type:circle, strokeWidth:2, strokeColor:black, center:[End, 80], radius:20], [type:ellipse, fillColor:white, from:[Tank1Left, 200], to:[Tank1Right, 300], strokeColor:blue], [type:ellipse, fillColor:white, from:[Tank2Left, 200], to:[Tank2Right, 300], strokeColor:blue], [type:line, strokeWidth:2, strokeColor:black, from:[Start, 60], to:[End, 60]]]) :-
 4205    locationToPixels(0, Start),
 4206    locationToPixels(100, End),
 4207    locationToPixels(25, Tank1Left),
 4208    Tank1Right is Tank1Left+30,
 4209    locationToPixels(65, Tank2Left),
 4210    Tank2Right is Tank2Left+30.
 4211
 4212locationToPixels(L, P) :-
 4213    P is 25+L*4.
 4214
 4215fluents([contents(_, _), empty(_), location(_, _)]).
 4216
 4217l_int(holds(empty(A), B), [holds(contents(A, 0), B)]).
 4218l_int(holds(locatedContents(A, B, C), D), [holds(location(A, B), D), holds(contents(A, C), D)]).
 4219
 4220valveRate(10).
 4221
 4222reactive_rule([holds(empty(bottle), A), holds(location(bottle, 0), A)], [happens(makeLocation(bottle, tank1), A, B), happens(pour(tank1, bottle, 50), B, C), happens(makeLocation(bottle, tank2), C, D), happens(pour(tank2, bottle, 50), D, E), happens(makeLocation(bottle, container), E, F), happens(dump(bottle, container), F, G), happens(makeLocation(bottle, tank1), G, _)]).
 4223
 4224initial_state([normalOperation, contents(bottle, 0), contents(container, 0), contents(tank1, 200), contents(tank2, 200), location(bottle, 0), location(tank1, 25), location(tank2, 65), location(container, 100)]).
 4225
 4226l_events(happens(makeLocation(bottle, A), B, C), [holds(location(bottle, D), B), holds(location(A, E), B), F is E-D, happens(moveBottle(F, E), B, C)]).
 4227l_events(happens(moveBottle(A, B), C, C), [A>=0, holds(location(bottle, D), C), D>=B]).
 4228l_events(happens(moveBottle(A, B), C, C), [A<0, holds(location(bottle, D), C), D=<B]).
 4229l_events(happens(moveBottle(A, B), C, D), [A>0, holds(location(bottle, E), C), E<B, happens(turnConveyor(clockwise), C, F), happens(moveBottle(A, B), F, D)]).
 4230l_events(happens(moveBottle(A, B), C, D), [A<0, holds(location(bottle, E), C), E>B, happens(turnConveyor(counterClockwise), C, F), happens(moveBottle(A, B), F, D)]).
 4231l_events(happens(pour(A, B, C), D, E), [holds(contents(A, F), D), G is F-C, happens(pourUntil(A, B, G), D, E)]).
 4232l_events(happens(pourUntil(A, _, B), C, C), [holds(contents(A, D), C), D=<B]).
 4233l_events(happens(pourUntil(A, B, C), D, E), [holds(contents(A, F), D), F>C, happens(pourChunk(A, B), D, G), happens(pourUntil(A, B, C), G, E)]).
 4234l_events(happens(dump(A, B), C, D), [holds(contents(A, E), C), happens(pour(A, B, E), C, D)]).
 4235
 4236d_(location(bottle, Pos), [type:rectangle, fillColor:yellow, from:[X1, 100], to:[X2, 150], strokeColor:blue]) :-
 4237    locationToPixels(Pos, X1),
 4238    X2 is X1+10.
 4239
 4240:- dynamic actions/1. 4241:- multifile actions/1. 4242
 4243actions([pourChunk(_, _), turnConveyor(_)]).
 4244
 4245updated(happens(turnConveyor(counterClockwise), _, _), location(bottle, A), A-B, [conveyorSpeed(C), B is A-C]).
 4246updated(happens(turnConveyor(clockwise), _, _), location(bottle, A), A-B, [conveyorSpeed(C), B is A+C]).
 4247updated(happens(pourChunk(_, A), _, _), contents(A, B), B-C, [valveRate(D), C is B+D]).
 4248updated(happens(pourChunk(A, _), _, _), contents(A, B), B-C, [valveRate(D), C is B-D]).
 4249
 4250maxTime(60).
 4251
 4252conveyorSpeed(5).
 4253% dB(/.../(lps_user_examples, 'ConveyorBelt2.pl'), lps_visualization(_353378{groups:[_335630{content:"contents(A,B)", id:"contents/2", order:3, subgroupStack:"false"}, _335708{content:"location(A,B)", id:"location/2", order:3, subgroupStack:"false"}, _335786{content:"normalOperation", id:"normalOperation/0", order:3, subgroupStack:"false"}, _335852{content:"Actions", id:"action", order:4}], items:[_335962{content:"normalOperation", end:61, group:"normalOperation/0", id:0, start:1, title:"Fluent normalOperation initiated at 1<br/>and terminated at transition to 61"}, _336084{content:"bottle,0", end:7, group:"contents/2", id:1, start:1, subgroup:"bottle", title:"Fluent contents(bottle,0) initiated at 1<br/>and terminated at transition to 7"}, _336210{content:"bottle,0", end:61, group:"contents/2", id:2, start:41, subgroup:"bottle", title:"Fluent contents(bottle,0) initiated at 41<br/>and terminated at transition to 61"}, ...(_365964)]}, _364982{cycles:[[_364578{create:[_363778{from:[0, 0], id:"timeless", to:[450, 300], type:"rectangle"}, _363904{from:[25, 100], id:"timeless", strokeColor:"black", strokeWidth:2, to:[425, 100], type:"line"}, _364026{center:[25, 80], id:"timeless", radius:20, strokeColor:"black", strokeWidth:2, type:"circle"}, _364148{center:[425, 80], id:"timeless", radius:20, strokeColor:"black", strokeWidth:2, type:"circle"}, _364282{fillColor:"white", from:[125, 200], id:"timeless", strokeColor:"blue", to:[155, 300], type:"ellipse"}, _364416{fillColor:"white", from:[285, 200], id:"timeless", strokeColor:"blue", to:[315, 300], type:"ellipse"}, _364550{from:[25, 60], id:"timeless", strokeColor:"black", strokeWidth:2, to:[425, 60], type:"line"}]}], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [_364974{kill:"timeless"}]]})).
 4254% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'conveyor belt.pl')).
 4255% run_lps_corner_file1(/.../(lps_user_examples, 'conveyor belt.pl')).
 4256% /pack/logicmoo_ec/test/lps_user_examples/conveyor belt.pl:1
 4257% push_lps_dialect.
 4258% ops.
 4259% [ti=user, load= /.../(lps_user_examples, 'conveyor belt.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'conveyor belt.pl'), lps= /.../(lps_user_examples, 'conveyor belt.pl'), using= /.../(lps_user_examples, 'conveyor belt.pl')].
 4260% continue_lps_dialect.
 4261% ops.
 4262
 4263% LPS:  fluents((normalOperation,started,contents/2,empty/1,location/2)).
 4264% Into: fluents([normalOperation,started,contents(_72008,_72010),empty(_72020),location(_72030,_72032)]).
 4265
 4266% LPS:  initially((normalOperation,contents(bottle,0),contents(container,0),contents(tank1,100),contents(tank2,100),location(bottle,2),location(tank1,2),location(tank2,5),location(container,7))).
 4267% Into: initial_state([normalOperation,contents(bottle,0),contents(container,0),contents(tank1,100),contents(tank2,100),location(bottle,2),location(tank1,2),location(tank2,5),location(container,7)]).
 4268
 4269% LPS:  actions((pour/3,turnConveyor/1,waitCycle)).
 4270% Into: actions([pour(_74942,_74944,_74946),turnConveyor(_74956),waitCycle]).
 4271
 4272% LPS:  from(wait(0),to(_74900,_74900)).
 4273% Into: l_events(happens(wait(0),_74900,_74900),[]).
 4274
 4275% LPS:  if(from(wait(_75974),to(_76010,_76012)),(_75974>0,from(waitCycle,to(_76010,_76188)),_76330 is _75974-1,from(wait(_76330),to(_76188,_76012)))).
 4276% Into: l_events(happens(wait(_75974),_76010,_76012),[_75974>0,happens(waitCycle,_76010,_76188),_76330 is _75974-1,happens(wait(_76330),_76188,_76012)]).
 4277
 4278% LPS:  false((pour(_78462,_78464,_78466),turnConveyor(_78506))).
 4279% Into: d_pre([happens(pour(_78462,_78464,_78466),_79550,_79556),happens(turnConveyor(_78506),_79550,_79556)]).
 4280
 4281% LPS:  false((pour(_79648,_79650,_79652),location(_79648,_79708),location(_79650,_79764),_79708\=_79764)).
 4282% Into: d_pre([happens(pour(_79648,_79650,_79652),_81010,_81016),holds(location(_79648,_79708),_81010),holds(location(_79650,_79764),_81010),_79708\=_79764]).
 4283
 4284% LPS:  if(from(makeLocation(bottle,_81436),_81458),(at(location(bottle,_81540),_81458),at(location(_81436,_81644),_81458),_81776 is _81644-_81540,from(moveConveyor(_81776),_81458))).
 4285% Into: l_events(happens(makeLocation(bottle,_81436),_81458,_83136),[holds(location(bottle,_81540),_81458),holds(location(_81436,_81644),_81458),_81776 is _81644-_81540,happens(moveConveyor(_81776),_81458,_83226)]).
 4286
 4287% LPS:  from(moveConveyor(0),to(_83742,_83742)).
 4288% Into: l_events(happens(moveConveyor(0),_83742,_83742),[]).
 4289
 4290% LPS:  if(from(moveConveyor(_84816),to(_84852,_84854)),(_84816>0,from(turnConveyor(clockwise),to(_84852,_85054)),_85196 is _84816-1,from(moveConveyor(_85196),to(_85054,_84854)))).
 4291% Into: l_events(happens(moveConveyor(_84816),_84852,_84854),[_84816>0,happens(turnConveyor(clockwise),_84852,_85054),_85196 is _84816-1,happens(moveConveyor(_85196),_85054,_84854)]).
 4292
 4293% LPS:  if(moveConveyor(_87264),(_87264<0,turnConveyor(counterClockwise),_87452 is _87264+1,moveConveyor(_87452))).
 4294% Into: l_events(happens(moveConveyor(_87264),_88694,_88700),[_87264<0,happens(turnConveyor(counterClockwise),_88694,_88976),_87452 is _87264+1,happens(moveConveyor(_87452),_88976,_88700)]).
 4295
 4296% LPS:  if(updates(turnConveyor(counterClockwise),in(to(_89284,_89286),location(bottle,_89284))),_89286 is _89284-1).
 4297% Into: updated(happens(turnConveyor(counterClockwise),_90760,_90766),location(bottle,_89284),_89284-_89286,[_89286 is _89284-1]).
 4298
 4299% LPS:  if(updates(turnConveyor(clockwise),in(to(_91038,_91040),location(bottle,_91038))),_91040 is _91038+1).
 4300% Into: updated(happens(turnConveyor(clockwise),_92514,_92520),location(bottle,_91038),_91038-_91040,[_91040 is _91038+1]).
 4301
 4302% LPS:  if(empty(_92756),contents(_92756,0)).
 4303% Into: l_int(holds(empty(_92756),_93840),[holds(contents(_92756,0),_93840)]).
 4304
 4305% LPS:  if(updates(pour(_93886,_93888,_93890),in(to(_93926,_93928),contents(_93888,_93926))),_93928 is _93926+_93890).
 4306% Into: updated(happens(pour(_93886,_93888,_93890),_95446,_95452),contents(_93888,_93926),_93926-_93928,[_93928 is _93926+_93890]).
 4307
 4308% LPS:  if(updates(pour(_95342,_95344,_95346),in(to(_95382,_95384),contents(_95342,_95382))),_95384 is _95382-_95346).
 4309% Into: updated(happens(pour(_95342,_95344,_95346),_96902,_96908),contents(_95342,_95382),_95382-_95384,[_95384 is _95382-_95346]).
 4310
 4311% LPS:  then(if((at(normalOperation,_96836),at(empty(bottle),_96836),at(not(started),_96836))),(initiate(from(started,_96836)),from(makeLocation(bottle,tank1),to(_96836,_97324)),from(pour(tank1,bottle,5),to(_97324,_97492)),from(wait(3),to(_97492,_97628)),from(makeLocation(bottle,tank2),to(_97628,_97780)),from(pour(tank2,bottle,5),to(_97780,_97948)),from(wait(3),to(_97948,_98084)),from(makeLocation(bottle,container),to(_98084,_98236)),from(pour(bottle,container,10),to(_98236,_98404)),from(wait(3),to(_98404,_98540)),from(makeLocation(bottle,tank1),to(_98540,_98692)),terminate(from(started,_98692)))).
 4312% Into: reactive_rule([holds(normalOperation,_96836),holds(empty(bottle),_96836),holds(not(started),_96836)],[happens(initiate(started),_96836,_101012),happens(makeLocation(bottle,tank1),_96836,_97324),happens(pour(tank1,bottle,5),_97324,_97492),happens(wait(3),_97492,_97628),happens(makeLocation(bottle,tank2),_97628,_97780),happens(pour(tank2,bottle,5),_97780,_97948),happens(wait(3),_97948,_98084),happens(makeLocation(bottle,container),_98084,_98236),happens(pour(bottle,container,10),_98236,_98404),happens(wait(3),_98404,_98540),happens(makeLocation(bottle,tank1),_98540,_98692),happens(terminate(started),_98692,_100976)]).
 4313% /pack/logicmoo_ec/test/lps_user_examples/conveyor belt.pl:107
 4314% pop_lps_dialect('$BLOB'("<stream>(0x562ef3ca5b00)"),  (/.../(lps_user_examples, 'conveyor belt.pl')-> /.../(lps_user_examples, 'conveyor belt.pl'))).
 4315% ops.
 4316% :-listing('/pack/logicmoo_ec/test/lps_user_examples/conveyor belt.pl':_114640).
 4317
 4318
 4319d_pre([happens(pour(_, _, _), A, B), happens(turnConveyor(_), A, B)]).
 4320d_pre([happens(pour(A, B, _), C, _), holds(location(A, D), C), holds(location(B, E), C), D\=E]).
 4321
 4322d(location(bottle, Pos), [type:rectangle, fillColor:yellow, from:[X1, 60], to:[X2, 100], strokeColor:blue]) :-
 4323    X1 is 100+Pos*30,
 4324    X2 is 110+Pos*30.
 4325d(timeless, [[type:line, strokeWidth:2, strokeColor:black, from:[100, 60], to:[400, 60]], [type:circle, strokeWidth:2, strokeColor:black, center:[100, 40], radius:20], [type:circle, strokeWidth:2, strokeColor:black, center:[400, 40], radius:20], [type:rectangle, fillColor:white, from:[130, 120], to:[190, 150], strokeColor:blue], [type:rectangle, fillColor:white, from:[210, 120], to:[270, 150], strokeColor:blue], [type:line, strokeWidth:2, strokeColor:black, from:[100, 20], to:[400, 20]]]).
 4326
 4327fluents([normalOperation, started, contents(_, _), empty(_), location(_, _)]).
 4328
 4329l_int(holds(empty(A), B), [holds(contents(A, 0), B)]).
 4330
 4331reactive_rule([holds(normalOperation, A), holds(empty(bottle), A), holds(not(started), A)], [happens(initiate(started), A, _), happens(makeLocation(bottle, tank1), A, B), happens(pour(tank1, bottle, 5), B, C), happens(wait(3), C, D), happens(makeLocation(bottle, tank2), D, E), happens(pour(tank2, bottle, 5), E, F), happens(wait(3), F, G), happens(makeLocation(bottle, container), G, H), happens(pour(bottle, container, 10), H, I), happens(wait(3), I, J), happens(makeLocation(bottle, tank1), J, K), happens(terminate(started), K, _)]).
 4332
 4333initial_state([normalOperation, contents(bottle, 0), contents(container, 0), contents(tank1, 100), contents(tank2, 100), location(bottle, 2), location(tank1, 2), location(tank2, 5), location(container, 7)]).
 4334
 4335l_events(happens(wait(0), A, A), []).
 4336l_events(happens(wait(A), B, C), [A>0, happens(waitCycle, B, D), E is A-1, happens(wait(E), D, C)]).
 4337l_events(happens(makeLocation(bottle, A), B, _), [holds(location(bottle, C), B), holds(location(A, D), B), E is D-C, happens(moveConveyor(E), B, _)]).
 4338l_events(happens(moveConveyor(0), A, A), []).
 4339l_events(happens(moveConveyor(A), B, C), [A>0, happens(turnConveyor(clockwise), B, D), E is A-1, happens(moveConveyor(E), D, C)]).
 4340l_events(happens(moveConveyor(A), B, C), [A<0, happens(turnConveyor(counterClockwise), B, D), E is A+1, happens(moveConveyor(E), D, C)]).
 4341
 4342:- dynamic actions/1. 4343:- multifile actions/1. 4344
 4345actions([pour(_, _, _), turnConveyor(_), waitCycle]).
 4346
 4347updated(happens(turnConveyor(counterClockwise), _, _), location(bottle, A), A-B, [B is A-1]).
 4348updated(happens(turnConveyor(clockwise), _, _), location(bottle, A), A-B, [B is A+1]).
 4349updated(happens(pour(_, A, B), _, _), contents(A, C), C-D, [D is C+B]).
 4350updated(happens(pour(A, _, B), _, _), contents(A, C), C-D, [D is C-B]).
 4351
 4352maxTime(30).
 4353% dB(/.../(lps_user_examples, 'conveyor belt.pl'), lps_visualization(_256464{groups:[_240292{content:"contents(A,B)", id:"contents/2", order:3, subgroupStack:"false"}, _240370{content:"location(A,B)", id:"location/2", order:3, subgroupStack:"false"}, _240448{content:"normalOperation", id:"normalOperation/0", order:3, subgroupStack:"false"}, _240526{content:"started", id:"started/0", order:3, subgroupStack:"false"}, _240592{content:"Actions", id:"action", order:4}], items:[_240702{content:"normalOperation", end:31, group:"normalOperation/0", id:0, start:1, title:"Fluent normalOperation initiated at 1<br/>and terminated at transition to 31"}, _240812{content:"started", end:31, group:"started/0", id:1, start:2, title:"Fluent started initiated at 2<br/>and terminated at transition to 31"}, _240934{content:"bottle,0", end:2, group:"contents/2", id:2, start:1, subgroup:"bottle", title:"Fluent contents(bottle,0) initiated at 1<br/>and terminated at transition to 2"}, ...(_268346)]}, _267364{cycles:[[_266952{create:[_266278{from:[100, 60], id:"timeless", strokeColor:"black", strokeWidth:2, to:[400, 60], type:"line"}, _266400{center:[100, 40], id:"timeless", radius:20, strokeColor:"black", strokeWidth:2, type:"circle"}, _266522{center:[400, 40], id:"timeless", radius:20, strokeColor:"black", strokeWidth:2, type:"circle"}, _266656{fillColor:"white", from:[130, 120], id:"timeless", strokeColor:"blue", to:[190, 150], type:"rectangle"}, _266790{fillColor:"white", from:[210, 120], id:"timeless", strokeColor:"blue", to:[270, 150], type:"rectangle"}, _266924{from:[100, 20], id:"timeless", strokeColor:"black", strokeWidth:2, to:[400, 20], type:"line"}]}], [_267116{create:_267088{fillColor:"yellow", from:[160, 60], id:"location(bottle,2)", strokeColor:"blue", to:[170, 100], type:"rectangle"}}], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [_267326{kill:"location(bottle,2)"}, _267356{kill:"timeless"}]]})).
 4354% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'cooking.pl')).
 4355% run_lps_corner_file1(/.../(lps_user_examples, 'cooking.pl')).
 4356% /pack/logicmoo_ec/test/lps_user_examples/cooking.pl:1
 4357% push_lps_dialect.
 4358% ops.
 4359% [ti=user, load= /.../(lps_user_examples, 'cooking.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'cooking.pl'), lps= /.../(lps_user_examples, 'cooking.pl'), using= /.../(lps_user_examples, 'cooking.pl')].
 4360% continue_lps_dialect.
 4361% ops.
 4362
 4363% LPS:  fluents(location(_67890,_67892)).
 4364% Into: fluents([location(_67890,_67892)]).
 4365
 4366% LPS:  actions(setLocation(_69034,_69036)).
 4367% Into: actions([setLocation(_69034,_69036)]).
 4368
 4369% LPS:  if(updates(setLocation(_70094,_70096),in(to(_70132,_70096),location(_70094,_70132))),(_70096=point(_70350,_70352),number(_70350),number(_70352))).
 4370% Into: updated(happens(setLocation(_70094,_70096),_71812,_71818),location(_70094,_70132),_70132-_70096,[_70096=point(_70350,_70352),number(_70350),number(_70352)]).
 4371
 4372% LPS:  fluents(working(_72934,_72936)).
 4373% Into: fluents([working(_72934,_72936)]).
 4374
 4375% LPS:  actions((start(_74024),stop(_74064))).
 4376% Into: actions([start(_74024),stop(_74064)]).
 4377
 4378% LPS:  updates(start(_75148),in(to(_75184,true),working(_75148,_75184))).
 4379% Into: updated(happens(start(_75148),_76488,_76494),working(_75148,_75184),_75184-true,[]).
 4380
 4381% LPS:  updates(stop(_76370),in(to(_76416,false),working(_76370,_76416))).
 4382% Into: updated(happens(stop(_76370),_77720,_77726),working(_76370,_76416),_76416-false,[]).
 4383
 4384% LPS:  if(from(clone(_77646,_77648),to(_77684,_77686)),(_77646=..[_77800,_77820],objectName(_77894),_77648=..[_77800,_77894],findall(_78312,(holds(_78102,_77684),_78102=..[_78160,_77646|_78182],_78312=..[_78160,_77648|_78182]),_78426),from(initiateAll(_78426),to(_77684,_77686)))).
 4385% Into: l_events(happens(clone(_77646,_77648),_77684,_77686),[_77646=..[_77800,_77820],objectName(_77894),_77648=..[_77800,_77894],holds(findall(_78312,[holds(_78102,_77684),_78102=..[_78160,_77646|_78182],_78312=..[_78160,_77648|_78182]],_78426),_77684),happens(initiateAll(_78426),_77684,_77686)]).
 4386
 4387% LPS:  if(from(initiateAll([_82406|_82408]),to(_82456,_82458)),(initiate(from(_82406,_82456)),from(initiateAll(_82408),to(_82456,_82458)))).
 4388% Into: l_events(happens(initiateAll([_82406|_82408]),_82456,_82458),[happens(initiate(_82406),_82456,_84020),happens(initiateAll(_82408),_82456,_82458)]).
 4389
 4390% LPS:  if(from(initiateAll([]),to(_83942,_83944)),_83944=:=_83942+1).
 4391% Into: l_events(happens(initiateAll([]),_83942,_83944),[_83944=:=_83942+1]).
 4392
 4393% LPS:  if(from(clone(_85582,_85584,[_85568|_85570]),to(_85622,_85624)),(_85582>0,from(clone(_85584,_85568),to(_85622,_85624)),_85982 is _85582-1,from(clone(_85982,_85584,_85570),to(_85622,_85624)))).
 4394% Into: l_events(happens(clone(_85582,_85584,[_85568|_85570]),_85622,_85624),[_85582>0,happens(clone(_85584,_85568),_85622,_85624),_85982 is _85582-1,happens(clone(_85982,_85584,_85570),_85622,_85624)]).
 4395
 4396% LPS:  clone(0,_88166,[]).
 4397% Into: l_events(happens(clone(0,_88166,[]),_89132,_89138),[]).
 4398
 4399% LPS:  fluents((transports(_89296,_89298),conveyorEndpoint(_89352,_89354),conveyorSpeed(_89352,_89410))).
 4400% Into: fluents([transports(_89296,_89298),conveyorEndpoint(_89352,_89354),conveyorSpeed(_89352,_89410)]).
 4401
 4402% LPS:  actions(setConveyorSpeed(_90634,_90636)).
 4403% Into: actions([setConveyorSpeed(_90634,_90636)]).
 4404
 4405% LPS:  updates(setConveyorSpeed(_91694,_91696),in(to(_91732,_91696),conveyorSpeed(_91694,_91732))).
 4406% Into: updated(happens(setConveyorSpeed(_91694,_91696),_93052,_93058),conveyorSpeed(_91694,_91732),_91732-_91696,[]).
 4407
 4408% LPS:  if(from(placeOnConveyor(_92960,_92962,_92964),to(_93000,_93002)),(at(not(transports(_92962,_92960)),_93000),location(_92962,_93252),conveyorEndpoint(_92962,_93308),interpolate(_93252,_93308,_92964,_93396),update(in(to(_93440,_93396),from(location(_92960,_93440),to(_93000,_93002)))),initiate(from(transports(_92962,_92960),to(_93000,_93002))))).
 4409% Into: l_events(happens(placeOnConveyor(_92960,_92962,_92964),_93000,_93002),[holds(not(transports(_92962,_92960)),_93000),holds(location(_92962,_93252),_95512),holds(conveyorEndpoint(_92962,_93308),_95576),interpolate(_93252,_93308,_92964,_93396),happens(update(_93440-_93396,location(_92960,_93440)),_93000,_93002),happens(initiate(transports(_92962,_92960)),_93000,_93002)]).
 4410
 4411% LPS:  if(from(createConveyor(_95996,_95998,_96000,_96002),to(_96038,_96040)),(_96002=conveyor(_95996),objectName(_95996),initiate(from(location(_96002,_95998),to(_96038,_96040))),initiate(from(conveyorEndpoint(_96002,_96000),to(_96038,_96040))),initiate(from(conveyorSpeed(_96002,0),to(_96038,_96040))),initiate(from(working(_96002,false),to(_96038,_96040))))).
 4412% Into: l_events(happens(createConveyor(_95996,_95998,_96000,_96002),_96038,_96040),[_96002=conveyor(_95996),objectName(_95996),happens(initiate(location(_96002,_95998)),_96038,_96040),happens(initiate(conveyorEndpoint(_96002,_96000)),_96038,_96040),happens(initiate(conveyorSpeed(_96002,0)),_96038,_96040),happens(initiate(working(_96002,false)),_96038,_96040)]).
 4413
 4414% LPS:  if(at(conveyor(_98962,_98964,_98966,_98968,_98970),_98992),(at(conveyorEndpoint(_98962,_98966),_98992),at(location(_98962,_98964),_98992),at(working(_98962,_98968),_98992),at(conveyorSpeed(_98962,_98970),_98992))).
 4415% Into: l_int(holds(conveyor(_98962,_98964,_98966,_98968,_98970),_98992),[holds(conveyorEndpoint(_98962,_98966),_98992),holds(location(_98962,_98964),_98992),holds(working(_98962,_98968),_98992),holds(conveyorSpeed(_98962,_98970),_98992)]).
 4416
 4417% LPS:  then(if((at(conveyorSpeed(_105920,_105922),_105944),at(working(_105920,true),_105944),at(transports(_105920,_106130),_105944),at(conveyorEndpoint(_105920,_106234),_105944),at(location(_106130,_106338),_105944),at(location(_105920,_106442),_105944),notReachingConveyorEnds(_105922,_106442,_106234,_106338))),(newPosition(_106338,_106442,_106234,_105922,_106898),update(in(to(_106338,_106898),from(location(_106130,_106338),_105944))))).
 4418% Into: reactive_rule([holds(conveyorSpeed(_105920,_105922),_105944),holds(working(_105920,true),_105944),holds(transports(_105920,_106130),_105944),holds(conveyorEndpoint(_105920,_106234),_105944),holds(location(_106130,_106338),_105944),holds(location(_105920,_106442),_105944),notReachingConveyorEnds(_105922,_106442,_106234,_106338)],[newPosition(_106338,_106442,_106234,_105922,_106898),happens(update(_106338-_106898,location(_106130,_106338)),_105944,_109198)]).
 4419
 4420% LPS:  fluents(container(_112530,_112532)).
 4421% Into: fluents([container(_112530,_112532)]).
 4422
 4423% LPS:  if(from(createContainer(_113604,_113606,_113608),to(_113644,_113646)),(_113608=container(_113604),objectName(_113604),number(_113606),initiate(from(container(_113608,_113606),to(_113644,_113646))),initiate(from(location(_113608,point(0,0)),to(_113644,_113646))))).
 4424% Into: l_events(happens(createContainer(_113604,_113606,_113608),_113644,_113646),[_113608=container(_113604),objectName(_113604),number(_113606),happens(initiate(container(_113608,_113606)),_113644,_113646),happens(initiate(location(_113608,point(0,0))),_113644,_113646)]).
 4425
 4426% LPS:  if(at(container(_115664,_115666,_115668),_115690),(at(container(_115664,_115666),_115690),at(location(_115664,_115668),_115690))).
 4427% Into: l_int(holds(container(_115664,_115666,_115668),_115690),[holds(container(_115664,_115666),_115690),holds(location(_115664,_115668),_115690)]).
 4428
 4429% LPS:  fluents((heater(_20970,_20972,_20974,_20976),heatable(_20970,_20976),initialTemperature(_21100,_21102,_21104))).
 4430% Into: fluents([heater(_20970,_20972,_20974,_20976),heatable(_20970,_20976),initialTemperature(_21100,_21102,_21104)]).
 4431
 4432% LPS:  if(from(createHeater(_22358,_22360,_22362,_22364,_22366),to(_22402,_22404)),(_22366=heater(_22358),objectName(_22358),initiate(from(heater(_22366,_22360,_22362,_22364),to(_22402,_22404))),initiate(from(working(_22366,false),to(_22402,_22404))))).
 4433% Into: l_events(happens(createHeater(_22358,_22360,_22362,_22364,_22366),_22402,_22404),[_22366=heater(_22358),objectName(_22358),happens(initiate(heater(_22366,_22360,_22362,_22364)),_22402,_22404),happens(initiate(working(_22366,false)),_22402,_22404)]).
 4434
 4435% LPS:  then(if((at(heater(_24348,_24350,_24352,_24354),_24376),at(working(_24348,true),_24376),at(heatable(_24560,_24562),_24376),at(location(_24560,_24666),_24376),\+inside(_24666,_24350,_24352),at(location(_24560,_24874),_24376+1),inside(_24874,_24350,_24352))),initiate(from(initialTemperature(_24348,_24560,_24562),_24376+1))).
 4436% Into: reactive_rule([holds(heater(_24348,_24350,_24352,_24354),_24376),holds(working(_24348,true),_24376),holds(heatable(_24560,_24562),_24376),holds(location(_24560,_24666),_24376),\+inside(_24666,_24350,_24352),holds(location(_24560,_24874),_24376+1),inside(_24874,_24350,_24352)],[happens(initiate(initialTemperature(_24348,_24560,_24562)),_24376+1,_27448)]).
 4437
 4438% LPS:  then(if((at(heater(_26794,_26796,_26798,_26800),_26822),at(working(_26794,true),_26822),at(heatable(_27006,_27008),_26822),at(location(_27006,_27112),_26822),inside(_27112,_26796,_26798))),update(in(to(_27428,_26800),from(heatable(_27006,_27428),_26822)))).
 4439% Into: reactive_rule([holds(heater(_26794,_26796,_26798,_26800),_26822),holds(working(_26794,true),_26822),holds(heatable(_27006,_27008),_26822),holds(location(_27006,_27112),_26822),inside(_27112,_26796,_26798)],[happens(update(_27428-_26800,heatable(_27006,_27428)),_26822,_29364)]).
 4440
 4441% LPS:  then(if((at(heater(_28902,_28904,_28906,_28908),_28930),at(working(_28902,true),_28930),at(heatable(_29114,_29116),_28930),at(location(_29114,_29220),_28930),inside(_29220,_28904,_28906),at(location(_29114,_29396),_28930+1),\+inside(_29396,_28904,_28906),initialTemperature(_28902,_29114,_29668))),(terminate(from(initialTemperature(_28902,_29114,_29668),_28930+1)),update(in(to(_29116,_29668),from(heatable(_29114,_29116),_28930+1))))).
 4442% Into: reactive_rule([holds(heater(_28902,_28904,_28906,_28908),_28930),holds(working(_28902,true),_28930),holds(heatable(_29114,_29116),_28930),holds(location(_29114,_29220),_28930),inside(_29220,_28904,_28906),holds(location(_29114,_29396),_28930+1),\+inside(_29396,_28904,_28906),holds(initialTemperature(_28902,_29114,_29668),_31770)],[happens(terminate(initialTemperature(_28902,_29114,_29668)),_28930+1,_32564),happens(update(_29116-_29668,heatable(_29114,_29116)),_28930+1,_32528)]).
 4443
 4444% LPS:  fluents(cookable(_33888,_33890,_33892)).
 4445% Into: fluents([cookable(_33888,_33890,_33892)]).
 4446
 4447% LPS:  if(from(createCookable(_34978,_34980,_34982),to(_35018,_35020)),(_34982=cookable(_34978),objectName(_34978),initiate(from(location(_34982,point(0,0)),to(_35018,_35020))),initiate(from(heatable(_34982,_34980),to(_35018,_35020))),initiate(from(cookable(_34982,_34980,0),to(_35018,_35020))))).
 4448% Into: l_events(happens(createCookable(_34978,_34980,_34982),_35018,_35020),[_34982=cookable(_34978),objectName(_34978),happens(initiate(location(_34982,point(0,0))),_35018,_35020),happens(initiate(heatable(_34982,_34980)),_35018,_35020),happens(initiate(cookable(_34982,_34980,0)),_35018,_35020)]).
 4449
 4450% LPS:  then(if((at(cookable(_37194,_37196,_37198),_37220),at(heatable(_37194,_37302),_37220),_37302>_37196)),(_37698 is _37198+(_37302-_37196)*0.01,update(in(to(_37198,_37698),cookable(_37194,_37196,_37198))))).
 4451% Into: reactive_rule([holds(cookable(_37194,_37196,_37198),_37220),holds(heatable(_37194,_37302),_37220),_37302>_37196],[_37698 is _37198+(_37302-_37196)*0.01,happens(update(_37198-_37698,cookable(_37194,_37196,_37198)),_39424,_39430)]).
 4452
 4453% LPS:  if(at(cookable(_39230,_39232,_39234,_39236),_39258),(at(cookable(_39230,_39232,_39234),_39258),at(location(_39230,_39236),_39258))).
 4454% Into: l_int(holds(cookable(_39230,_39232,_39234,_39236),_39258),[holds(cookable(_39230,_39232,_39234),_39258),holds(location(_39230,_39236),_39258)]).
 4455
 4456% LPS:  fluents((pump(_42692,_42694,_42696),pumpFlow(_42692,_42752))).
 4457% Into: fluents([pump(_42692,_42694,_42696),pumpFlow(_42692,_42752)]).
 4458
 4459% LPS:  if(from(createPump(_43948,_43950,_43952,_43954),to(_43990,_43992)),(_43950\=_43952,_43950=container(_44170),_43952=container(_44258),_43954=pump(_43948),objectName(_43948),initiate(from(pump(_43954,_43950,_43952),to(_43990,_43992))),initiate(from(pumpFlow(_43954,0),to(_43990,_43992))),initiate(from(working(_43954,false),to(_43990,_43992))))).
 4460% Into: l_events(happens(createPump(_43948,_43950,_43952,_43954),_43990,_43992),[_43950\=_43952,_43950=container(_44170),_43952=container(_44258),_43954=pump(_43948),objectName(_43948),happens(initiate(pump(_43954,_43950,_43952)),_43990,_43992),happens(initiate(pumpFlow(_43954,0)),_43990,_43992),happens(initiate(working(_43954,false)),_43990,_43992)]).
 4461
 4462% LPS:  actions((setPumpFlow(_46500,_46502),switchPumpOutputTo(_46500,_46558),switchPumpInputTo(_46500,_46614),pumpIt(_46500,_46670))).
 4463% Into: actions([setPumpFlow(_46500,_46502),switchPumpOutputTo(_46500,_46558),switchPumpInputTo(_46500,_46614),pumpIt(_46500,_46670)]).
 4464
 4465% LPS:  if(updates(setPumpFlow(_47896,_47898),in(to(_47934,_47898),pumpFlow(_47896,_47934))),number(_47898)).
 4466% Into: updated(happens(setPumpFlow(_47896,_47898),_49354,_49360),pumpFlow(_47896,_47934),_47934-_47898,[number(_47898)]).
 4467
 4468% LPS:  if(updates(switchPumpOutputTo(_49230,_49232),in(to(_49268,_49232),pump(_49230,_49366,_49268))),_49232=container(_49488)).
 4469% Into: updated(happens(switchPumpOutputTo(_49230,_49232),_50774,_50780),pump(_49230,_49366,_49268),_49268-_49232,[_49232=container(_49488)]).
 4470
 4471% LPS:  if(updates(switchPumpInputTo(_50648,_50650),in(to(_50686,_50650),pump(_50648,_50686,_50786))),_50650=container(_50906)).
 4472% Into: updated(happens(switchPumpInputTo(_50648,_50650),_52180,_52186),pump(_50648,_50686,_50786),_50686-_50650,[_50650=container(_50906)]).
 4473
 4474% LPS:  then(if((at(pump(_52124,_52126,_52128),_52150),at(working(_52124,true),_52150),at(container(_52126,_52336),_52150))),(at(pumpFlow(_52124,_52528),_52150),_52336-_52528>=0,from(pumpIt(_52126,-_52528),_52150),from(pumpIt(_52128,_52528),_52150))).
 4475% Into: reactive_rule([holds(pump(_52124,_52126,_52128),_52150),holds(working(_52124,true),_52150),holds(container(_52126,_52336),_52150)],[holds(pumpFlow(_52124,_52528),_52150),_52336-_52528>=0,happens(pumpIt(_52126,-_52528),_52150,_54792),happens(pumpIt(_52128,_52528),_52150,_54570)]).
 4476
 4477% LPS:  if(updates(pumpIt(_54326,_54328),in(to(_54364,_54366),container(_54326,_54364))),_54366 is _54364+_54328).
 4478% Into: updated(happens(pumpIt(_54326,_54328),_55868,_55874),container(_54326,_54364),_54364-_54366,[_54366 is _54364+_54328]).
 4479
 4480% LPS:  fluents(dropper(_55878,_55880,_55882,_55884,_55886)).
 4481% Into: fluents([dropper(_55878,_55880,_55882,_55884,_55886)]).
 4482
 4483% LPS:  if(from(createDropper(_57028,_57030,_57032,_57034,_57036),to(_57072,_57074)),(_57036=dropper(_57028),objectName(_57028),number(_57030),_57034=conveyor(_57356),at(location(_57034,point(_57476,_57478)),_57072),_57616 is _57478+25,initiate(from(working(_57036,false),to(_57072,_57074))),initiate(from(location(_57036,point(_57476,_57616)),to(_57072,_57074))),initiate(from(dropper(_57036,_57030,_57032,_57034,_57072),to(_57072,_57074))))).
 4484% Into: l_events(happens(createDropper(_57028,_57030,_57032,_57034,_57036),_57072,_57074),[_57036=dropper(_57028),objectName(_57028),number(_57030),_57034=conveyor(_57356),holds(location(_57034,point(_57476,_57478)),_57072),_57616 is _57478+25,happens(initiate(working(_57036,false)),_57072,_57074),happens(initiate(location(_57036,point(_57476,_57616))),_57072,_57074),happens(initiate(dropper(_57036,_57030,_57032,_57034,_57072)),_57072,_57074)]).
 4485
 4486% LPS:  actions(setDroppingSpeed(_59914,_59916)).
 4487% Into: actions([setDroppingSpeed(_59914,_59916)]).
 4488
 4489% LPS:  if(updates(setDroppingSpeed(_60974,_60976),in(to(_61012,_60976),dropper(_60974,_61012,_61140,_61142,_61144))),number(_60976)).
 4490% Into: updated(happens(setDroppingSpeed(_60974,_60976),_62492,_62498),dropper(_60974,_61012,_61140,_61142,_61144),_61012-_60976,[number(_60976)]).
 4491
 4492% LPS:  then(if((at(dropper(_62412,_62414,_62416,_62418,_62420),_62442),at(working(_62412,true),_62442),_62414*(_62442-_62420)>=1)),(update(in(to(_62874,_62442),from(dropper(_62412,_62414,_62416,_62418,_62874),to(_62442,_62442+1)))),_63372 is round(_62414*(_62442-_62420)),from(clone(_63372,_62416,_63472),to(_62442,_62442+1)),from(drop(_63472,_62418),to(_62442+1,_62442+2)))).
 4493% Into: reactive_rule([holds(dropper(_62412,_62414,_62416,_62418,_62420),_62442),holds(working(_62412,true),_62442),_62414*(_62442-_62420)>=1],[happens(update(_62874-_62442,dropper(_62412,_62414,_62416,_62418,_62874)),_62442,_62442+1),_63372 is round(_62414*(_62442-_62420)),happens(clone(_63372,_62416,_63472),_62442,_62442+1),happens(drop(_63472,_62418),_62442+1,_62442+2)]).
 4494
 4495% LPS:  if(from(drop([_65318|_65320],_65348),to(_65384,_65386)),(from(placeOnConveyor(_65318,_65348,0),to(_65384,_65386)),from(drop(_65320,_65348),to(_65384,_65386)))).
 4496% Into: l_events(happens(drop([_65318|_65320],_65348),_65384,_65386),[happens(placeOnConveyor(_65318,_65348,0),_65384,_65386),happens(drop(_65320,_65348),_65384,_65386)]).
 4497
 4498% LPS:  drop([],_66964).
 4499% Into: l_events(happens(drop([],_66964),_67926,_67932),[]).
 4500
 4501% LPS:  if(at(dropper(_68018,_68020,_68022),_68044),(at(dropper(_68018,_68020,_68170,_68172,_68174),_68044),at(location(_68018,_68022),_68044))).
 4502% Into: l_int(holds(dropper(_68018,_68020,_68022),_68044),[holds(dropper(_68018,_68020,_68170,_68172,_68174),_68044),holds(location(_68018,_68022),_68044)]).
 4503
 4504% LPS:  then(if(at(true,1)),(from(createContainer(hotOil,50,_19546),to(_19562,_19564)),from(createContainer(usedOil,5,_19674),to(_19562,_19564)),from(createContainer(newOil,30,_19802),to(_19562,_19564)),from(setLocation(_19546,point(300,200)),to(_19564,_19970)),from(setLocation(_19674,point(200,0)),to(_19564,_19970)),from(setLocation(_19802,point(200,80)),to(_19564,_19970)),from(createPump(outward,_19546,_19674,_20394),to(_19564,_19970)),from(createPump(inward,_19674,_19546,_20536),to(_19564,_19970)),from(setPumpFlow(_20394,1),_19970),from(setPumpFlow(_20536,1),_19970),from(start(_20394),_19970),from(start(_20536),to(_19970,_20874)),from(createConveyor(feeding,point(550,140),point(50,140),_21070),to(_20874,_21088)),from(setConveyorSpeed(_21070,10),to(_21088,_21202)),from(start(_21070),to(_21088,_21202)),from(createHeater(_21504,point(100,75),point(500,290),150,_21512),to(_21202,_21530)),from(start(_21512),_21530),from(createCookable(shrimp,4,_21704),to(_21530,_21722)),from(setLocation(_21704,point(-20,-20)),_21722),from(createDropper(_21972,0.25,_21704,_21070,_21980),to(_21722,_21998)),from(start(_21980),_21998))).
 4505% Into: reactive_rule([holds(true,1)],[happens(createContainer(hotOil,50,_19546),_19562,_19564),happens(createContainer(usedOil,5,_19674),_19562,_19564),happens(createContainer(newOil,30,_19802),_19562,_19564),happens(setLocation(_19546,point(300,200)),_19564,_19970),happens(setLocation(_19674,point(200,0)),_19564,_19970),happens(setLocation(_19802,point(200,80)),_19564,_19970),happens(createPump(outward,_19546,_19674,_20394),_19564,_19970),happens(createPump(inward,_19674,_19546,_20536),_19564,_19970),happens(setPumpFlow(_20394,1),_19970,_24816),happens(setPumpFlow(_20536,1),_19970,_24936),happens(start(_20394),_19970,_25056),happens(start(_20536),_19970,_20874),happens(createConveyor(feeding,point(550,140),point(50,140),_21070),_20874,_21088),happens(setConveyorSpeed(_21070,10),_21088,_21202),happens(start(_21070),_21088,_21202),happens(createHeater(_21504,point(100,75),point(500,290),150,_21512),_21202,_21530),happens(start(_21512),_21530,_25780),happens(createCookable(shrimp,4,_21704),_21530,_21722),happens(setLocation(_21704,point(-20,-20)),_21722,_26020),happens(createDropper(_21972,0.25,_21704,_21070,_21980),_21722,_21998),happens(start(_21980),_21998,_23804)]).
 4506
 4507% LPS:  if(at(kitchenSummary(_24880,_24882,_24884,_24886),_24908),(findall(_25040,cookable(_25036,_25038,_25040),_25062),length(_25062,_24880),_24880>0,sum_list(_25062,_25238),_24882 is _25238/_24880,min_list(_25062,_24884),max_list(_25062,_24886))).
 4508% Into: l_int(holds(kitchenSummary(_24880,_24882,_24884,_24886),_24908),[holds(findall(_25040,[holds(cookable(_25036,_25038,_25040),_24908)],_25062),_24908),length(_25062,_24880),_24880>0,sum_list(_25062,_25238),_24882 is _25238/_24880,min_list(_25062,_24884),max_list(_25062,_24886)]).
 4509% /pack/logicmoo_ec/test/lps_user_examples/cooking.pl:315
 4510% pop_lps_dialect('$BLOB'("<stream>(0x562ef32aac00)"),  (/.../(lps_user_examples, 'cooking.pl')-> /.../(lps_user_examples, 'cooking.pl'))).
 4511% ops.
 4512% :-listing('/pack/logicmoo_ec/test/lps_user_examples/cooking.pl':_52454).
 4513
 4514
 4515distance(point(X1, Y1), point(X2, Y2), D) :-
 4516    D is sqrt((X2-X1)*(X2-X1)+(Y2-Y1)*(Y2-Y1)).
 4517
 4518updated(happens(setLocation(A, B), _, _), location(A, C), C-B, [B=point(D, E), number(D), number(E)]).
 4519updated(happens(start(A), _, _), working(A, B), B-true, []).
 4520updated(happens(stop(A), _, _), working(A, B), B-false, []).
 4521updated(happens(setConveyorSpeed(A, B), _, _), conveyorSpeed(A, C), C-B, []).
 4522updated(happens(setPumpFlow(A, B), _, _), pumpFlow(A, C), C-B, [number(B)]).
 4523updated(happens(switchPumpOutputTo(A, B), _, _), pump(A, _, C), C-B, [B=container(_)]).
 4524updated(happens(switchPumpInputTo(A, B), _, _), pump(A, C, _), C-B, [B=container(_)]).
 4525updated(happens(pumpIt(A, B), _, _), container(A, C), C-D, [D is C+B]).
 4526updated(happens(setDroppingSpeed(A, B), _, _), dropper(A, C, _, _, _), C-B, [number(B)]).
 4527
 4528maxTime(100).
 4529
 4530fluents([location(_, _)]).
 4531fluents([working(_, _)]).
 4532fluents([transports(_, _), conveyorEndpoint(A, _), conveyorSpeed(A, _)]).
 4533fluents([container(_, _)]).
 4534fluents([heater(A, _, _, B), heatable(A, B), initialTemperature(_, _, _)]).
 4535fluents([cookable(_, _, _)]).
 4536fluents([pump(A, _, _), pumpFlow(A, _)]).
 4537fluents([dropper(_, _, _, _, _)]).
 4538
 4539interpolate(point(SX, Y), point(EX, Y), D, point(X, Y)) :-
 4540    !,
 4541    (   EX>=SX
 4542    ->  X is SX+D
 4543    ;   X is SX-D
 4544    ).
 4545interpolate(point(X, SY), point(X, EY), D, point(X, Y)) :-
 4546    !,
 4547    (   EY>=SY
 4548    ->  Y is SY+D
 4549    ;   Y is SY-D
 4550    ).
 4551interpolate(point(SX, SY), point(EX, EY), D, point(X, Y)) :-
 4552    M is (EY-SY)/(EX-SX),
 4553    DX is D/sqrt(1+M*M),
 4554    DY is DX*M,
 4555    X is round(SX+DX),
 4556    Y is round(SY+DY).
 4557
 4558l_events(happens(clone(A, B), C, D), [A=..[E, _], objectName(F), B=..[E, F], holds(findall(G, [holds(H, C), H=..[I, A|J], G=..[I, B|J]], K), C), happens(initiateAll(K), C, D)]).
 4559l_events(happens(initiateAll([A|B]), C, D), [happens(initiate(A), C, _), happens(initiateAll(B), C, D)]).
 4560l_events(happens(initiateAll([]), A, B), [B=:=A+1]).
 4561l_events(happens(clone(A, B, [C|D]), E, F), [A>0, happens(clone(B, C), E, F), G is A-1, happens(clone(G, B, D), E, F)]).
 4562l_events(happens(clone(0, _, []), _, _), []).
 4563l_events(happens(placeOnConveyor(A, B, C), D, E), [holds(not(transports(B, A)), D), holds(location(B, F), _), holds(conveyorEndpoint(B, G), _), interpolate(F, G, C, H), happens(update(I-H, location(A, I)), D, E), happens(initiate(transports(B, A)), D, E)]).
 4564l_events(happens(createConveyor(A, B, C, D), E, F), [D=conveyor(A), objectName(A), happens(initiate(location(D, B)), E, F), happens(initiate(conveyorEndpoint(D, C)), E, F), happens(initiate(conveyorSpeed(D, 0)), E, F), happens(initiate(working(D, false)), E, F)]).
 4565l_events(happens(createContainer(A, B, C), D, E), [C=container(A), objectName(A), number(B), happens(initiate(container(C, B)), D, E), happens(initiate(location(C, point(0, 0))), D, E)]).
 4566l_events(happens(createHeater(A, B, C, D, E), F, G), [E=heater(A), objectName(A), happens(initiate(heater(E, B, C, D)), F, G), happens(initiate(working(E, false)), F, G)]).
 4567l_events(happens(createCookable(A, B, C), D, E), [C=cookable(A), objectName(A), happens(initiate(location(C, point(0, 0))), D, E), happens(initiate(heatable(C, B)), D, E), happens(initiate(cookable(C, B, 0)), D, E)]).
 4568l_events(happens(createPump(A, B, C, D), E, F), [B\=C, B=container(_), C=container(_), D=pump(A), objectName(A), happens(initiate(pump(D, B, C)), E, F), happens(initiate(pumpFlow(D, 0)), E, F), happens(initiate(working(D, false)), E, F)]).
 4569l_events(happens(createDropper(A, B, C, D, E), F, G), [E=dropper(A), objectName(A), number(B), D=conveyor(_), holds(location(D, point(H, I)), F), J is I+25, happens(initiate(working(E, false)), F, G), happens(initiate(location(E, point(H, J))), F, G), happens(initiate(dropper(E, B, C, D, F)), F, G)]).
 4570l_events(happens(drop([A|B], C), D, E), [happens(placeOnConveyor(A, C, 0), D, E), happens(drop(B, C), D, E)]).
 4571l_events(happens(drop([], _), _, _), []).
 4572
 4573inside(point(X, Y), point(BLX, BLY), point(TRX, TRY)) :-
 4574    X>BLX,
 4575    X<TRX,
 4576    Y>BLY,
 4577    Y<TRY.
 4578
 4579:- dynamic actions/1. 4580:- multifile actions/1. 4581
 4582actions([setLocation(_, _)]).
 4583actions([start(_), stop(_)]).
 4584actions([setConveyorSpeed(_, _)]).
 4585actions([setPumpFlow(A, _), switchPumpOutputTo(A, _), switchPumpInputTo(A, _), pumpIt(A, _)]).
 4586actions([setDroppingSpeed(_, _)]).
 4587
 4588newPosition(Current, _Start, End, Delta, NewPoint) :-
 4589    Delta>=0,
 4590    interpolate(Current, End, Delta, NewPoint).
 4591newPosition(Current, Start, _End, Delta, NewPoint) :-
 4592    Delta<0,
 4593    interpolate(Current, Start, Delta, NewPoint).
 4594
 4595d(conveyor(C, point(SX, SY_), point(EX, EY_), _Working, Speed), [type:Type, arrow:Speed, headLength:10, strokeWidth:2, strokeColor:black, from:[RSX, RSY], to:[REX, REY]|Label]) :-
 4596    SY is SY_+ -5,
 4597    EY is EY_+ -5,
 4598    format(string(Sp), "~w px/cycle", [Speed]),
 4599    (   Speed=0
 4600    ->  Type=line,
 4601        RSX=SX,
 4602        RSY=SY,
 4603        REX=EX,
 4604        REY=EY,
 4605        label=[]
 4606    ;   Speed>0
 4607    ->  Type=arrow,
 4608        RSX=SX,
 4609        RSY=SY,
 4610        REX=EX,
 4611        REY=EY,
 4612        Label=[label:Sp]
 4613    ;   Type=arrow,
 4614        RSX=EX,
 4615        RSY=EY,
 4616        REX=SX,
 4617        REY=SY,
 4618        Label=[label:Sp]
 4619    ).
 4620d(container(C, Level, point(X, Y)), [from:[X, Y], to:[RightX, RightY], label:Name:Level, type:rectangle, fontSize:13, fillColor:'#85bb65']) :-
 4621    RightX is X+10,
 4622    RightY is Y+Level,
 4623    C=..[_, Name].
 4624d(heater(ID, point(BLX, BLY), point(TRX, TRY), Temp), [type:rectangle, label:TS, from:[BLX, BLY], to:[TRX, TRY], strokeColor:red]) :-
 4625    format(string(TS), "~wo", [Temp]).
 4626d(cookable(C, _, D, point(X, Y)), [type:circle, center:[X, Y], radius:5, label:Ds, fontSize:13, fillColor:red]) :-
 4627    format(string(Ds), "~2f", [D]).
 4628d(dropper(dropper(Name), Speed, point(X, Y)), [[type:line, from:[X, Y], to:[TLX, TY], strokeColor:black], [type:line, from:[X, Y], to:[TRX, TY], strokeColor:black]]) :-
 4629    TLX is X-10,
 4630    TY is Y+15,
 4631    TRX is X+10.
 4632d(kitchenSummary(Count, Avg, Min, Max), [from:[400, 300], to:[600, 350], label:S, type:rectangle, fillColor:salmon]) :-
 4633    format(string(S),
 4634           "~w items, ~ndoneness ~2f (~2f-~2f)",
 4635           [Count, Avg, Min, Max]).
 4636d(timeless, [[type:rectangle, from:[0, 0], to:[600, 350], strokeColor:green]]).
 4637
 4638objectName(Name) :-
 4639    (   nonvar(Name)
 4640    ->  true
 4641    ;   gensym(object, Name)
 4642    ).
 4643
 4644notReachingConveyorEnds(0, _, _, _).
 4645notReachingConveyorEnds(Speed, _, End, Current) :-
 4646    Speed>0,
 4647    distance(Current, End, Delta),
 4648    Delta>=abs(Speed).
 4649notReachingConveyorEnds(Speed, Start, _End, Current) :-
 4650    Speed<0,
 4651    distance(Start, Current, Delta),
 4652    Delta>=abs(Speed).
 4653
 4654l_int(holds(conveyor(A, B, C, D, E), F), [holds(conveyorEndpoint(A, C), F), holds(location(A, B), F), holds(working(A, D), F), holds(conveyorSpeed(A, E), F)]).
 4655l_int(holds(container(A, B, C), D), [holds(container(A, B), D), holds(location(A, C), D)]).
 4656l_int(holds(cookable(A, B, C, D), E), [holds(cookable(A, B, C), E), holds(location(A, D), E)]).
 4657l_int(holds(dropper(A, B, C), D), [holds(dropper(A, B, _, _, _), D), holds(location(A, C), D)]).
 4658l_int(holds(kitchenSummary(A, B, C, D), E), [holds(findall(F, [holds(cookable(_, _, F), E)], G), E), length(G, A), A>0, sum_list(G, H), B is H/A, min_list(G, C), max_list(G, D)]).
 4659
 4660reactive_rule([holds(conveyorSpeed(A, B), C), holds(working(A, true), C), holds(transports(A, D), C), holds(conveyorEndpoint(A, E), C), holds(location(D, F), C), holds(location(A, G), C), notReachingConveyorEnds(B, G, E, F)], [newPosition(F, G, E, B, H), happens(update(F-H, location(D, F)), C, _)]).
 4661reactive_rule([holds(heater(A, B, C, _), D), holds(working(A, true), D), holds(heatable(E, F), D), holds(location(E, G), D), \+inside(G, B, C), holds(location(E, H), D+1), inside(H, B, C)], [happens(initiate(initialTemperature(A, E, F)), D+1, _)]).
 4662reactive_rule([holds(heater(A, B, C, D), E), holds(working(A, true), E), holds(heatable(F, _), E), holds(location(F, G), E), inside(G, B, C)], [happens(update(H-D, heatable(F, H)), E, _)]).
 4663reactive_rule([holds(heater(A, B, C, _), D), holds(working(A, true), D), holds(heatable(E, F), D), holds(location(E, G), D), inside(G, B, C), holds(location(E, H), D+1), \+inside(H, B, C), holds(initialTemperature(A, E, I), _)], [happens(terminate(initialTemperature(A, E, I)), D+1, _), happens(update(F-I, heatable(E, F)), D+1, _)]).
 4664reactive_rule([holds(cookable(A, B, C), D), holds(heatable(A, E), D), E>B], [F is C+(E-B)*0.01, happens(update(C-F, cookable(A, B, C)), _, _)]).
 4665reactive_rule([holds(pump(A, B, C), D), holds(working(A, true), D), holds(container(B, E), D)], [holds(pumpFlow(A, F), D), E-F>=0, happens(pumpIt(B, -F), D, _), happens(pumpIt(C, F), D, _)]).
 4666reactive_rule([holds(dropper(A, B, C, D, E), F), holds(working(A, true), F), B*(F-E)>=1], [happens(update(G-F, dropper(A, B, C, D, G)), F, F+1), H is round(B*(F-E)), happens(clone(H, C, I), F, F+1), happens(drop(I, D), F+1, F+2)]).
 4667reactive_rule([holds(true, 1)], [happens(createContainer(hotOil, 50, A), B, C), happens(createContainer(usedOil, 5, D), B, C), happens(createContainer(newOil, 30, E), B, C), happens(setLocation(A, point(300, 200)), C, F), happens(setLocation(D, point(200, 0)), C, F), happens(setLocation(E, point(200, 80)), C, F), happens(createPump(outward, A, D, G), C, F), happens(createPump(inward, D, A, H), C, F), happens(setPumpFlow(G, 1), F, _), happens(setPumpFlow(H, 1), F, _), happens(start(G), F, _), happens(start(H), F, I), happens(createConveyor(feeding, point(550, 140), point(50, 140), J), I, K), happens(setConveyorSpeed(J, 10), K, L), happens(start(J), K, L), happens(createHeater(_, point(100, 75), point(500, 290), 150, M), L, N), happens(start(M), N, _), happens(createCookable(shrimp, 4, O), N, P), happens(setLocation(O, point(-20, -20)), P, _), happens(createDropper(_, 0.25, O, J, Q), P, R), happens(start(Q), R, _)]).
 4668% dB(/.../(lps_user_examples, 'cooking.pl'), lps_visualization(_1247824{groups:[_968256{content:"container(A,B)", id:"container/2", order:3, subgroupStack:"false"}, _968282{content:"conveyorEndpoint(A,B)", id:"conveyorEndpoint/2", order:3, subgroupStack:"false"}, _968308{content:"conveyorSpeed(A,B)", id:"conveyorSpeed/2", order:3, subgroupStack:"false"}, _968334{content:"cookable(A,B,C)", id:"cookable/3", order:3, subgroupStack:"false"}, _968360{content:"dropper(A,B,C,D,E)", id:"dropper/5", order:3, subgroupStack:"false"}, _968386{content:"heatable(A,B)", id:"heatable/2", order:3, subgroupStack:"false"}, _968412{content:"heater(A,B,C,D)", id:"heater/4", order:3, subgroupStack:"false"}, _968438{content:"initialTemperature(A,B,C)", id:"initialTemperature/3", order:3, subgroupStack:"false"}, _968464{content:"location(A,B)", id:"location/2", order:3, subgroupStack:"false"}, _968490{content:"pump(A,B,C)", id:"pump/3", order:3, subgroupStack:"false"}, _968516{content:"pumpFlow(A,B)", id:"pumpFlow/2", order:3, subgroupStack:"false"}, _968542{content:"transports(A,B)", id:"transports/2", order:3, subgroupStack:"false"}, _968568{content:"working(A,B)", id:"working/2", order:3, subgroupStack:"false"}, _968594{content:"Actions", id:"action", order:4}], items:[_968628{content:"container(hotOil),50", end:101, group:"container/2", id:0, start:2, subgroup:"container(hotOil)", title:"Fluent container(container(hotOil),50) initiated at 2<br/>and terminated at transition to 101"}, _968666{content:"container(newOil),30", end:101, group:"container/2", id:1, start:2, subgroup:"container(newOil)", title:"Fluent container(container(newOil),30) initiated at 2<br/>and terminated at transition to 101"}, _968704{content:"container(usedOil),5", end:101, group:"container/2", id:2, start:2, subgroup:"container(usedOil)", title:"Fluent container(container(usedOil),5) initiated at 2<br/>and terminated at transition to 101"}, ...(_1258922)]}, _1257940{cycles:[[_1257108{create:[_1257084{from:[0, 0], id:"timeless", strokeColor:"green", to:[600, 350], type:"rectangle"}]}], [], [], ...(_1262716)]})).
 4669% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'deliveryDelay.pl')).
 4670% run_lps_corner_file1(/.../(lps_user_examples, 'deliveryDelay.pl')).
 4671% :-listing('/pack/logicmoo_ec/test/lps_user_examples/deliveryDelay.pl':_1279298).
 4672
 4673% dB(/.../(lps_user_examples, 'deliveryDelay.pl'), lps_visualization(_1392242{groups:[], items:[]}, [])).
 4674% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'delivery.pl')).
 4675% run_lps_corner_file1(/.../(lps_user_examples, 'delivery.pl')).
 4676% /pack/logicmoo_ec/test/lps_user_examples/delivery.pl:1
 4677% push_lps_dialect.
 4678% ops.
 4679% [ti=user, load= /.../(lps_user_examples, 'delivery.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'delivery.pl'), lps= /.../(lps_user_examples, 'delivery.pl'), using= /.../(lps_user_examples, 'delivery.pl')].
 4680% continue_lps_dialect.
 4681% ops.
 4682
 4683% LPS:  fluents((day/1,penalty/2,delivered/1,force_majeure/1,terminated/1)).
 4684% Into: fluents([day(_1428926),penalty(_1428936,_1428938),delivered(_1428948),force_majeure(_1428958),terminated(_1428968)]).
 4685
 4686% LPS:  events((end_of_day/1,deliver/1)).
 4687% Into: events([end_of_day(_1429960),deliver(_1429970)]).
 4688
 4689% LPS:  initiates(deliver(_1429906),delivered(_1429906)).
 4690% Into: initiated(happens(deliver(_1429906),_1431054,_1431060),delivered(_1429906),[]).
 4691
 4692% LPS:  if(updates(end_of_day(_1431050),in(to(_1431086,_1431088),penalty(_1431168,_1431086))),(latest_delivery(_1431168,_1431290),not(delivered(_1431168)),day(_1431402),_1431402@>_1431290,days_difference(_1431290,_1431536,_1431402),not(force_majeure(_1431586)),not(terminated(_1431168)),total_value(_1431168,_1431738),penalty_percentage(_1431168,_1431794),percentage_cap(_1431168,_1431850),_1431088 is _1431794*_1431738*_1431536,_1432094 is _1431850*_1431738,_1431088=<_1432094)).
 4693% Into: updated(happens(end_of_day(_1431050),_1434044,_1434050),penalty(_1431168,_1431086),_1431086-_1431088,[latest_delivery(_1431168,_1431290),holds(not(delivered(_1431168)),_1434044),holds(day(_1431402),_1434044),_1431402@>_1431290,days_difference(_1431290,_1431536,_1431402),holds(not(force_majeure(_1431586)),_1434044),holds(not(terminated(_1431168)),_1434044),total_value(_1431168,_1431738),penalty_percentage(_1431168,_1431794),percentage_cap(_1431168,_1431850),_1431088 is _1431794*_1431738*_1431536,_1432094 is _1431850*_1431738,_1431088=<_1432094]).
 4694
 4695% LPS:  if(at(entitled(terminate(_1438268,_1438270)),_1438296),(buyer(_1438270,_1438268),latest_delivery(_1438270,_1438434),at(not(delivered(_1438270)),_1438296),at(day(_1438586),_1438296),_1438586@>_1438434)).
 4696% Into: l_int(holds(entitled(terminate(_1438268,_1438270)),_1438296),[buyer(_1438270,_1438268),latest_delivery(_1438270,_1438434),holds(not(delivered(_1438270)),_1438296),holds(day(_1438586),_1438296),_1438586@>_1438434]).
 4697
 4698% LPS:  initially(penalty(mydelivery,0)).
 4699% Into: initial_state([penalty(mydelivery,0)]).
 4700
 4701% LPS:  observe(from(deliver(mydelivery),to(11,12))).
 4702% Into: observe([deliver(mydelivery)],12).
 4703
 4704% LPS:  initially(day(2018/3/31)).
 4705% Into: initial_state([day(2018/3/31)]).
 4706
 4707% LPS:  observe(from(end_of_day(2018/3/31),to(2,3))).
 4708% Into: observe([end_of_day(2018/3/31)],3).
 4709
 4710% LPS:  observe(from(end_of_day(2018/4/1),to(4,5))).
 4711% Into: observe([end_of_day(2018/4/1)],5).
 4712
 4713% LPS:  observe(from(end_of_day(2018/4/2),to(6,7))).
 4714% Into: observe([end_of_day(2018/4/2)],7).
 4715
 4716% LPS:  observe(from(end_of_day(2018/4/3),to(8,9))).
 4717% Into: observe([end_of_day(2018/4/3)],9).
 4718
 4719% LPS:  observe(from(end_of_day(2018/4/4),to(10,11))).
 4720% Into: observe([end_of_day(2018/4/4)],11).
 4721
 4722% LPS:  observe(from(end_of_day(2018/4/5),to(12,13))).
 4723% Into: observe([end_of_day(2018/4/5)],13).
 4724
 4725% LPS:  observe(from(end_of_day(2018/4/6),to(14,15))).
 4726% Into: observe([end_of_day(2018/4/6)],15).
 4727
 4728% LPS:  if(updates(end_of_day(_1463460),in(to(_1463496,_1463498),day(_1463496))),next_day(_1463496,_1463498)).
 4729% Into: updated(happens(end_of_day(_1463460),_1464890,_1464896),day(_1463496),_1463496-_1463498,[next_day(_1463496,_1463498)]).
 4730% /pack/logicmoo_ec/test/lps_user_examples/delivery.pl:95
 4731% pop_lps_dialect('$BLOB'("<stream>(0x562ef76d7b00)"),  (/.../(lps_user_examples, 'delivery.pl')-> /.../(lps_user_examples, 'delivery.pl'))).
 4732% ops.
 4733% :-listing('/pack/logicmoo_ec/test/lps_user_examples/delivery.pl':_1478026).
 4734
 4735
 4736initiated(happens(deliver(A), _, _), delivered(A), []).
 4737
 4738percentage_cap(mydelivery, 0.5).
 4739
 4740latest_delivery(mydelivery, 2018/4/1).
 4741
 4742total_value(mydelivery, 100).
 4743
 4744fluents([day(_), penalty(_, _), delivered(_), force_majeure(_), terminated(_)]).
 4745
 4746l_int(holds(entitled(terminate(A, B)), C), [buyer(B, A), latest_delivery(B, D), holds(not(delivered(B)), C), holds(day(E), C), E@>D]).
 4747
 4748next_day(2018/3/31, 2018/4/1).
 4749next_day(Year/4/Day1, Year/4/Day2) :-
 4750    Day1<31,
 4751    Day2 is Day1+1.
 4752
 4753seller(mydelivery, bob).
 4754
 4755buyer(mydelivery, alex).
 4756
 4757initial_state([penalty(mydelivery, 0)]).
 4758initial_state([day(2018/3/31)]).
 4759
 4760penalty_percentage(mydelivery, 0.2).
 4761
 4762days_difference(Year/Month/Day1, Difference, Year/Month/Day2) :-
 4763    Difference is Day2-Day1.
 4764
 4765:- dynamic actions/1. 4766:- multifile actions/1. 4767
 4768
 4769events([end_of_day(_), deliver(_)]).
 4770
 4771updated(happens(end_of_day(_), A, _), penalty(B, C), C-D, [latest_delivery(B, E), holds(not(delivered(B)), A), holds(day(F), A), F@>E, days_difference(E, G, F), holds(not(force_majeure(_)), A), holds(not(terminated(B)), A), total_value(B, H), penalty_percentage(B, I), percentage_cap(B, J), D is I*H*G, K is J*H, D=<K]).
 4772updated(happens(end_of_day(_), _, _), day(A), A-B, [next_day(A, B)]).
 4773
 4774observe([deliver(mydelivery)], 12).
 4775observe([end_of_day(2018/3/31)], 3).
 4776observe([end_of_day(2018/4/1)], 5).
 4777observe([end_of_day(2018/4/2)], 7).
 4778observe([end_of_day(2018/4/3)], 9).
 4779observe([end_of_day(2018/4/4)], 11).
 4780observe([end_of_day(2018/4/5)], 13).
 4781observe([end_of_day(2018/4/6)], 15).
 4782
 4783equipment(mydelivery, logicforproblemsolving).
 4784% dB(/.../(lps_user_examples, 'delivery.pl'), lps_visualization(_1623562{groups:[_1620780{content:"Events", id:"event", order:1}, _1620854{content:"day(A)", id:"day/1", order:3, subgroupStack:"false"}, _1620932{content:"delivered(A)", id:"delivered/1", order:3, subgroupStack:"false"}, _1621010{content:"penalty(A,B)", id:"penalty/2", order:3, subgroupStack:"false"}], items:[_1621136{content:"2018/3/31", end:3, group:"day/1", id:0, start:1, subgroup:"2018/3/31", title:"Fluent day(2018/3/31) initiated at 1<br/>and terminated at transition to 3"}, _1621262{content:"2018/4/1", end:5, group:"day/1", id:1, start:3, subgroup:"2018/4/1", title:"Fluent day(2018/4/1) initiated at 3<br/>and terminated at transition to 5"}, _1621388{content:"2018/4/2", end:7, group:"day/1", id:2, start:5, subgroup:"2018/4/2", title:"Fluent day(2018/4/2) initiated at 5<br/>and terminated at transition to 7"}, _1621514{content:"2018/4/3", end:9, group:"day/1", id:3, start:7, subgroup:"2018/4/3", title:"Fluent day(2018/4/3) initiated at 7<br/>and terminated at transition to 9"}, _1621640{content:"2018/4/4", end:11, group:"day/1", id:4, start:9, subgroup:"2018/4/4", title:"Fluent day(2018/4/4) initiated at 9<br/>and terminated at transition to 11"}, _1621766{content:"2018/4/5", end:13, group:"day/1", id:5, start:11, subgroup:"2018/4/5", title:"Fluent day(2018/4/5) initiated at 11<br/>and terminated at transition to 13"}, _1621892{content:"2018/4/6", end:15, group:"day/1", id:6, start:13, subgroup:"2018/4/6", title:"Fluent day(2018/4/6) initiated at 13<br/>and terminated at transition to 15"}, _1622018{content:"2018/4/7", end:21, group:"day/1", id:7, start:15, subgroup:"2018/4/7", title:"Fluent day(2018/4/7) initiated at 15<br/>and terminated at transition to 21"}, _1622144{content:"mydelivery", end:21, group:"delivered/1", id:8, start:12, subgroup:"mydelivery", title:"Fluent delivered(mydelivery) initiated at 12<br/>and terminated at transition to 21"}, _1622270{content:"mydelivery,0", end:7, group:"penalty/2", id:9, start:1, subgroup:"mydelivery", title:"Fluent penalty(mydelivery,0) initiated at 1<br/>and terminated at transition to 7"}, _1622396{content:"mydelivery,20.0", end:9, group:"penalty/2", id:10, start:7, subgroup:"mydelivery", title:"Fluent penalty(mydelivery,20.0) initiated at 7<br/>and terminated at transition to 9"}, _1622522{content:"mydelivery,40.0", end:21, group:"penalty/2", id:11, start:9, subgroup:"mydelivery", title:"Fluent penalty(mydelivery,40.0) initiated at 9<br/>and terminated at transition to 21"}, _1622648{content:"end_of_day(2018/3/31)", group:"event", id:12, start:3, style:"color:#E19735", title:"happens(end_of_day(2018/3/31),2,3)", type:"point"}, _1622774{content:"end_of_day(2018/4/1)", group:"event", id:13, start:5, style:"color:#E19735", title:"happens(end_of_day(2018/4/1),4,5)", type:"point"}, _1622900{content:"end_of_day(2018/4/2)", group:"event", id:14, start:7, style:"color:#E19735", title:"happens(end_of_day(2018/4/2),6,7)", type:"point"}, _1623026{content:"end_of_day(2018/4/3)", group:"event", id:15, start:9, style:"color:#E19735", title:"happens(end_of_day(2018/4/3),8,9)", type:"point"}, _1623152{content:"end_of_day(2018/4/4)", group:"event", id:16, start:11, style:"color:#E19735", title:"happens(end_of_day(2018/4/4),10,11)", type:"point"}, _1623278{content:"deliver(mydelivery)", group:"event", id:17, start:12, style:"color:#E19735", title:"happens(deliver(mydelivery),11,12)", type:"point"}, _1623404{content:"end_of_day(2018/4/5)", group:"event", id:18, start:13, style:"color:#E19735", title:"happens(end_of_day(2018/4/5),12,13)", type:"point"}, _1623530{content:"end_of_day(2018/4/6)", group:"event", id:19, start:15, style:"color:#E19735", title:"happens(end_of_day(2018/4/6),14,15)", type:"point"}]}, [])).
 4785% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'emergencia.pl')).
 4786% run_lps_corner_file1(/.../(lps_user_examples, 'emergencia.pl')).
 4787% /pack/logicmoo_ec/test/lps_user_examples/emergencia.pl:1
 4788% push_lps_dialect.
 4789% ops.
 4790% [ti=user, load= /.../(lps_user_examples, 'emergencia.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'emergencia.pl'), lps= /.../(lps_user_examples, 'emergencia.pl'), using= /.../(lps_user_examples, 'emergencia.pl')].
 4791% continue_lps_dialect.
 4792% ops.
 4793
 4794% LPS:  fluents(emergencia).
 4795% Into: fluents([emergencia]).
 4796
 4797% LPS:  actions(presione_el_bot�n).
 4798% Into: actions([presione_el_bot�n]).
 4799
 4800% LPS:  events(alerte_al_conductor).
 4801% Into: events([alerte_al_conductor]).
 4802
 4803% LPS:  observe(from(emergencia,to(1,2))).
 4804% Into: observe([emergencia],2).
 4805
 4806% LPS:  then(if(at(emergencia,_1672600)),from(alerte_al_conductor,to(_1672600,_1672704))).
 4807% Into: reactive_rule([holds(emergencia,_1672600)],[happens(alerte_al_conductor,_1672600,_1672704)]).
 4808
 4809% LPS:  if(from(alerte_al_conductor,to(_1674278,_1674280)),from(presione_el_bot�n,to(_1674278,_1674280))).
 4810% Into: l_events(happens(alerte_al_conductor,_1674278,_1674280),[happens(presione_el_bot�n,_1674278,_1674280)]).
 4811% /pack/logicmoo_ec/test/lps_user_examples/emergencia.pl:20
 4812% pop_lps_dialect('$BLOB'("<stream>(0x562ef70be500)"),  (/.../(lps_user_examples, 'emergencia.pl')-> /.../(lps_user_examples, 'emergencia.pl'))).
 4813% ops.
 4814% :-listing('/pack/logicmoo_ec/test/lps_user_examples/emergencia.pl':_1683160).
 4815
 4816
 4817fluents([emergencia]).
 4818
 4819reactive_rule([holds(emergencia, A)], [happens(alerte_al_conductor, A, _)]).
 4820
 4821l_events(happens(alerte_al_conductor, A, B), [happens(presione_el_bot�n, A, B)]).
 4822
 4823:- dynamic actions/1. 4824:- multifile actions/1. 4825
 4826actions([presione_el_bot�n]).
 4827
 4828events([alerte_al_conductor]).
 4829
 4830observe([emergencia], 2).
 4831
 4832maxTime(5).
 4833% dB(/.../(lps_user_examples, 'emergencia.pl'), lps_visualization(_1720846{groups:[_1720692{content:"Events", id:"event", order:1}], items:[_1720814{content:"emergencia", group:"event", id:0, start:2, style:"color:#E19735", title:"happens(emergencia,1,2)", type:"point"}]}, [])).
 4834% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'emergenciasimple.pl')).
 4835% run_lps_corner_file1(/.../(lps_user_examples, 'emergenciasimple.pl')).
 4836% /pack/logicmoo_ec/test/lps_user_examples/emergenciasimple.pl:1
 4837% push_lps_dialect.
 4838% ops.
 4839% [ti=user, load= /.../(lps_user_examples, 'emergenciasimple.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'emergenciasimple.pl'), lps= /.../(lps_user_examples, 'emergenciasimple.pl'), using= /.../(lps_user_examples, 'emergenciasimple.pl')].
 4840% continue_lps_dialect.
 4841% ops.
 4842
 4843% LPS:  actions(presione_el_bot�n).
 4844% Into: actions([presione_el_bot�n]).
 4845
 4846% LPS:  events((emergencia,alerte_al_conductor)).
 4847% Into: events([emergencia,alerte_al_conductor]).
 4848
 4849% LPS:  observe(from(emergencia,to(1,2))).
 4850% Into: observe([emergencia],2).
 4851
 4852% LPS:  then(if(from(emergencia,to(_1760562,_1760564))),from(alerte_al_conductor,to(_1760564,_1760700))).
 4853% Into: reactive_rule([happens(emergencia,_1760562,_1760564)],[happens(alerte_al_conductor,_1760564,_1760700)]).
 4854
 4855% LPS:  if(from(alerte_al_conductor,to(_1761858,_1761860)),from(presione_el_bot�n,to(_1761858,_1761860))).
 4856% Into: l_events(happens(alerte_al_conductor,_1761858,_1761860),[happens(presione_el_bot�n,_1761858,_1761860)]).
 4857% /pack/logicmoo_ec/test/lps_user_examples/emergenciasimple.pl:19
 4858% pop_lps_dialect('$BLOB'("<stream>(0x562ef70bfc00)"),  (/.../(lps_user_examples, 'emergenciasimple.pl')-> /.../(lps_user_examples, 'emergenciasimple.pl'))).
 4859% ops.
 4860% :-listing('/pack/logicmoo_ec/test/lps_user_examples/emergenciasimple.pl':_1770746).
 4861
 4862
 4863reactive_rule([happens(emergencia, _, A)], [happens(alerte_al_conductor, A, _)]).
 4864
 4865l_events(happens(alerte_al_conductor, A, B), [happens(presione_el_bot�n, A, B)]).
 4866
 4867:- dynamic actions/1. 4868:- multifile actions/1. 4869
 4870actions([presione_el_bot�n]).
 4871
 4872events([emergencia, alerte_al_conductor]).
 4873
 4874observe([emergencia], 2).
 4875
 4876maxTime(5).
 4877
 4878% dB(/.../(lps_user_examples, 'emergenciasimple.pl'), lps_visualization(_1815414{groups:[_1815072{content:"Events", id:"event", order:1}, _1815134{content:"Actions", id:"action", order:4}], items:[_1815256{content:"emergencia", group:"event", id:0, start:2, style:"color:#E19735", title:"happens(emergencia,1,2)", type:"point"}, _1815382{content:"presione_el_bot�n", group:"action", id:1, start:3, style:"color:green", title:"happens(presione_el_bot�n,2,3)", type:"point"}]}, [])).
 4879% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'emergency.pl')).
 4880% run_lps_corner_file1(/.../(lps_user_examples, 'emergency.pl')).
 4881% /pack/logicmoo_ec/test/lps_user_examples/emergency.pl:1
 4882% push_lps_dialect.
 4883% ops.
 4884% [ti=user, load= /.../(lps_user_examples, 'emergency.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'emergency.pl'), lps= /.../(lps_user_examples, 'emergency.pl'), using= /.../(lps_user_examples, 'emergency.pl')].
 4885% continue_lps_dialect.
 4886% ops.
 4887
 4888% LPS:  fluents(emergency).
 4889% Into: fluents([emergency]).
 4890
 4891% LPS:  actions(press(_1853490)).
 4892% Into: actions([press(_1853490)]).
 4893
 4894% LPS:  events(alert/1).
 4895% Into: events([alert(_1855572)]).
 4896
 4897% LPS:  initially(emergency).
 4898% Into: initial_state([emergency]).
 4899
 4900% LPS:  then(if(at(emergency,_1856564)),from(alert(driver),to(_1856564,_1856692))).
 4901% Into: reactive_rule([holds(emergency,_1856564)],[happens(alert(driver),_1856564,_1856692)]).
 4902
 4903% LPS:  if(from(alert(driver),to(_1858294,_1858296)),from(press(buttom),to(_1858294,_1858296))).
 4904% Into: l_events(happens(alert(driver),_1858294,_1858296),[happens(press(buttom),_1858294,_1858296)]).
 4905
 4906% LPS:  terminates(alert(driver),emergency).
 4907% Into: terminated(happens(alert(driver),_1860668,_1860674),emergency,[]).
 4908% /pack/logicmoo_ec/test/lps_user_examples/emergency.pl:21
 4909% pop_lps_dialect('$BLOB'("<stream>(0x562ef70c1300)"),  (/.../(lps_user_examples, 'emergency.pl')-> /.../(lps_user_examples, 'emergency.pl'))).
 4910% ops.
 4911% :-listing('/pack/logicmoo_ec/test/lps_user_examples/emergency.pl':_1868246).
 4912
 4913
 4914fluents([emergency]).
 4915
 4916terminated(happens(alert(driver), _, _), emergency, []).
 4917
 4918reactive_rule([holds(emergency, A)], [happens(alert(driver), A, _)]).
 4919
 4920initial_state([emergency]).
 4921
 4922l_events(happens(alert(driver), A, B), [happens(press(buttom), A, B)]).
 4923
 4924:- dynamic actions/1. 4925:- multifile actions/1. 4926
 4927actions([press(_)]).
 4928
 4929events([alert(_)]).
 4930
 4931maxTime(5).
 4932% dB(/.../(lps_user_examples, 'emergency.pl'), lps_visualization(_1922360{groups:[_1921904{content:"emergency", id:"emergency/0", order:3, subgroupStack:"false"}, _1921970{content:"Actions", id:"action", order:4}], items:[_1922080{content:"emergency", end:2, group:"emergency/0", id:0, start:1, title:"Fluent emergency initiated at 1<br/>and terminated at transition to 2"}, _1922202{content:"press(buttom)", group:"action", id:1, start:2, style:"color:green", title:"happens(press(buttom),1,2)", type:"point"}, _1922328{content:"press(buttom)", group:"action", id:2, start:3, style:"color:green", title:"happens(press(buttom),2,3)", type:"point"}]}, [])).
 4933% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'end of daay.pl')).
 4934% run_lps_corner_file1(/.../(lps_user_examples, 'end of daay.pl')).
 4935% /pack/logicmoo_ec/test/lps_user_examples/end of daay.pl:1
 4936% push_lps_dialect.
 4937% ops.
 4938% [ti=user, load= /.../(lps_user_examples, 'end of daay.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'end of daay.pl'), lps= /.../(lps_user_examples, 'end of daay.pl'), using= /.../(lps_user_examples, 'end of daay.pl')].
 4939% continue_lps_dialect.
 4940% ops.
 4941% /pack/logicmoo_ec/test/lps_user_examples/end of daay.pl:3
 4942% pop_lps_dialect('$BLOB'("<stream>(0x562ef76d8e00)"),  (/.../(lps_user_examples, 'end of daay.pl')-> /.../(lps_user_examples, 'end of daay.pl'))).
 4943% ops.
 4944% :-listing('/pack/logicmoo_ec/test/lps_user_examples/end of daay.pl':_1966472).
 4945
 4946
 4947:- dynamic actions/1. 4948:- multifile actions/1. 4949
 4950% dB(/.../(lps_user_examples, 'end of daay.pl'), lps_visualization(_2077176{groups:[], items:[]}, [])).
 4951% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'end of day.pl')).
 4952% run_lps_corner_file1(/.../(lps_user_examples, 'end of day.pl')).
 4953% /pack/logicmoo_ec/test/lps_user_examples/end of day.pl:1
 4954% push_lps_dialect.
 4955% ops.
 4956% [ti=user, load= /.../(lps_user_examples, 'end of day.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'end of day.pl'), lps= /.../(lps_user_examples, 'end of day.pl'), using= /.../(lps_user_examples, 'end of day.pl')].
 4957% continue_lps_dialect.
 4958% ops.
 4959% /pack/logicmoo_ec/test/lps_user_examples/end of day.pl:3
 4960% pop_lps_dialect('$BLOB'("<stream>(0x562ef6884e00)"),  (/.../(lps_user_examples, 'end of day.pl')-> /.../(lps_user_examples, 'end of day.pl'))).
 4961% ops.
 4962% :-listing('/pack/logicmoo_ec/test/lps_user_examples/end of day.pl':_2119616).
 4963
 4964
 4965:- dynamic actions/1. 4966:- multifile actions/1. 4967
 4968% dB(/.../(lps_user_examples, 'end of day.pl'), lps_visualization(_2230320{groups:[], items:[]}, [])).
 4969% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'eventgraph.pl')).
 4970% run_lps_corner_file1(/.../(lps_user_examples, 'eventgraph.pl')).
 4971% /pack/logicmoo_ec/test/lps_user_examples/eventgraph.pl:1
 4972% push_lps_dialect.
 4973% ops.
 4974% [ti=user, load= /.../(lps_user_examples, 'eventgraph.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'eventgraph.pl'), lps= /.../(lps_user_examples, 'eventgraph.pl'), using= /.../(lps_user_examples, 'eventgraph.pl')].
 4975% continue_lps_dialect.
 4976% ops.
 4977% /pack/logicmoo_ec/test/lps_user_examples/eventgraph.pl:92
 4978% pop_lps_dialect('$BLOB'("<stream>(0x562ef33a8d00)"),  (/.../(lps_user_examples, 'eventgraph.pl')-> /.../(lps_user_examples, 'eventgraph.pl'))).
 4979% ops.
 4980% :-listing('/pack/logicmoo_ec/test/lps_user_examples/eventgraph.pl':_2294948).
 4981
 4982
 4983alledges(L) :-
 4984    findall(X,
 4985            ( base(B),
 4986              member(Event, B),
 4987              event2edge(Event, X)
 4988            ),
 4989            L).
 4990
 4991event2edge(event(A, Rel, B), subgraph(RelID, [node([style=filled]), edge([label=Rel]),  (A->B)])) :-
 4992    gensym(Rel, RelID),
 4993    not(A=B).
 4994
 4995copyfromto(_C, _N, _M, [], []).
 4996copyfromto(A, B, C, [D|E], [D|F]) :-
 4997    B=<A,
 4998    <=(A, C),
 4999    !,
 5000    G is A+1,
 5001    copyfromto(G, B, C, E, F).
 5002copyfromto(C, N, M, [_H|R1], R2) :-
 5003    CC is C+1,
 5004    copyfromto(CC, N, M, R1, R2).
 5005
 5006:- dynamic'swish renderer'/2. 5007
 5008'swish renderer'(graphviz, []).
 5009
 5010base([event('CD8', bind, 'CD4'), event('CD4', regulate, 'SARS-CoV-2'), event('CD8', regulate, 'SARS-CoV-2'), event('CD8', inhibit, 'SARS-CoV-2'), event('CD4', inhibit, 'SARS-CoV-2'), event('CD4', regulate, 'JAK3'), event('CD8', regulate, 'JAK3'), event('CD8', inhibit, 'JAK3'), event('CD4', bind, 'JAK3'), event('CD4', inhibit, 'JAK3'), event('CD4', bind, 'CD8'), event('CD8', bind, 'SARS-CoV-2'), event('CD8', bind, 'JAK3'), event('CD4', associate, 'JAK3'), event('JAK3', regulate, 'JAK3'), event('JAK3', bind, 'JAK3'), event('JAK3', inhibit, 'JAK3'), event('JAK3', associate, 'STAT'), event('STAT', regulate, 'SARS-CoV-2'), event('STAT', inhibit, 'SARS-CoV-2'), event('STAT', associate, 'MHC'), event('MHC', bind, 'SARS-CoV-2'), event('MHC', inhibit, 'SARS-CoV-2'), event('MHC', regulate, 'SARS-CoV-2'), event('MHC', associate, importin), event(importin, inhibit, 'SARS-CoV-2'), event(importin, regulate, 'SARS-CoV-2'), event(importin, bind, 'SARS-CoV-2'), event('JAK3', associate, 'MHC'), event('MHC', associate, 'STAT'), event(importin, associate, 'STAT'), event('JAK3', associate, importin), event(importin, associate, 'MHC'), event('CD4', associate, 'STAT'), event('STAT', regulate, 'JAK3'), event('STAT', bind, 'JAK3'), event('STAT', inhibit, 'JAK3'), event('STAT', associate, 'JAK3'), event('MHC', bind, 'JAK3'), event('MHC', regulate, 'JAK3'), event('MHC', inhibit, 'JAK3'), event('MHC', associate, 'JAK3'), event(importin, regulate, 'JAK3'), event(importin, inhibit, 'JAK3'), event(importin, bind, 'JAK3'), event('CD4', associate, 'MHC'), event('CD8', associate, 'JAK3'), event('CD8', associate, 'STAT'), event('CD8', associate, 'MHC')]).
 5011
 5012:- dynamic actions/1. 5013:- multifile actions/1. 5014
 5015
 5016draw_graph(N, M, digraph(F)) :-
 5017    alledges(L),
 5018    copyfromto(1, N, M, L, F).
 5019
 5020test1(SG) :-
 5021    event2edge(event('CD4', increase, 'RUNX1'), SG).
 5022% dB(/.../(lps_user_examples, 'eventgraph.pl'), lps_visualization(_2413030{groups:[], items:[]}, [])).
 5023% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'eYStcpBj.pl')).
 5024% run_lps_corner_file1(/.../(lps_user_examples, 'eYStcpBj.pl')).
 5025% /pack/logicmoo_ec/test/lps_user_examples/eYStcpBj.pl:1
 5026% push_lps_dialect.
 5027% ops.
 5028% [ti=user, load= /.../(lps_user_examples, 'eYStcpBj.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'eYStcpBj.pl'), lps= /.../(lps_user_examples, 'eYStcpBj.pl'), using= /.../(lps_user_examples, 'eYStcpBj.pl')].
 5029% continue_lps_dialect.
 5030% ops.
 5031
 5032% LPS:  fluents((leon_atrapado,liberar_leon,salvar_leon)).
 5033% Into: fluents([leon_atrapado,liberar_leon,salvar_leon]).
 5034
 5035% LPS:  actions((precavido,utilizar_dientes,correr)).
 5036% Into: actions([precavido,utilizar_dientes,correr]).
 5037
 5038% LPS:  events((liberar,cortar_amarre,escapar_trampa)).
 5039% Into: events([liberar,cortar_amarre,escapar_trampa]).
 5040
 5041% LPS:  initially(leon_atrapado).
 5042% Into: initial_state([leon_atrapado]).
 5043
 5044% LPS:  then(if(at(leon_atrapado,_2453160)),from(liberar,to(_2453160,_2453264))).
 5045% Into: reactive_rule([holds(leon_atrapado,_2453160)],[happens(liberar,_2453160,_2453264)]).
 5046
 5047% LPS:  if(from(liberar,to(_2454838,_2454840)),from(precavido,to(_2454838,_2454840))).
 5048% Into: l_events(happens(liberar,_2454838,_2454840),[happens(precavido,_2454838,_2454840)]).
 5049
 5050% LPS:  terminates(liberar,leon_atrapado).
 5051% Into: terminated(happens(liberar,_2457148,_2457154),leon_atrapado,[]).
 5052
 5053% LPS:  initially(liberar_leon).
 5054% Into: initial_state([liberar_leon]).
 5055
 5056% LPS:  then(if(at(liberar_leon,_2458102)),from(cortar_amarre,to(_2458102,_2458206))).
 5057% Into: reactive_rule([holds(liberar_leon,_2458102)],[happens(cortar_amarre,_2458102,_2458206)]).
 5058
 5059% LPS:  if(from(cortar_amarre,to(_2459346,_2459348)),from(utilizar_dientes,to(_2459346,_2459348))).
 5060% Into: l_events(happens(cortar_amarre,_2459346,_2459348),[happens(utilizar_dientes,_2459346,_2459348)]).
 5061
 5062% LPS:  terminates(cortar_amarre,liberar_leon).
 5063% Into: terminated(happens(cortar_amarre,_2461656,_2461662),liberar_leon,[]).
 5064
 5065% LPS:  initially(salvar_leon).
 5066% Into: initial_state([salvar_leon]).
 5067
 5068% LPS:  then(if(at(salvar_leon,_2462610)),from(escapar_trampa,to(_2462610,_2462714))).
 5069% Into: reactive_rule([holds(salvar_leon,_2462610)],[happens(escapar_trampa,_2462610,_2462714)]).
 5070
 5071% LPS:  if(from(escapar_trampa,to(_2463854,_2463856)),from(correr,to(_2463854,_2463856))).
 5072% Into: l_events(happens(escapar_trampa,_2463854,_2463856),[happens(correr,_2463854,_2463856)]).
 5073
 5074% LPS:  terminates(escapar_trampa,salvar_leon).
 5075% Into: terminated(happens(escapar_trampa,_2466164,_2466170),salvar_leon,[]).
 5076% /pack/logicmoo_ec/test/lps_user_examples/eYStcpBj.pl:34
 5077% pop_lps_dialect('$BLOB'("<stream>(0x562ef31d3a00)"),  (/.../(lps_user_examples, 'eYStcpBj.pl')-> /.../(lps_user_examples, 'eYStcpBj.pl'))).
 5078% ops.
 5079% :-listing('/pack/logicmoo_ec/test/lps_user_examples/eYStcpBj.pl':_2473710).
 5080
 5081
 5082fluents([leon_atrapado, liberar_leon, salvar_leon]).
 5083
 5084terminated(happens(liberar, _, _), leon_atrapado, []).
 5085terminated(happens(cortar_amarre, _, _), liberar_leon, []).
 5086terminated(happens(escapar_trampa, _, _), salvar_leon, []).
 5087
 5088reactive_rule([holds(leon_atrapado, A)], [happens(liberar, A, _)]).
 5089reactive_rule([holds(liberar_leon, A)], [happens(cortar_amarre, A, _)]).
 5090reactive_rule([holds(salvar_leon, A)], [happens(escapar_trampa, A, _)]).
 5091
 5092initial_state([leon_atrapado]).
 5093initial_state([liberar_leon]).
 5094initial_state([salvar_leon]).
 5095
 5096l_events(happens(liberar, A, B), [happens(precavido, A, B)]).
 5097l_events(happens(cortar_amarre, A, B), [happens(utilizar_dientes, A, B)]).
 5098l_events(happens(escapar_trampa, A, B), [happens(correr, A, B)]).
 5099
 5100:- dynamic actions/1. 5101:- multifile actions/1. 5102
 5103actions([precavido, utilizar_dientes, correr]).
 5104
 5105events([liberar, cortar_amarre, escapar_trampa]).
 5106
 5107maxTime(10).
 5108% dB(/.../(lps_user_examples, 'eYStcpBj.pl'), lps_visualization(_2595392{groups:[_2594056{content:"leon_atrapado", id:"leon_atrapado/0", order:3, subgroupStack:"false"}, _2594134{content:"liberar_leon", id:"liberar_leon/0", order:3, subgroupStack:"false"}, _2594212{content:"salvar_leon", id:"salvar_leon/0", order:3, subgroupStack:"false"}, _2594278{content:"Actions", id:"action", order:4}], items:[_2594388{content:"leon_atrapado", end:2, group:"leon_atrapado/0", id:0, start:1, title:"Fluent leon_atrapado initiated at 1<br/>and terminated at transition to 2"}, _2594498{content:"liberar_leon", end:2, group:"liberar_leon/0", id:1, start:1, title:"Fluent liberar_leon initiated at 1<br/>and terminated at transition to 2"}, _2594608{content:"salvar_leon", end:2, group:"salvar_leon/0", id:2, start:1, title:"Fluent salvar_leon initiated at 1<br/>and terminated at transition to 2"}, _2594730{content:"correr", group:"action", id:3, start:2, style:"color:green", title:"happens(correr,1,2)", type:"point"}, _2594856{content:"utilizar_dientes", group:"action", id:4, start:2, style:"color:green", title:"happens(utilizar_dientes,1,2)", type:"point"}, _2594982{content:"precavido", group:"action", id:5, start:2, style:"color:green", title:"happens(precavido,1,2)", type:"point"}, _2595108{content:"precavido", group:"action", id:6, start:3, style:"color:green", title:"happens(precavido,2,3)", type:"point"}, _2595234{content:"utilizar_dientes", group:"action", id:7, start:3, style:"color:green", title:"happens(utilizar_dientes,2,3)", type:"point"}, _2595360{content:"correr", group:"action", id:8, start:3, style:"color:green", title:"happens(correr,2,3)", type:"point"}]}, [])).
 5109% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'farmer, wolf, goat and cabbage.pl')).
 5110% run_lps_corner_file1(/.../(lps_user_examples, 'farmer, wolf, goat and cabbage.pl')).
 5111% /pack/logicmoo_ec/test/lps_user_examples/farmer, wolf, goat and cabbage.pl:1
 5112% push_lps_dialect.
 5113% ops.
 5114% [ti=user, load= /.../(lps_user_examples, 'farmer, wolf, goat and cabbage.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'farmer, wolf, goat and cabbage.pl'), lps= /.../(lps_user_examples, 'farmer, wolf, goat and cabbage.pl'), using= /.../(lps_user_examples, 'farmer, wolf, goat and cabbage.pl')].
 5115% continue_lps_dialect.
 5116% ops.
 5117
 5118% LPS:  actions(transport(_2636060,_2636062,_2636064)).
 5119% Into: actions([transport(_2636060,_2636062,_2636064)]).
 5120
 5121% LPS:  fluents(loc(_2637120,_2637122)).
 5122% Into: fluents([loc(_2637120,_2637122)]).
 5123
 5124% LPS:  initially((loc(wolf,south),loc(goat,south),loc(cabbage,south),loc(farmer,south))).
 5125% Into: initial_state([loc(wolf,south),loc(goat,south),loc(cabbage,south),loc(farmer,south)]).
 5126
 5127% LPS:  then(if((loc(_2639592,south),_2639592\=farmer)),from(makeLoc(_2639592,north),to(_2639806,_2639808))).
 5128% Into: reactive_rule([holds(loc(_2639592,south),_2640962),_2639592\=farmer],[happens(makeLoc(_2639592,north),_2639806,_2639808)]).
 5129
 5130% LPS:  if(from(makeLoc(_2641968,north),to(_2642006,_2642008)),(_2641968\=farmer,from(makeLoc(farmer,south),to(_2642006,_2642224)),at(loc(_2641968,south),_2642224),from(transport(_2641968,south,north),to(_2642224,_2642008)))).
 5131% Into: l_events(happens(makeLoc(_2641968,north),_2642006,_2642008),[_2641968\=farmer,happens(makeLoc(farmer,south),_2642006,_2642224),holds(loc(_2641968,south),_2642224),happens(transport(_2641968,south,north),_2642224,_2642008)]).
 5132
 5133% LPS:  if(from(makeLoc(farmer,_2644676),to(_2644712,_2644712)),at(loc(farmer,_2644676),_2644712)).
 5134% Into: l_events(happens(makeLoc(farmer,_2644676),_2644712,_2644712),[holds(loc(farmer,_2644676),_2644712)]).
 5135
 5136% LPS:  if(from(makeLoc(farmer,_2646004),to(_2646040,_2646042)),(at(loc(farmer,_2646156),_2646040),_2646004\=_2646156,at(loc(_2646322,_2646156),_2646040),_2646322\=farmer,from(transport(_2646322,_2646156,_2646004),to(_2646040,_2646042)))).
 5137% Into: l_events(happens(makeLoc(farmer,_2646004),_2646040,_2646042),[holds(loc(farmer,_2646156),_2646040),_2646004\=_2646156,holds(loc(_2646322,_2646156),_2646040),_2646322\=farmer,happens(transport(_2646322,_2646156,_2646004),_2646040,_2646042)]).
 5138
 5139% LPS:  if(from(makeLoc(farmer,_2648724),to(_2648760,_2648762)),(at(loc(farmer,_2648876),_2648760),_2648724\=_2648876,from(transport(farmer,_2648876,_2648724),to(_2648760,_2648762)))).
 5140% Into: l_events(happens(makeLoc(farmer,_2648724),_2648760,_2648762),[holds(loc(farmer,_2648876),_2648760),_2648724\=_2648876,happens(transport(farmer,_2648876,_2648724),_2648760,_2648762)]).
 5141
 5142% LPS:  updates(transport(_2650828,_2650830,_2650832),in(to(_2650830,_2650832),loc(_2650828,_2650830))).
 5143% Into: updated(happens(transport(_2650828,_2650830,_2650832),_2652184,_2652190),loc(_2650828,_2650830),_2650830-_2650832,[]).
 5144
 5145% LPS:  updates(transport(_2652098,_2652100,_2652102),in(to(_2652100,_2652102),loc(farmer,_2652100))).
 5146% Into: updated(happens(transport(_2652098,_2652100,_2652102),_2653454,_2653460),loc(farmer,_2652100),_2652100-_2652102,[]).
 5147
 5148% LPS:  false((transport(_2653376,_2653378,_2653380),transport(_2653448,_2653378,_2653380),_2653376\=_2653448)).
 5149% Into: d_pre([happens(transport(_2653376,_2653378,_2653380),_2654656,_2654662),happens(transport(_2653448,_2653378,_2653380),_2654656,_2654662),_2653376\=_2653448]).
 5150
 5151% LPS:  false((loc(goat,_2655070),loc(wolf,_2655070),not(loc(farmer,_2655070)))).
 5152% Into: d_pre([holds(loc(goat,_2655070),_2656318),holds(loc(wolf,_2655070),_2656318),holds(not(loc(farmer,_2655070)),_2656318)]).
 5153
 5154% LPS:  false((loc(goat,_2656362),loc(cabbage,_2656362),not(loc(farmer,_2656362)))).
 5155% Into: d_pre([holds(loc(goat,_2656362),_2657610),holds(loc(cabbage,_2656362),_2657610),holds(not(loc(farmer,_2656362)),_2657610)]).
 5156% /pack/logicmoo_ec/test/lps_user_examples/farmer, wolf, goat and cabbage.pl:73
 5157% pop_lps_dialect('$BLOB'("<stream>(0x562ef73e5500)"),  (/.../(lps_user_examples, 'farmer, wolf, goat and cabbage.pl')-> /.../(lps_user_examples, 'farmer, wolf, goat and cabbage.pl'))).
 5158% ops.
 5159% :-listing('/pack/logicmoo_ec/test/lps_user_examples/farmer, wolf, goat and cabbage.pl':_2665300).
 5160
 5161
 5162d_pre([happens(transport(A, B, C), D, E), happens(transport(F, B, C), D, E), A\=F]).
 5163d_pre([holds(loc(goat, A), B), holds(loc(wolf, A), B), holds(not(loc(farmer, A)), B)]).
 5164d_pre([holds(loc(goat, A), B), holds(loc(cabbage, A), B), holds(not(loc(farmer, A)), B)]).
 5165
 5166fluents([loc(_, _)]).
 5167
 5168reactive_rule([holds(loc(A, south), _), A\=farmer], [happens(makeLoc(A, north), _, _)]).
 5169
 5170initial_state([loc(wolf, south), loc(goat, south), loc(cabbage, south), loc(farmer, south)]).
 5171
 5172l_events(happens(makeLoc(A, north), B, C), [A\=farmer, happens(makeLoc(farmer, south), B, D), holds(loc(A, south), D), happens(transport(A, south, north), D, C)]).
 5173l_events(happens(makeLoc(farmer, A), B, B), [holds(loc(farmer, A), B)]).
 5174l_events(happens(makeLoc(farmer, A), B, C), [holds(loc(farmer, D), B), A\=D, holds(loc(E, D), B), E\=farmer, happens(transport(E, D, A), B, C)]).
 5175l_events(happens(makeLoc(farmer, A), B, C), [holds(loc(farmer, D), B), A\=D, happens(transport(farmer, D, A), B, C)]).
 5176
 5177:- dynamic actions/1. 5178:- multifile actions/1. 5179
 5180actions([transport(_, _, _)]).
 5181
 5182updated(happens(transport(A, B, C), _, _), loc(A, B), B-C, []).
 5183updated(happens(transport(_, A, B), _, _), loc(farmer, A), A-B, []).
 5184
 5185maxTime(10).
 5186ERROR: LPS: execution timeout(resolveAndUpdate)
 5187PROGRAM FAILED
 5188% dB(/.../(lps_user_examples, 'farmer, wolf, goat and cabbage.pl'), lps_visualization(_73390{groups:[_72854{content:"loc(A,B)", id:"loc/2", order:3, subgroupStack:"false"}], items:[_72980{content:"cabbage,south", end:2, group:"loc/2", id:0, start:1, subgroup:"cabbage", title:"Fluent loc(cabbage,south) initiated at 1<br/>and terminated at transition to 2"}, _73106{content:"farmer,south", end:2, group:"loc/2", id:1, start:1, subgroup:"farmer", title:"Fluent loc(farmer,south) initiated at 1<br/>and terminated at transition to 2"}, _73232{content:"goat,south", end:2, group:"loc/2", id:2, start:1, subgroup:"goat", title:"Fluent loc(goat,south) initiated at 1<br/>and terminated at transition to 2"}, _73358{content:"wolf,south", end:2, group:"loc/2", id:3, start:1, subgroup:"wolf", title:"Fluent loc(wolf,south) initiated at 1<br/>and terminated at transition to 2"}]}, [])).
 5189% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'faultymartianrobot.pl')).
 5190% run_lps_corner_file1(/.../(lps_user_examples, 'faultymartianrobot.pl')).
 5191% /pack/logicmoo_ec/test/lps_user_examples/faultymartianrobot.pl:1
 5192% push_lps_dialect.
 5193% ops.
 5194% [ti=user, load= /.../(lps_user_examples, 'faultymartianrobot.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'faultymartianrobot.pl'), lps= /.../(lps_user_examples, 'faultymartianrobot.pl'), using= /.../(lps_user_examples, 'faultymartianrobot.pl')].
 5195% continue_lps_dialect.
 5196% ops.
 5197
 5198% LPS:  fluents((at_pos/2,free/2,visited/2,obstacle/2,life/2,lookingtowards/2)).
 5199% Into: fluents([at_pos(_21426,_21428),free(_21438,_21440),visited(_21450,_21452),obstacle(_21462,_21464),life(_21474,_21476),lookingtowards(_21486,_21488)]).
 5200
 5201% LPS:  actions((step(_21226,_21228),turn_right,report)).
 5202% Into: actions([step(_21226,_21228),turn_right,report]).
 5203
 5204% LPS:  initially((at_pos(0,0),life(2,1),free(1,0),free(2,0),obstacle(3,0),obstacle(2,-1),obstacle(2,1),lookingtowards(1,0))).
 5205% Into: initial_state([at_pos(0,0),life(2,1),free(1,0),free(2,0),obstacle(3,0),obstacle(2,-1),obstacle(2,1),lookingtowards(1,0)]).
 5206
 5207% LPS:  terminates(step(_24138,_24140),lookingtowards(_24138,_24140)).
 5208% Into: terminated(happens(step(_24138,_24140),_25324,_25330),lookingtowards(_24138,_24140),[]).
 5209
 5210% LPS:  if(initiates(step(_25270,_25272),lookingtowards(_25270,_25328)),(at_pos(_25270,_25416),lookingtowards(_25270,_25272),_25556 is _25272-_25416,abs(_25556)>0,_25328 is _25272+_25556)).
 5211% Into: initiated(happens(step(_25270,_25272),_27170,_27176),lookingtowards(_25270,_25328),[holds(at_pos(_25270,_25416),_27170),holds(lookingtowards(_25270,_25272),_27170),_25556 is _25272-_25416,abs(_25556)>0,_25328 is _25272+_25556]).
 5212
 5213% LPS:  if(initiates(step(_28658,_28660),lookingtowards(_28714,_28660)),(at_pos(_28802,_28660),lookingtowards(_28658,_28660),_28944 is _28658-_28802,abs(_28944)>0,_28714 is _28658+_28944)).
 5214% Into: initiated(happens(step(_28658,_28660),_30558,_30564),lookingtowards(_28714,_28660),[holds(at_pos(_28802,_28660),_30558),holds(lookingtowards(_28658,_28660),_30558),_28944 is _28658-_28802,abs(_28944)>0,_28714 is _28658+_28944]).
 5215
 5216% LPS:  initiates(step(_32046,_32048),at_pos(_32046,_32048)).
 5217% Into: initiated(happens(step(_32046,_32048),_33232,_33238),at_pos(_32046,_32048),[]).
 5218
 5219% LPS:  if(terminates(step(_33178,_33180),at_pos(_33234,_33236)),at_pos(_33234,_33236)).
 5220% Into: terminated(happens(step(_33178,_33180),_34506,_34512),at_pos(_33234,_33236),[holds(at_pos(_33234,_33236),_34506)]).
 5221
 5222% LPS:  terminates(step(_34798,_34800),free(_34798,_34800)).
 5223% Into: terminated(happens(step(_34798,_34800),_35984,_35990),free(_34798,_34800),[]).
 5224
 5225% LPS:  if(initiates(step(_35930,_35932),visited(_35986,_35988)),at_pos(_35986,_35988)).
 5226% Into: initiated(happens(step(_35930,_35932),_37258,_37264),visited(_35986,_35988),[holds(at_pos(_35986,_35988),_37258)]).
 5227
 5228% LPS:  if(initiates(step(_37518,_37520),free(_37574,_37576)),at_pos(_37574,_37576)).
 5229% Into: initiated(happens(step(_37518,_37520),_38846,_38852),free(_37574,_37576),[holds(at_pos(_37574,_37576),_38846)]).
 5230
 5231% LPS:  terminates(turn_right,lookingtowards(_39122,_39124)).
 5232% Into: terminated(happens(turn_right,_40248,_40254),lookingtowards(_39122,_39124),[]).
 5233
 5234% LPS:  if(initiates(turn_right,lookingtowards(_40208,_40210)),(at_pos(_40208,_40298),lookingtowards(_40352,_40298),_40352 is _40208+1,_40210 is _40298-1)).
 5235% Into: initiated(happens(turn_right,_41892,_41898),lookingtowards(_40208,_40210),[holds(at_pos(_40208,_40298),_41892),holds(lookingtowards(_40352,_40298),_41892),_40352 is _40208+1,_40210 is _40298-1]).
 5236
 5237% LPS:  if(initiates(turn_right,lookingtowards(_43048,_43050)),(at_pos(_43136,_43050),lookingtowards(_43136,_43194),_43048 is _43136-1,_43194 is _43050-1)).
 5238% Into: initiated(happens(turn_right,_44732,_44738),lookingtowards(_43048,_43050),[holds(at_pos(_43136,_43050),_44732),holds(lookingtowards(_43136,_43194),_44732),_43048 is _43136-1,_43194 is _43050-1]).
 5239
 5240% LPS:  if(initiates(turn_right,lookingtowards(_45888,_45890)),(at_pos(_45888,_45978),lookingtowards(_46032,_45978),_46032 is _45888-1,_45890 is _45978+1)).
 5241% Into: initiated(happens(turn_right,_47572,_47578),lookingtowards(_45888,_45890),[holds(at_pos(_45888,_45978),_47572),holds(lookingtowards(_46032,_45978),_47572),_46032 is _45888-1,_45890 is _45978+1]).
 5242
 5243% LPS:  if(initiates(turn_right,lookingtowards(_48728,_48730)),(at_pos(_48816,_48730),lookingtowards(_48816,_48874),_48728 is _48816+1,_48874 is _48730+1)).
 5244% Into: initiated(happens(turn_right,_50412,_50418),lookingtowards(_48728,_48730),[holds(at_pos(_48816,_48730),_50412),holds(lookingtowards(_48816,_48874),_50412),_48728 is _48816+1,_48874 is _48730+1]).
 5245
 5246% LPS:  false((visited(_51630,_51632),step(_51630,_51632))).
 5247% Into: d_pre([holds(visited(_51630,_51632),_52756),happens(step(_51630,_51632),_52756,_52762)]).
 5248
 5249% LPS:  false((life(_53030,_53032),lookingtowards(_53030,_53032),turn_right)).
 5250% Into: d_pre([holds(life(_53030,_53032),_54210),holds(lookingtowards(_53030,_53032),_54210),happens(turn_right,_54210,_54216)]).
 5251
 5252% LPS:  then(if((lookingtowards(_54726,_54728),free(_54726,_54728))),step(_54726,_54728)).
 5253% Into: reactive_rule([holds(lookingtowards(_54726,_54728),_55968),holds(free(_54726,_54728),_55968)],[happens(step(_54726,_54728),_56562,_56568)]).
 5254
 5255% LPS:  then(if((lookingtowards(_56634,_56636),free(_56634,_56636),visited(_56634,_56636))),turn_right).
 5256% Into: reactive_rule([holds(lookingtowards(_56634,_56636),_57930),holds(free(_56634,_56636),_57930),holds(visited(_56634,_56636),_57930)],[happens(turn_right,_58728,_58734)]).
 5257
 5258% LPS:  then(if((lookingtowards(_58832,_58834),obstacle(_58832,_58834))),turn_right).
 5259% Into: reactive_rule([holds(lookingtowards(_58832,_58834),_60028),holds(obstacle(_58832,_58834),_60028)],[happens(turn_right,_60622,_60628)]).
 5260
 5261% LPS:  then(if((lookingtowards(_60694,_60696),obstacle(_60694,_60696),life(_60694,_60696))),report).
 5262% Into: reactive_rule([holds(lookingtowards(_60694,_60696),_61990),holds(obstacle(_60694,_60696),_61990),holds(life(_60694,_60696),_61990)],[happens(report,_62788,_62794)]).
 5263% /pack/logicmoo_ec/test/lps_user_examples/faultymartianrobot.pl:73
 5264% pop_lps_dialect('$BLOB'("<stream>(0x562ef73e3500)"),  (/.../(lps_user_examples, 'faultymartianrobot.pl')-> /.../(lps_user_examples, 'faultymartianrobot.pl'))).
 5265% ops.
 5266% :-listing('/pack/logicmoo_ec/test/lps_user_examples/faultymartianrobot.pl':_70686).
 5267
 5268
 5269initiated(happens(step(A, B), C, _), lookingtowards(A, D), [holds(at_pos(A, E), C), holds(lookingtowards(A, B), C), F is B-E, abs(F)>0, D is B+F]).
 5270initiated(happens(step(A, B), C, _), lookingtowards(D, B), [holds(at_pos(E, B), C), holds(lookingtowards(A, B), C), F is A-E, abs(F)>0, D is A+F]).
 5271initiated(happens(step(A, B), _, _), at_pos(A, B), []).
 5272initiated(happens(step(_, _), A, _), visited(B, C), [holds(at_pos(B, C), A)]).
 5273initiated(happens(step(_, _), A, _), free(B, C), [holds(at_pos(B, C), A)]).
 5274initiated(happens(turn_right, A, _), lookingtowards(B, C), [holds(at_pos(B, D), A), holds(lookingtowards(E, D), A), E is B+1, C is D-1]).
 5275initiated(happens(turn_right, A, _), lookingtowards(B, C), [holds(at_pos(D, C), A), holds(lookingtowards(D, E), A), B is D-1, E is C-1]).
 5276initiated(happens(turn_right, A, _), lookingtowards(B, C), [holds(at_pos(B, D), A), holds(lookingtowards(E, D), A), E is B-1, C is D+1]).
 5277initiated(happens(turn_right, A, _), lookingtowards(B, C), [holds(at_pos(D, C), A), holds(lookingtowards(D, E), A), B is D+1, E is C+1]).
 5278
 5279d_pre([holds(visited(A, B), C), happens(step(A, B), C, _)]).
 5280d_pre([holds(life(A, B), C), holds(lookingtowards(A, B), C), happens(turn_right, C, _)]).
 5281
 5282fluents([at_pos(_, _), free(_, _), visited(_, _), obstacle(_, _), life(_, _), lookingtowards(_, _)]).
 5283
 5284terminated(happens(step(A, B), _, _), lookingtowards(A, B), []).
 5285terminated(happens(step(_, _), A, _), at_pos(B, C), [holds(at_pos(B, C), A)]).
 5286terminated(happens(step(A, B), _, _), free(A, B), []).
 5287terminated(happens(turn_right, _, _), lookingtowards(_, _), []).
 5288
 5289reactive_rule([holds(lookingtowards(A, B), C), holds(free(A, B), C)], [happens(step(A, B), _, _)]).
 5290reactive_rule([holds(lookingtowards(A, B), C), holds(free(A, B), C), holds(visited(A, B), C)], [happens(turn_right, _, _)]).
 5291reactive_rule([holds(lookingtowards(A, B), C), holds(obstacle(A, B), C)], [happens(turn_right, _, _)]).
 5292reactive_rule([holds(lookingtowards(A, B), C), holds(obstacle(A, B), C), holds(life(A, B), C)], [happens(report, _, _)]).
 5293
 5294initial_state([at_pos(0, 0), life(2, 1), free(1, 0), free(2, 0), obstacle(3, 0), obstacle(2, -1), obstacle(2, 1), lookingtowards(1, 0)]).
 5295
 5296:- dynamic actions/1. 5297:- multifile actions/1. 5298
 5299actions([step(_, _), turn_right, report]).
 5300
 5301maxTime(10).
 5302% dB(/.../(lps_user_examples, 'faultymartianrobot.pl'), lps_visualization(_106208{groups:[_102196{content:"at_pos(A,B)", id:"at_pos/2", order:3, subgroupStack:"false"}, _102274{content:"free(A,B)", id:"free/2", order:3, subgroupStack:"false"}, _102352{content:"life(A,B)", id:"life/2", order:3, subgroupStack:"false"}, _102430{content:"lookingtowards(A,B)", id:"lookingtowards/2", order:3, subgroupStack:"false"}, _102508{content:"obstacle(A,B)", id:"obstacle/2", order:3, subgroupStack:"false"}, _102586{content:"visited(A,B)", id:"visited/2", order:3, subgroupStack:"false"}, _102652{content:"Actions", id:"action", order:4}], items:[_102774{content:"0,0", end:2, group:"at_pos/2", id:0, start:1, subgroup:"0", title:"Fluent at_pos(0,0) initiated at 1<br/>and terminated at transition to 2"}, _102900{content:"1,0", end:3, group:"at_pos/2", id:1, start:2, subgroup:"1", title:"Fluent at_pos(1,0) initiated at 2<br/>and terminated at transition to 3"}, _103026{content:"2,0", end:11, group:"at_pos/2", id:2, start:3, subgroup:"2", title:"Fluent at_pos(2,0) initiated at 3<br/>and terminated at transition to 11"}, _103152{content:"0,0", end:11, group:"free/2", id:3, start:2, subgroup:"0", title:"Fluent free(0,0) initiated at 2<br/>and terminated at transition to 11"}, _103278{content:"1,0", end:2, group:"free/2", id:4, start:1, subgroup:"1", title:"Fluent free(1,0) initiated at 1<br/>and terminated at transition to 2"}, _103404{content:"1,0", end:11, group:"free/2", id:5, start:3, subgroup:"1", title:"Fluent free(1,0) initiated at 3<br/>and terminated at transition to 11"}, _103530{content:"2,0", end:3, group:"free/2", id:6, start:1, subgroup:"2", title:"Fluent free(2,0) initiated at 1<br/>and terminated at transition to 3"}, _103656{content:"2,1", end:11, group:"life/2", id:7, start:1, subgroup:"2", title:"Fluent life(2,1) initiated at 1<br/>and terminated at transition to 11"}, _103782{content:"1,0", end:2, group:"lookingtowards/2", id:8, start:1, subgroup:"1", title:"Fluent lookingtowards(1,0) initiated at 1<br/>and terminated at transition to 2"}, _103908{content:"1,0", end:6, group:"lookingtowards/2", id:9, start:5, subgroup:"1", title:"Fluent lookingtowards(1,0) initiated at 5<br/>and terminated at transition to 6"}, _104034{content:"2,-1", end:5, group:"lookingtowards/2", id:10, start:4, subgroup:"2", title:"Fluent lookingtowards(2,-1) initiated at 4<br/>and terminated at transition to 5"}, _104160{content:"2,0", end:3, group:"lookingtowards/2", id:11, start:2, subgroup:"2", title:"Fluent lookingtowards(2,0) initiated at 2<br/>and terminated at transition to 3"}, _104286{content:"2,1", end:11, group:"lookingtowards/2", id:12, start:6, subgroup:"2", title:"Fluent lookingtowards(2,1) initiated at 6<br/>and terminated at transition to 11"}, _104412{content:"3,0", end:4, group:"lookingtowards/2", id:13, start:3, subgroup:"3", title:"Fluent lookingtowards(3,0) initiated at 3<br/>and terminated at transition to 4"}, _104538{content:"2,-1", end:11, group:"obstacle/2", id:14, start:1, subgroup:"2", title:"Fluent obstacle(2,-1) initiated at 1<br/>and terminated at transition to 11"}, _104664{content:"2,1", end:11, group:"obstacle/2", id:15, start:1, subgroup:"2", title:"Fluent obstacle(2,1) initiated at 1<br/>and terminated at transition to 11"}, _104790{content:"3,0", end:11, group:"obstacle/2", id:16, start:1, subgroup:"3", title:"Fluent obstacle(3,0) initiated at 1<br/>and terminated at transition to 11"}, _104916{content:"0,0", end:11, group:"visited/2", id:17, start:2, subgroup:"0", title:"Fluent visited(0,0) initiated at 2<br/>and terminated at transition to 11"}, _105042{content:"1,0", end:11, group:"visited/2", id:18, start:3, subgroup:"1", title:"Fluent visited(1,0) initiated at 3<br/>and terminated at transition to 11"}, _105168{content:"step(1,0)", group:"action", id:19, start:2, style:"color:green", title:"happens(step(1,0),1,2)", type:"point"}, _105294{content:"step(2,0)", group:"action", id:20, start:3, style:"color:green", title:"happens(step(2,0),2,3)", type:"point"}, _105420{content:"turn_right", group:"action", id:21, start:4, style:"color:green", title:"happens(turn_right,3,4)", type:"point"}, _105546{content:"turn_right", group:"action", id:22, start:5, style:"color:green", title:"happens(turn_right,4,5)", type:"point"}, _105672{content:"turn_right", group:"action", id:23, start:6, style:"color:green", title:"happens(turn_right,5,6)", type:"point"}, _105798{content:"report", group:"action", id:24, start:7, style:"color:green", title:"happens(report,6,7)", type:"point"}, _105924{content:"report", group:"action", id:25, start:8, style:"color:green", title:"happens(report,7,8)", type:"point"}, _106050{content:"report", group:"action", id:26, start:9, style:"color:green", title:"happens(report,8,9)", type:"point"}, _106176{content:"report", group:"action", id:27, start:10, style:"color:green", title:"happens(report,9,10)", type:"point"}]}, [])).
 5303% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'faultypurereacting.pl')).
 5304% run_lps_corner_file1(/.../(lps_user_examples, 'faultypurereacting.pl')).
 5305% /pack/logicmoo_ec/test/lps_user_examples/faultypurereacting.pl:1
 5306% push_lps_dialect.
 5307% ops.
 5308% [ti=user, load= /.../(lps_user_examples, 'faultypurereacting.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'faultypurereacting.pl'), lps= /.../(lps_user_examples, 'faultypurereacting.pl'), using= /.../(lps_user_examples, 'faultypurereacting.pl')].
 5309% continue_lps_dialect.
 5310% ops.
 5311
 5312% LPS:  events(alguien_me_ataca).
 5313% Into: events([alguien_me_ataca]).
 5314
 5315% LPS:  actions((responde_igual,consigue_ayuda,trata_de_escapar)).
 5316% Into: actions([responde_igual,consigue_ayuda,trata_de_escapar]).
 5317
 5318% LPS:  observe(from(alguien_me_ataca,to(1,2))).
 5319% Into: observe([alguien_me_ataca],2).
 5320
 5321% LPS:  then(if(from(alguien_me_ataca,to(_64324,_64326))),from(responde_igual,to(_64326,_64462))).
 5322% Into: reactive_rule([happens(alguien_me_ataca,_64324,_64326)],[happens(responde_igual,_64326,_64462)]).
 5323
 5324% LPS:  then(if(from(alguien_me_ataca,to(_65668,_65670))),from(consigue_ayuda,to(_65670,_65806))).
 5325% Into: reactive_rule([happens(alguien_me_ataca,_65668,_65670)],[happens(consigue_ayuda,_65670,_65806)]).
 5326
 5327% LPS:  then(if(from(alguien_me_ataca,to(_67012,_67014))),from(trata_de_escapar,to(_67014,_67150))).
 5328% Into: reactive_rule([happens(alguien_me_ataca,_67012,_67014)],[happens(trata_de_escapar,_67014,_67150)]).
 5329
 5330% LPS:  if(from(responde_igual,to(_68308,_68310)),from(consigue_ayuda,to(_68308,_68310))).
 5331% Into: l_events(happens(responde_igual,_68308,_68310),[happens(consigue_ayuda,_68308,_68310)]).
 5332
 5333% LPS:  if(from(trata_de_escapar,to(_69564,_69566)),from(consigue_ayuda,to(_69564,_69566))).
 5334% Into: l_events(happens(trata_de_escapar,_69564,_69566),[happens(consigue_ayuda,_69564,_69566)]).
 5335% /pack/logicmoo_ec/test/lps_user_examples/faultypurereacting.pl:27
 5336% pop_lps_dialect('$BLOB'("<stream>(0x562ef6885800)"),  (/.../(lps_user_examples, 'faultypurereacting.pl')-> /.../(lps_user_examples, 'faultypurereacting.pl'))).
 5337% ops.
 5338% :-listing('/pack/logicmoo_ec/test/lps_user_examples/faultypurereacting.pl':_78460).
 5339
 5340
 5341reactive_rule([happens(alguien_me_ataca, _, A)], [happens(responde_igual, A, _)]).
 5342reactive_rule([happens(alguien_me_ataca, _, A)], [happens(consigue_ayuda, A, _)]).
 5343reactive_rule([happens(alguien_me_ataca, _, A)], [happens(trata_de_escapar, A, _)]).
 5344
 5345l_events(happens(responde_igual, A, B), [happens(consigue_ayuda, A, B)]).
 5346l_events(happens(trata_de_escapar, A, B), [happens(consigue_ayuda, A, B)]).
 5347
 5348:- dynamic actions/1. 5349:- multifile actions/1. 5350
 5351actions([responde_igual, consigue_ayuda, trata_de_escapar]).
 5352
 5353events([alguien_me_ataca]).
 5354
 5355observe([alguien_me_ataca], 2).
 5356
 5357maxTime(10).
 5358% dB(/.../(lps_user_examples, 'faultypurereacting.pl'), lps_visualization(_49590{groups:[_49248{content:"Events", id:"event", order:1}, _49310{content:"Actions", id:"action", order:4}], items:[_49432{content:"alguien_me_ataca", group:"event", id:0, start:2, style:"color:#E19735", title:"happens(alguien_me_ataca,1,2)", type:"point"}, _49558{content:"consigue_ayuda", group:"action", id:1, start:3, style:"color:green", title:"happens(consigue_ayuda,2,3)", type:"point"}]}, [])).
 5359% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'foxonegoal.pl')).
 5360% run_lps_corner_file1(/.../(lps_user_examples, 'foxonegoal.pl')).
 5361% /pack/logicmoo_ec/test/lps_user_examples/foxonegoal.pl:1
 5362% push_lps_dialect.
 5363% ops.
 5364% [ti=user, load= /.../(lps_user_examples, 'foxonegoal.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'foxonegoal.pl'), lps= /.../(lps_user_examples, 'foxonegoal.pl'), using= /.../(lps_user_examples, 'foxonegoal.pl')].
 5365% continue_lps_dialect.
 5366% ops.
 5367
 5368% LPS:  fluents((has(_19622,_19624),near(_19622,_19624))).
 5369% Into: fluents([has(_19622,_19624),near(_19622,_19624)]).
 5370
 5371% LPS:  actions((pray/2,takes/2,eats/2,gets/2)).
 5372% Into: actions([pray(_22282,_22284),takes(_22294,_22296),eats(_22306,_22308),gets(_22318,_22320)]).
 5373
 5374% LPS:  events((hunger/1,sings/1,finds/2)).
 5375% Into: events([hunger(_23508),sings(_23518),finds(_23528,_23530)]).
 5376
 5377% LPS:  initially(has(crow,cheese)).
 5378% Into: initial_state([has(crow,cheese)]).
 5379
 5380% LPS:  observe(from(hunger(me),to(1,2))).
 5381% Into: observe([hunger(me)],2).
 5382
 5383% LPS:  if(initiates(takes(_25604,_25606),has(_25604,_25606)),near(_25604,_25606)).
 5384% Into: initiated(happens(takes(_25604,_25606),_26916,_26922),has(_25604,_25606),[holds(near(_25604,_25606),_26916)]).
 5385
 5386% LPS:  if(terminates(takes(_27176,_27178),has(_27232,_27178)),_27232\==_27176).
 5387% Into: terminated(happens(takes(_27176,_27178),_28500,_28506),has(_27232,_27178),[_27232\==_27176]).
 5388
 5389% LPS:  if(initiates(sings(crow),near(me,cheese)),has(crow,cheese)).
 5390% Into: initiated(happens(sings(crow),_30156,_30162),near(me,cheese),[holds(has(crow,cheese),_30156)]).
 5391
 5392% LPS:  if(sings(crow),pray(me,crow)).
 5393% Into: l_events(happens(sings(crow),_31474,_31480),[happens(pray(me,crow),_31474,_31480)]).
 5394
 5395% LPS:  if(gets(me,cheese),(has(crow,cheese),sings(crow))).
 5396% Into: l_events(happens(gets(me,cheese),_32904,_32910),[holds(has(crow,cheese),_32904),happens(sings(crow),_32904,_32910)]).
 5397
 5398% LPS:  if(finds(_32936,_32938),(gets(_32936,_32938),takes(_32936,_32938),eats(_32936,_32938))).
 5399% Into: l_events(happens(finds(_32936,_32938),_34236,_34242),[happens(gets(_32936,_32938),_34236,_34316),happens(takes(_32936,_32938),_34316,_34458),happens(eats(_32936,_32938),_34458,_34242)]).
 5400
 5401% LPS:  then(if(from(hunger(me),to(_34298,_34300))),from(finds(me,cheese),to(_34300,_34476))).
 5402% Into: reactive_rule([happens(hunger(me),_34298,_34300)],[happens(finds(me,cheese),_34300,_34476)]).
 5403% /pack/logicmoo_ec/test/lps_user_examples/foxonegoal.pl:30
 5404% pop_lps_dialect('$BLOB'("<stream>(0x562ef6c54000)"),  (/.../(lps_user_examples, 'foxonegoal.pl')-> /.../(lps_user_examples, 'foxonegoal.pl'))).
 5405% ops.
 5406% :-listing('/pack/logicmoo_ec/test/lps_user_examples/foxonegoal.pl':_43272).
 5407
 5408
 5409initiated(happens(takes(A, B), C, _), has(A, B), [holds(near(A, B), C)]).
 5410initiated(happens(sings(crow), A, _), near(me, cheese), [holds(has(crow, cheese), A)]).
 5411
 5412fluents([has(A, B), near(A, B)]).
 5413
 5414terminated(happens(takes(A, B), _, _), has(C, B), [C\==A]).
 5415
 5416reactive_rule([happens(hunger(me), _, A)], [happens(finds(me, cheese), A, _)]).
 5417
 5418initial_state([has(crow, cheese)]).
 5419
 5420l_events(happens(sings(crow), A, B), [happens(pray(me, crow), A, B)]).
 5421l_events(happens(gets(me, cheese), A, B), [holds(has(crow, cheese), A), happens(sings(crow), A, B)]).
 5422l_events(happens(finds(A, B), C, D), [happens(gets(A, B), C, E), happens(takes(A, B), E, F), happens(eats(A, B), F, D)]).
 5423
 5424:- dynamic actions/1. 5425:- multifile actions/1. 5426
 5427actions([pray(_, _), takes(_, _), eats(_, _), gets(_, _)]).
 5428
 5429events([hunger(_), sings(_), finds(_, _)]).
 5430
 5431observe([hunger(me)], 2).
 5432
 5433maxTime(6).
 5434% dB(/.../(lps_user_examples, 'foxonegoal.pl'), lps_visualization(_81774{groups:[_80646{content:"Events", id:"event", order:1}, _80720{content:"has(A,B)", id:"has/2", order:3, subgroupStack:"false"}, _80798{content:"near(A,B)", id:"near/2", order:3, subgroupStack:"false"}, _80864{content:"Actions", id:"action", order:4}], items:[_80986{content:"crow,cheese", end:4, group:"has/2", id:0, start:1, subgroup:"crow", title:"Fluent has(crow,cheese) initiated at 1<br/>and terminated at transition to 4"}, _81112{content:"me,cheese", end:7, group:"has/2", id:1, start:4, subgroup:"me", title:"Fluent has(me,cheese) initiated at 4<br/>and terminated at transition to 7"}, _81238{content:"me,cheese", end:7, group:"near/2", id:2, start:3, subgroup:"me", title:"Fluent near(me,cheese) initiated at 3<br/>and terminated at transition to 7"}, _81364{content:"hunger(me)", group:"event", id:3, start:2, style:"color:#E19735", title:"happens(hunger(me),1,2)", type:"point"}, _81490{content:"pray(me,crow)", group:"action", id:4, start:3, style:"color:green", title:"happens(pray(me,crow),2,3)", type:"point"}, _81616{content:"takes(me,cheese)", group:"action", id:5, start:4, style:"color:green", title:"happens(takes(me,cheese),3,4)", type:"point"}, _81742{content:"eats(me,cheese)", group:"action", id:6, start:5, style:"color:green", title:"happens(eats(me,cheese),4,5)", type:"point"}]}, [])).
 5435% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'GDPR compliance - article 46.pl')).
 5436% run_lps_corner_file1(/.../(lps_user_examples, 'GDPR compliance - article 46.pl')).
 5437% /pack/logicmoo_ec/test/lps_user_examples/GDPR compliance - article 46.pl:1
 5438% push_lps_dialect.
 5439% ops.
 5440% [ti=user, load= /.../(lps_user_examples, 'GDPR compliance - article 46.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'GDPR compliance - article 46.pl'), lps= /.../(lps_user_examples, 'GDPR compliance - article 46.pl'), using= /.../(lps_user_examples, 'GDPR compliance - article 46.pl')].
 5441% continue_lps_dialect.
 5442% ops.
 5443ERROR: /pack/logicmoo_ec/test/lps_user_examples/GDPR compliance - article 46.pl:3:
 5444ERROR:    dynamic/1: Type error: `predicate_indicator' expected, found `located(_57606,thirdCountry)' (a compound)
 5445ERROR: /pack/logicmoo_ec/test/lps_user_examples/GDPR compliance - article 46.pl:3:
 5446ERROR:    dynamic/1: Type error: `predicate_indicator' expected, found `decisionPursuantToArticle_45_3(_58440)' (a compound)
 5447ERROR: /pack/logicmoo_ec/test/lps_user_examples/GDPR compliance - article 46.pl:3:
 5448ERROR:    dynamic/1: Type error: `predicate_indicator' expected, found `legallyBindingEnforceableInstrument(_59272)' (a compound)
 5449ERROR: /pack/logicmoo_ec/test/lps_user_examples/GDPR compliance - article 46.pl:3:
 5450ERROR:    dynamic/1: Type error: `predicate_indicator' expected, found `bindingCorporateRules(_60104)' (a compound)
 5451ERROR: /pack/logicmoo_ec/test/lps_user_examples/GDPR compliance - article 46.pl:3:
 5452ERROR:    dynamic/1: Type error: `predicate_indicator' expected, found `standardDataProtectionClauses(_60936)' (a compound)
 5453ERROR: /pack/logicmoo_ec/test/lps_user_examples/GDPR compliance - article 46.pl:3:
 5454ERROR:    dynamic/1: Type error: `predicate_indicator' expected, found `approvedCodeOfConduct(_61768)' (a compound)
 5455ERROR: /pack/logicmoo_ec/test/lps_user_examples/GDPR compliance - article 46.pl:3:
 5456ERROR:    dynamic/1: Type error: `predicate_indicator' expected, found `approvedCertificateMechanism(_62600)' (a compound)
 5457% /pack/logicmoo_ec/test/lps_user_examples/GDPR compliance - article 46.pl:39
 5458% pop_lps_dialect('$BLOB'("<stream>(0x562ef76d7400)"),  (/.../(lps_user_examples, 'GDPR compliance - article 46.pl')-> /.../(lps_user_examples, 'GDPR compliance - article 46.pl'))).
 5459% ops.
 5460% :-listing('/pack/logicmoo_ec/test/lps_user_examples/GDPR compliance - article 46.pl':_27418).
 5461
 5462
 5463partOf(event001, process001).
 5464
 5465located(companyA_US, thirdCountry).
 5466
 5467legalRemediesForDataSubjects(process001).
 5468
 5469enforceableDataSubjectRights(process001).
 5470
 5471:- dynamic actions/1.
 5472:- multifile actions/1.
 5473
 5474
 5475appropriateSafeguards(Process) :-
 5476    (   legallyBindingEnforceableInstrument(Process)
 5477    ;   bindingCorporateRules(Process)
 5478    ;   standardDataProtectionClauses(Process)
 5479    ;   approvedCodeOfConduct(Process)
 5480    ;   approvedCertificateMechanism(Process)
 5481    ).
 5482
 5483isa(event001, transfer(companyA_Ireland, data, companyA_US)).
 5484isa(companyA_Ireland, controller).
 5485isa(data, personalData).
 5486
 5487permitted(A) :-
 5488    isa(A, transfer(B, C, D)),
 5489    not(decisionPursuantToArticle_45_3(A)),
 5490    (   isa(B, controller)
 5491    ;   isa(B, processor)
 5492    ),
 5493    isa(C, personalData),
 5494    (   located(D, thirdCountry)
 5495    ;   isa(D, internationalOrganisation)
 5496    ),
 5497    partOf(A, E),
 5498    appropriateSafeguards(E),
 5499    enforceableDataSubjectRights(E),
 5500    legalRemediesForDataSubjects(E).
 5501% dB(/.../(lps_user_examples, 'GDPR compliance - article 46.pl'), lps_visualization(_65828{groups:[], items:[]}, [])).
 5502% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'Giomar Aquiles Salazar Molina.pl')).
 5503% run_lps_corner_file1(/.../(lps_user_examples, 'Giomar Aquiles Salazar Molina.pl')).
 5504% /pack/logicmoo_ec/test/lps_user_examples/Giomar Aquiles Salazar Molina.pl:1
 5505% push_lps_dialect.
 5506% ops.
 5507% [ti=user, load= /.../(lps_user_examples, 'Giomar Aquiles Salazar Molina.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'Giomar Aquiles Salazar Molina.pl'), lps= /.../(lps_user_examples, 'Giomar Aquiles Salazar Molina.pl'), using= /.../(lps_user_examples, 'Giomar Aquiles Salazar Molina.pl')].
 5508% continue_lps_dialect.
 5509% ops.
 5510
 5511% LPS:  fluents((alerta1,alerta2,alerta3)).
 5512% Into: fluents([alerta1,alerta2,alerta3]).
 5513
 5514% LPS:  actions(carta).
 5515% Into: actions([carta]).
 5516
 5517% LPS:  events((giroMensaje1,giroMensaje2,giroMensaje3,giroMensaje4)).
 5518% Into: events([giroMensaje1,giroMensaje2,giroMensaje3,giroMensaje4]).
 5519
 5520% LPS:  observe(from(alerta1,to(1,2))).
 5521% Into: observe([alerta1],2).
 5522
 5523% LPS:  then(if(at(alerta1,_36410)),from(giroMensaje1,to(_36410,_36514))).
 5524% Into: reactive_rule([holds(alerta1,_36410)],[happens(giroMensaje1,_36410,_36514)]).
 5525
 5526% LPS:  observe(from(alerta2,to(3,4))).
 5527% Into: observe([alerta2],4).
 5528
 5529% LPS:  then(if(at(alerta2,_39188)),from(giroMensaje2,to(_39188,_39292))).
 5530% Into: reactive_rule([holds(alerta2,_39188)],[happens(giroMensaje2,_39188,_39292)]).
 5531
 5532% LPS:  observe(from(alerta2,to(5,6))).
 5533% Into: observe([alerta2],6).
 5534
 5535% LPS:  then(if(at(alerta3,_41966)),from(giroMensaje3,to(_41966,_42070))).
 5536% Into: reactive_rule([holds(alerta3,_41966)],[happens(giroMensaje3,_41966,_42070)]).
 5537
 5538% LPS:  observe(from(carta,to(3,5))).
 5539% Into: observe([carta],5).
 5540
 5541% LPS:  if(from(giroMensaje4,to(_44750,_44752)),from(carta,to(_44750,_44752))).
 5542% Into: l_events(happens(giroMensaje4,_44750,_44752),[happens(carta,_44750,_44752)]).
 5543% /pack/logicmoo_ec/test/lps_user_examples/Giomar Aquiles Salazar Molina.pl:30
 5544% pop_lps_dialect('$BLOB'("<stream>(0x562ef76d9700)"),  (/.../(lps_user_examples, 'Giomar Aquiles Salazar Molina.pl')-> /.../(lps_user_examples, 'Giomar Aquiles Salazar Molina.pl'))).
 5545% ops.
 5546% :-listing('/pack/logicmoo_ec/test/lps_user_examples/Giomar Aquiles Salazar Molina.pl':_53620).
 5547
 5548
 5549fluents([alerta1, alerta2, alerta3]).
 5550
 5551reactive_rule([holds(alerta1, A)], [happens(giroMensaje1, A, _)]).
 5552reactive_rule([holds(alerta2, A)], [happens(giroMensaje2, A, _)]).
 5553reactive_rule([holds(alerta3, A)], [happens(giroMensaje3, A, _)]).
 5554
 5555l_events(happens(giroMensaje4, A, B), [happens(carta, A, B)]).
 5556
 5557:- dynamic actions/1.
 5558:- multifile actions/1.
 5559
 5560actions([carta]).
 5561
 5562events([giroMensaje1, giroMensaje2, giroMensaje3, giroMensaje4]).
 5563
 5564observe([alerta1], 2).
 5565observe([alerta2], 4).
 5566observe([alerta2], 6).
 5567observe([carta], 5).
 5568
 5569maxTime(20).
 5570% dB(/.../(lps_user_examples, 'Giomar Aquiles Salazar Molina.pl'), lps_visualization(_59158{groups:[_58626{content:"Events", id:"event", order:1}], items:[_58748{content:"alerta1", group:"event", id:0, start:2, style:"color:#E19735", title:"happens(alerta1,1,2)", type:"point"}, _58874{content:"alerta2", group:"event", id:1, start:4, style:"color:#E19735", title:"happens(alerta2,3,4)", type:"point"}, _59000{content:"carta", group:"event", id:2, start:5, style:"color:#E19735", title:"happens(carta,4,5)", type:"point"}, _59126{content:"alerta2", group:"event", id:3, start:6, style:"color:#E19735", title:"happens(alerta2,5,6)", type:"point"}]}, [])).
 5571% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'goat.pl')).
 5572% run_lps_corner_file1(/.../(lps_user_examples, 'goat.pl')).
 5573% /pack/logicmoo_ec/test/lps_user_examples/goat.pl:1
 5574% push_lps_dialect.
 5575% ops.
 5576% [ti=user, load= /.../(lps_user_examples, 'goat.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'goat.pl'), lps= /.../(lps_user_examples, 'goat.pl'), using= /.../(lps_user_examples, 'goat.pl')].
 5577% continue_lps_dialect.
 5578% ops.
 5579
 5580% LPS:  actions((row(_19604,_19606),transport(_19674,_19676,_19678))).
 5581% Into: actions([row(_19604,_19606),transport(_19674,_19676,_19678)]).
 5582
 5583% LPS:  fluents(loc(_20778,_20780)).
 5584% Into: fluents([loc(_20778,_20780)]).
 5585
 5586% LPS:  initially((loc(wolf,south),loc(goat,south),loc(cabbage,south),loc(farmer,south))).
 5587% Into: initial_state([loc(wolf,south),loc(goat,south),loc(cabbage,south),loc(farmer,south)]).
 5588
 5589% LPS:  then(if((loc(_23272,south),_23272\=farmer)),from(makeLoc(_23272,north),to(_23486,_23488))).
 5590% Into: reactive_rule([holds(loc(_23272,south),_24642),_23272\=farmer],[happens(makeLoc(_23272,north),_23486,_23488)]).
 5591
 5592% LPS:  if(from(makeLoc(_25436,_25438),to(_25474,_25476)),(_25436\=farmer,at(loc(_25436,_25654),_25474),_25438\=_25654,from(makeLoc(farmer,_25654),to(_25474,_25860)),from(row(_25654,_25438),to(_25860,_25476)),from(transport(_25436,_25654,_25438),to(_25860,_25476)))).
 5593% Into: l_events(happens(makeLoc(_25436,_25438),_25474,_25476),[_25436\=farmer,holds(loc(_25436,_25654),_25474),_25438\=_25654,happens(makeLoc(farmer,_25654),_25474,_25860),happens(row(_25654,_25438),_25860,_25476),happens(transport(_25436,_25654,_25438),_25860,_25476)]).
 5594
 5595% LPS:  if(from(makeLoc(farmer,_28802),to(_28838,_28838)),at(loc(farmer,_28802),_28838)).
 5596% Into: l_events(happens(makeLoc(farmer,_28802),_28838,_28838),[holds(loc(farmer,_28802),_28838)]).
 5597
 5598% LPS:  if(from(makeLoc(farmer,_30130),to(_30166,_30168)),(at(loc(farmer,_30282),_30166),_30130\=_30282,from(row(_30282,_30130),to(_30166,_30168)))).
 5599% Into: l_events(happens(makeLoc(farmer,_30130),_30166,_30168),[holds(loc(farmer,_30282),_30166),_30130\=_30282,happens(row(_30282,_30130),_30166,_30168)]).
 5600
 5601% LPS:  updates(transport(_32314,_32316,_32318),in(to(_32316,_32318),loc(_32314,_32316))).
 5602% Into: updated(happens(transport(_32314,_32316,_32318),_33670,_33676),loc(_32314,_32316),_32316-_32318,[]).
 5603
 5604% LPS:  updates(row(_33570,_33572),in(to(_33570,_33572),loc(farmer,_33570))).
 5605% Into: updated(happens(row(_33570,_33572),_34908,_34914),loc(farmer,_33570),_33570-_33572,[]).
 5606
 5607% LPS:  false((transport(_34832,_34834,_34836),transport(_34904,_34834,_34836),_34832\=_34904)).
 5608% Into: d_pre([happens(transport(_34832,_34834,_34836),_36112,_36118),happens(transport(_34904,_34834,_34836),_36112,_36118),_34832\=_34904]).
 5609
 5610% LPS:  false((at(loc(goat,_36522),_36544),at(loc(wolf,_36522),_36544),at(not(loc(farmer,_36522)),_36544))).
 5611% Into: d_pre([holds(loc(goat,_36522),_36544),holds(loc(wolf,_36522),_36544),holds(not(loc(farmer,_36522)),_36544)]).
 5612
 5613% LPS:  false((at(loc(goat,_38020),_38042),at(loc(cabbage,_38020),_38042),at(not(loc(farmer,_38020)),_38042))).
 5614% Into: d_pre([holds(loc(goat,_38020),_38042),holds(loc(cabbage,_38020),_38042),holds(not(loc(farmer,_38020)),_38042)]).
 5615% /pack/logicmoo_ec/test/lps_user_examples/goat.pl:66
 5616% pop_lps_dialect('$BLOB'("<stream>(0x562ef73e4800)"),  (/.../(lps_user_examples, 'goat.pl')-> /.../(lps_user_examples, 'goat.pl'))).
 5617% ops.
 5618% :-listing('/pack/logicmoo_ec/test/lps_user_examples/goat.pl':_47122).
 5619
 5620
 5621d_pre([happens(transport(A, B, C), D, E), happens(transport(F, B, C), D, E), A\=F]).
 5622d_pre([holds(loc(goat, A), B), holds(loc(wolf, A), B), holds(not(loc(farmer, A)), B)]).
 5623d_pre([holds(loc(goat, A), B), holds(loc(cabbage, A), B), holds(not(loc(farmer, A)), B)]).
 5624
 5625fluents([loc(_, _)]).
 5626
 5627reactive_rule([holds(loc(A, south), _), A\=farmer], [happens(makeLoc(A, north), _, _)]).
 5628
 5629initial_state([loc(wolf, south), loc(goat, south), loc(cabbage, south), loc(farmer, south)]).
 5630
 5631l_events(happens(makeLoc(A, B), C, D), [A\=farmer, holds(loc(A, E), C), B\=E, happens(makeLoc(farmer, E), C, F), happens(row(E, B), F, D), happens(transport(A, E, B), F, D)]).
 5632l_events(happens(makeLoc(farmer, A), B, B), [holds(loc(farmer, A), B)]).
 5633l_events(happens(makeLoc(farmer, A), B, C), [holds(loc(farmer, D), B), A\=D, happens(row(D, A), B, C)]).
 5634
 5635:- dynamic actions/1.
 5636:- multifile actions/1.
 5637
 5638actions([row(_, _), transport(_, _, _)]).
 5639
 5640updated(happens(transport(A, B, C), _, _), loc(A, B), B-C, []).
 5641updated(happens(row(A, B), _, _), loc(farmer, A), A-B, []).
 5642
 5643maxTime(10).
 5644PROGRAM FAILED
 5645% dB(/.../(lps_user_examples, 'goat.pl'), lps_visualization(_84594{groups:[_83240{content:"loc(A,B)", id:"loc/2", order:3, subgroupStack:"false"}, _83306{content:"Actions", id:"action", order:4}], items:[_83428{content:"cabbage,south", end:4, group:"loc/2", id:0, start:1, subgroup:"cabbage", title:"Fluent loc(cabbage,south) initiated at 1<br/>and terminated at transition to 4"}, _83554{content:"farmer,north", end:3, group:"loc/2", id:1, start:2, subgroup:"farmer", title:"Fluent loc(farmer,north) initiated at 2<br/>and terminated at transition to 3"}, _83680{content:"farmer,south", end:2, group:"loc/2", id:2, start:1, subgroup:"farmer", title:"Fluent loc(farmer,south) initiated at 1<br/>and terminated at transition to 2"}, _83806{content:"farmer,south", end:4, group:"loc/2", id:3, start:3, subgroup:"farmer", title:"Fluent loc(farmer,south) initiated at 3<br/>and terminated at transition to 4"}, _83932{content:"goat,north", end:4, group:"loc/2", id:4, start:2, subgroup:"goat", title:"Fluent loc(goat,north) initiated at 2<br/>and terminated at transition to 4"}, _84058{content:"goat,south", end:2, group:"loc/2", id:5, start:1, subgroup:"goat", title:"Fluent loc(goat,south) initiated at 1<br/>and terminated at transition to 2"}, _84184{content:"wolf,south", end:4, group:"loc/2", id:6, start:1, subgroup:"wolf", title:"Fluent loc(wolf,south) initiated at 1<br/>and terminated at transition to 4"}, _84310{content:"row(south,north)", group:"action", id:7, start:2, style:"color:green", title:"happens(row(south,north),1,2)", type:"point"}, _84436{content:"transport(goat,south,north)", group:"action", id:8, start:2, style:"color:green", title:"happens(transport(goat,south,north),1,2)", type:"point"}, _84562{content:"row(north,south)", group:"action", id:9, start:3, style:"color:green", title:"happens(row(north,south),2,3)", type:"point"}]}, [])).
 5646% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'hogwarts.pl')).
 5647% run_lps_corner_file1(/.../(lps_user_examples, 'hogwarts.pl')).
 5648% /pack/logicmoo_ec/test/lps_user_examples/hogwarts.pl:1
 5649% push_lps_dialect.
 5650% ops.
 5651% [ti=user, load= /.../(lps_user_examples, 'hogwarts.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'hogwarts.pl'), lps= /.../(lps_user_examples, 'hogwarts.pl'), using= /.../(lps_user_examples, 'hogwarts.pl')].
 5652% continue_lps_dialect.
 5653% ops.
 5654
 5655% LPS:  fluents((varita_obedece(_56158),vivo(_56158))).
 5656% Into: fluents([varita_obedece(_56158),vivo(_56158)]).
 5657
 5658% LPS:  actions((desarmo/2,cortar_cabeza/2,destruye_varita/1)).
 5659% Into: actions([desarmo(_58634,_58636),cortar_cabeza(_58646,_58648),destruye_varita(_58658)]).
 5660
 5661% LPS:  events((batalla/1,derroto/2)).
 5662% Into: events([batalla(_59752),derroto(_59762,_59764)]).
 5663
 5664% LPS:  initially((varita_obedece(dumbledore),vivo(voldemort),vivo(nagini))).
 5665% Into: initial_state([varita_obedece(dumbledore),vivo(voldemort),vivo(nagini)]).
 5666
 5667% LPS:  observe(from(batalla(hogwarts),to(4,5))).
 5668% Into: observe([batalla(hogwarts)],5).
 5669
 5670% LPS:  if(derroto(_62036,_62038),(varita_obedece(_62036),cortar_cabeza(neville,nagini))).
 5671% Into: l_events(happens(derroto(_62036,_62038),_63218,_63224),[holds(varita_obedece(_62036),_63218),happens(cortar_cabeza(neville,nagini),_63218,_63224)]).
 5672
 5673% LPS:  terminates(derroto(_63692,_63694),vivo(_63694)).
 5674% Into: terminated(happens(derroto(_63692,_63694),_64858,_64864),vivo(_63694),[]).
 5675
 5676% LPS:  initiates(desarmo(_64806,_64808),varita_obedece(_64806)).
 5677% Into: initiated(happens(desarmo(_64806,_64808),_65980,_65986),varita_obedece(_64806),[]).
 5678
 5679% LPS:  terminates(desarmo(_65920,_65922),varita_obedece(_65962)).
 5680% Into: terminated(happens(desarmo(_65920,_65922),_67098,_67104),varita_obedece(_65962),[]).
 5681
 5682% LPS:  terminates(destruye_varita(_67032),varita_obedece(_67032)).
 5683% Into: terminated(happens(destruye_varita(_67032),_68188,_68194),varita_obedece(_67032),[]).
 5684
 5685% LPS:  terminates(cortar_cabeza(_68130,_68132),vivo(_68132)).
 5686% Into: terminated(happens(cortar_cabeza(_68130,_68132),_69304,_69310),vivo(_68132),[]).
 5687
 5688% LPS:  then(if(at(varita_obedece(dumbledore),_69260)),from(desarmo(malfoy,dumbledore),to(_69402,_69404))).
 5689% Into: reactive_rule([holds(varita_obedece(dumbledore),_69260)],[happens(desarmo(malfoy,dumbledore),_69402,_69404)]).
 5690
 5691% LPS:  then(if(at(varita_obedece(malfoy),_70584)),from(desarmo(harry,malfoy),to(_70726,_70728))).
 5692% Into: reactive_rule([holds(varita_obedece(malfoy),_70584)],[happens(desarmo(harry,malfoy),_70726,_70728)]).
 5693
 5694% LPS:  then(if(at(not(vivo(voldemort)),_71940)),from(destruye_varita(harry),to(_72066,_72068))).
 5695% Into: reactive_rule([holds(not(vivo(voldemort)),_71940)],[happens(destruye_varita(harry),_72066,_72068)]).
 5696
 5697% LPS:  then(if(from(batalla(hogwarts),to(_73264,_73266))),from(derroto(harry,voldemort),to(_73266,_73442))).
 5698% Into: reactive_rule([happens(batalla(hogwarts),_73264,_73266)],[happens(derroto(harry,voldemort),_73266,_73442)]).
 5699% /pack/logicmoo_ec/test/lps_user_examples/hogwarts.pl:34
 5700% pop_lps_dialect('$BLOB'("<stream>(0x562ef32ad200)"),  (/.../(lps_user_examples, 'hogwarts.pl')-> /.../(lps_user_examples, 'hogwarts.pl'))).
 5701% ops.
 5702% :-listing('/pack/logicmoo_ec/test/lps_user_examples/hogwarts.pl':_82194).
 5703
 5704
 5705initiated(happens(desarmo(A, _), _, _), varita_obedece(A), []).
 5706
 5707fluents([varita_obedece(A), vivo(A)]).
 5708
 5709terminated(happens(derroto(_, A), _, _), vivo(A), []).
 5710terminated(happens(desarmo(_, _), _, _), varita_obedece(_), []).
 5711terminated(happens(destruye_varita(A), _, _), varita_obedece(A), []).
 5712terminated(happens(cortar_cabeza(_, A), _, _), vivo(A), []).
 5713
 5714reactive_rule([holds(varita_obedece(dumbledore), _)], [happens(desarmo(malfoy, dumbledore), _, _)]).
 5715reactive_rule([holds(varita_obedece(malfoy), _)], [happens(desarmo(harry, malfoy), _, _)]).
 5716reactive_rule([holds(not(vivo(voldemort)), _)], [happens(destruye_varita(harry), _, _)]).
 5717reactive_rule([happens(batalla(hogwarts), _, A)], [happens(derroto(harry, voldemort), A, _)]).
 5718
 5719initial_state([varita_obedece(dumbledore), vivo(voldemort), vivo(nagini)]).
 5720
 5721l_events(happens(derroto(A, _), B, C), [holds(varita_obedece(A), B), happens(cortar_cabeza(neville, nagini), B, C)]).
 5722
 5723:- dynamic actions/1.
 5724:- multifile actions/1.
 5725
 5726actions([desarmo(_, _), cortar_cabeza(_, _), destruye_varita(_)]).
 5727
 5728events([batalla(_), derroto(_, _)]).
 5729
 5730observe([batalla(hogwarts)], 5).
 5731
 5732maxTime(10).
 5733% dB(/.../(lps_user_examples, 'hogwarts.pl'), lps_visualization(_73850{groups:[_72092{content:"Events", id:"event", order:1}, _72166{content:"varita_obedece(A)", id:"varita_obedece/1", order:3, subgroupStack:"false"}, _72244{content:"vivo(A)", id:"vivo/1", order:3, subgroupStack:"false"}, _72310{content:"Actions", id:"action", order:4}], items:[_72432{content:"dumbledore", end:2, group:"varita_obedece/1", id:0, start:1, subgroup:"dumbledore", title:"Fluent varita_obedece(dumbledore) initiated at 1<br/>and terminated at transition to 2"}, _72558{content:"harry", end:8, group:"varita_obedece/1", id:1, start:3, subgroup:"harry", title:"Fluent varita_obedece(harry) initiated at 3<br/>and terminated at transition to 8"}, _72684{content:"malfoy", end:3, group:"varita_obedece/1", id:2, start:2, subgroup:"malfoy", title:"Fluent varita_obedece(malfoy) initiated at 2<br/>and terminated at transition to 3"}, _72810{content:"nagini", end:6, group:"vivo/1", id:3, start:1, subgroup:"nagini", title:"Fluent vivo(nagini) initiated at 1<br/>and terminated at transition to 6"}, _72936{content:"voldemort", end:6, group:"vivo/1", id:4, start:1, subgroup:"voldemort", title:"Fluent vivo(voldemort) initiated at 1<br/>and terminated at transition to 6"}, _73062{content:"desarmo(malfoy,dumbledore)", group:"action", id:5, start:2, style:"color:green", title:"happens(desarmo(malfoy,dumbledore),1,2)", type:"point"}, _73188{content:"desarmo(harry,malfoy)", group:"action", id:6, start:3, style:"color:green", title:"happens(desarmo(harry,malfoy),2,3)", type:"point"}, _73314{content:"batalla(hogwarts)", group:"event", id:7, start:5, style:"color:#E19735", title:"happens(batalla(hogwarts),4,5)", type:"point"}, _73440{content:"cortar_cabeza(neville,nagini)", group:"action", id:8, start:6, style:"color:green", title:"happens(cortar_cabeza(neville,nagini),5,6)", type:"point"}, _73566{content:"destruye_varita(harry)", group:"action", id:9, start:8, style:"color:green", title:"happens(destruye_varita(harry),7,8)", type:"point"}, _73692{content:"destruye_varita(harry)", group:"action", id:10, start:9, style:"color:green", title:"happens(destruye_varita(harry),8,9)", type:"point"}, _73818{content:"destruye_varita(harry)", group:"action", id:11, start:10, style:"color:green", title:"happens(destruye_varita(harry),9,10)", type:"point"}]}, [])).
 5734% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'initiating more actions.pl')).
 5735% run_lps_corner_file1(/.../(lps_user_examples, 'initiating more actions.pl')).
 5736% /pack/logicmoo_ec/test/lps_user_examples/initiating more actions.pl:1
 5737% push_lps_dialect.
 5738% ops.
 5739% [ti=user, load= /.../(lps_user_examples, 'initiating more actions.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'initiating more actions.pl'), lps= /.../(lps_user_examples, 'initiating more actions.pl'), using= /.../(lps_user_examples, 'initiating more actions.pl')].
 5740% continue_lps_dialect.
 5741% ops.
 5742
 5743% LPS:  actions(initiating(_57220)).
 5744% Into: actions([initiating(_57220)]).
 5745
 5746% LPS:  fluents(gotit(_58246)).
 5747% Into: fluents([gotit(_58246)]).
 5748
 5749% LPS:  initiates(initiating(_59264),gotit(_59264)).
 5750% Into: initiated(happens(initiating(_59264),_60420,_60426),gotit(_59264),[]).
 5751
 5752% LPS:  then(if(true),(initiating(1),initiating(2),update(in(to(_60480,13),from(gotit(_60480),3))))).
 5753% Into: reactive_rule([],[happens(initiating(1),_61810,_61852),happens(initiating(2),_61874,_61920),happens(update(_60480-13,gotit(_60480)),3,_61816)]).
 5754
 5755% LPS:  then(if(initiating(2)),terminate(from(gotit(1),_61950))).
 5756% Into: reactive_rule([happens(initiating(2),_63042,_63048)],[happens(terminate(gotit(1)),_61950,_63080)]).
 5757% /pack/logicmoo_ec/test/lps_user_examples/initiating more actions.pl:22
 5758% pop_lps_dialect('$BLOB'("<stream>(0x562ef33a9e00)"),  (/.../(lps_user_examples, 'initiating more actions.pl')-> /.../(lps_user_examples, 'initiating more actions.pl'))).
 5759% ops.
 5760% :-listing('/pack/logicmoo_ec/test/lps_user_examples/initiating more actions.pl':_70742).
 5761
 5762
 5763initiated(happens(initiating(A), _, _), gotit(A), []).
 5764
 5765fluents([gotit(_)]).
 5766
 5767reactive_rule([], [happens(initiating(1), _, _), happens(initiating(2), _, _), happens(update(A-13, gotit(A)), 3, _)]).
 5768reactive_rule([happens(initiating(2), _, _)], [happens(terminate(gotit(1)), _, _)]).
 5769
 5770:- dynamic actions/1.
 5771:- multifile actions/1.
 5772
 5773actions([initiating(_)]).
 5774
 5775maxTime(5).
 5776% dB(/.../(lps_user_examples, 'initiating more actions.pl'), lps_visualization(_37578{groups:[_36602{content:"gotit(A)", id:"gotit/1", order:3, subgroupStack:"false"}, _36668{content:"Actions", id:"action", order:4}], items:[_36790{content:"1", end:3, group:"gotit/1", id:0, start:2, subgroup:"1", title:"Fluent gotit(1) initiated at 2<br/>and terminated at transition to 3"}, _36916{content:"2", end:4, group:"gotit/1", id:1, start:2, subgroup:"2", title:"Fluent gotit(2) initiated at 2<br/>and terminated at transition to 4"}, _37042{content:"13", end:6, group:"gotit/1", id:2, start:4, subgroup:"13", title:"Fluent gotit(13) initiated at 4<br/>and terminated at transition to 6"}, _37168{content:"initiating(1)", group:"action", id:3, start:2, style:"color:green", title:"happens(initiating(1),1,2)", type:"point"}, _37294{content:"initiating(2)", group:"action", id:4, start:2, style:"color:green", title:"happens(initiating(2),1,2)", type:"point"}, _37420{content:"terminate(gotit(1))", group:"action", id:5, start:3, style:"color:green", title:"happens(terminate(gotit(1)),2,3)", type:"point"}, _37546{content:"update(A-13,gotit(A))", group:"action", id:6, start:4, style:"color:green", title:"happens(update(A-13,gotit(A)),3,4)", type:"point"}]}, [])).
 5777% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'insurance.pl')).
 5778% run_lps_corner_file1(/.../(lps_user_examples, 'insurance.pl')).
 5779% /pack/logicmoo_ec/test/lps_user_examples/insurance.pl:1
 5780% push_lps_dialect.
 5781% ops.
 5782% [ti=user, load= /.../(lps_user_examples, 'insurance.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'insurance.pl'), lps= /.../(lps_user_examples, 'insurance.pl'), using= /.../(lps_user_examples, 'insurance.pl')].
 5783% continue_lps_dialect.
 5784% ops.
 5785% /pack/logicmoo_ec/test/lps_user_examples/insurance.pl:18
 5786% pop_lps_dialect('$BLOB'("<stream>(0x562ef4162e00)"),  (/.../(lps_user_examples, 'insurance.pl')-> /.../(lps_user_examples, 'insurance.pl'))).
 5787% ops.
 5788% :-listing('/pack/logicmoo_ec/test/lps_user_examples/insurance.pl':_83446).
 5789
 5790
 5791:- dynamic actions/1.
 5792:- multifile actions/1.
 5793
 5794% dB(/.../(lps_user_examples, 'insurance.pl'), lps_visualization(_69536{groups:[], items:[]}, [])).
 5795% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'Jeinfferson Bernal.pl')).
 5796% run_lps_corner_file1(/.../(lps_user_examples, 'Jeinfferson Bernal.pl')).
 5797% /pack/logicmoo_ec/test/lps_user_examples/Jeinfferson Bernal.pl:1
 5798% push_lps_dialect.
 5799% ops.
 5800% [ti=user, load= /.../(lps_user_examples, 'Jeinfferson Bernal.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'Jeinfferson Bernal.pl'), lps= /.../(lps_user_examples, 'Jeinfferson Bernal.pl'), using= /.../(lps_user_examples, 'Jeinfferson Bernal.pl')].
 5801% continue_lps_dialect.
 5802% ops.
 5803
 5804% LPS:  actions((atacar,robar,llamar_al(_19662),repita_mensaje_esposa(_19702))).
 5805% Into: actions([atacar,robar,llamar_al(_19662),repita_mensaje_esposa(_19702)]).
 5806
 5807% LPS:  fluents((es_un_arma,es_un_regalo)).
 5808% Into: fluents([es_un_arma,es_un_regalo]).
 5809
 5810% LPS:  events((prepare,persuade,muestra_del_general(_22142),llamar_general(_22142),general_recuerda_esposa(_22222))).
 5811% Into: events([prepare,persuade,muestra_del_general(_22142),llamar_general(_22142),general_recuerda_esposa(_22222)]).
 5812
 5813% LPS:  initially(es_un_arma).
 5814% Into: initial_state([es_un_arma]).
 5815
 5816% LPS:  observe(from(muestra_del_general('+86-555000001'),to(2,3))).
 5817% Into: observe([muestra_del_general('+86-555000001')],3).
 5818
 5819% LPS:  observe(from(general_recuerda_esposa(##########),to(3,4))).
 5820% Into: observe([general_recuerda_esposa(##########)],4).
 5821
 5822% LPS:  false((es_un_regalo,atacar)).
 5823% Into: d_pre([holds(es_un_regalo,_27910),happens(atacar,_27910,_27916)]).
 5824
 5825% LPS:  then(if(es_un_arma),(prepare,atacar)).
 5826% Into: reactive_rule([holds(es_un_arma,_29496)],[happens(prepare,_29654,_29696),happens(atacar,_29696,_29660)]).
 5827
 5828% LPS:  then(if(es_un_arma),persuade).
 5829% Into: reactive_rule([holds(es_un_arma,_30978)],[happens(persuade,_31136,_31142)]).
 5830
 5831% LPS:  if(from(prepare,to(_31266,_31268)),(at(true,_31266),_31268 is _31266+6)).
 5832% Into: l_events(happens(prepare,_31266,_31268),[holds(true,_31266),_31268 is _31266+6]).
 5833
 5834% LPS:  if(persuade,(muestra_del_general(_33298),general_recuerda_esposa(_33338),llamar_general(_33298),repita_mensaje_esposa(_33338))).
 5835% Into: l_events(happens(persuade,_34578,_34584),[happens(muestra_del_general(_33298),_34578,_34652),happens(general_recuerda_esposa(_33338),_34652,_34718),happens(llamar_general(_33298),_34718,_34784),happens(repita_mensaje_esposa(_33338),_34784,_34584)]).
 5836
 5837% LPS:  if(llamar_general(_34596),(robar,llamar_al(_34596))).
 5838% Into: l_events(happens(llamar_general(_34596),_35716,_35722),[happens(robar,_35716,_35796),happens(llamar_al(_34596),_35796,_35722)]).
 5839
 5840% LPS:  terminates(persuade,es_un_arma).
 5841% Into: terminated(happens(persuade,_36900,_36906),es_un_arma,[]).
 5842
 5843% LPS:  initiates(persuade,es_un_regalo).
 5844% Into: initiated(happens(persuade,_37916,_37922),es_un_regalo,[]).
 5845% /pack/logicmoo_ec/test/lps_user_examples/Jeinfferson Bernal.pl:61
 5846% pop_lps_dialect('$BLOB'("<stream>(0x562ef4161700)"),  (/.../(lps_user_examples, 'Jeinfferson Bernal.pl')-> /.../(lps_user_examples, 'Jeinfferson Bernal.pl'))).
 5847% ops.
 5848% :-listing('/pack/logicmoo_ec/test/lps_user_examples/Jeinfferson Bernal.pl':_45516).
 5849
 5850
 5851initiated(happens(persuade, _, _), es_un_regalo, []).
 5852
 5853d_pre([holds(es_un_regalo, A), happens(atacar, A, _)]).
 5854
 5855fluents([es_un_arma, es_un_regalo]).
 5856
 5857reactive_rule([holds(es_un_arma, _)], [happens(prepare, _, A), happens(atacar, A, _)]).
 5858reactive_rule([holds(es_un_arma, _)], [happens(persuade, _, _)]).
 5859
 5860terminated(happens(persuade, _, _), es_un_arma, []).
 5861
 5862initial_state([es_un_arma]).
 5863
 5864l_events(happens(prepare, A, B), [holds(true, A), B is A+6]).
 5865l_events(happens(persuade, A, B), [happens(muestra_del_general(C), A, D), happens(general_recuerda_esposa(E), D, F), happens(llamar_general(C), F, G), happens(repita_mensaje_esposa(E), G, B)]).
 5866l_events(happens(llamar_general(A), B, C), [happens(robar, B, D), happens(llamar_al(A), D, C)]).
 5867
 5868:- dynamic actions/1.
 5869:- multifile actions/1.
 5870
 5871actions([atacar, robar, llamar_al(_), repita_mensaje_esposa(_)]).
 5872
 5873events([prepare, persuade, muestra_del_general(A), llamar_general(A), general_recuerda_esposa(_)]).
 5874
 5875observe([muestra_del_general('+86-555000001')], 3).
 5876observe([general_recuerda_esposa(##########)], 4).
 5877
 5878maxTime(10).
 5879% dB(/.../(lps_user_examples, 'Jeinfferson Bernal.pl'), lps_visualization(_60436{groups:[_59340{content:"Events", id:"event", order:1}, _59414{content:"es_un_arma", id:"es_un_arma/0", order:3, subgroupStack:"false"}, _59492{content:"es_un_regalo", id:"es_un_regalo/0", order:3, subgroupStack:"false"}, _59558{content:"Actions", id:"action", order:4}], items:[_59668{content:"es_un_arma", end:7, group:"es_un_arma/0", id:0, start:1, title:"Fluent es_un_arma initiated at 1<br/>and terminated at transition to 7"}, _59778{content:"es_un_regalo", end:11, group:"es_un_regalo/0", id:1, start:7, title:"Fluent es_un_regalo initiated at 7<br/>and terminated at transition to 11"}, _59900{content:"muestra_del_general(+86-555000001)", group:"event", id:2, start:3, style:"color:#E19735", title:"happens(muestra_del_general(+86-555000001),2,3)", type:"point"}, _60026{content:"general_recuerda_esposa(##########)", group:"event", id:3, start:4, style:"color:#E19735", title:"happens(general_recuerda_esposa(##########),3,4)", type:"point"}, _60152{content:"robar", group:"action", id:4, start:5, style:"color:green", title:"happens(robar,4,5)", type:"point"}, _60278{content:"llamar_al(+86-555000001)", group:"action", id:5, start:6, style:"color:green", title:"happens(llamar_al(+86-555000001),5,6)", type:"point"}, _60404{content:"repita_mensaje_esposa(##########)", group:"action", id:6, start:7, style:"color:green", title:"happens(repita_mensaje_esposa(##########),6,7)", type:"point"}]}, [])).
 5880% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'JindoshRiddle.pl')).
 5881% run_lps_corner_file1(/.../(lps_user_examples, 'JindoshRiddle.pl')).
 5882% /pack/logicmoo_ec/test/lps_user_examples/JindoshRiddle.pl:1
 5883% push_lps_dialect.
 5884% ops.
 5885% [ti=user, load= /.../(lps_user_examples, 'JindoshRiddle.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'JindoshRiddle.pl'), lps= /.../(lps_user_examples, 'JindoshRiddle.pl'), using= /.../(lps_user_examples, 'JindoshRiddle.pl')].
 5886% continue_lps_dialect.
 5887% ops.
 5888% /pack/logicmoo_ec/test/lps_user_examples/JindoshRiddle.pl:71
 5889% pop_lps_dialect('$BLOB'("<stream>(0x562ef73e2400)"),  (/.../(lps_user_examples, 'JindoshRiddle.pl')-> /.../(lps_user_examples, 'JindoshRiddle.pl'))).
 5890% ops.
 5891% :-listing('/pack/logicmoo_ec/test/lps_user_examples/JindoshRiddle.pl':_44734).
 5892
 5893
 5894seating(Seats) :-
 5895    length(Seats, 5),
 5896    member(s(winslow, _, _, _, purple), Seats),
 5897    left_of(s(_, _, _, whiskey, red),
 5898            s(_, _, _, _, green),
 5899            Seats),
 5900    member(s(_, _, dabokva, _, white), Seats),
 5901    next(s(_, snuff, _, _, _),
 5902         s(_, _, dabokva, _, _),
 5903         Seats),
 5904    Seats=[s(marcola, _, _, _, _), s(_, _, _, _, blue), s(_, _, _, beer, _), _, _],
 5905    member(s(contee, medal, _, _, _), Seats),
 5906    member(s(_, ring, fraeport, _, _), Seats),
 5907    next(s(_, _, dunwall, _, _),
 5908         s(_, _, _, absinthe, _),
 5909         Seats),
 5910    next(s(_, snuff, _, _, _),
 5911         s(_, _, dabokva, _, _),
 5912         Seats),
 5913    member(s(finch, _, _, rum, _), Seats),
 5914    member(s(_, _, karnaca, wine, _), Seats),
 5915    next(s(_, pendant, _, _, _),
 5916         s(_, _, dunwall, _, _),
 5917         Seats),
 5918    member(s(natsiou, _, baleton, _, _), Seats),
 5919    member(s(_, diamond, _, _, _), Seats).
 5920
 5921next(A, B, Ls) :-
 5922    left_of(A, B, Ls).
 5923next(A, B, Ls) :-
 5924    right_of(A, B, Ls).
 5925
 5926right_of(A, B, Ls) :-
 5927    append(_, [B, A|_], Ls).
 5928
 5929:- dynamic'swish renderer'/2.
 5930
 5931'swish renderer'(table, [header(s('Owner', 'Heirloom', 'Town', 'Drink', 'Color'))]).
 5932
 5933:- dynamic actions/1.
 5934:- multifile actions/1.
 5935
 5936
 5937left_of(A, B, Ls) :-
 5938    append(_, [A, B|_], Ls).
 5939% dB(/.../(lps_user_examples, 'JindoshRiddle.pl'), lps_visualization(_42858{groups:[], items:[]}, [])).
 5940% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'JohnDTractorInsuranceContract.pl')).
 5941% run_lps_corner_file1(/.../(lps_user_examples, 'JohnDTractorInsuranceContract.pl')).
 5942% /pack/logicmoo_ec/test/lps_user_examples/JohnDTractorInsuranceContract.pl:1
 5943% push_lps_dialect.
 5944% ops.
 5945% [ti=user, load= /.../(lps_user_examples, 'JohnDTractorInsuranceContract.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'JohnDTractorInsuranceContract.pl'), lps= /.../(lps_user_examples, 'JohnDTractorInsuranceContract.pl'), using= /.../(lps_user_examples, 'JohnDTractorInsuranceContract.pl')].
 5946% continue_lps_dialect.
 5947% ops.
 5948% /pack/logicmoo_ec/test/lps_user_examples/JohnDTractorInsuranceContract.pl:3
 5949% pop_lps_dialect('$BLOB'("<stream>(0x562ef73e4b00)"),  (/.../(lps_user_examples, 'JohnDTractorInsuranceContract.pl')-> /.../(lps_user_examples, 'JohnDTractorInsuranceContract.pl'))).
 5950% ops.
 5951% :-listing('/pack/logicmoo_ec/test/lps_user_examples/JohnDTractorInsuranceContract.pl':_85540).
 5952
 5953
 5954:- dynamic actions/1.
 5955:- multifile actions/1.
 5956
 5957% dB(/.../(lps_user_examples, 'JohnDTractorInsuranceContract.pl'), lps_visualization(_27022{groups:[], items:[]}, [])).
 5958% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'Joker_s_dilemma.pl')).
 5959% run_lps_corner_file1(/.../(lps_user_examples, 'Joker_s_dilemma.pl')).
 5960% /pack/logicmoo_ec/test/lps_user_examples/Joker_s_dilemma.pl:1
 5961% push_lps_dialect.
 5962% ops.
 5963% [ti=user, load= /.../(lps_user_examples, 'Joker_s_dilemma.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'Joker_s_dilemma.pl'), lps= /.../(lps_user_examples, 'Joker_s_dilemma.pl'), using= /.../(lps_user_examples, 'Joker_s_dilemma.pl')].
 5964% continue_lps_dialect.
 5965% ops.
 5966
 5967% LPS:  fluents((peligro_fisico(_62992),peligro_sancion_social(_63032))).
 5968% Into: fluents([peligro_fisico(_62992),peligro_sancion_social(_63032)]).
 5969
 5970% LPS:  events((peligro_de_muerte(_64100),alejarse_del_peligro(_64100),causar_muerte(_64100,_64196),posible_sancion_social(_64250,_64100),evitar_sancion(_64250,_64100),gana(_64348))).
 5971% Into: events([peligro_de_muerte(_64100),alejarse_del_peligro(_64100),causar_muerte(_64100,_64196),posible_sancion_social(_64250,_64100),evitar_sancion(_64250,_64100),gana(_64348)]).
 5972
 5973% LPS:  actions((usar_detonador(_65638),guardar_detonador(_65638))).
 5974% Into: actions([usar_detonador(_65638),guardar_detonador(_65638)]).
 5975
 5976% LPS:  then(if(from(peligro_de_muerte(_66870),to(_66906,_66908))),from(alejarse_del_peligro(_66870),to(_67066,_67068))).
 5977% Into: reactive_rule([happens(peligro_de_muerte(_66870),_66906,_66908)],[happens(alejarse_del_peligro(_66870),_67066,_67068)]).
 5978
 5979% LPS:  if(from(alejarse_del_peligro(_19316),to(_19332,_19334)),from(usar_detonador(_19316),to(_19432,_19434))).
 5980% Into: l_events(happens(alejarse_del_peligro(_19316),_19332,_19334),[happens(usar_detonador(_19316),_19432,_19434)]).
 5981
 5982% LPS:  if(from(causar_muerte(_19884,_19886),to(_19922,_19924)),from(usar_detonador(_19884),to(_20058,_20060))).
 5983% Into: l_events(happens(causar_muerte(_19884,_19886),_19922,_19924),[happens(usar_detonador(_19884),_20058,_20060)]).
 5984
 5985% LPS:  if(posible_sancion_social(_21262,_21264),causar_muerte(_21264,_21320)).
 5986% Into: l_events(happens(posible_sancion_social(_21262,_21264),_22374,_22380),[happens(causar_muerte(_21264,_21320),_22374,_22380)]).
 5987
 5988% LPS:  then(if(from(posible_sancion_social(_22414,_22416),to(_22452,_22454))),from(evitar_sancion(_22414,_22416),to(_22628,_22630))).
 5989% Into: reactive_rule([happens(posible_sancion_social(_22414,_22416),_22452,_22454)],[happens(evitar_sancion(_22414,_22416),_22628,_22630)]).
 5990
 5991% LPS:  if(evitar_sancion(_23838,_23840),from(guardar_detonador(_23840),to(_23916,_23918))).
 5992% Into: l_events(happens(evitar_sancion(_23838,_23840),_23916,_23918),[happens(guardar_detonador(_23840),_23916,_23918)]).
 5993
 5994% LPS:  if(gana(batman),(evitar_sancion(_25166,ciudadanos),evitar_sancion(_25166,delincuentes))).
 5995% Into: l_events(happens(gana(batman),_26296,_26302),[happens(evitar_sancion(_25166,ciudadanos),_26296,_26376),happens(evitar_sancion(_25166,delincuentes),_26376,_26302)]).
 5996
 5997% LPS:  if(gana(joker),alejarse_del_peligro(ciudadanos)).
 5998% Into: l_events(happens(gana(joker),_27368,_27374),[happens(alejarse_del_peligro(ciudadanos),_27368,_27374)]).
 5999
 6000% LPS:  if(gana(joker),alejarse_del_peligro(delincuentes)).
 6001% Into: l_events(happens(gana(joker),_28440,_28446),[happens(alejarse_del_peligro(delincuentes),_28440,_28446)]).
 6002
 6003% LPS:  initially((peligro_fisico(pasajeros),peligro_sancion_social(pasajeros))).
 6004% Into: initial_state([peligro_fisico(pasajeros),peligro_sancion_social(pasajeros)]).
 6005
 6006% LPS:  observe((from(peligro_de_muerte(ciudadanos),to(1,2)),from(peligro_de_muerte(delincuentes),to(1,2)))).
 6007% Into: observe([peligro_de_muerte(ciudadanos),peligro_de_muerte(delincuentes)],2).
 6008
 6009% LPS:  terminates(guardar_detonador(_30890),peligro_sancion_social(_30930)).
 6010% Into: terminated(happens(guardar_detonador(_30890),_32026,_32032),peligro_sancion_social(_30930),[]).
 6011
 6012% LPS:  terminates(usar_detonador(_31962),peligro_fisico(_32002)).
 6013% Into: terminated(happens(usar_detonador(_31962),_33098,_33104),peligro_fisico(_32002),[]).
 6014% /pack/logicmoo_ec/test/lps_user_examples/Joker_s_dilemma.pl:48
 6015% pop_lps_dialect('$BLOB'("<stream>(0x562ef73e5c00)"),  (/.../(lps_user_examples, 'Joker_s_dilemma.pl')-> /.../(lps_user_examples, 'Joker_s_dilemma.pl'))).
 6016% ops.
 6017% :-listing('/pack/logicmoo_ec/test/lps_user_examples/Joker_s_dilemma.pl':_40678).
 6018
 6019
 6020fluents([peligro_fisico(_), peligro_sancion_social(_)]).
 6021
 6022terminated(happens(guardar_detonador(_), _, _), peligro_sancion_social(_), []).
 6023terminated(happens(usar_detonador(_), _, _), peligro_fisico(_), []).
 6024
 6025reactive_rule([happens(peligro_de_muerte(A), _, _)], [happens(alejarse_del_peligro(A), _, _)]).
 6026reactive_rule([happens(posible_sancion_social(A, B), _, _)], [happens(evitar_sancion(A, B), _, _)]).
 6027
 6028initial_state([peligro_fisico(pasajeros), peligro_sancion_social(pasajeros)]).
 6029
 6030l_events(happens(alejarse_del_peligro(A), _, _), [happens(usar_detonador(A), _, _)]).
 6031l_events(happens(causar_muerte(A, _), _, _), [happens(usar_detonador(A), _, _)]).
 6032l_events(happens(posible_sancion_social(_, A), B, C), [happens(causar_muerte(A, _), B, C)]).
 6033l_events(happens(evitar_sancion(_, A), B, C), [happens(guardar_detonador(A), B, C)]).
 6034l_events(happens(gana(batman), A, B), [happens(evitar_sancion(C, ciudadanos), A, D), happens(evitar_sancion(C, delincuentes), D, B)]).
 6035l_events(happens(gana(joker), A, B), [happens(alejarse_del_peligro(ciudadanos), A, B)]).
 6036l_events(happens(gana(joker), A, B), [happens(alejarse_del_peligro(delincuentes), A, B)]).
 6037
 6038:- dynamic actions/1.
 6039:- multifile actions/1.
 6040
 6041actions([usar_detonador(A), guardar_detonador(A)]).
 6042
 6043events([peligro_de_muerte(A), alejarse_del_peligro(A), causar_muerte(A, _), posible_sancion_social(B, A), evitar_sancion(B, A), gana(_)]).
 6044
 6045observe([peligro_de_muerte(ciudadanos), peligro_de_muerte(delincuentes)], 2).
 6046
 6047maxTime(15).
 6048% dB(/.../(lps_user_examples, 'Joker_s_dilemma.pl'), lps_visualization(_58410{groups:[_57156{content:"Events", id:"event", order:1}, _57230{content:"peligro_fisico(A)", id:"peligro_fisico/1", order:3, subgroupStack:"false"}, _57308{content:"peligro_sancion_social(A)", id:"peligro_sancion_social/1", order:3, subgroupStack:"false"}, _57374{content:"Actions", id:"action", order:4}], items:[_57496{content:"pasajeros", end:3, group:"peligro_fisico/1", id:0, start:1, subgroup:"pasajeros", title:"Fluent peligro_fisico(pasajeros) initiated at 1<br/>and terminated at transition to 3"}, _57622{content:"pasajeros", end:4, group:"peligro_sancion_social/1", id:1, start:1, subgroup:"pasajeros", title:"Fluent peligro_sancion_social(pasajeros) initiated at 1<br/>and terminated at transition to 4"}, _57748{content:"peligro_de_muerte(ciudadanos)", group:"event", id:2, start:2, style:"color:#E19735", title:"happens(peligro_de_muerte(ciudadanos),1,2)", type:"point"}, _57874{content:"peligro_de_muerte(delincuentes)", group:"event", id:3, start:2, style:"color:#E19735", title:"happens(peligro_de_muerte(delincuentes),1,2)", type:"point"}, _58000{content:"usar_detonador(delincuentes)", group:"action", id:4, start:3, style:"color:green", title:"happens(usar_detonador(delincuentes),2,3)", type:"point"}, _58126{content:"usar_detonador(ciudadanos)", group:"action", id:5, start:3, style:"color:green", title:"happens(usar_detonador(ciudadanos),2,3)", type:"point"}, _58252{content:"guardar_detonador(ciudadanos)", group:"action", id:6, start:4, style:"color:green", title:"happens(guardar_detonador(ciudadanos),3,4)", type:"point"}, _58378{content:"guardar_detonador(delincuentes)", group:"action", id:7, start:4, style:"color:green", title:"happens(guardar_detonador(delincuentes),3,4)", type:"point"}]}, [])).
 6049% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'leonraton01.pl')).
 6050% run_lps_corner_file1(/.../(lps_user_examples, 'leonraton01.pl')).
 6051% /pack/logicmoo_ec/test/lps_user_examples/leonraton01.pl:1
 6052% push_lps_dialect.
 6053% ops.
 6054% [ti=user, load= /.../(lps_user_examples, 'leonraton01.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'leonraton01.pl'), lps= /.../(lps_user_examples, 'leonraton01.pl'), using= /.../(lps_user_examples, 'leonraton01.pl')].
 6055% continue_lps_dialect.
 6056% ops.
 6057
 6058% LPS:  fluents((le�n_atrapado,quiero_liberar_al_le�n,salvar_al_le�n)).
 6059% Into: fluents([le�n_atrapado,quiero_liberar_al_le�n,salvar_al_le�n]).
 6060
 6061% LPS:  actions((precavido,utilizar_afilados_dientes,correr)).
 6062% Into: actions([precavido,utilizar_afilados_dientes,correr]).
 6063
 6064% LPS:  events((liberar,cortar_cuerdas,escapar_al_dejar_trampa)).
 6065% Into: events([liberar,cortar_cuerdas,escapar_al_dejar_trampa]).
 6066
 6067% LPS:  initially(le�n_atrapado).
 6068% Into: initial_state([le�n_atrapado]).
 6069
 6070% LPS:  then(if(at(le�n_atrapado,_23856)),from(liberar,to(_23856,_23960))).
 6071% Into: reactive_rule([holds(le�n_atrapado,_23856)],[happens(liberar,_23856,_23960)]).
 6072
 6073% LPS:  if(from(liberar,to(_25534,_25536)),from(precavido,to(_25534,_25536))).
 6074% Into: l_events(happens(liberar,_25534,_25536),[happens(precavido,_25534,_25536)]).
 6075
 6076% LPS:  terminates(liberar,le�n_atrapado).
 6077% Into: terminated(happens(liberar,_27844,_27850),le�n_atrapado,[]).
 6078
 6079% LPS:  initially(quiero_liberar_al_le�n).
 6080% Into: initial_state([quiero_liberar_al_le�n]).
 6081
 6082% LPS:  then(if(at(quiero_liberar_al_le�n,_28798)),from(cortar_cuerdas,to(_28798,_28902))).
 6083% Into: reactive_rule([holds(quiero_liberar_al_le�n,_28798)],[happens(cortar_cuerdas,_28798,_28902)]).
 6084
 6085% LPS:  if(from(cortar_cuerdas,to(_30042,_30044)),from(utilizar_afilados_dientes,to(_30042,_30044))).
 6086% Into: l_events(happens(cortar_cuerdas,_30042,_30044),[happens(utilizar_afilados_dientes,_30042,_30044)]).
 6087
 6088% LPS:  terminates(cortar_cuerdas,quiero_liberar_al_le�n).
 6089% Into: terminated(happens(cortar_cuerdas,_32352,_32358),quiero_liberar_al_le�n,[]).
 6090
 6091% LPS:  initially(salvar_al_le�n).
 6092% Into: initial_state([salvar_al_le�n]).
 6093
 6094% LPS:  then(if(at(salvar_al_le�n,_33306)),from(escapar_al_dejar_trampa,to(_33306,_33410))).
 6095% Into: reactive_rule([holds(salvar_al_le�n,_33306)],[happens(escapar_al_dejar_trampa,_33306,_33410)]).
 6096
 6097% LPS:  if(from(escapar_al_dejar_trampa,to(_34550,_34552)),from(correr,to(_34550,_34552))).
 6098% Into: l_events(happens(escapar_al_dejar_trampa,_34550,_34552),[happens(correr,_34550,_34552)]).
 6099
 6100% LPS:  terminates(escapar_al_dejar_trampa,salvar_al_le�n).
 6101% Into: terminated(happens(escapar_al_dejar_trampa,_36860,_36866),salvar_al_le�n,[]).
 6102% /pack/logicmoo_ec/test/lps_user_examples/leonraton01.pl:25
 6103% pop_lps_dialect('$BLOB'("<stream>(0x562ef76d6c00)"),  (/.../(lps_user_examples, 'leonraton01.pl')-> /.../(lps_user_examples, 'leonraton01.pl'))).
 6104% ops.
 6105% :-listing('/pack/logicmoo_ec/test/lps_user_examples/leonraton01.pl':_44412).
 6106
 6107
 6108fluents([le�n_atrapado, quiero_liberar_al_le�n, salvar_al_le�n]).
 6109
 6110terminated(happens(liberar, _, _), le�n_atrapado, []).
 6111terminated(happens(cortar_cuerdas, _, _), quiero_liberar_al_le�n, []).
 6112terminated(happens(escapar_al_dejar_trampa, _, _), salvar_al_le�n, []).
 6113
 6114reactive_rule([holds(le�n_atrapado, A)], [happens(liberar, A, _)]).
 6115reactive_rule([holds(quiero_liberar_al_le�n, A)], [happens(cortar_cuerdas, A, _)]).
 6116reactive_rule([holds(salvar_al_le�n, A)], [happens(escapar_al_dejar_trampa, A, _)]).
 6117
 6118initial_state([le�n_atrapado]).
 6119initial_state([quiero_liberar_al_le�n]).
 6120initial_state([salvar_al_le�n]).
 6121
 6122l_events(happens(liberar, A, B), [happens(precavido, A, B)]).
 6123l_events(happens(cortar_cuerdas, A, B), [happens(utilizar_afilados_dientes, A, B)]).
 6124l_events(happens(escapar_al_dejar_trampa, A, B), [happens(correr, A, B)]).
 6125
 6126:- dynamic actions/1.
 6127:- multifile actions/1.
 6128
 6129actions([precavido, utilizar_afilados_dientes, correr]).
 6130
 6131events([liberar, cortar_cuerdas, escapar_al_dejar_trampa]).
 6132
 6133maxTime(18).
 6134% dB(/.../(lps_user_examples, 'leonraton01.pl'), lps_visualization(_57872{groups:[_56536{content:"le�n_atrapado", id:"le�n_atrapado/0", order:3, subgroupStack:"false"}, _56614{content:"quiero_liberar_al_le�n", id:"quiero_liberar_al_le�n/0", order:3, subgroupStack:"false"}, _56692{content:"salvar_al_le�n", id:"salvar_al_le�n/0", order:3, subgroupStack:"false"}, _56758{content:"Actions", id:"action", order:4}], items:[_56868{content:"le�n_atrapado", end:2, group:"le�n_atrapado/0", id:0, start:1, title:"Fluent le�n_atrapado initiated at 1<br/>and terminated at transition to 2"}, _56978{content:"quiero_liberar_al_le�n", end:2, group:"quiero_liberar_al_le�n/0", id:1, start:1, title:"Fluent quiero_liberar_al_le�n initiated at 1<br/>and terminated at transition to 2"}, _57088{content:"salvar_al_le�n", end:2, group:"salvar_al_le�n/0", id:2, start:1, title:"Fluent salvar_al_le�n initiated at 1<br/>and terminated at transition to 2"}, _57210{content:"correr", group:"action", id:3, start:2, style:"color:green", title:"happens(correr,1,2)", type:"point"}, _57336{content:"utilizar_afilados_dientes", group:"action", id:4, start:2, style:"color:green", title:"happens(utilizar_afilados_dientes,1,2)", type:"point"}, _57462{content:"precavido", group:"action", id:5, start:2, style:"color:green", title:"happens(precavido,1,2)", type:"point"}, _57588{content:"precavido", group:"action", id:6, start:3, style:"color:green", title:"happens(precavido,2,3)", type:"point"}, _57714{content:"utilizar_afilados_dientes", group:"action", id:7, start:3, style:"color:green", title:"happens(utilizar_afilados_dientes,2,3)", type:"point"}, _57840{content:"correr", group:"action", id:8, start:3, style:"color:green", title:"happens(correr,2,3)", type:"point"}]}, [])).
 6135% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'leonraton02.pl')).
 6136% run_lps_corner_file1(/.../(lps_user_examples, 'leonraton02.pl')).
 6137% /pack/logicmoo_ec/test/lps_user_examples/leonraton02.pl:1
 6138% push_lps_dialect.
 6139% ops.
 6140% [ti=user, load= /.../(lps_user_examples, 'leonraton02.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'leonraton02.pl'), lps= /.../(lps_user_examples, 'leonraton02.pl'), using= /.../(lps_user_examples, 'leonraton02.pl')].
 6141% continue_lps_dialect.
 6142% ops.
 6143
 6144% LPS:  fluents((esta(_19550,_19552),cerca(_19550,_19552))).
 6145% Into: fluents([esta(_19550,_19552),cerca(_19550,_19552)]).
 6146
 6147% LPS:  actions((precavido/2,puede/2,salvar/2,liberarlo/2)).
 6148% Into: actions([precavido(_22210,_22212),puede(_22222,_22224),salvar(_22234,_22236),liberarlo(_22246,_22248)]).
 6149
 6150% LPS:  events((cortar_cuerdas/1,libero/1,liberar/2)).
 6151% Into: events([cortar_cuerdas(_23436),libero(_23446),liberar(_23456,_23458)]).
 6152
 6153% LPS:  initially(esta(le�n,amarre)).
 6154% Into: initial_state([esta(le�n,amarre)]).
 6155
 6156% LPS:  observe(from(cortar_cuerdas(yo),to(1,2))).
 6157% Into: observe([cortar_cuerdas(yo)],2).
 6158
 6159% LPS:  if(initiates(puede(_25532,_25534),esta(_25532,_25534)),cerca(_25532,_25534)).
 6160% Into: initiated(happens(puede(_25532,_25534),_26844,_26850),esta(_25532,_25534),[holds(cerca(_25532,_25534),_26844)]).
 6161
 6162% LPS:  if(terminates(puede(_27104,_27106),esta(_27160,_27106)),_27160\==_27104).
 6163% Into: terminated(happens(puede(_27104,_27106),_28428,_28434),esta(_27160,_27106),[_27160\==_27104]).
 6164
 6165% LPS:  if(initiates(libero(le�n),cerca(yo,amarre)),esta(le�n,amarre)).
 6166% Into: initiated(happens(libero(le�n),_30084,_30090),cerca(yo,amarre),[holds(esta(le�n,amarre),_30084)]).
 6167
 6168% LPS:  if(libero(le�n),precavido(yo,le�n)).
 6169% Into: l_events(happens(libero(le�n),_31402,_31408),[happens(precavido(yo,le�n),_31402,_31408)]).
 6170
 6171% LPS:  if(liberarlo(yo,amarre),(esta(le�n,amarre),libero(le�n))).
 6172% Into: l_events(happens(liberarlo(yo,amarre),_32832,_32838),[holds(esta(le�n,amarre),_32832),happens(libero(le�n),_32832,_32838)]).
 6173
 6174% LPS:  if(liberar(_32864,_32866),(liberarlo(_32864,_32866),puede(_32864,_32866),salvar(_32864,_32866))).
 6175% Into: l_events(happens(liberar(_32864,_32866),_34164,_34170),[happens(liberarlo(_32864,_32866),_34164,_34244),happens(puede(_32864,_32866),_34244,_34386),happens(salvar(_32864,_32866),_34386,_34170)]).
 6176
 6177% LPS:  then(if(from(cortar_cuerdas(yo),to(_34226,_34228))),from(liberar(yo,amarre),to(_34228,_34404))).
 6178% Into: reactive_rule([happens(cortar_cuerdas(yo),_34226,_34228)],[happens(liberar(yo,amarre),_34228,_34404)]).
 6179% /pack/logicmoo_ec/test/lps_user_examples/leonraton02.pl:20
 6180% pop_lps_dialect('$BLOB'("<stream>(0x562ef6c57200)"),  (/.../(lps_user_examples, 'leonraton02.pl')-> /.../(lps_user_examples, 'leonraton02.pl'))).
 6181% ops.
 6182% :-listing('/pack/logicmoo_ec/test/lps_user_examples/leonraton02.pl':_43196).
 6183
 6184
 6185initiated(happens(puede(A, B), C, _), esta(A, B), [holds(cerca(A, B), C)]).
 6186initiated(happens(libero(le�n), A, _), cerca(yo, amarre), [holds(esta(le�n, amarre), A)]).
 6187
 6188fluents([esta(A, B), cerca(A, B)]).
 6189
 6190terminated(happens(puede(A, B), _, _), esta(C, B), [C\==A]).
 6191
 6192reactive_rule([happens(cortar_cuerdas(yo), _, A)], [happens(liberar(yo, amarre), A, _)]).
 6193
 6194initial_state([esta(le�n, amarre)]).
 6195
 6196l_events(happens(libero(le�n), A, B), [happens(precavido(yo, le�n), A, B)]).
 6197l_events(happens(liberarlo(yo, amarre), A, B), [holds(esta(le�n, amarre), A), happens(libero(le�n), A, B)]).
 6198l_events(happens(liberar(A, B), C, D), [happens(liberarlo(A, B), C, E), happens(puede(A, B), E, F), happens(salvar(A, B), F, D)]).
 6199
 6200:- dynamic actions/1.
 6201:- multifile actions/1.
 6202
 6203actions([precavido(_, _), puede(_, _), salvar(_, _), liberarlo(_, _)]).
 6204
 6205events([cortar_cuerdas(_), libero(_), liberar(_, _)]).
 6206
 6207observe([cortar_cuerdas(yo)], 2).
 6208
 6209maxTime(6).
 6210% dB(/.../(lps_user_examples, 'leonraton02.pl'), lps_visualization(_39260{groups:[_38132{content:"Events", id:"event", order:1}, _38206{content:"cerca(A,B)", id:"cerca/2", order:3, subgroupStack:"false"}, _38284{content:"esta(A,B)", id:"esta/2", order:3, subgroupStack:"false"}, _38350{content:"Actions", id:"action", order:4}], items:[_38472{content:"yo,amarre", end:7, group:"cerca/2", id:0, start:3, subgroup:"yo", title:"Fluent cerca(yo,amarre) initiated at 3<br/>and terminated at transition to 7"}, _38598{content:"le�n,amarre", end:4, group:"esta/2", id:1, start:1, subgroup:"le�n", title:"Fluent esta(le�n,amarre) initiated at 1<br/>and terminated at transition to 4"}, _38724{content:"yo,amarre", end:7, group:"esta/2", id:2, start:4, subgroup:"yo", title:"Fluent esta(yo,amarre) initiated at 4<br/>and terminated at transition to 7"}, _38850{content:"cortar_cuerdas(yo)", group:"event", id:3, start:2, style:"color:#E19735", title:"happens(cortar_cuerdas(yo),1,2)", type:"point"}, _38976{content:"precavido(yo,le�n)", group:"action", id:4, start:3, style:"color:green", title:"happens(precavido(yo,le�n),2,3)", type:"point"}, _39102{content:"puede(yo,amarre)", group:"action", id:5, start:4, style:"color:green", title:"happens(puede(yo,amarre),3,4)", type:"point"}, _39228{content:"salvar(yo,amarre)", group:"action", id:6, start:5, style:"color:green", title:"happens(salvar(yo,amarre),4,5)", type:"point"}]}, [])).
 6211% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'Leon_raton.pl')).
 6212% run_lps_corner_file1(/.../(lps_user_examples, 'Leon_raton.pl')).
 6213% /pack/logicmoo_ec/test/lps_user_examples/Leon_raton.pl:1
 6214% push_lps_dialect.
 6215% ops.
 6216% [ti=user, load= /.../(lps_user_examples, 'Leon_raton.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'Leon_raton.pl'), lps= /.../(lps_user_examples, 'Leon_raton.pl'), using= /.../(lps_user_examples, 'Leon_raton.pl')].
 6217% continue_lps_dialect.
 6218% ops.
 6219
 6220% LPS:  fluents((leon_atrapado,liberar_leon,salvar_leon)).
 6221% Into: fluents([leon_atrapado,liberar_leon,salvar_leon]).
 6222
 6223% LPS:  actions((precavido,utilizar_dientes,correr)).
 6224% Into: actions([precavido,utilizar_dientes,correr]).
 6225
 6226% LPS:  events((liberar,cortar_amarre,escapar_trampa)).
 6227% Into: events([liberar,cortar_amarre,escapar_trampa]).
 6228
 6229% LPS:  initially(leon_atrapado).
 6230% Into: initial_state([leon_atrapado]).
 6231
 6232% LPS:  then(if(at(leon_atrapado,_23844)),from(liberar,to(_23844,_23948))).
 6233% Into: reactive_rule([holds(leon_atrapado,_23844)],[happens(liberar,_23844,_23948)]).
 6234
 6235% LPS:  if(from(liberar,to(_25522,_25524)),from(precavido,to(_25522,_25524))).
 6236% Into: l_events(happens(liberar,_25522,_25524),[happens(precavido,_25522,_25524)]).
 6237
 6238% LPS:  terminates(liberar,leon_atrapado).
 6239% Into: terminated(happens(liberar,_27832,_27838),leon_atrapado,[]).
 6240
 6241% LPS:  initiates(liberar,liberar_leon).
 6242% Into: initiated(happens(liberar,_28848,_28854),liberar_leon,[]).
 6243
 6244% LPS:  then(if(at(liberar_leon,_28804)),from(cortar_amarre,to(_28804,_28908))).
 6245% Into: reactive_rule([holds(liberar_leon,_28804)],[happens(cortar_amarre,_28804,_28908)]).
 6246
 6247% LPS:  if(from(cortar_amarre,to(_30048,_30050)),from(utilizar_dientes,to(_30048,_30050))).
 6248% Into: l_events(happens(cortar_amarre,_30048,_30050),[happens(utilizar_dientes,_30048,_30050)]).
 6249
 6250% LPS:  terminates(cortar_amarre,liberar_leon).
 6251% Into: terminated(happens(cortar_amarre,_32358,_32364),liberar_leon,[]).
 6252
 6253% LPS:  initiates(cortar_amarre,salvar_leon).
 6254% Into: initiated(happens(cortar_amarre,_33374,_33380),salvar_leon,[]).
 6255
 6256% LPS:  then(if(at(salvar_leon,_33330)),from(escapar_trampa,to(_33330,_33434))).
 6257% Into: reactive_rule([holds(salvar_leon,_33330)],[happens(escapar_trampa,_33330,_33434)]).
 6258
 6259% LPS:  if(from(escapar_trampa,to(_34574,_34576)),from(correr,to(_34574,_34576))).
 6260% Into: l_events(happens(escapar_trampa,_34574,_34576),[happens(correr,_34574,_34576)]).
 6261
 6262% LPS:  terminates(escapar_trampa,salvar_leon).
 6263% Into: terminated(happens(escapar_trampa,_36884,_36890),salvar_leon,[]).
 6264% /pack/logicmoo_ec/test/lps_user_examples/Leon_raton.pl:34
 6265% pop_lps_dialect('$BLOB'("<stream>(0x562ef70bf800)"),  (/.../(lps_user_examples, 'Leon_raton.pl')-> /.../(lps_user_examples, 'Leon_raton.pl'))).
 6266% ops.
 6267% :-listing('/pack/logicmoo_ec/test/lps_user_examples/Leon_raton.pl':_44436).
 6268
 6269
 6270initiated(happens(liberar, _, _), liberar_leon, []).
 6271initiated(happens(cortar_amarre, _, _), salvar_leon, []).
 6272
 6273fluents([leon_atrapado, liberar_leon, salvar_leon]).
 6274
 6275terminated(happens(liberar, _, _), leon_atrapado, []).
 6276terminated(happens(cortar_amarre, _, _), liberar_leon, []).
 6277terminated(happens(escapar_trampa, _, _), salvar_leon, []).
 6278
 6279reactive_rule([holds(leon_atrapado, A)], [happens(liberar, A, _)]).
 6280reactive_rule([holds(liberar_leon, A)], [happens(cortar_amarre, A, _)]).
 6281reactive_rule([holds(salvar_leon, A)], [happens(escapar_trampa, A, _)]).
 6282
 6283initial_state([leon_atrapado]).
 6284
 6285l_events(happens(liberar, A, B), [happens(precavido, A, B)]).
 6286l_events(happens(cortar_amarre, A, B), [happens(utilizar_dientes, A, B)]).
 6287l_events(happens(escapar_trampa, A, B), [happens(correr, A, B)]).
 6288
 6289:- dynamic actions/1.
 6290:- multifile actions/1.
 6291
 6292actions([precavido, utilizar_dientes, correr]).
 6293
 6294events([liberar, cortar_amarre, escapar_trampa]).
 6295
 6296maxTime(10).
 6297% dB(/.../(lps_user_examples, 'Leon_raton.pl'), lps_visualization(_47122{groups:[_45786{content:"leon_atrapado", id:"leon_atrapado/0", order:3, subgroupStack:"false"}, _45864{content:"liberar_leon", id:"liberar_leon/0", order:3, subgroupStack:"false"}, _45942{content:"salvar_leon", id:"salvar_leon/0", order:3, subgroupStack:"false"}, _46008{content:"Actions", id:"action", order:4}], items:[_46118{content:"leon_atrapado", end:2, group:"leon_atrapado/0", id:0, start:1, title:"Fluent leon_atrapado initiated at 1<br/>and terminated at transition to 2"}, _46228{content:"liberar_leon", end:4, group:"liberar_leon/0", id:1, start:2, title:"Fluent liberar_leon initiated at 2<br/>and terminated at transition to 4"}, _46338{content:"salvar_leon", end:6, group:"salvar_leon/0", id:2, start:4, title:"Fluent salvar_leon initiated at 4<br/>and terminated at transition to 6"}, _46460{content:"precavido", group:"action", id:3, start:2, style:"color:green", title:"happens(precavido,1,2)", type:"point"}, _46586{content:"precavido", group:"action", id:4, start:3, style:"color:green", title:"happens(precavido,2,3)", type:"point"}, _46712{content:"utilizar_dientes", group:"action", id:5, start:4, style:"color:green", title:"happens(utilizar_dientes,3,4)", type:"point"}, _46838{content:"utilizar_dientes", group:"action", id:6, start:5, style:"color:green", title:"happens(utilizar_dientes,4,5)", type:"point"}, _46964{content:"correr", group:"action", id:7, start:6, style:"color:green", title:"happens(correr,5,6)", type:"point"}, _47090{content:"correr", group:"action", id:8, start:7, style:"color:green", title:"happens(correr,6,7)", type:"point"}]}, [])).
 6298% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'Life.pl')).
 6299% run_lps_corner_file1(/.../(lps_user_examples, 'Life.pl')).
 6300% /pack/logicmoo_ec/test/lps_user_examples/Life.pl:1
 6301% push_lps_dialect.
 6302% ops.
 6303% [ti=user, load= /.../(lps_user_examples, 'Life.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'Life.pl'), lps= /.../(lps_user_examples, 'Life.pl'), using= /.../(lps_user_examples, 'Life.pl')].
 6304% continue_lps_dialect.
 6305% ops.
 6306
 6307% LPS:  fluents(_19520-_19522).
 6308% Into: fluents([_19520-_19522]).
 6309
 6310% LPS:  actions((die(_20600),live(_20640))).
 6311% Into: actions([die(_20600),live(_20640)]).
 6312
 6313% LPS:  initially((2-3,3-3,4-3)).
 6314% Into: initial_state([2-3,3-3,4-3]).
 6315
 6316% LPS:  then(if((at(_23064-_23066,_23114),at(aliveNeighbors(_23064-_23066,_23244),_23114),_23244<2)),die(_23064-_23066)).
 6317% Into: reactive_rule([holds(_23064-_23066,_23114),holds(aliveNeighbors(_23064-_23066,_23244),_23114),_23244<2],[happens(die(_23064-_23066),_26372,_26378)]).
 6318
 6319% LPS:  then(if((at(_26594-_26596,_26644),at(aliveNeighbors(_26594-_26596,_26774),_26644),_26774>3)),die(_26594-_26596)).
 6320% Into: reactive_rule([holds(_26594-_26596,_26644),holds(aliveNeighbors(_26594-_26596,_26774),_26644),_26774>3],[happens(die(_26594-_26596),_29894,_29900)]).
 6321
 6322% LPS:  then(if((cell(_30134,_30136),at(aliveNeighbors(_30134-_30136,3),_30262))),live(_30134-_30136)).
 6323% Into: reactive_rule([cell(_30134,_30136),holds(aliveNeighbors(_30134-_30136,3),_30262)],[happens(live(_30134-_30136),_32762,_32768)]).
 6324
 6325% LPS:  if(at(aliveNeighbors(_38172-_38174,_38220),_38242),(adjacent(_38172-_38174,_38372),at(countLivingNeighbors(_38372,_38220),_38242))).
 6326% Into: l_int(holds(aliveNeighbors(_38172-_38174,_38220),_38242),[adjacent(_38172-_38174,_38372),holds(countLivingNeighbors(_38372,_38220),_38242)]).
 6327
 6328% LPS:  at(countLivingNeighbors([],0),_40454).
 6329% Into: l_int(holds(countLivingNeighbors([],0),_40454),[]).
 6330
 6331% LPS:  if(at(countLivingNeighbors([_41700-_41702|_41734],_41762),_41784),(at(_41700-_41702,_41784),at(countLivingNeighbors(_41734,_41978),_41784),_41762 is _41978+1)).
 6332% Into: l_int(holds(countLivingNeighbors([_41700-_41702|_41734],_41762),_41784),[holds(_41700-_41702,_41784),holds(countLivingNeighbors(_41734,_41978),_41784),_41762 is _41978+1]).
 6333
 6334% LPS:  if(at(countLivingNeighbors([_44352-_44354|_44386],_44414),_44436),(at(not(_44352-_44354),_44436),at(countLivingNeighbors(_44386,_44414),_44436))).
 6335% Into: l_int(holds(countLivingNeighbors([_44352-_44354|_44386],_44414),_44436),[holds(not(_44352-_44354),_44436),holds(countLivingNeighbors(_44386,_44414),_44436)]).
 6336
 6337% LPS:  initiates(live(_46596-_46598),_46596-_46598).
 6338% Into: initiated(happens(live(_46596-_46598),_47830,_47836),_46596-_46598,[]).
 6339
 6340% LPS:  terminates(die(_47772-_47774),_47772-_47774).
 6341% Into: terminated(happens(die(_47772-_47774),_49006,_49012),_47772-_47774,[]).
 6342% /pack/logicmoo_ec/test/lps_user_examples/Life.pl:64
 6343% pop_lps_dialect('$BLOB'("<stream>(0x562ef76d8600)"),  (/.../(lps_user_examples, 'Life.pl')-> /.../(lps_user_examples, 'Life.pl'))).
 6344% ops.
 6345% :-listing('/pack/logicmoo_ec/test/lps_user_examples/Life.pl':_65572).
 6346
 6347
 6348initiated(happens(live(A-B), _, _), A-B, []).
 6349
 6350d(X-Y, [center:[XX, YY], radius:5, type:circle, fillColor:green]) :-
 6351    XX is X*10,
 6352    YY is Y*10.
 6353d(live(X-Y), [type:star, center:[XX, YY], points:7, radius1:4, radius2:7, fillColor:red]) :-
 6354    XX is X*10,
 6355    YY is Y*10.
 6356d(die(X-Y), [type:star, center:[XX, YY], points:7, radius1:4, radius2:7, fillColor:black]) :-
 6357    XX is X*10,
 6358    YY is Y*10.
 6359d(timeless, [[type:raster, position:[50, 120], scale:0.08, source:'https://upload.wikimedia.org/wikipedia/commons/0/04/John_H_Conway_2005_%28cropped%29.jpg'], [type:text, point:[0, 5], content:'Conway\'s Game of Life']]).
 6360
 6361fluents([_-_]).
 6362
 6363l_int(holds(aliveNeighbors(A-B, C), D), [adjacent(A-B, E), holds(countLivingNeighbors(E, C), D)]).
 6364l_int(holds(countLivingNeighbors([], 0), _), []).
 6365l_int(holds(countLivingNeighbors([A-B|C], D), E), [holds(A-B, E), holds(countLivingNeighbors(C, F), E), D is F+1]).
 6366l_int(holds(countLivingNeighbors([A-B|C], D), E), [holds(not(A-B), E), holds(countLivingNeighbors(C, D), E)]).
 6367
 6368reactive_rule([holds(A-B, C), holds(aliveNeighbors(A-B, D), C), D<2], [happens(die(A-B), _, _)]).
 6369reactive_rule([holds(A-B, C), holds(aliveNeighbors(A-B, D), C), D>3], [happens(die(A-B), _, _)]).
 6370reactive_rule([cell(A, B), holds(aliveNeighbors(A-B, 3), _)], [happens(live(A-B), _, _)]).
 6371
 6372cell(X, Y) :-
 6373    Range=[1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
 6374    member(X, Range),
 6375    member(Y, Range).
 6376
 6377initial_state([2-3, 3-3, 4-3]).
 6378
 6379terminated(happens(die(A-B), _, _), A-B, []).
 6380
 6381:- dynamic actions/1. 6382:- multifile actions/1. 6383
 6384actions([die(_), live(_)]).
 6385
 6386adjacent(A-B, C) :-
 6387    findall(D-E,
 6388            ( member(F, [-1, 0, 1]),
 6389              member(G, [-1, 0, 1]),
 6390              not(( F=0,
 6391                    G=0
 6392                  )),
 6393              D is A+F,
 6394              E is B+G
 6395            ),
 6396            C).
 6397
 6398maxTime(8).
 6399% dB(/.../(lps_user_examples, 'Life.pl'), lps_visualization(_324786{groups:[_319022{content:"A-B", id:"(-)/2", order:3, subgroupStack:"false"}, _319088{content:"Actions", id:"action", order:4}], items:[_319210{content:"2,3", end:2, group:"(-)/2", id:0, start:1, subgroup:"2", title:"Fluent 2-3 initiated at 1<br/>and terminated at transition to 2"}, _319336{content:"2,3", end:4, group:"(-)/2", id:1, start:3, subgroup:"2", title:"Fluent 2-3 initiated at 3<br/>and terminated at transition to 4"}, _319462{content:"2,3", end:6, group:"(-)/2", id:2, start:5, subgroup:"2", title:"Fluent 2-3 initiated at 5<br/>and terminated at transition to 6"}, _319588{content:"2,3", end:8, group:"(-)/2", id:3, start:7, subgroup:"2", title:"Fluent 2-3 initiated at 7<br/>and terminated at transition to 8"}, _319714{content:"3,2", end:3, group:"(-)/2", id:4, start:2, subgroup:"3", title:"Fluent 3-2 initiated at 2<br/>and terminated at transition to 3"}, _319840{content:"3,2", end:5, group:"(-)/2", id:5, start:4, subgroup:"3", title:"Fluent 3-2 initiated at 4<br/>and terminated at transition to 5"}, _319966{content:"3,2", end:7, group:"(-)/2", id:6, start:6, subgroup:"3", title:"Fluent 3-2 initiated at 6<br/>and terminated at transition to 7"}, _320092{content:"3,2", end:9, group:"(-)/2", id:7, start:8, subgroup:"3", title:"Fluent 3-2 initiated at 8<br/>and terminated at transition to 9"}, _320218{content:"3,3", end:9, group:"(-)/2", id:8, start:1, subgroup:"3", title:"Fluent 3-3 initiated at 1<br/>and terminated at transition to 9"}, _320344{content:"3,4", end:3, group:"(-)/2", id:9, start:2, subgroup:"3", title:"Fluent 3-4 initiated at 2<br/>and terminated at transition to 3"}, _320470{content:"3,4", end:5, group:"(-)/2", id:10, start:4, subgroup:"3", title:"Fluent 3-4 initiated at 4<br/>and terminated at transition to 5"}, _320596{content:"3,4", end:7, group:"(-)/2", id:11, start:6, subgroup:"3", title:"Fluent 3-4 initiated at 6<br/>and terminated at transition to 7"}, _320722{content:"3,4", end:9, group:"(-)/2", id:12, start:8, subgroup:"3", title:"Fluent 3-4 initiated at 8<br/>and terminated at transition to 9"}, _320848{content:"4,3", end:2, group:"(-)/2", id:13, start:1, subgroup:"4", title:"Fluent 4-3 initiated at 1<br/>and terminated at transition to 2"}, _320974{content:"4,3", end:4, group:"(-)/2", id:14, start:3, subgroup:"4", title:"Fluent 4-3 initiated at 3<br/>and terminated at transition to 4"}, _321100{content:"4,3", end:6, group:"(-)/2", id:15, start:5, subgroup:"4", title:"Fluent 4-3 initiated at 5<br/>and terminated at transition to 6"}, _321226{content:"4,3", end:8, group:"(-)/2", id:16, start:7, subgroup:"4", title:"Fluent 4-3 initiated at 7<br/>and terminated at transition to 8"}, _321352{content:"live(3-4)", group:"action", id:17, start:2, style:"color:green", title:"happens(live(3-4),1,2)", type:"point"}, _321478{content:"live(3-2)", group:"action", id:18, start:2, style:"color:green", title:"happens(live(3-2),1,2)", type:"point"}, _321604{content:"die(4-3)", group:"action", id:19, start:2, style:"color:green", title:"happens(die(4-3),1,2)", type:"point"}, _321730{content:"die(2-3)", group:"action", id:20, start:2, style:"color:green", title:"happens(die(2-3),1,2)", type:"point"}, _321856{content:"die(3-2)", group:"action", id:21, start:3, style:"color:green", title:"happens(die(3-2),2,3)", type:"point"}, _321982{content:"die(3-4)", group:"action", id:22, start:3, style:"color:green", title:"happens(die(3-4),2,3)", type:"point"}, _322108{content:"live(2-3)", group:"action", id:23, start:3, style:"color:green", title:"happens(live(2-3),2,3)", type:"point"}, _322234{content:"live(4-3)", group:"action", id:24, start:3, style:"color:green", title:"happens(live(4-3),2,3)", type:"point"}, _322360{content:"live(3-4)", group:"action", id:25, start:4, style:"color:green", title:"happens(live(3-4),3,4)", type:"point"}, _322486{content:"live(3-2)", group:"action", id:26, start:4, style:"color:green", title:"happens(live(3-2),3,4)", type:"point"}, _322612{content:"die(4-3)", group:"action", id:27, start:4, style:"color:green", title:"happens(die(4-3),3,4)", type:"point"}, _322738{content:"die(2-3)", group:"action", id:28, start:4, style:"color:green", title:"happens(die(2-3),3,4)", type:"point"}, _322864{content:"die(3-2)", group:"action", id:29, start:5, style:"color:green", title:"happens(die(3-2),4,5)", type:"point"}, _322990{content:"die(3-4)", group:"action", id:30, start:5, style:"color:green", title:"happens(die(3-4),4,5)", type:"point"}, _323116{content:"live(2-3)", group:"action", id:31, start:5, style:"color:green", title:"happens(live(2-3),4,5)", type:"point"}, _323242{content:"live(4-3)", group:"action", id:32, start:5, style:"color:green", title:"happens(live(4-3),4,5)", type:"point"}, _323368{content:"live(3-4)", group:"action", id:33, start:6, style:"color:green", title:"happens(live(3-4),5,6)", type:"point"}, _323494{content:"live(3-2)", group:"action", id:34, start:6, style:"color:green", title:"happens(live(3-2),5,6)", type:"point"}, _323620{content:"die(4-3)", group:"action", id:35, start:6, style:"color:green", title:"happens(die(4-3),5,6)", type:"point"}, _323746{content:"die(2-3)", group:"action", id:36, start:6, style:"color:green", title:"happens(die(2-3),5,6)", type:"point"}, _323872{content:"die(3-2)", group:"action", id:37, start:7, style:"color:green", title:"happens(die(3-2),6,7)", type:"point"}, _323998{content:"die(3-4)", group:"action", id:38, start:7, style:"color:green", title:"happens(die(3-4),6,7)", type:"point"}, _324124{content:"live(2-3)", group:"action", id:39, start:7, style:"color:green", title:"happens(live(2-3),6,7)", type:"point"}, _324250{content:"live(4-3)", group:"action", id:40, start:7, style:"color:green", title:"happens(live(4-3),6,7)", type:"point"}, _324376{content:"live(3-4)", group:"action", id:41, start:8, style:"color:green", title:"happens(live(3-4),7,8)", type:"point"}, _324502{content:"live(3-2)", group:"action", id:42, start:8, style:"color:green", title:"happens(live(3-2),7,8)", type:"point"}, _324628{content:"die(4-3)", group:"action", id:43, start:8, style:"color:green", title:"happens(die(4-3),7,8)", type:"point"}, _324754{content:"die(2-3)", group:"action", id:44, start:8, style:"color:green", title:"happens(die(2-3),7,8)", type:"point"}]}, _396472{cycles:[[_387836{create:[_387722{id:"timeless", position:[50, 120], scale:0.08, source:"https://upload.wikimedia.org/wikipedia/commons/0/04/John_H_Conway_2005_%28cropped%29.jpg", type:"raster"}, _387816{content:"Conway's Game of Life", id:"timeless", point:[0, 5], type:"text"}]}], [_387972{create:_387948{center:[20, 30], fillColor:"green", id:"2-3", radius:5, type:"circle"}}, _388102{create:_388078{center:[30, 30], fillColor:"green", id:"3-3", radius:5, type:"circle"}}, _388232{create:_388208{center:[40, 30], fillColor:"green", id:"4-3", radius:5, type:"circle"}}, _388410{create:_388374{center:[20, 30], event:"true", fillColor:"black", id:"die(2-3)", points:7, radius1:4, radius2:7, type:"star"}}, _388588{create:_388552{center:[40, 30], event:"true", fillColor:"black", id:"die(4-3)", points:7, radius1:4, radius2:7, type:"star"}}, _388766{create:_388730{center:[30, 20], event:"true", fillColor:"red", id:"live(3-2)", points:7, radius1:4, radius2:7, type:"star"}}, _388944{create:_388908{center:[30, 40], event:"true", fillColor:"red", id:"live(3-4)", points:7, radius1:4, radius2:7, type:"star"}}], [_389080{create:_389056{center:[30, 20], fillColor:"green", id:"3-2", radius:5, type:"circle"}}, _389210{create:_389186{center:[30, 40], fillColor:"green", id:"3-4", radius:5, type:"circle"}}, _389388{create:_389352{center:[30, 20], event:"true", fillColor:"black", id:"die(3-2)", points:7, radius1:4, radius2:7, type:"star"}}, _389566{create:_389530{center:[30, 40], event:"true", fillColor:"black", id:"die(3-4)", points:7, radius1:4, radius2:7, type:"star"}}, _389744{create:_389708{center:[20, 30], event:"true", fillColor:"red", id:"live(2-3)", points:7, radius1:4, radius2:7, type:"star"}}, _389922{create:_389886{center:[40, 30], event:"true", fillColor:"red", id:"live(4-3)", points:7, radius1:4, radius2:7, type:"star"}}, _389952{kill:"2-3"}, _389982{kill:"4-3"}, _390012{kill:"die(2-3)"}, _390042{kill:"die(4-3)"}, _390072{kill:"live(3-2)"}, _390102{kill:"live(3-4)"}], [_390238{create:_390214{center:[20, 30], fillColor:"green", id:"2-3", radius:5, type:"circle"}}, _390368{create:_390344{center:[40, 30], fillColor:"green", id:"4-3", radius:5, type:"circle"}}, _390546{create:_390510{center:[20, 30], event:"true", fillColor:"black", id:"die(2-3)", points:7, radius1:4, radius2:7, type:"star"}}, _390724{create:_390688{center:[40, 30], event:"true", fillColor:"black", id:"die(4-3)", points:7, radius1:4, radius2:7, type:"star"}}, _390902{create:_390866{center:[30, 20], event:"true", fillColor:"red", id:"live(3-2)", points:7, radius1:4, radius2:7, type:"star"}}, _391080{create:_391044{center:[30, 40], event:"true", fillColor:"red", id:"live(3-4)", points:7, radius1:4, radius2:7, type:"star"}}, _391110{kill:"3-2"}, _391140{kill:"3-4"}, _391170{kill:"die(3-2)"}, _391200{kill:"die(3-4)"}, _391230{kill:"live(2-3)"}, _391260{kill:"live(4-3)"}], [_391396{create:_391372{center:[30, 20], fillColor:"green", id:"3-2", radius:5, type:"circle"}}, _391526{create:_391502{center:[30, 40], fillColor:"green", id:"3-4", radius:5, type:"circle"}}, _391704{create:_391668{center:[30, 20], event:"true", fillColor:"black", id:"die(3-2)", points:7, radius1:4, radius2:7, type:"star"}}, _391882{create:_391846{center:[30, 40], event:"true", fillColor:"black", id:"die(3-4)", points:7, radius1:4, radius2:7, type:"star"}}, _392060{create:_392024{center:[20, 30], event:"true", fillColor:"red", id:"live(2-3)", points:7, radius1:4, radius2:7, type:"star"}}, _392238{create:_392202{center:[40, 30], event:"true", fillColor:"red", id:"live(4-3)", points:7, radius1:4, radius2:7, type:"star"}}, _392268{kill:"2-3"}, _392298{kill:"4-3"}, _392328{kill:"die(2-3)"}, _392358{kill:"die(4-3)"}, _392388{kill:"live(3-2)"}, _392418{kill:"live(3-4)"}], [_392554{create:_392530{center:[20, 30], fillColor:"green", id:"2-3", radius:5, type:"circle"}}, _392684{create:_392660{center:[40, 30], fillColor:"green", id:"4-3", radius:5, type:"circle"}}, _392862{create:_392826{center:[20, 30], event:"true", fillColor:"black", id:"die(2-3)", points:7, radius1:4, radius2:7, type:"star"}}, _393040{create:_393004{center:[40, 30], event:"true", fillColor:"black", id:"die(4-3)", points:7, radius1:4, radius2:7, type:"star"}}, _393218{create:_393182{center:[30, 20], event:"true", fillColor:"red", id:"live(3-2)", points:7, radius1:4, radius2:7, type:"star"}}, _393396{create:_393360{center:[30, 40], event:"true", fillColor:"red", id:"live(3-4)", points:7, radius1:4, radius2:7, type:"star"}}, _393426{kill:"3-2"}, _393456{kill:"3-4"}, _393486{kill:"die(3-2)"}, _393516{kill:"die(3-4)"}, _393546{kill:"live(2-3)"}, _393576{kill:"live(4-3)"}], [_393712{create:_393688{center:[30, 20], fillColor:"green", id:"3-2", radius:5, type:"circle"}}, _393842{create:_393818{center:[30, 40], fillColor:"green", id:"3-4", radius:5, type:"circle"}}, _394020{create:_393984{center:[30, 20], event:"true", fillColor:"black", id:"die(3-2)", points:7, radius1:4, radius2:7, type:"star"}}, _394198{create:_394162{center:[30, 40], event:"true", fillColor:"black", id:"die(3-4)", points:7, radius1:4, radius2:7, type:"star"}}, _394376{create:_394340{center:[20, 30], event:"true", fillColor:"red", id:"live(2-3)", points:7, radius1:4, radius2:7, type:"star"}}, _394554{create:_394518{center:[40, 30], event:"true", fillColor:"red", id:"live(4-3)", points:7, radius1:4, radius2:7, type:"star"}}, _394584{kill:"2-3"}, _394614{kill:"4-3"}, _394644{kill:"die(2-3)"}, _394674{kill:"die(4-3)"}, _394704{kill:"live(3-2)"}, _394734{kill:"live(3-4)"}], [_394870{create:_394846{center:[20, 30], fillColor:"green", id:"2-3", radius:5, type:"circle"}}, _395000{create:_394976{center:[40, 30], fillColor:"green", id:"4-3", radius:5, type:"circle"}}, _395178{create:_395142{center:[20, 30], event:"true", fillColor:"black", id:"die(2-3)", points:7, radius1:4, radius2:7, type:"star"}}, _395356{create:_395320{center:[40, 30], event:"true", fillColor:"black", id:"die(4-3)", points:7, radius1:4, radius2:7, type:"star"}}, _395534{create:_395498{center:[30, 20], event:"true", fillColor:"red", id:"live(3-2)", points:7, radius1:4, radius2:7, type:"star"}}, _395712{create:_395676{center:[30, 40], event:"true", fillColor:"red", id:"live(3-4)", points:7, radius1:4, radius2:7, type:"star"}}, _395742{kill:"3-2"}, _395772{kill:"3-4"}, _395802{kill:"die(3-2)"}, _395832{kill:"die(3-4)"}, _395862{kill:"live(2-3)"}, _395892{kill:"live(4-3)"}], [_396028{create:_396004{center:[30, 20], fillColor:"green", id:"3-2", radius:5, type:"circle"}}, _396158{create:_396134{center:[30, 40], fillColor:"green", id:"3-4", radius:5, type:"circle"}}, _396188{kill:"2-3"}, _396218{kill:"4-3"}, _396248{kill:"die(2-3)"}, _396278{kill:"die(4-3)"}, _396308{kill:"live(3-2)"}, _396338{kill:"live(3-4)"}], [_396374{kill:"3-2"}, _396404{kill:"3-3"}, _396434{kill:"3-4"}, _396464{kill:"timeless"}]]})).
 6400% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'LP.pl')).
 6401% run_lps_corner_file1(/.../(lps_user_examples, 'LP.pl')).
 6402% /pack/logicmoo_ec/test/lps_user_examples/LP.pl:1
 6403% push_lps_dialect.
 6404% ops.
 6405% [ti=user, load= /.../(lps_user_examples, 'LP.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'LP.pl'), lps= /.../(lps_user_examples, 'LP.pl'), using= /.../(lps_user_examples, 'LP.pl')].
 6406% continue_lps_dialect.
 6407% ops.
 6408% /pack/logicmoo_ec/test/lps_user_examples/LP.pl:8
 6409% pop_lps_dialect('$BLOB'("<stream>(0x562ef70c0000)"),  (/.../(lps_user_examples, 'LP.pl')-> /.../(lps_user_examples, 'LP.pl'))).
 6410% ops.
 6411% :-listing('/pack/logicmoo_ec/test/lps_user_examples/LP.pl':_89500).
 6412
 6413
 6414:- dynamic actions/1. 6415:- multifile actions/1. 6416
 6417
 6418insere_ordenado(N, [], [N]).
 6419insere_ordenado(N, [P|R], [N, P|R]) :-
 6420    N<P.
 6421insere_ordenado(N, [P|R], [P|Temp]) :-
 6422    N>=P,
 6423    insere_ordenado(N, R, Temp).
 6424% dB(/.../(lps_user_examples, 'LP.pl'), lps_visualization(_39366{groups:[], items:[]}, [])).
 6425% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'martianrobotl.pl')).
 6426% run_lps_corner_file1(/.../(lps_user_examples, 'martianrobotl.pl')).
 6427% /pack/logicmoo_ec/test/lps_user_examples/martianrobotl.pl:1
 6428% push_lps_dialect.
 6429% ops.
 6430% [ti=user, load= /.../(lps_user_examples, 'martianrobotl.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'martianrobotl.pl'), lps= /.../(lps_user_examples, 'martianrobotl.pl'), using= /.../(lps_user_examples, 'martianrobotl.pl')].
 6431% continue_lps_dialect.
 6432% ops.
 6433
 6434% LPS:  fluents((en/2,libre/2,estuve/2,obstaculo/2,vida/2,mirada/2)).
 6435% Into: fluents([en(_21318,_21320),libre(_21330,_21332),estuve(_21342,_21344),obstaculo(_21354,_21356),vida(_21366,_21368),mirada(_21378,_21380)]).
 6436
 6437% LPS:  actions((ir(_21118,_21120),derecha,reporte)).
 6438% Into: actions([ir(_21118,_21120),derecha,reporte]).
 6439
 6440% LPS:  initially((en(0,0),vida(2,1),libre(1,0),libre(2,0),obstaculo(3,0),obstaculo(2,-1),obstaculo(2,1),mirada(1,0))).
 6441% Into: initial_state([en(0,0),vida(2,1),libre(1,0),libre(2,0),obstaculo(3,0),obstaculo(2,-1),obstaculo(2,1),mirada(1,0)]).
 6442
 6443% LPS:  terminates(ir(_24030,_24032),mirada(_24030,_24032)).
 6444% Into: terminated(happens(ir(_24030,_24032),_25224,_25230),mirada(_24030,_24032),[]).
 6445
 6446% LPS:  if(initiates(ir(_25162,_25164),mirada(_25162,_25220)),(en(_25162,_25308),mirada(_25162,_25164),_25448 is _25164-_25308,abs(_25448)>0,_25220 is _25164+_25448)).
 6447% Into: initiated(happens(ir(_25162,_25164),_27062,_27068),mirada(_25162,_25220),[holds(en(_25162,_25308),_27062),holds(mirada(_25162,_25164),_27062),_25448 is _25164-_25308,abs(_25448)>0,_25220 is _25164+_25448]).
 6448
 6449% LPS:  if(initiates(ir(_28550,_28552),mirada(_28606,_28552)),(en(_28694,_28552),mirada(_28550,_28552),_28836 is _28550-_28694,abs(_28836)>0,_28606 is _28550+_28836)).
 6450% Into: initiated(happens(ir(_28550,_28552),_30450,_30456),mirada(_28606,_28552),[holds(en(_28694,_28552),_30450),holds(mirada(_28550,_28552),_30450),_28836 is _28550-_28694,abs(_28836)>0,_28606 is _28550+_28836]).
 6451
 6452% LPS:  initiates(ir(_31938,_31940),en(_31938,_31940)).
 6453% Into: initiated(happens(ir(_31938,_31940),_33124,_33130),en(_31938,_31940),[]).
 6454
 6455% LPS:  terminates(ir(_33070,_33072),en(_33126,_33128)).
 6456% Into: terminated(happens(ir(_33070,_33072),_34280,_34286),en(_33126,_33128),[]).
 6457
 6458% LPS:  terminates(ir(_34262,_34264),libre(_34262,_34264)).
 6459% Into: terminated(happens(ir(_34262,_34264),_35448,_35454),libre(_34262,_34264),[]).
 6460
 6461% LPS:  if(initiates(ir(_35394,_35396),estuve(_35450,_35452)),en(_35450,_35452)).
 6462% Into: initiated(happens(ir(_35394,_35396),_36722,_36728),estuve(_35450,_35452),[holds(en(_35450,_35452),_36722)]).
 6463
 6464% LPS:  if(initiates(ir(_36982,_36984),libre(_37038,_37040)),en(_37038,_37040)).
 6465% Into: initiated(happens(ir(_36982,_36984),_38310,_38316),libre(_37038,_37040),[holds(en(_37038,_37040),_38310)]).
 6466
 6467% LPS:  terminates(derecha,mirada(_38586,_38588)).
 6468% Into: terminated(happens(derecha,_39712,_39718),mirada(_38586,_38588),[]).
 6469
 6470% LPS:  if(initiates(derecha,mirada(_39672,_39674)),(en(_39672,_39762),mirada(_39816,_39762),_39816 is _39672+1,_39674 is _39762-1)).
 6471% Into: initiated(happens(derecha,_41356,_41362),mirada(_39672,_39674),[holds(en(_39672,_39762),_41356),holds(mirada(_39816,_39762),_41356),_39816 is _39672+1,_39674 is _39762-1]).
 6472
 6473% LPS:  if(initiates(derecha,mirada(_42512,_42514)),(en(_42600,_42514),mirada(_42600,_42658),_42512 is _42600-1,_42658 is _42514-1)).
 6474% Into: initiated(happens(derecha,_44196,_44202),mirada(_42512,_42514),[holds(en(_42600,_42514),_44196),holds(mirada(_42600,_42658),_44196),_42512 is _42600-1,_42658 is _42514-1]).
 6475
 6476% LPS:  if(initiates(derecha,mirada(_45352,_45354)),(en(_45352,_45442),mirada(_45496,_45442),_45496 is _45352-1,_45354 is _45442+1)).
 6477% Into: initiated(happens(derecha,_47036,_47042),mirada(_45352,_45354),[holds(en(_45352,_45442),_47036),holds(mirada(_45496,_45442),_47036),_45496 is _45352-1,_45354 is _45442+1]).
 6478
 6479% LPS:  if(initiates(derecha,mirada(_48192,_48194)),(en(_48280,_48194),mirada(_48280,_48338),_48192 is _48280+1,_48338 is _48194+1)).
 6480% Into: initiated(happens(derecha,_49876,_49882),mirada(_48192,_48194),[holds(en(_48280,_48194),_49876),holds(mirada(_48280,_48338),_49876),_48192 is _48280+1,_48338 is _48194+1]).
 6481
 6482% LPS:  then(if((mirada(_51168,_51170),libre(_51168,_51170),not(estuve(_51168,_51170)))),ir(_51168,_51170)).
 6483% Into: reactive_rule([holds(mirada(_51168,_51170),_52538),holds(libre(_51168,_51170),_52538),holds(not(estuve(_51168,_51170)),_52538)],[happens(ir(_51168,_51170),_53386,_53392)]).
 6484
 6485% LPS:  then(if((mirada(_53512,_53514),libre(_53512,_53514),estuve(_53512,_53514))),derecha).
 6486% Into: reactive_rule([holds(mirada(_53512,_53514),_54808),holds(libre(_53512,_53514),_54808),holds(estuve(_53512,_53514),_54808)],[happens(derecha,_55606,_55612)]).
 6487
 6488% LPS:  then(if((mirada(_55780,_55782),obstaculo(_55780,_55782),not(vida(_55780,_55782)))),derecha).
 6489% Into: reactive_rule([holds(mirada(_55780,_55782),_57104),holds(obstaculo(_55780,_55782),_57104),holds(not(vida(_55780,_55782)),_57104)],[happens(derecha,_57952,_57958)]).
 6490
 6491% LPS:  then(if((mirada(_58112,_58114),obstaculo(_58112,_58114),vida(_58112,_58114))),(reporte,derecha)).
 6492% Into: reactive_rule([holds(mirada(_58112,_58114),_59462),holds(obstaculo(_58112,_58114),_59462),holds(vida(_58112,_58114),_59462)],[happens(reporte,_60260,_60302),happens(derecha,_60302,_60266)]).
 6493% /pack/logicmoo_ec/test/lps_user_examples/martianrobotl.pl:84
 6494% pop_lps_dialect('$BLOB'("<stream>(0x562ef73e5800)"),  (/.../(lps_user_examples, 'martianrobotl.pl')-> /.../(lps_user_examples, 'martianrobotl.pl'))).
 6495% ops.
 6496% :-listing('/pack/logicmoo_ec/test/lps_user_examples/martianrobotl.pl':_68146).
 6497
 6498
 6499initiated(happens(ir(A, B), C, _), mirada(A, D), [holds(en(A, E), C), holds(mirada(A, B), C), F is B-E, abs(F)>0, D is B+F]).
 6500initiated(happens(ir(A, B), C, _), mirada(D, B), [holds(en(E, B), C), holds(mirada(A, B), C), F is A-E, abs(F)>0, D is A+F]).
 6501initiated(happens(ir(A, B), _, _), en(A, B), []).
 6502initiated(happens(ir(_, _), A, _), estuve(B, C), [holds(en(B, C), A)]).
 6503initiated(happens(ir(_, _), A, _), libre(B, C), [holds(en(B, C), A)]).
 6504initiated(happens(derecha, A, _), mirada(B, C), [holds(en(B, D), A), holds(mirada(E, D), A), E is B+1, C is D-1]).
 6505initiated(happens(derecha, A, _), mirada(B, C), [holds(en(D, C), A), holds(mirada(D, E), A), B is D-1, E is C-1]).
 6506initiated(happens(derecha, A, _), mirada(B, C), [holds(en(B, D), A), holds(mirada(E, D), A), E is B-1, C is D+1]).
 6507initiated(happens(derecha, A, _), mirada(B, C), [holds(en(D, C), A), holds(mirada(D, E), A), B is D+1, E is C+1]).
 6508
 6509fluents([en(_, _), libre(_, _), estuve(_, _), obstaculo(_, _), vida(_, _), mirada(_, _)]).
 6510
 6511terminated(happens(ir(A, B), _, _), mirada(A, B), []).
 6512terminated(happens(ir(_, _), _, _), en(_, _), []).
 6513terminated(happens(ir(A, B), _, _), libre(A, B), []).
 6514terminated(happens(derecha, _, _), mirada(_, _), []).
 6515
 6516reactive_rule([holds(mirada(A, B), C), holds(libre(A, B), C), holds(not(estuve(A, B)), C)], [happens(ir(A, B), _, _)]).
 6517reactive_rule([holds(mirada(A, B), C), holds(libre(A, B), C), holds(estuve(A, B), C)], [happens(derecha, _, _)]).
 6518reactive_rule([holds(mirada(A, B), C), holds(obstaculo(A, B), C), holds(not(vida(A, B)), C)], [happens(derecha, _, _)]).
 6519reactive_rule([holds(mirada(A, B), C), holds(obstaculo(A, B), C), holds(vida(A, B), C)], [happens(reporte, _, D), happens(derecha, D, _)]).
 6520
 6521initial_state([en(0, 0), vida(2, 1), libre(1, 0), libre(2, 0), obstaculo(3, 0), obstaculo(2, -1), obstaculo(2, 1), mirada(1, 0)]).
 6522
 6523:- dynamic actions/1. 6524:- multifile actions/1. 6525
 6526actions([ir(_, _), derecha, reporte]).
 6527
 6528maxTime(10).
 6529% dB(/.../(lps_user_examples, 'martianrobotl.pl'), lps_visualization(_90764{groups:[_86248{content:"en(A,B)", id:"en/2", order:3, subgroupStack:"false"}, _86326{content:"estuve(A,B)", id:"estuve/2", order:3, subgroupStack:"false"}, _86404{content:"libre(A,B)", id:"libre/2", order:3, subgroupStack:"false"}, _86482{content:"mirada(A,B)", id:"mirada/2", order:3, subgroupStack:"false"}, _86560{content:"obstaculo(A,B)", id:"obstaculo/2", order:3, subgroupStack:"false"}, _86638{content:"vida(A,B)", id:"vida/2", order:3, subgroupStack:"false"}, _86704{content:"Actions", id:"action", order:4}], items:[_86826{content:"0,0", end:2, group:"en/2", id:0, start:1, subgroup:"0", title:"Fluent en(0,0) initiated at 1<br/>and terminated at transition to 2"}, _86952{content:"1,0", end:3, group:"en/2", id:1, start:2, subgroup:"1", title:"Fluent en(1,0) initiated at 2<br/>and terminated at transition to 3"}, _87078{content:"2,0", end:11, group:"en/2", id:2, start:3, subgroup:"2", title:"Fluent en(2,0) initiated at 3<br/>and terminated at transition to 11"}, _87204{content:"0,0", end:11, group:"estuve/2", id:3, start:2, subgroup:"0", title:"Fluent estuve(0,0) initiated at 2<br/>and terminated at transition to 11"}, _87330{content:"1,0", end:11, group:"estuve/2", id:4, start:3, subgroup:"1", title:"Fluent estuve(1,0) initiated at 3<br/>and terminated at transition to 11"}, _87456{content:"0,0", end:11, group:"libre/2", id:5, start:2, subgroup:"0", title:"Fluent libre(0,0) initiated at 2<br/>and terminated at transition to 11"}, _87582{content:"1,0", end:2, group:"libre/2", id:6, start:1, subgroup:"1", title:"Fluent libre(1,0) initiated at 1<br/>and terminated at transition to 2"}, _87708{content:"1,0", end:11, group:"libre/2", id:7, start:3, subgroup:"1", title:"Fluent libre(1,0) initiated at 3<br/>and terminated at transition to 11"}, _87834{content:"2,0", end:3, group:"libre/2", id:8, start:1, subgroup:"2", title:"Fluent libre(2,0) initiated at 1<br/>and terminated at transition to 3"}, _87960{content:"1,0", end:2, group:"mirada/2", id:9, start:1, subgroup:"1", title:"Fluent mirada(1,0) initiated at 1<br/>and terminated at transition to 2"}, _88086{content:"1,0", end:6, group:"mirada/2", id:10, start:5, subgroup:"1", title:"Fluent mirada(1,0) initiated at 5<br/>and terminated at transition to 6"}, _88212{content:"1,0", end:11, group:"mirada/2", id:11, start:10, subgroup:"1", title:"Fluent mirada(1,0) initiated at 10<br/>and terminated at transition to 11"}, _88338{content:"2,-1", end:5, group:"mirada/2", id:12, start:4, subgroup:"2", title:"Fluent mirada(2,-1) initiated at 4<br/>and terminated at transition to 5"}, _88464{content:"2,-1", end:10, group:"mirada/2", id:13, start:9, subgroup:"2", title:"Fluent mirada(2,-1) initiated at 9<br/>and terminated at transition to 10"}, _88590{content:"2,0", end:3, group:"mirada/2", id:14, start:2, subgroup:"2", title:"Fluent mirada(2,0) initiated at 2<br/>and terminated at transition to 3"}, _88716{content:"2,1", end:8, group:"mirada/2", id:15, start:6, subgroup:"2", title:"Fluent mirada(2,1) initiated at 6<br/>and terminated at transition to 8"}, _88842{content:"3,0", end:4, group:"mirada/2", id:16, start:3, subgroup:"3", title:"Fluent mirada(3,0) initiated at 3<br/>and terminated at transition to 4"}, _88968{content:"3,0", end:9, group:"mirada/2", id:17, start:8, subgroup:"3", title:"Fluent mirada(3,0) initiated at 8<br/>and terminated at transition to 9"}, _89094{content:"2,-1", end:11, group:"obstaculo/2", id:18, start:1, subgroup:"2", title:"Fluent obstaculo(2,-1) initiated at 1<br/>and terminated at transition to 11"}, _89220{content:"2,1", end:11, group:"obstaculo/2", id:19, start:1, subgroup:"2", title:"Fluent obstaculo(2,1) initiated at 1<br/>and terminated at transition to 11"}, _89346{content:"3,0", end:11, group:"obstaculo/2", id:20, start:1, subgroup:"3", title:"Fluent obstaculo(3,0) initiated at 1<br/>and terminated at transition to 11"}, _89472{content:"2,1", end:11, group:"vida/2", id:21, start:1, subgroup:"2", title:"Fluent vida(2,1) initiated at 1<br/>and terminated at transition to 11"}, _89598{content:"ir(1,0)", group:"action", id:22, start:2, style:"color:green", title:"happens(ir(1,0),1,2)", type:"point"}, _89724{content:"ir(2,0)", group:"action", id:23, start:3, style:"color:green", title:"happens(ir(2,0),2,3)", type:"point"}, _89850{content:"derecha", group:"action", id:24, start:4, style:"color:green", title:"happens(derecha,3,4)", type:"point"}, _89976{content:"derecha", group:"action", id:25, start:5, style:"color:green", title:"happens(derecha,4,5)", type:"point"}, _90102{content:"derecha", group:"action", id:26, start:6, style:"color:green", title:"happens(derecha,5,6)", type:"point"}, _90228{content:"reporte", group:"action", id:27, start:7, style:"color:green", title:"happens(reporte,6,7)", type:"point"}, _90354{content:"derecha", group:"action", id:28, start:8, style:"color:green", title:"happens(derecha,7,8)", type:"point"}, _90480{content:"reporte", group:"action", id:29, start:8, style:"color:green", title:"happens(reporte,7,8)", type:"point"}, _90606{content:"derecha", group:"action", id:30, start:9, style:"color:green", title:"happens(derecha,8,9)", type:"point"}, _90732{content:"derecha", group:"action", id:31, start:10, style:"color:green", title:"happens(derecha,9,10)", type:"point"}]}, [])).
 6530% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'martianrobot.pl')).
 6531% run_lps_corner_file1(/.../(lps_user_examples, 'martianrobot.pl')).
 6532% /pack/logicmoo_ec/test/lps_user_examples/martianrobot.pl:1
 6533% push_lps_dialect.
 6534% ops.
 6535% [ti=user, load= /.../(lps_user_examples, 'martianrobot.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'martianrobot.pl'), lps= /.../(lps_user_examples, 'martianrobot.pl'), using= /.../(lps_user_examples, 'martianrobot.pl')].
 6536% continue_lps_dialect.
 6537% ops.
 6538
 6539% LPS:  fluents((at_pos/2,free/2,visited/2,obstacle/2,life/2,lookingtowards/2)).
 6540% Into: fluents([at_pos(_63616,_63618),free(_63628,_63630),visited(_63640,_63642),obstacle(_63652,_63654),life(_63664,_63666),lookingtowards(_63676,_63678)]).
 6541
 6542% LPS:  actions((step(_63416,_63418),turn_right,report)).
 6543% Into: actions([step(_63416,_63418),turn_right,report]).
 6544
 6545% LPS:  initially((at_pos(0,0),life(2,1),free(1,0),free(2,0),obstacle(3,0),obstacle(2,-1),obstacle(2,1),lookingtowards(1,0))).
 6546% Into: initial_state([at_pos(0,0),life(2,1),free(1,0),free(2,0),obstacle(3,0),obstacle(2,-1),obstacle(2,1),lookingtowards(1,0)]).
 6547
 6548% LPS:  terminates(step(_66328,_66330),lookingtowards(_66328,_66330)).
 6549% Into: terminated(happens(step(_66328,_66330),_67514,_67520),lookingtowards(_66328,_66330),[]).
 6550
 6551% LPS:  if(initiates(step(_67460,_67462),lookingtowards(_67460,_67518)),(at_pos(_67460,_67606),lookingtowards(_67460,_67462),_67746 is _67462-_67606,abs(_67746)>0,_67518 is _67462+_67746)).
 6552% Into: initiated(happens(step(_67460,_67462),_69360,_69366),lookingtowards(_67460,_67518),[holds(at_pos(_67460,_67606),_69360),holds(lookingtowards(_67460,_67462),_69360),_67746 is _67462-_67606,abs(_67746)>0,_67518 is _67462+_67746]).
 6553
 6554% LPS:  if(initiates(step(_70848,_70850),lookingtowards(_70904,_70850)),(at_pos(_70992,_70850),lookingtowards(_70848,_70850),_71134 is _70848-_70992,abs(_71134)>0,_70904 is _70848+_71134)).
 6555% Into: initiated(happens(step(_70848,_70850),_72748,_72754),lookingtowards(_70904,_70850),[holds(at_pos(_70992,_70850),_72748),holds(lookingtowards(_70848,_70850),_72748),_71134 is _70848-_70992,abs(_71134)>0,_70904 is _70848+_71134]).
 6556
 6557% LPS:  initiates(step(_74236,_74238),at_pos(_74236,_74238)).
 6558% Into: initiated(happens(step(_74236,_74238),_75422,_75428),at_pos(_74236,_74238),[]).
 6559
 6560% LPS:  if(terminates(step(_75368,_75370),at_pos(_75424,_75426)),at_pos(_75424,_75426)).
 6561% Into: terminated(happens(step(_75368,_75370),_76696,_76702),at_pos(_75424,_75426),[holds(at_pos(_75424,_75426),_76696)]).
 6562
 6563% LPS:  terminates(step(_76988,_76990),free(_76988,_76990)).
 6564% Into: terminated(happens(step(_76988,_76990),_78174,_78180),free(_76988,_76990),[]).
 6565
 6566% LPS:  if(initiates(step(_78120,_78122),visited(_78176,_78178)),at_pos(_78176,_78178)).
 6567% Into: initiated(happens(step(_78120,_78122),_79448,_79454),visited(_78176,_78178),[holds(at_pos(_78176,_78178),_79448)]).
 6568
 6569% LPS:  if(initiates(step(_79708,_79710),free(_79764,_79766)),at_pos(_79764,_79766)).
 6570% Into: initiated(happens(step(_79708,_79710),_81036,_81042),free(_79764,_79766),[holds(at_pos(_79764,_79766),_81036)]).
 6571
 6572% LPS:  terminates(turn_right,lookingtowards(_81312,_81314)).
 6573% Into: terminated(happens(turn_right,_82430,_82436),lookingtowards(_81312,_81314),[]).
 6574
 6575% LPS:  if(initiates(turn_right,lookingtowards(_82398,_82400)),(at_pos(_82398,_82488),lookingtowards(_82542,_82488),_82542 is _82398+1,_82400 is _82488-1)).
 6576% Into: initiated(happens(turn_right,_84082,_84088),lookingtowards(_82398,_82400),[holds(at_pos(_82398,_82488),_84082),holds(lookingtowards(_82542,_82488),_84082),_82542 is _82398+1,_82400 is _82488-1]).
 6577
 6578% LPS:  if(initiates(turn_right,lookingtowards(_85238,_85240)),(at_pos(_85326,_85240),lookingtowards(_85326,_85384),_85238 is _85326-1,_85384 is _85240-1)).
 6579% Into: initiated(happens(turn_right,_86922,_86928),lookingtowards(_85238,_85240),[holds(at_pos(_85326,_85240),_86922),holds(lookingtowards(_85326,_85384),_86922),_85238 is _85326-1,_85384 is _85240-1]).
 6580
 6581% LPS:  if(initiates(turn_right,lookingtowards(_88078,_88080)),(at_pos(_88078,_88168),lookingtowards(_88222,_88168),_88222 is _88078-1,_88080 is _88168+1)).
 6582% Into: initiated(happens(turn_right,_89762,_89768),lookingtowards(_88078,_88080),[holds(at_pos(_88078,_88168),_89762),holds(lookingtowards(_88222,_88168),_89762),_88222 is _88078-1,_88080 is _88168+1]).
 6583
 6584% LPS:  if(initiates(turn_right,lookingtowards(_19292,_19294)),(at_pos(_19364,_19294),lookingtowards(_19364,_19408),_19292 is _19364+1,_19408 is _19294+1)).
 6585% Into: initiated(happens(turn_right,_20104,_20110),lookingtowards(_19292,_19294),[holds(at_pos(_19364,_19294),_20104),holds(lookingtowards(_19364,_19408),_20104),_19292 is _19364+1,_19408 is _19294+1]).
 6586
 6587% LPS:  false((at_pos(_21288,_21290),step(_21288,_21290))).
 6588% Into: d_pre([holds(at_pos(_21288,_21290),_22414),happens(step(_21288,_21290),_22414,_22420)]).
 6589
 6590% LPS:  then(if((at(lookingtowards(_22736,_22738),_22760),at(free(_22736,_22738),_22760),at(not(visited(_22736,_22738)),_22760))),from(step(_22736,_22738),to(_22760,_23200))).
 6591% Into: reactive_rule([holds(lookingtowards(_22736,_22738),_22760),holds(free(_22736,_22738),_22760),holds(not(visited(_22736,_22738)),_22760)],[happens(step(_22736,_22738),_22760,_23200)]).
 6592
 6593% LPS:  then(if((at(lookingtowards(_25814,_25816),_25838),at(free(_25814,_25816),_25838),at(visited(_25814,_25816),_25838))),from(turn_right,to(_25838,_26214))).
 6594% Into: reactive_rule([holds(lookingtowards(_25814,_25816),_25838),holds(free(_25814,_25816),_25838),holds(visited(_25814,_25816),_25838)],[happens(turn_right,_25838,_26214)]).
 6595
 6596% LPS:  then(if((at(lookingtowards(_28852,_28854),_28876),at(obstacle(_28852,_28854),_28876))),turn_right).
 6597% Into: reactive_rule([holds(lookingtowards(_28852,_28854),_28876),holds(obstacle(_28852,_28854),_28876)],[happens(turn_right,_31088,_31094)]).
 6598
 6599% LPS:  then(if((at(lookingtowards(_31106,_31108),_31130),at(obstacle(_31106,_31108),_31130),at(life(_31106,_31108),_31130))),report).
 6600% Into: reactive_rule([holds(lookingtowards(_31106,_31108),_31130),holds(obstacle(_31106,_31108),_31130),holds(life(_31106,_31108),_31130)],[happens(report,_33972,_33978)]).
 6601% /pack/logicmoo_ec/test/lps_user_examples/martianrobot.pl:72
 6602% pop_lps_dialect('$BLOB'("<stream>(0x562ef73e2400)"),  (/.../(lps_user_examples, 'martianrobot.pl')-> /.../(lps_user_examples, 'martianrobot.pl'))).
 6603% ops.
 6604% :-listing('/pack/logicmoo_ec/test/lps_user_examples/martianrobot.pl':_41858).
 6605
 6606
 6607initiated(happens(step(A, B), C, _), lookingtowards(A, D), [holds(at_pos(A, E), C), holds(lookingtowards(A, B), C), F is B-E, abs(F)>0, D is B+F]).
 6608initiated(happens(step(A, B), C, _), lookingtowards(D, B), [holds(at_pos(E, B), C), holds(lookingtowards(A, B), C), F is A-E, abs(F)>0, D is A+F]).
 6609initiated(happens(step(A, B), _, _), at_pos(A, B), []).
 6610initiated(happens(step(_, _), A, _), visited(B, C), [holds(at_pos(B, C), A)]).
 6611initiated(happens(step(_, _), A, _), free(B, C), [holds(at_pos(B, C), A)]).
 6612initiated(happens(turn_right, A, _), lookingtowards(B, C), [holds(at_pos(B, D), A), holds(lookingtowards(E, D), A), E is B+1, C is D-1]).
 6613initiated(happens(turn_right, A, _), lookingtowards(B, C), [holds(at_pos(D, C), A), holds(lookingtowards(D, E), A), B is D-1, E is C-1]).
 6614initiated(happens(turn_right, A, _), lookingtowards(B, C), [holds(at_pos(B, D), A), holds(lookingtowards(E, D), A), E is B-1, C is D+1]).
 6615initiated(happens(turn_right, A, _), lookingtowards(B, C), [holds(at_pos(D, C), A), holds(lookingtowards(D, E), A), B is D+1, E is C+1]).
 6616
 6617d_pre([holds(at_pos(A, B), C), happens(step(A, B), C, _)]).
 6618
 6619fluents([at_pos(_, _), free(_, _), visited(_, _), obstacle(_, _), life(_, _), lookingtowards(_, _)]).
 6620
 6621terminated(happens(step(A, B), _, _), lookingtowards(A, B), []).
 6622terminated(happens(step(_, _), A, _), at_pos(B, C), [holds(at_pos(B, C), A)]).
 6623terminated(happens(step(A, B), _, _), free(A, B), []).
 6624terminated(happens(turn_right, _, _), lookingtowards(_, _), []).
 6625
 6626reactive_rule([holds(lookingtowards(A, B), C), holds(free(A, B), C), holds(not(visited(A, B)), C)], [happens(step(A, B), C, _)]).
 6627reactive_rule([holds(lookingtowards(A, B), C), holds(free(A, B), C), holds(visited(A, B), C)], [happens(turn_right, C, _)]).
 6628reactive_rule([holds(lookingtowards(A, B), C), holds(obstacle(A, B), C)], [happens(turn_right, _, _)]).
 6629reactive_rule([holds(lookingtowards(A, B), C), holds(obstacle(A, B), C), holds(life(A, B), C)], [happens(report, _, _)]).
 6630
 6631initial_state([at_pos(0, 0), life(2, 1), free(1, 0), free(2, 0), obstacle(3, 0), obstacle(2, -1), obstacle(2, 1), lookingtowards(1, 0)]).
 6632
 6633:- dynamic actions/1. 6634:- multifile actions/1. 6635
 6636actions([step(_, _), turn_right, report]).
 6637
 6638maxTime(15).
 6639% dB(/.../(lps_user_examples, 'martianrobot.pl'), lps_visualization(_106876{groups:[_102234{content:"at_pos(A,B)", id:"at_pos/2", order:3, subgroupStack:"false"}, _102312{content:"free(A,B)", id:"free/2", order:3, subgroupStack:"false"}, _102390{content:"life(A,B)", id:"life/2", order:3, subgroupStack:"false"}, _102468{content:"lookingtowards(A,B)", id:"lookingtowards/2", order:3, subgroupStack:"false"}, _102546{content:"obstacle(A,B)", id:"obstacle/2", order:3, subgroupStack:"false"}, _102624{content:"visited(A,B)", id:"visited/2", order:3, subgroupStack:"false"}, _102690{content:"Actions", id:"action", order:4}], items:[_102812{content:"0,0", end:2, group:"at_pos/2", id:0, start:1, subgroup:"0", title:"Fluent at_pos(0,0) initiated at 1<br/>and terminated at transition to 2"}, _102938{content:"1,0", end:3, group:"at_pos/2", id:1, start:2, subgroup:"1", title:"Fluent at_pos(1,0) initiated at 2<br/>and terminated at transition to 3"}, _103064{content:"2,0", end:16, group:"at_pos/2", id:2, start:3, subgroup:"2", title:"Fluent at_pos(2,0) initiated at 3<br/>and terminated at transition to 16"}, _103190{content:"0,0", end:16, group:"free/2", id:3, start:2, subgroup:"0", title:"Fluent free(0,0) initiated at 2<br/>and terminated at transition to 16"}, _103316{content:"1,0", end:2, group:"free/2", id:4, start:1, subgroup:"1", title:"Fluent free(1,0) initiated at 1<br/>and terminated at transition to 2"}, _103442{content:"1,0", end:16, group:"free/2", id:5, start:3, subgroup:"1", title:"Fluent free(1,0) initiated at 3<br/>and terminated at transition to 16"}, _103568{content:"2,0", end:3, group:"free/2", id:6, start:1, subgroup:"2", title:"Fluent free(2,0) initiated at 1<br/>and terminated at transition to 3"}, _103694{content:"2,1", end:16, group:"life/2", id:7, start:1, subgroup:"2", title:"Fluent life(2,1) initiated at 1<br/>and terminated at transition to 16"}, _103820{content:"1,0", end:2, group:"lookingtowards/2", id:8, start:1, subgroup:"1", title:"Fluent lookingtowards(1,0) initiated at 1<br/>and terminated at transition to 2"}, _103946{content:"1,0", end:6, group:"lookingtowards/2", id:9, start:5, subgroup:"1", title:"Fluent lookingtowards(1,0) initiated at 5<br/>and terminated at transition to 6"}, _104072{content:"2,-1", end:5, group:"lookingtowards/2", id:10, start:4, subgroup:"2", title:"Fluent lookingtowards(2,-1) initiated at 4<br/>and terminated at transition to 5"}, _104198{content:"2,0", end:3, group:"lookingtowards/2", id:11, start:2, subgroup:"2", title:"Fluent lookingtowards(2,0) initiated at 2<br/>and terminated at transition to 3"}, _104324{content:"2,1", end:16, group:"lookingtowards/2", id:12, start:6, subgroup:"2", title:"Fluent lookingtowards(2,1) initiated at 6<br/>and terminated at transition to 16"}, _104450{content:"3,0", end:4, group:"lookingtowards/2", id:13, start:3, subgroup:"3", title:"Fluent lookingtowards(3,0) initiated at 3<br/>and terminated at transition to 4"}, _104576{content:"2,-1", end:16, group:"obstacle/2", id:14, start:1, subgroup:"2", title:"Fluent obstacle(2,-1) initiated at 1<br/>and terminated at transition to 16"}, _104702{content:"2,1", end:16, group:"obstacle/2", id:15, start:1, subgroup:"2", title:"Fluent obstacle(2,1) initiated at 1<br/>and terminated at transition to 16"}, _104828{content:"3,0", end:16, group:"obstacle/2", id:16, start:1, subgroup:"3", title:"Fluent obstacle(3,0) initiated at 1<br/>and terminated at transition to 16"}, _104954{content:"0,0", end:16, group:"visited/2", id:17, start:2, subgroup:"0", title:"Fluent visited(0,0) initiated at 2<br/>and terminated at transition to 16"}, _105080{content:"1,0", end:16, group:"visited/2", id:18, start:3, subgroup:"1", title:"Fluent visited(1,0) initiated at 3<br/>and terminated at transition to 16"}, _105206{content:"step(1,0)", group:"action", id:19, start:2, style:"color:green", title:"happens(step(1,0),1,2)", type:"point"}, _105332{content:"step(2,0)", group:"action", id:20, start:3, style:"color:green", title:"happens(step(2,0),2,3)", type:"point"}, _105458{content:"turn_right", group:"action", id:21, start:4, style:"color:green", title:"happens(turn_right,3,4)", type:"point"}, _105584{content:"turn_right", group:"action", id:22, start:5, style:"color:green", title:"happens(turn_right,4,5)", type:"point"}, _105710{content:"turn_right", group:"action", id:23, start:6, style:"color:green", title:"happens(turn_right,5,6)", type:"point"}, _105836{content:"report", group:"action", id:24, start:7, style:"color:green", title:"happens(report,6,7)", type:"point"}, _105962{content:"report", group:"action", id:25, start:8, style:"color:green", title:"happens(report,7,8)", type:"point"}, _106088{content:"report", group:"action", id:26, start:9, style:"color:green", title:"happens(report,8,9)", type:"point"}, _106214{content:"report", group:"action", id:27, start:10, style:"color:green", title:"happens(report,9,10)", type:"point"}, _106340{content:"report", group:"action", id:28, start:11, style:"color:green", title:"happens(report,10,11)", type:"point"}, _106466{content:"report", group:"action", id:29, start:12, style:"color:green", title:"happens(report,11,12)", type:"point"}, _106592{content:"report", group:"action", id:30, start:13, style:"color:green", title:"happens(report,12,13)", type:"point"}, _106718{content:"report", group:"action", id:31, start:14, style:"color:green", title:"happens(report,13,14)", type:"point"}, _106844{content:"report", group:"action", id:32, start:15, style:"color:green", title:"happens(report,14,15)", type:"point"}]}, [])).
 6640% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'martianrobot,pl.pl')).
 6641% run_lps_corner_file1(/.../(lps_user_examples, 'martianrobot,pl.pl')).
 6642% /pack/logicmoo_ec/test/lps_user_examples/martianrobot,pl.pl:1
 6643% push_lps_dialect.
 6644% ops.
 6645% [ti=user, load= /.../(lps_user_examples, 'martianrobot,pl.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'martianrobot,pl.pl'), lps= /.../(lps_user_examples, 'martianrobot,pl.pl'), using= /.../(lps_user_examples, 'martianrobot,pl.pl')].
 6646% continue_lps_dialect.
 6647% ops.
 6648
 6649% LPS:  fluents((en/2,libre/2,estuve/2,obstaculo/2,vida/2,mirada/2)).
 6650% Into: fluents([en(_63776,_63778),libre(_63788,_63790),estuve(_63800,_63802),obstaculo(_63812,_63814),vida(_63824,_63826),mirada(_63836,_63838)]).
 6651
 6652% LPS:  actions((ir(_63576,_63578),derecha,izquierda,reporte)).
 6653% Into: actions([ir(_63576,_63578),derecha,izquierda,reporte]).
 6654
 6655% LPS:  initially((en(0,0),vida(2,1),libre(1,0),libre(2,0),obstaculo(3,0),obstaculo(2,-1),obstaculo(2,1),mirada(1,0))).
 6656% Into: initial_state([en(0,0),vida(2,1),libre(1,0),libre(2,0),obstaculo(3,0),obstaculo(2,-1),obstaculo(2,1),mirada(1,0)]).
 6657
 6658% LPS:  then(if((mirada(_66658,_66660),libre(_66658,_66660),not(estuve(_66658,_66660)))),ir(_66658,_66660)).
 6659% Into: reactive_rule([holds(mirada(_66658,_66660),_68028),holds(libre(_66658,_66660),_68028),holds(not(estuve(_66658,_66660)),_68028)],[happens(ir(_66658,_66660),_68876,_68882)]).
 6660
 6661% LPS:  then(if((mirada(_69002,_69004),libre(_69002,_69004),estuve(_69002,_69004))),derecha).
 6662% Into: reactive_rule([holds(mirada(_69002,_69004),_70298),holds(libre(_69002,_69004),_70298),holds(estuve(_69002,_69004),_70298)],[happens(derecha,_71096,_71102)]).
 6663
 6664% LPS:  then(if((mirada(_71270,_71272),obstaculo(_71270,_71272),not(vida(_71270,_71272)))),derecha).
 6665% Into: reactive_rule([holds(mirada(_71270,_71272),_72594),holds(obstaculo(_71270,_71272),_72594),holds(not(vida(_71270,_71272)),_72594)],[happens(derecha,_73442,_73448)]).
 6666
 6667% LPS:  then(if((mirada(_73602,_73604),obstaculo(_73602,_73604),vida(_73602,_73604))),(reporte,derecha)).
 6668% Into: reactive_rule([holds(mirada(_73602,_73604),_74952),holds(obstaculo(_73602,_73604),_74952),holds(vida(_73602,_73604),_74952)],[happens(reporte,_75750,_75792),happens(derecha,_75792,_75756)]).
 6669% /pack/logicmoo_ec/test/lps_user_examples/martianrobot,pl.pl:50
 6670% pop_lps_dialect('$BLOB'("<stream>(0x562ef2ab8f00)"),  (/.../(lps_user_examples, 'martianrobot,pl.pl')-> /.../(lps_user_examples, 'martianrobot,pl.pl'))).
 6671% ops.
 6672% :-listing('/pack/logicmoo_ec/test/lps_user_examples/martianrobot,pl.pl':_83642).
 6673
 6674
 6675fluents([en(_, _), libre(_, _), estuve(_, _), obstaculo(_, _), vida(_, _), mirada(_, _)]).
 6676
 6677reactive_rule([holds(mirada(A, B), C), holds(libre(A, B), C), holds(not(estuve(A, B)), C)], [happens(ir(A, B), _, _)]).
 6678reactive_rule([holds(mirada(A, B), C), holds(libre(A, B), C), holds(estuve(A, B), C)], [happens(derecha, _, _)]).
 6679reactive_rule([holds(mirada(A, B), C), holds(obstaculo(A, B), C), holds(not(vida(A, B)), C)], [happens(derecha, _, _)]).
 6680reactive_rule([holds(mirada(A, B), C), holds(obstaculo(A, B), C), holds(vida(A, B), C)], [happens(reporte, _, D), happens(derecha, D, _)]).
 6681
 6682initial_state([en(0, 0), vida(2, 1), libre(1, 0), libre(2, 0), obstaculo(3, 0), obstaculo(2, -1), obstaculo(2, 1), mirada(1, 0)]).
 6683
 6684:- dynamic actions/1. 6685:- multifile actions/1. 6686
 6687actions([ir(_, _), derecha, izquierda, reporte]).
 6688
 6689maxTime(10).
 6690% dB(/.../(lps_user_examples, 'martianrobot,pl.pl'), lps_visualization(_68586{groups:[_66038{content:"en(A,B)", id:"en/2", order:3, subgroupStack:"false"}, _66116{content:"libre(A,B)", id:"libre/2", order:3, subgroupStack:"false"}, _66194{content:"mirada(A,B)", id:"mirada/2", order:3, subgroupStack:"false"}, _66272{content:"obstaculo(A,B)", id:"obstaculo/2", order:3, subgroupStack:"false"}, _66350{content:"vida(A,B)", id:"vida/2", order:3, subgroupStack:"false"}, _66416{content:"Actions", id:"action", order:4}], items:[_66538{content:"0,0", end:11, group:"en/2", id:0, start:1, subgroup:"0", title:"Fluent en(0,0) initiated at 1<br/>and terminated at transition to 11"}, _66664{content:"1,0", end:11, group:"libre/2", id:1, start:1, subgroup:"1", title:"Fluent libre(1,0) initiated at 1<br/>and terminated at transition to 11"}, _66790{content:"2,0", end:11, group:"libre/2", id:2, start:1, subgroup:"2", title:"Fluent libre(2,0) initiated at 1<br/>and terminated at transition to 11"}, _66916{content:"1,0", end:11, group:"mirada/2", id:3, start:1, subgroup:"1", title:"Fluent mirada(1,0) initiated at 1<br/>and terminated at transition to 11"}, _67042{content:"2,-1", end:11, group:"obstaculo/2", id:4, start:1, subgroup:"2", title:"Fluent obstaculo(2,-1) initiated at 1<br/>and terminated at transition to 11"}, _67168{content:"2,1", end:11, group:"obstaculo/2", id:5, start:1, subgroup:"2", title:"Fluent obstaculo(2,1) initiated at 1<br/>and terminated at transition to 11"}, _67294{content:"3,0", end:11, group:"obstaculo/2", id:6, start:1, subgroup:"3", title:"Fluent obstaculo(3,0) initiated at 1<br/>and terminated at transition to 11"}, _67420{content:"2,1", end:11, group:"vida/2", id:7, start:1, subgroup:"2", title:"Fluent vida(2,1) initiated at 1<br/>and terminated at transition to 11"}, _67546{content:"ir(1,0)", group:"action", id:8, start:2, style:"color:green", title:"happens(ir(1,0),1,2)", type:"point"}, _67672{content:"ir(1,0)", group:"action", id:9, start:3, style:"color:green", title:"happens(ir(1,0),2,3)", type:"point"}, _67798{content:"ir(1,0)", group:"action", id:10, start:4, style:"color:green", title:"happens(ir(1,0),3,4)", type:"point"}, _67924{content:"ir(1,0)", group:"action", id:11, start:5, style:"color:green", title:"happens(ir(1,0),4,5)", type:"point"}, _68050{content:"ir(1,0)", group:"action", id:12, start:6, style:"color:green", title:"happens(ir(1,0),5,6)", type:"point"}, _68176{content:"ir(1,0)", group:"action", id:13, start:7, style:"color:green", title:"happens(ir(1,0),6,7)", type:"point"}, _68302{content:"ir(1,0)", group:"action", id:14, start:8, style:"color:green", title:"happens(ir(1,0),7,8)", type:"point"}, _68428{content:"ir(1,0)", group:"action", id:15, start:9, style:"color:green", title:"happens(ir(1,0),8,9)", type:"point"}, _68554{content:"ir(1,0)", group:"action", id:16, start:10, style:"color:green", title:"happens(ir(1,0),9,10)", type:"point"}]}, [])).
 6691% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'minimalGoat.pl')).
 6692% run_lps_corner_file1(/.../(lps_user_examples, 'minimalGoat.pl')).
 6693% /pack/logicmoo_ec/test/lps_user_examples/minimalGoat.pl:1
 6694% push_lps_dialect.
 6695% ops.
 6696% [ti=user, load= /.../(lps_user_examples, 'minimalGoat.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'minimalGoat.pl'), lps= /.../(lps_user_examples, 'minimalGoat.pl'), using= /.../(lps_user_examples, 'minimalGoat.pl')].
 6697% continue_lps_dialect.
 6698% ops.
 6699
 6700% LPS:  actions((row(_57034,_57036),transport(_57104,_57034,_57036))).
 6701% Into: actions([row(_57034,_57036),transport(_57104,_57034,_57036)]).
 6702
 6703% LPS:  fluents(loc(_58232,_58234)).
 6704% Into: fluents([loc(_58232,_58234)]).
 6705
 6706% LPS:  initially((loc(wolf,south),loc(goat,south),loc(cabbage,south),loc(farmer,south))).
 6707% Into: initial_state([loc(wolf,south),loc(goat,south),loc(cabbage,south),loc(farmer,south)]).
 6708
 6709% LPS:  updates(transport(_60626,_60628,_60630),in(to(_60628,_60630),loc(_60626,_60628))).
 6710% Into: updated(happens(transport(_60626,_60628,_60630),_61982,_61988),loc(_60626,_60628),_60628-_60630,[]).
 6711
 6712% LPS:  updates(row(_61882,_61884),in(to(_61882,_61884),loc(farmer,_61882))).
 6713% Into: updated(happens(row(_61882,_61884),_63220,_63226),loc(farmer,_61882),_61882-_61884,[]).
 6714
 6715% LPS:  false((at(loc(wolf,_63132),_63154),at(loc(goat,_63132),_63154),at(not(loc(farmer,_63132)),_63154),happens(_63488,_63490,_63154))).
 6716% Into: d_pre([holds(loc(wolf,_63132),_63154),holds(loc(goat,_63132),_63154),holds(not(loc(farmer,_63132)),_63154),happens(_63488,_63490,_63154)]).
 6717
 6718% LPS:  false((at(loc(cabbage,_65464),_65486),at(loc(goat,_65464),_65486),at(not(loc(farmer,_65464)),_65486),happens(_65820,_65822,_65486))).
 6719% Into: d_pre([holds(loc(cabbage,_65464),_65486),holds(loc(goat,_65464),_65486),holds(not(loc(farmer,_65464)),_65486),happens(_65820,_65822,_65486)]).
 6720
 6721% LPS:  false((row(_67794,_67796),row(_67796,_67794))).
 6722% Into: d_pre([happens(row(_67794,_67796),_68920,_68926),happens(row(_67796,_67794),_68920,_68926)]).
 6723
 6724% LPS:  false((transport(_68976,_68978,_68980),transport(_69048,_68978,_68980),_68976\=_69048)).
 6725% Into: d_pre([happens(transport(_68976,_68978,_68980),_70256,_70262),happens(transport(_69048,_68978,_68980),_70256,_70262),_68976\=_69048]).
 6726
 6727% LPS:  if(from(move,to(_74008,_74010)),(at(loc(_74122,_74124),_74008),_74122\=farmer,opposite(_74124,_74292),from(transport(_74122,_74124,_74292),to(_74008,_74010)),at(loc(farmer,_74124),_74008),from(row(_74124,_74292),to(_74008,_74010)))).
 6728% Into: l_events(happens(move,_74008,_74010),[holds(loc(_74122,_74124),_74008),_74122\=farmer,opposite(_74124,_74292),happens(transport(_74122,_74124,_74292),_74008,_74010),holds(loc(farmer,_74124),_74008),happens(row(_74124,_74292),_74008,_74010)]).
 6729
 6730% LPS:  if(move,(at(loc(farmer,_77494),_77516),opposite(_77494,_77598),from(row(_77494,_77598),_77516))).
 6731% Into: l_events(happens(move,_77516,_78856),[holds(loc(farmer,_77494),_77516),opposite(_77494,_77598),happens(row(_77494,_77598),_77516,_78856)]).
 6732
 6733% LPS:  from(moves,to(_79260,_79260)).
 6734% Into: l_events(happens(moves,_79260,_79260),[]).
 6735
 6736% LPS:  if(moves,(to(move,_80344),from(moves,_80344))).
 6737% Into: l_events(happens(moves,_81502,_81508),[happens(move,_81502,_80344),happens(moves,_80344,_81508)]).
 6738
 6739% LPS:  then(if(at(not(loc(_81550,north)),_81598)),(from(moves,to(_81598,_81702)),at(not(loc(_81822,south)),_81702))).
 6740% Into: reactive_rule([holds(not(loc(_81550,north)),_81598)],[happens(moves,_81598,_81702),holds(not(loc(_81822,south)),_81702)]).
 6741% /pack/logicmoo_ec/test/lps_user_examples/minimalGoat.pl:40
 6742% pop_lps_dialect('$BLOB'("<stream>(0x562ef73e2900)"),  (/.../(lps_user_examples, 'minimalGoat.pl')-> /.../(lps_user_examples, 'minimalGoat.pl'))).
 6743% ops.
 6744% :-listing('/pack/logicmoo_ec/test/lps_user_examples/minimalGoat.pl':_90668).
 6745
 6746
 6747d_pre([holds(loc(wolf, A), B), holds(loc(goat, A), B), holds(not(loc(farmer, A)), B), happens(_, _, B)]).
 6748d_pre([holds(loc(cabbage, A), B), holds(loc(goat, A), B), holds(not(loc(farmer, A)), B), happens(_, _, B)]).
 6749d_pre([happens(row(A, B), C, D), happens(row(B, A), C, D)]).
 6750d_pre([happens(transport(A, B, C), D, E), happens(transport(F, B, C), D, E), A\=F]).
 6751
 6752opposite(north, south).
 6753opposite(south, north).
 6754
 6755fluents([loc(_, _)]).
 6756
 6757reactive_rule([holds(not(loc(_, north)), A)], [happens(moves, A, B), holds(not(loc(_, south)), B)]).
 6758
 6759initial_state([loc(wolf, south), loc(goat, south), loc(cabbage, south), loc(farmer, south)]).
 6760
 6761l_events(happens(move, A, B), [holds(loc(C, D), A), C\=farmer, opposite(D, E), happens(transport(C, D, E), A, B), holds(loc(farmer, D), A), happens(row(D, E), A, B)]).
 6762l_events(happens(move, A, B), [holds(loc(farmer, C), A), opposite(C, D), happens(row(C, D), A, B)]).
 6763l_events(happens(moves, A, A), []).
 6764l_events(happens(moves, A, B), [happens(move, A, C), happens(moves, C, B)]).
 6765
 6766:- dynamic actions/1. 6767:- multifile actions/1. 6768
 6769actions([row(A, B), transport(_, A, B)]).
 6770
 6771updated(happens(transport(A, B, C), _, _), loc(A, B), B-C, []).
 6772updated(happens(row(A, B), _, _), loc(farmer, A), A-B, []).
 6773ERROR: LPS: execution timeout(resolveAndUpdate)
 6774PROGRAM FAILED
 6775% dB(/.../(lps_user_examples, 'minimalGoat.pl'), lps_visualization(_100714{groups:[_97092{content:"loc(A,B)", id:"loc/2", order:3, subgroupStack:"false"}, _97158{content:"Actions", id:"action", order:4}], items:[_97280{content:"cabbage,south", end:8, group:"loc/2", id:0, start:1, subgroup:"cabbage", title:"Fluent loc(cabbage,south) initiated at 1<br/>and terminated at transition to 8"}, _97406{content:"farmer,north", end:3, group:"loc/2", id:1, start:2, subgroup:"farmer", title:"Fluent loc(farmer,north) initiated at 2<br/>and terminated at transition to 3"}, _97532{content:"farmer,north", end:5, group:"loc/2", id:2, start:4, subgroup:"farmer", title:"Fluent loc(farmer,north) initiated at 4<br/>and terminated at transition to 5"}, _97658{content:"farmer,north", end:7, group:"loc/2", id:3, start:6, subgroup:"farmer", title:"Fluent loc(farmer,north) initiated at 6<br/>and terminated at transition to 7"}, _97784{content:"farmer,south", end:2, group:"loc/2", id:4, start:1, subgroup:"farmer", title:"Fluent loc(farmer,south) initiated at 1<br/>and terminated at transition to 2"}, _97910{content:"farmer,south", end:4, group:"loc/2", id:5, start:3, subgroup:"farmer", title:"Fluent loc(farmer,south) initiated at 3<br/>and terminated at transition to 4"}, _98036{content:"farmer,south", end:6, group:"loc/2", id:6, start:5, subgroup:"farmer", title:"Fluent loc(farmer,south) initiated at 5<br/>and terminated at transition to 6"}, _98162{content:"farmer,south", end:8, group:"loc/2", id:7, start:7, subgroup:"farmer", title:"Fluent loc(farmer,south) initiated at 7<br/>and terminated at transition to 8"}, _98288{content:"goat,north", end:3, group:"loc/2", id:8, start:2, subgroup:"goat", title:"Fluent loc(goat,north) initiated at 2<br/>and terminated at transition to 3"}, _98414{content:"goat,north", end:5, group:"loc/2", id:9, start:4, subgroup:"goat", title:"Fluent loc(goat,north) initiated at 4<br/>and terminated at transition to 5"}, _98540{content:"goat,north", end:7, group:"loc/2", id:10, start:6, subgroup:"goat", title:"Fluent loc(goat,north) initiated at 6<br/>and terminated at transition to 7"}, _98666{content:"goat,south", end:2, group:"loc/2", id:11, start:1, subgroup:"goat", title:"Fluent loc(goat,south) initiated at 1<br/>and terminated at transition to 2"}, _98792{content:"goat,south", end:4, group:"loc/2", id:12, start:3, subgroup:"goat", title:"Fluent loc(goat,south) initiated at 3<br/>and terminated at transition to 4"}, _98918{content:"goat,south", end:6, group:"loc/2", id:13, start:5, subgroup:"goat", title:"Fluent loc(goat,south) initiated at 5<br/>and terminated at transition to 6"}, _99044{content:"goat,south", end:8, group:"loc/2", id:14, start:7, subgroup:"goat", title:"Fluent loc(goat,south) initiated at 7<br/>and terminated at transition to 8"}, _99170{content:"wolf,south", end:8, group:"loc/2", id:15, start:1, subgroup:"wolf", title:"Fluent loc(wolf,south) initiated at 1<br/>and terminated at transition to 8"}, _99296{content:"transport(goat,south,north)", group:"action", id:16, start:2, style:"color:green", title:"happens(transport(goat,south,north),1,2)", type:"point"}, _99422{content:"row(south,north)", group:"action", id:17, start:2, style:"color:green", title:"happens(row(south,north),1,2)", type:"point"}, _99548{content:"transport(goat,north,south)", group:"action", id:18, start:3, style:"color:green", title:"happens(transport(goat,north,south),2,3)", type:"point"}, _99674{content:"row(north,south)", group:"action", id:19, start:3, style:"color:green", title:"happens(row(north,south),2,3)", type:"point"}, _99800{content:"transport(goat,south,north)", group:"action", id:20, start:4, style:"color:green", title:"happens(transport(goat,south,north),3,4)", type:"point"}, _99926{content:"row(south,north)", group:"action", id:21, start:4, style:"color:green", title:"happens(row(south,north),3,4)", type:"point"}, _100052{content:"transport(goat,north,south)", group:"action", id:22, start:5, style:"color:green", title:"happens(transport(goat,north,south),4,5)", type:"point"}, _100178{content:"row(north,south)", group:"action", id:23, start:5, style:"color:green", title:"happens(row(north,south),4,5)", type:"point"}, _100304{content:"transport(goat,south,north)", group:"action", id:24, start:6, style:"color:green", title:"happens(transport(goat,south,north),5,6)", type:"point"}, _100430{content:"row(south,north)", group:"action", id:25, start:6, style:"color:green", title:"happens(row(south,north),5,6)", type:"point"}, _100556{content:"transport(goat,north,south)", group:"action", id:26, start:7, style:"color:green", title:"happens(transport(goat,north,south),6,7)", type:"point"}, _100682{content:"row(north,south)", group:"action", id:27, start:7, style:"color:green", title:"happens(row(north,south),6,7)", type:"point"}]}, [])).
 6776% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'MyLife.pl')).
 6777% run_lps_corner_file1(/.../(lps_user_examples, 'MyLife.pl')).
 6778% /pack/logicmoo_ec/test/lps_user_examples/MyLife.pl:1
 6779% push_lps_dialect.
 6780% ops.
 6781% [ti=user, load= /.../(lps_user_examples, 'MyLife.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'MyLife.pl'), lps= /.../(lps_user_examples, 'MyLife.pl'), using= /.../(lps_user_examples, 'MyLife.pl')].
 6782% continue_lps_dialect.
 6783% ops.
 6784
 6785% LPS:  fluents(_19484-_19486).
 6786% Into: fluents([_19484-_19486]).
 6787
 6788% LPS:  actions((die(_20564),live(_20604))).
 6789% Into: actions([die(_20564),live(_20604)]).
 6790
 6791% LPS:  initially((2-3,3-3,4-3)).
 6792% Into: initial_state([2-3,3-3,4-3]).
 6793
 6794% LPS:  then(if((at(_23028-_23030,_23078),at(aliveNeighbors(_23028-_23030,_23208),_23078),_23208<2)),die(_23028-_23030)).
 6795% Into: reactive_rule([holds(_23028-_23030,_23078),holds(aliveNeighbors(_23028-_23030,_23208),_23078),_23208<2],[happens(die(_23028-_23030),_26328,_26334)]).
 6796
 6797% LPS:  then(if((at(_26380-_26382,_26430),at(aliveNeighbors(_26380-_26382,_26560),_26430),_26560>3)),die(_26380-_26382)).
 6798% Into: reactive_rule([holds(_26380-_26382,_26430),holds(aliveNeighbors(_26380-_26382,_26560),_26430),_26560>3],[happens(die(_26380-_26382),_29680,_29686)]).
 6799
 6800% LPS:  then(if((cell(_29750,_29752),at(aliveNeighbors(_29750-_29752,3),_29878))),live(_29750-_29752)).
 6801% Into: reactive_rule([cell(_29750,_29752),holds(aliveNeighbors(_29750-_29752,3),_29878)],[happens(live(_29750-_29752),_32374,_32380)]).
 6802
 6803% LPS:  if(at(aliveNeighbors(_37562-_37564,_37610),_37632),(adjacent(_37562-_37564,_37762),at(countLivingNeighbors(_37762,_37610),_37632))).
 6804% Into: l_int(holds(aliveNeighbors(_37562-_37564,_37610),_37632),[adjacent(_37562-_37564,_37762),holds(countLivingNeighbors(_37762,_37610),_37632)]).
 6805
 6806% LPS:  at(countLivingNeighbors([],0),_39840).
 6807% Into: l_int(holds(countLivingNeighbors([],0),_39840),[]).
 6808
 6809% LPS:  if(at(countLivingNeighbors([_41086-_41088|_41120],_41148),_41170),(at(_41086-_41088,_41170),at(countLivingNeighbors(_41120,_41364),_41170),_41148 is _41364+1)).
 6810% Into: l_int(holds(countLivingNeighbors([_41086-_41088|_41120],_41148),_41170),[holds(_41086-_41088,_41170),holds(countLivingNeighbors(_41120,_41364),_41170),_41148 is _41364+1]).
 6811
 6812% LPS:  if(at(countLivingNeighbors([_43738-_43740|_43772],_43800),_43822),(at(not(_43738-_43740),_43822),at(countLivingNeighbors(_43772,_43800),_43822))).
 6813% Into: l_int(holds(countLivingNeighbors([_43738-_43740|_43772],_43800),_43822),[holds(not(_43738-_43740),_43822),holds(countLivingNeighbors(_43772,_43800),_43822)]).
 6814
 6815% LPS:  initiates(live(_45982-_45984),_45982-_45984).
 6816% Into: initiated(happens(live(_45982-_45984),_47208,_47214),_45982-_45984,[]).
 6817
 6818% LPS:  terminates(die(_47158-_47160),_47158-_47160).
 6819% Into: terminated(happens(die(_47158-_47160),_48384,_48390),_47158-_47160,[]).
 6820% /pack/logicmoo_ec/test/lps_user_examples/MyLife.pl:64
 6821% pop_lps_dialect('$BLOB'("<stream>(0x562ef70bf100)"),  (/.../(lps_user_examples, 'MyLife.pl')-> /.../(lps_user_examples, 'MyLife.pl'))).
 6822% ops.
 6823% :-listing('/pack/logicmoo_ec/test/lps_user_examples/MyLife.pl':_64964).
 6824
 6825
 6826initiated(happens(live(A-B), _, _), A-B, []).
 6827
 6828d(X-Y, [center:[XX, YY], radius:5, type:circle, fillColor:green]) :-
 6829    XX is X*10,
 6830    YY is Y*10.
 6831d(live(X-Y), [type:star, center:[XX, YY], points:7, radius1:4, radius2:7, fillColor:red]) :-
 6832    XX is X*10,
 6833    YY is Y*10.
 6834d(die(X-Y), [type:star, center:[XX, YY], points:7, radius1:4, radius2:7, fillColor:black]) :-
 6835    XX is X*10,
 6836    YY is Y*10.
 6837d(timeless, [[type:raster, position:[50, 120], scale:0.08, source:'https://upload.wikimedia.org/wikipedia/commons/0/04/John_H_Conway_2005_%28cropped%29.jpg'], [type:text, point:[0, 5], content:'Conway\'s Game of Life']]).
 6838
 6839fluents([_-_]).
 6840
 6841l_int(holds(aliveNeighbors(A-B, C), D), [adjacent(A-B, E), holds(countLivingNeighbors(E, C), D)]).
 6842l_int(holds(countLivingNeighbors([], 0), _), []).
 6843l_int(holds(countLivingNeighbors([A-B|C], D), E), [holds(A-B, E), holds(countLivingNeighbors(C, F), E), D is F+1]).
 6844l_int(holds(countLivingNeighbors([A-B|C], D), E), [holds(not(A-B), E), holds(countLivingNeighbors(C, D), E)]).
 6845
 6846reactive_rule([holds(A-B, C), holds(aliveNeighbors(A-B, D), C), D<2], [happens(die(A-B), _, _)]).
 6847reactive_rule([holds(A-B, C), holds(aliveNeighbors(A-B, D), C), D>3], [happens(die(A-B), _, _)]).
 6848reactive_rule([cell(A, B), holds(aliveNeighbors(A-B, 3), _)], [happens(live(A-B), _, _)]).
 6849
 6850cell(X, Y) :-
 6851    Range=[1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
 6852    member(X, Range),
 6853    member(Y, Range).
 6854
 6855initial_state([2-3, 3-3, 4-3]).
 6856
 6857terminated(happens(die(A-B), _, _), A-B, []).
 6858
 6859:- dynamic actions/1. 6860:- multifile actions/1. 6861
 6862actions([die(_), live(_)]).
 6863
 6864adjacent(A-B, C) :-
 6865    findall(D-E,
 6866            ( member(F, [-1, 0, 1]),
 6867              member(G, [-1, 0, 1]),
 6868              not(( F=0,
 6869                    G=0
 6870                  )),
 6871              D is A+F,
 6872              E is B+G
 6873            ),
 6874            C).
 6875
 6876maxTime(8).
 6877% dB(/.../(lps_user_examples, 'MyLife.pl'), lps_visualization(_324750{groups:[_318986{content:"A-B", id:"(-)/2", order:3, subgroupStack:"false"}, _319052{content:"Actions", id:"action", order:4}], items:[_319174{content:"2,3", end:2, group:"(-)/2", id:0, start:1, subgroup:"2", title:"Fluent 2-3 initiated at 1<br/>and terminated at transition to 2"}, _319300{content:"2,3", end:4, group:"(-)/2", id:1, start:3, subgroup:"2", title:"Fluent 2-3 initiated at 3<br/>and terminated at transition to 4"}, _319426{content:"2,3", end:6, group:"(-)/2", id:2, start:5, subgroup:"2", title:"Fluent 2-3 initiated at 5<br/>and terminated at transition to 6"}, _319552{content:"2,3", end:8, group:"(-)/2", id:3, start:7, subgroup:"2", title:"Fluent 2-3 initiated at 7<br/>and terminated at transition to 8"}, _319678{content:"3,2", end:3, group:"(-)/2", id:4, start:2, subgroup:"3", title:"Fluent 3-2 initiated at 2<br/>and terminated at transition to 3"}, _319804{content:"3,2", end:5, group:"(-)/2", id:5, start:4, subgroup:"3", title:"Fluent 3-2 initiated at 4<br/>and terminated at transition to 5"}, _319930{content:"3,2", end:7, group:"(-)/2", id:6, start:6, subgroup:"3", title:"Fluent 3-2 initiated at 6<br/>and terminated at transition to 7"}, _320056{content:"3,2", end:9, group:"(-)/2", id:7, start:8, subgroup:"3", title:"Fluent 3-2 initiated at 8<br/>and terminated at transition to 9"}, _320182{content:"3,3", end:9, group:"(-)/2", id:8, start:1, subgroup:"3", title:"Fluent 3-3 initiated at 1<br/>and terminated at transition to 9"}, _320308{content:"3,4", end:3, group:"(-)/2", id:9, start:2, subgroup:"3", title:"Fluent 3-4 initiated at 2<br/>and terminated at transition to 3"}, _320434{content:"3,4", end:5, group:"(-)/2", id:10, start:4, subgroup:"3", title:"Fluent 3-4 initiated at 4<br/>and terminated at transition to 5"}, _320560{content:"3,4", end:7, group:"(-)/2", id:11, start:6, subgroup:"3", title:"Fluent 3-4 initiated at 6<br/>and terminated at transition to 7"}, _320686{content:"3,4", end:9, group:"(-)/2", id:12, start:8, subgroup:"3", title:"Fluent 3-4 initiated at 8<br/>and terminated at transition to 9"}, _320812{content:"4,3", end:2, group:"(-)/2", id:13, start:1, subgroup:"4", title:"Fluent 4-3 initiated at 1<br/>and terminated at transition to 2"}, _320938{content:"4,3", end:4, group:"(-)/2", id:14, start:3, subgroup:"4", title:"Fluent 4-3 initiated at 3<br/>and terminated at transition to 4"}, _321064{content:"4,3", end:6, group:"(-)/2", id:15, start:5, subgroup:"4", title:"Fluent 4-3 initiated at 5<br/>and terminated at transition to 6"}, _321190{content:"4,3", end:8, group:"(-)/2", id:16, start:7, subgroup:"4", title:"Fluent 4-3 initiated at 7<br/>and terminated at transition to 8"}, _321316{content:"live(3-4)", group:"action", id:17, start:2, style:"color:green", title:"happens(live(3-4),1,2)", type:"point"}, _321442{content:"live(3-2)", group:"action", id:18, start:2, style:"color:green", title:"happens(live(3-2),1,2)", type:"point"}, _321568{content:"die(4-3)", group:"action", id:19, start:2, style:"color:green", title:"happens(die(4-3),1,2)", type:"point"}, _321694{content:"die(2-3)", group:"action", id:20, start:2, style:"color:green", title:"happens(die(2-3),1,2)", type:"point"}, _321820{content:"die(3-2)", group:"action", id:21, start:3, style:"color:green", title:"happens(die(3-2),2,3)", type:"point"}, _321946{content:"die(3-4)", group:"action", id:22, start:3, style:"color:green", title:"happens(die(3-4),2,3)", type:"point"}, _322072{content:"live(2-3)", group:"action", id:23, start:3, style:"color:green", title:"happens(live(2-3),2,3)", type:"point"}, _322198{content:"live(4-3)", group:"action", id:24, start:3, style:"color:green", title:"happens(live(4-3),2,3)", type:"point"}, _322324{content:"live(3-4)", group:"action", id:25, start:4, style:"color:green", title:"happens(live(3-4),3,4)", type:"point"}, _322450{content:"live(3-2)", group:"action", id:26, start:4, style:"color:green", title:"happens(live(3-2),3,4)", type:"point"}, _322576{content:"die(4-3)", group:"action", id:27, start:4, style:"color:green", title:"happens(die(4-3),3,4)", type:"point"}, _322702{content:"die(2-3)", group:"action", id:28, start:4, style:"color:green", title:"happens(die(2-3),3,4)", type:"point"}, _322828{content:"die(3-2)", group:"action", id:29, start:5, style:"color:green", title:"happens(die(3-2),4,5)", type:"point"}, _322954{content:"die(3-4)", group:"action", id:30, start:5, style:"color:green", title:"happens(die(3-4),4,5)", type:"point"}, _323080{content:"live(2-3)", group:"action", id:31, start:5, style:"color:green", title:"happens(live(2-3),4,5)", type:"point"}, _323206{content:"live(4-3)", group:"action", id:32, start:5, style:"color:green", title:"happens(live(4-3),4,5)", type:"point"}, _323332{content:"live(3-4)", group:"action", id:33, start:6, style:"color:green", title:"happens(live(3-4),5,6)", type:"point"}, _323458{content:"live(3-2)", group:"action", id:34, start:6, style:"color:green", title:"happens(live(3-2),5,6)", type:"point"}, _323584{content:"die(4-3)", group:"action", id:35, start:6, style:"color:green", title:"happens(die(4-3),5,6)", type:"point"}, _323710{content:"die(2-3)", group:"action", id:36, start:6, style:"color:green", title:"happens(die(2-3),5,6)", type:"point"}, _323836{content:"die(3-2)", group:"action", id:37, start:7, style:"color:green", title:"happens(die(3-2),6,7)", type:"point"}, _323962{content:"die(3-4)", group:"action", id:38, start:7, style:"color:green", title:"happens(die(3-4),6,7)", type:"point"}, _324088{content:"live(2-3)", group:"action", id:39, start:7, style:"color:green", title:"happens(live(2-3),6,7)", type:"point"}, _324214{content:"live(4-3)", group:"action", id:40, start:7, style:"color:green", title:"happens(live(4-3),6,7)", type:"point"}, _324340{content:"live(3-4)", group:"action", id:41, start:8, style:"color:green", title:"happens(live(3-4),7,8)", type:"point"}, _324466{content:"live(3-2)", group:"action", id:42, start:8, style:"color:green", title:"happens(live(3-2),7,8)", type:"point"}, _324592{content:"die(4-3)", group:"action", id:43, start:8, style:"color:green", title:"happens(die(4-3),7,8)", type:"point"}, _324718{content:"die(2-3)", group:"action", id:44, start:8, style:"color:green", title:"happens(die(2-3),7,8)", type:"point"}]}, _396436{cycles:[[_387800{create:[_387686{id:"timeless", position:[50, 120], scale:0.08, source:"https://upload.wikimedia.org/wikipedia/commons/0/04/John_H_Conway_2005_%28cropped%29.jpg", type:"raster"}, _387780{content:"Conway's Game of Life", id:"timeless", point:[0, 5], type:"text"}]}], [_387936{create:_387912{center:[20, 30], fillColor:"green", id:"2-3", radius:5, type:"circle"}}, _388066{create:_388042{center:[30, 30], fillColor:"green", id:"3-3", radius:5, type:"circle"}}, _388196{create:_388172{center:[40, 30], fillColor:"green", id:"4-3", radius:5, type:"circle"}}, _388374{create:_388338{center:[20, 30], event:"true", fillColor:"black", id:"die(2-3)", points:7, radius1:4, radius2:7, type:"star"}}, _388552{create:_388516{center:[40, 30], event:"true", fillColor:"black", id:"die(4-3)", points:7, radius1:4, radius2:7, type:"star"}}, _388730{create:_388694{center:[30, 20], event:"true", fillColor:"red", id:"live(3-2)", points:7, radius1:4, radius2:7, type:"star"}}, _388908{create:_388872{center:[30, 40], event:"true", fillColor:"red", id:"live(3-4)", points:7, radius1:4, radius2:7, type:"star"}}], [_389044{create:_389020{center:[30, 20], fillColor:"green", id:"3-2", radius:5, type:"circle"}}, _389174{create:_389150{center:[30, 40], fillColor:"green", id:"3-4", radius:5, type:"circle"}}, _389352{create:_389316{center:[30, 20], event:"true", fillColor:"black", id:"die(3-2)", points:7, radius1:4, radius2:7, type:"star"}}, _389530{create:_389494{center:[30, 40], event:"true", fillColor:"black", id:"die(3-4)", points:7, radius1:4, radius2:7, type:"star"}}, _389708{create:_389672{center:[20, 30], event:"true", fillColor:"red", id:"live(2-3)", points:7, radius1:4, radius2:7, type:"star"}}, _389886{create:_389850{center:[40, 30], event:"true", fillColor:"red", id:"live(4-3)", points:7, radius1:4, radius2:7, type:"star"}}, _389916{kill:"2-3"}, _389946{kill:"4-3"}, _389976{kill:"die(2-3)"}, _390006{kill:"die(4-3)"}, _390036{kill:"live(3-2)"}, _390066{kill:"live(3-4)"}], [_390202{create:_390178{center:[20, 30], fillColor:"green", id:"2-3", radius:5, type:"circle"}}, _390332{create:_390308{center:[40, 30], fillColor:"green", id:"4-3", radius:5, type:"circle"}}, _390510{create:_390474{center:[20, 30], event:"true", fillColor:"black", id:"die(2-3)", points:7, radius1:4, radius2:7, type:"star"}}, _390688{create:_390652{center:[40, 30], event:"true", fillColor:"black", id:"die(4-3)", points:7, radius1:4, radius2:7, type:"star"}}, _390866{create:_390830{center:[30, 20], event:"true", fillColor:"red", id:"live(3-2)", points:7, radius1:4, radius2:7, type:"star"}}, _391044{create:_391008{center:[30, 40], event:"true", fillColor:"red", id:"live(3-4)", points:7, radius1:4, radius2:7, type:"star"}}, _391074{kill:"3-2"}, _391104{kill:"3-4"}, _391134{kill:"die(3-2)"}, _391164{kill:"die(3-4)"}, _391194{kill:"live(2-3)"}, _391224{kill:"live(4-3)"}], [_391360{create:_391336{center:[30, 20], fillColor:"green", id:"3-2", radius:5, type:"circle"}}, _391490{create:_391466{center:[30, 40], fillColor:"green", id:"3-4", radius:5, type:"circle"}}, _391668{create:_391632{center:[30, 20], event:"true", fillColor:"black", id:"die(3-2)", points:7, radius1:4, radius2:7, type:"star"}}, _391846{create:_391810{center:[30, 40], event:"true", fillColor:"black", id:"die(3-4)", points:7, radius1:4, radius2:7, type:"star"}}, _392024{create:_391988{center:[20, 30], event:"true", fillColor:"red", id:"live(2-3)", points:7, radius1:4, radius2:7, type:"star"}}, _392202{create:_392166{center:[40, 30], event:"true", fillColor:"red", id:"live(4-3)", points:7, radius1:4, radius2:7, type:"star"}}, _392232{kill:"2-3"}, _392262{kill:"4-3"}, _392292{kill:"die(2-3)"}, _392322{kill:"die(4-3)"}, _392352{kill:"live(3-2)"}, _392382{kill:"live(3-4)"}], [_392518{create:_392494{center:[20, 30], fillColor:"green", id:"2-3", radius:5, type:"circle"}}, _392648{create:_392624{center:[40, 30], fillColor:"green", id:"4-3", radius:5, type:"circle"}}, _392826{create:_392790{center:[20, 30], event:"true", fillColor:"black", id:"die(2-3)", points:7, radius1:4, radius2:7, type:"star"}}, _393004{create:_392968{center:[40, 30], event:"true", fillColor:"black", id:"die(4-3)", points:7, radius1:4, radius2:7, type:"star"}}, _393182{create:_393146{center:[30, 20], event:"true", fillColor:"red", id:"live(3-2)", points:7, radius1:4, radius2:7, type:"star"}}, _393360{create:_393324{center:[30, 40], event:"true", fillColor:"red", id:"live(3-4)", points:7, radius1:4, radius2:7, type:"star"}}, _393390{kill:"3-2"}, _393420{kill:"3-4"}, _393450{kill:"die(3-2)"}, _393480{kill:"die(3-4)"}, _393510{kill:"live(2-3)"}, _393540{kill:"live(4-3)"}], [_393676{create:_393652{center:[30, 20], fillColor:"green", id:"3-2", radius:5, type:"circle"}}, _393806{create:_393782{center:[30, 40], fillColor:"green", id:"3-4", radius:5, type:"circle"}}, _393984{create:_393948{center:[30, 20], event:"true", fillColor:"black", id:"die(3-2)", points:7, radius1:4, radius2:7, type:"star"}}, _394162{create:_394126{center:[30, 40], event:"true", fillColor:"black", id:"die(3-4)", points:7, radius1:4, radius2:7, type:"star"}}, _394340{create:_394304{center:[20, 30], event:"true", fillColor:"red", id:"live(2-3)", points:7, radius1:4, radius2:7, type:"star"}}, _394518{create:_394482{center:[40, 30], event:"true", fillColor:"red", id:"live(4-3)", points:7, radius1:4, radius2:7, type:"star"}}, _394548{kill:"2-3"}, _394578{kill:"4-3"}, _394608{kill:"die(2-3)"}, _394638{kill:"die(4-3)"}, _394668{kill:"live(3-2)"}, _394698{kill:"live(3-4)"}], [_394834{create:_394810{center:[20, 30], fillColor:"green", id:"2-3", radius:5, type:"circle"}}, _394964{create:_394940{center:[40, 30], fillColor:"green", id:"4-3", radius:5, type:"circle"}}, _395142{create:_395106{center:[20, 30], event:"true", fillColor:"black", id:"die(2-3)", points:7, radius1:4, radius2:7, type:"star"}}, _395320{create:_395284{center:[40, 30], event:"true", fillColor:"black", id:"die(4-3)", points:7, radius1:4, radius2:7, type:"star"}}, _395498{create:_395462{center:[30, 20], event:"true", fillColor:"red", id:"live(3-2)", points:7, radius1:4, radius2:7, type:"star"}}, _395676{create:_395640{center:[30, 40], event:"true", fillColor:"red", id:"live(3-4)", points:7, radius1:4, radius2:7, type:"star"}}, _395706{kill:"3-2"}, _395736{kill:"3-4"}, _395766{kill:"die(3-2)"}, _395796{kill:"die(3-4)"}, _395826{kill:"live(2-3)"}, _395856{kill:"live(4-3)"}], [_395992{create:_395968{center:[30, 20], fillColor:"green", id:"3-2", radius:5, type:"circle"}}, _396122{create:_396098{center:[30, 40], fillColor:"green", id:"3-4", radius:5, type:"circle"}}, _396152{kill:"2-3"}, _396182{kill:"4-3"}, _396212{kill:"die(2-3)"}, _396242{kill:"die(4-3)"}, _396272{kill:"live(3-2)"}, _396302{kill:"live(3-4)"}], [_396338{kill:"3-2"}, _396368{kill:"3-3"}, _396398{kill:"3-4"}, _396428{kill:"timeless"}]]})).
 6878% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'myLogGroker.pl')).
 6879% run_lps_corner_file1(/.../(lps_user_examples, 'myLogGroker.pl')).
 6880% /pack/logicmoo_ec/test/lps_user_examples/myLogGroker.pl:1
 6881% push_lps_dialect.
 6882% ops.
 6883% [ti=user, load= /.../(lps_user_examples, 'myLogGroker.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'myLogGroker.pl'), lps= /.../(lps_user_examples, 'myLogGroker.pl'), using= /.../(lps_user_examples, 'myLogGroker.pl')].
 6884% continue_lps_dialect.
 6885% ops.
 6886% /pack/logicmoo_ec/test/lps_user_examples/myLogGroker.pl:388
 6887% pop_lps_dialect('$BLOB'("<stream>(0x562ef70c0000)"),  (/.../(lps_user_examples, 'myLogGroker.pl')-> /.../(lps_user_examples, 'myLogGroker.pl'))).
 6888% ops.
 6889% :-listing('/pack/logicmoo_ec/test/lps_user_examples/myLogGroker.pl':_38150).
 6890
 6891
 6892callbackTimes(Session, QueryName, Updating, JavaCall, Parsing, Deletion, Insertion) :-
 6893    log(Session, NI, CPUi, framesWereInserted(Updating)),
 6894    Nd is NI+ -1,
 6895    log(Session, Nd, CPUd, framesWereDeleted(_)),
 6896    Np is NI+ -2,
 6897    log(Session, Np, CPUp, framesWereParsed),
 6898    Nj is NI+ -3,
 6899    log(Session, Nj, CPUj, javaMessageReturned),
 6900    Nc is Nj+ -1,
 6901    log(Session, Nc, CPUc, Call),
 6902    Call='%getMetaQLQueryResults'(_CONTEXT, _Module, _HandlerClass, QueryName, _Params, _Status),
 6903    JavaCall is CPUj-CPUc,
 6904    Insertion is CPUi-CPUd,
 6905    Parsing is CPUp-CPUj,
 6906    Deletion is CPUd-CPUp.
 6907
 6908log('2020-06-03T11:16:25', 1, 63.756, '%getMetaQLQueryResults'('8b6a4bbd-6bf7-45b3-a543-a2ca32c42114', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/FoodServices', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6008329)).
 6909log('2020-06-03T11:16:25', 2, 63.758, javaMessageReturned).
 6910log('2020-06-03T11:16:25', 3, 63.76, '%getMetaQLQueryResults'('8b6a4bbd-6bf7-45b3-a543-a2ca32c42114', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Environmental', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6008387)).
 6911log('2020-06-03T11:16:25', 4, 63.761, javaMessageReturned).
 6912log('2020-06-03T11:16:25', 5, 63.763, '%getMetaQLQueryResults'('8b6a4bbd-6bf7-45b3-a543-a2ca32c42114', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/RealEstate', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6008445)).
 6913log('2020-06-03T11:16:25', 6, 63.764, javaMessageReturned).
 6914log('2020-06-03T11:16:25', 7, 63.765, '%getMetaQLQueryResults'('8b6a4bbd-6bf7-45b3-a543-a2ca32c42114', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Utilities', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6008503)).
 6915log('2020-06-03T11:16:25', 8, 63.767, javaMessageReturned).
 6916log('2020-06-03T11:16:25', 9, 63.768, '%getMetaQLQueryResults'('8b6a4bbd-6bf7-45b3-a543-a2ca32c42114', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/WholesaleTrade', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6008561)).
 6917log('2020-06-03T11:16:25', 10, 63.77, javaMessageReturned).
 6918log('2020-06-03T11:16:25', 11, 63.772, '%getMetaQLQueryResults'('8b6a4bbd-6bf7-45b3-a543-a2ca32c42114', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/PoliticalOrganizations', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6008619)).
 6919log('2020-06-03T11:16:25', 12, 63.774, javaMessageReturned).
 6920log('2020-06-03T11:16:25', 13, 63.775, '%getMetaQLQueryResults'('8b6a4bbd-6bf7-45b3-a543-a2ca32c42114', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Industry', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6008677)).
 6921log('2020-06-03T11:16:25', 14, 63.777, javaMessageReturned).
 6922log('2020-06-03T11:16:25', 15, 63.778, '%getMetaQLQueryResults'('8b6a4bbd-6bf7-45b3-a543-a2ca32c42114', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/FinancialServices', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6008735)).
 6923log('2020-06-03T11:16:25', 16, 63.788, javaMessageReturned).
 6924log('2020-06-03T11:16:25', 17, 63.813, framesWereParsed).
 6925log('2020-06-03T11:16:25', 18, 63.998, framesWereDeleted(14)).
 6926log('2020-06-03T11:16:25', 19, 66.68, framesWereInserted('\\true')).
 6927log('2020-06-03T11:16:25', 20, 66.954, ruleExiting).
 6928log('2020-06-03T11:16:25', 21, 68.497, '%getMetaQLQueryResults'('8b6a4bbd-6bf7-45b3-a543-a2ca32c42114', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Agriculture', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6181758)).
 6929log('2020-06-03T11:16:25', 22, 68.499, javaMessageReturned).
 6930log('2020-06-03T11:16:25', 23, 68.5, '%getMetaQLQueryResults'('8b6a4bbd-6bf7-45b3-a543-a2ca32c42114', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Construction', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6181816)).
 6931log('2020-06-03T11:16:25', 24, 68.502, javaMessageReturned).
 6932log('2020-06-03T11:16:25', 25, 68.504, '%getMetaQLQueryResults'('8b6a4bbd-6bf7-45b3-a543-a2ca32c42114', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/ArtsMediaEntertainment', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6181874)).
 6933log('2020-06-03T11:16:25', 26, 68.506, javaMessageReturned).
 6934log('2020-06-03T11:16:25', 27, 68.507, '%getMetaQLQueryResults'('8b6a4bbd-6bf7-45b3-a543-a2ca32c42114', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/SocialServices', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6181932)).
 6935log('2020-06-03T11:16:25', 28, 68.509, javaMessageReturned).
 6936log('2020-06-03T11:16:25', 29, 68.511, '%getMetaQLQueryResults'('8b6a4bbd-6bf7-45b3-a543-a2ca32c42114', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Education', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6181990)).
 6937log('2020-06-03T11:16:25', 30, 68.514, javaMessageReturned).
 6938log('2020-06-03T11:16:25', 31, 68.515, '%getMetaQLQueryResults'('8b6a4bbd-6bf7-45b3-a543-a2ca32c42114', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Health', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6182048)).
 6939log('2020-06-03T11:16:25', 32, 68.517, javaMessageReturned).
 6940log('2020-06-03T11:16:25', 33, 68.518, '%getMetaQLQueryResults'('8b6a4bbd-6bf7-45b3-a543-a2ca32c42114', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Hospitality', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6182106)).
 6941log('2020-06-03T11:16:25', 34, 68.52, javaMessageReturned).
 6942log('2020-06-03T11:16:25', 35, 68.521, '%getMetaQLQueryResults'('8b6a4bbd-6bf7-45b3-a543-a2ca32c42114', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/PublicAdministration', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6182164)).
 6943log('2020-06-03T11:16:25', 36, 68.523, javaMessageReturned).
 6944log('2020-06-03T11:16:25', 37, 68.524, '%getMetaQLQueryResults'('8b6a4bbd-6bf7-45b3-a543-a2ca32c42114', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/ReligiousServices', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6182222)).
 6945log('2020-06-03T11:16:25', 38, 68.527, javaMessageReturned).
 6946log('2020-06-03T11:16:25', 39, 68.528, '%getMetaQLQueryResults'('8b6a4bbd-6bf7-45b3-a543-a2ca32c42114', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/EnergyandMining', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6182280)).
 6947log('2020-06-03T11:16:25', 40, 68.53, javaMessageReturned).
 6948log('2020-06-03T11:16:25', 41, 68.531, '%getMetaQLQueryResults'('8b6a4bbd-6bf7-45b3-a543-a2ca32c42114', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/RetailTrade', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6182338)).
 6949log('2020-06-03T11:16:25', 42, 68.534, javaMessageReturned).
 6950log('2020-06-03T11:16:25', 43, 68.535, '%getMetaQLQueryResults'('8b6a4bbd-6bf7-45b3-a543-a2ca32c42114', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Manufacturing', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6182396)).
 6951log('2020-06-03T11:16:25', 44, 68.537, javaMessageReturned).
 6952log('2020-06-03T11:16:25', 45, 68.539, '%getMetaQLQueryResults'('8b6a4bbd-6bf7-45b3-a543-a2ca32c42114', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/TransportationandWarehousing', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6182454)).
 6953log('2020-06-03T11:16:25', 46, 68.541, javaMessageReturned).
 6954log('2020-06-03T11:16:25', 47, 68.542, '%getMetaQLQueryResults'('8b6a4bbd-6bf7-45b3-a543-a2ca32c42114', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/ProfessionalServices', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6182512)).
 6955log('2020-06-03T11:16:25', 48, 68.544, javaMessageReturned).
 6956log('2020-06-03T11:16:25', 49, 68.545, '%getMetaQLQueryResults'('8b6a4bbd-6bf7-45b3-a543-a2ca32c42114', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Technology', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6182570)).
 6957log('2020-06-03T11:16:25', 50, 68.547, javaMessageReturned).
 6958log('2020-06-03T11:16:25', 51, 68.548, '%getMetaQLQueryResults'('8b6a4bbd-6bf7-45b3-a543-a2ca32c42114', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/OtherServices', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6182628)).
 6959log('2020-06-03T11:16:25', 52, 68.55, javaMessageReturned).
 6960log('2020-06-03T11:16:25', 53, 71.197, '%getMetaQLQueryResults'('c4c55000-48d3-491a-93ba-7b7595eb4232', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/FoodServices', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8078859)).
 6961log('2020-06-03T11:16:25', 54, 71.199, javaMessageReturned).
 6962log('2020-06-03T11:16:25', 55, 71.203, '%getMetaQLQueryResults'('c4c55000-48d3-491a-93ba-7b7595eb4232', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Environmental', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8078917)).
 6963log('2020-06-03T11:16:25', 56, 71.205, javaMessageReturned).
 6964log('2020-06-03T11:16:25', 57, 71.207, '%getMetaQLQueryResults'('c4c55000-48d3-491a-93ba-7b7595eb4232', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/RealEstate', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8078975)).
 6965log('2020-06-03T11:16:25', 58, 71.209, javaMessageReturned).
 6966log('2020-06-03T11:16:25', 59, 71.21, '%getMetaQLQueryResults'('c4c55000-48d3-491a-93ba-7b7595eb4232', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Utilities', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8079033)).
 6967log('2020-06-03T11:16:25', 60, 71.212, javaMessageReturned).
 6968log('2020-06-03T11:16:25', 61, 71.214, '%getMetaQLQueryResults'('c4c55000-48d3-491a-93ba-7b7595eb4232', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/WholesaleTrade', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8079091)).
 6969log('2020-06-03T11:16:25', 62, 71.216, javaMessageReturned).
 6970log('2020-06-03T11:16:25', 63, 71.218, '%getMetaQLQueryResults'('c4c55000-48d3-491a-93ba-7b7595eb4232', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/PoliticalOrganizations', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8079149)).
 6971log('2020-06-03T11:16:25', 64, 71.22, javaMessageReturned).
 6972log('2020-06-03T11:16:25', 65, 71.222, '%getMetaQLQueryResults'('c4c55000-48d3-491a-93ba-7b7595eb4232', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Industry', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8079207)).
 6973log('2020-06-03T11:16:25', 66, 71.224, javaMessageReturned).
 6974log('2020-06-03T11:16:25', 67, 71.225, '%getMetaQLQueryResults'('c4c55000-48d3-491a-93ba-7b7595eb4232', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/FinancialServices', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8079265)).
 6975log('2020-06-03T11:16:25', 68, 71.235, javaMessageReturned).
 6976log('2020-06-03T11:16:25', 69, 71.257, framesWereParsed).
 6977log('2020-06-03T11:16:25', 70, 71.274, framesWereDeleted(14)).
 6978log('2020-06-03T11:16:25', 71, 74.388, framesWereInserted('\\true')).
 6979log('2020-06-03T11:16:25', 72, 74.491, ruleExiting).
 6980log('2020-06-03T11:16:25', 73, 76.033, '%getMetaQLQueryResults'('c4c55000-48d3-491a-93ba-7b7595eb4232', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Agriculture', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8251761)).
 6981log('2020-06-03T11:16:25', 74, 76.035, javaMessageReturned).
 6982log('2020-06-03T11:16:25', 75, 76.036, '%getMetaQLQueryResults'('c4c55000-48d3-491a-93ba-7b7595eb4232', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Construction', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8251819)).
 6983log('2020-06-03T11:16:25', 76, 76.038, javaMessageReturned).
 6984log('2020-06-03T11:16:25', 77, 76.04, '%getMetaQLQueryResults'('c4c55000-48d3-491a-93ba-7b7595eb4232', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/ArtsMediaEntertainment', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8251877)).
 6985log('2020-06-03T11:16:25', 78, 76.041, javaMessageReturned).
 6986log('2020-06-03T11:16:25', 79, 76.043, '%getMetaQLQueryResults'('c4c55000-48d3-491a-93ba-7b7595eb4232', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/SocialServices', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8251935)).
 6987log('2020-06-03T11:16:25', 80, 76.045, javaMessageReturned).
 6988log('2020-06-03T11:16:25', 81, 76.046, '%getMetaQLQueryResults'('c4c55000-48d3-491a-93ba-7b7595eb4232', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Education', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8251993)).
 6989log('2020-06-03T11:16:25', 82, 76.048, javaMessageReturned).
 6990log('2020-06-03T11:16:25', 83, 76.05, '%getMetaQLQueryResults'('c4c55000-48d3-491a-93ba-7b7595eb4232', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Health', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8252051)).
 6991log('2020-06-03T11:16:25', 84, 76.052, javaMessageReturned).
 6992log('2020-06-03T11:16:25', 85, 76.054, '%getMetaQLQueryResults'('c4c55000-48d3-491a-93ba-7b7595eb4232', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Hospitality', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8252109)).
 6993log('2020-06-03T11:16:25', 86, 76.055, javaMessageReturned).
 6994log('2020-06-03T11:16:25', 87, 76.057, '%getMetaQLQueryResults'('c4c55000-48d3-491a-93ba-7b7595eb4232', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/PublicAdministration', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8252167)).
 6995log('2020-06-03T11:16:25', 88, 76.059, javaMessageReturned).
 6996log('2020-06-03T11:16:25', 89, 76.061, '%getMetaQLQueryResults'('c4c55000-48d3-491a-93ba-7b7595eb4232', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/ReligiousServices', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8252225)).
 6997log('2020-06-03T11:16:25', 90, 76.063, javaMessageReturned).
 6998log('2020-06-03T11:16:25', 91, 76.065, '%getMetaQLQueryResults'('c4c55000-48d3-491a-93ba-7b7595eb4232', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/EnergyandMining', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8252283)).
 6999log('2020-06-03T11:16:25', 92, 76.067, javaMessageReturned).
 7000log('2020-06-03T11:16:25', 93, 76.068, '%getMetaQLQueryResults'('c4c55000-48d3-491a-93ba-7b7595eb4232', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/RetailTrade', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8252341)).
 7001log('2020-06-03T11:16:25', 94, 76.07, javaMessageReturned).
 7002log('2020-06-03T11:16:25', 95, 76.072, '%getMetaQLQueryResults'('c4c55000-48d3-491a-93ba-7b7595eb4232', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Manufacturing', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8252399)).
 7003log('2020-06-03T11:16:25', 96, 76.074, javaMessageReturned).
 7004log('2020-06-03T11:16:25', 97, 76.075, '%getMetaQLQueryResults'('c4c55000-48d3-491a-93ba-7b7595eb4232', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/TransportationandWarehousing', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8252457)).
 7005log('2020-06-03T11:16:25', 98, 76.077, javaMessageReturned).
 7006log('2020-06-03T11:16:25', 99, 76.078, '%getMetaQLQueryResults'('c4c55000-48d3-491a-93ba-7b7595eb4232', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/ProfessionalServices', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8252515)).
 7007log('2020-06-03T11:16:25', 100, 76.08, javaMessageReturned).
 7008log('2020-06-03T11:16:25', 101, 76.082, '%getMetaQLQueryResults'('c4c55000-48d3-491a-93ba-7b7595eb4232', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Technology', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8252573)).
 7009log('2020-06-03T11:16:25', 102, 76.084, javaMessageReturned).
 7010log('2020-06-03T11:16:25', 103, 76.085, '%getMetaQLQueryResults'('c4c55000-48d3-491a-93ba-7b7595eb4232', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/OtherServices', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8252631)).
 7011log('2020-06-03T11:16:25', 104, 76.087, javaMessageReturned).
 7012log('2020-06-03T11:16:25', 105, 78.477, '%getMetaQLQueryResults'('ecb6d2da-2c72-48b7-ad9f-666b7c086f7b', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/FoodServices', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8081685)).
 7013log('2020-06-03T11:16:25', 106, 78.48, javaMessageReturned).
 7014log('2020-06-03T11:16:25', 107, 78.483, '%getMetaQLQueryResults'('ecb6d2da-2c72-48b7-ad9f-666b7c086f7b', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Environmental', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8081743)).
 7015log('2020-06-03T11:16:25', 108, 78.485, javaMessageReturned).
 7016log('2020-06-03T11:16:25', 109, 78.487, '%getMetaQLQueryResults'('ecb6d2da-2c72-48b7-ad9f-666b7c086f7b', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/RealEstate', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8081801)).
 7017log('2020-06-03T11:16:25', 110, 78.49, javaMessageReturned).
 7018log('2020-06-03T11:16:25', 111, 78.491, '%getMetaQLQueryResults'('ecb6d2da-2c72-48b7-ad9f-666b7c086f7b', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Utilities', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8081859)).
 7019log('2020-06-03T11:16:25', 112, 78.493, javaMessageReturned).
 7020log('2020-06-03T11:16:25', 113, 78.494, '%getMetaQLQueryResults'('ecb6d2da-2c72-48b7-ad9f-666b7c086f7b', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/WholesaleTrade', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8081917)).
 7021log('2020-06-03T11:16:25', 114, 78.497, javaMessageReturned).
 7022log('2020-06-03T11:16:25', 115, 78.499, '%getMetaQLQueryResults'('ecb6d2da-2c72-48b7-ad9f-666b7c086f7b', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/PoliticalOrganizations', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8081975)).
 7023log('2020-06-03T11:16:25', 116, 78.501, javaMessageReturned).
 7024log('2020-06-03T11:16:25', 117, 78.504, '%getMetaQLQueryResults'('ecb6d2da-2c72-48b7-ad9f-666b7c086f7b', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Industry', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8082033)).
 7025log('2020-06-03T11:16:25', 118, 78.506, javaMessageReturned).
 7026log('2020-06-03T11:16:25', 119, 78.509, '%getMetaQLQueryResults'('ecb6d2da-2c72-48b7-ad9f-666b7c086f7b', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/FinancialServices', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8082091)).
 7027log('2020-06-03T11:16:25', 120, 78.522, javaMessageReturned).
 7028log('2020-06-03T11:16:25', 121, 78.547, framesWereParsed).
 7029log('2020-06-03T11:16:25', 122, 78.568, framesWereDeleted(14)).
 7030log('2020-06-03T11:16:25', 123, 81.691, framesWereInserted('\\true')).
 7031log('2020-06-03T11:16:25', 124, 81.791, ruleExiting).
 7032log('2020-06-03T11:16:25', 125, 83.303, '%getMetaQLQueryResults'('ecb6d2da-2c72-48b7-ad9f-666b7c086f7b', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Agriculture', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8254587)).
 7033log('2020-06-03T11:16:25', 126, 83.306, javaMessageReturned).
 7034log('2020-06-03T11:16:25', 127, 83.308, '%getMetaQLQueryResults'('ecb6d2da-2c72-48b7-ad9f-666b7c086f7b', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Construction', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8254645)).
 7035log('2020-06-03T11:16:25', 128, 83.309, javaMessageReturned).
 7036log('2020-06-03T11:16:25', 129, 83.311, '%getMetaQLQueryResults'('ecb6d2da-2c72-48b7-ad9f-666b7c086f7b', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/ArtsMediaEntertainment', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8254703)).
 7037log('2020-06-03T11:16:25', 130, 83.313, javaMessageReturned).
 7038log('2020-06-03T11:16:25', 131, 83.314, '%getMetaQLQueryResults'('ecb6d2da-2c72-48b7-ad9f-666b7c086f7b', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/SocialServices', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8254761)).
 7039log('2020-06-03T11:16:25', 132, 83.316, javaMessageReturned).
 7040log('2020-06-03T11:16:25', 133, 83.318, '%getMetaQLQueryResults'('ecb6d2da-2c72-48b7-ad9f-666b7c086f7b', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Education', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8254819)).
 7041log('2020-06-03T11:16:25', 134, 83.32, javaMessageReturned).
 7042log('2020-06-03T11:16:25', 135, 83.322, '%getMetaQLQueryResults'('ecb6d2da-2c72-48b7-ad9f-666b7c086f7b', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Health', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8254877)).
 7043log('2020-06-03T11:16:25', 136, 83.324, javaMessageReturned).
 7044log('2020-06-03T11:16:25', 137, 83.326, '%getMetaQLQueryResults'('ecb6d2da-2c72-48b7-ad9f-666b7c086f7b', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Hospitality', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8254935)).
 7045log('2020-06-03T11:16:25', 138, 83.328, javaMessageReturned).
 7046log('2020-06-03T11:16:25', 139, 83.33, '%getMetaQLQueryResults'('ecb6d2da-2c72-48b7-ad9f-666b7c086f7b', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/PublicAdministration', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8254993)).
 7047log('2020-06-03T11:16:25', 140, 83.332, javaMessageReturned).
 7048log('2020-06-03T11:16:25', 141, 83.334, '%getMetaQLQueryResults'('ecb6d2da-2c72-48b7-ad9f-666b7c086f7b', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/ReligiousServices', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8255051)).
 7049log('2020-06-03T11:16:25', 142, 83.336, javaMessageReturned).
 7050log('2020-06-03T11:16:25', 143, 83.338, '%getMetaQLQueryResults'('ecb6d2da-2c72-48b7-ad9f-666b7c086f7b', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/EnergyandMining', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8255109)).
 7051log('2020-06-03T11:16:25', 144, 83.34, javaMessageReturned).
 7052log('2020-06-03T11:16:25', 145, 83.341, '%getMetaQLQueryResults'('ecb6d2da-2c72-48b7-ad9f-666b7c086f7b', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/RetailTrade', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8255167)).
 7053log('2020-06-03T11:16:25', 146, 83.343, javaMessageReturned).
 7054log('2020-06-03T11:16:25', 147, 83.346, '%getMetaQLQueryResults'('ecb6d2da-2c72-48b7-ad9f-666b7c086f7b', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Manufacturing', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8255225)).
 7055log('2020-06-03T11:16:25', 148, 83.349, javaMessageReturned).
 7056log('2020-06-03T11:16:25', 149, 83.351, '%getMetaQLQueryResults'('ecb6d2da-2c72-48b7-ad9f-666b7c086f7b', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/TransportationandWarehousing', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8255283)).
 7057log('2020-06-03T11:16:25', 150, 83.353, javaMessageReturned).
 7058log('2020-06-03T11:16:25', 151, 83.354, '%getMetaQLQueryResults'('ecb6d2da-2c72-48b7-ad9f-666b7c086f7b', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/ProfessionalServices', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8255341)).
 7059log('2020-06-03T11:16:25', 152, 83.356, javaMessageReturned).
 7060log('2020-06-03T11:16:25', 153, 83.358, '%getMetaQLQueryResults'('ecb6d2da-2c72-48b7-ad9f-666b7c086f7b', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Technology', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8255399)).
 7061log('2020-06-03T11:16:25', 154, 83.36, javaMessageReturned).
 7062log('2020-06-03T11:16:25', 155, 83.361, '%getMetaQLQueryResults'('ecb6d2da-2c72-48b7-ad9f-666b7c086f7b', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/OtherServices', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8255457)).
 7063log('2020-06-03T11:16:25', 156, 83.364, javaMessageReturned).
 7064log('2020-06-03T11:16:25', 157, 85.766, '%getMetaQLQueryResults'('dbcf3d74-d506-4887-ad7c-5e546b547001', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/FoodServices', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8081685)).
 7065log('2020-06-03T11:16:25', 158, 85.768, javaMessageReturned).
 7066log('2020-06-03T11:16:25', 159, 85.772, '%getMetaQLQueryResults'('dbcf3d74-d506-4887-ad7c-5e546b547001', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Environmental', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8081743)).
 7067log('2020-06-03T11:16:25', 160, 85.773, javaMessageReturned).
 7068log('2020-06-03T11:16:25', 161, 85.775, '%getMetaQLQueryResults'('dbcf3d74-d506-4887-ad7c-5e546b547001', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/RealEstate', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8081801)).
 7069log('2020-06-03T11:16:25', 162, 85.777, javaMessageReturned).
 7070log('2020-06-03T11:16:25', 163, 85.779, '%getMetaQLQueryResults'('dbcf3d74-d506-4887-ad7c-5e546b547001', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Utilities', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8081859)).
 7071log('2020-06-03T11:16:25', 164, 85.781, javaMessageReturned).
 7072log('2020-06-03T11:16:25', 165, 85.784, '%getMetaQLQueryResults'('dbcf3d74-d506-4887-ad7c-5e546b547001', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/WholesaleTrade', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8081917)).
 7073log('2020-06-03T11:16:25', 166, 85.786, javaMessageReturned).
 7074log('2020-06-03T11:16:25', 167, 85.788, '%getMetaQLQueryResults'('dbcf3d74-d506-4887-ad7c-5e546b547001', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/PoliticalOrganizations', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8081975)).
 7075log('2020-06-03T11:16:25', 168, 85.79, javaMessageReturned).
 7076log('2020-06-03T11:16:25', 169, 85.791, '%getMetaQLQueryResults'('dbcf3d74-d506-4887-ad7c-5e546b547001', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Industry', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8082033)).
 7077log('2020-06-03T11:16:25', 170, 85.793, javaMessageReturned).
 7078log('2020-06-03T11:16:25', 171, 85.794, '%getMetaQLQueryResults'('dbcf3d74-d506-4887-ad7c-5e546b547001', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/FinancialServices', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8082091)).
 7079log('2020-06-03T11:16:25', 172, 85.805, javaMessageReturned).
 7080log('2020-06-03T11:16:25', 173, 85.828, framesWereParsed).
 7081log('2020-06-03T11:16:25', 174, 85.845, framesWereDeleted(14)).
 7082log('2020-06-03T11:16:25', 175, 88.951, framesWereInserted('\\true')).
 7083log('2020-06-03T11:16:25', 176, 89.051, ruleExiting).
 7084log('2020-06-03T11:16:25', 177, 90.587, '%getMetaQLQueryResults'('dbcf3d74-d506-4887-ad7c-5e546b547001', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Agriculture', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8254587)).
 7085log('2020-06-03T11:16:25', 178, 90.589, javaMessageReturned).
 7086log('2020-06-03T11:16:25', 179, 90.591, '%getMetaQLQueryResults'('dbcf3d74-d506-4887-ad7c-5e546b547001', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Construction', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8254645)).
 7087log('2020-06-03T11:16:25', 180, 90.593, javaMessageReturned).
 7088log('2020-06-03T11:16:25', 181, 90.594, '%getMetaQLQueryResults'('dbcf3d74-d506-4887-ad7c-5e546b547001', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/ArtsMediaEntertainment', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8254703)).
 7089log('2020-06-03T11:16:25', 182, 90.596, javaMessageReturned).
 7090log('2020-06-03T11:16:25', 183, 90.598, '%getMetaQLQueryResults'('dbcf3d74-d506-4887-ad7c-5e546b547001', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/SocialServices', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8254761)).
 7091log('2020-06-03T11:16:25', 184, 90.599, javaMessageReturned).
 7092log('2020-06-03T11:16:25', 185, 90.601, '%getMetaQLQueryResults'('dbcf3d74-d506-4887-ad7c-5e546b547001', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Education', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8254819)).
 7093log('2020-06-03T11:16:25', 186, 90.602, javaMessageReturned).
 7094log('2020-06-03T11:16:25', 187, 90.604, '%getMetaQLQueryResults'('dbcf3d74-d506-4887-ad7c-5e546b547001', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Health', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8254877)).
 7095log('2020-06-03T11:16:25', 188, 90.606, javaMessageReturned).
 7096log('2020-06-03T11:16:25', 189, 90.607, '%getMetaQLQueryResults'('dbcf3d74-d506-4887-ad7c-5e546b547001', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Hospitality', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8254935)).
 7097log('2020-06-03T11:16:25', 190, 90.609, javaMessageReturned).
 7098log('2020-06-03T11:16:25', 191, 90.611, '%getMetaQLQueryResults'('dbcf3d74-d506-4887-ad7c-5e546b547001', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/PublicAdministration', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8254993)).
 7099log('2020-06-03T11:16:25', 192, 90.612, javaMessageReturned).
 7100log('2020-06-03T11:16:25', 193, 90.614, '%getMetaQLQueryResults'('dbcf3d74-d506-4887-ad7c-5e546b547001', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/ReligiousServices', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8255051)).
 7101log('2020-06-03T11:16:25', 194, 90.616, javaMessageReturned).
 7102log('2020-06-03T11:16:25', 195, 90.617, '%getMetaQLQueryResults'('dbcf3d74-d506-4887-ad7c-5e546b547001', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/EnergyandMining', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8255109)).
 7103log('2020-06-03T11:16:25', 196, 90.619, javaMessageReturned).
 7104log('2020-06-03T11:16:25', 197, 90.62, '%getMetaQLQueryResults'('dbcf3d74-d506-4887-ad7c-5e546b547001', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/RetailTrade', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8255167)).
 7105log('2020-06-03T11:16:25', 198, 90.622, javaMessageReturned).
 7106log('2020-06-03T11:16:25', 199, 90.623, '%getMetaQLQueryResults'('dbcf3d74-d506-4887-ad7c-5e546b547001', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Manufacturing', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8255225)).
 7107log('2020-06-03T11:16:25', 200, 90.625, javaMessageReturned).
 7108log('2020-06-03T11:16:25', 201, 90.627, '%getMetaQLQueryResults'('dbcf3d74-d506-4887-ad7c-5e546b547001', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/TransportationandWarehousing', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8255283)).
 7109log('2020-06-03T11:16:25', 202, 90.628, javaMessageReturned).
 7110log('2020-06-03T11:16:25', 203, 90.63, '%getMetaQLQueryResults'('dbcf3d74-d506-4887-ad7c-5e546b547001', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/ProfessionalServices', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8255341)).
 7111log('2020-06-03T11:16:25', 204, 90.631, javaMessageReturned).
 7112log('2020-06-03T11:16:25', 205, 90.633, '%getMetaQLQueryResults'('dbcf3d74-d506-4887-ad7c-5e546b547001', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Technology', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8255399)).
 7113log('2020-06-03T11:16:25', 206, 90.635, javaMessageReturned).
 7114log('2020-06-03T11:16:25', 207, 90.637, '%getMetaQLQueryResults'('dbcf3d74-d506-4887-ad7c-5e546b547001', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/OtherServices', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h8255457)).
 7115log('2020-06-03T11:16:25', 208, 90.639, javaMessageReturned).
 7116log('2020-06-03T11:16:25', 209, 94.715, '%getMetaQLQueryResults'('4aad9803-3e2c-4f1a-ac18-239fbcd1c51a', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/FoodServices', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6016048)).
 7117log('2020-06-03T11:16:25', 210, 94.717, javaMessageReturned).
 7118log('2020-06-03T11:16:25', 211, 94.721, '%getMetaQLQueryResults'('4aad9803-3e2c-4f1a-ac18-239fbcd1c51a', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Environmental', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6016106)).
 7119log('2020-06-03T11:16:25', 212, 94.723, javaMessageReturned).
 7120log('2020-06-03T11:16:25', 213, 94.724, '%getMetaQLQueryResults'('4aad9803-3e2c-4f1a-ac18-239fbcd1c51a', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/RealEstate', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6016164)).
 7121log('2020-06-03T11:16:25', 214, 94.726, javaMessageReturned).
 7122log('2020-06-03T11:16:25', 215, 94.728, '%getMetaQLQueryResults'('4aad9803-3e2c-4f1a-ac18-239fbcd1c51a', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Utilities', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6016222)).
 7123log('2020-06-03T11:16:25', 216, 94.729, javaMessageReturned).
 7124log('2020-06-03T11:16:25', 217, 94.731, '%getMetaQLQueryResults'('4aad9803-3e2c-4f1a-ac18-239fbcd1c51a', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/WholesaleTrade', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6016280)).
 7125log('2020-06-03T11:16:25', 218, 94.733, javaMessageReturned).
 7126log('2020-06-03T11:16:25', 219, 94.734, '%getMetaQLQueryResults'('4aad9803-3e2c-4f1a-ac18-239fbcd1c51a', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/PoliticalOrganizations', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6016338)).
 7127log('2020-06-03T11:16:25', 220, 94.736, javaMessageReturned).
 7128log('2020-06-03T11:16:25', 221, 94.738, '%getMetaQLQueryResults'('4aad9803-3e2c-4f1a-ac18-239fbcd1c51a', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Industry', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6016396)).
 7129log('2020-06-03T11:16:25', 222, 94.74, javaMessageReturned).
 7130log('2020-06-03T11:16:25', 223, 94.742, '%getMetaQLQueryResults'('4aad9803-3e2c-4f1a-ac18-239fbcd1c51a', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/FinancialServices', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6016454)).
 7131log('2020-06-03T11:16:25', 224, 94.753, javaMessageReturned).
 7132log('2020-06-03T11:16:25', 225, 94.78, framesWereParsed).
 7133log('2020-06-03T11:16:25', 226, 95.038, framesWereDeleted(14)).
 7134log('2020-06-03T11:16:25', 227, 97.335, framesWereInserted('\\true')).
 7135log('2020-06-03T11:16:25', 228, 97.635, ruleExiting).
 7136log('2020-06-03T11:16:25', 229, 129.109, '%getMetaQLQueryResults'('4aad9803-3e2c-4f1a-ac18-239fbcd1c51a', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Agriculture', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6189066)).
 7137log('2020-06-03T11:16:25', 230, 129.111, javaMessageReturned).
 7138log('2020-06-03T11:16:25', 231, 129.114, '%getMetaQLQueryResults'('4aad9803-3e2c-4f1a-ac18-239fbcd1c51a', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Construction', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6189124)).
 7139log('2020-06-03T11:16:25', 232, 129.116, javaMessageReturned).
 7140log('2020-06-03T11:16:25', 233, 129.118, '%getMetaQLQueryResults'('4aad9803-3e2c-4f1a-ac18-239fbcd1c51a', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/ArtsMediaEntertainment', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6189182)).
 7141log('2020-06-03T11:16:25', 234, 129.12, javaMessageReturned).
 7142log('2020-06-03T11:16:25', 235, 129.122, '%getMetaQLQueryResults'('4aad9803-3e2c-4f1a-ac18-239fbcd1c51a', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/SocialServices', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6189240)).
 7143log('2020-06-03T11:16:25', 236, 129.124, javaMessageReturned).
 7144log('2020-06-03T11:16:25', 237, 129.126, '%getMetaQLQueryResults'('4aad9803-3e2c-4f1a-ac18-239fbcd1c51a', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Education', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6189298)).
 7145log('2020-06-03T11:16:25', 238, 129.128, javaMessageReturned).
 7146log('2020-06-03T11:16:25', 239, 129.13, '%getMetaQLQueryResults'('4aad9803-3e2c-4f1a-ac18-239fbcd1c51a', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Health', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6189356)).
 7147log('2020-06-03T11:16:25', 240, 129.132, javaMessageReturned).
 7148log('2020-06-03T11:16:25', 241, 129.134, '%getMetaQLQueryResults'('4aad9803-3e2c-4f1a-ac18-239fbcd1c51a', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Hospitality', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6189414)).
 7149log('2020-06-03T11:16:25', 242, 129.136, javaMessageReturned).
 7150log('2020-06-03T11:16:25', 243, 129.138, '%getMetaQLQueryResults'('4aad9803-3e2c-4f1a-ac18-239fbcd1c51a', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/PublicAdministration', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6189472)).
 7151log('2020-06-03T11:16:25', 244, 129.14, javaMessageReturned).
 7152log('2020-06-03T11:16:25', 245, 129.142, '%getMetaQLQueryResults'('4aad9803-3e2c-4f1a-ac18-239fbcd1c51a', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/ReligiousServices', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6189530)).
 7153log('2020-06-03T11:16:25', 246, 129.144, javaMessageReturned).
 7154log('2020-06-03T11:16:25', 247, 129.146, '%getMetaQLQueryResults'('4aad9803-3e2c-4f1a-ac18-239fbcd1c51a', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/EnergyandMining', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6189588)).
 7155log('2020-06-03T11:16:25', 248, 129.148, javaMessageReturned).
 7156log('2020-06-03T11:16:25', 249, 129.15, '%getMetaQLQueryResults'('4aad9803-3e2c-4f1a-ac18-239fbcd1c51a', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/RetailTrade', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6189646)).
 7157log('2020-06-03T11:16:25', 250, 129.152, javaMessageReturned).
 7158log('2020-06-03T11:16:25', 251, 129.154, '%getMetaQLQueryResults'('4aad9803-3e2c-4f1a-ac18-239fbcd1c51a', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Manufacturing', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6189704)).
 7159log('2020-06-03T11:16:25', 252, 129.156, javaMessageReturned).
 7160log('2020-06-03T11:16:25', 253, 129.158, '%getMetaQLQueryResults'('4aad9803-3e2c-4f1a-ac18-239fbcd1c51a', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/TransportationandWarehousing', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6189762)).
 7161log('2020-06-03T11:16:25', 254, 129.16, javaMessageReturned).
 7162log('2020-06-03T11:16:25', 255, 129.163, '%getMetaQLQueryResults'('4aad9803-3e2c-4f1a-ac18-239fbcd1c51a', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/ProfessionalServices', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6189820)).
 7163log('2020-06-03T11:16:25', 256, 129.165, javaMessageReturned).
 7164log('2020-06-03T11:16:25', 257, 129.166, '%getMetaQLQueryResults'('4aad9803-3e2c-4f1a-ac18-239fbcd1c51a', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Technology', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6189878)).
 7165log('2020-06-03T11:16:25', 258, 129.169, javaMessageReturned).
 7166log('2020-06-03T11:16:25', 259, 129.17, '%getMetaQLQueryResults'('4aad9803-3e2c-4f1a-ac18-239fbcd1c51a', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/OtherServices', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6189936)).
 7167log('2020-06-03T11:16:25', 260, 129.173, javaMessageReturned).
 7168log('2020-06-03T11:16:25', 261, 134.322, '%getMetaQLQueryResults'('388113aa-50f3-4d1a-9852-87d67dcd2743', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/FoodServices', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6016048)).
 7169log('2020-06-03T11:16:25', 262, 134.324, javaMessageReturned).
 7170log('2020-06-03T11:16:25', 263, 134.328, '%getMetaQLQueryResults'('388113aa-50f3-4d1a-9852-87d67dcd2743', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Environmental', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6016106)).
 7171log('2020-06-03T11:16:25', 264, 134.33, javaMessageReturned).
 7172log('2020-06-03T11:16:25', 265, 134.332, '%getMetaQLQueryResults'('388113aa-50f3-4d1a-9852-87d67dcd2743', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/RealEstate', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6016164)).
 7173log('2020-06-03T11:16:25', 266, 134.334, javaMessageReturned).
 7174log('2020-06-03T11:16:25', 267, 134.335, '%getMetaQLQueryResults'('388113aa-50f3-4d1a-9852-87d67dcd2743', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Utilities', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6016222)).
 7175log('2020-06-03T11:16:25', 268, 134.337, javaMessageReturned).
 7176log('2020-06-03T11:16:25', 269, 134.338, '%getMetaQLQueryResults'('388113aa-50f3-4d1a-9852-87d67dcd2743', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/WholesaleTrade', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6016280)).
 7177log('2020-06-03T11:16:25', 270, 134.34, javaMessageReturned).
 7178log('2020-06-03T11:16:25', 271, 134.343, '%getMetaQLQueryResults'('388113aa-50f3-4d1a-9852-87d67dcd2743', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/PoliticalOrganizations', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6016338)).
 7179log('2020-06-03T11:16:25', 272, 134.345, javaMessageReturned).
 7180log('2020-06-03T11:16:25', 273, 134.347, '%getMetaQLQueryResults'('388113aa-50f3-4d1a-9852-87d67dcd2743', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Industry', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6016396)).
 7181log('2020-06-03T11:16:25', 274, 134.35, javaMessageReturned).
 7182log('2020-06-03T11:16:25', 275, 134.352, '%getMetaQLQueryResults'('388113aa-50f3-4d1a-9852-87d67dcd2743', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/FinancialServices', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6016454)).
 7183log('2020-06-03T11:16:25', 276, 134.363, javaMessageReturned).
 7184log('2020-06-03T11:16:25', 277, 134.39, framesWereParsed).
 7185log('2020-06-03T11:16:25', 278, 134.653, framesWereDeleted(14)).
 7186log('2020-06-03T11:16:25', 279, 137.358, framesWereInserted('\\true')).
 7187log('2020-06-03T11:16:25', 280, 137.719, ruleExiting).
 7188log('2020-06-03T11:16:25', 281, 165.209, '%getMetaQLQueryResults'('388113aa-50f3-4d1a-9852-87d67dcd2743', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Agriculture', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6189066)).
 7189log('2020-06-03T11:16:25', 282, 165.211, javaMessageReturned).
 7190log('2020-06-03T11:16:25', 283, 165.213, '%getMetaQLQueryResults'('388113aa-50f3-4d1a-9852-87d67dcd2743', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Construction', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6189124)).
 7191log('2020-06-03T11:16:25', 284, 165.215, javaMessageReturned).
 7192log('2020-06-03T11:16:25', 285, 165.217, '%getMetaQLQueryResults'('388113aa-50f3-4d1a-9852-87d67dcd2743', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/ArtsMediaEntertainment', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6189182)).
 7193log('2020-06-03T11:16:25', 286, 165.218, javaMessageReturned).
 7194log('2020-06-03T11:16:25', 287, 165.22, '%getMetaQLQueryResults'('388113aa-50f3-4d1a-9852-87d67dcd2743', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/SocialServices', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6189240)).
 7195log('2020-06-03T11:16:25', 288, 165.222, javaMessageReturned).
 7196log('2020-06-03T11:16:25', 289, 165.223, '%getMetaQLQueryResults'('388113aa-50f3-4d1a-9852-87d67dcd2743', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Education', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6189298)).
 7197log('2020-06-03T11:16:25', 290, 165.226, javaMessageReturned).
 7198log('2020-06-03T11:16:25', 291, 165.227, '%getMetaQLQueryResults'('388113aa-50f3-4d1a-9852-87d67dcd2743', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Health', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6189356)).
 7199log('2020-06-03T11:16:25', 292, 165.23, javaMessageReturned).
 7200log('2020-06-03T11:16:25', 293, 165.231, '%getMetaQLQueryResults'('388113aa-50f3-4d1a-9852-87d67dcd2743', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Hospitality', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6189414)).
 7201log('2020-06-03T11:16:25', 294, 165.233, javaMessageReturned).
 7202log('2020-06-03T11:16:25', 295, 165.235, '%getMetaQLQueryResults'('388113aa-50f3-4d1a-9852-87d67dcd2743', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/PublicAdministration', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6189472)).
 7203log('2020-06-03T11:16:25', 296, 165.237, javaMessageReturned).
 7204log('2020-06-03T11:16:25', 297, 165.238, '%getMetaQLQueryResults'('388113aa-50f3-4d1a-9852-87d67dcd2743', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/ReligiousServices', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6189530)).
 7205log('2020-06-03T11:16:25', 298, 165.24, javaMessageReturned).
 7206log('2020-06-03T11:16:25', 299, 165.242, '%getMetaQLQueryResults'('388113aa-50f3-4d1a-9852-87d67dcd2743', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/EnergyandMining', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6189588)).
 7207log('2020-06-03T11:16:25', 300, 165.244, javaMessageReturned).
 7208log('2020-06-03T11:16:25', 301, 165.247, '%getMetaQLQueryResults'('388113aa-50f3-4d1a-9852-87d67dcd2743', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/RetailTrade', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6189646)).
 7209log('2020-06-03T11:16:25', 302, 165.249, javaMessageReturned).
 7210log('2020-06-03T11:16:25', 303, 165.251, '%getMetaQLQueryResults'('388113aa-50f3-4d1a-9852-87d67dcd2743', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Manufacturing', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6189704)).
 7211log('2020-06-03T11:16:25', 304, 165.253, javaMessageReturned).
 7212log('2020-06-03T11:16:25', 305, 165.255, '%getMetaQLQueryResults'('388113aa-50f3-4d1a-9852-87d67dcd2743', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/TransportationandWarehousing', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6189762)).
 7213log('2020-06-03T11:16:25', 306, 165.257, javaMessageReturned).
 7214log('2020-06-03T11:16:25', 307, 165.26, '%getMetaQLQueryResults'('388113aa-50f3-4d1a-9852-87d67dcd2743', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/ProfessionalServices', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6189820)).
 7215log('2020-06-03T11:16:25', 308, 165.262, javaMessageReturned).
 7216log('2020-06-03T11:16:25', 309, 165.264, '%getMetaQLQueryResults'('388113aa-50f3-4d1a-9852-87d67dcd2743', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Technology', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6189878)).
 7217log('2020-06-03T11:16:25', 310, 165.266, javaMessageReturned).
 7218log('2020-06-03T11:16:25', 311, 165.268, '%getMetaQLQueryResults'('388113aa-50f3-4d1a-9852-87d67dcd2743', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/OtherServices', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6189936)).
 7219log('2020-06-03T11:16:25', 312, 165.271, javaMessageReturned).
 7220log('2020-06-03T11:16:25', 313, 170.984, '%getMetaQLQueryResults'('c591c090-9bbc-47cd-afa5-f3ea3625309c', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/FoodServices', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6016048)).
 7221log('2020-06-03T11:16:25', 314, 170.986, javaMessageReturned).
 7222log('2020-06-03T11:16:25', 315, 170.99, '%getMetaQLQueryResults'('c591c090-9bbc-47cd-afa5-f3ea3625309c', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Environmental', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6016106)).
 7223log('2020-06-03T11:16:25', 316, 170.992, javaMessageReturned).
 7224log('2020-06-03T11:16:25', 317, 170.994, '%getMetaQLQueryResults'('c591c090-9bbc-47cd-afa5-f3ea3625309c', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/RealEstate', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6016164)).
 7225log('2020-06-03T11:16:25', 318, 170.996, javaMessageReturned).
 7226log('2020-06-03T11:16:25', 319, 170.999, '%getMetaQLQueryResults'('c591c090-9bbc-47cd-afa5-f3ea3625309c', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Utilities', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6016222)).
 7227log('2020-06-03T11:16:25', 320, 171.002, javaMessageReturned).
 7228log('2020-06-03T11:16:25', 321, 171.004, '%getMetaQLQueryResults'('c591c090-9bbc-47cd-afa5-f3ea3625309c', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/WholesaleTrade', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6016280)).
 7229log('2020-06-03T11:16:25', 322, 171.006, javaMessageReturned).
 7230log('2020-06-03T11:16:25', 323, 171.008, '%getMetaQLQueryResults'('c591c090-9bbc-47cd-afa5-f3ea3625309c', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/PoliticalOrganizations', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6016338)).
 7231log('2020-06-03T11:16:25', 324, 171.01, javaMessageReturned).
 7232log('2020-06-03T11:16:25', 325, 171.012, '%getMetaQLQueryResults'('c591c090-9bbc-47cd-afa5-f3ea3625309c', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Industry', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6016396)).
 7233log('2020-06-03T11:16:25', 326, 171.014, javaMessageReturned).
 7234log('2020-06-03T11:16:25', 327, 171.016, '%getMetaQLQueryResults'('c591c090-9bbc-47cd-afa5-f3ea3625309c', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/FinancialServices', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6016454)).
 7235log('2020-06-03T11:16:25', 328, 171.028, javaMessageReturned).
 7236log('2020-06-03T11:16:25', 329, 171.054, framesWereParsed).
 7237log('2020-06-03T11:16:25', 330, 171.314, framesWereDeleted(14)).
 7238log('2020-06-03T11:16:25', 331, 174.258, framesWereInserted('\\true')).
 7239log('2020-06-03T11:16:25', 332, 174.621, ruleExiting).
 7240log('2020-06-03T11:16:25', 333, 203.682, '%getMetaQLQueryResults'('c591c090-9bbc-47cd-afa5-f3ea3625309c', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Agriculture', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6189066)).
 7241log('2020-06-03T11:16:25', 334, 203.684, javaMessageReturned).
 7242log('2020-06-03T11:16:25', 335, 203.686, '%getMetaQLQueryResults'('c591c090-9bbc-47cd-afa5-f3ea3625309c', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Construction', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6189124)).
 7243log('2020-06-03T11:16:25', 336, 203.688, javaMessageReturned).
 7244log('2020-06-03T11:16:25', 337, 203.689, '%getMetaQLQueryResults'('c591c090-9bbc-47cd-afa5-f3ea3625309c', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/ArtsMediaEntertainment', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6189182)).
 7245log('2020-06-03T11:16:25', 338, 203.691, javaMessageReturned).
 7246log('2020-06-03T11:16:25', 339, 203.694, '%getMetaQLQueryResults'('c591c090-9bbc-47cd-afa5-f3ea3625309c', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/SocialServices', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6189240)).
 7247log('2020-06-03T11:16:25', 340, 203.696, javaMessageReturned).
 7248log('2020-06-03T11:16:25', 341, 203.697, '%getMetaQLQueryResults'('c591c090-9bbc-47cd-afa5-f3ea3625309c', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Education', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6189298)).
 7249log('2020-06-03T11:16:25', 342, 203.699, javaMessageReturned).
 7250log('2020-06-03T11:16:25', 343, 203.701, '%getMetaQLQueryResults'('c591c090-9bbc-47cd-afa5-f3ea3625309c', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Health', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6189356)).
 7251log('2020-06-03T11:16:25', 344, 203.703, javaMessageReturned).
 7252log('2020-06-03T11:16:25', 345, 203.704, '%getMetaQLQueryResults'('c591c090-9bbc-47cd-afa5-f3ea3625309c', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Hospitality', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6189414)).
 7253log('2020-06-03T11:16:25', 346, 203.706, javaMessageReturned).
 7254log('2020-06-03T11:16:25', 347, 203.708, '%getMetaQLQueryResults'('c591c090-9bbc-47cd-afa5-f3ea3625309c', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/PublicAdministration', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6189472)).
 7255log('2020-06-03T11:16:25', 348, 203.71, javaMessageReturned).
 7256log('2020-06-03T11:16:25', 349, 203.712, '%getMetaQLQueryResults'('c591c090-9bbc-47cd-afa5-f3ea3625309c', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/ReligiousServices', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6189530)).
 7257log('2020-06-03T11:16:25', 350, 203.713, javaMessageReturned).
 7258log('2020-06-03T11:16:25', 351, 203.715, '%getMetaQLQueryResults'('c591c090-9bbc-47cd-afa5-f3ea3625309c', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/EnergyandMining', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6189588)).
 7259log('2020-06-03T11:16:25', 352, 203.717, javaMessageReturned).
 7260log('2020-06-03T11:16:25', 353, 203.719, '%getMetaQLQueryResults'('c591c090-9bbc-47cd-afa5-f3ea3625309c', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/RetailTrade', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6189646)).
 7261log('2020-06-03T11:16:25', 354, 203.721, javaMessageReturned).
 7262log('2020-06-03T11:16:25', 355, 203.723, '%getMetaQLQueryResults'('c591c090-9bbc-47cd-afa5-f3ea3625309c', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Manufacturing', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6189704)).
 7263log('2020-06-03T11:16:25', 356, 203.725, javaMessageReturned).
 7264log('2020-06-03T11:16:25', 357, 203.726, '%getMetaQLQueryResults'('c591c090-9bbc-47cd-afa5-f3ea3625309c', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/TransportationandWarehousing', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6189762)).
 7265log('2020-06-03T11:16:25', 358, 203.729, javaMessageReturned).
 7266log('2020-06-03T11:16:25', 359, 203.73, '%getMetaQLQueryResults'('c591c090-9bbc-47cd-afa5-f3ea3625309c', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/ProfessionalServices', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6189820)).
 7267log('2020-06-03T11:16:25', 360, 203.732, javaMessageReturned).
 7268log('2020-06-03T11:16:25', 361, 203.735, '%getMetaQLQueryResults'('c591c090-9bbc-47cd-afa5-f3ea3625309c', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/Technology', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6189878)).
 7269log('2020-06-03T11:16:25', 362, 203.737, javaMessageReturned).
 7270log('2020-06-03T11:16:25', 363, 203.739, '%getMetaQLQueryResults'('c591c090-9bbc-47cd-afa5-f3ea3625309c', application_mod, 'ai.haley.mind.inference.HaleyMindInferenceCallback', harborappetitegraphquery, [segments/['harbor-directory-data'], 'InsuranceProvider'/'http://vital.ai/haley.ai/harbor-directory/HarborInsuranceProvider/insuranceprovider-100212', 'BusinessCategory'/'http://vital.ai/harbor-ai/HarborBusinessCategory/OtherServices', 'ProductCategory'/'http://vital.ai/harbor-ai/HarborProductCategory/BusinessOwnerPolicy', 'USState'/'http://vital.ai/ontology/harbor-ai#US_State_NewYork'], _h6189936)).
 7271log('2020-06-03T11:16:25', 364, 203.741, javaMessageReturned).
 7272
 7273:- dynamic actions/1. 7274:- multifile actions/1. 7275
 7276
 7277printTimes :-
 7278    format("Session\tQueryName\tUpdating\tJavaCall\tParsing\tDeletion\tInsertion~n"),
 7279    callbackTimes(Session,
 7280                  QueryName,
 7281                  Updating,
 7282                  JavaCall,
 7283                  Parsing,
 7284                  Deletion,
 7285                  Insertion),
 7286    format("~w\t~w\t~w\t~w\t~w\t~w\t~w~n",
 7287           [ Session,
 7288             QueryName,
 7289             Updating,
 7290             JavaCall,
 7291             Parsing,
 7292             Deletion,
 7293             Insertion
 7294           ]),
 7295    fail.
 7296printTimes.
 7297% dB(/.../(lps_user_examples, 'myLogGroker.pl'), lps_visualization(_47412{groups:[], items:[]}, [])).
 7298% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'need insulin.pl')).
 7299% run_lps_corner_file1(/.../(lps_user_examples, 'need insulin.pl')).
 7300% /pack/logicmoo_ec/test/lps_user_examples/need insulin.pl:1
 7301% push_lps_dialect.
 7302% ops.
 7303% [ti=user, load= /.../(lps_user_examples, 'need insulin.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'need insulin.pl'), lps= /.../(lps_user_examples, 'need insulin.pl'), using= /.../(lps_user_examples, 'need insulin.pl')].
 7304% continue_lps_dialect.
 7305% ops.
 7306
 7307% LPS:  fluents((has/2,need/2,diabetic/1,paid/3)).
 7308% Into: fluents([has(_19900,_19902),need(_19912,_19914),diabetic(_19924),paid(_19934,_19936,_19938)]).
 7309
 7310% LPS:  events((highBloodSugar/1,obtain/2)).
 7311% Into: events([highBloodSugar(_20976),obtain(_20986,_20988)]).
 7312
 7313% LPS:  actions((takeFrom/3,use/2,pay/3)).
 7314% Into: actions([takeFrom(_22286,_22288,_22290),use(_22300,_22302),pay(_22312,_22314,_22316)]).
 7315
 7316% LPS:  initially((has(dave,insulin),has(carla,insulin),diabetic(dave))).
 7317% Into: initial_state([has(dave,insulin),has(carla,insulin),diabetic(dave)]).
 7318
 7319% LPS:  observe(from(highBloodSugar(bob),to(1,2))).
 7320% Into: observe([highBloodSugar(bob)],2).
 7321
 7322% LPS:  if(updates(takeFrom(_24670,_24672,_24674),in(to(_24672,_24670),has(_24672,_24674))),has(_24672,_24674)).
 7323% Into: updated(happens(takeFrom(_24670,_24672,_24674),_26152,_26158),has(_24672,_24674),_24672-_24670,[holds(has(_24672,_24674),_26152)]).
 7324
 7325% LPS:  initiates(pay(_26426,_26428,_26430),paid(_26426,_26428,_26430)).
 7326% Into: initiated(happens(pay(_26426,_26428,_26430),_27658,_27664),paid(_26426,_26428,_26430),[]).
 7327
 7328% LPS:  then(if(highBloodSugar(_27630)),(obtain(_27630,insulin),use(_27630,insulin))).
 7329% Into: reactive_rule([happens(highBloodSugar(_27630),_28856,_28862)],[happens(obtain(_27630,insulin),_28888,_28930),happens(use(_27630,insulin),_28930,_28894)]).
 7330
 7331% LPS:  if(from(obtain(_29226,_29228),to(_29264,_29264)),at(has(_29226,_29228),_29264)).
 7332% Into: l_events(happens(obtain(_29226,_29228),_29264,_29264),[holds(has(_29226,_29228),_29264)]).
 7333
 7334% LPS:  if(from(obtain(_30826,_30828),to(_30864,_30866)),(at(has(_30978,_30828),_30864),from(takeFrom(_30826,_30978,_30828),to(_30864,_30866)))).
 7335% Into: l_events(happens(obtain(_30826,_30828),_30864,_30866),[holds(has(_30978,_30828),_30864),happens(takeFrom(_30826,_30978,_30828),_30864,_30866)]).
 7336
 7337% LPS:  false((takeFrom(_32556,_32558,_32560),has(_32556,_32560))).
 7338% Into: d_pre([happens(takeFrom(_32556,_32558,_32560),_33698,_33704),holds(has(_32556,_32560),_33698)]).
 7339
 7340% LPS:  false((takeFrom(_33754,_33756,_33758),takeFrom(_33754,_33828,_33758),_33756\=_33828)).
 7341% Into: d_pre([happens(takeFrom(_33754,_33756,_33758),_35034,_35040),happens(takeFrom(_33754,_33828,_33758),_35034,_35040),_33756\=_33828]).
 7342% /pack/logicmoo_ec/test/lps_user_examples/need insulin.pl:64
 7343% pop_lps_dialect('$BLOB'("<stream>(0x562ef8559400)"),  (/.../(lps_user_examples, 'need insulin.pl')-> /.../(lps_user_examples, 'need insulin.pl'))).
 7344% ops.
 7345% :-listing('/pack/logicmoo_ec/test/lps_user_examples/need insulin.pl':_42984).
 7346
 7347
 7348initiated(happens(pay(A, B, C), _, _), paid(A, B, C), []).
 7349
 7350d_pre([happens(takeFrom(A, _, B), C, _), holds(has(A, B), C)]).
 7351d_pre([happens(takeFrom(A, B, C), D, E), happens(takeFrom(A, F, C), D, E), B\=F]).
 7352
 7353fluents([has(_, _), need(_, _), diabetic(_), paid(_, _, _)]).
 7354
 7355reactive_rule([happens(highBloodSugar(A), _, _)], [happens(obtain(A, insulin), _, B), happens(use(A, insulin), B, _)]).
 7356
 7357initial_state([has(dave, insulin), has(carla, insulin), diabetic(dave)]).
 7358
 7359l_events(happens(obtain(A, B), C, C), [holds(has(A, B), C)]).
 7360l_events(happens(obtain(A, B), C, D), [holds(has(E, B), C), happens(takeFrom(A, E, B), C, D)]).
 7361
 7362:- dynamic actions/1. 7363:- multifile actions/1. 7364
 7365actions([takeFrom(_, _, _), use(_, _), pay(_, _, _)]).
 7366
 7367events([highBloodSugar(_), obtain(_, _)]).
 7368
 7369observe([highBloodSugar(bob)], 2).
 7370
 7371updated(happens(takeFrom(A, B, C), D, _), has(B, C), B-A, [holds(has(B, C), D)]).
 7372% dB(/.../(lps_user_examples, 'need insulin.pl'), lps_visualization(_68078{groups:[_66950{content:"Events", id:"event", order:1}, _67024{content:"diabetic(A)", id:"diabetic/1", order:3, subgroupStack:"false"}, _67102{content:"has(A,B)", id:"has/2", order:3, subgroupStack:"false"}, _67168{content:"Actions", id:"action", order:4}], items:[_67290{content:"dave", end:21, group:"diabetic/1", id:0, start:1, subgroup:"dave", title:"Fluent diabetic(dave) initiated at 1<br/>and terminated at transition to 21"}, _67416{content:"bob,insulin", end:21, group:"has/2", id:1, start:3, subgroup:"bob", title:"Fluent has(bob,insulin) initiated at 3<br/>and terminated at transition to 21"}, _67542{content:"carla,insulin", end:21, group:"has/2", id:2, start:1, subgroup:"carla", title:"Fluent has(carla,insulin) initiated at 1<br/>and terminated at transition to 21"}, _67668{content:"dave,insulin", end:3, group:"has/2", id:3, start:1, subgroup:"dave", title:"Fluent has(dave,insulin) initiated at 1<br/>and terminated at transition to 3"}, _67794{content:"highBloodSugar(bob)", group:"event", id:4, start:2, style:"color:#E19735", title:"happens(highBloodSugar(bob),1,2)", type:"point"}, _67920{content:"takeFrom(bob,dave,insulin)", group:"action", id:5, start:3, style:"color:green", title:"happens(takeFrom(bob,dave,insulin),2,3)", type:"point"}, _68046{content:"use(bob,insulin)", group:"action", id:6, start:4, style:"color:green", title:"happens(use(bob,insulin),3,4)", type:"point"}]}, [])).
 7373% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'new ballot.pl')).
 7374% run_lps_corner_file1(/.../(lps_user_examples, 'new ballot.pl')).
 7375% /pack/logicmoo_ec/test/lps_user_examples/new ballot.pl:1
 7376% push_lps_dialect.
 7377% ops.
 7378% [ti=user, load= /.../(lps_user_examples, 'new ballot.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'new ballot.pl'), lps= /.../(lps_user_examples, 'new ballot.pl'), using= /.../(lps_user_examples, 'new ballot.pl')].
 7379% continue_lps_dialect.
 7380% ops.
 7381
 7382% LPS:  events((delegate(_55678,_55680),vote(_55734,_55736))).
 7383% Into: events([delegate(_55678,_55680),vote(_55734,_55736)]).
 7384
 7385% LPS:  fluents((voter(_56904,_56906),voted(_56904,_56962),delegateOf(_56904,_57018),voteCount(_56962,_57074))).
 7386% Into: fluents([voter(_56904,_56906),voted(_56904,_56962),delegateOf(_56904,_57018),voteCount(_56962,_57074)]).
 7387
 7388% LPS:  initially((voter(bob,1),voter(fariba,1),voter(jacinto,1),voter(miguel,1))).
 7389% Into: initial_state([voter(bob,1),voter(fariba,1),voter(jacinto,1),voter(miguel,1)]).
 7390
 7391% LPS:  initially((voteCount(trump,0),voteCount(clinton,0))).
 7392% Into: initial_state([voteCount(trump,0),voteCount(clinton,0)]).
 7393
 7394% LPS:  observe(from(delegate(bob,miguel),to(4,5))).
 7395% Into: observe([delegate(bob,miguel)],5).
 7396
 7397% LPS:  observe(from(vote(miguel,clinton),to(5,6))).
 7398% Into: observe([vote(miguel,clinton)],6).
 7399
 7400% LPS:  observe(from(vote(jacinto,clinton),to(5,6))).
 7401% Into: observe([vote(jacinto,clinton)],6).
 7402
 7403% LPS:  observe(from(delegate(fariba,miguel),to(4,5))).
 7404% Into: observe([delegate(fariba,miguel)],5).
 7405
 7406% LPS:  updates(delegate(_65564,_65566),in(to(_65602,0),voter(_65564,_65602))).
 7407% Into: updated(happens(delegate(_65564,_65566),_66914,_66920),voter(_65564,_65602),_65602-0,[]).
 7408
 7409% LPS:  if(updates(delegate(_66816,_66818),in(to(_66854,_66856),voter(_66936,_66854))),(delegateOf(_66818,_66936),voter(_66816,_67114),_66856 is _67114+_66854)).
 7410% Into: updated(happens(delegate(_66816,_66818),_68582,_68588),voter(_66936,_66854),_66854-_66856,[holds(delegateOf(_66818,_66936),_68582),holds(voter(_66816,_67114),_68582),_66856 is _67114+_66854]).
 7411
 7412% LPS:  if(updates(delegate(_69436,_69438),in(to(_69474,_69476),voteCount(_69556,_69474))),(delegateOf(_69438,_69678),voted(_69678,_69556),voter(_69436,_69790),_69476 is _69474+_69790)).
 7413% Into: updated(happens(delegate(_69436,_69438),_71314,_71320),voteCount(_69556,_69474),_69474-_69476,[holds(delegateOf(_69438,_69678),_71314),holds(voted(_69678,_69556),_71314),holds(voter(_69436,_69790),_71314),_69476 is _69474+_69790]).
 7414
 7415% LPS:  initiates(delegate(_72322,_72324),voted(_72322,delegated(_72324))).
 7416% Into: initiated(happens(delegate(_72322,_72324),_73536,_73542),voted(_72322,delegated(_72324)),[]).
 7417
 7418% LPS:  if(delegateOf(_73554,_73556),(voted(_73554,delegated(_73630)),delegateOf(_73630,_73556))).
 7419% Into: l_int(holds(delegateOf(_73554,_73556),_74794),[holds(voted(_73554,delegated(_73630)),_74794),holds(delegateOf(_73630,_73556),_74794)]).
 7420
 7421% LPS:  if(delegateOf(_75406,_75406),not(voted(_75406,delegated(_75490)))).
 7422% Into: l_int(holds(delegateOf(_75406,_75406),_76558),[holds(not(voted(_75406,delegated(_75490))),_76558)]).
 7423
 7424% LPS:  false((delegate(_76972,_76974),voted(_76972,_77030))).
 7425% Into: d_pre([happens(delegate(_76972,_76974),_78086,_78092),holds(voted(_76972,_77030),_78086)]).
 7426
 7427% LPS:  false((delegate(_19250,_19252),_19250==_19252)).
 7428% Into: d_pre([happens(delegate(_19250,_19252),_19592,_19598),_19250==_19252]).
 7429
 7430% LPS:  false((delegate(_19900,_19902),delegate(_19900,_19958),_19902\=_19958)).
 7431% Into: d_pre([happens(delegate(_19900,_19902),_21146,_21152),happens(delegate(_19900,_19958),_21146,_21152),_19902\=_19958]).
 7432
 7433% LPS:  false((delegate(_21554,_21556),delegateOf(_21556,_21554))).
 7434% Into: d_pre([happens(delegate(_21554,_21556),_22680,_22686),holds(delegateOf(_21556,_21554),_22680)]).
 7435
 7436% LPS:  initiates(vote(_22980,_22982),voted(_22980,_22982)).
 7437% Into: initiated(happens(vote(_22980,_22982),_24166,_24172),voted(_22980,_22982),[]).
 7438
 7439% LPS:  if(updates(vote(_24112,_24114),in(to(_24150,_24152),voteCount(_24114,_24150))),(voter(_24112,_24354),_24152 is _24150+_24354)).
 7440% Into: updated(happens(vote(_24112,_24114),_25766,_25772),voteCount(_24114,_24150),_24150-_24152,[holds(voter(_24112,_24354),_25766),_24152 is _24150+_24354]).
 7441
 7442% LPS:  false((vote(_26238,_26240),voted(_26238,_26296))).
 7443% Into: d_pre([happens(vote(_26238,_26240),_27352,_27358),holds(voted(_26238,_26296),_27352)]).
 7444
 7445% LPS:  false((vote(_27660,_27662),vote(_27660,_27718),_27662\=_27718)).
 7446% Into: d_pre([happens(vote(_27660,_27662),_28906,_28912),happens(vote(_27660,_27718),_28906,_28912),_27662\=_27718]).
 7447% /pack/logicmoo_ec/test/lps_user_examples/new ballot.pl:74
 7448% pop_lps_dialect('$BLOB'("<stream>(0x562ef86f0b00)"),  (/.../(lps_user_examples, 'new ballot.pl')-> /.../(lps_user_examples, 'new ballot.pl'))).
 7449% ops.
 7450% :-listing('/pack/logicmoo_ec/test/lps_user_examples/new ballot.pl':_36974).
 7451
 7452
 7453initiated(happens(delegate(A, B), _, _), voted(A, delegated(B)), []).
 7454initiated(happens(vote(A, B), _, _), voted(A, B), []).
 7455
 7456d_pre([happens(delegate(A, _), B, _), holds(voted(A, _), B)]).
 7457d_pre([happens(delegate(A, B), _, _), A==B]).
 7458d_pre([happens(delegate(A, B), C, D), happens(delegate(A, E), C, D), B\=E]).
 7459d_pre([happens(delegate(A, B), C, _), holds(delegateOf(B, A), C)]).
 7460d_pre([happens(vote(A, _), B, _), holds(voted(A, _), B)]).
 7461d_pre([happens(vote(A, B), C, D), happens(vote(A, E), C, D), B\=E]).
 7462
 7463fluents([voter(A, _), voted(A, B), delegateOf(A, _), voteCount(B, _)]).
 7464
 7465l_int(holds(delegateOf(A, B), C), [holds(voted(A, delegated(D)), C), holds(delegateOf(D, B), C)]).
 7466l_int(holds(delegateOf(A, A), B), [holds(not(voted(A, delegated(_))), B)]).
 7467
 7468initial_state([voter(bob, 1), voter(fariba, 1), voter(jacinto, 1), voter(miguel, 1)]).
 7469initial_state([voteCount(trump, 0), voteCount(clinton, 0)]).
 7470
 7471:- dynamic actions/1. 7472:- multifile actions/1. 7473
 7474
 7475events([delegate(_, _), vote(_, _)]).
 7476
 7477observe([delegate(bob, miguel)], 5).
 7478observe([vote(miguel, clinton)], 6).
 7479observe([vote(jacinto, clinton)], 6).
 7480observe([delegate(fariba, miguel)], 5).
 7481
 7482maxTime(15).
 7483
 7484updated(happens(delegate(A, _), _, _), voter(A, B), B-0, []).
 7485updated(happens(delegate(A, B), C, _), voter(D, E), E-F, [holds(delegateOf(B, D), C), holds(voter(A, G), C), F is G+E]).
 7486updated(happens(delegate(A, B), C, _), voteCount(D, E), E-F, [holds(delegateOf(B, G), C), holds(voted(G, D), C), holds(voter(A, H), C), F is E+H]).
 7487updated(happens(vote(A, B), C, _), voteCount(B, D), D-E, [holds(voter(A, F), C), E is D+F]).
 7488Warning: Rejected observations [delegate(bob,miguel),delegate(fariba,miguel)] attempting to satisfy false preconditions [happens(delegate(bob,miguel),4,5),happens(delegate(fariba,miguel),4,5),bob\=fariba]
 7489Warning: Rejected observations [vote(miguel,clinton),vote(jacinto,clinton)] attempting to satisfy false preconditions [happens(vote(miguel,clinton),5,6),happens(vote(jacinto,clinton),5,6),miguel\=jacinto]
 7490% dB(/.../(lps_user_examples, 'new ballot.pl'), lps_visualization(_81092{groups:[_80226{content:"voteCount(A,B)", id:"voteCount/2", order:3, subgroupStack:"false"}, _80304{content:"voter(A,B)", id:"voter/2", order:3, subgroupStack:"false"}], items:[_80430{content:"clinton,0", end:16, group:"voteCount/2", id:0, start:1, subgroup:"clinton", title:"Fluent voteCount(clinton,0) initiated at 1<br/>and terminated at transition to 16"}, _80556{content:"trump,0", end:16, group:"voteCount/2", id:1, start:1, subgroup:"trump", title:"Fluent voteCount(trump,0) initiated at 1<br/>and terminated at transition to 16"}, _80682{content:"bob,1", end:16, group:"voter/2", id:2, start:1, subgroup:"bob", title:"Fluent voter(bob,1) initiated at 1<br/>and terminated at transition to 16"}, _80808{content:"fariba,1", end:16, group:"voter/2", id:3, start:1, subgroup:"fariba", title:"Fluent voter(fariba,1) initiated at 1<br/>and terminated at transition to 16"}, _80934{content:"jacinto,1", end:16, group:"voter/2", id:4, start:1, subgroup:"jacinto", title:"Fluent voter(jacinto,1) initiated at 1<br/>and terminated at transition to 16"}, _81060{content:"miguel,1", end:16, group:"voter/2", id:5, start:1, subgroup:"miguel", title:"Fluent voter(miguel,1) initiated at 1<br/>and terminated at transition to 16"}]}, [])).
 7491% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'new goat.pl')).
 7492% run_lps_corner_file1(/.../(lps_user_examples, 'new goat.pl')).
 7493% /pack/logicmoo_ec/test/lps_user_examples/new goat.pl:1
 7494% push_lps_dialect.
 7495% ops.
 7496% [ti=user, load= /.../(lps_user_examples, 'new goat.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'new goat.pl'), lps= /.../(lps_user_examples, 'new goat.pl'), using= /.../(lps_user_examples, 'new goat.pl')].
 7497% continue_lps_dialect.
 7498% ops.
 7499
 7500% LPS:  actions(transport(_55362,_55364,_55366)).
 7501% Into: actions([transport(_55362,_55364,_55366)]).
 7502
 7503% LPS:  fluents(loc(_56422,_56424)).
 7504% Into: fluents([loc(_56422,_56424)]).
 7505
 7506% LPS:  initially((loc(wolf,south),loc(goat,south),loc(cabbage,south),loc(farmer,south))).
 7507% Into: initial_state([loc(wolf,south),loc(goat,south),loc(cabbage,south),loc(farmer,south)]).
 7508
 7509% LPS:  then(if((loc(_58894,south),_58894\=farmer)),from(makeLoc(_58894,north),to(_59108,_59110))).
 7510% Into: reactive_rule([holds(loc(_58894,south),_60264),_58894\=farmer],[happens(makeLoc(_58894,north),_59108,_59110)]).
 7511
 7512% LPS:  if(from(makeLoc(_61270,north),to(_61308,_61310)),(_61270\=farmer,from(makeLoc(farmer,south),to(_61308,_61526)),at(loc(_61270,south),_61526),from(transport(_61270,south,north),to(_61526,_61310)))).
 7513% Into: l_events(happens(makeLoc(_61270,north),_61308,_61310),[_61270\=farmer,happens(makeLoc(farmer,south),_61308,_61526),holds(loc(_61270,south),_61526),happens(transport(_61270,south,north),_61526,_61310)]).
 7514
 7515% LPS:  if(from(makeLoc(farmer,_63978),to(_64014,_64014)),at(loc(farmer,_63978),_64014)).
 7516% Into: l_events(happens(makeLoc(farmer,_63978),_64014,_64014),[holds(loc(farmer,_63978),_64014)]).
 7517
 7518% LPS:  if(from(makeLoc(farmer,_65306),to(_65342,_65344)),(at(loc(farmer,_65458),_65342),_65306\=_65458,at(loc(_65624,_65458),_65342),_65624\=farmer,from(transport(_65624,_65458,_65306),to(_65342,_65344)))).
 7519% Into: l_events(happens(makeLoc(farmer,_65306),_65342,_65344),[holds(loc(farmer,_65458),_65342),_65306\=_65458,holds(loc(_65624,_65458),_65342),_65624\=farmer,happens(transport(_65624,_65458,_65306),_65342,_65344)]).
 7520
 7521% LPS:  if(from(makeLoc(farmer,_68026),to(_68062,_68064)),(at(loc(farmer,_68178),_68062),_68026\=_68178,from(transport(farmer,_68178,_68026),to(_68062,_68064)))).
 7522% Into: l_events(happens(makeLoc(farmer,_68026),_68062,_68064),[holds(loc(farmer,_68178),_68062),_68026\=_68178,happens(transport(farmer,_68178,_68026),_68062,_68064)]).
 7523
 7524% LPS:  updates(transport(_70130,_70132,_70134),in(to(_70132,_70134),loc(_70130,_70132))).
 7525% Into: updated(happens(transport(_70130,_70132,_70134),_71486,_71492),loc(_70130,_70132),_70132-_70134,[]).
 7526
 7527% LPS:  updates(transport(_71400,_71402,_71404),in(to(_71402,_71404),loc(farmer,_71402))).
 7528% Into: updated(happens(transport(_71400,_71402,_71404),_72756,_72762),loc(farmer,_71402),_71402-_71404,[]).
 7529
 7530% LPS:  false((transport(_72678,_72680,_72682),transport(_72750,_72680,_72682),_72678\=_72750)).
 7531% Into: d_pre([happens(transport(_72678,_72680,_72682),_73958,_73964),happens(transport(_72750,_72680,_72682),_73958,_73964),_72678\=_72750]).
 7532
 7533% LPS:  false((loc(goat,_74372),loc(wolf,_74372),not(loc(farmer,_74372)))).
 7534% Into: d_pre([holds(loc(goat,_74372),_75620),holds(loc(wolf,_74372),_75620),holds(not(loc(farmer,_74372)),_75620)]).
 7535
 7536% LPS:  false((loc(goat,_75664),loc(cabbage,_75664),not(loc(farmer,_75664)))).
 7537% Into: d_pre([holds(loc(goat,_75664),_76912),holds(loc(cabbage,_75664),_76912),holds(not(loc(farmer,_75664)),_76912)]).
 7538% /pack/logicmoo_ec/test/lps_user_examples/new goat.pl:73
 7539% pop_lps_dialect('$BLOB'("<stream>(0x562ef6d1d400)"),  (/.../(lps_user_examples, 'new goat.pl')-> /.../(lps_user_examples, 'new goat.pl'))).
 7540% ops.
 7541% :-listing('/pack/logicmoo_ec/test/lps_user_examples/new goat.pl':_84566).
 7542
 7543
 7544d_pre([happens(transport(A, B, C), D, E), happens(transport(F, B, C), D, E), A\=F]).
 7545d_pre([holds(loc(goat, A), B), holds(loc(wolf, A), B), holds(not(loc(farmer, A)), B)]).
 7546d_pre([holds(loc(goat, A), B), holds(loc(cabbage, A), B), holds(not(loc(farmer, A)), B)]).
 7547
 7548fluents([loc(_, _)]).
 7549
 7550reactive_rule([holds(loc(A, south), _), A\=farmer], [happens(makeLoc(A, north), _, _)]).
 7551
 7552initial_state([loc(wolf, south), loc(goat, south), loc(cabbage, south), loc(farmer, south)]).
 7553
 7554l_events(happens(makeLoc(A, north), B, C), [A\=farmer, happens(makeLoc(farmer, south), B, D), holds(loc(A, south), D), happens(transport(A, south, north), D, C)]).
 7555l_events(happens(makeLoc(farmer, A), B, B), [holds(loc(farmer, A), B)]).
 7556l_events(happens(makeLoc(farmer, A), B, C), [holds(loc(farmer, D), B), A\=D, holds(loc(E, D), B), E\=farmer, happens(transport(E, D, A), B, C)]).
 7557l_events(happens(makeLoc(farmer, A), B, C), [holds(loc(farmer, D), B), A\=D, happens(transport(farmer, D, A), B, C)]).
 7558
 7559:- dynamic actions/1. 7560:- multifile actions/1. 7561
 7562actions([transport(_, _, _)]).
 7563
 7564updated(happens(transport(A, B, C), _, _), loc(A, B), B-C, []).
 7565updated(happens(transport(_, A, B), _, _), loc(farmer, A), A-B, []).
 7566
 7567maxTime(10).
 7568% dB(/.../(lps_user_examples, 'new goat.pl'), lps_visualization(_78646{groups:[_75654{content:"loc(A,B)", id:"loc/2", order:3, subgroupStack:"false"}, _75720{content:"Actions", id:"action", order:4}], items:[_75842{content:"cabbage,north", end:11, group:"loc/2", id:0, start:6, subgroup:"cabbage", title:"Fluent loc(cabbage,north) initiated at 6<br/>and terminated at transition to 11"}, _75968{content:"cabbage,south", end:6, group:"loc/2", id:1, start:1, subgroup:"cabbage", title:"Fluent loc(cabbage,south) initiated at 1<br/>and terminated at transition to 6"}, _76094{content:"farmer,north", end:3, group:"loc/2", id:2, start:2, subgroup:"farmer", title:"Fluent loc(farmer,north) initiated at 2<br/>and terminated at transition to 3"}, _76220{content:"farmer,north", end:5, group:"loc/2", id:3, start:4, subgroup:"farmer", title:"Fluent loc(farmer,north) initiated at 4<br/>and terminated at transition to 5"}, _76346{content:"farmer,north", end:7, group:"loc/2", id:4, start:6, subgroup:"farmer", title:"Fluent loc(farmer,north) initiated at 6<br/>and terminated at transition to 7"}, _76472{content:"farmer,north", end:11, group:"loc/2", id:5, start:8, subgroup:"farmer", title:"Fluent loc(farmer,north) initiated at 8<br/>and terminated at transition to 11"}, _76598{content:"farmer,south", end:2, group:"loc/2", id:6, start:1, subgroup:"farmer", title:"Fluent loc(farmer,south) initiated at 1<br/>and terminated at transition to 2"}, _76724{content:"farmer,south", end:4, group:"loc/2", id:7, start:3, subgroup:"farmer", title:"Fluent loc(farmer,south) initiated at 3<br/>and terminated at transition to 4"}, _76850{content:"farmer,south", end:6, group:"loc/2", id:8, start:5, subgroup:"farmer", title:"Fluent loc(farmer,south) initiated at 5<br/>and terminated at transition to 6"}, _76976{content:"farmer,south", end:8, group:"loc/2", id:9, start:7, subgroup:"farmer", title:"Fluent loc(farmer,south) initiated at 7<br/>and terminated at transition to 8"}, _77102{content:"goat,north", end:5, group:"loc/2", id:10, start:2, subgroup:"goat", title:"Fluent loc(goat,north) initiated at 2<br/>and terminated at transition to 5"}, _77228{content:"goat,north", end:11, group:"loc/2", id:11, start:8, subgroup:"goat", title:"Fluent loc(goat,north) initiated at 8<br/>and terminated at transition to 11"}, _77354{content:"goat,south", end:2, group:"loc/2", id:12, start:1, subgroup:"goat", title:"Fluent loc(goat,south) initiated at 1<br/>and terminated at transition to 2"}, _77480{content:"goat,south", end:8, group:"loc/2", id:13, start:5, subgroup:"goat", title:"Fluent loc(goat,south) initiated at 5<br/>and terminated at transition to 8"}, _77606{content:"wolf,north", end:11, group:"loc/2", id:14, start:4, subgroup:"wolf", title:"Fluent loc(wolf,north) initiated at 4<br/>and terminated at transition to 11"}, _77732{content:"wolf,south", end:4, group:"loc/2", id:15, start:1, subgroup:"wolf", title:"Fluent loc(wolf,south) initiated at 1<br/>and terminated at transition to 4"}, _77858{content:"transport(goat,south,north)", group:"action", id:16, start:2, style:"color:green", title:"happens(transport(goat,south,north),1,2)", type:"point"}, _77984{content:"transport(farmer,north,south)", group:"action", id:17, start:3, style:"color:green", title:"happens(transport(farmer,north,south),2,3)", type:"point"}, _78110{content:"transport(wolf,south,north)", group:"action", id:18, start:4, style:"color:green", title:"happens(transport(wolf,south,north),3,4)", type:"point"}, _78236{content:"transport(goat,north,south)", group:"action", id:19, start:5, style:"color:green", title:"happens(transport(goat,north,south),4,5)", type:"point"}, _78362{content:"transport(cabbage,south,north)", group:"action", id:20, start:6, style:"color:green", title:"happens(transport(cabbage,south,north),5,6)", type:"point"}, _78488{content:"transport(farmer,north,south)", group:"action", id:21, start:7, style:"color:green", title:"happens(transport(farmer,north,south),6,7)", type:"point"}, _78614{content:"transport(goat,south,north)", group:"action", id:22, start:8, style:"color:green", title:"happens(transport(goat,south,north),7,8)", type:"point"}]}, [])).
 7569% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'New Tezos.pl')).
 7570% run_lps_corner_file1(/.../(lps_user_examples, 'New Tezos.pl')).
 7571% /pack/logicmoo_ec/test/lps_user_examples/New Tezos.pl:1
 7572% push_lps_dialect.
 7573% ops.
 7574% [ti=user, load= /.../(lps_user_examples, 'New Tezos.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'New Tezos.pl'), lps= /.../(lps_user_examples, 'New Tezos.pl'), using= /.../(lps_user_examples, 'New Tezos.pl')].
 7575% continue_lps_dialect.
 7576% ops.
 7577
 7578% LPS:  events((play(_59468,_59470,_59472),addfunds(_59526,_59528),observeRandom(_59470))).
 7579% Into: events([play(_59468,_59470,_59472),addfunds(_59526,_59528),observeRandom(_59470)]).
 7580
 7581% LPS:  fluents((game(_60772,_60774,_60776),balance(_60816))).
 7582% Into: fluents([game(_60772,_60774,_60776),balance(_60816)]).
 7583
 7584% LPS:  actions((failwith(_61950,_61952),transfer(_62006,_62008),send(_62062,_62064))).
 7585% Into: actions([failwith(_61950,_61952),transfer(_62006,_62008),send(_62062,_62064)]).
 7586
 7587% LPS:  if(updates(transfer(_63324,_63326),in(to(_63362,_63364),balance(_63362))),_63364 is _63362-_63326).
 7588% Into: updated(happens(transfer(_63324,_63326),_64842,_64848),balance(_63362),_63362-_63364,[_63364 is _63362-_63326]).
 7589
 7590% LPS:  if(updates(addfunds(_65282,_65284),in(to(_65320,_65322),balance(_65320))),_65322 is _65320+_65284).
 7591% Into: updated(happens(addfunds(_65282,_65284),_66804,_66810),balance(_65320),_65320-_65322,[_65322 is _65320+_65284]).
 7592
 7593% LPS:  initially(balance(100)).
 7594% Into: initial_state([balance(100)]).
 7595
 7596% LPS:  observe(from(play(miguel,52,90),to(1,2))).
 7597% Into: observe([play(miguel,52,90)],2).
 7598
 7599% LPS:  observe(from(observeRandom(51),to(2,3))).
 7600% Into: observe([observeRandom(51)],3).
 7601
 7602% LPS:  if(at(playFails(_72248,_72250,_72252,'number must be <= 100'),_72276),at(_72250>100,_72276)).
 7603% Into: l_int(holds(playFails(_72248,_72250,_72252,'number must be <= 100'),_72276),[holds(_72250>100,_72276)]).
 7604
 7605% LPS:  if(at(playFails(_74304,_74306,_74308,'I do not have enough money for this bet'),_74332),(at(balance(_74398),_74332),_74308>_74398)).
 7606% Into: l_int(holds(playFails(_74304,_74306,_74308,'I do not have enough money for this bet'),_74332),[holds(balance(_74398),_74332),holds(_74308>_74398,_76132)]).
 7607
 7608% LPS:  if(at(playFails(_76436,_76438,_76440,'Game already started with g????'),_76464),at(game(_76558,_76560,_76562),_76464)).
 7609% Into: l_int(holds(playFails(_76436,_76438,_76440,'Game already started with g????'),_76464),[holds(game(_76558,_76560,_76562),_76464)]).
 7610
 7611% LPS:  then(if((from(play(_78224,_78226,_78228),to(_78264,_78266)),at(playFails(_78224,_78226,_78228,_78412),_78264))),from(failwith(_78224,_78412),_78266)).
 7612% Into: reactive_rule([happens(play(_78224,_78226,_78228),_78264,_78266),holds(playFails(_78224,_78226,_78228,_78412),_78264)],[happens(failwith(_78224,_78412),_78266,_80346)]).
 7613
 7614% LPS:  if(initiates(play(_80392,_80394,_80396),game(_80392,_80394,_80396)),not(playFails(_80392,_80394,_80396,_80596))).
 7615% Into: initiated(happens(play(_80392,_80394,_80396),_81818,_81824),game(_80392,_80394,_80396),[holds(not(playFails(_80392,_80394,_80396,_80596)),_81818)]).
 7616
 7617% LPS:  if(updates(play(_82124,_82126,_82128),in(to(_82164,_82166),balance(_82164))),(not(playFails(_82124,_82126,_82128,_82392)),_82166 is _82164+_82128)).
 7618% Into: updated(happens(play(_82124,_82126,_82128),_83848,_83854),balance(_82164),_82164-_82166,[holds(not(playFails(_82124,_82126,_82128,_82392)),_83848),_82166 is _82164+_82128]).
 7619
 7620% LPS:  if(at(oracleFails(_19238,'No game already started'),_19252),at(not(game(_19328,_19330,_19332)),_19252)).
 7621% Into: l_int(holds(oracleFails(_19238,'No game already started'),_19252),[holds(not(game(_19328,_19330,_19332)),_19252)]).
 7622
 7623% LPS:  if(at(oracleFails(_19712,'Random numbers can not be generated'),_19736),(oracle(_19802),_19712\=_19802)).
 7624% Into: l_int(holds(oracleFails(_19712,'Random numbers can not be generated'),_19736),[oracle(_19802),_19712\=_19802]).
 7625
 7626% LPS:  then(if((to(send(_21686,_21688),_21710),at(oracleFails(_21686,_21792),_21710),game(_21908,_21910,_21912))),from(failwith(_21908,_21792),_21710)).
 7627% Into: reactive_rule([happens(send(_21686,_21688),_23268,_21710),holds(oracleFails(_21686,_21792),_21710),holds(game(_21908,_21910,_21912),_23274)],[happens(failwith(_21908,_21792),_21710,_24290)]).
 7628
 7629% LPS:  then(if((to(send(_24432,_24434),_24456),at(not(oracleFails(_24432,_24546)),_24456),at(game(_24686,_24688,_24690),_24456),at(balance(_24778),_24456),_24688>_24434)),terminate(from(game(_24686,_24688,_24690),_24456))).
 7630% Into: reactive_rule([happens(send(_24432,_24434),_26402,_24456),holds(not(oracleFails(_24432,_24546)),_24456),holds(game(_24686,_24688,_24690),_24456),holds(balance(_24778),_24456),holds(_24688>_24434,_26408)],[happens(terminate(game(_24686,_24688,_24690)),_24456,_28362)]).
 7631
 7632% LPS:  then(if((to(send(_28504,_28506),_28528),at(not(oracleFails(_28504,_28618)),_28528),at(game(_28758,_28760,_28762),_28528),at(balance(_28850),_28528),_28760=<_28506,_29152 is _28762+_28762*_28760/100)),(from(transfer(_28758,_29152),_29442),terminate(from(game(_28758,_28760,_28762),_28528)))).
 7633% Into: reactive_rule([happens(send(_28504,_28506),_30932,_28528),holds(not(oracleFails(_28504,_28618)),_28528),holds(game(_28758,_28760,_28762),_28528),holds(balance(_28850),_28528),_28760=<_28506,_29152 is _28762+_28762*_28760/100],[happens(transfer(_28758,_29152),_29442,_33354),happens(terminate(game(_28758,_28760,_28762)),_28528,_33318)]).
 7634
 7635% LPS:  then(if((to(play(_33514,_33516,_33518),_33540),at(game(_33514,_33516,_33518),_33540),from(observeRandom(_33726),to(_33540,_33764)))),from(send(myaddress,_33726),_33764)).
 7636% Into: reactive_rule([happens(play(_33514,_33516,_33518),_35178,_33540),holds(game(_33514,_33516,_33518),_33540),happens(observeRandom(_33726),_33540,_33764)],[happens(send(myaddress,_33726),_33764,_35870)]).
 7637% /pack/logicmoo_ec/test/lps_user_examples/New Tezos.pl:103
 7638% pop_lps_dialect('$BLOB'("<stream>(0x562ef85cbd00)"),  (/.../(lps_user_examples, 'New Tezos.pl')-> /.../(lps_user_examples, 'New Tezos.pl'))).
 7639% ops.
 7640% :-listing('/pack/logicmoo_ec/test/lps_user_examples/New Tezos.pl':_43408).
 7641
 7642
 7643initiated(happens(play(A, B, C), D, _), game(A, B, C), [holds(not(playFails(A, B, C, _)), D)]).
 7644
 7645fluents([game(_, _, _), balance(_)]).
 7646
 7647l_int(holds(playFails(_, A, _, 'number must be <= 100'), B), [holds(A>100, B)]).
 7648l_int(holds(playFails(_, _, A, 'I do not have enough money for this bet'), B), [holds(balance(C), B), holds(A>C, _)]).
 7649l_int(holds(playFails(_, _, _, 'Game already started with g????'), A), [holds(game(_, _, _), A)]).
 7650l_int(holds(oracleFails(_, 'No game already started'), A), [holds(not(game(_, _, _)), A)]).
 7651l_int(holds(oracleFails(A, 'Random numbers can not be generated'), _), [oracle(B), A\=B]).
 7652
 7653reactive_rule([happens(play(A, B, C), D, E), holds(playFails(A, B, C, F), D)], [happens(failwith(A, F), E, _)]).
 7654reactive_rule([happens(send(A, _), _, B), holds(oracleFails(A, C), B), holds(game(D, _, _), _)], [happens(failwith(D, C), B, _)]).
 7655reactive_rule([happens(send(A, B), _, C), holds(not(oracleFails(A, _)), C), holds(game(D, E, F), C), holds(balance(_), C), holds(E>B, _)], [happens(terminate(game(D, E, F)), C, _)]).
 7656reactive_rule([happens(send(A, B), _, C), holds(not(oracleFails(A, _)), C), holds(game(D, E, F), C), holds(balance(_), C), E=<B, G is F+F*E/100], [happens(transfer(D, G), _, _), happens(terminate(game(D, E, F)), C, _)]).
 7657reactive_rule([happens(play(A, B, C), _, D), holds(game(A, B, C), D), happens(observeRandom(E), D, F)], [happens(send(myaddress, E), F, _)]).
 7658
 7659initial_state([balance(100)]).
 7660
 7661:- dynamic actions/1. 7662:- multifile actions/1. 7663
 7664actions([failwith(_, _), transfer(_, _), send(_, _)]).
 7665
 7666events([play(_, A, _), addfunds(_, _), observeRandom(A)]).
 7667
 7668updated(happens(transfer(_, A), _, _), balance(B), B-C, [C is B-A]).
 7669updated(happens(addfunds(_, A), _, _), balance(B), B-C, [C is B+A]).
 7670updated(happens(play(A, B, C), D, _), balance(E), E-F, [holds(not(playFails(A, B, C, _)), D), F is E+C]).
 7671
 7672maxTime(10).
 7673
 7674oracle(myaddress).
 7675
 7676observe([play(miguel, 52, 90)], 2).
 7677observe([observeRandom(51)], 3).
 7678PROGRAM FAILED
 7679% dB(/.../(lps_user_examples, 'New Tezos.pl'), lps_visualization(_70196{groups:[_69068{content:"Events", id:"event", order:1}, _69142{content:"balance(A)", id:"balance/1", order:3, subgroupStack:"false"}, _69220{content:"game(A,B,C)", id:"game/3", order:3, subgroupStack:"false"}, _69286{content:"Actions", id:"action", order:4}], items:[_69408{content:"100", end:2, group:"balance/1", id:0, start:1, subgroup:"100", title:"Fluent balance(100) initiated at 1<br/>and terminated at transition to 2"}, _69534{content:"190", end:6, group:"balance/1", id:1, start:2, subgroup:"190", title:"Fluent balance(190) initiated at 2<br/>and terminated at transition to 6"}, _69660{content:"miguel,52,90", end:5, group:"game/3", id:2, start:2, subgroup:"miguel", title:"Fluent game(miguel,52,90) initiated at 2<br/>and terminated at transition to 5"}, _69786{content:"play(miguel,52,90)", group:"event", id:3, start:2, style:"color:#E19735", title:"happens(play(miguel,52,90),1,2)", type:"point"}, _69912{content:"observeRandom(51)", group:"event", id:4, start:3, style:"color:#E19735", title:"happens(observeRandom(51),2,3)", type:"point"}, _70038{content:"send(myaddress,51)", group:"action", id:5, start:4, style:"color:green", title:"happens(send(myaddress,51),3,4)", type:"point"}, _70164{content:"terminate(game(miguel,52,90))", group:"action", id:6, start:5, style:"color:green", title:"happens(terminate(game(miguel,52,90)),4,5)", type:"point"}]}, [])).
 7680% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'NormalOutcomeOfJohnDTractorInsuranceContract.pl .pl')).
 7681% run_lps_corner_file1(/.../(lps_user_examples, 'NormalOutcomeOfJohnDTractorInsuranceContract.pl .pl')).
 7682% /pack/logicmoo_ec/test/lps_user_examples/NormalOutcomeOfJohnDTractorInsuranceContract.pl .pl:1
 7683% push_lps_dialect.
 7684% ops.
 7685% [ti=user, load= /.../(lps_user_examples, 'NormalOutcomeOfJohnDTractorInsuranceContract.pl .pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'NormalOutcomeOfJohnDTractorInsuranceContract.pl .pl'), lps= /.../(lps_user_examples, 'NormalOutcomeOfJohnDTractorInsuranceContract.pl .pl'), using= /.../(lps_user_examples, 'NormalOutcomeOfJohnDTractorInsuranceContract.pl .pl')].
 7686% continue_lps_dialect.
 7687% ops.
 7688% /pack/logicmoo_ec/test/lps_user_examples/NormalOutcomeOfJohnDTractorInsuranceContract.pl .pl:3
 7689% pop_lps_dialect('$BLOB'("<stream>(0x562ef89a0700)"),  (/.../(lps_user_examples, 'NormalOutcomeOfJohnDTractorInsuranceContract.pl .pl')-> /.../(lps_user_examples, 'NormalOutcomeOfJohnDTractorInsuranceContract.pl .pl'))).
 7690% ops.
 7691% :-listing('/pack/logicmoo_ec/test/lps_user_examples/NormalOutcomeOfJohnDTractorInsuranceContract.pl .pl':_62582).
 7692
 7693
 7694:- dynamic actions/1.
 7695:- multifile actions/1. 7696
 7697% dB(/.../(lps_user_examples, 'NormalOutcomeOfJohnDTractorInsuranceContract.pl .pl'), lps_visualization(_44312{groups:[], items:[]}, [])).
 7698% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'P6 Claudio Condor.pl')).
 7699% run_lps_corner_file1(/.../(lps_user_examples, 'P6 Claudio Condor.pl')).
 7700% /pack/logicmoo_ec/test/lps_user_examples/P6 Claudio Condor.pl:1
 7701% push_lps_dialect.
 7702% ops.
 7703% [ti=user, load= /.../(lps_user_examples, 'P6 Claudio Condor.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'P6 Claudio Condor.pl'), lps= /.../(lps_user_examples, 'P6 Claudio Condor.pl'), using= /.../(lps_user_examples, 'P6 Claudio Condor.pl')].
 7704% continue_lps_dialect.
 7705% ops.
 7706
 7707% LPS:  fluents((varita_obedece(_19446),vivo(_19446))).
 7708% Into: fluents([varita_obedece(_19446),vivo(_19446)]).
 7709
 7710% LPS:  actions((desarmo/2,cortar_cabeza/2,destruye_varita/1)).
 7711% Into: actions([desarmo(_21922,_21924),cortar_cabeza(_21934,_21936),destruye_varita(_21946)]).
 7712
 7713% LPS:  events((batalla/1,derroto/2)).
 7714% Into: events([batalla(_23040),derroto(_23050,_23052)]).
 7715
 7716% LPS:  initially((varita_obedece(dumbledore),vivo(voldemort),vivo(nagini))).
 7717% Into: initial_state([varita_obedece(dumbledore),vivo(voldemort),vivo(nagini)]).
 7718
 7719% LPS:  observe(from(batalla(hogwarts),to(4,5))).
 7720% Into: observe([batalla(hogwarts)],5).
 7721
 7722% LPS:  if(derroto(_25324,_25326),(varita_obedece(_25324),cortar_cabeza(neville,nagini))).
 7723% Into: l_events(happens(derroto(_25324,_25326),_26506,_26512),[holds(varita_obedece(_25324),_26506),happens(cortar_cabeza(neville,nagini),_26506,_26512)]).
 7724
 7725% LPS:  terminates(derroto(_26808,_26810),vivo(_26810)).
 7726% Into: terminated(happens(derroto(_26808,_26810),_27974,_27980),vivo(_26810),[]).
 7727
 7728% LPS:  initiates(desarmo(_27922,_27924),varita_obedece(_27922)).
 7729% Into: initiated(happens(desarmo(_27922,_27924),_29088,_29094),varita_obedece(_27922),[]).
 7730
 7731% LPS:  terminates(desarmo(_29036,_29038),varita_obedece(_29078)).
 7732% Into: terminated(happens(desarmo(_29036,_29038),_30214,_30220),varita_obedece(_29078),[]).
 7733
 7734% LPS:  terminates(destruye_varita(_30148),varita_obedece(_30148)).
 7735% Into: terminated(happens(destruye_varita(_30148),_31296,_31302),varita_obedece(_30148),[]).
 7736
 7737% LPS:  terminates(cortar_cabeza(_31246,_31248),vivo(_31248)).
 7738% Into: terminated(happens(cortar_cabeza(_31246,_31248),_32412,_32418),vivo(_31248),[]).
 7739
 7740% LPS:  then(if(at(varita_obedece(dumbledore),_32376)),from(desarmo(malfoy,dumbledore),to(_32518,_32520))).
 7741% Into: reactive_rule([holds(varita_obedece(dumbledore),_32376)],[happens(desarmo(malfoy,dumbledore),_32518,_32520)]).
 7742
 7743% LPS:  then(if(at(varita_obedece(malfoy),_33700)),from(desarmo(harry,malfoy),to(_33842,_33844))).
 7744% Into: reactive_rule([holds(varita_obedece(malfoy),_33700)],[happens(desarmo(harry,malfoy),_33842,_33844)]).
 7745
 7746% LPS:  then(if(at(not(vivo(voldemort)),_35056)),from(destruye_varita(harry),to(_35182,_35184))).
 7747% Into: reactive_rule([holds(not(vivo(voldemort)),_35056)],[happens(destruye_varita(harry),_35182,_35184)]).
 7748
 7749% LPS:  then(if(from(batalla(hogwarts),to(_36380,_36382))),from(derroto(harry,voldemort),to(_36382,_36558))).
 7750% Into: reactive_rule([happens(batalla(hogwarts),_36380,_36382)],[happens(derroto(harry,voldemort),_36382,_36558)]).
 7751% /pack/logicmoo_ec/test/lps_user_examples/P6 Claudio Condor.pl:37
 7752% pop_lps_dialect('$BLOB'("<stream>(0x562ef89a1700)"),  (/.../(lps_user_examples, 'P6 Claudio Condor.pl')-> /.../(lps_user_examples, 'P6 Claudio Condor.pl'))).
 7753% ops.
 7754% :-listing('/pack/logicmoo_ec/test/lps_user_examples/P6 Claudio Condor.pl':_45322).
 7755
 7756
 7757initiated(happens(desarmo(A, _), _, _), varita_obedece(A), []).
 7758
 7759fluents([varita_obedece(A), vivo(A)]).
 7760
 7761terminated(happens(derroto(_, A), _, _), vivo(A), []).
 7762terminated(happens(desarmo(_, _), _, _), varita_obedece(_), []).
 7763terminated(happens(destruye_varita(A), _, _), varita_obedece(A), []).
 7764terminated(happens(cortar_cabeza(_, A), _, _), vivo(A), []).
 7765
 7766reactive_rule([holds(varita_obedece(dumbledore), _)], [happens(desarmo(malfoy, dumbledore), _, _)]).
 7767reactive_rule([holds(varita_obedece(malfoy), _)], [happens(desarmo(harry, malfoy), _, _)]).
 7768reactive_rule([holds(not(vivo(voldemort)), _)], [happens(destruye_varita(harry), _, _)]).
 7769reactive_rule([happens(batalla(hogwarts), _, A)], [happens(derroto(harry, voldemort), A, _)]).
 7770
 7771initial_state([varita_obedece(dumbledore), vivo(voldemort), vivo(nagini)]).
 7772
 7773l_events(happens(derroto(A, _), B, C), [holds(varita_obedece(A), B), happens(cortar_cabeza(neville, nagini), B, C)]).
 7774
 7775:- dynamic actions/1. 7776:- multifile actions/1. 7777
 7778actions([desarmo(_, _), cortar_cabeza(_, _), destruye_varita(_)]).
 7779
 7780events([batalla(_), derroto(_, _)]).
 7781
 7782observe([batalla(hogwarts)], 5).
 7783
 7784maxTime(8).
 7785% dB(/.../(lps_user_examples, 'P6 Claudio Condor.pl'), lps_visualization(_93982{groups:[_92476{content:"Events", id:"event", order:1}, _92550{content:"varita_obedece(A)", id:"varita_obedece/1", order:3, subgroupStack:"false"}, _92628{content:"vivo(A)", id:"vivo/1", order:3, subgroupStack:"false"}, _92694{content:"Actions", id:"action", order:4}], items:[_92816{content:"dumbledore", end:2, group:"varita_obedece/1", id:0, start:1, subgroup:"dumbledore", title:"Fluent varita_obedece(dumbledore) initiated at 1<br/>and terminated at transition to 2"}, _92942{content:"harry", end:8, group:"varita_obedece/1", id:1, start:3, subgroup:"harry", title:"Fluent varita_obedece(harry) initiated at 3<br/>and terminated at transition to 8"}, _93068{content:"malfoy", end:3, group:"varita_obedece/1", id:2, start:2, subgroup:"malfoy", title:"Fluent varita_obedece(malfoy) initiated at 2<br/>and terminated at transition to 3"}, _93194{content:"nagini", end:6, group:"vivo/1", id:3, start:1, subgroup:"nagini", title:"Fluent vivo(nagini) initiated at 1<br/>and terminated at transition to 6"}, _93320{content:"voldemort", end:6, group:"vivo/1", id:4, start:1, subgroup:"voldemort", title:"Fluent vivo(voldemort) initiated at 1<br/>and terminated at transition to 6"}, _93446{content:"desarmo(malfoy,dumbledore)", group:"action", id:5, start:2, style:"color:green", title:"happens(desarmo(malfoy,dumbledore),1,2)", type:"point"}, _93572{content:"desarmo(harry,malfoy)", group:"action", id:6, start:3, style:"color:green", title:"happens(desarmo(harry,malfoy),2,3)", type:"point"}, _93698{content:"batalla(hogwarts)", group:"event", id:7, start:5, style:"color:#E19735", title:"happens(batalla(hogwarts),4,5)", type:"point"}, _93824{content:"cortar_cabeza(neville,nagini)", group:"action", id:8, start:6, style:"color:green", title:"happens(cortar_cabeza(neville,nagini),5,6)", type:"point"}, _93950{content:"destruye_varita(harry)", group:"action", id:9, start:8, style:"color:green", title:"happens(destruye_varita(harry),7,8)", type:"point"}]}, [])).
 7786% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'planningfox.pl')).
 7787% run_lps_corner_file1(/.../(lps_user_examples, 'planningfox.pl')).
 7788% /pack/logicmoo_ec/test/lps_user_examples/planningfox.pl:1
 7789% push_lps_dialect.
 7790% ops.
 7791% [ti=user, load= /.../(lps_user_examples, 'planningfox.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'planningfox.pl'), lps= /.../(lps_user_examples, 'planningfox.pl'), using= /.../(lps_user_examples, 'planningfox.pl')].
 7792% continue_lps_dialect.
 7793% ops.
 7794
 7795% LPS:  fluents((has(_56330,_56332),near(_56330,_56332))).
 7796% Into: fluents([has(_56330,_56332),near(_56330,_56332)]).
 7797
 7798% LPS:  actions((praise/2,take/2,eat/2)).
 7799% Into: actions([praise(_58840,_58842),take(_58852,_58854),eat(_58864,_58866)]).
 7800
 7801% LPS:  events((hunger/1,sing/1,gets/2,reach/1)).
 7802% Into: events([hunger(_60258),sing(_60268),gets(_60278,_60280),reach(_60290)]).
 7803
 7804% LPS:  initially(has(crow,cheese)).
 7805% Into: initial_state([has(crow,cheese)]).
 7806
 7807% LPS:  observe(from(hunger(me),to(1,2))).
 7808% Into: observe([hunger(me)],2).
 7809
 7810% LPS:  if(initiates(take(_62312,_62314),has(_62312,_62314)),near(_62312,_62314)).
 7811% Into: initiated(happens(take(_62312,_62314),_63624,_63630),has(_62312,_62314),[holds(near(_62312,_62314),_63624)]).
 7812
 7813% LPS:  if(terminates(take(_63884,_63886),has(_63940,_63886)),_63940\==_63884).
 7814% Into: terminated(happens(take(_63884,_63886),_65208,_65214),has(_63940,_63886),[_63940\==_63884]).
 7815
 7816% LPS:  initiates(sing(crow),near(me,cheese)).
 7817% Into: initiated(happens(sing(crow),_66746,_66752),near(me,cheese),[]).
 7818
 7819% LPS:  if(sing(crow),praise(me,crow)).
 7820% Into: l_events(happens(sing(crow),_67752,_67758),[happens(praise(me,crow),_67752,_67758)]).
 7821
 7822% LPS:  if(reach(has(me,cheese)),(reach(near(me,cheese)),take(me,cheese))).
 7823% Into: l_events(happens(reach(has(me,cheese)),_69348,_69354),[happens(reach(near(me,cheese)),_69348,_69428),happens(take(me,cheese),_69428,_69354)]).
 7824
 7825% LPS:  if(reach(near(me,cheese)),sing(crow)).
 7826% Into: l_events(happens(reach(near(me,cheese)),_70466,_70472),[happens(sing(crow),_70466,_70472)]).
 7827
 7828% LPS:  then(if(from(hunger(me),to(_70528,_70530))),(from(reach(has(me,cheese)),to(_70530,_70730)),from(eat(me,cheese),to(_70730,_70882)))).
 7829% Into: reactive_rule([happens(hunger(me),_70528,_70530)],[happens(reach(has(me,cheese)),_70530,_70730),happens(eat(me,cheese),_70730,_70882)]).
 7830% /pack/logicmoo_ec/test/lps_user_examples/planningfox.pl:37
 7831% pop_lps_dialect('$BLOB'("<stream>(0x562ef897f300)"),  (/.../(lps_user_examples, 'planningfox.pl')-> /.../(lps_user_examples, 'planningfox.pl'))).
 7832% ops.
 7833% :-listing('/pack/logicmoo_ec/test/lps_user_examples/planningfox.pl':_79746).
 7834
 7835
 7836initiated(happens(take(A, B), C, _), has(A, B), [holds(near(A, B), C)]).
 7837initiated(happens(sing(crow), _, _), near(me, cheese), []).
 7838
 7839fluents([has(A, B), near(A, B)]).
 7840
 7841terminated(happens(take(A, B), _, _), has(C, B), [C\==A]).
 7842
 7843reactive_rule([happens(hunger(me), _, A)], [happens(reach(has(me, cheese)), A, B), happens(eat(me, cheese), B, _)]).
 7844
 7845initial_state([has(crow, cheese)]).
 7846
 7847l_events(happens(sing(crow), A, B), [happens(praise(me, crow), A, B)]).
 7848l_events(happens(reach(has(me, cheese)), A, B), [happens(reach(near(me, cheese)), A, C), happens(take(me, cheese), C, B)]).
 7849l_events(happens(reach(near(me, cheese)), A, B), [happens(sing(crow), A, B)]).
 7850
 7851:- dynamic actions/1. 7852:- multifile actions/1. 7853
 7854actions([praise(_, _), take(_, _), eat(_, _)]).
 7855
 7856events([hunger(_), sing(_), gets(_, _), reach(_)]).
 7857
 7858observe([hunger(me)], 2).
 7859
 7860maxTime(6).
 7861% dB(/.../(lps_user_examples, 'planningfox.pl'), lps_visualization(_73630{groups:[_72502{content:"Events", id:"event", order:1}, _72576{content:"has(A,B)", id:"has/2", order:3, subgroupStack:"false"}, _72654{content:"near(A,B)", id:"near/2", order:3, subgroupStack:"false"}, _72720{content:"Actions", id:"action", order:4}], items:[_72842{content:"crow,cheese", end:4, group:"has/2", id:0, start:1, subgroup:"crow", title:"Fluent has(crow,cheese) initiated at 1<br/>and terminated at transition to 4"}, _72968{content:"me,cheese", end:7, group:"has/2", id:1, start:4, subgroup:"me", title:"Fluent has(me,cheese) initiated at 4<br/>and terminated at transition to 7"}, _73094{content:"me,cheese", end:7, group:"near/2", id:2, start:3, subgroup:"me", title:"Fluent near(me,cheese) initiated at 3<br/>and terminated at transition to 7"}, _73220{content:"hunger(me)", group:"event", id:3, start:2, style:"color:#E19735", title:"happens(hunger(me),1,2)", type:"point"}, _73346{content:"praise(me,crow)", group:"action", id:4, start:3, style:"color:green", title:"happens(praise(me,crow),2,3)", type:"point"}, _73472{content:"take(me,cheese)", group:"action", id:5, start:4, style:"color:green", title:"happens(take(me,cheese),3,4)", type:"point"}, _73598{content:"eat(me,cheese)", group:"action", id:6, start:5, style:"color:green", title:"happens(eat(me,cheese),4,5)", type:"point"}]}, [])).
 7862% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'pobrearico.pl')).
 7863% run_lps_corner_file1(/.../(lps_user_examples, 'pobrearico.pl')).
 7864% /pack/logicmoo_ec/test/lps_user_examples/pobrearico.pl:1
 7865% push_lps_dialect.
 7866% ops.
 7867% [ti=user, load= /.../(lps_user_examples, 'pobrearico.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'pobrearico.pl'), lps= /.../(lps_user_examples, 'pobrearico.pl'), using= /.../(lps_user_examples, 'pobrearico.pl')].
 7868% continue_lps_dialect.
 7869% ops.
 7870
 7871% LPS:  fluents((salud/1,ahorros/1,suerte/1,salario/1,pobreza/1,empleo/1,emprendimiento/1,riqueza/1)).
 7872% Into: fluents([salud(_57552),ahorros(_57562),suerte(_57572),salario(_57582),pobreza(_57592),empleo(_57602),emprendimiento(_57612),riqueza(_57622)]).
 7873
 7874% LPS:  events((ir/1,miseria,hambre,enfermedad,posible/1)).
 7875% Into: events([ir(_58694),miseria,hambre,enfermedad,posible(_58722)]).
 7876
 7877% LPS:  actions(paso_a/1).
 7878% Into: actions([paso_a(_59632)]).
 7879
 7880% LPS:  initially((pobreza(yo),salud(yo),suerte(yo))).
 7881% Into: initial_state([pobreza(yo),salud(yo),suerte(yo)]).
 7882
 7883% LPS:  observe(from(miseria,to(1,2))).
 7884% Into: observe([miseria],2).
 7885
 7886% LPS:  if(ir([_61972]),(posible(_61972),paso_a(_61972))).
 7887% Into: l_events(happens(ir([_61972]),_63132,_63138),[happens(posible(_61972),_63132,_63212),happens(paso_a(_61972),_63212,_63138)]).
 7888
 7889% LPS:  if(ir([_63474|_63476]),(posible(_63474),paso_a(_63474),ir(_63476))).
 7890% Into: l_events(happens(ir([_63474|_63476]),_64736,_64742),[happens(posible(_63474),_64736,_64816),happens(paso_a(_63474),_64816,_64882),happens(ir(_63476),_64882,_64742)]).
 7891
 7892% LPS:  if(ahorros(yo),salario(yo)).
 7893% Into: l_int(holds(ahorros(yo),_74544),[holds(salario(yo),_74544)]).
 7894
 7895% LPS:  if(terminates(paso_a(pobreza),empleo(yo)),empleo(yo)).
 7896% Into: terminated(happens(paso_a(pobreza),_75806,_75812),empleo(yo),[holds(empleo(yo),_75806)]).
 7897
 7898% LPS:  if(terminates(paso_a(pobreza),emprendimiento(yo)),emprendimiento(yo)).
 7899% Into: terminated(happens(paso_a(pobreza),_76952,_76958),emprendimiento(yo),[holds(emprendimiento(yo),_76952)]).
 7900
 7901% LPS:  if(terminates(paso_a(empleo),pobreza(yo)),pobreza(yo)).
 7902% Into: terminated(happens(paso_a(empleo),_78106,_78112),pobreza(yo),[holds(pobreza(yo),_78106)]).
 7903
 7904% LPS:  if(terminates(paso_a(emprendimiento),pobreza(yo)),pobreza(yo)).
 7905% Into: terminated(happens(paso_a(emprendimiento),_19644,_19650),pobreza(yo),[holds(pobreza(yo),_19644)]).
 7906
 7907% LPS:  if(initiates(paso_a(empleo),empleo(yo)),salud(yo)).
 7908% Into: initiated(happens(paso_a(empleo),_20798,_20804),empleo(yo),[holds(salud(yo),_20798)]).
 7909
 7910% LPS:  if(initiates(paso_a(emprendimiento),emprendimiento(yo)),(salud(yo),suerte(yo))).
 7911% Into: initiated(happens(paso_a(emprendimiento),_22034,_22040),emprendimiento(yo),[holds(salud(yo),_22034),holds(suerte(yo),_22034)]).
 7912
 7913% LPS:  if(posible(pobreza),pobreza(yo)).
 7914% Into: l_events(happens(posible(pobreza),_23006,_23006),[holds(pobreza(yo),_23006)]).
 7915
 7916% LPS:  if(posible(empleo),salud(yo)).
 7917% Into: l_events(happens(posible(empleo),_24078,_24078),[holds(salud(yo),_24078)]).
 7918
 7919% LPS:  if(posible(emprendimiento),(salud(yo),suerte(yo))).
 7920% Into: l_events(happens(posible(emprendimiento),_25232,_25232),[holds(salud(yo),_25232),holds(suerte(yo),_25232)]).
 7921
 7922% LPS:  if(posible(riqueza),ahorros(yo)).
 7923% Into: l_events(happens(posible(riqueza),_26304,_26304),[holds(ahorros(yo),_26304)]).
 7924
 7925% LPS:  if(posible(riqueza),suerte(yo)).
 7926% Into: l_events(happens(posible(riqueza),_27376,_27376),[holds(suerte(yo),_27376)]).
 7927
 7928% LPS:  if(initiates(paso_a(empleo),salario(yo)),salud(yo)).
 7929% Into: initiated(happens(paso_a(empleo),_28630,_28636),salario(yo),[holds(salud(yo),_28630)]).
 7930
 7931% LPS:  if(initiates(paso_a(emprendimiento),ahorros(yo)),(salud(yo),suerte(yo))).
 7932% Into: initiated(happens(paso_a(emprendimiento),_29866,_29872),ahorros(yo),[holds(salud(yo),_29866),holds(suerte(yo),_29866)]).
 7933
 7934% LPS:  if(initiates(paso_a(riqueza),riqueza(yo)),ahorros(yo)).
 7935% Into: initiated(happens(paso_a(riqueza),_31020,_31026),riqueza(yo),[holds(ahorros(yo),_31020)]).
 7936
 7937% LPS:  if(initiates(paso_a(riqueza),riqueza(yo)),suerte(yo)).
 7938% Into: initiated(happens(paso_a(riqueza),_32174,_32180),riqueza(yo),[holds(suerte(yo),_32174)]).
 7939
 7940% LPS:  terminates(enfermedad,suerte(yo)).
 7941% Into: terminated(happens(enfermedad,_33232,_33238),suerte(yo),[]).
 7942
 7943% LPS:  then(if(from(miseria,to(_33192,_33194))),(plan(pobreza,riqueza,_33348),from(ir(_33348),to(_33194,_33426)))).
 7944% Into: reactive_rule([happens(miseria,_33192,_33194)],[plan(pobreza,riqueza,_33348),happens(ir(_33348),_33194,_33426)]).
 7945
 7946% LPS:  then(if(from(hambre,to(_34654,_34656))),(plan(pobreza,riqueza,_34810),from(ir(_34810),to(_34656,_34888)))).
 7947% Into: reactive_rule([happens(hambre,_34654,_34656)],[plan(pobreza,riqueza,_34810),happens(ir(_34810),_34656,_34888)]).
 7948% /pack/logicmoo_ec/test/lps_user_examples/pobrearico.pl:66
 7949% pop_lps_dialect('$BLOB'("<stream>(0x562ef98c3000)"),  (/.../(lps_user_examples, 'pobrearico.pl')-> /.../(lps_user_examples, 'pobrearico.pl'))).
 7950% ops.
 7951% :-listing('/pack/logicmoo_ec/test/lps_user_examples/pobrearico.pl':_43742).
 7952
 7953
 7954conecta(pobreza, empleo).
 7955conecta(pobreza, emprendimiento).
 7956conecta(empleo, riqueza).
 7957conecta(emprendimiento, riqueza).
 7958
 7959initiated(happens(paso_a(empleo), A, _), empleo(yo), [holds(salud(yo), A)]).
 7960initiated(happens(paso_a(emprendimiento), A, _), emprendimiento(yo), [holds(salud(yo), A), holds(suerte(yo), A)]).
 7961initiated(happens(paso_a(empleo), A, _), salario(yo), [holds(salud(yo), A)]).
 7962initiated(happens(paso_a(emprendimiento), A, _), ahorros(yo), [holds(salud(yo), A), holds(suerte(yo), A)]).
 7963initiated(happens(paso_a(riqueza), A, _), riqueza(yo), [holds(ahorros(yo), A)]).
 7964initiated(happens(paso_a(riqueza), A, _), riqueza(yo), [holds(suerte(yo), A)]).
 7965
 7966fluents([salud(_), ahorros(_), suerte(_), salario(_), pobreza(_), empleo(_), emprendimiento(_), riqueza(_)]).
 7967
 7968l_int(holds(ahorros(yo), A), [holds(salario(yo), A)]).
 7969
 7970terminated(happens(paso_a(pobreza), A, _), empleo(yo), [holds(empleo(yo), A)]).
 7971terminated(happens(paso_a(pobreza), A, _), emprendimiento(yo), [holds(emprendimiento(yo), A)]).
 7972terminated(happens(paso_a(empleo), A, _), pobreza(yo), [holds(pobreza(yo), A)]).
 7973terminated(happens(paso_a(emprendimiento), A, _), pobreza(yo), [holds(pobreza(yo), A)]).
 7974terminated(happens(enfermedad, _, _), suerte(yo), []).
 7975
 7976reactive_rule([happens(miseria, _, A)], [plan(pobreza, riqueza, B), happens(ir(B), A, _)]).
 7977reactive_rule([happens(hambre, _, A)], [plan(pobreza, riqueza, B), happens(ir(B), A, _)]).
 7978
 7979initial_state([pobreza(yo), salud(yo), suerte(yo)]).
 7980
 7981l_events(happens(ir([A]), B, C), [happens(posible(A), B, D), happens(paso_a(A), D, C)]).
 7982l_events(happens(ir([A|B]), C, D), [happens(posible(A), C, E), happens(paso_a(A), E, F), happens(ir(B), F, D)]).
 7983l_events(happens(posible(pobreza), A, A), [holds(pobreza(yo), A)]).
 7984l_events(happens(posible(empleo), A, A), [holds(salud(yo), A)]).
 7985l_events(happens(posible(emprendimiento), A, A), [holds(salud(yo), A), holds(suerte(yo), A)]).
 7986l_events(happens(posible(riqueza), A, A), [holds(ahorros(yo), A)]).
 7987l_events(happens(posible(riqueza), A, A), [holds(suerte(yo), A)]).
 7988
 7989plan(A, B, [B]) :-
 7990    conecta(A, B).
 7991plan(A, B, [A, C|R]) :-
 7992    conecta(A, C),
 7993    not(C=B),
 7994    plan(C, B, R).
 7995
 7996:- dynamic actions/1. 7997:- multifile actions/1. 7998
 7999actions([paso_a(_)]).
 8000
 8001events([ir(_), miseria, hambre, enfermedad, posible(_)]).
 8002
 8003observe([miseria], 2).
 8004
 8005maxTime(10).
 8006% dB(/.../(lps_user_examples, 'pobrearico.pl'), lps_visualization(_102526{groups:[_100174{content:"Events", id:"event", order:1}, _100248{content:"ahorros(A)", id:"ahorros/1", order:3, subgroupStack:"false"}, _100326{content:"empleo(A)", id:"empleo/1", order:3, subgroupStack:"false"}, _100404{content:"emprendimiento(A)", id:"emprendimiento/1", order:3, subgroupStack:"false"}, _100482{content:"pobreza(A)", id:"pobreza/1", order:3, subgroupStack:"false"}, _100560{content:"riqueza(A)", id:"riqueza/1", order:3, subgroupStack:"false"}, _100638{content:"salario(A)", id:"salario/1", order:3, subgroupStack:"false"}, _100716{content:"salud(A)", id:"salud/1", order:3, subgroupStack:"false"}, _100794{content:"suerte(A)", id:"suerte/1", order:3, subgroupStack:"false"}, _100860{content:"Actions", id:"action", order:4}], items:[_100982{content:"yo", end:11, group:"ahorros/1", id:0, start:4, subgroup:"yo", title:"Fluent ahorros(yo) initiated at 4<br/>and terminated at transition to 11"}, _101108{content:"yo", end:11, group:"empleo/1", id:1, start:4, subgroup:"yo", title:"Fluent empleo(yo) initiated at 4<br/>and terminated at transition to 11"}, _101234{content:"yo", end:11, group:"emprendimiento/1", id:2, start:4, subgroup:"yo", title:"Fluent emprendimiento(yo) initiated at 4<br/>and terminated at transition to 11"}, _101360{content:"yo", end:4, group:"pobreza/1", id:3, start:1, subgroup:"yo", title:"Fluent pobreza(yo) initiated at 1<br/>and terminated at transition to 4"}, _101486{content:"yo", end:11, group:"riqueza/1", id:4, start:5, subgroup:"yo", title:"Fluent riqueza(yo) initiated at 5<br/>and terminated at transition to 11"}, _101612{content:"yo", end:11, group:"salario/1", id:5, start:4, subgroup:"yo", title:"Fluent salario(yo) initiated at 4<br/>and terminated at transition to 11"}, _101738{content:"yo", end:11, group:"salud/1", id:6, start:1, subgroup:"yo", title:"Fluent salud(yo) initiated at 1<br/>and terminated at transition to 11"}, _101864{content:"yo", end:11, group:"suerte/1", id:7, start:1, subgroup:"yo", title:"Fluent suerte(yo) initiated at 1<br/>and terminated at transition to 11"}, _101990{content:"miseria", group:"event", id:8, start:2, style:"color:#E19735", title:"happens(miseria,1,2)", type:"point"}, _102116{content:"paso_a(pobreza)", group:"action", id:9, start:3, style:"color:green", title:"happens(paso_a(pobreza),2,3)", type:"point"}, _102242{content:"paso_a(emprendimiento)", group:"action", id:10, start:4, style:"color:green", title:"happens(paso_a(emprendimiento),3,4)", type:"point"}, _102368{content:"paso_a(empleo)", group:"action", id:11, start:4, style:"color:green", title:"happens(paso_a(empleo),3,4)", type:"point"}, _102494{content:"paso_a(riqueza)", group:"action", id:12, start:5, style:"color:green", title:"happens(paso_a(riqueza),4,5)", type:"point"}]}, [])).
 8007% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'potencia.pl')).
 8008% run_lps_corner_file1(/.../(lps_user_examples, 'potencia.pl')).
 8009% /pack/logicmoo_ec/test/lps_user_examples/potencia.pl:1
 8010% push_lps_dialect.
 8011% ops.
 8012% [ti=user, load= /.../(lps_user_examples, 'potencia.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'potencia.pl'), lps= /.../(lps_user_examples, 'potencia.pl'), using= /.../(lps_user_examples, 'potencia.pl')].
 8013% continue_lps_dialect.
 8014% ops.
 8015% /pack/logicmoo_ec/test/lps_user_examples/potencia.pl:3
 8016% pop_lps_dialect('$BLOB'("<stream>(0x562ef899e200)"),  (/.../(lps_user_examples, 'potencia.pl')-> /.../(lps_user_examples, 'potencia.pl'))).
 8017% ops.
 8018% :-listing('/pack/logicmoo_ec/test/lps_user_examples/potencia.pl':_64296).
 8019
 8020
 8021:- dynamic actions/1. 8022:- multifile actions/1. 8023
 8024% dB(/.../(lps_user_examples, 'potencia.pl'), lps_visualization(_41292{groups:[], items:[]}, [])).
 8025% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'PrologContagion.pl')).
 8026% run_lps_corner_file1(/.../(lps_user_examples, 'PrologContagion.pl')).
 8027% /pack/logicmoo_ec/test/lps_user_examples/PrologContagion.pl:1
 8028% push_lps_dialect.
 8029% ops.
 8030% [ti=user, load= /.../(lps_user_examples, 'PrologContagion.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'PrologContagion.pl'), lps= /.../(lps_user_examples, 'PrologContagion.pl'), using= /.../(lps_user_examples, 'PrologContagion.pl')].
 8031% continue_lps_dialect.
 8032% ops.
 8033
 8034% LPS:  tested(15,alice,positive).
 8035% Into: l_events(happens(tested(15,alice,positive),_26368,_26374),[]).
 8036% /pack/logicmoo_ec/test/lps_user_examples/PrologContagion.pl:29
 8037% pop_lps_dialect('$BLOB'("<stream>(0x562ef899f300)"),  (/.../(lps_user_examples, 'PrologContagion.pl')-> /.../(lps_user_examples, 'PrologContagion.pl'))).
 8038% ops.
 8039% :-listing('/pack/logicmoo_ec/test/lps_user_examples/PrologContagion.pl':_42874).
 8040
 8041
 8042:- dynamic infected/2. 8043
 8044
 8045met(1, [alice, bob]).
 8046met(6, [bob, charlie, delilah]).
 8047met(12, [delilah, edgar, fiona, gertrude, iona]).
 8048met(14, [edgar, fiona, gertrude, hannah, iona]).
 8049
 8050l_events(happens(tested(15, alice, positive), _, _), []).
 8051
 8052propagate :-
 8053    retractall(infected(_, _)),
 8054    tested(When, P, positive),
 8055    infectionInterval(When, Begin, _),
 8056    assert(infected(Begin, P)),
 8057    fail.
 8058propagate :-
 8059    met(When, Persons),
 8060    select(Sick, Persons, Others),
 8061    (   infected(Begin, Sick)
 8062    ->  true
 8063    ),
 8064    Begin=<When,
 8065    member(Victim, Others),
 8066    \+ infected(_, Victim),
 8067    assert(infected(When, Victim)),
 8068    fail.
 8069propagate :-
 8070    \+ ( infected(When, P),
 8071         \+ writeln(When/P)
 8072       ).
 8073
 8074:- dynamic actions/1. 8075:- multifile actions/1. 8076
 8077
 8078infectionInterval(Test, Begin, End) :-
 8079    Begin is Test-5,
 8080    End is Test+10.
 8081% dB(/.../(lps_user_examples, 'PrologContagion.pl'), lps_visualization(_38324{groups:[], items:[]}, [])).
 8082% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'purereacting.pl')).
 8083% run_lps_corner_file1(/.../(lps_user_examples, 'purereacting.pl')).
 8084% /pack/logicmoo_ec/test/lps_user_examples/purereacting.pl:1
 8085% push_lps_dialect.
 8086% ops.
 8087% [ti=user, load= /.../(lps_user_examples, 'purereacting.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'purereacting.pl'), lps= /.../(lps_user_examples, 'purereacting.pl'), using= /.../(lps_user_examples, 'purereacting.pl')].
 8088% continue_lps_dialect.
 8089% ops.
 8090
 8091% LPS:  events(alguien_me_ataca).
 8092% Into: events([alguien_me_ataca]).
 8093
 8094% LPS:  actions((responde_igual,consigue_ayuda,trata_de_escapar)).
 8095% Into: actions([responde_igual,consigue_ayuda,trata_de_escapar]).
 8096
 8097% LPS:  observe(from(alguien_me_ataca,to(1,2))).
 8098% Into: observe([alguien_me_ataca],2).
 8099
 8100% LPS:  then(if(from(alguien_me_ataca,to(_22678,_22680))),from(responde_igual,to(_22680,_22816))).
 8101% Into: reactive_rule([happens(alguien_me_ataca,_22678,_22680)],[happens(responde_igual,_22680,_22816)]).
 8102
 8103% LPS:  then(if(from(alguien_me_ataca,to(_24022,_24024))),from(consigue_ayuda,to(_24024,_24160))).
 8104% Into: reactive_rule([happens(alguien_me_ataca,_24022,_24024)],[happens(consigue_ayuda,_24024,_24160)]).
 8105
 8106% LPS:  then(if(from(alguien_me_ataca,to(_25366,_25368))),from(trata_de_escapar,to(_25368,_25504))).
 8107% Into: reactive_rule([happens(alguien_me_ataca,_25366,_25368)],[happens(trata_de_escapar,_25368,_25504)]).
 8108% /pack/logicmoo_ec/test/lps_user_examples/purereacting.pl:23
 8109% pop_lps_dialect('$BLOB'("<stream>(0x562ef897e600)"),  (/.../(lps_user_examples, 'purereacting.pl')-> /.../(lps_user_examples, 'purereacting.pl'))).
 8110% ops.
 8111% :-listing('/pack/logicmoo_ec/test/lps_user_examples/purereacting.pl':_34290).
 8112
 8113
 8114reactive_rule([happens(alguien_me_ataca, _, A)], [happens(responde_igual, A, _)]).
 8115reactive_rule([happens(alguien_me_ataca, _, A)], [happens(consigue_ayuda, A, _)]).
 8116reactive_rule([happens(alguien_me_ataca, _, A)], [happens(trata_de_escapar, A, _)]).
 8117
 8118:- dynamic actions/1. 8119:- multifile actions/1. 8120
 8121actions([responde_igual, consigue_ayuda, trata_de_escapar]).
 8122
 8123events([alguien_me_ataca]).
 8124
 8125observe([alguien_me_ataca], 2).
 8126
 8127maxTime(10).
 8128% dB(/.../(lps_user_examples, 'purereacting.pl'), lps_visualization(_67564{groups:[_66970{content:"Events", id:"event", order:1}, _67032{content:"Actions", id:"action", order:4}], items:[_67154{content:"alguien_me_ataca", group:"event", id:0, start:2, style:"color:#E19735", title:"happens(alguien_me_ataca,1,2)", type:"point"}, _67280{content:"responde_igual", group:"action", id:1, start:3, style:"color:green", title:"happens(responde_igual,2,3)", type:"point"}, _67406{content:"consigue_ayuda", group:"action", id:2, start:3, style:"color:green", title:"happens(consigue_ayuda,2,3)", type:"point"}, _67532{content:"trata_de_escapar", group:"action", id:3, start:3, style:"color:green", title:"happens(trata_de_escapar,2,3)", type:"point"}]}, [])).
 8129% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'PxkqiaFK.pl')).
 8130% run_lps_corner_file1(/.../(lps_user_examples, 'PxkqiaFK.pl')).
 8131% /pack/logicmoo_ec/test/lps_user_examples/PxkqiaFK.pl:1
 8132% push_lps_dialect.
 8133% ops.
 8134% [ti=user, load= /.../(lps_user_examples, 'PxkqiaFK.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'PxkqiaFK.pl'), lps= /.../(lps_user_examples, 'PxkqiaFK.pl'), using= /.../(lps_user_examples, 'PxkqiaFK.pl')].
 8135% continue_lps_dialect.
 8136% ops.
 8137
 8138% LPS:  fluents(fire).
 8139% Into: fluents([fire]).
 8140
 8141% LPS:  actions((escape,eliminate)).
 8142% Into: actions([escape,eliminate]).
 8143
 8144% LPS:  events(deal_with_fire).
 8145% Into: events([deal_with_fire]).
 8146
 8147% LPS:  initially(fire).
 8148% Into: initial_state([fire]).
 8149
 8150% LPS:  then(if(at(fire,_58540)),from(deal_with_fire,to(_58540,_58644))).
 8151% Into: reactive_rule([holds(fire,_58540)],[happens(deal_with_fire,_58540,_58644)]).
 8152
 8153% LPS:  if(from(deal_with_fire,to(_60218,_60220)),from(escape,to(_60218,_60220))).
 8154% Into: l_events(happens(deal_with_fire,_60218,_60220),[happens(escape,_60218,_60220)]).
 8155
 8156% LPS:  if(from(deal_with_fire,to(_61474,_61476)),from(eliminate,to(_61474,_61476))).
 8157% Into: l_events(happens(deal_with_fire,_61474,_61476),[happens(eliminate,_61474,_61476)]).
 8158
 8159% LPS:  terminates(eliminate,fire).
 8160% Into: terminated(happens(eliminate,_63784,_63790),fire,[]).
 8161% /pack/logicmoo_ec/test/lps_user_examples/PxkqiaFK.pl:25
 8162% pop_lps_dialect('$BLOB'("<stream>(0x562ef86eec00)"),  (/.../(lps_user_examples, 'PxkqiaFK.pl')-> /.../(lps_user_examples, 'PxkqiaFK.pl'))).
 8163% ops.
 8164% :-listing('/pack/logicmoo_ec/test/lps_user_examples/PxkqiaFK.pl':_71366).
 8165
 8166
 8167fluents([fire]).
 8168
 8169terminated(happens(eliminate, _, _), fire, []).
 8170
 8171reactive_rule([holds(fire, A)], [happens(deal_with_fire, A, _)]).
 8172
 8173initial_state([fire]).
 8174
 8175l_events(happens(deal_with_fire, A, B), [happens(escape, A, B)]).
 8176l_events(happens(deal_with_fire, A, B), [happens(eliminate, A, B)]).
 8177
 8178:- dynamic actions/1. 8179:- multifile actions/1. 8180
 8181actions([escape, eliminate]).
 8182
 8183events([deal_with_fire]).
 8184
 8185maxTime(5).
 8186% dB(/.../(lps_user_examples, 'PxkqiaFK.pl'), lps_visualization(_61742{groups:[_61034{content:"fire", id:"fire/0", order:3, subgroupStack:"false"}, _61100{content:"Actions", id:"action", order:4}], items:[_61210{content:"fire", end:6, group:"fire/0", id:0, start:1, title:"Fluent fire initiated at 1<br/>and terminated at transition to 6"}, _61332{content:"escape", group:"action", id:1, start:2, style:"color:green", title:"happens(escape,1,2)", type:"point"}, _61458{content:"escape", group:"action", id:2, start:3, style:"color:green", title:"happens(escape,2,3)", type:"point"}, _61584{content:"escape", group:"action", id:3, start:4, style:"color:green", title:"happens(escape,3,4)", type:"point"}, _61710{content:"escape", group:"action", id:4, start:5, style:"color:green", title:"happens(escape,4,5)", type:"point"}]}, [])).
 8187% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'reactivesolutions.pl')).
 8188% run_lps_corner_file1(/.../(lps_user_examples, 'reactivesolutions.pl')).
 8189% /pack/logicmoo_ec/test/lps_user_examples/reactivesolutions.pl:1
 8190% push_lps_dialect.
 8191% ops.
 8192% [ti=user, load= /.../(lps_user_examples, 'reactivesolutions.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'reactivesolutions.pl'), lps= /.../(lps_user_examples, 'reactivesolutions.pl'), using= /.../(lps_user_examples, 'reactivesolutions.pl')].
 8193% continue_lps_dialect.
 8194% ops.
 8195
 8196% LPS:  events(b/1).
 8197% Into: events([b(_19450)]).
 8198
 8199% LPS:  then(if(true),b(_19486)).
 8200% Into: reactive_rule([],[happens(b(_19486),_20538,_20544)]).
 8201
 8202% LPS:  if(b(_20530),c(_20530)).
 8203% Into: l_events(happens(b(_20530),_21596,_21596),[c(_20530)]).
 8204% /pack/logicmoo_ec/test/lps_user_examples/reactivesolutions.pl:11
 8205% pop_lps_dialect('$BLOB'("<stream>(0x562ef86f1d00)"),  (/.../(lps_user_examples, 'reactivesolutions.pl')-> /.../(lps_user_examples, 'reactivesolutions.pl'))).
 8206% ops.
 8207% :-listing('/pack/logicmoo_ec/test/lps_user_examples/reactivesolutions.pl':_33824).
 8208
 8209
 8210c(1) :-
 8211    writeln(1).
 8212c(2) :-
 8213    writeln(2).
 8214c(3) :-
 8215    writeln(3).
 8216
 8217reactive_rule([], [happens(b(_), _, _)]).
 8218
 8219l_events(happens(b(A), B, B), [c(A)]).
 8220
 8221:- dynamic actions/1. 8222:- multifile actions/1. 8223
 8224
 8225events([b(_)]).
 82261
 82272
 82283
 8229% dB(/.../(lps_user_examples, 'reactivesolutions.pl'), lps_visualization(_32272{groups:[], items:[]}, [])).
 8230% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'realt_time_cycle(1).pl')).
 8231% run_lps_corner_file1(/.../(lps_user_examples, 'realt_time_cycle(1).pl')).
 8232% /pack/logicmoo_ec/test/lps_user_examples/realt_time_cycle(1).pl:1
 8233% push_lps_dialect.
 8234% ops.
 8235% [ti=user, load= /.../(lps_user_examples, 'realt_time_cycle(1).pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'realt_time_cycle(1).pl'), lps= /.../(lps_user_examples, 'realt_time_cycle(1).pl'), using= /.../(lps_user_examples, 'realt_time_cycle(1).pl')].
 8236% continue_lps_dialect.
 8237% ops.
 8238
 8239% LPS:  observe(at(remove(me,items),2019/6/17)).
 8240% Into: observe([remove(me,items)],2019/6/17).
 8241% /pack/logicmoo_ec/test/lps_user_examples/realt_time_cycle(1).pl:11
 8242% pop_lps_dialect('$BLOB'("<stream>(0x562ef86ee500)"),  (/.../(lps_user_examples, 'realt_time_cycle(1).pl')-> /.../(lps_user_examples, 'realt_time_cycle(1).pl'))).
 8243% ops.
 8244% :-listing('/pack/logicmoo_ec/test/lps_user_examples/realt_time_cycle(1).pl':_29406).
 8245
 8246
 8247simulatedRealTimePerCycle(T) :-
 8248    T is 86400/3.
 8249
 8250simulatedRealTimeBeginning('2019-06-15').
 8251
 8252:- dynamic actions/1. 8253:- multifile actions/1. 8254
 8255
 8256observe([remove(me, items)], 2019/6/17).
 8257
 8258maxTime(30).
 8259% dB(/.../(lps_user_examples, 'realt_time_cycle(1).pl'), lps_visualization(_40754{groups:[_40548{content:"Events", id:"event", order:1}], items:[_40670{content:"remove(me,items)", group:"event", id:0, start:9, style:"color:#E19735", title:"happens(remove(me,items),8,9)", type:"point"}], simulatedRealTime:_40742{begin:1560556800.0, cycle:28800}}, [])).
 8260% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'realt_time_cycle.pl')).
 8261% run_lps_corner_file1(/.../(lps_user_examples, 'realt_time_cycle.pl')).
 8262% /pack/logicmoo_ec/test/lps_user_examples/realt_time_cycle.pl:1
 8263% push_lps_dialect.
 8264% ops.
 8265% [ti=user, load= /.../(lps_user_examples, 'realt_time_cycle.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'realt_time_cycle.pl'), lps= /.../(lps_user_examples, 'realt_time_cycle.pl'), using= /.../(lps_user_examples, 'realt_time_cycle.pl')].
 8266% continue_lps_dialect.
 8267% ops.
 8268
 8269% LPS:  observe(at(remove(me,items),2019/6/17)).
 8270% Into: observe([remove(me,items)],2019/6/17).
 8271% /pack/logicmoo_ec/test/lps_user_examples/realt_time_cycle.pl:11
 8272% pop_lps_dialect('$BLOB'("<stream>(0x562ef85cbe00)"),  (/.../(lps_user_examples, 'realt_time_cycle.pl')-> /.../(lps_user_examples, 'realt_time_cycle.pl'))).
 8273% ops.
 8274% :-listing('/pack/logicmoo_ec/test/lps_user_examples/realt_time_cycle.pl':_30458).
 8275
 8276
 8277simulatedRealTimePerCycle(T) :-
 8278    T is 86400/3.
 8279
 8280simulatedRealTimeBeginning('2019-06-15').
 8281
 8282:- dynamic actions/1. 8283:- multifile actions/1. 8284
 8285
 8286observe([remove(me, items)], 2019/6/17).
 8287
 8288maxTime(30).
 8289% dB(/.../(lps_user_examples, 'realt_time_cycle.pl'), lps_visualization(_42864{groups:[_42658{content:"Events", id:"event", order:1}], items:[_42780{content:"remove(me,items)", group:"event", id:0, start:9, style:"color:#E19735", title:"happens(remove(me,items),8,9)", type:"point"}], simulatedRealTime:_42852{begin:1560556800.0, cycle:28800}}, [])).
 8290% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'salomon.pl')).
 8291% run_lps_corner_file1(/.../(lps_user_examples, 'salomon.pl')).
 8292% /pack/logicmoo_ec/test/lps_user_examples/salomon.pl:1
 8293% push_lps_dialect.
 8294% ops.
 8295% [ti=user, load= /.../(lps_user_examples, 'salomon.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'salomon.pl'), lps= /.../(lps_user_examples, 'salomon.pl'), using= /.../(lps_user_examples, 'salomon.pl')].
 8296% continue_lps_dialect.
 8297% ops.
 8298
 8299% LPS:  events((disputa_entre(_19778,_19780),poner_a_prueba(_19778,_19780),propone_salida_drastica(_19876),tomar_decision)).
 8300% Into: events([disputa_entre(_19778,_19780),poner_a_prueba(_19778,_19780),propone_salida_drastica(_19876),tomar_decision]).
 8301
 8302% LPS:  actions((propone_dividir_nino(_21140),dice(_21140,_21196),declara(_21140,_21252),dicta(_21140,_21308))).
 8303% Into: actions([propone_dividir_nino(_21140),dice(_21140,_21196),declara(_21140,_21252),dicta(_21140,_21308)]).
 8304
 8305% LPS:  observe(from(disputa_entre(a,b),to(1,2))).
 8306% Into: observe([disputa_entre(a,b)],2).
 8307
 8308% LPS:  then(if(from(disputa_entre(_23762,_23764),to(_23800,_23802))),from(poner_a_prueba(_23762,_23764),to(_23802,_23978))).
 8309% Into: reactive_rule([happens(disputa_entre(_23762,_23764),_23800,_23802)],[happens(poner_a_prueba(_23762,_23764),_23802,_23978)]).
 8310
 8311% LPS:  if(from(poner_a_prueba(_25240,_25242),to(_25278,_25280)),from(propone_salida_drastica(salomon),to(_25278,_25280))).
 8312% Into: l_events(happens(poner_a_prueba(_25240,_25242),_25278,_25280),[happens(propone_salida_drastica(salomon),_25278,_25280)]).
 8313
 8314% LPS:  if(from(propone_salida_drastica(_26580),to(_26616,_26618)),from(propone_dividir_nino(_26580),to(_26616,_26618))).
 8315% Into: l_events(happens(propone_salida_drastica(_26580),_26616,_26618),[happens(propone_dividir_nino(_26580),_26616,_26618)]).
 8316
 8317% LPS:  then(if((from(propone_dividir_nino(salomon),to(_28004,_28006)),mujer(_28104),soy_su_madre(_28104))),from(dice(_28104,'No lo mate! D�selo a Ella'),to(_28006,_28326))).
 8318% Into: reactive_rule([happens(propone_dividir_nino(salomon),_28004,_28006),mujer(_28104),soy_su_madre(_28104)],[happens(dice(_28104,'No lo mate! D�selo a Ella'),_28006,_28326)]).
 8319
 8320% LPS:  then(if((from(propone_dividir_nino(salomon),to(_30544,_30546)),mujer(_30644),not(soy_su_madre(_30644)))),from(dice(_30644,'S�, m�telo'),to(_30546,_30890))).
 8321% Into: reactive_rule([happens(propone_dividir_nino(salomon),_30544,_30546),mujer(_30644),not(soy_su_madre(_30644))],[happens(dice(_30644,'S�, m�telo'),_30546,_30890)]).
 8322
 8323% LPS:  then(if((from(propone_dividir_nino(_33588),to(_33624,_33626)),from(dice(_33738,'No lo mate! D�selo a Ella'),to(_33776,_33778)),from(dice(_33890,'S�, m�telo'),to(_33928,_33930)))),(from(declara(_33588,la_verdadera_madre_es(_33738)),to(_34192,_34194)),from(dicta(_33588,entreguen_nino_a(_33738)),to(_34194,_34370)))).
 8324% Into: reactive_rule([happens(propone_dividir_nino(_33588),_33624,_33626),happens(dice(_33738,'No lo mate! D�selo a Ella'),_33776,_33778),happens(dice(_33890,'S�, m�telo'),_33928,_33930)],[happens(declara(_33588,la_verdadera_madre_es(_33738)),_34192,_34194),happens(dicta(_33588,entreguen_nino_a(_33738)),_34194,_34370)]).
 8325% /pack/logicmoo_ec/test/lps_user_examples/salomon.pl:68
 8326% pop_lps_dialect('$BLOB'("<stream>(0x562ef6d1c200)"),  (/.../(lps_user_examples, 'salomon.pl')-> /.../(lps_user_examples, 'salomon.pl'))).
 8327% ops.
 8328% :-listing('/pack/logicmoo_ec/test/lps_user_examples/salomon.pl':_47314).
 8329
 8330
 8331:- dynamic used/1. 8332
 8333used(0).
 8334
 8335:- dynamic state/1. 8336
 8337state(real_time(1601499407.4318533)).
 8338state(lps_user(unknown_user)).
 8339state(lps_user(unknown_user, unknown_email)).
 8340
 8341soy_su_madre(b).
 8342
 8343:- dynamic tried/3. 8344
 8345
 8346:- dynamic happens/3. 8347
 8348
 8349:- dynamic lps_test_result/3. 8350
 8351lps_test_result(fluents, 0, 0).
 8352lps_test_result(events, 1, 0).
 8353lps_test_result(fluents, 1, 0).
 8354lps_test_result(events, 2, 1).
 8355lps_test_result(fluents, 2, 0).
 8356lps_test_result(events, 3, 1).
 8357lps_test_result(fluents, 3, 0).
 8358lps_test_result(events, 4, 2).
 8359lps_test_result(fluents, 4, 0).
 8360lps_test_result(events, 5, 1).
 8361lps_test_result(fluents, 5, 0).
 8362lps_test_result(events, 6, 1).
 8363lps_test_result(fluents, 6, 0).
 8364lps_test_result(events, 7, 0).
 8365lps_test_result(fluents, 7, 0).
 8366lps_test_result(events, 8, 0).
 8367lps_test_result(fluents, 8, 0).
 8368lps_test_result(events, 9, 0).
 8369lps_test_result(fluents, 9, 0).
 8370lps_test_result(events, 10, 0).
 8371lps_test_result(fluents, 10, 0).
 8372lps_test_result(events, 11, 0).
 8373lps_test_result(fluents, 11, 0).
 8374lps_test_result(events, 12, 0).
 8375lps_test_result(fluents, 12, 0).
 8376lps_test_result(events, 13, 0).
 8377lps_test_result(fluents, 13, 0).
 8378lps_test_result(events, 14, 0).
 8379lps_test_result(fluents, 14, 0).
 8380lps_test_result(events, 15, 0).
 8381lps_test_result(fluents, 15, 0).
 8382lps_test_result(events, 16, 0).
 8383lps_test_result(fluents, 16, 0).
 8384lps_test_result(events, 17, 0).
 8385lps_test_result(fluents, 17, 0).
 8386lps_test_result(events, 18, 0).
 8387lps_test_result(fluents, 18, 0).
 8388lps_test_result(events, 19, 0).
 8389lps_test_result(fluents, 19, 0).
 8390lps_test_result(events, 20, 0).
 8391lps_test_result(fluents, 20, 0).
 8392
 8393l_events(happens(poner_a_prueba(_, _), A, B), [happens(propone_salida_drastica(salomon), A, B)]).
 8394l_events(happens(propone_salida_drastica(A), B, C), [happens(propone_dividir_nino(A), B, C)]).
 8395
 8396maxtime(10).
 8397
 8398:- dynamic lps_test_action_ancestor/3. 8399
 8400lps_test_action_ancestor(poner_a_prueba(a, b), 2, 3).
 8401lps_test_action_ancestor(propone_salida_drastica(salomon), 2, 3).
 8402
 8403:- dynamic actions/1. 8404:- multifile actions/1. 8405
 8406actions([propone_dividir_nino(A), dice(A, _), declara(A, _), dicta(A, _)]).
 8407
 8408mujer(a).
 8409mujer(b).
 8410
 8411:- dynamic current_goal/1. 8412
 8413current_goal(0).
 8414
 8415:- dynamic lps_test_result_item/3. 8416
 8417lps_test_result_item(events, 2, disputa_entre(a, b)).
 8418lps_test_result_item(events, 3, propone_dividir_nino(salomon)).
 8419lps_test_result_item(events, 4, dice(a, 'S�, m�telo')).
 8420lps_test_result_item(events, 4, dice(b, 'No lo mate! D�selo a Ella')).
 8421lps_test_result_item(events, 5, declara(salomon, la_verdadera_madre_es(b))).
 8422lps_test_result_item(events, 6, dicta(salomon, entreguen_nino_a(b))).
 8423
 8424:- dynamic next_state/1. 8425
 8426
 8427:- dynamic lps_updating_current_state/0. 8428
 8429
 8430:- dynamic real_time_beginning/1. 8431
 8432real_time_beginning(1601499407.205363).
 8433
 8434:- dynamic option/1. 8435
 8436option(make_test).
 8437option(swish).
 8438option(dc).
 8439option(silent).
 8440
 8441reactive_rule([happens(disputa_entre(A, B), _, C)], [happens(poner_a_prueba(A, B), C, _)]).
 8442reactive_rule([happens(propone_dividir_nino(salomon), _, A), mujer(B), soy_su_madre(B)], [happens(dice(B, 'No lo mate! D�selo a Ella'), A, _)]).
 8443reactive_rule([happens(propone_dividir_nino(salomon), _, A), mujer(B), not(soy_su_madre(B))], [happens(dice(B, 'S�, m�telo'), A, _)]).
 8444reactive_rule([happens(propone_dividir_nino(A), _, _), happens(dice(B, 'No lo mate! D�selo a Ella'), _, _), happens(dice(_, 'S�, m�telo'), _, _)], [happens(declara(A, la_verdadera_madre_es(B)), _, C), happens(dicta(A, entreguen_nino_a(B)), C, _)]).
 8445
 8446:- dynamic depth/1. 8447
 8448depth(0).
 8449
 8450:- dynamic current_time/1. 8451
 8452current_time(21).
 8453
 8454events([disputa_entre(A, B), poner_a_prueba(A, B), propone_salida_drastica(_), tomar_decision]).
 8455
 8456observe([disputa_entre(a, b)], 2).
 8457% with_abs_paths(run_lps_corner_file1, /.../(lps_user_examples, 'salomon.pl')).
 8458% run_lps_corner_file1(/.../(lps_user_examples, 'salomon.pl')).
 8459% /pack/logicmoo_ec/test/lps_user_examples/salomon.pl:1
 8460% push_lps_dialect.
 8461% ops.
 8462% [ti=user, load= /.../(lps_user_examples, 'salomon.pl'), strip=lps, ctx=lps, sm= /.../(lps_user_examples, 'salomon.pl'), lps= /.../(lps_user_examples, 'salomon.pl'), using= /.../(lps_user_examples, 'salomon.pl')].
 8463% continue_lps_dialect.
 8464% ops.
 8465
 8466% LPS:  events((disputa_entre(_19810,_19812),poner_a_prueba(_19810,_19812),propone_salida_drastica(_19908),tomar_decision)).
 8467% Into: events([disputa_entre(_19810,_19812),poner_a_prueba(_19810,_19812),propone_salida_drastica(_19908),tomar_decision]).
 8468
 8469% LPS:  actions((propone_dividir_nino(_21172),dice(_21172,_21228),declara(_21172,_21284),dicta(_21172,_21340))).
 8470% Into: actions([propone_dividir_nino(_21172),dice(_21172,_21228),declara(_21172,_21284),dicta(_21172,_21340)]).
 8471
 8472% LPS:  observe(from(disputa_entre(a,b),to(1,2))).
 8473% Into: observe([disputa_entre(a,b)],2).
 8474
 8475% LPS:  then(if(from(disputa_entre(_23794,_23796),to(_23832,_23834))),from(poner_a_prueba(_23794,_23796),to(_23834,_24010))).
 8476% Into: reactive_rule([happens(disputa_entre(_23794,_23796),_23832,_23834)],[happens(poner_a_prueba(_23794,_23796),_23834,_24010)]).
 8477
 8478% LPS:  if(from(poner_a_prueba(_25272,_25274),to(_25310,_25312)),from(propone_salida_drastica(salomon),to(_25310,_25312))).
 8479% Into: l_events(happens(poner_a_prueba(_25272,_25274),_25310,_25312),[happens(propone_salida_drastica(salomon),_25310,_25312)]).
 8480
 8481% LPS:  if(from(propone_salida_drastica(_26612),to(_26648,_26650)),from(propone_dividir_nino(_26612),to(_26648,_26650))).
 8482% Into: l_events(happens(propone_salida_drastica(_26612),_26648,_26650),[happens(propone_dividir_nino(_26612),_26648,_26650)]).
 8483
 8484% LPS:  then(if((from(propone_dividir_nino(salomon),to(_28036,_28038)),mujer(_28136),soy_su_madre(_28136))),from(dice(_28136,'No lo mate! D�selo a Ella'),to(_28038,_28358))).
 8485% Into: reactive_rule([happens(propone_dividir_nino(salomon),_28036,_28038),mujer(_28136),soy_su_madre(_28136)],[happens(dice(_28136,'No lo mate! D�selo a Ella'),_28038,_28358)]).
 8486
 8487% LPS:  then(if((from(propone_dividir_nino(salomon),to(_30576,_30578)),mujer(_30676),not(soy_su_madre(_30676)))),from(dice(_30676,'S�, m�telo'),to(_30578,_30922))).
 8488% Into: reactive_rule([happens(propone_dividir_nino(salomon),_30576,_30578),mujer(_30676),not(soy_su_madre(_30676))],[happens(dice(_30676,'S�, m�telo'),_30578,_30922)]).
 8489
 8490% LPS:  then(if((from(propone_dividir_nino(_33620),to(_33656,_33658)),from(dice(_33770,'No lo mate! D�selo a Ella'),to(_33808,_33810)),from(dice(_33922,'S�, m�telo'),to(_33960,_33962)))),(from(declara(_33620,la_verdadera_madre_es(_33770)),to(_34224,_34226)),from(dicta(_33620,entreguen_nino_a(_33770)),to(_34226,_34402)))).
 8491% Into: reactive_rule([happens(propone_dividir_nino(_33620),_33656,_33658),happens(dice(_33770,'No lo mate! D�selo a Ella'),_33808,_33810),happens(dice(_33922,'S�, m�telo'),_33960,_33962)],[happens(declara(_33620,la_verdadera_madre_es(_33770)),_34224,_34226),happens(dicta(_33620,entreguen_nino_a(_33770)),_34226,_34402)]).
 8492% /pack/logicmoo_ec/test/lps_user_examples/salomon.pl:68
 8493% pop_lps_dialect('$BLOB'("<stream>(0x562ef6d1dd00)"),  (/.../(lps_user_examples, 'salomon.pl')-> /.../(lps_user_examples, 'salomon.pl'))).
 8494% ops.
 8495% :-listing('/pack/logicmoo_ec/test/lps_user_examples/salomon.pl':_47346).
 8496
 8497
 8498:- dynamic used/1. 8499
 8500used(0).
 8501used(0).
 8502
 8503:- dynamic state/1. 8504
 8505state(real_time(1601499407.4318533)).
 8506state(lps_user(unknown_user)).
 8507state(lps_user(unknown_user, unknown_email)).
 8508state(real_time(1601499787.071311)).
 8509state(lps_user(unknown_user)).
 8510state(lps_user(unknown_user, unknown_email)).
 8511
 8512soy_su_madre(b).
 8513
 8514:- dynamic tried/3. 8515
 8516
 8517:- dynamic happens/3. 8518
 8519
 8520:- dynamic lps_test_result/3. 8521
 8522lps_test_result(fluents, 0, 0).
 8523lps_test_result(events, 1, 0).
 8524lps_test_result(fluents, 1, 0).
 8525lps_test_result(events, 2, 1).
 8526lps_test_result(fluents, 2, 0).
 8527lps_test_result(events, 3, 1).
 8528lps_test_result(fluents, 3, 0).
 8529lps_test_result(events, 4, 2).
 8530lps_test_result(fluents, 4, 0).
 8531lps_test_result(events, 5, 1).
 8532lps_test_result(fluents, 5, 0).
 8533lps_test_result(events, 6, 1).
 8534lps_test_result(fluents, 6, 0).
 8535lps_test_result(events, 7, 0).
 8536lps_test_result(fluents, 7, 0).
 8537lps_test_result(events, 8, 0).
 8538lps_test_result(fluents, 8, 0).
 8539lps_test_result(events, 9, 0).
 8540lps_test_result(fluents, 9, 0).
 8541lps_test_result(events, 10, 0).
 8542lps_test_result(fluents, 10, 0).
 8543lps_test_result(events, 11, 0).
 8544lps_test_result(fluents, 11, 0).
 8545lps_test_result(events, 12, 0).
 8546lps_test_result(fluents, 12, 0).
 8547lps_test_result(events, 13, 0).
 8548lps_test_result(fluents, 13, 0).
 8549lps_test_result(events, 14, 0).
 8550lps_test_result(fluents, 14, 0).
 8551lps_test_result(events, 15, 0).
 8552lps_test_result(fluents, 15, 0).
 8553lps_test_result(events, 16, 0).
 8554lps_test_result(fluents, 16, 0).
 8555lps_test_result(events, 17, 0).
 8556lps_test_result(fluents, 17, 0).
 8557lps_test_result(events, 18, 0).
 8558lps_test_result(fluents, 18, 0).
 8559lps_test_result(events, 19, 0).
 8560lps_test_result(fluents, 19, 0).
 8561lps_test_result(events, 20, 0).
 8562lps_test_result(fluents, 20, 0).
 8563lps_test_result(fluents, 0, 0).
 8564
 8565l_events(happens(poner_a_prueba(_, _), A, B), [happens(propone_salida_drastica(salomon), A, B)]).
 8566l_events(happens(propone_salida_drastica(A), B, C), [happens(propone_dividir_nino(A), B, C)]).
 8567
 8568maxtime(10).
 8569
 8570:- dynamic lps_test_action_ancestor/3. 8571
 8572lps_test_action_ancestor(poner_a_prueba(a, b), 2, 3).
 8573lps_test_action_ancestor(propone_salida_drastica(salomon), 2, 3).
 8574
 8575:- dynamic actions/1. 8576:- multifile actions/1. 8577
 8578actions([propone_dividir_nino(A), dice(A, _), declara(A, _), dicta(A, _)]).
 8579
 8580mujer(a).
 8581mujer(b).
 8582
 8583:- dynamic current_goal/1. 8584
 8585current_goal(0).
 8586current_goal(0).
 8587
 8588:- dynamic lps_test_result_item/3. 8589
 8590lps_test_result_item(events, 2, disputa_entre(a, b)).
 8591lps_test_result_item(events, 3, propone_dividir_nino(salomon)).
 8592lps_test_result_item(events, 4, dice(a, 'S�, m�telo')).
 8593lps_test_result_item(events, 4, dice(b, 'No lo mate! D�selo a Ella')).
 8594lps_test_result_item(events, 5, declara(salomon, la_verdadera_madre_es(b))).
 8595lps_test_result_item(events, 6, dicta(salomon, entreguen_nino_a(b))).
 8596
 8597:- dynamic next_state/1. 8598
 8599
 8600:- dynamic lps_updating_current_state/0. 8601
 8602
 8603:- dynamic real_time_beginning/1. 8604
 8605real_time_beginning(1601499407.205363).
 8606real_time_beginning(1601499787.0712419).
 8607
 8608:- dynamic option/1. 8609
 8610option(make_test).
 8611option(swish).
 8612option(dc).
 8613option(silent).
 8614
 8615reactive_rule([happens(disputa_entre(A, B), _, C)], [happens(poner_a_prueba(A, B), C, _)]).
 8616reactive_rule([happens(propone_dividir_nino(salomon), _, A), mujer(B), soy_su_madre(B)], [happens(dice(B, 'No lo mate! D�selo a Ella'), A, _)]).
 8617reactive_rule([happens(propone_dividir_nino(salomon), _, A), mujer(B), not(soy_su_madre(B))], [happens(dice(B, 'S�, m�telo'), A, _)]).
 8618reactive_rule([happens(propone_dividir_nino(A), _, _), happens(dice(B, 'No lo mate! D�selo a Ella'), _, _), happens(dice(_, 'S�, m�telo'), _, _)], [happens(declara(A, la_verdadera_madre_es(B)), _, C), happens(dicta(A, entreguen_nino_a(B)), C, _)]).
 8619
 8620:- dynamic depth/1. 8621
 8622depth(0).
 8623depth(0).
 8624
 8625:- dynamic current_time/1. 8626
 8627current_time(0).
 8628current_time(22).
 8629
 8630events([disputa_entre(A, B), poner_a_prueba(A, B), propone_salida_drastica(_), tomar_decision]).
 8631
 8632observe([disputa_entre(a, b)], 2).
 8633/*
 8634^  Call: (109) [logicmoo_lps] forall(((name_to_files('../test/lps_user_examples/salomon.pl', _18772)*->member(_18776, _18772);'../test/lps_user_examples/salomon.pl'=_18776), spec_to_files(_18776, _18790)), with_abs_paths(run_lps_corner_file1, _18790))
 8635^  Unify: (109) [$apply] forall(logicmoo_lps:((name_to_files('../test/lps_user_examples/salomon.pl', _18772)*->member(_18776, _18772);'../test/lps_user_examples/salomon.pl'=_18776), spec_to_files(_18776, _18790)), logicmoo_lps:with_abs_paths(run_lps_corner_file1, _18790))
 8636^  Call: (111) [logicmoo_lps] logicmoo_startup:name_to_files('../test/lps_user_examples/salomon.pl', _18772)
 8637^  Unify: (111) [logicmoo_lps] logicmoo_startup:name_to_files('../test/lps_user_examples/salomon.pl', _18772)
 8638^  Call: (112) [logicmoo_lps] logicmoo_startup:name_to_files('../test/lps_user_examples/salomon.pl', _18772, true)
 8639^  Unify: (112) [logicmoo_lps] logicmoo_startup:name_to_files('../test/lps_user_examples/salomon.pl', _18772, true)
 8640^  Call: (113) [logicmoo_lps] logicmoo_startup:name_to_files_('../test/lps_user_examples/salomon.pl', _18772, true)
 8641*/