aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2019-03-13 02:37:12 +0100
committerDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2019-03-13 02:37:12 +0100
commit86aecfee139ed5cd76c38f82f03b7d7264583b79 (patch)
treeb03ce1bb30ead980d1bdaa0b2ca71741690480a3 /scripts
parent72e3e2dd1c73469ac2475c2787d2e85437d53b35 (diff)
downloadcompcert-kvx-86aecfee139ed5cd76c38f82f03b7d7264583b79.tar.gz
compcert-kvx-86aecfee139ed5cd76c38f82f03b7d7264583b79.zip
attempt at parser for cplex
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/cplex/ilp_solver7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/cplex/ilp_solver b/scripts/cplex/ilp_solver
new file mode 100755
index 00000000..9a6ff055
--- /dev/null
+++ b/scripts/cplex/ilp_solver
@@ -0,0 +1,7 @@
+#!/bin/sh
+tmp=$2.tmp
+rm -f $tmp
+cplex -c "read $1" "optimize" "write $tmp sol"
+grep '<variable name="' $tmp | sed -e 's@ *<variable name="@@' -e 's@" index=.* value="@ @' -e 's@"/>@@' > $2
+touch $2
+