source: src/ResolvExpr/FindOpenVars.h @ 4864a73

ADTarm-ehast-experimentalenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprpthread-emulationqualifiedEnum
Last change on this file since 4864a73 was f474e91, checked in by Aaron Moss <a3moss@…>, 5 years ago

Port unification calculations to new AST

  • Property mode set to 100644
File size: 1.3 KB
Line 
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// FindOpenVars.h --
8//
9// Author           : Richard C. Bilson
10// Created On       : Sun May 17 09:46:04 2015
11// Last Modified By : Peter A. Buhr
12// Last Modified On : Sat Jul 22 09:35:18 2017
13// Update Count     : 3
14//
15
16#pragma once
17
18#include "AST/TypeEnvironment.hpp"  // for AssertionSet, OpenVarSet
19#include "ResolvExpr/TypeEnvironment.h"  // for AssertionSet, OpenVarSet
20
21class Type;
22namespace ast {
23        class Type;
24}
25
26namespace ResolvExpr {
27        // Updates open and closed variables and their associated assertions
28        void findOpenVars( Type *type, OpenVarSet &openVars, OpenVarSet &closedVars, AssertionSet &needAssertions, AssertionSet &haveAssertions, bool firstIsOpen );
29
30        enum FirstMode { FirstClosed, FirstOpen };
31
32        // Updates open and closed variables and their associated assertions
33        void findOpenVars( 
34                const ast::Type * type, ast::OpenVarSet & open, ast::OpenVarSet & closed, 
35                ast::AssertionSet & need, ast::AssertionSet & have, FirstMode firstIsOpen );
36} // namespace ResolvExpr
37
38// Local Variables: //
39// tab-width: 4 //
40// mode: c++ //
41// compile-command: "make install" //
42// End: //
Note: See TracBrowser for help on using the repository browser.