-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cbb1f54
commit 73e12d7
Showing
1 changed file
with
38 additions
and
0 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,38 @@ | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% % Trocq % | ||
% _______ % Copyright (C) 2023 Inria & MERCE % | ||
% |__ __| % (Mitsubishi Electric R&D Centre Europe) % | ||
% | |_ __ ___ ___ __ _ % Cyril Cohen <[email protected]> % | ||
% | | '__/ _ \ / __/ _` | % Enzo Crance <[email protected]> % | ||
% | | | | (_) | (_| (_| | % Assia Mahboubi <[email protected]> % | ||
% |_|_| \___/ \___\__, | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% | | % This file is distributed under the terms of % | ||
% |_| % GNU Lesser General Public License Version 3 % | ||
% % (see LICENSE file for the text of the license) % | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% ----------------------------------------------------------------------------- | ||
% main code for trocq tactics | ||
% ----------------------------------------------------------------------------- | ||
|
||
|
||
namespace trocq { | ||
|
||
pred known->gref i:prop, o:prop. | ||
known->gref | ||
(trocq.db.known-gref _Rel GR OutCl Classes GR' GRR) | ||
(trocq.db.gref GR OutCl Classes GR' GRR :- !). | ||
|
||
pred load-rel i:gref, o:list prop. | ||
load-rel GRRel DB :- std.do! [ | ||
std.findall | ||
(trocq.db.known-gref GRRel _GR _OutCl _Classes _GR' _GRR) | ||
AllRel, | ||
std.map AllRel known->gref DB | ||
]. | ||
|
||
pred load-rels i:list gref, o:list prop. | ||
load-rels GRRels DB :- std.do! [ | ||
std.map GRRels load-rel DBs, | ||
std.flatten DBs DB | ||
]. | ||
} |