3 * TS: Lessened worst bottlenecks in CHR compiler,
4 in the guard simplification phase.
8 * TS: Experimental dynattr option, for dynamic size attribute terms.
12 * TS: Extended observation analysis (abstract interpretation)
13 to deal with disjunctions. With Paolo Tacchella.
17 * TS: Renamed hprolog:substitute/4 to substitute_eq/4, because of
18 name conflict with library(edit).
22 * TS: Use line numbers in error and warning messages.
26 * TS: Added maintenance of line numbers through CHR compilation
27 as an option: chr_option(line_numbers,on).
31 * TS: Bug fix: setarg/3 instantiation error reported by Mike Elston.
32 Caused by missing suspension argument in debug off, optimize off
37 * LDK: O(1) removal from hashtables, with experimental
38 chr_option(ht_removal,on).
42 * PVW: Bugfixes for optional use of CHR constraints in rule guards.
46 * PVW: Optional use of CHR constraints in rule guards.
50 * TS: Bug fix in compiler_errors.pl.
54 * TS: Bug fix in occurrence subsumption by Jon Sneyers.
58 * TS: New preprocessor feature.
60 * TS: Parametrization of experimental chr_identifier type.
66 * TS: Stronger static type checking.
68 * TS: Omitted buggy FD analysis from bootstrapping process.
74 * TS: Experimental chr_identifier type.
78 * TS: Allow for empty type definitions aka phantom types. These are
79 useful for some type-level tricks. A warning is issued so the
80 user can check whether a phantom type is intended. No other
81 phantom type-specific checks are in place yet.
83 * TS: Fixed static type checking of built-in types.
87 * TS: The dense_int type can now appear on the rhs of type alias
92 * TS: Fixed bug concerning matchings between ground and possibly
97 * TS: Fixed a bug in code generation, overeager removal of a clause.
101 * TS: Refactored some code.
105 * TS: Add exception handler to initialize chr_leash in new threads.
109 * TS: Bug fix for programs in debugging mode.
113 * JW: Fixed make clean
114 * JW: Enlarged stacks to make build succeed
118 * JW: Add target ln-install
122 * TS: Fixed wrong arities in not inlined predicates. Mike Elston.
126 * TS: Code clean-up, more inlining, only generate used imports.
130 * TS: Inlining and more specialization of auxiliary predicates.
134 * TS: Fixed bug for constraints without rules in debug mode.
136 * TS: Compiler clean-up
138 * TS: Experimental var_assoc_store.
143 * TS: Various minor code generation improvements, including smaller
148 * TS: Absolutely no lock checking when check_guard_bindings is disabled.
152 * TS: Minor optimizations for (-) arguments.
154 * TS: Important optimization for awakening fewer suspended constraints
158 * TS: Fixed typo in static type checker.
160 * TS: Documented static and dynamic type checking.
164 * TS: Fixed bug (type alias related) in static type checker. Mike Elston.
166 * TS: Added static type checking on variable matching in rule heads.
168 * TS: Added static type checking on CHR constraints in rule bodies.
172 * TS: New (limited) compile time type checking of rule heads.
176 * TS: New experimental robustness feature in debug mode:
177 runtime type checking of CHR constraints.
181 * TS: Minor bug fixes.
185 * TS: Improved performance of ai_observation_analysis,
186 mainly via additional tabling and passive declarations.
190 * TS: Disabled some code only intended for SICStus.
192 * TS: Fixed bug in removal of constraints. Spotted by Leslie De Koninck.
196 * TS: Next fix to tracer. Cconstraints in propagation
197 rules are shown in textual order.
201 * TS: Next few fixes to tracer. Constraints in simpagation rules
202 are now shown on the right side of the backslash.
206 * TS: Synchronization with SICStus version of K.U.Leuven CHR.
208 * TS: First few fixes to tracer. Cconstraints in simplification
209 rules are shown in textual order. Constraint insertions
214 * TS: Termination bug fixed in guard_entailment.
216 * TS: Runtime library predicate run_suspensions is now specialized
217 per constraint, avoiding requirement of fixed suspension layout.
219 * TS: Further update to suspension term layout. Only constraints for
220 which the propagation history is used get a history field.
224 * TS: Ignore propagation rules with trivial body 'true'.
228 * TS: Guard entailment now first simplifies the formula it processes,
229 in order to reduce the number of disjunctions, to obtain a smaller
234 * TS: Bug fix by Jon Sneyers: type aliases now support built-in types.
235 Spotted by Mike Elston.
237 * TS: Small refactorings based on Ciao port experience.
239 * TS: Removed -singleton stylecheck option now that portray_clause
240 prints singleton variables as _.
244 * JW: Make library(chr) load its private stuff silent.
248 * TS: Bug fix: too many guards were locked.
252 * TS: Most runtime library predicates are now specialized
253 per constraint, avoiding generic =.. and lists code.
255 Mayor update to suspension term layout. Layout may now
256 differ from one constraint to the other. Some unused suspension
257 fields (continuation goal and generation number) are omitted.
258 Further analysis can remove more fields.
260 Default store constraints now each have
261 their own global variable: a list of all the suspensions.
262 Removal from this list is now O(1) thanks to setarg/1 and
263 back pointers in the suspension terms. This can cause time
264 time complexity improvements in solvers that always have
265 variable indexing on their constraints.
267 Ground, non-indexed constraints are now removed from
268 their global list store in O(1), as for the default store.
270 Minor bug fixes in a number of places.
274 * TS: Fixed subtle bug in ai_observation analysis,
275 that caused goal sequences to only generate
276 the optimistic default answer pattern, leading
277 to invalid 'not observed' conclusions.
278 * TS: Variable indexing/suspension analysis now ignores functor/3
279 in guards. Could be extended to other built-ins
280 that cause an error when arguments are not
281 properly instantiated.
285 * TS: Renamed global variable id to chr_id in chr_runtime.pl.
288 * JS: Synchronization with experimental version:
289 - minor optimizations, e.g. efficient lookups with statically known
291 - new alternative syntax for passive declarations
292 - new dense_int built-in type + underlying store
293 - new type alias definitions, like in Mercury
296 * BD: small changes in chr_compiler_options.pl and chr_translate.chr
297 affecting only the SICStus port
300 * BD: lots of changes related to porting to SICStus
301 * TS: Now exception/3 hook is only used in SWI-Prolog
305 * TS: Use exception/3 hook to catch undefined
306 global variables of chr_runtime.pl and CHR modules,
307 for multi-threaded programs and saved states.
311 * JW: Fix "make check" path issues.
312 * TS: Removed all is_chr_file tests when loading file.
316 * BD: chr_swi.pl: option(optimize --> :- chr_option(optimize
317 * TS: Removed obsolete experimental optimization option.
318 * TS: Correctly report variable pragmas!
319 * TS: No constraints declared is no longer a special case.
323 * BD: chr_swi.pl - use_module(hprolog added for SICStus port
324 * TS: Removed operator declaration for '::'. No longer used.
328 * TS: Removed chr_constraints declaration again, in favor
329 of only the chr_constraint declaration and modified
330 documentation accordingly.
331 * TS: Modified documentation based on recommendations of Bart Demoen.
332 * TS: Added chr_info/3 predicate to chr_compiler_errors, as suggested by
333 Jon Sneyers. Now print banner on calling compiler.
337 * TS: warnings are now written to user_error stream.
341 * TS: option and constraints declarations are now deprecated. They
342 are replaced by chr_option and chr_constraint(s).
343 * TR: Made an interface for warnings and errors. Errors now implemented
345 * TR: Revised documentation.
348 * BD: chr_translate.chr, chr_translate_bootstrap2.chr
349 mutables "abstracted"
350 * BD: chr_translate_bootstrap1.chr
351 atomic_concat - some duplicate code of it is in more than one file :-(
352 create_get_mutable definitions if-deffed
353 verbosity_on/0 for porting
355 definitions of init_store/2, get_store/2, update_store/2
356 and of make_init_store_goal/make_get_store_goal/make_update_store_goal
357 removed prolog_flag/3 (seemed nowhere used)
358 chr_translate_bootstrap2.chr
359 make_init_store_goal/make_get_store_goal/make_update_store_goal introduced
360 verbosity_on/0 for porting
361 chr_translate_bootstrap.pl
362 atom_concat -> atomic_concat
363 verbosity_on/0 for porting
364 conditional import van library(terms)
366 make_init_store_goal etc. introduced
367 create_get_mutable_ref wherever needed (chr_translate*)
371 * BD: chr_runtime.pl:
373 included contents of chr_debug.pl
375 create_mutable changed into 'chr create_mutable'
376 got rid of explicit inlining and did it by goal expansion
377 inlining also of 'chr default_store'
379 removed :- use_module(chr(chr_debug))
380 module header: version for SICStus
381 * BD: chr_debug.pl: emptied
382 * BD: chr_translate.chr:
383 system specific declarations factored out in insert_declarations
384 changed two atom_concat/3 into atomic_concat/3 (because arg 2 was sometimes an int)
385 * BD: chr_compiler_utility.pl:
386 put atomic_concat/3 there
387 adapted atom_concat_list/2 to use it
388 * BD: chr_swi_bootstrap.pl:
389 introduced chr_swi_bootstrap/2 for ease of porting
390 exported also chr_compile/3
391 porting code for get_time stuff/read_term/absolute_file_name
392 * BD: builtins.pl, a_star.pl, clean_code.pl:
397 * BD: hprolog.pl: removed strip_attributes/2 and restore_attributes/2
400 * BD: chr_swi.pl: Removed code that took Handler for Module (in chr_expand(end_of_file)
401 Added :- chr_option(_,_) with same meaning as option(_,_)
402 is_chr_file: .chr is no longer a recognised suffix
403 added use_module(library(lists))
404 changed calls to source_location/2 into prolog_load_context/2
405 * BD: chr_translate.chr: chr_translate/2: added end_of_file to translated program
406 adapted SICStus compatibility message
407 made :- chr_option(_,_) available
408 changed precedence of + - ? to 980 (these ops are
409 probably not local enough to the module)
413 * TS: Further synchronization with hProlog.
417 * TS: Removed dead code in guard_entailment.chr
418 * TS: Fixed performance bug: now lookup is indexed
419 on maximal number of arguments.
420 * TS: Removed some redundant intermediate predicates
422 * TS: It is now possible to disable the printing
423 of the CHR constraint store per module,
424 through the option toplevel_show_store on/off
425 * TS: Synchronized with hProlog
426 * TS: bug fix in functional dependency analysis
430 * TS: Removed two dead predicates in chr_translate.chr
431 and hooked up the late_storage_analysis
432 that was being bypassed.
433 * TS: Renamed global_term_ref_1 to default_store.
434 * TS: Removed redundant predicate values_ht.
435 * TS: Compiler no longer generates dead code for never stored constraints,
436 i.e. attach/detach predicates.
437 This reduces the generated .pl by about 700 lines.
441 * TS: Two more bug fixes for constraints without
442 active occurrences that trigger.
446 * TS: Small optimization of code for constraints
447 without any active occurrence.
448 * TS: Fixed bug caused by previous bug fix:
449 added only_ground_indexed_arguments/1 test
450 to separate out that meaning from may_trigger/1.
454 * TS: Removed strip_attributes code.
455 * TS: Fixed bug that causes new constraints to be added on triggering.
459 * TS: Two minor bug fixes.
463 * TS: Fixed bug due to overly aggressive inlining of get_mutable_value.
467 * JS: Compiled code is broken, if debug is off and optimize too.
468 Debug off now entails optimize on.
470 * TS: Some fixes of the documentation. Thanks to Bart Demoen
475 * TS: Synchronized with hProlog.
479 * TS: Added missing operator declarations for prefix (?).
483 * JW: import lists into chr_compiler_utility.pl
485 * JW: make message hook for query(yes) detect CHR global variables.
487 * JW: Exported pairlist_delete_eq/3 from pairlist and use this in
488 chr_hashtable_store.pl
492 * TS: Renamed pairlist:delete/3 to pairlist:pairlist_delete/3.
496 * TS: Extended more efficient ground matching code to
497 removed simpagation occurrence code.
501 * TS: New input verification: duplicate constraint declaration
502 now reported as an error. Requested by Mike Elston.
503 * TS: More efficient matching code for ground constraints
504 when matching an argument of a partner constraint with
506 * JS: Bug fix in guard simplification.
510 * TS: Factored out option functionality into separate module.
511 * TS: Factored out utility code into separate module.
515 * TS: Changed chr_show_store/1 to use print/1 instead of write/1.
519 * TS: Removed spurious and conflicting operator definitions
520 for +, - and ? as mode declarations.
524 * TS: Added find_chr_constraint/1 functionality.
528 * TS: Improved compiler scalability: use nb_setval/2 to
529 remember compiled code through backtracking over
530 compilation process instead of assert/1.
531 * TS: Removed spurious comma from file.
535 * TS: Added option to disable toplevel constraint store printing.
536 * TS: Slightly improved hash table constraint store implementation.
540 * JW: Added patch from Jon Sneyers.
544 * TS: Improved head reordering heuristic.
545 * TS: Added support primitive for alternate built-in solver dependency.
549 * TS: Fixed bug that causes wrong output in chr_show_store.
553 * TS: Fixed several bugs in generation of debugable code.
557 * JW: Cleanup integration in SWI-Prolog environment:
558 - Extended SWI-Prolog library ordsets. Renamed ord_delete/3 to
559 ord_del_element/3 and ord_difference/3 to ord_subtract/3 for
560 better compatibility.
561 - Renamed module find to chr_find to avoid name conflict and declared
562 preds as meta-predicate.
563 - Re-inserted and exported strip_attributes/2 and
564 restore_attributes/2 in hprolog.pl. Deleted hprolog: from
566 - Added dummy option declarations to bootstrap compiler.
567 - Fixed path problems in makefile (-p chr=.) and install new
569 - Fixed typo 'chr show_store' --> chr_show_store.
573 * JS: Added guard entailment optimizations and
574 new syntax for type and mode declarations.
578 * TS: Use prolog:message/3 hook to automatically print
579 contents of CHR constraint stores with query bindings
584 * TS: Bugfix in code generation. Reported by Lyosha Ilyukhin.
588 * TS: Updated hashtable stores. They now start small and expand.
592 * JW: Removed chr_pp: module prefixes
593 * JW: Updated Windows makefile.mak (more similar organisation, added check)
597 * TS: Added chr_hashtable_store library.
598 * TS: Added find library.
599 * TS: Added builtins library.
600 * TS: Added clean_code library.
601 * TS: Added binomial_heap library.
602 * TS: Added a_star library.
603 * TS: Added new intermediate bootstrapping step
604 * TS: Synchronized CHR compiler with most recent development version
608 "The new version of the compiler contains several new optimizations, both
609 fully automatic, such as the antimonotny-based delay avoidance (see
610 http://www.cs.kuleuven.be/publicaties/rapporten/cw/CW385.abs.html for
611 the technical report), and enabled by mode declarations (see CHR
612 documentation), such as hashtable-based constraint indexes."
616 * JW: Added chr_messages.pl. Make all debug messages use the print_message/2
617 interface to enable future embedding.
621 * JW: Added chr:debug_interact/3 hook. Defined in chr_swi.pl to void
622 showing constraints first as goal and then as CHR call.
623 * JW: Added chr:debug_event/2 hook. Defined in chr_swi.pl to make the
624 CHR debugger honour a skip command from the Prolog tracer.
628 * JW: Added b (break) to the CHR debugger.
629 * TS: added chr_expandable/2 clause for pragma/2
633 * JW: fixed reference to format_rule/2.
634 * JW: Use select/3 rather than delete/3 in diff/2 in Tests/zebra.pl
635 * TS: CHR translation now leaves CHR store empty
639 * JW: added :- use_module(library(chr)) to all examples.
640 * JW: mapped -O --> option(optimize, full).
641 * JW: introduced file-search-path `chr' for clarity and to enable running
642 make check from the local environment instead of the public installation.
643 * JW: mapped prolog flag generate_debug_info --> option(debug, on)
644 * JW: Replaced the chr -> pl step with term_expansion/2.
645 * JW: Moved insert_declarations/2 to chr_swi.pl
649 * JW: fixed Undefined procedure: chr_runtime:run_suspensions_loop_d/1
650 * TS: Added <space> for creep and shortened debug line prefix to CHR:
654 * JW: Use \+ \+ in chr_compile/3 to undo changes to the constraint
655 pool. Regression test suite using "make check" works again.
659 * TS: Added skip and ancestor debug commands
663 * TS: Added bootstrapping process for CHR compiler using CHR.
664 * TS: CHR compiler now uses CHR.
665 * TS: Fixed bug in compilation of multi-headed simpagation rules.
666 * TS: Cleaned up compiler.
667 * TS: Added analysis + optimization for never attached constraints.
668 * TS: Exploit uniqueness (functional dependency) results to detect
669 set semantics type simpagation rules where one rule can be passive
670 * TS: Compiler generates 'chr debug_event'/1 calls
671 * TS: Rudimentary support for debugging.
672 option(debug,on) causes a trace of CHR events to be printed
676 * JW: Fix operator handling.
680 * JW: Integrated new version from Tom Schrijvers.