-
-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIXED: Preserve table properties on reconsult.
Reported by Jan Burse.
- Loading branch information
1 parent
4e6420e
commit 9e1303a
Showing
3 changed files
with
23 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
:- table p/2. | ||
|
||
p(A,A). | ||
p(A,C) :- p(A,B), e(B, C). | ||
e(a,b). | ||
e(b,c). | ||
%%%%%%%%%%%%%%%% | ||
:- table p/2. | ||
|
||
p(A,A). | ||
p(A,C) :- p(A,B), e(B, C). | ||
e(a,b). | ||
e(b,c). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,9 @@ | |
Author: Jan Wielemaker | ||
E-mail: [email protected] | ||
WWW: http://www.swi-prolog.org | ||
Copyright (c) 2015-2016, University of Amsterdam | ||
Copyright (c) 2015-2023, University of Amsterdam | ||
VU University Amsterdam | ||
SWI-Prolog Solutions b.v. | ||
All rights reserved. | ||
Redistribution and use in source and binary forms, with or without | ||
|
@@ -177,6 +178,11 @@ | |
test(goal_expansion) :- | ||
reload(goal_expansion, 1), | ||
reload(goal_expansion, 1). | ||
test(keep_tabling, [Name1, Wrapped1, Body1] =@= [Name2, Wrapped2, Body2]) :- | ||
reload(keep_tabling, 1), | ||
current_predicate_wrapper(keep_tabling:p(_,_), Name1, Wrapped1, Body1), | ||
reload(keep_tabling, 2), | ||
current_predicate_wrapper(keep_tabling:p(_,_), Name2, Wrapped2, Body2). | ||
|
||
:- end_tests(reconsult). | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters