#!/bin/bash

# This script invokes my register allocator. This allocator will use the usage
# based allocator described in the Dragon Book. After performing the register
# allocation, the java program calls the debugger to verify if the allocation
# is correct. This java program (RegAlloc.TestAllocator) can be used as a
# template to test new register allocators.
# If one wants to call Krishna's
# ILP solver, then the following commands can be useful:
#set -x
# ilp.data ilp.out
# $TMPDIR/ilp.data $TMPDIR/ilp.out

JAVA5="/misc/usr/local/java/jdk1.5.0_04/bin/java"

# input:
# $1 the mira file
# $2 the ford file that will be generated

$JAVA5 RegAlloc.TestAllocator $1 $2
