00001 /* File: util.H -- general-purpose utilies 00002 ** Author(s): Yifei Dong 00003 ** Contact: lmc@cs.sunysb.edu 00004 ** 00005 ** Copyright (C) SUNY at Stony Brook, 1998-2000 00006 ** 00007 ** XMC is free software; you can redistribute it and/or modify it under the 00008 ** terms of the GNU Library General Public License as published by the Free 00009 ** Software Foundation; either version 2 of the License, or (at your option) 00010 ** any later version. 00011 ** 00012 ** XMC is distributed in the hope that it will be useful, but WITHOUT ANY 00013 ** WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 00014 ** FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for 00015 ** more details. 00016 ** 00017 ** You should have received a copy of the GNU Library General Public License 00018 ** along with XMC; if not, write to the Free Software Foundation, 00019 ** Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00020 ** 00021 ** $Id: util.H,v 1.2 2001/07/01 21:52:54 gmkp Exp $ 00022 ** 00023 */ 00024 00025 :- import append/3, length/2, ground/1 from basics. 00026 :- import absmerge/3, absmember/2 from listutil. 00027 00028 :- export abs_intersect/3. 00029 :- export abs_exclude/3. 00030 :- export test_assert/1. 00031 :- export seq_list_term/2, seq_term/3. 00032 :- export same_length/2. 00033 :- export sandwich/4, sandwich/6. 00034 :- export pe_term/2. 00035 :- export test_assert/1. 00036 :- export get_expr_var/2.