#!/bin/bash # # Usage: # ./run.sh set -o nounset set -o pipefail set -o errexit # Call gcc with the flags we like. # NOTE: -O3 does a lot for fast_em. (More than 5x speedup over unoptimized) cpp-compiler() { g++ -Wall -Wextra -O3 "$@" #clang++ -Wall -Wextra -O3 "$@" } build-find-cliques() { mkdir -p _tmp # C++ 11 for unordered_{map,set} cpp-compiler -std=c++0x -o _tmp/find_cliques find_cliques.cc } find-cliques() { _tmp/find_cliques "$@" } test-bad-edge() { # Edge should go from lesser partition number to greater find-cliques <