master > master: codego - iff
This commit is contained in:
1 parent
9b225b0551
commit
79bfcf57bb
5 files changed
+24
-4
No files matched your search
@@ -31,6 +31,8 @@ func Eval(fml formulae.Formula, I []string) int {
|
||||
return utils.MaxList(prevValues)
|
||||
} else if fml.IsImplication() {
|
||||
return utils.BoolToInt(prevValues[0] <= prevValues[1])
|
||||
} else if fml.IsDoubleImplication() {
|
||||
return utils.BoolToInt(prevValues[0] == prevValues[1])
|
||||
} else {
|
||||
panic("Could not evaluate expression!")
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user