Vítor Santos Costa
b654c8fe00
numbervars: support negative indices
2015-10-08 13:29:47 +01:00
Vítor Santos Costa
b871f6676e
fix error handling
2015-09-25 10:57:26 +01:00
Vítor Santos Costa
80036958a1
atom term
2015-08-18 14:55:58 -05:00
Vítor Santos Costa
71c9cb21b7
kill dead code
2015-02-13 12:24:15 +00:00
Vítor Santos Costa
bae7b716e2
fix import term to handle overflows.
2015-02-06 18:05:21 +00:00
Vitor Santos Costa
ce84e60d08
cosmetic
2015-01-18 01:32:13 +00:00
Vítor Santos Costa
3009987985
update docs
2014-09-11 14:06:57 -05:00
Vítor Santos Costa
71b40e0438
changes to support eclipse compat
...
support of Android assets as /assets files.
2014-06-04 22:08:37 +01:00
Andreas Becker
72b9ec59b7
Fix: Win32 defines Bind, so change Bind to YapBind.
2014-05-29 11:32:28 +02:00
Vítor Santos Costa
d3b3a45dde
improve handling of meta-call in setof and debugging
2014-02-19 00:04:26 +00:00
Vítor Santos Costa
9d2795b62a
term_factorized/3
2014-02-02 21:45:47 +00:00
Vitor Santos Costa
6b2e1973ab
Windows fixes, mainly H -> HB
2014-01-19 21:15:05 +00:00
Vítor Santos Costa
d7397b43af
new text conversion and string code (big changes, take care please)
2013-12-02 14:49:41 +00:00
U-w7\vsc
9c5d7af938
win32 patches
2013-11-15 18:25:33 +00:00
Vítor Santos Costa
5b6a3bffc1
iteration support
2013-09-28 12:04:52 +01:00
Vitor Santos Costa
2829696db7
fix bug in term_variables/3 with difference lists
2013-08-08 14:12:29 -05:00
Vítor Santos Costa
5303f2f479
simple check for all var arguments
2013-06-07 09:26:21 -05:00
Vitor Santos Costa
743c9c69fb
get rid of PROTO
2013-04-25 17:15:04 -05:00
Vitor Santos Costa
a5095a921a
fix messages with single atom
2013-04-14 21:37:43 +01:00
Vitor Santos Costa
d163cadda1
pass regs when constructing long ints and floats.
...
fix small gcc complaints.
2013-03-26 15:01:52 -05:00
Vitor Santos Costa
be5208f281
fix search for free variables in bagof.
2013-01-14 22:46:06 +00:00
Vitor Santos Costa
9107af2e3d
improve thread startup
2012-12-13 18:12:50 +00:00
Vitor Santos Costa
88f2dc7730
change the way predicates are hidden
2012-10-19 18:10:48 +01:00
Vítor Santos Costa
ce7adaa632
text ARG2 first (obs from Ulrich Neumerkel)
2012-10-03 09:22:27 +01:00
Vítor Santos Costa
e60b485134
fix cyclic_term mess up from yesterday.
2012-10-03 09:11:37 +01:00
Vítor Santos Costa
4de83f5f52
include cyclic_term and friends.
2012-10-02 15:14:41 +01:00
Vítor Santos Costa
78a08e1b87
fix length/2 error handling.
2012-09-27 22:32:50 +01:00
Vitor Santos Costa
682db0aad4
support term_subsumer.
2012-05-14 15:04:19 +01:00
Vitor Santos Costa
a05bad3bf0
fix bad offset in export_term.
2012-05-08 17:04:28 +01:00
Vitor Santos Costa
7488ef0539
ifix bug in checking for free space.
2012-05-08 12:55:34 +01:00
Vítor Santos Costa
24d09ffde5
fix trailing issues in numbervars.
2012-04-23 15:50:01 +01:00
Vítor Santos Costa
c08178a57c
fix thread compilation.
2012-04-11 22:08:02 +01:00
Vítor Santos Costa
5c6c034ec9
generate type error on second arg to term variables/2 (UN 198)
2012-03-18 00:07:06 +00:00
Vítor Santos Costa
0c1eb1d642
fix write_canonical of $VAR(_).
2012-03-15 22:19:48 +00:00
Vítor Santos Costa
cc8521c9d5
fix bad handling of singletons with write_canonical.
2012-03-14 22:10:21 +00:00
Vítor Santos Costa
020323d633
list_or_partial_list support.
2012-03-06 14:41:23 +00:00
Vítor Santos Costa
fd0cf6ee14
Merge branch 'master' of ssh://git.dcc.fc.up.pt/yap-6.3
2012-03-06 14:12:39 +00:00
Vítor Santos Costa
6075bde029
partial_list
2012-03-06 14:12:25 +00:00
Vítor Santos Costa
fbe846e74a
fix is_list to fail on infinite lists.
2012-03-04 10:45:32 +00:00
Vítor Santos Costa
0b1c98d3f6
allow MPI to compute term size.
2012-02-05 11:57:03 +00:00
Vítor Santos Costa
bd677152e7
more MPI fixes.
2012-02-05 11:20:30 +00:00
Vítor Santos Costa
a2c86643b0
ismall fixes to MPI interface.
2012-02-03 16:31:49 +00:00
Vítor Santos Costa
6eea1fe1ea
fixes for export_term and friends.
2012-02-02 23:25:09 +00:00
Vítor Santos Costa
4e6cc28cd3
lam support.
2012-02-02 09:58:05 +00:00
Vitor Santos Costa
91cada2661
include correct implementation of skip_list as built-in.
2012-01-09 23:28:31 +00:00
Vítor Santos Costa
749a5103a1
fix empty slots in unnumbervars.
2011-11-18 22:16:33 +00:00
Vítor Santos Costa
cadb0fe4ae
ifix bad call to unnumbervars.
2011-11-16 14:59:28 +00:00
Vítor Santos Costa
64dded4a53
iunnumbervars may be copying terms from outside the stacks, so don't share
...
unless we know we share.
2011-11-04 09:28:33 +00:00
Vítor Santos Costa
6ed7736c28
C implementation of numbervars
2011-11-03 07:44:08 +09:00
Vitor Santos Costa
15f5277ca4
use structure for visited terms in hash.
...
predicates that did stack expansion were declared safe.
2011-07-06 17:26:53 -04:00
Joao
971ad94311
moved several global variables to misc/GLOBALS
2011-05-25 16:40:36 +01:00
Joao
8170f6d3cb
Some global variables(Yap_thread_gl) in C/init.c are now declared in misc/LOCALS
2011-05-23 16:19:47 +01:00
Vítor Santos Costa
8fb8aec9bf
MULTIPLE_STACKS - or-parallelism/threads/tabling
...
YAPOR_THREADS - threads with or-parallelism
make tabling require reference counting for dynamic predicates.
2011-04-14 18:51:11 +01:00
Vitor Santos Costa
d51dc81032
fix bad left-over.
2011-03-19 23:24:13 +00:00
Vitor Santos Costa
a1fbcf872b
bad handling of overflow.
2011-03-19 23:21:37 +00:00
Vítor Santos Costa
0d8aed7971
new implementation of corourining...
2011-03-18 19:34:58 +00:00
Vítor Santos Costa
90d93fdbdd
cache abstra machine register in threaded mode.
2011-03-07 16:02:55 +00:00
Vítor Santos Costa
e509d11c2e
routines to copy rational terms to tree and vice-versa.
2010-11-01 20:11:28 +00:00
Vítor Santos Costa
388f4fb782
expand C-interface to allow access to common term operations (request from Ingo Molnar).
2010-08-02 19:48:17 +01:00
Vítor Santos Costa
e031026a62
instrument PE locking
...
fix missing unlock in index_pred (if predicate had been indexed while we were
waiting).
2010-07-25 11:22:16 +01:00
Vitor Santos Costa
a7612bb15e
fix bad call to subsumes (obs from Jose Santos)
2010-07-21 00:09:24 +01:00
Vitor Santos Costa
6183ff0282
semweb and http compile now (but they don't work properly yet).
2010-07-15 23:35:37 +01:00
Vitor Santos Costa
a45105ee04
export wide atoms and add a little comment.y
2010-07-15 17:46:52 +01:00
Vitor Santos Costa
b2184ecb00
term export and import routines
2010-07-15 17:19:37 +01:00
Vítor Santos Costa
11641c5f94
64 bit cleanups.
2010-05-06 15:00:44 +01:00
Vitor Santos Costa
da51afc1e4
fix term_hash of floats and large ints (obs from Jose Santos).
2010-03-22 00:09:50 +00:00
Vítor Santos Costa II
3c67550975
fix stupid use of ++ within macro.
2010-03-15 16:20:47 +00:00
Vitor Santos Costa
8b6b9e9ac3
we don't need to wakeup variables that have no attributes, even if they have been bound.
2010-03-15 14:17:30 +00:00
Vitor Santos Costa
4fafe10fbe
fix error messages
2010-03-14 09:32:04 +00:00
Vitor Santos Costa
222ead095c
term_attvars/2.
2010-03-12 08:49:12 +00:00
Vitor Santos Costa
30a4f3cfe7
fixes to support copy_term and nb_
2010-03-12 08:24:58 +00:00
Vitor Santos Costa
3d10482cc7
more upgrades to new coroutining code.
2010-03-10 14:06:07 +00:00
Vitor Santos Costa
34ca485e42
new Atts code.
2010-03-08 09:23:58 +00:00
Vitor Santos Costa
2702c7e973
oops, forgot deref
2010-01-25 21:28:51 +00:00
Vitor Santos Costa
5cd85f4eaa
export Yap_IsGroundTerm(t)
2010-01-25 12:28:49 +00:00
Vítor Manuel de Morais Santos Costa
a7c1e9afba
fix hashing over empty atoms (obs from Jose Santos).
2010-01-21 15:21:26 +00:00
Vitor Santos Costa
2edc06b6a2
fix unifiable for attributed variables (obs from Jiefei Ma).
2010-01-21 09:47:55 +00:00
Vitor Santos Costa
6852a0c861
make =@= an well known alias to variant.
2009-11-23 10:10:14 +00:00
Vitor Santos Costa
7b85efff0c
subsumes should check for loops (Ulrich's #146 ).
2009-11-17 02:08:01 +00:00
Vitor Santos Costa
0179998d60
change Heap.h to YapHeap.h
...
rename $live to prolog/0 (for SWI compatibility).
2009-10-23 14:22:17 +01:00
Costa Vitor
56d37591a5
fix var_in_term
2009-09-12 17:17:16 -05:00
Costa Vitor
bf9091b5ed
fix bug in copyterm
2009-06-17 14:43:24 -05:00
Costa Vitor
ec595374a6
fix allocation of temporary stack so that unification can work even for
...
very deep terms.
fix occur_unification_bug X = a(f(Y)).
2009-05-22 18:35:24 -05:00
Vitor Santos Costa
780b629bff
fix bad handling of trail overflow.
2009-05-04 21:26:47 -05:00
Vitor Santos Costa
b5dc71d080
is_list/1 is now a builtin.
2009-04-24 10:31:53 -05:00
Vitor Santos Costa
cc7ff82275
term_hash non non_ground terms: ignoring the variables.
2009-03-31 21:56:12 +01:00
Vitor Santos Costa
b744fabb71
new predicates for variable search in term.
2009-03-10 16:21:05 +00:00
Vitor Santos Costa
cd548813fd
make $variables_in_term/3 check for repeated variables, ie (vint(a(X),[X],[X])).
2009-03-09 14:15:41 +00:00
Vítor Santos Costa
a8ac9bfb43
generate known atoms and functors automatically
2008-12-23 01:53:52 +00:00
Vítor Santos Costa
13dd600f88
add type to BIG NUMs, so that we can easily know what it is all about.
2008-11-28 15:54:46 +00:00
Vitor Santos Costa
99c5cb3e36
new version of term_hash based on SWI-ideas.
...
It handles infinite terms, and it seems to be a better hash.
2008-11-18 11:28:11 +00:00
Vítor Santos Costa
17ba194c1e
Include new instruction execute_cpred to perform tail optimisation for
...
builtins. Required changes:
- be careful about creeping in deallocate: it may be followed by
something that is not a cut nor a proceed.
- include new instruction in absmi.c: it is a merge of execute and
call_cpred.
- change compiler to generate execute even for C builtins.
- be careful with dexecute: it may not be done if execute_op is a C
builtin.
- if we are in execute_cpred, the garbage collector cannot trust P:
instead it must look at CP to find out the size of the current
environment. The macro gc_P receives that information.
- We don't need to change CP if we do a meta-call from within
execute_cpred (and we in fact cannot). Check places where we do
meta-calls: exec, clause in cdmgr, and lu_recorded.
2008-08-28 04:43:00 +01:00
vsc
d170b34624
MaxOS fixes
...
Avoid a thread deadlock
improvements to SWI predicates.
make variables_in_term system builtin.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2304 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-08-12 01:27:23 +00:00
vsc
85d7d39dbf
more thread fixes
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2297 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-08-06 17:32:22 +00:00
vsc
257c3a2cbc
fix threads and LU
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2233 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-05-10 23:24:13 +00:00
vsc
92d26f604e
term_variables could store local variable in global.
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2199 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-04-03 10:50:28 +00:00
vsc
b2274186bd
make or-parallelism compile again
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2164 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-03-25 16:45:53 +00:00
vsc
d02bc3de81
update chr
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2143 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-03-13 14:38:02 +00:00
vsc
af0fb4f4d9
SWI-portability changes
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2088 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-02-12 17:03:59 +00:00
vsc
01432a467a
fix a few extra overflows.
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1993 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2007-11-14 09:23:42 +00:00