2022-05-02 11:59:43 -04:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2015-03-18 13:32:24 -04:00
|
|
|
<!--
|
2022-05-03 14:14:29 -04:00
|
|
|
Copyright (C) 2014-2022 Ryan Specialty Group, LLC.
|
2015-03-18 13:32:24 -04:00
|
|
|
|
|
|
|
This file is part of tame-core.
|
|
|
|
|
|
|
|
tame-core is free software: you can redistribute it and/or modify it
|
2018-01-26 11:13:33 -05:00
|
|
|
under the terms of the GNU General Public License as
|
2015-03-18 13:32:24 -04:00
|
|
|
published by the Free Software Foundation, either version 3 of the
|
|
|
|
License, or (at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
-->
|
2015-03-18 11:31:47 -04:00
|
|
|
<package xmlns="http://www.lovullo.com/rater"
|
2013-02-13 09:27:33 -05:00
|
|
|
xmlns:c="http://www.lovullo.com/calc"
|
2022-08-22 15:29:40 -04:00
|
|
|
xmlns:t="http://www.lovullo.com/rater/apply-template"
|
2013-02-13 09:27:33 -05:00
|
|
|
core="true"
|
|
|
|
desc="Numeric computations dealing with boolean algebra">
|
|
|
|
|
2015-03-18 11:31:47 -04:00
|
|
|
<import package="../base" />
|
2013-02-13 09:27:33 -05:00
|
|
|
|
|
|
|
|
2015-03-18 11:31:47 -04:00
|
|
|
<function name="not" desc="Negates a boolean value" sym="\lnot">
|
|
|
|
<param name="not_value" type="boolean" desc="Boolean value to negate" />
|
2013-02-13 09:27:33 -05:00
|
|
|
|
2022-08-15 10:18:30 -04:00
|
|
|
<c:const value="1" desc="Value of 1 if given value is zero">
|
2013-02-13 09:27:33 -05:00
|
|
|
<c:when name="not_value">
|
|
|
|
<c:eq>
|
2022-08-15 10:18:30 -04:00
|
|
|
<c:const value="0" desc="Value to assert against for returning 1" />
|
2013-02-13 09:27:33 -05:00
|
|
|
</c:eq>
|
|
|
|
</c:when>
|
|
|
|
</c:const>
|
2015-03-18 11:31:47 -04:00
|
|
|
</function>
|
|
|
|
</package>
|