master > master: codego - iff
This commit is contained in:
@@ -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