Changes in / [1c85ffc:2b12d6e]
- Files:
-
- 3 edited
-
src/AST/Chain.hpp (modified) (1 diff)
-
src/ResolvExpr/Resolver.cc (modified) (3 diffs)
-
tests/.expect/PRNG.x86.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Chain.hpp
r1c85ffc r2b12d6e 33 33 template<typename actual_node_t, typename child_t> 34 34 auto operator()( child_t actual_node_t::*child ) { 35 node_t * n = base.get_and_mutate();35 auto n = mutate(base.get()); 36 36 actual_node_t * node = strict_dynamic_cast<actual_node_t *>(n); 37 base = node; 37 38 return _chain_mutator< typename std::remove_reference< decltype(node->*child) >::type >{node->*child}; 38 39 } 39 40 40 41 node_t * operator->() { 41 return base.get_and_mutate(); 42 auto n = mutate(base.get()); 43 base = n; 44 return n; 42 45 } 43 46 }; -
src/ResolvExpr/Resolver.cc
r1c85ffc r2b12d6e 29 29 #include "Unify.h" // for unify 30 30 #include "CompilationState.h" 31 #include "AST/Chain.hpp" 31 32 #include "AST/Decl.hpp" 32 33 #include "AST/Init.hpp" … … 103 104 } 104 105 } 105 } 106 } 106 } 107 } 107 108 visit_children = false; 108 109 } … … 606 607 ( objectDecl->get_type() )->base->base ) { 607 608 objectDecl = fixObjectType( objectDecl, context ); 608 currentObject = ast::CurrentObject{ 609 objectDecl->location, 609 currentObject = ast::CurrentObject{ 610 objectDecl->location, 610 611 enumBase 611 612 }; -
tests/.expect/PRNG.x86.txt
r1c85ffc r2b12d6e 26 26 27 27 Sequential 28 trials 10000000 buckets 100000 min 62 max 144 avg 100.0 std 10.0 rstd 10.0%28 trials 100000000 buckets 100000 min 858 max 1147 avg 1000.0 std 31.5 rstd 3.2% 29 29 30 30 Concurrent 31 trials 10000000 buckets 100000 min 62 max 144 avg 100.0 std 10.0 rstd 10.0%32 trials 10000000 buckets 100000 min 62 max 144 avg 100.0 std 10.0 rstd 10.0%33 trials 10000000 buckets 100000 min 62 max 144 avg 100.0 std 10.0 rstd 10.0%34 trials 10000000 buckets 100000 min 62 max 144 avg 100.0 std 10.0 rstd 10.0%31 trials 100000000 buckets 100000 min 858 max 1147 avg 1000.0 std 31.5 rstd 3.2% 32 trials 100000000 buckets 100000 min 858 max 1147 avg 1000.0 std 31.5 rstd 3.2% 33 trials 100000000 buckets 100000 min 858 max 1147 avg 1000.0 std 31.5 rstd 3.2% 34 trials 100000000 buckets 100000 min 858 max 1147 avg 1000.0 std 31.5 rstd 3.2% 35 35 36 36 prng() prng(5) prng(0,5) … … 58 58 59 59 Sequential 60 trials 2000000 buckets 100000 min 3 max 42 avg 20.0 std 4.5 rstd 22.4%60 trials 20000000 buckets 100000 min 144 max 270 avg 200.0 std 14.1 rstd 7.1% 61 61 62 62 Concurrent 63 trials 2000000 buckets 100000 min 3 max 42 avg 20.0 std 4.5 rstd 22.4%64 trials 2000000 buckets 100000 min 3 max 42 avg 20.0 std 4.5 rstd 22.4%65 trials 2000000 buckets 100000 min 3 max 42 avg 20.0 std 4.5 rstd 22.4%66 trials 2000000 buckets 100000 min 3 max 42 avg 20.0 std 4.5 rstd 22.4%63 trials 20000000 buckets 100000 min 144 max 270 avg 200.0 std 14.1 rstd 7.1% 64 trials 20000000 buckets 100000 min 144 max 270 avg 200.0 std 14.1 rstd 7.1% 65 trials 20000000 buckets 100000 min 144 max 270 avg 200.0 std 14.1 rstd 7.1% 66 trials 20000000 buckets 100000 min 144 max 270 avg 200.0 std 14.1 rstd 7.1% 67 67 68 68 prng(t) prng(t,5) prng(t,0,5) … … 90 90 91 91 Sequential 92 trials 10000000 buckets 100000 min 62 max 144 avg 100.0 std 10.0 rstd 10.0%92 trials 100000000 buckets 100000 min 858 max 1147 avg 1000.0 std 31.5 rstd 3.2% 93 93 94 94 Concurrent 95 trials 10000000 buckets 100000 min 62 max 144 avg 100.0 std 10.0 rstd 10.0%96 trials 10000000 buckets 100000 min 62 max 144 avg 100.0 std 10.0 rstd 10.0%97 trials 10000000 buckets 100000 min 62 max 144 avg 100.0 std 10.0 rstd 10.0%98 trials 10000000 buckets 100000 min 62 max 144 avg 100.0 std 10.0 rstd 10.0%95 trials 100000000 buckets 100000 min 858 max 1147 avg 1000.0 std 31.5 rstd 3.2% 96 trials 100000000 buckets 100000 min 858 max 1147 avg 1000.0 std 31.5 rstd 3.2% 97 trials 100000000 buckets 100000 min 858 max 1147 avg 1000.0 std 31.5 rstd 3.2% 98 trials 100000000 buckets 100000 min 858 max 1147 avg 1000.0 std 31.5 rstd 3.2%
Note:
See TracChangeset
for help on using the changeset viewer.