-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
22 lines (15 loc) · 878 Bytes
/
README
File metadata and controls
22 lines (15 loc) · 878 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
This is the provided code for COMP621 assignment 2.
There are two examples:
* The one in natlab.cs621.instrumentation instruments an input program
to count and display the number of assignments it makes at runtime.
* The one in natlab.cs621.analysis is a simple reaching defs analysis.
(It doesn't handle: global variables, persistent variables, function
parameters, and nested functions.)
You can build the code by running "ant". This generates two scripts:
* profile-assignments.sh takes in matlab files and writes out the
instrumented code in the "instrumented/" directory. (This directory is
deleted and recreated it each time it's run.)
e.g. ./profile-assignments.sh f1.m f2.m
* analyze-reaching-defs.sh takes in matlab files and prints out analysis
results for each function/script to standard output.
e.g. ./analyze-reaching-defs.sh f1.m f2.m > results.txt