| 1 | // | 
|---|
| 2 | // Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo | 
|---|
| 3 | // | 
|---|
| 4 | // The contents of this file are covered under the licence agreement in the | 
|---|
| 5 | // file "LICENCE" distributed with Cforall. | 
|---|
| 6 | // | 
|---|
| 7 | // CommonType.hpp -- | 
|---|
| 8 | // | 
|---|
| 9 | // Author           : Andrew Beach | 
|---|
| 10 | // Created On       : Tue Jan 17 16:52:00 2023 | 
|---|
| 11 | // Last Modified By : Andrew Beach | 
|---|
| 12 | // Last Modified On : Tue Jan 17 16:52:00 2023 | 
|---|
| 13 | // Update Count     : 0 | 
|---|
| 14 | // | 
|---|
| 15 |  | 
|---|
| 16 | #pragma once | 
|---|
| 17 |  | 
|---|
| 18 | #include "AST/Fwd.hpp" | 
|---|
| 19 | #include "AST/TypeEnvironment.hpp"  // for AssertionSet, OpenVarSet | 
|---|
| 20 | #include "TypeEnvironment.h"        // for AssertionSet, OpenVarSet | 
|---|
| 21 | #include "WidenMode.h"              // for WidenMode | 
|---|
| 22 |  | 
|---|
| 23 | class Type; | 
|---|
| 24 | namespace SymTab { | 
|---|
| 25 | class Indexer; | 
|---|
| 26 | } | 
|---|
| 27 |  | 
|---|
| 28 | namespace ResolvExpr { | 
|---|
| 29 |  | 
|---|
| 30 | Type * commonType( | 
|---|
| 31 | Type * type1, Type * type2, bool widenFirst, bool widenSecond, | 
|---|
| 32 | const SymTab::Indexer & indexer, TypeEnvironment & env, | 
|---|
| 33 | const OpenVarSet & openVars ); | 
|---|
| 34 | ast::ptr< ast::Type > commonType( | 
|---|
| 35 | const ast::ptr< ast::Type > & type1, const ast::ptr< ast::Type > & type2, | 
|---|
| 36 | ast::TypeEnvironment & env, | 
|---|
| 37 | ast::AssertionSet & need, ast::AssertionSet & have, | 
|---|
| 38 | const ast::OpenVarSet & open, WidenMode widen, | 
|---|
| 39 | const ast::SymbolTable & symtab ); | 
|---|
| 40 |  | 
|---|
| 41 | } | 
|---|
| 42 |  | 
|---|
| 43 | // Local Variables: // | 
|---|
| 44 | // tab-width: 4 // | 
|---|
| 45 | // mode: c++ // | 
|---|
| 46 | // compile-command: "make install" // | 
|---|
| 47 | // End: // | 
|---|