Files
mercury/compiler/libs.m
Julien Fischer 4c39d891fc Clean up lp.m and bring it more into sync with the corresponding
Estimated hours taken: 1.5
Branches: main

Clean up lp.m and bring it more into sync with the corresponding
parts of lp_rational.m.  The one algorithmic change is to replace
two closures that where called by an all solutions predicate with a
single iterative predicate that does the same thing.

Shift lp.m from the transform_hlds package into the libs package.

compiler/lp.m:
	Shift to 4-space indentation throughout.

	Use state variables throughout and rearrange argument
	orders where necessary.

	Use predmode syntax throughout.

	Add field names to several of the major data structures
	in this module.

	Standardize variable names.

	s/__/./ throughout.

	Other minor formatting changes.

compiler/transform_hlds.m:
compiler/libs.m:
	Move the lp module from the transform_hlds package to the
	libs package.  It doesn't really have anything to do with
	the HLDS.

compiler/term_pass1.m:
compiler/notes/compiler_design.html:
	Minor changes to conform to the above.
2005-04-19 02:47:16 +00:00

38 lines
1.1 KiB
Mathematica

%-----------------------------------------------------------------------------%
% Copyright (C) 2002-2003, 2005 The University of Melbourne.
% This file may only be copied under the terms of the GNU General
% Public License - see the file COPYING in the Mercury distribution.
%-----------------------------------------------------------------------------%
%
% This package contains general utilities that are used by other packages.
%
:- module libs.
:- interface.
% option handling
:- include_module globals.
:- include_module handle_options.
:- include_module options.
:- include_module trace_params.
% generic algorithms and data structures that are not
% quite useful enough to go in the standard library
:- include_module atsort.
:- include_module graph_colour.
:- include_module tree.
% OS interfaces not provided by the standard library
:- include_module process_util.
:- include_module timestamp.
% Constraint machinery for the termination analysers.
:- include_module lp.
:- include_module lp_rational.
:- include_module polyhedron.
:- include_module rat.
:- end_module libs.
%-----------------------------------------------------------------------------%