Changeset 63bde81 for doc/theses/andrew_beach_MMath/code
- Timestamp:
- Jul 19, 2021, 4:03:19 PM (4 years ago)
- Branches:
- ADT, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- f9b68d6
- Parents:
- 12a1013 (diff), fcaa1e4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- doc/theses/andrew_beach_MMath/code
- Files:
-
- 8 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/theses/andrew_beach_MMath/code/cond-catch.cpp
r12a1013 r63bde81 19 19 throw_exception(); 20 20 } catch (EmptyException & exc) { 21 if ( should_catch) {21 if (!should_catch) { 22 22 throw; 23 23 } -
doc/theses/andrew_beach_MMath/code/cond-fixup.cfa
r12a1013 r63bde81 12 12 13 13 void throw_exception() { 14 throw (empty_exception){&empty_vt};14 throwResume (empty_exception){&empty_vt}; 15 15 } 16 16 … … 18 18 try { 19 19 throw_exception(); 20 } catch (empty_exception * exc ; should_catch) {20 } catchResume (empty_exception * exc ; should_catch) { 21 21 // ... 22 22 } … … 36 36 try { 37 37 cond_catch(); 38 } catch (empty_exception * exc) {38 } catchResume (empty_exception * exc) { 39 39 // ... 40 40 } -
doc/theses/andrew_beach_MMath/code/resume-empty.cfa
r12a1013 r63bde81 13 13 unwind_empty(frames - 1); 14 14 } else { 15 throw (empty_exception){&empty_vt};15 throwResume (empty_exception){&empty_vt}; 16 16 } 17 17 } … … 31 31 try { 32 32 unwind_empty(total_frames); 33 } catch (empty_exception *) {33 } catchResume (empty_exception *) { 34 34 // ... 35 35 } -
doc/theses/andrew_beach_MMath/code/test.sh
r12a1013 r63bde81 18 18 *.cfa) 19 19 # Requires a symbolic link. 20 mmake "${1%.cfa}" "$1" ./cfa "$1" -o "${1%.cfa}"20 mmake "${1%.cfa}" "$1" ./cfa -DNDEBUG -nodebug -O3 "$1" -o "${1%.cfa}" 21 21 ;; 22 22 *.cpp) 23 mmake "${1%.cpp}-cpp" "$1" g++ "$1" -o "${1%.cpp}-cpp"23 mmake "${1%.cpp}-cpp" "$1" g++ -DNDEBUG -O3 "$1" -o "${1%.cpp}-cpp" 24 24 ;; 25 25 *.java) … … 39 39 exit 0 40 40 elif [ 2 -eq "$#" ]; then 41 42 41 TEST_LANG="$1" 42 TEST_CASE="$2" 43 43 else 44 45 44 echo "Unknown call pattern." >&2 45 exit 2 46 46 fi 47 47 … … 58 58 CPP="./cond-catch-cpp $ITERATIONS 1" 59 59 JAVA="java CondCatch $ITERATIONS 1" 60 PYTHON="./cond_catch.py $ITERATIONS 1" 60 61 ;; 61 62 cond-match-none) … … 64 65 CPP="./cond-catch-cpp $ITERATIONS 0" 65 66 JAVA="java CondCatch $ITERATIONS 0" 67 PYTHON="./cond_catch.py $ITERATIONS 0" 66 68 ;; 67 69 cross-catch) … … 70 72 CPP="./cross-catch-cpp $ITERATIONS" 71 73 JAVA="java CrossCatch $ITERATIONS" 74 PYTHON="./cross_catch.py $ITERATIONS" 72 75 ;; 73 76 cross-finally) … … 76 79 CPP=unsupported 77 80 JAVA="java CrossFinally $ITERATIONS" 81 PYTHON="./cross_finally.py $ITERATIONS" 78 82 ;; 79 83 raise-detor) … … 82 86 CPP="./throw-detor-cpp $ITERATIONS $STACK_HEIGHT" 83 87 JAVA=unsupported 88 PYTHON=unsupported 84 89 ;; 85 90 raise-empty) … … 88 93 CPP="./throw-empty-cpp $ITERATIONS $STACK_HEIGHT" 89 94 JAVA="java ThrowEmpty $ITERATIONS $STACK_HEIGHT" 95 PYTHON="./throw_empty.py $ITERATIONS $STACK_HEIGHT" 90 96 ;; 91 97 raise-finally) … … 94 100 CPP=unsupported 95 101 JAVA="java ThrowFinally $ITERATIONS $STACK_HEIGHT" 102 PYTHON="./throw_finally.py $ITERATIONS $STACK_HEIGHT" 96 103 ;; 97 104 raise-other) … … 100 107 CPP="./throw-other-cpp $ITERATIONS $STACK_HEIGHT" 101 108 JAVA="java ThrowOther $ITERATIONS $STACK_HEIGHT" 109 PYTHON="./throw_other.py $ITERATIONS $STACK_HEIGHT" 102 110 ;; 103 111 *) … … 112 120 cpp) echo $CPP; $CPP;; 113 121 java) echo $JAVA; $JAVA;; 122 python) echo $PYTHON; $PYTHON;; 114 123 *) 115 124 echo "No such language: $TEST_LANG" >&2 116 125 exit 2 126 ;; 117 127 esac
Note:
See TracChangeset
for help on using the changeset viewer.