Debian Codegraph @

tests/mitre/oval-def_arithmetic_function.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8"?>
2 <oval_definitions xsi:schemaLocation="http://oval.mitre.org/XMLSchema/oval-definitions-5 oval-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-definitions-5#independent independent-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-definitions-5#windows windows-definitions-schema.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5" xmlns:ind-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" xmlns:oval-def="http://oval.mitre.org/XMLSchema/oval-definitions-5" xmlns:oval="http://oval.mitre.org/XMLSchema/oval-common-5" xmlns:win-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#windows">
3 <generator>
4 <oval:schema_version>5.10.1</oval:schema_version>
5 <oval:timestamp>2009-05-21T11:46:00-04:00</oval:timestamp>
6 <terms_of_use>Copyright (c) 2002-2012, The MITRE Corporation. All rights reserved. The contents of this file are subject to the license described in terms.txt.</terms_of_use>
7 </generator>
8 <definitions>
9 <definition id="oval:org.mitre.oval.test:def:895" version="1" class="miscellaneous">
10 <metadata>
11 <title>Evaluate to true if arithmetic operations are properly supported</title>
12 <description>This definition is intended to evaluate to true if the interpreter properly supports all of the valid arithmetic operations.</description>
13 </metadata>
14 <criteria operator="AND">
15 <criterion comment="Test that the arithmetic function is supported with the add operation and two integer values." test_ref="oval:org.mitre.oval.test:tst:644"/>
16 <criterion comment="Test that the arithmetic function is supported with the add operation, an integer value, and a float value." test_ref="oval:org.mitre.oval.test:tst:17"/>
17 <criterion comment="Test that the arithmetic function is supported with the add operation, a float value, and an integer value." test_ref="oval:org.mitre.oval.test:tst:774"/>
18 <criterion comment="Test that the arithmetic function is supported with the add operation and two float values." test_ref="oval:org.mitre.oval.test:tst:211"/>
19 <criterion comment="Test that the arithmetic function is supported with the multiply operation and two integer values." test_ref="oval:org.mitre.oval.test:tst:51"/>
20 <criterion comment="Test that the arithmetic function is supported with the multiply operation, an integer value, and a float value." test_ref="oval:org.mitre.oval.test:tst:178"/>
21 <criterion comment="Test that the arithmetic function is supported with the multiply operation, a float value, and an integer value." test_ref="oval:org.mitre.oval.test:tst:970"/>
22 <criterion comment="Test that the arithmetic function is supported with the multiply operation and two float values." test_ref="oval:org.mitre.oval.test:tst:74"/>
23 <criterion comment="Test that the arithmetic function is supported with the addition operation and multiple-value variables." test_ref="oval:org.mitre.oval.test:tst:674"/>
24 <criterion comment="Test that the arithmetic function is supported with the multiply operation and multiple-value variables." test_ref="oval:org.mitre.oval.test:tst:229"/>
25 </criteria>
26 </definition>
27 </definitions>
28 <tests>
29 <variable_test id="oval:org.mitre.oval.test:tst:644" version="1" comment="Test that the arithmetic function is supported with the add operation and two integer values." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
30 <object object_ref="oval:org.mitre.oval.test:obj:865"/>
31 <state state_ref="oval:org.mitre.oval.test:ste:926"/>
32 </variable_test>
33 <variable_test id="oval:org.mitre.oval.test:tst:17" version="1" comment="Test that the arithmetic function is supported with the add operation, an integer value, and a float value." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
34 <object object_ref="oval:org.mitre.oval.test:obj:350"/>
35 <state state_ref="oval:org.mitre.oval.test:ste:809"/>
36 </variable_test>
37 <variable_test id="oval:org.mitre.oval.test:tst:774" version="1" comment="Test that the arithmetic function is supported with the add operation, a float value, and an integer value." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
38 <object object_ref="oval:org.mitre.oval.test:obj:717"/>
39 <state state_ref="oval:org.mitre.oval.test:ste:240"/>
40 </variable_test>
41 <variable_test id="oval:org.mitre.oval.test:tst:211" version="1" comment="Test that the arithmetic function is supported with the add operation and two float values." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
42 <object object_ref="oval:org.mitre.oval.test:obj:308"/>
43 <state state_ref="oval:org.mitre.oval.test:ste:735"/>
44 </variable_test>
45 <variable_test id="oval:org.mitre.oval.test:tst:51" version="1" comment="Test that the arithmetic function is supported with the multiply operation and two integer values." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
46 <object object_ref="oval:org.mitre.oval.test:obj:810"/>
47 <state state_ref="oval:org.mitre.oval.test:ste:22"/>
48 </variable_test>
49 <variable_test id="oval:org.mitre.oval.test:tst:178" version="1" comment="Test that the arithmetic function is supported with the multiply operation, an integer value, and a float value." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
50 <object object_ref="oval:org.mitre.oval.test:obj:133"/>
51 <state state_ref="oval:org.mitre.oval.test:ste:127"/>
52 </variable_test>
53 <variable_test id="oval:org.mitre.oval.test:tst:970" version="1" comment="Test that the arithmetic function is supported with the multiply operation, a float value, and an integer value." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
54 <object object_ref="oval:org.mitre.oval.test:obj:436"/>
55 <state state_ref="oval:org.mitre.oval.test:ste:129"/>
56 </variable_test>
57 <variable_test id="oval:org.mitre.oval.test:tst:74" version="1" comment="Test that the arithmetic function is supported with the multiply operation and two float values." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
58 <object object_ref="oval:org.mitre.oval.test:obj:878"/>
59 <state state_ref="oval:org.mitre.oval.test:ste:480"/>
60 </variable_test>
61 <variable_test id="oval:org.mitre.oval.test:tst:674" version="1" comment="Test that the arithmetic function is supported with the addition operation and multiple-value variables." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
62 <object object_ref="oval:org.mitre.oval.test:obj:932"/>
63 <state state_ref="oval:org.mitre.oval.test:ste:652"/>
64 </variable_test>
65 <variable_test id="oval:org.mitre.oval.test:tst:229" version="1" comment="Test that the arithmetic function is supported with the multiply operation and multiple-value variables." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
66 <object object_ref="oval:org.mitre.oval.test:obj:635"/>
67 <state state_ref="oval:org.mitre.oval.test:ste:609"/>
68 </variable_test>
69 </tests>
70 <objects>
71 <variable_object id="oval:org.mitre.oval.test:obj:865" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
72 <var_ref>oval:org.mitre.oval.test:var:247</var_ref>
73 </variable_object>
74 <variable_object id="oval:org.mitre.oval.test:obj:350" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
75 <var_ref>oval:org.mitre.oval.test:var:24</var_ref>
76 </variable_object>
77 <variable_object id="oval:org.mitre.oval.test:obj:717" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
78 <var_ref>oval:org.mitre.oval.test:var:572</var_ref>
79 </variable_object>
80 <variable_object id="oval:org.mitre.oval.test:obj:308" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
81 <var_ref>oval:org.mitre.oval.test:var:693</var_ref>
82 </variable_object>
83 <variable_object id="oval:org.mitre.oval.test:obj:810" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
84 <var_ref>oval:org.mitre.oval.test:var:184</var_ref>
85 </variable_object>
86 <variable_object id="oval:org.mitre.oval.test:obj:133" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
87 <var_ref>oval:org.mitre.oval.test:var:201</var_ref>
88 </variable_object>
89 <variable_object id="oval:org.mitre.oval.test:obj:436" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
90 <var_ref>oval:org.mitre.oval.test:var:278</var_ref>
91 </variable_object>
92 <variable_object id="oval:org.mitre.oval.test:obj:878" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
93 <var_ref>oval:org.mitre.oval.test:var:129</var_ref>
94 </variable_object>
95 <variable_object id="oval:org.mitre.oval.test:obj:932" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
96 <var_ref>oval:org.mitre.oval.test:var:589</var_ref>
97 </variable_object>
98 <variable_object id="oval:org.mitre.oval.test:obj:635" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
99 <var_ref>oval:org.mitre.oval.test:var:898</var_ref>
100 </variable_object>
101 </objects>
102 <states>
103 <variable_state id="oval:org.mitre.oval.test:ste:926" version="1" comment="The int 2" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
104 <value datatype="int">2</value>
105 </variable_state>
106 <variable_state id="oval:org.mitre.oval.test:ste:809" version="1" comment="The float 2.1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
107 <value datatype="float">2.1</value>
108 </variable_state>
109 <variable_state id="oval:org.mitre.oval.test:ste:240" version="1" comment="The float 2.1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
110 <value datatype="float">2.1</value>
111 </variable_state>
112 <variable_state id="oval:org.mitre.oval.test:ste:735" version="1" comment="the float 2.2" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
113 <value datatype="float">2.2</value>
114 </variable_state>
115 <variable_state id="oval:org.mitre.oval.test:ste:22" version="1" comment="the int 1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
116 <value datatype="int">1</value>
117 </variable_state>
118 <variable_state id="oval:org.mitre.oval.test:ste:127" version="1" comment="the float 1.1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
119 <value datatype="float">1.1</value>
120 </variable_state>
121 <variable_state id="oval:org.mitre.oval.test:ste:129" version="1" comment="the float 1.1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
122 <value datatype="float">1.1</value>
123 </variable_state>
124 <variable_state id="oval:org.mitre.oval.test:ste:480" version="1" comment="the float 1.21" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
125 <value datatype="float">1.21</value>
126 </variable_state>
127 <variable_state id="oval:org.mitre.oval.test:ste:652" version="1" comment="the result of multiple-value addition" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
128 <value datatype="int" var_ref="oval:org.mitre.oval.test:var:820" var_check="at least one"/>
129 </variable_state>
130 <variable_state id="oval:org.mitre.oval.test:ste:609" version="1" comment="the result of multiple-value multiplication" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
131 <value datatype="int" var_ref="oval:org.mitre.oval.test:var:627" var_check="at least one"/>
132 </variable_state>
133 </states>
134 <variables>
135 <local_variable id="oval:org.mitre.oval.test:var:247" version="1" comment="Adding the integer 1 and the integer 1" datatype="int">
136 <arithmetic arithmetic_operation="add">
137 <literal_component datatype="int">1</literal_component>
138 <literal_component datatype="int">1</literal_component>
139 </arithmetic>
140 </local_variable>
141 <local_variable id="oval:org.mitre.oval.test:var:24" version="1" comment="Adding the integer 1 and the float 1.1" datatype="float">
142 <arithmetic arithmetic_operation="add">
143 <literal_component datatype="int">1</literal_component>
144 <literal_component datatype="float">1.1</literal_component>
145 </arithmetic>
146 </local_variable>
147 <local_variable id="oval:org.mitre.oval.test:var:572" version="1" comment="Adding the float 1.1 and the integer 1" datatype="float">
148 <arithmetic arithmetic_operation="add">
149 <literal_component datatype="float">1.1</literal_component>
150 <literal_component datatype="int">1</literal_component>
151 </arithmetic>
152 </local_variable>
153 <local_variable id="oval:org.mitre.oval.test:var:693" version="1" comment="Adding the float 1.1 and the float 1.1" datatype="float">
154 <arithmetic arithmetic_operation="add">
155 <literal_component datatype="float">1.1</literal_component>
156 <literal_component datatype="float">1.1</literal_component>
157 </arithmetic>
158 </local_variable>
159 <local_variable id="oval:org.mitre.oval.test:var:184" version="1" comment="Multiplying the integer 1 and the integer 1" datatype="int">
160 <arithmetic arithmetic_operation="multiply">
161 <literal_component datatype="int">1</literal_component>
162 <literal_component datatype="int">1</literal_component>
163 </arithmetic>
164 </local_variable>
165 <local_variable id="oval:org.mitre.oval.test:var:201" version="1" comment="Multiplying the integer 1 and the float 1.1" datatype="float">
166 <arithmetic arithmetic_operation="multiply">
167 <literal_component datatype="int">1</literal_component>
168 <literal_component datatype="float">1.1</literal_component>
169 </arithmetic>
170 </local_variable>
171 <local_variable id="oval:org.mitre.oval.test:var:278" version="1" comment="Multiplying the float 1.1 and the integer 1" datatype="float">
172 <arithmetic arithmetic_operation="multiply">
173 <literal_component datatype="float">1.1</literal_component>
174 <literal_component datatype="int">1</literal_component>
175 </arithmetic>
176 </local_variable>
177 <local_variable id="oval:org.mitre.oval.test:var:129" version="1" comment="Multiplying the float 1.1 and the float 1.1" datatype="float">
178 <arithmetic arithmetic_operation="multiply">
179 <literal_component datatype="float">1.1</literal_component>
180 <literal_component datatype="float">1.1</literal_component>
181 </arithmetic>
182 </local_variable>
183 <local_variable id="oval:org.mitre.oval.test:var:589" version="1" comment="Adding the multiple-value variables" datatype="float">
184 <arithmetic arithmetic_operation="add">
185 <variable_component var_ref="oval:org.mitre.oval.test:var:66"/>
186 <variable_component var_ref="oval:org.mitre.oval.test:var:485"/>
187 <variable_component var_ref="oval:org.mitre.oval.test:var:962"/>
188 </arithmetic>
189 </local_variable>
190 <local_variable id="oval:org.mitre.oval.test:var:898" version="1" comment="Multiplying the multiple-value variables" datatype="float">
191 <arithmetic arithmetic_operation="multiply">
192 <variable_component var_ref="oval:org.mitre.oval.test:var:66"/>
193 <variable_component var_ref="oval:org.mitre.oval.test:var:485"/>
194 <variable_component var_ref="oval:org.mitre.oval.test:var:962"/>
195 </arithmetic>
196 </local_variable>
197 <constant_variable id="oval:org.mitre.oval.test:var:66" version="1" comment="a multi-valued variable" datatype="int">
198 <value>1</value>
199 <value>2</value>
200 </constant_variable>
201 <constant_variable id="oval:org.mitre.oval.test:var:485" version="1" comment="a multi-valued variable" datatype="int">
202 <value>3</value>
203 <value>4</value>
204 </constant_variable>
205 <constant_variable id="oval:org.mitre.oval.test:var:962" version="1" comment="a multi-valued variable" datatype="int">
206 <value>5</value>
207 <value>6</value>
208 </constant_variable>
209 <constant_variable id="oval:org.mitre.oval.test:var:820" version="1" comment="result of adding variables 11, 12, 13" datatype="int">
210 <value>9</value>
211 <value>10</value>
212 <value>10</value>
213 <value>11</value>
214 <value>10</value>
215 <value>11</value>
216 <value>11</value>
217 <value>12</value>
218 </constant_variable>
219 <constant_variable id="oval:org.mitre.oval.test:var:627" version="1" comment="result of multiplying variables 11, 12, 13" datatype="int">
220 <value>15</value>
221 <value>18</value>
222 <value>20</value>
223 <value>24</value>
224 <value>30</value>
225 <value>36</value>
226 <value>40</value>
227 <value>48</value>
228 </constant_variable>
229 </variables>
230 </oval_definitions>