Skip to content

Commit dcf34d7

Browse files
authored
Merge pull request #20 from msakai/fix/hint-hash-prefix
Fix to generate correct hint
2 parents b789e6e + 0dde11e commit dcf34d7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Data/PseudoBoolean/Builder.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ wboBuilder wbo = size <> part1 <> part2
7272
size = fromString (printf "* #variable= %d #constraint= %d" nv nc)
7373
<> (if np >= 1 then fromString (printf " #product= %d sizeproduct= %d" np sp) else mempty)
7474
<> fromString (printf " #soft= %d" (wboNumSoft wbo))
75-
<> fromString (printf " #mincost= %d #maxcost= %d #sumcost= %d" mincost maxcost sumcost)
75+
<> fromString (printf " mincost= %d maxcost= %d sumcost= %d" mincost maxcost sumcost)
7676
<> fromString "\n"
7777
part1 =
7878
case wboTopCost wbo of

src/Data/PseudoBoolean/ByteStringBuilder.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ wboBuilder wbo = size <> part1 <> part2
7878
size = string7 "* #variable= " <> intDec nv <> string7 " #constraint= " <> intDec nc
7979
<> (if np >= 1 then string7 " #product= " <> intDec np <> string7 " sizeproduct= " <> intDec sp else mempty)
8080
<> string7 " #soft= " <> intDec (wboNumSoft wbo)
81-
<> string7 " #mincost= " <> integerDec mincost
82-
<> string7 " #maxcost= " <> integerDec maxcost
83-
<> string7 " #sumcost= " <> integerDec sumcost
81+
<> string7 " mincost= " <> integerDec mincost
82+
<> string7 " maxcost= " <> integerDec maxcost
83+
<> string7 " sumcost= " <> integerDec sumcost
8484
<> char7 '\n'
8585
part1 =
8686
case wboTopCost wbo of

0 commit comments

Comments
 (0)