36
39
42
45
48
51
54
57
60
63
66
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]).
117
120
123
126
129
132
135
138
141
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).
664
667
670
673
676
679
682
685
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).
725
728
731
734
737
740
743
746
749
752
755
758
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).
850
853
856
859
862
865
868
871
874
877
880
883
886
889
892
895
898
901
904
907
910
913
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).
1126
1129
1132
1135
1138
1141
1144
1147
1150
1153
1156
1159
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]).
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
1285
1288
1291
1294
1297
1300
1303
1306
1309
1312
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).
1447
1450
1453
1456
1459
1462
1465
1468
1471
1474
1477
1480
1483
1486
1489
1492
1495
1498
1501
1504
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).
1640
1643
1646
1649
1652
1655
1658
1661
1664
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). 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, []). 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). 1950
1953
1956
1959
1962
1965
1968
1971
1974
1977
1980
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).
2020
2023
2026
2029
2032
2035
2038
2041
2044
2047
2050
2053
2056
2059
2062
2065
2068
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).
2117
2120
2123
2126
2129
2132
2135
2138
2141
2144
2147
2150
2153
2156
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).
2202
2205
2208
2211
2214
2217
2220
2223
2226
2229
2232
2235
2238
2241
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).
2287
2290
2293
2296
2299
2302
2305
2308
2311
2314
2317
2320
2323
2326
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).
2372
2375
2378
2381
2384
2387
2390
2393
2396
2399
2402
2405
2408
2411
2414
2417
2420
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]).
2744
2747
2750
2753
2756
2759
2762
2765
2768
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]).
2806
2809
2812
2815
2818
2821
2824
2827
2830
2833
2836
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]).
2893
2896
2899
2902
2905
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).
2936
2939
2942
2945
2948
2951
2954
2957
2960
2963
2966
2969
2972
2975
2978
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).
3103
3106
3109
3112
3115
3118
3121
3124
3127
3130
3133
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).
3172
3175
3178
3181
3184
3187
3190
3193
3196
3199
3202
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).
3241
3244
3247
3250
3253
3256
3259
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).
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 3401
3404
3407
3410
3413
3416
3419
3422
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).
3461
3464
3467
3470
3473
3476
3479
3482
3485
3488
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).
3529
3532
3535
3538
3541
3544
3547
3550
3553
3556
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
3621
3622
3623:- dynamic actions/1. 3624:- multifile actions/1. 3625
3635
3638
3641
3644
3647
3650
3653
3656
3659
3662
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).
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).
3923
3924
3925:- dynamic actions/1. 3926:- multifile actions/1. 3927
3937
3940
3943
3946
3949
3952
3955
3958
3961
3964
3967
3970
3973
3976
3979
3982
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).
4035
4038
4041
4044
4047
4050
4053
4056
4059
4062
4065
4068
4071
4074
4077
4080
4083
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).
4135
4138
4141
4144
4147
4150
4153
4156
4159
4162
4165
4168
4171
4174
4177
4180
4183
4186
4189
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).
4262
4265
4268
4271
4274
4277
4280
4283
4286
4289
4292
4295
4298
4301
4304
4307
4310
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).
4362
4365
4368
4371
4374
4377
4380
4383
4386
4389
4392
4395
4398
4401
4404
4407
4410
4413
4416
4419
4422
4425
4428
4431
4434
4437
4440
4443
4446
4449
4452
4455
4458
4461
4464
4467
4470
4473
4476
4479
4482
4485
4488
4491
4494
4497
4500
4503
4506
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, _)]).
4672
4682
4685
4688
4691
4694
4697
4700
4703
4706
4709
4712
4715
4718
4721
4724
4727
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).
4793
4796
4799
4802
4805
4808
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).
4842
4845
4848
4851
4854
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
4887
4890
4893
4896
4899
4902
4905
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).
4945
4946
4947:- dynamic actions/1. 4948:- multifile actions/1. 4949
4963
4964
4965:- dynamic actions/1. 4966:- multifile actions/1. 4967
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).
5031
5034
5037
5040
5043
5046
5049
5052
5055
5058
5061
5064
5067
5070
5073
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).
5117
5120
5123
5126
5129
5132
5135
5138
5141
5144
5147
5150
5153
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).
5311
5314
5317
5320
5323
5326
5329
5332
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).
5367
5370
5373
5376
5379
5382
5385
5388
5391
5394
5397
5400
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).
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).
6433
6436
6439
6442
6445
6448
6451
6454
6457
6460
6463
6466
6469
6472
6475
6478
6481
6484
6487
6490
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).
6538
6541
6544
6547
6550
6553
6556
6559
6562
6565
6568
6571
6574
6577
6580
6583
6586
6589
6592
6595
6598
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).
6648
6651
6654
6657
6660
6663
6666
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).
6699
6702
6705
6708
6711
6714
6717
6720
6723
6726
6729
6732
6735
6738
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).
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.
7306
7309
7312
7315
7318
7321
7324
7327
7330
7333
7336
7339
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)]).
7381
7384
7387
7390
7393
7396
7399
7402
7405
7408
7411
7414
7417
7420
7423
7426
7429
7432
7435
7438
7441
7444
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).
7577
7580
7583
7586
7589
7592
7595
7598
7601
7604
7607
7610
7613
7616
7619
7622
7625
7628
7631
7634
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
7706
7709
7712
7715
7718
7721
7724
7727
7730
7733
7736
7739
7742
7745
7748
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).
7794
7797
7800
7803
7806
7809
7812
7815
7818
7821
7824
7827
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).
7870
7873
7876
7879
7882
7885
7888
7891
7894
7897
7900
7903
7906
7909
7912
7915
7918
7921
7924
7927
7930
7933
7936
7939
7942
7945
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).
8019
8020
8021:- dynamic actions/1. 8022:- multifile actions/1. 8023
8033
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.
8090
8093
8096
8099
8102
8105
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).
8137
8140
8143
8146
8149
8152
8155
8158
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).
8195
8198
8201
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).
8268
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).
8298
8301
8304
8307
8310
8313
8316
8319
8322
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).
8465
8468
8471
8474
8477
8480
8483
8486
8489
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).