Changes in / [9a7c88f:b5276fc]
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
src/CompilationState.cc
r9a7c88f rb5276fc 27 27 nopreludep = false, 28 28 genproto = false, 29 deterministic_output = false, 29 30 nomainp = false, 30 31 parsep = false, -
src/CompilationState.h
r9a7c88f rb5276fc 28 28 nopreludep, 29 29 genproto, 30 deterministic_output, 30 31 nomainp, 31 32 parsep, -
src/ResolvExpr/TypeEnvironment.cc
r9a7c88f rb5276fc 20 20 #include <utility> // for pair, move 21 21 22 #include "CompilationState.h" // for deterministic_output 22 23 #include "Common/utility.h" // for maybeClone 23 24 #include "SynTree/Type.h" // for Type, FunctionType, Type::Fora... … … 106 107 107 108 void EqvClass::print( std::ostream &os, Indenter indent ) const { 108 os << "( "; 109 std::copy( vars.begin(), vars.end(), std::ostream_iterator< std::string >( os, " " ) ); 110 os << ")"; 109 if( !deterministic_output ) { 110 os << "( "; 111 std::copy( vars.begin(), vars.end(), std::ostream_iterator< std::string >( os, " " ) ); 112 os << ")"; 113 } 111 114 if ( type ) { 112 115 os << " -> "; … … 235 238 // check safely bindable 236 239 if ( r.type && occursIn( r.type, s.vars.begin(), s.vars.end(), *this ) ) return false; 237 240 238 241 // merge classes in 239 242 r.vars.insert( s.vars.begin(), s.vars.end() ); -
src/main.cc
r9a7c88f rb5276fc 443 443 444 444 445 static const char optstring[] = ":c:ghlLmNnp P:S:twW:D:";445 static const char optstring[] = ":c:ghlLmNnpdP:S:twW:D:"; 446 446 447 447 enum { PreludeDir = 128 }; … … 456 456 { "no-prelude", no_argument, nullptr, 'n' }, 457 457 { "prototypes", no_argument, nullptr, 'p' }, 458 { "deterministic-out", no_argument, nullptr, 'd' }, 458 459 { "print", required_argument, nullptr, 'P' }, 459 460 { "prelude-dir", required_argument, nullptr, PreludeDir }, … … 476 477 "do not read prelude", // -n 477 478 "generate prototypes for prelude functions", // -p 479 "don't print output that isn't deterministic", // -d 478 480 "print", // -P 479 481 "<directory> prelude directory for debug/nodebug", // no flag … … 580 582 genproto = true; 581 583 break; 584 case 'd': // don't print non-deterministic output 585 deterministic_output = true; 586 break; 582 587 case 'P': // print options 583 588 for ( int i = 0;; i += 1 ) { -
tests/Makefile.am
r9a7c88f rb5276fc 41 41 -quiet @CFA_FLAGS@ \ 42 42 -DIN_DIR="${abs_srcdir}/.in/" 43 44 AM_CFAFLAGS = -XCFA --deterministic-out 43 45 44 46 # get the desired cfa to test -
tests/Makefile.in
r9a7c88f rb5276fc 408 408 -DIN_DIR="${abs_srcdir}/.in/" 409 409 410 AM_CFAFLAGS = -XCFA --deterministic-out 410 411 411 412 # get the desired cfa to test -
tests/errors/.expect/completeType.txt
r9a7c88f rb5276fc 27 27 void 28 28 ) 29 Environment: ( _85_4_DT )-> instance of struct A with body 0 (no widening)29 Environment: -> instance of struct A with body 0 (no widening) 30 30 31 31 … … 50 50 void 51 51 ) 52 Environment: ( _85_4_DT )-> instance of struct B with body 1 (no widening)52 Environment: -> instance of struct B with body 1 (no widening) 53 53 54 54 … … 127 127 void 128 128 ) 129 Environment: ( _104_0_T )-> instance of type T (not function type) (no widening)129 Environment: -> instance of type T (not function type) (no widening) 130 130 131 131 Could not satisfy assertion:
Note: See TracChangeset
for help on using the changeset viewer.