Skip to content

Commit

Permalink
forgotten file
Browse files Browse the repository at this point in the history
  • Loading branch information
CohenCyril committed Jan 17, 2024
1 parent cbb1f54 commit 73e12d7
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions elpi/trocq.elpi
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
].
}

0 comments on commit 73e12d7

Please sign in to comment.