#!/bin/bash

# This script invokes one of the register allocators. To test change the
# implementation of the register allocator, move the comments in the script.
# If one wants to call Krishna's ILP solver, available in samoa.cs.ucla.edu,
# then the following commands can be useful:
# set -x
# ilp.data ilp.out
# $TMPDIR/ilp.data $TMPDIR/ilp.out

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

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

#$JAVA5 RegAlloc.ChordalAllocation.DMC_Alloc_SwapColors $1 > $2
$JAVA5 RegAlloc.ChordalAllocation.DMC_Alloc $1 > $2
#$JAVA5 RegAlloc.Naive.NaiveAllocator $1 > $2
#$JAVA5 RegAlloc.IRC.IRC_Alloc $1 > $2
#$JAVA5 RegAlloc.UCB.UCAllocator $1 > $2
