Skip to content

Commit

Permalink
Correctly handling SAT calls
Browse files Browse the repository at this point in the history
  • Loading branch information
vale1410 committed Dec 17, 2020
1 parent ab262d2 commit 3a6bb65
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ The SAT Programming System Bule
Run: func(cmd *cobra.Command, args []string) {

if versionFlag {
fmt.Println("Bule Version 2.8. Copyright Valentin Mayer-Eichberger & Sebastian Jurkowski, 12.12.2020")
fmt.Println("Bule Version 2.9. Copyright Valentin Mayer-Eichberger & Sebastian Jurkowski, 16.12.2020")
return
}
},
Expand Down
3 changes: 3 additions & 0 deletions cmd/solve.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ and usage of using your command.
debug(1, fmt.Sprintf("Output by %s", progName))
scanner := bufio.NewScanner(strings.NewReader(string(cmdOutput)))
result := []int{}
fmt.Println("-------- Solver output ----- ")
for scanner.Scan() {
s := scanner.Text()
if strings.HasPrefix(s, "V ") || strings.HasPrefix(s, "v ") {
Expand All @@ -237,6 +238,8 @@ and usage of using your command.
reverseMap[v] = k
}

fmt.Println("-------- Solver output end ----- ")

if isTrue {
fmt.Println("s SAT\n--------")
for _, id := range result {
Expand Down

0 comments on commit 3a6bb65

Please sign in to comment.