source: src/ResolvExpr/Resolver.cc @ e4d829b

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newwith_gc
Last change on this file since e4d829b was e4d829b, checked in by Rob Schluntz <rschlunt@…>, 7 years ago

major effort on designations, works in many cases

  • Property mode set to 100644
File size: 20.2 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// Resolver.cc --
8//
9// Author           : Richard C. Bilson
10// Created On       : Sun May 17 12:17:01 2015
11// Last Modified By : Peter A. Buhr
12// Last Modified On : Thu Mar 23 17:23:14 2017
13// Update Count     : 211
14//
15
16#include <iostream>
17
18#include "Alternative.h"
19#include "AlternativeFinder.h"
20#include "CurrentObject.h"
21#include "RenameVars.h"
22#include "Resolver.h"
23#include "ResolveTypeof.h"
24#include "typeops.h"
25
26#include "SynTree/Expression.h"
27#include "SynTree/Initializer.h"
28#include "SynTree/Statement.h"
29#include "SynTree/Type.h"
30
31#include "SymTab/Autogen.h"
32#include "SymTab/Indexer.h"
33
34#include "Common/utility.h"
35
36#include "InitTweak/InitTweak.h"
37
38using namespace std;
39
40namespace ResolvExpr {
41        class Resolver final : public SymTab::Indexer {
42          public:
43                Resolver() : SymTab::Indexer( false ) {}
44                Resolver( const SymTab:: Indexer & other ) : SymTab::Indexer( other ) {
45                        if ( const Resolver * res = dynamic_cast< const Resolver * >( &other ) ) {
46                                functionReturn = res->functionReturn;
47                                currentObject = res->currentObject;
48                                inEnumDecl = res->inEnumDecl;
49                        }
50                }
51
52                typedef SymTab::Indexer Parent;
53                using Parent::visit;
54                virtual void visit( FunctionDecl *functionDecl ) override;
55                virtual void visit( ObjectDecl *functionDecl ) override;
56                virtual void visit( TypeDecl *typeDecl ) override;
57                virtual void visit( EnumDecl * enumDecl ) override;
58
59                virtual void visit( ArrayType * at ) override;
60                virtual void visit( PointerType * at ) override;
61
62                virtual void visit( ExprStmt *exprStmt ) override;
63                virtual void visit( AsmExpr *asmExpr ) override;
64                virtual void visit( AsmStmt *asmStmt ) override;
65                virtual void visit( IfStmt *ifStmt ) override;
66                virtual void visit( WhileStmt *whileStmt ) override;
67                virtual void visit( ForStmt *forStmt ) override;
68                virtual void visit( SwitchStmt *switchStmt ) override;
69                virtual void visit( CaseStmt *caseStmt ) override;
70                virtual void visit( BranchStmt *branchStmt ) override;
71                virtual void visit( ReturnStmt *returnStmt ) override;
72
73                virtual void visit( SingleInit *singleInit ) override;
74                virtual void visit( ListInit *listInit ) override;
75                virtual void visit( ConstructorInit *ctorInit ) override;
76          private:
77        typedef std::list< Initializer * >::iterator InitIterator;
78
79                template< typename PtrType >
80                void handlePtrType( PtrType * type );
81
82          void resolveAggrInit( ReferenceToType *, InitIterator &, InitIterator & );
83          void resolveSingleAggrInit( Declaration *, InitIterator &, InitIterator &, TypeSubstitution sub );
84          void fallbackInit( ConstructorInit * ctorInit );
85
86                Type * functionReturn = nullptr;
87                CurrentObject currentObject = nullptr;
88                bool inEnumDecl = false;
89        };
90
91        void resolve( std::list< Declaration * > translationUnit ) {
92                Resolver resolver;
93                acceptAll( translationUnit, resolver );
94        }
95
96        Expression *resolveInVoidContext( Expression *expr, const SymTab::Indexer &indexer ) {
97                TypeEnvironment env;
98                return resolveInVoidContext( expr, indexer, env );
99        }
100
101
102        namespace {
103                void finishExpr( Expression *expr, const TypeEnvironment &env ) {
104                        expr->set_env( new TypeSubstitution );
105                        env.makeSubstitution( *expr->get_env() );
106                }
107        } // namespace
108
109        Expression *findVoidExpression( Expression *untyped, const SymTab::Indexer &indexer ) {
110                global_renamer.reset();
111                TypeEnvironment env;
112                Expression *newExpr = resolveInVoidContext( untyped, indexer, env );
113                finishExpr( newExpr, env );
114                return newExpr;
115        }
116
117        namespace {
118                Expression *findSingleExpression( Expression *untyped, const SymTab::Indexer &indexer ) {
119                        TypeEnvironment env;
120                        AlternativeFinder finder( indexer, env );
121                        finder.find( untyped );
122#if 0
123                        if ( finder.get_alternatives().size() != 1 ) {
124                                std::cout << "untyped expr is ";
125                                untyped->print( std::cout );
126                                std::cout << std::endl << "alternatives are:";
127                                for ( std::list< Alternative >::const_iterator i = finder.get_alternatives().begin(); i != finder.get_alternatives().end(); ++i ) {
128                                        i->print( std::cout );
129                                } // for
130                        } // if
131#endif
132                        assertf( finder.get_alternatives().size() == 1, "findSingleExpression: must have exactly one alternative at the end." );
133                        Alternative &choice = finder.get_alternatives().front();
134                        Expression *newExpr = choice.expr->clone();
135                        finishExpr( newExpr, choice.env );
136                        return newExpr;
137                }
138
139                bool isIntegralType( Type *type ) {
140                        if ( dynamic_cast< EnumInstType * >( type ) ) {
141                                return true;
142                        } else if ( BasicType *bt = dynamic_cast< BasicType * >( type ) ) {
143                                return bt->isInteger();
144                        } else if ( dynamic_cast< ZeroType* >( type ) != nullptr || dynamic_cast< OneType* >( type ) != nullptr ) {
145                                return true;
146                        } else {
147                                return false;
148                        } // if
149                }
150
151                Expression *findIntegralExpression( Expression *untyped, const SymTab::Indexer &indexer ) {
152                        TypeEnvironment env;
153                        AlternativeFinder finder( indexer, env );
154                        finder.find( untyped );
155#if 0
156                        if ( finder.get_alternatives().size() != 1 ) {
157                                std::cout << "untyped expr is ";
158                                untyped->print( std::cout );
159                                std::cout << std::endl << "alternatives are:";
160                                for ( std::list< Alternative >::const_iterator i = finder.get_alternatives().begin(); i != finder.get_alternatives().end(); ++i ) {
161                                        i->print( std::cout );
162                                } // for
163                        } // if
164#endif
165                        Expression *newExpr = 0;
166                        const TypeEnvironment *newEnv = 0;
167                        for ( AltList::const_iterator i = finder.get_alternatives().begin(); i != finder.get_alternatives().end(); ++i ) {
168                                if ( i->expr->get_result()->size() == 1 && isIntegralType( i->expr->get_result() ) ) {
169                                        if ( newExpr ) {
170                                                throw SemanticError( "Too many interpretations for case control expression", untyped );
171                                        } else {
172                                                newExpr = i->expr->clone();
173                                                newEnv = &i->env;
174                                        } // if
175                                } // if
176                        } // for
177                        if ( ! newExpr ) {
178                                throw SemanticError( "No interpretations for case control expression", untyped );
179                        } // if
180                        finishExpr( newExpr, *newEnv );
181                        return newExpr;
182                }
183
184        }
185
186        void Resolver::visit( ObjectDecl *objectDecl ) {
187                Type *new_type = resolveTypeof( objectDecl->get_type(), *this );
188                objectDecl->set_type( new_type );
189                // To handle initialization of routine pointers, e.g., int (*fp)(int) = foo(), means that class-variable
190                // initContext is changed multiple time because the LHS is analysed twice. The second analysis changes
191                // initContext because of a function type can contain object declarations in the return and parameter types. So
192                // each value of initContext is retained, so the type on the first analysis is preserved and used for selecting
193                // the RHS.
194                ValueGuard<CurrentObject> temp( currentObject );
195                currentObject = CurrentObject( objectDecl->get_type() );
196                if ( inEnumDecl && dynamic_cast< EnumInstType * >( objectDecl->get_type() ) ) {
197                        // enumerator initializers should not use the enum type to initialize, since
198                        // the enum type is still incomplete at this point. Use signed int instead.
199                        currentObject = CurrentObject( new BasicType( Type::Qualifiers(), BasicType::SignedInt ) );
200                }
201                Parent::visit( objectDecl );
202                if ( inEnumDecl && dynamic_cast< EnumInstType * >( objectDecl->get_type() ) ) {
203                        // delete newly created signed int type
204                        // delete currentObject.getType();
205                }
206        }
207
208        template< typename PtrType >
209        void Resolver::handlePtrType( PtrType * type ) {
210                if ( type->get_dimension() ) {
211                        CastExpr *castExpr = new CastExpr( type->get_dimension(), SymTab::SizeType->clone() );
212                        Expression *newExpr = findSingleExpression( castExpr, *this );
213                        delete type->get_dimension();
214                        type->set_dimension( newExpr );
215                }
216        }
217
218        void Resolver::visit( ArrayType * at ) {
219                handlePtrType( at );
220                Parent::visit( at );
221        }
222
223        void Resolver::visit( PointerType * pt ) {
224                handlePtrType( pt );
225                Parent::visit( pt );
226        }
227
228        void Resolver::visit( TypeDecl *typeDecl ) {
229                if ( typeDecl->get_base() ) {
230                        Type *new_type = resolveTypeof( typeDecl->get_base(), *this );
231                        typeDecl->set_base( new_type );
232                } // if
233                Parent::visit( typeDecl );
234        }
235
236        void Resolver::visit( FunctionDecl *functionDecl ) {
237#if 0
238                std::cout << "resolver visiting functiondecl ";
239                functionDecl->print( std::cout );
240                std::cout << std::endl;
241#endif
242                Type *new_type = resolveTypeof( functionDecl->get_type(), *this );
243                functionDecl->set_type( new_type );
244                ValueGuard< Type * > oldFunctionReturn( functionReturn );
245                functionReturn = ResolvExpr::extractResultType( functionDecl->get_functionType() );
246                Parent::visit( functionDecl );
247
248                // default value expressions have an environment which shouldn't be there and trips up later passes.
249                // xxx - it might be necessary to somehow keep the information from this environment, but I can't currently
250                // see how it's useful.
251                for ( Declaration * d : functionDecl->get_functionType()->get_parameters() ) {
252                        if ( ObjectDecl * obj = dynamic_cast< ObjectDecl * >( d ) ) {
253                                if ( SingleInit * init = dynamic_cast< SingleInit * >( obj->get_init() ) ) {
254                                        delete init->get_value()->get_env();
255                                        init->get_value()->set_env( nullptr );
256                                }
257                        }
258                }
259        }
260
261        void Resolver::visit( EnumDecl * enumDecl ) {
262                // in case we decide to allow nested enums
263                ValueGuard< bool > oldInEnumDecl( inEnumDecl );
264                inEnumDecl = true;
265                Parent::visit( enumDecl );
266        }
267
268        void Resolver::visit( ExprStmt *exprStmt ) {
269                assertf( exprStmt->get_expr(), "ExprStmt has null Expression in resolver" );
270                Expression *newExpr = findVoidExpression( exprStmt->get_expr(), *this );
271                delete exprStmt->get_expr();
272                exprStmt->set_expr( newExpr );
273        }
274
275        void Resolver::visit( AsmExpr *asmExpr ) {
276                Expression *newExpr = findVoidExpression( asmExpr->get_operand(), *this );
277                delete asmExpr->get_operand();
278                asmExpr->set_operand( newExpr );
279                if ( asmExpr->get_inout() ) {
280                        newExpr = findVoidExpression( asmExpr->get_inout(), *this );
281                        delete asmExpr->get_inout();
282                        asmExpr->set_inout( newExpr );
283                } // if
284        }
285
286        void Resolver::visit( AsmStmt *asmStmt ) {
287                acceptAll( asmStmt->get_input(), *this);
288                acceptAll( asmStmt->get_output(), *this);
289        }
290
291        void Resolver::visit( IfStmt *ifStmt ) {
292                Expression *newExpr = findSingleExpression( ifStmt->get_condition(), *this );
293                delete ifStmt->get_condition();
294                ifStmt->set_condition( newExpr );
295                Parent::visit( ifStmt );
296        }
297
298        void Resolver::visit( WhileStmt *whileStmt ) {
299                Expression *newExpr = findSingleExpression( whileStmt->get_condition(), *this );
300                delete whileStmt->get_condition();
301                whileStmt->set_condition( newExpr );
302                Parent::visit( whileStmt );
303        }
304
305        void Resolver::visit( ForStmt *forStmt ) {
306                Parent::visit( forStmt );
307
308                if ( forStmt->get_condition() ) {
309                        Expression * newExpr = findSingleExpression( forStmt->get_condition(), *this );
310                        delete forStmt->get_condition();
311                        forStmt->set_condition( newExpr );
312                } // if
313
314                if ( forStmt->get_increment() ) {
315                        Expression * newExpr = findVoidExpression( forStmt->get_increment(), *this );
316                        delete forStmt->get_increment();
317                        forStmt->set_increment( newExpr );
318                } // if
319        }
320
321        void Resolver::visit( SwitchStmt *switchStmt ) {
322                ValueGuard< CurrentObject > oldCurrentObject( currentObject );
323                Expression *newExpr;
324                newExpr = findIntegralExpression( switchStmt->get_condition(), *this );
325                delete switchStmt->get_condition();
326                switchStmt->set_condition( newExpr );
327
328                currentObject = CurrentObject( newExpr->get_result() );
329                Parent::visit( switchStmt );
330        }
331
332        void Resolver::visit( CaseStmt *caseStmt ) {
333                if ( caseStmt->get_condition() ) {
334                        std::list< InitAlternative > initAlts = currentObject.getOptions();
335                        assertf( initAlts.size() == 1, "SwitchStmt did not correctly resolve an integral expression." );
336                        CastExpr * castExpr = new CastExpr( caseStmt->get_condition(), initAlts.front().type->clone() );
337                        Expression * newExpr = findSingleExpression( castExpr, *this );
338                        castExpr = safe_dynamic_cast< CastExpr * >( newExpr );
339                        caseStmt->set_condition( castExpr->get_arg() );
340                        castExpr->set_arg( nullptr );
341                        delete castExpr;
342                }
343                Parent::visit( caseStmt );
344        }
345
346        void Resolver::visit( BranchStmt *branchStmt ) {
347                // must resolve the argument for a computed goto
348                if ( branchStmt->get_type() == BranchStmt::Goto ) { // check for computed goto statement
349                        if ( Expression * arg = branchStmt->get_computedTarget() ) {
350                                VoidType v = Type::Qualifiers();                // cast to void * for the alternative finder
351                                PointerType pt( Type::Qualifiers(), v.clone() );
352                                CastExpr * castExpr = new CastExpr( arg, pt.clone() );
353                                Expression * newExpr = findSingleExpression( castExpr, *this ); // find best expression
354                                branchStmt->set_target( newExpr );
355                        } // if
356                } // if
357        }
358
359        void Resolver::visit( ReturnStmt *returnStmt ) {
360                if ( returnStmt->get_expr() ) {
361                        CastExpr *castExpr = new CastExpr( returnStmt->get_expr(), functionReturn->clone() );
362                        Expression *newExpr = findSingleExpression( castExpr, *this );
363                        delete castExpr;
364                        returnStmt->set_expr( newExpr );
365                } // if
366        }
367
368        template< typename T >
369        bool isCharType( T t ) {
370                if ( BasicType * bt = dynamic_cast< BasicType * >( t ) ) {
371                        return bt->get_kind() == BasicType::Char || bt->get_kind() == BasicType::SignedChar ||
372                                bt->get_kind() == BasicType::UnsignedChar;
373                }
374                return false;
375        }
376
377        template< typename Aggr >
378        void lookupDesignation( Aggr * aggr, const std::list< Expression > & designators ) {
379
380        }
381
382        void Resolver::visit( SingleInit *singleInit ) {
383                UntypedInitExpr * untyped = new UntypedInitExpr( singleInit->get_value(), currentObject.getOptions() );
384                Expression * newExpr = findSingleExpression( untyped, *this );
385                InitExpr * initExpr = safe_dynamic_cast< InitExpr * >( newExpr );
386                singleInit->set_value( new CastExpr( initExpr->get_expr()->clone(), initExpr->get_result()->clone() ) );
387                currentObject.setNext( initExpr->get_designation() );
388                currentObject.increment();
389                delete initExpr;
390
391                // // check if initializing type is char[]
392                // if ( ArrayType * at = dynamic_cast< ArrayType * >( initContext ) ) {
393                //      if ( isCharType( at->get_base() ) ) {
394                //              // check if the resolved type is char *
395                //              if ( PointerType * pt = dynamic_cast< PointerType *>( newExpr->get_result() ) ) {
396                //                      if ( isCharType( pt->get_base() ) ) {
397                //                              // strip cast if we're initializing a char[] with a char *, e.g.  char x[] = "hello";
398                //                              CastExpr *ce = dynamic_cast< CastExpr * >( newExpr );
399                //                              singleInit->set_value( ce->get_arg() );
400                //                              ce->set_arg( NULL );
401                //                              delete ce;
402                //                      }
403                //              }
404                //      }
405                // }
406        }
407
408        // template< typename AggrInst >
409        // TypeSubstitution makeGenericSubstitution( AggrInst * inst ) {
410        //      assert( inst );
411        //      assert( inst->get_baseParameters() );
412        //      std::list< TypeDecl * > baseParams = *inst->get_baseParameters();
413        //      std::list< Expression * > typeSubs = inst->get_parameters();
414        //      TypeSubstitution subs( baseParams.begin(), baseParams.end(), typeSubs.begin() );
415        //      return subs;
416        // }
417
418        // ReferenceToType * isStructOrUnion( Type * type ) {
419        //      if ( StructInstType * sit = dynamic_cast< StructInstType * >( type ) ) {
420        //              return sit;
421        //      } else if ( UnionInstType * uit = dynamic_cast< UnionInstType * >( type ) ) {
422        //              return uit;
423        //      }
424        //      return nullptr;
425        // }
426
427        // void Resolver::resolveSingleAggrInit( Declaration * dcl, InitIterator & init, InitIterator & initEnd, TypeSubstitution sub ) {
428        //      ObjectDecl * obj = dynamic_cast< ObjectDecl * >( dcl );
429        //      assert( obj );
430        //      // need to substitute for generic types, so that casts are to concrete types
431        //      currentObject = obj->clone();  // xxx - delete this
432        //      sub.apply( currentObject );
433
434        //      try {
435        //              if ( init == initEnd ) return; // stop when there are no more initializers
436        //              (*init)->accept( *this );
437        //              ++init; // made it past an initializer
438        //      } catch( SemanticError & ) {
439        //              // need to delve deeper, if you can
440        //              if ( ReferenceToType * type = isStructOrUnion( currentObject->get_type() ) ) {
441        //                      resolveAggrInit( type, init, initEnd );
442        //              } else {
443        //                      // member is not an aggregate type, so can't go any deeper
444
445        //                      // might need to rethink what is being thrown
446        //                      throw;
447        //              } // if
448        //      }
449        // }
450
451        // void Resolver::resolveAggrInit( ReferenceToType * inst, InitIterator & init, InitIterator & initEnd ) {
452        //      if ( StructInstType * sit = dynamic_cast< StructInstType * >( inst ) ) {
453        //              TypeSubstitution sub = makeGenericSubstitution( sit );
454        //              StructDecl * st = sit->get_baseStruct();
455        //              if(st->get_members().empty()) return;
456        //              // want to resolve each initializer to the members of the struct,
457        //              // but if there are more initializers than members we should stop
458        //              list< Declaration * >::iterator it = st->get_members().begin();
459        //              for ( ; it != st->get_members().end(); ++it) {
460        //                      resolveSingleAggrInit( *it, init, initEnd, sub );
461        //              }
462        //      } else if ( UnionInstType * uit = dynamic_cast< UnionInstType * >( inst ) ) {
463        //              TypeSubstitution sub = makeGenericSubstitution( uit );
464        //              UnionDecl * un = uit->get_baseUnion();
465        //              if(un->get_members().empty()) return;
466        //              // only resolve to the first member of a union
467        //              resolveSingleAggrInit( *un->get_members().begin(), init, initEnd, sub );
468        //      } // if
469        // }
470
471        void Resolver::visit( ListInit * listInit ) {
472                currentObject.enterListInit();
473                // xxx - fix this so that the list isn't copied, iterator should be used to change current element
474                std::list<Designation *> newDesignations;
475                for ( auto p : group_iterate(listInit->get_designations(), listInit->get_initializers()) ) {
476                        Designation * des = std::get<0>(p);
477                        Initializer * init = std::get<1>(p);
478                        newDesignations.push_back( currentObject.findNext( des ) );
479                        init->accept( *this );
480                }
481                listInit->get_designations() = newDesignations; // xxx - memory management
482                currentObject.exitListInit();
483
484                // } else if ( TypeInstType * tt = dynamic_cast< TypeInstType * >( initContext ) ) {
485                //      Type * base = tt->get_baseType()->get_base();
486                //      if ( base ) {
487                //              // know the implementation type, so try using that as the initContext
488                //              ObjectDecl tmpObj( "", Type::StorageClasses(), LinkageSpec::Cforall, nullptr, base->clone(), nullptr );
489                //              currentObject = &tmpObj;
490                //              visit( listInit );
491                //      } else {
492                //              // missing implementation type -- might be an unknown type variable, so try proceeding with the current init context
493                //              Parent::visit( listInit );
494                //      }
495                // } else {
496        }
497
498        // ConstructorInit - fall back on C-style initializer
499        void Resolver::fallbackInit( ConstructorInit * ctorInit ) {
500                // could not find valid constructor, or found an intrinsic constructor
501                // fall back on C-style initializer
502                delete ctorInit->get_ctor();
503                ctorInit->set_ctor( NULL );
504                delete ctorInit->get_dtor();
505                ctorInit->set_dtor( NULL );
506                maybeAccept( ctorInit->get_init(), *this );
507        }
508
509        // needs to be callable from outside the resolver, so this is a standalone function
510        void resolveCtorInit( ConstructorInit * ctorInit, const SymTab::Indexer & indexer ) {
511                assert( ctorInit );
512                Resolver resolver( indexer );
513                ctorInit->accept( resolver );
514        }
515
516        void resolveStmtExpr( StmtExpr * stmtExpr, const SymTab::Indexer & indexer ) {
517                assert( stmtExpr );
518                Resolver resolver( indexer );
519                stmtExpr->accept( resolver );
520        }
521
522        void Resolver::visit( ConstructorInit *ctorInit ) {
523                // xxx - fallback init has been removed => remove fallbackInit function and remove complexity from FixInit and remove C-init from ConstructorInit
524                maybeAccept( ctorInit->get_ctor(), *this );
525                maybeAccept( ctorInit->get_dtor(), *this );
526
527                // found a constructor - can get rid of C-style initializer
528                delete ctorInit->get_init();
529                ctorInit->set_init( NULL );
530
531                // intrinsic single parameter constructors and destructors do nothing. Since this was
532                // implicitly generated, there's no way for it to have side effects, so get rid of it
533                // to clean up generated code.
534                if ( InitTweak::isIntrinsicSingleArgCallStmt( ctorInit->get_ctor() ) ) {
535                        delete ctorInit->get_ctor();
536                        ctorInit->set_ctor( NULL );
537                }
538
539                if ( InitTweak::isIntrinsicSingleArgCallStmt( ctorInit->get_dtor() ) ) {
540                        delete ctorInit->get_dtor();
541                        ctorInit->set_dtor( NULL );
542                }
543
544                // xxx - todo -- what about arrays?
545                // if ( dtor == NULL && InitTweak::isIntrinsicCallStmt( ctorInit->get_ctor() ) ) {
546                //      // can reduce the constructor down to a SingleInit using the
547                //      // second argument from the ctor call, since
548                //      delete ctorInit->get_ctor();
549                //      ctorInit->set_ctor( NULL );
550
551                //      Expression * arg =
552                //      ctorInit->set_init( new SingleInit( arg ) );
553                // }
554        }
555} // namespace ResolvExpr
556
557// Local Variables: //
558// tab-width: 4 //
559// mode: c++ //
560// compile-command: "make install" //
561// End: //
Note: See TracBrowser for help on using the repository browser.