TypeEqInfer.hxx

Go to the documentation of this file.
00001 #ifndef TYPEEQINFER_HXX
00002 #define TYPEEQINFER_HXX
00003 /**************************************************************************
00004  *
00005  * Copyright (C) 2006, Johns Hopkins University.
00006  * All rights reserved.
00007  *
00008  * Redistribution and use in source and binary forms, with or
00009  * without modification, are permitted provided that the following
00010  * conditions are met:
00011  *
00012  *   - Redistributions of source code must contain the above 
00013  *     copyright notice, this list of conditions, and the following
00014  *     disclaimer. 
00015  *
00016  *   - Redistributions in binary form must reproduce the above
00017  *     copyright notice, this list of conditions, and the following
00018  *     disclaimer in the documentation and/or other materials 
00019  *     provided with the distribution.
00020  *
00021  *   - Neither the names of the copyright holders nor the names of any
00022  *     of any contributors may be used to endorse or promote products
00023  *     derived from this software without specific prior written
00024  *     permission. 
00025  *
00026  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
00027  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
00028  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
00029  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
00030  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
00031  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
00032  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
00033  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
00034  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
00035  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
00036  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00037  *
00038  **************************************************************************/
00039 
00040 #include <iostream>
00041 #include <sstream>
00042 #include <libsherpa/CVector.hxx>
00043 #include "AST.hxx"
00044 #include "Type.hxx"
00045 #include "TypeScheme.hxx"
00046 #include "Typeclass.hxx"
00047 
00048 void
00049 addSubCst(GCPtr<AST> errAst, GCPtr<Type> t1, GCPtr<Type> t2,
00050           GCPtr<Constraints> tcc);
00051 
00052 void
00053 addEqCst(GCPtr<AST> errAst, GCPtr<Type> t1, GCPtr<Type> t2,
00054          GCPtr<Constraints> tcc);
00055         
00056 void
00057 addCcCst(GCPtr<AST> errAst, GCPtr<Type> t1, GCPtr<Type> t2,
00058          GCPtr<Constraints> tcc);
00059 void
00060 addPcst(GCPtr<AST> errAst, GCPtr<Type> t, GCPtr<Constraints> tcc);
00061 
00062 bool
00063 EqUnify(std::ostream& errStream, GCPtr<Constraints> cset, 
00064         GCPtr<Trail> trail);
00065 
00066 #endif /* TYPEEQINFER_HXX */

Generated on Thu May 17 23:59:16 2012 for BitC Compiler by  doxygen 1.4.7