ref: 80474f7f59ee755cd1967c5703e3be724582f001
parent: 586a24770c5accfadc13408ba2b617b062fb50ae
author: aiju <devnull@localhost>
date: Mon Mar 26 17:39:23 EDT 2018
libsat: fix one of the satmore() bugs
--- a/sys/src/libsat/satmore.c
+++ b/sys/src/libsat/satmore.c
@@ -20,6 +20,8 @@
}
if(n > 0)
satadd1(s, a, n);
+ if(n == 1)
+ s->var[abs(a[0])-1].flags &= ~VARUSER;
free(a);
s->scrap = nil;
return satsolve(s);