#!/bin/bash echo "Compiling executable..." llvm-gcc myctype.c analyze-linkage.c main.c read-dict.c and.c massage.c strncasecmp.c build-disjuncts.c parse.c utilities.c extract-links.c post-process.c word-file.c fast-match.c print.c xalloc.c idiom.c prune.c -o executable; echo "Producing ln..." llc -f -stats -regalloc=linearscan executable.bc -o ln.s; gcc ln.s -o ln_exec; echo "Producing ch..." llc -f -stats -regalloc=chordal executable.bc -o ch.s; gcc ch.s -o ch_exec; echo "Statistics:" stats_sh ch.s ln.s; echo "Running ln_exec"; time ./ln_exec 2.1.dict < test.in > /dev/null echo "Running ch_exec"; time ./ch_exec 2.1.dict < test.in > /dev/null