Commit 8fee6edf authored by Etienne Renault's avatar Etienne Renault
Browse files

blackbox: fix early stop computation

Depending on the layout of the map, one could
stop when encountering prefix only. We should
was the wall set

* tools/formulae.go: Here.
parent 92ce4f83
......@@ -6,6 +6,7 @@ import (
"io/ioutil"
"os"
"regexp"
"strings"
)
func Formuala(inputfile, formula string) string {
......@@ -79,11 +80,9 @@ func parseFormulaeLine(line string, r *regexp.Regexp, neededFunc map[string]bool
}
func checkVarName(elt string, neededFunc map[string]bool) {
for key, _ := range neededFunc {
if match, _ := regexp.MatchString(key, elt); match {
neededFunc[key] = true
break
}
neededFunc[key] = strings.Contains(elt, key)
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment