repositories
/
master.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ar finished
[master.git]
/
ar
/
assignment1
/
src
/
a1.bash
diff --git a/ar/assignment1/src/a1.bash
b/ar/assignment1/src/a1.bash
new file mode 100644
(file)
index 0000000..
5ef0e5f
--- /dev/null
+++ b/
ar/assignment1/src/a1.bash
@@ -0,0
+1,7
@@
+i=1
+while [ $(sed "s/<REP>/$i/g" a1.smt | yices-smt) = "sat" ]; do
+ echo "n(p)=$i is still sat"
+ i=$((i+1))
+done
+echo "n(p)=$i is unsat thus maximum n(p)=$((i-1))"
+sed "s/<REP>/$((i-1))/g" a1.smt | yices-smt -m