Examples for Project 1

Examples for STM

Example 1

Input 1
Command line Output
1A: stm -b 50 fraction.stm Output 1A
1B: stm -b 50 -d 1 fraction.stm Output 1B
1C: stm -b 50 -d 1 fraction.stm Output 1C

Example 2

Input 2
Command line Output
2A: stm -b 1000 primes.stm Output 2A
2B: stm -b 1000 -d 1 primes.stm Output 2B
2C: stm -b 1000 -d 2 primes.stm Output 2C

Example 3

Input 3
Command line Output
3A: stm fraction.stm Output 3A
3B: stm -d 1 fraction.stm Output 3B
3C: stm -d 2 fraction.stm Output 3C

Example 4

Input 4
Command line Output
4A: stm sort.stm Output 4A
4B: stm -d 1 sort.stm Output 4B
4C: stm -d 2 sort.stm Output 4C

Example 5

Input 5
Command line Output
5A: stm fraction.stm Output 5A
5B: stm -d 1 fraction.stm Output 5B
5C: stm -d 2 fraction.stm Output 5C

Example 6

Input 6
Command line Output
6A: stm sort.stm Output 6A
6B: stm -d 1 sort.stm Output 6B
6C: stm -d 2 sort.stm Output 6C

Examples for Project 1

Example P1

Input P1
Command line Output
P1A: project1 fraction.stm primes.stm Output P1A
P1B: project1 -d 1 fraction.stm primes.stm Output P1B
P1C: project1 -d 2 fraction.stm primes.stm Output P1C

Example P2

Input P2
Command line Output
P2A: project1 fraction.stm primes.stm fraction.stm sort.stm Output P2A
P2B: project1 -d 1 fraction.stm primes.stm fraction.stm sort.stm Output P2B
P2C: project1 -d 2 fraction.stm primes.stm fraction.stm sort.stm Output P2C

Example P3

Input P3
Command line Output
P3A: project1 -q 10 fraction.stm primes.stm Output P3A
P3B: project1 -q 10 -d 1 fraction.stm primes.stm Output P3B
P3C: project1 -q 10 -d 2 fraction.stm primes.stm Output P3C