IT'S ALIIIIIIIIVE
Took 1 hour 15 minutes
This commit is contained in:
parent
05c8f92683
commit
d211131c4e
|
@ -224,15 +224,10 @@ class AstGenerator:
|
|||
cutoffs = [10, 30, 50, 80, 100]
|
||||
options = { #TODO add brackets # TODO cannot guarantee correctness of comparison since booleans may appear
|
||||
0: "equality",
|
||||
1: "inequality",
|
||||
2: "less-than",
|
||||
3: "greater-than",
|
||||
4: "less-than-or-equal",
|
||||
5: "greater-than-or-equal",
|
||||
6: "and",
|
||||
7: "or",
|
||||
8: "xor",
|
||||
9: "not",
|
||||
1: "and",
|
||||
2: "or",
|
||||
3: "xor",
|
||||
4: "not",
|
||||
}
|
||||
|
||||
unary = ["not"]
|
||||
|
@ -357,7 +352,7 @@ class AstGenerator:
|
|||
self.pop_scope()
|
||||
self.current_ast_element = parent
|
||||
|
||||
def generate_loop(self):
|
||||
def generate_loop(self): #fixme generation of infinite loops happens too often...
|
||||
if self.current_control_flow_nesting_depth >= self.settings['generation-options']['max-nesting-depth']:
|
||||
return
|
||||
|
||||
|
@ -376,7 +371,6 @@ class AstGenerator:
|
|||
self.pop_scope()
|
||||
self.current_ast_element = parent
|
||||
|
||||
|
||||
def generate_assignment(self):
|
||||
possible_vars = self.current_scope.get_all_defined_mutable_vars()
|
||||
if len(possible_vars) == 0:
|
||||
|
@ -389,7 +383,6 @@ class AstGenerator:
|
|||
self.current_ast_element.append(element)
|
||||
self.current_ast_element = element
|
||||
|
||||
|
||||
variable = random.choice(possible_vars)
|
||||
|
||||
self.current_ast_element.append(variable.xml)
|
||||
|
@ -446,7 +439,7 @@ class AstGenerator:
|
|||
self.current_scope = self.current_scope.get_top_scope()
|
||||
self.current_ast_element = self.ast
|
||||
|
||||
self.generate_declaration()
|
||||
self.generate_declaration(mut='const')
|
||||
|
||||
self.current_scope = current_scope
|
||||
self.current_ast_element = current_element
|
||||
|
|
|
@ -267,15 +267,12 @@ class TestGeneration(unittest.TestCase):
|
|||
def test_failing_assignment(self):
|
||||
self.ast_gen.ast = ET.Element("block")
|
||||
self.ast_gen.current_ast_element = self.ast_gen.ast
|
||||
# self.ast_gen.generate_main()
|
||||
with self.assertRaises(ValueError):
|
||||
self.ast_gen.generate_assignment()
|
||||
print(ET.tostring(self.ast_gen.ast, 'utf-8').decode('utf-8'))
|
||||
|
||||
self.assertIsNone(self.ast_gen.ast.find("assignment"))
|
||||
|
||||
|
||||
|
||||
|
||||
def is_no_op(self, operator):
|
||||
"""
|
||||
recursively check if operator is a no-op
|
||||
|
|
5122
ast_generator/test/xml/ast0.xml
Normal file
5122
ast_generator/test/xml/ast0.xml
Normal file
File diff suppressed because it is too large
Load diff
3192
ast_generator/test/xml/ast1.xml
Normal file
3192
ast_generator/test/xml/ast1.xml
Normal file
File diff suppressed because it is too large
Load diff
1394
ast_generator/test/xml/ast10.xml
Normal file
1394
ast_generator/test/xml/ast10.xml
Normal file
File diff suppressed because it is too large
Load diff
471
ast_generator/test/xml/ast11.xml
Normal file
471
ast_generator/test/xml/ast11.xml
Normal file
|
@ -0,0 +1,471 @@
|
|||
<block>
|
||||
<procedure name="main" return_type="int" args="()">
|
||||
<block>
|
||||
<return type="int">
|
||||
<literal type="int" value="0"/>
|
||||
</return>
|
||||
<stream type="std_output">
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="314.2266871191341"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-241.21664166820312"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</stream>
|
||||
</block>
|
||||
</procedure>
|
||||
<function name="eW" return_type="int">
|
||||
<argument name="g" type="int"/>
|
||||
<argument name="GDUEYIipSt" type="int"/>
|
||||
<block>
|
||||
<declaration type="int">
|
||||
<variable name="Say" type="int" mut="var"/>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<operator op="subtraction" type="int">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<literal type="int" value="1665738951"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="139.86158640644862"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="772509006"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-649.4294241575187"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="265.9685116353053"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-799.9949734775371"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="1923533103"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-941.4029686824128"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="824.0735523578705"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-985.6412814884811"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<literal type="float" value="-159.40159037510296"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-1386411564"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="division" type="int">
|
||||
<lhs>
|
||||
<operator op="subtraction" type="float">
|
||||
<lhs>
|
||||
<literal type="int" value="1591711206"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-127.0430494010875"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<literal type="float" value="-527.4944733203411"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="774177202"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-158812638"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</declaration>
|
||||
<assignment>
|
||||
<variable name="Say" type="int" mut="var"/>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<operator op="division" type="float">
|
||||
<lhs>
|
||||
<literal type="int" value="914793523"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-1937356655"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<literal type="float" value="489.218538167064"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-414161182"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<operator op="subtraction" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="650.3007997573827"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="1979645026"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="division" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="-1416136146"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-411.1206483078911"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="767.0871225569206"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="subtraction" type="float">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<operator op="division" type="int">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="811.1966660943963"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="103.14834036969614"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<literal type="int" value="2143674923"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-516.6041568838205"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-43.196377609604724"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<operator op="division" type="float">
|
||||
<lhs>
|
||||
<operator op="subtraction" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="-251.26908492535006"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="2102862513"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<literal type="float" value="-788.424773416349"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="686248439"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<operator op="subtraction" type="float">
|
||||
<lhs>
|
||||
<literal type="int" value="-1663561597"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="384631075"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="division" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="-833.9029230404819"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="1098477492"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</assignment>
|
||||
<return type="int">
|
||||
<operator op="division" type="float">
|
||||
<lhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="174.93707879339513"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="subtraction" type="int">
|
||||
<lhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="-1381342040"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="subtraction" type="float">
|
||||
<lhs>
|
||||
<literal type="float" value="874.6385020676307"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-751.4261809796049"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="25778016"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-308.91043711449356"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</return>
|
||||
<stream type="std_output">
|
||||
<operator op="division" type="float">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="-478080710"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<literal type="int" value="1247688226"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="division" type="float">
|
||||
<lhs>
|
||||
<literal type="int" value="-1668723401"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-415.88474440499294"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<operator op="division" type="float">
|
||||
<lhs>
|
||||
<literal type="int" value="-1027814199"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-361.3220068506513"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-339706165"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<literal type="int" value="-992185978"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-484.35089403701954"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="109.67382107916842"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="division" type="int">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<literal type="int" value="-2038884295"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="463.45832290675344"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="600.7608651825765"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="232.2518149247553"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="subtraction" type="int">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="-352.9351215605932"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<literal type="int" value="1732315667"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="703480765"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<literal type="float" value="54.416126342769985"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="196.80181113204776"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="3.858371047113792"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</stream>
|
||||
</block>
|
||||
</function>
|
||||
</block>
|
||||
|
1201
ast_generator/test/xml/ast12.xml
Normal file
1201
ast_generator/test/xml/ast12.xml
Normal file
File diff suppressed because it is too large
Load diff
463
ast_generator/test/xml/ast13.xml
Normal file
463
ast_generator/test/xml/ast13.xml
Normal file
|
@ -0,0 +1,463 @@
|
|||
<block>
|
||||
<procedure name="main" return_type="int" args="()">
|
||||
<block>
|
||||
<declaration type="int">
|
||||
<variable name="mtgqHyMR" type="int" mut="const"/>
|
||||
<rhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<literal type="float" value="-886.0949135168966"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-306721674"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="505.384240546746"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="division" type="float">
|
||||
<lhs>
|
||||
<operator op="subtraction" type="float">
|
||||
<lhs>
|
||||
<literal type="float" value="644.8972883781132"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-2112855042"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<literal type="float" value="-781.0138415122769"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="205.41249373358278"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<literal type="int" value="-1056378078"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-2028661745"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="division" type="int">
|
||||
<lhs>
|
||||
<operator op="subtraction" type="float">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="-378.4368829003138"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-161623317"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<literal type="int" value="-842219085"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="20.263905912068594"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="division" type="int">
|
||||
<lhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="-452.05189940351227"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-633.8953115867257"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<literal type="float" value="-912.441770503505"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-612.0623808756949"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="1135585201"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</declaration>
|
||||
<return type="int">
|
||||
<literal type="int" value="0"/>
|
||||
</return>
|
||||
<stream type="std_output">
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<operator op="subtraction" type="int">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<operator op="division" type="float">
|
||||
<lhs>
|
||||
<literal type="int" value="399766159"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="2014917461"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="867.2183212429338"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-118.6161105454704"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<literal type="float" value="-204.10116913366426"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="751.7762246394013"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<literal type="int" value="786062037"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="242383621"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<operator op="subtraction" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="-495168961"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-1841981969"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="275.7114744278331"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<operator op="subtraction" type="float">
|
||||
<lhs>
|
||||
<literal type="int" value="-1816859520"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-880.0217043467153"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-51556154"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="subtraction" type="int">
|
||||
<lhs>
|
||||
<operator op="division" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="950.8363250531215"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<literal type="float" value="485.04787718219586"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="1081890518"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<literal type="int" value="-617554471"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="557.3688888036261"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="subtraction" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="-1590018197"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="719.2896242851314"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</stream>
|
||||
<stream type="std_output">
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<operator op="division" type="float">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="309.2004071522772"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-446658461"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="716.9460631063534"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<operator op="subtraction" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="655298965"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="1508954892"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="760.2915655536051"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="28583728"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<literal type="float" value="429.0156523389528"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="577.9876488452435"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="subtraction" type="float">
|
||||
<lhs>
|
||||
<literal type="float" value="930.8535652247854"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-814.7548683779205"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="division" type="int">
|
||||
<lhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<literal type="int" value="-343046444"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="565.053588972037"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="937.8059780568267"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-1730601731"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<literal type="float" value="-518.9407078828895"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="subtraction" type="int">
|
||||
<lhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="448.6425050284274"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="187.11751419213647"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="-2112467308"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="1912369506"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<literal type="float" value="-491.9568349060006"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="198427514"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="419.23917956954983"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="division" type="float">
|
||||
<lhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<literal type="int" value="-143555818"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-1226638788"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="-1780107871"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-1692858651"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</stream>
|
||||
</block>
|
||||
</procedure>
|
||||
</block>
|
||||
|
768
ast_generator/test/xml/ast14.xml
Normal file
768
ast_generator/test/xml/ast14.xml
Normal file
|
@ -0,0 +1,768 @@
|
|||
<block>
|
||||
<procedure name="main" return_type="int" args="()">
|
||||
<block>
|
||||
<stream type="std_output">
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<operator op="subtraction" type="float">
|
||||
<lhs>
|
||||
<operator op="division" type="int">
|
||||
<lhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<literal type="float" value="-67.75526424848397"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="1570702545"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<literal type="int" value="-1139064342"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-587253194"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="-859.0634099686765"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="1308451787"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="division" type="float">
|
||||
<lhs>
|
||||
<literal type="int" value="-816697988"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="350.70100394186056"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<literal type="int" value="1484111038"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-773.4847755010039"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="division" type="float">
|
||||
<lhs>
|
||||
<literal type="float" value="167.7940931546293"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-88.33865142691661"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="907034114"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="460909479"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="1719939865"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="1123253746"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="division" type="int">
|
||||
<lhs>
|
||||
<operator op="subtraction" type="int">
|
||||
<lhs>
|
||||
<operator op="division" type="int">
|
||||
<lhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<literal type="int" value="-1290902317"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-441.3683853243582"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="division" type="float">
|
||||
<lhs>
|
||||
<literal type="int" value="-946997372"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-775.8638746158608"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="689.5266358888487"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-898.4571992445709"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</stream>
|
||||
<return type="int">
|
||||
<literal type="int" value="0"/>
|
||||
</return>
|
||||
<declaration type="int">
|
||||
<variable name="GwhdkLGQX" type="int" mut="var"/>
|
||||
<rhs>
|
||||
<literal type="float" value="606.5426298463085"/>
|
||||
</rhs>
|
||||
</declaration>
|
||||
</block>
|
||||
</procedure>
|
||||
<function name="ZDXRWT" return_type="int">
|
||||
<argument name="Me" type="int"/>
|
||||
<argument name="f" type="int"/>
|
||||
<argument name="EgdQw" type="int"/>
|
||||
<argument name="MMLQqXFUNg" type="int"/>
|
||||
<argument name="fSESgBfmw" type="int"/>
|
||||
<argument name="oHaDTLvU" type="int"/>
|
||||
<argument name="avDWVRP" type="int"/>
|
||||
<block>
|
||||
<declaration type="int">
|
||||
<variable name="qKIeMD" type="int" mut="const"/>
|
||||
<rhs>
|
||||
<operator op="subtraction" type="float">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<literal type="int" value="1347725266"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="2106758124"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-399.5002378858363"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="subtraction" type="float">
|
||||
<lhs>
|
||||
<operator op="subtraction" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="438.9852092978954"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-286944467"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<literal type="float" value="312.966101335815"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="220.50930164623674"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="-1388954595"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="subtraction" type="float">
|
||||
<lhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="-114.45471104309627"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="1273645096"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<literal type="float" value="-371.401868811986"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="1123815717"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<operator op="division" type="float">
|
||||
<lhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<literal type="int" value="-1653871188"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="2042072836"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<literal type="float" value="-889.3745267690882"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-418.2947143416993"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<literal type="float" value="785.6330823015469"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="-748.9147214928555"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="1409661885"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<operator op="subtraction" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="-738843728"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="217.14338500371264"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="300.1884581798038"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="division" type="float">
|
||||
<lhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="143.02822128737807"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-136045740"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="division" type="float">
|
||||
<lhs>
|
||||
<literal type="int" value="2121366436"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="12225528"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</declaration>
|
||||
<declaration type="int">
|
||||
<variable name="bxLMkFGO" type="int" mut="const"/>
|
||||
<rhs>
|
||||
<operator op="division" type="float">
|
||||
<lhs>
|
||||
<operator op="subtraction" type="float">
|
||||
<lhs>
|
||||
<literal type="float" value="-909.1271474122651"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="-1504260861"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<literal type="float" value="189.006576852144"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-423593734"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<operator op="subtraction" type="float">
|
||||
<lhs>
|
||||
<literal type="float" value="421.3753226828653"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-313.1093418883828"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="division" type="float">
|
||||
<lhs>
|
||||
<literal type="int" value="51617231"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-381.55305562061255"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<literal type="float" value="97.67899498921247"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-1009491901"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="subtraction" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="-1677366499"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-340532180"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-532311858"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<operator op="subtraction" type="float">
|
||||
<lhs>
|
||||
<literal type="int" value="1512846110"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="618.4426442556944"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="subtraction" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="-934.9115136694263"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="72.44707680822671"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-484.8091790077274"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</declaration>
|
||||
<return type="int">
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<literal type="float" value="-984.8072412782556"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<operator op="subtraction" type="int">
|
||||
<lhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="1782244171"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="1992820608"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="division" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="962.1536192886206"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="1898497261"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="division" type="float">
|
||||
<lhs>
|
||||
<literal type="float" value="-571.8412439815914"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="-960.96955461872"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-834.496116772162"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="1348537663"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<operator op="division" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="123699979"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-415.870300152053"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="subtraction" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="54.84784192085158"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-593.389790416154"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</return>
|
||||
<stream type="std_output">
|
||||
<operator op="division" type="float">
|
||||
<lhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<literal type="int" value="-1317336488"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="269.72508614247954"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="486913155"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="680667816"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="856.2057164451116"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="division" type="float">
|
||||
<lhs>
|
||||
<literal type="int" value="314920509"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="division" type="float">
|
||||
<lhs>
|
||||
<literal type="float" value="-922.8238748478426"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="division" type="float">
|
||||
<lhs>
|
||||
<literal type="float" value="-378.81250598576764"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-1662430144"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="920842483"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</stream>
|
||||
</block>
|
||||
</function>
|
||||
<function name="Lxe" return_type="int">
|
||||
<argument name="ouugz" type="int"/>
|
||||
<argument name="RbOujw" type="int"/>
|
||||
<block>
|
||||
<stream type="std_output">
|
||||
<literal type="float" value="-15.72531800465731"/>
|
||||
</stream>
|
||||
<return type="int">
|
||||
<operator op="subtraction" type="int">
|
||||
<lhs>
|
||||
<operator op="division" type="float">
|
||||
<lhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<operator op="division" type="int">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<literal type="float" value="-43.755229743576365"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-932.1671571271519"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="subtraction" type="float">
|
||||
<lhs>
|
||||
<literal type="int" value="521221712"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-1434532637"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="12.512130687870126"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="59.298178601608925"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="233.89042601460164"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="711.6418015858287"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="division" type="int">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<operator op="division" type="int">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="531.4295701603933"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-1802723949"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="subtraction" type="float">
|
||||
<lhs>
|
||||
<literal type="float" value="-392.4254090535402"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="154.20671006823227"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="-1052475485"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-379.47588475517534"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="641.673501781403"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-1792314097"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-854.7221443550166"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</return>
|
||||
</block>
|
||||
</function>
|
||||
<function name="hkiO" return_type="int">
|
||||
<argument name="EuEfVFPO" type="int"/>
|
||||
<block>
|
||||
<return type="int">
|
||||
<literal type="int" value="-1144164542"/>
|
||||
</return>
|
||||
</block>
|
||||
</function>
|
||||
</block>
|
||||
|
4541
ast_generator/test/xml/ast15.xml
Normal file
4541
ast_generator/test/xml/ast15.xml
Normal file
File diff suppressed because it is too large
Load diff
1960
ast_generator/test/xml/ast16.xml
Normal file
1960
ast_generator/test/xml/ast16.xml
Normal file
File diff suppressed because it is too large
Load diff
2686
ast_generator/test/xml/ast17.xml
Normal file
2686
ast_generator/test/xml/ast17.xml
Normal file
File diff suppressed because it is too large
Load diff
355
ast_generator/test/xml/ast18.xml
Normal file
355
ast_generator/test/xml/ast18.xml
Normal file
|
@ -0,0 +1,355 @@
|
|||
<block>
|
||||
<procedure name="main" return_type="int" args="()">
|
||||
<block>
|
||||
<return type="int">
|
||||
<literal type="int" value="0"/>
|
||||
</return>
|
||||
<declaration type="int">
|
||||
<variable name="GsG" type="int" mut="var"/>
|
||||
<rhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<operator op="subtraction" type="int">
|
||||
<lhs>
|
||||
<operator op="division" type="float">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="-24.508787840229957"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-310221492"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<literal type="float" value="-318.79685354362675"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-817261961"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<literal type="int" value="1646869411"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-289353457"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<literal type="int" value="577083553"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-543.4345091746488"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="subtraction" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="-491.56924390907085"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="subtraction" type="float">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="-1602877080"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="295041250"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="1727869452"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-974.9793225551073"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="subtraction" type="float">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="1653345184"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-896.9344717429182"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<literal type="float" value="442.72337840020714"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="196.71592580498805"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<operator op="subtraction" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="373.3472525610248"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="994822304"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="division" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="-827.362360672443"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-397607600"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="-535.5920280745536"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="-158536307"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="533.9273073673917"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="division" type="float">
|
||||
<lhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<literal type="float" value="-331.5613655143393"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-584.2916986663149"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="282139110"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-234.85366100917292"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</declaration>
|
||||
<stream type="std_output">
|
||||
<operator op="subtraction" type="int">
|
||||
<lhs>
|
||||
<operator op="division" type="int">
|
||||
<lhs>
|
||||
<operator op="division" type="float">
|
||||
<lhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<operator op="division" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="-407.1313898318915"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="594.2595409502064"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="-855067168"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="1024538111"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="division" type="int">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="461409701"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-228845353"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="-1986037689"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="858553680"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<literal type="int" value="-27822114"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="1058568056"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="division" type="float">
|
||||
<lhs>
|
||||
<literal type="float" value="793.364834672303"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="147401340"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-1786592785"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="division" type="float">
|
||||
<lhs>
|
||||
<literal type="int" value="-2075667967"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="subtraction" type="float">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="-1044119075"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-428.06336547207604"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="-1978344204"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="410.67581708202647"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<literal type="int" value="853593312"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-462.0147565823032"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="subtraction" type="float">
|
||||
<lhs>
|
||||
<literal type="float" value="-653.3430792190311"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="803.9940351095963"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</stream>
|
||||
</block>
|
||||
</procedure>
|
||||
</block>
|
||||
|
2545
ast_generator/test/xml/ast19.xml
Normal file
2545
ast_generator/test/xml/ast19.xml
Normal file
File diff suppressed because it is too large
Load diff
2631
ast_generator/test/xml/ast2.xml
Normal file
2631
ast_generator/test/xml/ast2.xml
Normal file
File diff suppressed because it is too large
Load diff
1934
ast_generator/test/xml/ast3.xml
Normal file
1934
ast_generator/test/xml/ast3.xml
Normal file
File diff suppressed because it is too large
Load diff
139
ast_generator/test/xml/ast4.xml
Normal file
139
ast_generator/test/xml/ast4.xml
Normal file
|
@ -0,0 +1,139 @@
|
|||
<block>
|
||||
<procedure name="main" return_type="int" args="()">
|
||||
<block>
|
||||
<stream type="std_output">
|
||||
<operator op="division" type="int">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<literal type="float" value="-332.985089884789"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="1511463307"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="division" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="360.1108455256631"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-486382793"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<operator op="division" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="-56673932"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="962.6315569923559"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="division" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="251.8682955572349"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-58.97520781582034"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="-663830272"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="-725.9465078703366"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="872.2253746490055"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<literal type="float" value="-807.2884938799598"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="362.4783934580546"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="-1354656196"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<literal type="int" value="-1672379998"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-594663976"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="314.023365381478"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-757.1197288498458"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="304.6182803547342"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</stream>
|
||||
<return type="int">
|
||||
<literal type="int" value="0"/>
|
||||
</return>
|
||||
</block>
|
||||
</procedure>
|
||||
</block>
|
||||
|
2712
ast_generator/test/xml/ast5.xml
Normal file
2712
ast_generator/test/xml/ast5.xml
Normal file
File diff suppressed because it is too large
Load diff
3183
ast_generator/test/xml/ast6.xml
Normal file
3183
ast_generator/test/xml/ast6.xml
Normal file
File diff suppressed because it is too large
Load diff
3641
ast_generator/test/xml/ast7.xml
Normal file
3641
ast_generator/test/xml/ast7.xml
Normal file
File diff suppressed because it is too large
Load diff
944
ast_generator/test/xml/ast8.xml
Normal file
944
ast_generator/test/xml/ast8.xml
Normal file
|
@ -0,0 +1,944 @@
|
|||
<block>
|
||||
<procedure name="main" return_type="int" args="()">
|
||||
<block>
|
||||
<return type="int">
|
||||
<literal type="int" value="0"/>
|
||||
</return>
|
||||
<stream type="std_output">
|
||||
<operator op="division" type="float">
|
||||
<lhs>
|
||||
<literal type="int" value="-1892208201"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="division" type="int">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<operator op="subtraction" type="float">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="-814067693"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="387.1202167534832"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="division" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="311282519"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="1090704034"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<literal type="int" value="-283923320"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="913.5997843232064"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-152.65176475382236"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="division" type="int">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<literal type="float" value="-444.0876377978577"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-63661916"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="54.870633910077686"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="division" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="-1012067321"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="-1351539284"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-1682445403"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</stream>
|
||||
</block>
|
||||
</procedure>
|
||||
<function name="zognC" return_type="int">
|
||||
<argument name="k" type="int"/>
|
||||
<argument name="oJjP" type="int"/>
|
||||
<argument name="qLNBXFBIxS" type="int"/>
|
||||
<argument name="lTjI" type="int"/>
|
||||
<argument name="QIvOAlzqV" type="int"/>
|
||||
<block>
|
||||
<return type="int">
|
||||
<operator op="subtraction" type="int">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<operator op="subtraction" type="float">
|
||||
<lhs>
|
||||
<operator op="division" type="int">
|
||||
<lhs>
|
||||
<operator op="subtraction" type="float">
|
||||
<lhs>
|
||||
<literal type="float" value="-586.4338113277354"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-565.1160939450981"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-426717223"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="subtraction" type="float">
|
||||
<lhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<literal type="int" value="140280392"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="460.76170885004217"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="division" type="float">
|
||||
<lhs>
|
||||
<literal type="int" value="1328611320"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-2079938065"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<operator op="subtraction" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="-1425429986"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-1147928825"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="division" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="428.03437348140983"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-539.701940125447"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-65680098"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="34846835"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</return>
|
||||
</block>
|
||||
</function>
|
||||
<function name="JKaSIGJ" return_type="int">
|
||||
<argument name="TTr" type="int"/>
|
||||
<argument name="IHPC" type="int"/>
|
||||
<argument name="xnxEgOAF" type="int"/>
|
||||
<argument name="QqQTprSIFR" type="int"/>
|
||||
<block>
|
||||
<return type="int">
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<operator op="subtraction" type="float">
|
||||
<lhs>
|
||||
<operator op="division" type="float">
|
||||
<lhs>
|
||||
<operator op="subtraction" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="311191993"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="212.9115363072042"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="subtraction" type="float">
|
||||
<lhs>
|
||||
<literal type="float" value="358.6454091175708"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-307576324"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<operator op="subtraction" type="float">
|
||||
<lhs>
|
||||
<literal type="float" value="-515.8408558391303"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="561548183"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="895.2633354674908"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-432.38428278795607"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="subtraction" type="float">
|
||||
<lhs>
|
||||
<operator op="subtraction" type="int">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<literal type="float" value="-527.4269573331176"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-825187278"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<literal type="int" value="1541338554"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-415899237"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="subtraction" type="float">
|
||||
<lhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<literal type="int" value="105200532"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="901.3139232216604"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<literal type="int" value="48782566"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="1237293651"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<operator op="division" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="-552.8730704955371"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<operator op="division" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="-440.18479148671474"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-841.4390813052062"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="70.52959135105584"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-652.5566443157834"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</return>
|
||||
</block>
|
||||
</function>
|
||||
<function name="rCVuhN" return_type="int">
|
||||
<argument name="SlXS" type="int"/>
|
||||
<argument name="YAtyElCX" type="int"/>
|
||||
<argument name="clcF" type="int"/>
|
||||
<block>
|
||||
<stream type="std_output">
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<literal type="int" value="-641709076"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<operator op="subtraction" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="-78.1821413466954"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="318.076135076255"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="subtraction" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="843.3460632947963"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-318255852"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="1863767056"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="subtraction" type="int">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<literal type="float" value="106.27057406215386"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="division" type="float">
|
||||
<lhs>
|
||||
<literal type="float" value="-208.06347568909405"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="-197273790"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-458075114"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="153.0249942207397"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</stream>
|
||||
<declaration type="int">
|
||||
<variable name="svzc" type="int" mut="const"/>
|
||||
<rhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="-304757914"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<operator op="division" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="-393937641"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="division" type="float">
|
||||
<lhs>
|
||||
<literal type="int" value="-712603890"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-1188737463"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="687.957179664791"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-76.01119583263278"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<literal type="float" value="-952.6767380247567"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="363.9599315763662"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-2083509364"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</declaration>
|
||||
<return type="int">
|
||||
<operator op="division" type="float">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<operator op="division" type="float">
|
||||
<lhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="2101199760"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="-1887057042"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-738.8688222822686"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<operator op="subtraction" type="float">
|
||||
<lhs>
|
||||
<literal type="int" value="-1767650299"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="1560073484"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-156.7910592216473"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<literal type="float" value="403.5955414961677"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="division" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="-514.8092595767699"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="subtraction" type="float">
|
||||
<lhs>
|
||||
<literal type="int" value="99163840"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-896.1146872300392"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="division" type="int">
|
||||
<lhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="-1639023141"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="869.4258154026443"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="division" type="float">
|
||||
<lhs>
|
||||
<literal type="int" value="-788732652"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-790781922"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-1210988123"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-696.1829582157134"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</return>
|
||||
<declaration type="int">
|
||||
<variable name="GOFDzQcrrd" type="int" mut="var"/>
|
||||
<rhs>
|
||||
<operator op="division" type="float">
|
||||
<lhs>
|
||||
<literal type="float" value="146.76529447072016"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-416.80791787695216"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</declaration>
|
||||
<stream type="std_output">
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<literal type="int" value="-682321351"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="-652.482554231393"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<literal type="int" value="-1508355399"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-1962109645"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="division" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="-1705910523"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-432949762"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<operator op="subtraction" type="int">
|
||||
<lhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="-721142300"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="514076809"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="1839185464"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="-371.97390635024453"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<literal type="float" value="-832.9691352285173"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="458547887"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<operator op="division" type="int">
|
||||
<lhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<literal type="float" value="-705.2930339492307"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="1058111975"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="1218779376"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="subtraction" type="int">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="927.8635979534558"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="889534430"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<literal type="float" value="-285.61469975577074"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-435631148"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</stream>
|
||||
<declaration type="int">
|
||||
<variable name="icmKJ" type="int" mut="var"/>
|
||||
<rhs>
|
||||
<literal type="int" value="741910664"/>
|
||||
</rhs>
|
||||
</declaration>
|
||||
<declaration type="int">
|
||||
<variable name="SfyWiJGS" type="int" mut="const"/>
|
||||
<rhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<operator op="division" type="int">
|
||||
<lhs>
|
||||
<operator op="division" type="float">
|
||||
<lhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="568.0849046977596"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="425724012"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="subtraction" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="840178163"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-2031407093"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="183.6744536571489"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="subtraction" type="float">
|
||||
<lhs>
|
||||
<operator op="subtraction" type="float">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<literal type="float" value="-90.94915797747728"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="1628992858"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="1433464745"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="820.706392834237"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="826.9153729750319"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="374.7804982683506"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-1375810928"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<operator op="division" type="int">
|
||||
<lhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="864.9518423991628"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-980866876"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<literal type="float" value="171.62617939689426"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-835.8716139861926"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="1488878779"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="607534852"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="subtraction" type="float">
|
||||
<lhs>
|
||||
<literal type="float" value="-832.2030736437245"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-491527091"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<literal type="int" value="-263774209"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-1672615302"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="subtraction" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="224.41486983107325"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="1118285614"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="-1010688210"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-232407899"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="division" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="919.7340326486644"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="816157564"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</declaration>
|
||||
</block>
|
||||
</function>
|
||||
</block>
|
||||
|
520
ast_generator/test/xml/ast9.xml
Normal file
520
ast_generator/test/xml/ast9.xml
Normal file
|
@ -0,0 +1,520 @@
|
|||
<block>
|
||||
<procedure name="main" return_type="int" args="()">
|
||||
<block>
|
||||
<return type="int">
|
||||
<literal type="int" value="0"/>
|
||||
</return>
|
||||
</block>
|
||||
</procedure>
|
||||
<function name="SLrwcP" return_type="int">
|
||||
<argument name="DJhkR" type="int"/>
|
||||
<argument name="bpwQR" type="int"/>
|
||||
<block>
|
||||
<return type="int">
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="977.7974996471614"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="557797777"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="division" type="float">
|
||||
<lhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="-780.5503539855108"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="609.6186316570618"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<operator op="division" type="int">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<literal type="float" value="117.75924089675732"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="728066751"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<literal type="float" value="630.9429971623356"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-671.579760434576"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="subtraction" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="-1972192974"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-152236428"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</return>
|
||||
<declaration type="int">
|
||||
<variable name="K" type="int" mut="var"/>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<operator op="division" type="int">
|
||||
<lhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<literal type="int" value="264836965"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="248.47054430310732"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-334534634"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="subtraction" type="int">
|
||||
<lhs>
|
||||
<operator op="division" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="-782.6446640862803"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="544.88522848807"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-611.6032890725234"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="division" type="float">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="-1666468786"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="969.5573071095944"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="1914311012"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="division" type="int">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<literal type="int" value="-930441597"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-71086775"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<literal type="int" value="388991486"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-484.94238737572414"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="subtraction" type="float">
|
||||
<lhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<literal type="int" value="-682581772"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="1227496547"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<literal type="int" value="2141169807"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="665862423"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="subtraction" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="-321.7159383759805"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<literal type="float" value="-231.28197230220064"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-724831825"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</declaration>
|
||||
<assignment>
|
||||
<variable name="K" type="int" mut="var"/>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<literal type="int" value="1638376106"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="division" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="-388319401"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<operator op="subtraction" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="-829.8233087060607"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="2056955612"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<literal type="int" value="-45108486"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-473596599"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<operator op="subtraction" type="float">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<literal type="float" value="-405.23776021556364"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="1042976432"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="3.671391617230597"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="1483200413"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="360.6290816061155"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="division" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="-786841187"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-553.8894514577041"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="242.6987344469012"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="662.293073769592"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="-300219552"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-404.8335496204336"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<literal type="float" value="626.2212591011919"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-993.5558417213322"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<literal type="float" value="-453.6768176930419"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-791616709"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</assignment>
|
||||
<assignment>
|
||||
<variable name="K" type="int" mut="var"/>
|
||||
<rhs>
|
||||
<operator op="division" type="float">
|
||||
<lhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<operator op="subtraction" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="-688.1022047708459"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="672066131"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="-769600937"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="1815563585"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="subtraction" type="int">
|
||||
<lhs>
|
||||
<operator op="division" type="float">
|
||||
<lhs>
|
||||
<literal type="float" value="-4.930557876996886"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="float" value="-228.73669522947444"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="854782224"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-207795075"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="addition" type="int">
|
||||
<lhs>
|
||||
<operator op="division" type="float">
|
||||
<lhs>
|
||||
<operator op="subtraction" type="int">
|
||||
<lhs>
|
||||
<literal type="float" value="-909.8109507721024"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="1101870903"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="subtraction" type="float">
|
||||
<lhs>
|
||||
<literal type="float" value="196.56943548615118"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-1034678999"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="-501066730"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="multiplication" type="float">
|
||||
<lhs>
|
||||
<literal type="int" value="589228114"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-349833879"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="division" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="-1401347820"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="division" type="float">
|
||||
<lhs>
|
||||
<operator op="subtraction" type="int">
|
||||
<lhs>
|
||||
<operator op="subtraction" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="1876952792"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="1539303194"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="addition" type="float">
|
||||
<lhs>
|
||||
<literal type="int" value="574673387"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-505627784"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<operator op="subtraction" type="int">
|
||||
<lhs>
|
||||
<literal type="int" value="1756658820"/>
|
||||
</lhs>
|
||||
<rhs>
|
||||
<literal type="int" value="-1091602168"/>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</operator>
|
||||
</rhs>
|
||||
</assignment>
|
||||
</block>
|
||||
</function>
|
||||
</block>
|
||||
|
|
@ -46,6 +46,8 @@ def to_python_op(param):
|
|||
return ">"
|
||||
elif param == "greater-than-or-equal":
|
||||
return ">="
|
||||
elif param == "xor":
|
||||
return "!="
|
||||
else:
|
||||
warnings.warn("Warning, unknown operator: " + param)
|
||||
return param
|
||||
|
@ -94,7 +96,7 @@ class PythonUnparser(GeneralUnparser):
|
|||
return "{}: {}".format(name, ty)
|
||||
|
||||
def unparse_block(self, node):
|
||||
super().unparse_block(node)
|
||||
# super().unparse_block(node)
|
||||
self.source += f"{self.block_delimiters[0]}\n"
|
||||
self.indentation += 4
|
||||
for child in node:
|
||||
|
|
|
@ -54,7 +54,7 @@ class TestPythonUnparseCode(unittest.TestCase):
|
|||
parser.source = ""
|
||||
parser.unparse_node(parser.xml)
|
||||
self.assertIsNotNone(parser.source)
|
||||
self.assertEqual(parser.source, "\n a: int = 1\n print(a * 42, end='')\n return 0\n\n\n")
|
||||
self.assertEqual(parser.source, "\n a: int = 1\n print(a * 42, end='')\n return 0\n pass\n\n\n")
|
||||
|
||||
def test_unparse_assignment(self):
|
||||
with open("ast_parser/test/xml/assignment.xml", "r") as f:
|
||||
|
@ -129,7 +129,7 @@ class TestPythonUnparseCode(unittest.TestCase):
|
|||
parser.unparse_node(parser.xml)
|
||||
self.assertIsNotNone(parser.source)
|
||||
i = ' ' * parser.indentation
|
||||
self.assertEqual("def main() -> int:\n a: int = 1\n print(a * 42, end='')\n return 0\n\n\n", parser.source)
|
||||
self.assertEqual("def main() -> int:\n a: int = 1\n print(a * 42, end='')\n return 0\n pass\n\n\n", parser.source)
|
||||
|
||||
def test_unparse_args(self):
|
||||
with open("ast_parser/test/xml/many_args.xml", 'r') as f:
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
if False:
|
||||
return 0
|
||||
pass
|
||||
else:
|
||||
return 1
|
||||
pass
|
||||
|
|
|
@ -2,5 +2,6 @@ def main() -> int:
|
|||
a: int = 1
|
||||
print(a * 42, end='')
|
||||
return 0
|
||||
pass
|
||||
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
while True:
|
||||
print(a * 42, end='')
|
||||
pass
|
||||
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
def beeeeees(a: int, b: int, bb: int, bbb: int, bbbb: int, bbbbb: int, bbbbbb: int, bbbbbbb: int, bbbbbbbb: int) -> int:
|
||||
return 0
|
||||
pass
|
||||
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
-3
|
||||
-3
|
146
fuzzer/ground_truth/fuzz_0.py
Normal file
146
fuzzer/ground_truth/fuzz_0.py
Normal file
|
@ -0,0 +1,146 @@
|
|||
def main() -> int:
|
||||
print(2057937753 + 626.8824620397058 / -528.3518915422769 * 323642524 + 1664085605 * -1792677337 * -1832989058 + -521092479 - 571624797 / -454866201 * 287546754 - 367.78267927903516 + 25.249215084211983 - -860486855 + 1592782480, end='')
|
||||
if False and False or False and False != True or True and True == True == False or True == True == False != False or False or False:
|
||||
pass
|
||||
else:
|
||||
eVojZ: int = 644977986 / 23.868372114846238 + 601760511 * -676.9703653211012 / 902875690 / 641968564 / 1828214617 * 276852524 + 947.195898623947 / 651538234 + -773.752613754156 / 395230117 * -458.44087115293223 + 758.4872311685915 / 1379924194 - -361217483 / 1872161333 - -792.0893112590295 + -1997512694 / -98232716 / 847.0092496619609 - -51.36984480114131 + 492590758 + -942.5007287487038 + -1176698377 * 646.9119351561426 / 594.54613417062 + 547.5356150085529
|
||||
print(721836508 - -796.0301727716547 * -76.30749863431333 + 1238102246 / 1000110497 * 318080461 * 284320406 + 876532063 - 328571219 + 172.3492334967384 + 384.37396765124436 * -969308118 * -97761756 + -1739621230 * -1540021685, end='')
|
||||
eVojZ = -2119510703 - 1490778069 + 885.6291348180314 * -853.5202909261573 + 119.64345315694891 * 58456844 * -132.6316995467855 + 1438932719 * -697.0728240753921 * -746.5272743666309 - 843.497220652597 - 1921857798 * 432612478 - 628.3806989093418
|
||||
print(-925089524 * -592.9167348524024 + 2070852774 / 329793742 * 939.0385660259019 + 341483339 / -240.80678677950425 + -340.45409888039785 / 211052727 + 1812313593 * -1110038246 + -649.0130398382785 + -612131991 + -256705467 / 389599650 - -683.5579099924433 * -268.20602511269317 + -896705077 * 352580431 / -620.9686979244868 * 1150952125, end='')
|
||||
print(-315781960 + -63.7308394824056 / 611591293 - -771.301435605708 / -936.9242647352273 * -919601258 * 2075428604 + -748490849 + -155.34046617088234 * -617493167 * -1907739597 / 288.1749134989416 + -1010320589 / -256.6763660840983 * 362861210 * 213.99232675219082 + 757.0873053813016 / -397.64389012794004 * 1373234146 * -315.42605493053213 + 970.0331276967665 / 7804491 - 840.1918732289655 * 2118779877 - 1193424774, end='')
|
||||
if False or True and True == True == False or False != False and False and False or True or False == False and False or True or False == False != False and False or True == False == False != True == False != False or False == True or True and False and False or False:
|
||||
print(578.7434182078341 / 2056975865 / -855.4675375522515 + -236323977 * -2036392581 / -114.31982656386629 + 2061327793, end='')
|
||||
eVojZ = -447.0567405946115 + 74.86827991778796 + 185439115 * 646796496 - 33.65923091289301 * 55.84390127041365 * -456.354522375261 / -817.1034160075745 - 355959326 / 42.926226373497 + 248331523 + 696.4553308178861 + 80.81150988688728 / -322911391 + 561.0540653220735 - 1491426992 + -468.9507988030015 * -942.3246057831975 + 1075622338 * -1879344380 - -607.422235221515 / -70.89189313645636 / 496.33457102967805 / -298.27307656712617 / 9.72119568838582 / -1272908871 + -2014134896 / 103.84173717314343 / -689.2595084277734
|
||||
eVojZ = 966.0111371183307
|
||||
eVojZ = -124424662 - -297118359 / 1946964098 * -236.73977366662302 - -877.5130587051481 + 26588188 * 431383577 * -544.2119199149643 * -709.6802617382183 + -922.6649138785597 - 469.7876517630925 / -871.3691669364136 + -304.5137874480222 - -157622447 / -735.8076140536787 + 911.9817507921682 * 995.3596729192518 / 688.2037445981721 / 1105289362 * 671.0145544928062 + -177120724 - 404957385 + -114.51392250367974 + 879.4085775186354
|
||||
eVojZ = 262.11589994311385 - 842.6184934947084 / 946365971 / 252.31642812957057 / 800935245 - 525.1243578557219 * 367.5790951529625
|
||||
eVojZ = -1968296072 + 877.5654745797606 * 1539449619 - 383.8239165043424 - -963.5634374099134 - 983824508 * -94.0924091462241 - 331.2669755337795 + -473.8719199510974 * -800346948 - -932544466 * -208.41037576816143 + -537.4031960794725 - 721.5964476694894 / 189060442 / 231.88701497434135 - -836.0808961295627 / 674.0158482844847 * -304795584 * -1834584874 * -110.84428047142717 / 880.7500553779273 * -209592946 - 748.0172260632235 * 1194050103 - 83863406
|
||||
print(-153.60648580394434, end='')
|
||||
print(-257224960 + 68748822 + 126.20408014629106 * 775470105 / 80.30771103396751 * -766899371 / 830.7843231128452 - -340807721 / -772.6278848230254 - 152.9975824514347 / 122.54559916387802 * -259407634 * 1732130059 + -902548225 * 1126734630 / -2029633119 * 1389397795 + 1949559776 - 1277529327 / 1169907708 * -2063040438 * 884800159 + 46.885895389096504 * 492493738 + 2002148687 * -451306118 * -791.9842584033665 / -1164188042 + -61.40348172911001 / 1338229690 + 1008255500, end='')
|
||||
eVojZ = -1504571741
|
||||
if False and False == True == False or True and False == False and True == False != False == True == False or True or False:
|
||||
print(-2.9719896091493183 / 407.8980911487324 - 1011945868 + -55035895 + -1076467229 / 441.7588562912208 * 38422244 * -788.5733070379581 + 204.27461585080528 / -183.8576955809525 - -1775324356 * 1026657420 / 1716510319 - -318.3259273415264 / -275.64282674449373 / -1822900772 + 668.1634954012577 + 631.8644654140828 - 303.0681312127256 + -585.4756563007912 * -87.03938061668919 * 1364486365 * -1092511767 - 919.3259735956835, end='')
|
||||
eVojZ = 1203771934 * -1619758301 + 196904158 - 1491770983 * 540.0654599817035 / 382.26740104837495 * 660092458 * -966.0254715410215 / 2101815337 + -614.7124168719098 * -800.2448589197109 * 48.18238646045779 * -381.0692701748361
|
||||
pass
|
||||
else:
|
||||
eVojZ = -1978369168 - 1402341755 / 1234955022 / 480.9298093230145 - -1731899420 / -870.8567901903841 - -1974495976 * -770483789 + 75.13364876154333 + 361728717 * 455.3548200204907 * 215.76596834243378 + 1526323083 + 1312847317 - 1053688573 + -260.9930908176659 - -1943958510 - 554.4743779155772 + 566111275
|
||||
if True:
|
||||
eVojZ = 213.94682588718206 / -1215201190
|
||||
while True:
|
||||
eVojZ = 765.3441163247285 + 379.36469192975414 + 46.03469436008231 * 94.5959747233735 - 825.9923846286595 * 1575168903 * 74.11722183641928 - 325.5979336083619 - 353.73519574571924 * -448.9577143882077 - -1220654487 / 989956169 * 634.5392384492272 * 1801057843 + 223.55004806971874 * -1754574321 + 482.7997631626372 * 240.36652596753925 - -1835413043 * 63959647 * -272.23380875626503
|
||||
eVojZ = -504687690 / -284391450 * 330.87477687053547 * 562.9285207642529 - -602.4784575920212 / -888850672 + 54.72290873629072 - -129023939 / -802.0548637261411 - 165.16478182662945 * 161240420 * 210.4372824778393 + -2053549544 / -2136299121 - 634.6827186776407 - 79.09055374692184 * -831.5898833278006 - 219.6536672615266 - 488.8470048811814 + 114.62224546353423 * 884724049 * 944.9348971765239 + -1680315510 - 233.8747926291328 - -1004240110 + -2011204012 / 1103972963 * -607.7187677457114
|
||||
print(-139.8450684785397 + 796.871220334368 * 986059072 * 581.780213209018 / -374.28838035039576 * 397.0478133299198 * -223.43768302783133 - -45.61415943599752 - -624.4400509263794 + 984.5440838156023 - -1933582704 + -7.377755094203621 - 317273458 - -1596654596 * 1086340412 * -1219791633 + 29.546224035109162 + 1344818181 * 976.7145639305709 + -1925186476 + 1242099953 / 827.8145164494879, end='')
|
||||
eVojZ = 158.300618670213 / -207777526 / 2134007741 + -475.06709193316965 - 899.4395537633459 + 607905148 + -481.6450187436452 / 1756257604 + 1417613409 + -684978867 - 929.7121396504699 - 153.2501517107628 - 113.45004436686622 + -414630660
|
||||
eVojZ = -450.32754970486417 + 1448141013 / -376830413 * -895408190 * 201.80050609843875 + 2046884774 - -1550938014 * -499.22831003218346 + -250011951 - 260165880 / 693.8229956319797 - -1359889342 + -1231193969 / -1026503267 / -1301892015 - 362.0860915032656 / -858809618 / -569.5885234052939 / -80474547 / -218.9629389311201 + 889.601066419191 + -571657899 + -735652759 - -681584983
|
||||
eVojZ = -404.4327522406022
|
||||
print(268.0448485253478 + -2132756123 / -829.6671510232836 + -802.8865826232638 * 1577787659 / -829.047006128814 - 1828033711 + -277.4369189989285 * -2112583956 + 125.81642532162073 * -396.61130110372756 - 755579851 - -620.6847649811132 + 825158492 * -1644746140 - -1816958276 - -1395052935 + 291.7500698379315 * 535916207 * 243.28558950908177, end='')
|
||||
CTKlX: int = 951.3788347158734 - -407.2023682602128 * -1181421110 - 91537824 * 369375378 + 395.8916074133574 * 795.4196326328986 * -850935240 + 240.15795942548175 - 1402979925 + -1579901582 - -892.0484516736043 / 2043906018 * 926.1690943366777 + -2097185555 + 891.8504077331254
|
||||
rTw: int = 1169203671 / -56.60161767708314 * -144.36158982426934 * -296456942 * 766.1065535108914 / -1243302102 + -524606496 + -1656357347 / 985.6121128575269 / 1254486707 / -882.0785894266372 - -494.23995012839407 - 1135290669 + -912854965 - -2124904493 + -2068299699 * -307034368 - 126.2926279306007 * 418.80655372240767 / 463192838 * 344.586418931892 / -1275037171 + 426732305 / -713.6317366453893 + 174.50768244979554 / 1296422994 + -831.8068615168377 * -204.6703473586689
|
||||
rTw = 1169987910
|
||||
print(90211026, end='')
|
||||
CTKlX = 524.3568268343752
|
||||
print(705.49352685336 / 643144366 + 2013389034 - 444.34147180865307 + 1389665054 - -49787837 - 986.0084761115604 / -520.0130462999226 + -1775319603 + 333.9542427226729 * 87.37361565035462 / -450.65387133591344 + -1660362376 - 920.9186736152001 / 1.1961161041429023 + 891.0800454212113 - -1840737165 / -542.835358178326 - 1857648539 - -1300704685 + 975.1211345628224 / 552.184956473835 * -599.4910092222487 / -338700564 - 974.4539376443756 + 281.80696288368927 - -2016037717 - -667.5238735814328 * -1727004440, end='')
|
||||
eVojZ = 523.5592866707034
|
||||
eVojZ = -1617229017 - -29.06207192526631 - 738.6989712221309 + -357.87880497572417 / 379.6540320841709 / -686728296 + 551.7575598273418 * 68.78558190670151 / 1298374282 + 29.820135559271648 * -905.6178298135951 / -528.7658499118253 - 1035178149 + -1037045268 + 1453861543 - -620.8202598165651 * -626.5738512410961 * -779.1506838178664 - 417.4411560526121 - 1731012022 + -211.5632740566906 + 788.1078303660777 * -1750741804 + 324.70314298194626 * -155.85635471662272 * -488.61146778720934
|
||||
CTKlX = 119425130 / 2045922178 * -977807406 + -954.4380756623365 + -371.06282230562977 * -124.70186551116558 - -37.091194823477736 / 1096184275 - -566.4026277333421 - -1907005875 / -337.26306559427746 * -370.98372516771417 / 804.1364824031295 * 642.2452828225955 - 714.3798682706717 + -1099676236 * 361.69489992027115 * -603.0669008624318 * 558446288
|
||||
pass
|
||||
|
||||
|
||||
pass
|
||||
else:
|
||||
print(599.401496172256 - -387.4840081129938 * -763.9956070136013 * 722.5345821947142 - -1034328614 + 2127623837 + -851448378 * -95440251 + -44.14312881851856 * 1872631211 / -2068603302 - 532.281741255016 / 662.7767897491049, end='')
|
||||
print(778.2414475975663 + -246.94912879662786 - 556.9079732033667 - 378.4116972430704 - -398186835 + 1970458292 - -163274195 - -1050874371 * -243.05102327852637 / 862.1839117742127 + 135547382 / -735.8663865379579 + -510222204 - 165114045, end='')
|
||||
pass
|
||||
print(2055142209 * 2069786969 * -703499419 / -126.61661900436559 * 1415422018 - 857.3386156072938 / 53053599 + -514.4704123122194 * 951.0885320391471 + -1369438243 + 1369294679 * -128641707 - -812.3950667732 + 1122457328 / -992723079 * -720.0483215219133 + -523957124 + -682.0394956908957 + -469.0640747664477 / -718788423 * -1606275126 + -514820525 + -784.3743580010123 / -657.6413034903787 - -1351428696 / 653376483 + -1432509677 + 747.7036270766223, end='')
|
||||
fUTlRFg: int = -219784109 * -625144745 + -240.1341194442872 + 571877735 / 1883941814 / -1518051141 * 779.2708933809954 / 236.88032639880612 - -353.72231497568646 / -750.7094163573447 - -863.7203855413956 / 135926877 / 1410623312 - -306218439 + -624.0017747782936 / 1627784591 + 990.7092168889205 + 771.1475872492704 - -796532086 - 805.4412882375032 / 566.7033277965922
|
||||
print(138470068 * -787722530, end='')
|
||||
eVojZ = -228.76897349663227 + 1706284925 / -1365400927 * 2089200757 * -556.9205954450433 + 884.0285193824252 / 962039171
|
||||
fUTlRFg = 876.514675429825 + -9383281 * 200168280
|
||||
fUTlRFg = -329.1975402345639 * 1309083387 + -644383917 - -188771962 / 1066873586 + 863.9308095916722 + 732334315 * 420.774059055429 * -171348803 / -695.6113261290504
|
||||
fUTlRFg = 964.7652640601209 * 269.17130953801825 / 688274916 * -942955884 + -164.87941085784064 - -1345630667 + -872.2338568680212 * 431802185 + -584.3978021993084 * -992436806 / 370.7147743637431 + -377.4216991517603 - -888.5888411000134 * -591.060696543438 + 1891446439 * 852.0862404848533 + -1476764124 - 535963845 / -2003867992 + 865.9109284780616 - 574206851 + 817.7619038385626 + 545.4644351220518 * 27.824888953971595 - 1152580383 / 1081115273 * 765.379188066963
|
||||
print(-126.73269537168676 + 995.270214912129 + 929854654 + 947.8864996589368 + -467.0123438569183 * 853.3810706267416 / 524.1339236107876 + -857133700 - 689.6635666815407 * 928.8385512198722 + 634612493 + 1630777740 + 1162810686 + 586.4679522044237 - -450.3989737440363 / 1606493101 * -543.2171615869454 * 352.65661552690335 + -712.5021016419462 + 588.9595440034716 - 1845300403 - 368046353, end='')
|
||||
CWx: int = 134.11479741744188 - -1280135401 / 331.0394124789493 * 1647597727 * 965.0850301073392 * 918798106 / -685.9509946777312
|
||||
fUTlRFg = 1591222359 * 521146310 - -421534436 * 667.7894774805116 - 2090576455 - -1044766254 - 450.99904713134333 - -83.55909053167409 + 873315880 - 908.8872694945132
|
||||
CWx = -1836946070
|
||||
CWx = -934.9645268884548 - -724720502 * -155893278 + -57141171 * -658.2453009999494 - -420.47529764302794 - 1136780102 * 931757143 * 2042578190 * -368.27886088954415 - 692.0332801419077
|
||||
CWx = 1577139216 * -1901876067 - -593.231600695424 - -741.900646867915 - 230.53777341525256 + -902.6549773472981 + -1556594294 * -2073590843 + 34822081
|
||||
print(828359790 - -500.38437429809824 * 912.6929709347489 + 112.70515872007695 * 1477946151 * 135.40917571693194 / -812.5140756792888 + 863.3395885680484 / 434.36612945496245 * 758333367 * 838.2066280372571 + 614.0156461100582 * -241.56274390176225, end='')
|
||||
print(987.9152686649254 / 999.2206473334998 * -1323955118 + 1739030400 * 1318544788 + 200938309 * 593.7705091263128 + 224845024 * -264.8978954256644 - 451.11017867322244 / 1697709248 + 485.418248821376 + 991689915 + 318.70960351416716 * 1553275086 * 574.0498929137661 + -1458965295 * -433170454 / 177.68852199825437 - -2064504071 * 147.16257483238337 / 793.7781591863868, end='')
|
||||
print(-1017822703, end='')
|
||||
CWx = 43.33833201892526 + -889211957 + 1721616402 * -984.2381460113716 / 415002455 + 689.6237052263725 * -1404634541 * 714639929 + 117.42796960769351 / -1143031110 / 639.7804108202779 * -1401536188 - -32536367 / -805.6139894868215 * 1890140499 + 369.7905444284836 + 1392192292
|
||||
print(830670376 + -713.8871541176994 + -677.9345602060165 - 2071714154 / 176.927383886062 / 1763837241 + -2036634752 - -527.7683030597032 + -373.20040945483095 - 832.217002888972 / -307.8300909965874 + -1438570492 * -2007632972 - 426.2847323452538 * -1923261819 + 40.01830556313348, end='')
|
||||
pass
|
||||
print(-274.3199926710953, end='')
|
||||
eVojZ = -994653201 * 1778765416 * 1676099408 + 1269346637 * -602.9121893511574 + -723967410 / 79470705 / -798.8014251415123 / -1763474924
|
||||
print(-981565595, end='')
|
||||
YJWv: int = 549539131 * 1846885606 + -293.79489331576417 * -745.6163583468278 + 420373439 * -1989056284 * -2016256380 * 1852931296 * -670717632 + 600762132 - 163.1773555463401 + -844.1650717724924 * 539.6537551418069 - -682.3666322901704 + 1680765228 * -801.9918616745596
|
||||
ATuPSFm: int = 378.86335644974633
|
||||
print(492.0272896776537 / 1288298521 - -689159756 * -773.9194868743284 + 293.4072536320921 - -452053396 + 1895315707 / 208296562 * -740.6172866842362 * 602.0096160692258 + 424.34532225237194 * 1155789034 + 568.3742183800321 + -1640994037 + -255.15196004825123 + -984.2221266264519 - -2139093315 - 763.0576300615699 + -67.4155445464595 / -394.30303017433823 / -1856376566 * 1817240865 - -1442899851 - -186.0739160468512, end='')
|
||||
eVojZ = 439.13991877986814 / -835.522450363249 - 1366300369 + 232.3123816343309 * 1580822275 - -1015425747 + 335.5927058065556 - -811.8985948775957 * 1768839764 / 671939846 * 664.4693020149825 + -677325369 / 469.99291615911443 * -193.07996985547572
|
||||
pass
|
||||
else:
|
||||
eVojZ = -34.06765799614254 / -564580211 / -2042877945 * -1546933971 - -134.45114064620168 + -875330081 + -1774690636 + -293.97390985421043 * 151.72322713742233 * 625.6755565970943 - -1243580334 + 323.74582656218286 * 507.9568638688852 + 874.9524792993493 + 2111075675 + -186467993 - -953.7549224719066 * -681137091 - 999.8679699122463 / 706.4944279445642 / 763.7594017250062
|
||||
eVojZ = 250.5696319073204 / -718.3176705152432 * -2027147715 / 465852948 + -54136718 / 951.7966661786586 + -870.287933200838 * 769.8368577242802
|
||||
eVojZ = -277.93102248010507 + 905.6973569301183 - 4278535
|
||||
print(616.7462707832344 * -28.70180106488101 * 194.09348514813178 - -821902556 - 69.77033788621225 / 517.8931965753925 * -431.5448809064226 + 402.78515027381536 + -766310713 + -473.3286925476465 - 203310067 + 93.16593777033063 - 1465304646 + 584.67934950731, end='')
|
||||
print(-713676522 + -1962852770 - -760987705 - 1912190839 * -110060926 * -91958178 - 430173857 * -2127345363 + 538.0876821833092 * -1505362808 - 511.2647807161575 + -134.55339965195412 * 758.6014703154628 * -758.4694778593495 + -1859418717 + -241439884 * 34.22524438051846 / -930.9330709079602 - -770.3940747640619 + -610694188 + 720.8390648326886 - 402.72461795127015 * 394311128 * -697.7062312616642 - 608311616 * 835.5763743039208, end='')
|
||||
DkyytOAvl: int = 223783350
|
||||
eVojZ = -388.5677121036513 * -1455929424 - -109.39897486013763 / -1941040279 + 647176043 / -573.0051093648341 - -454034641 - -1030363134 / -539460881 * 775.416244040513 / -757.0085857609623 - -1457821843 + -223.06212598319644 + 963923364 * -645364183 + 921454348 / 1928497194 + -708.8493428964725 / -831.2911441770054 / 527595380
|
||||
pass
|
||||
print(-820.6751118933182, end='')
|
||||
print(-825.3648682375505 * -256.92463855526705 + -419828420 / 1570314206 - 202695829 - 678369533 / 1111559439 - 691.272896100963 * 2009930436 / 612.3297158892699 + 843.2246635136105 - 179.8790733582673 * -705.1765328511601 + 224966182 + -633.8351751148818 - -516.7929683547659 + -278589313 + -281660192 * 136.8564237861649 / -1301400310 + 103.2327564947625 - -68.7123402034266 * -44242055 - 1127716635 + -655.2942811599903 * 885.5128425295841 + -182354209 - -1673772927, end='')
|
||||
pass
|
||||
print(-1111373604 + 2136224456 * 409.2328555785457 / -1335654881 * 2008487191 * 184.79028089026724 + 307904381 - -974930243 - 410085544 + 104302868 * -455401943 / 232.94311768142666 * 1841984555 * -721.9503215816283, end='')
|
||||
return 0
|
||||
pass
|
||||
|
||||
|
||||
def Q(wqMUmOd: int) -> int:
|
||||
return 674.9884725497111 / -580.7938408940772 + -928.2353102558585 - -150988530
|
||||
ozWgOiR: int = -1742282660 + 830938721 * -907095793 * 1611553646 / 917.8887667448075 * 1151541325 - 669072349 - -1559275364 * -549.8181273465939 * -209.220878058523 + -378.4261181377309 + 325644912 - -439.73133989787414 * -860.8387705100678 * 1381533220 + -503324480 / 920.9513100392446 - -421.1846642873313 * 629.0563505856455 * -953.1044426648443
|
||||
pass
|
||||
|
||||
|
||||
def dBKcpUaKyw(NZ: int) -> int:
|
||||
return 564.4846542690909
|
||||
pass
|
||||
|
||||
|
||||
def xKotSMxj(b: int) -> int:
|
||||
Br: int = 740.3385424126773
|
||||
print(868.5635971543588 / 1575822464 / -278.36948131904626 / -214913196 * 1167713979 - 628.3730814100811 / -608.2829045398157 * 880.6285261454818 / 1283836581 + 832051635 + 131.6242198367404 - -920.2632382379359 + -2058790908 + -1811702746, end='')
|
||||
print(-1401053441 + -196.50525692557073 + 773.6737679806374 - 857347452 + -1706656031 * -124.01486623597941 * 1160853156 + -743.2970646732196 / -306974193 * 276.22527142622675 / -1729504879 + 748.5627756895256, end='')
|
||||
OXjVf: int = -479.3220134438636 + -907.6332618512926 / -622.4425169484134 * -521.0029854853376 * -302.4361761674868 + 1726095326 + 99.72904653591945 / 1126766554 + 1424571296 * 819013981 / 1979774970 + -473.1943973926043 + 338.18321603323807 / -1519046589 - 280.09969703480897 * -252.03014443879647 - 560.9629142134156 + -133.98807370987777 / -149346910 + 854592895
|
||||
return -1753095590 * 1138580112 + 2140019127 / -2139075719 + 376748624 * 850793059 / 164727522 + 1660551719 / 714.0211942243998 * 346.57561341102246 + 975463652 + 806.7623341097076 / -850496356 - 863225509
|
||||
print(-167.72886489944642, end='')
|
||||
print(-963.5702557407412 + -1530409317 / -1796459804 - -135579709 + -356.62661482151407 + 674.4627058575979 + 87.93076346866565 / 46.795261967389706 - -1955759691 / -725.937620830259 + 6062139 * 1795956299 + -8.693106312558598 - 25.72182231033912 + 251.30990545351528 * -116560297 * -273.2220226646251 - -722.8447818578622, end='')
|
||||
OXjVf = -2009471008 + 80920987 + -1993174908 * -223540337 + 709.1696310920092 / -301.382235019729 + 153.76173201521374 - -1730942745 - 492.7698340026277 / -954.629445889479 - -692659976 / -258.00826310406615 - 1385641120 * -879.2247079622459 / -487.47499912317573 + -1145569988 * -771.7603106863551 - 55.33457874391593 / 370.04374695442857 - 120.37191044541078
|
||||
pass
|
||||
|
||||
|
||||
def HMxZVDYikS(BKKalQKjaD: int, A: int, cw: int, igsD: int, ZG: int, BknMbZ: int) -> int:
|
||||
print(-1349150660 - 958.7062678748748 * -608362533 + 420443001 * 490.2557701953765 - 579.8476267988453 - 683915230 / 643.0360400988811 * 7.725742060699304 + -336.473102647328, end='')
|
||||
nYv: int = 165147040
|
||||
print(344.2976821758132 + 917.3343524597647 - 1752725324 * -897898705 + -683956633 + 249142263 / 565630840 * -462.75225314395027 + 2088261328 + -171.6830289783751 - 1117644759 * 237215125 * 2048030097 - 87.96850519541522 - 1737774523 * -143.43565623986376 - 76.03501027901075 - 94.19728082571305 + -989767340 / -874.1449200475204 + -975957200 - -936.3270006812494 / -969.9100552783228 + 654.3310569952812, end='')
|
||||
nYv = -8.27926455190277 / -723.3402139789018 + -483.9709767604867 - 490974634 + -964.4827681384457 - -1592074042 + -950.2490400654948 / -764.3689271492407 * -263.2563542495028 * -780.5716206926184 * -9.78552020292534 / -1706928434 - -483.33687352446054 + 679628629 * 978.7116910981442 + 131120706 / 894.8919259559232 + 564.4577905547692 * -704.3050764044369
|
||||
return 1303262584 / -1551577354 - 71110632 * -265.12797490019227 * 1839806314 - -899.900727018616 / -148.33047542288602 - -451.91417205575067 / -154.96235718793014 - 164376540 * 1281486904 + 183.97108688833328 * 110.99804640456023 - 1199214466 / 590.2102144255889 * 1366797346 * -568914470
|
||||
print(380.81146978406537 + 284.0874848329497 * -151280742 + 974.6616734337294 / 325948355 + 251.61592881780462 - 362.6400350231181 / 111663974 * 607.9577713777314 * -861.0082164902186 * 125999185 - -1991820880 + -388.60399020844636 + -579.1555292314547 * -676.5307481559499 * 1375036720 - 45462954 * -315.83040165021316 + 207.93516815455632 * -1961845294 / 717.8477703855183 + 330.23969256871055 / -879.3446317294282 - 560.8897548397472, end='')
|
||||
nYv = 569.7200532334866 - 927868145 * -679.0215684920573 + 836622810 / -647335803 - -152865134 + 798.1907806231975 * 290205469 + -626813898 * 1546264921 * -367060465
|
||||
print(1016539365, end='')
|
||||
nYv = 371.00181904330725 * -13.654699817690243 + 301.67950699668086 + -468541796 / 762.6168350884193 + 968.4613338054376 * -2.981746487211467 + -467.29507156951615 + -53.82166256618075 + -1771841094 * 1453383776 * -927.8326131468948 * -865.5363213966887 * -2144475557 + -1854541676 * -80.65800361702941
|
||||
pass
|
||||
|
||||
|
||||
def nJPT(zdErQ: int, mmquXa: int, qUYI: int, OdFJhuaPP: int, qnl: int, xrkLx: int) -> int:
|
||||
print(440.3668751320961 * 1240504741 + 1012509596 - -351.04455511394735 - 1830723954 * -1442857967 * 663.465526833638 + -252.3632373478224 + -139.25516381158332 / -1671009202, end='')
|
||||
return 870.5159911105991
|
||||
print(-138.21784791922335, end='')
|
||||
kPdb: int = -1964184702 + -128335825 - -745.9942357188831 - 1766020656 + 879218892 * -941.3818487558578 + 993.5582227606326 * 1933522285 + 314.203938984082 / 1315565426 + 113392243 / 804.3606387647349 * 409.0071592629604 + 1182774182 / 181.91861812344632 - -818.6116779465851
|
||||
print(1344459657, end='')
|
||||
kPdb = 1056709477 / 1159743357 / 1540397091 * 1224186147 + -79424712 + -65.49187478076294 * -1805823576 * 520.7282403019426 + 187.36449820115217 - 2107456822 + -368.9302112273118 + 1620758505 / 343.3057579426527 * 701.6500963048634 / 460741210 * -53.04032576748523 / -231.92511667534382 + 1107344273 + 1495270415 - 404.8312487407777 + 928226045
|
||||
print(-24.337669709978627 + 196.24276889795146 * 1676003593 - -1415038387 * 327063715 * 235.85849779469936 + 497779200 + 196.02566568579846 + 463.02656761495655 + 483533490 * -67.30227392628206 * 276704078 * -2024165624 * -69364849 * -316.66020000873357 + 1673929743 / 2107343384, end='')
|
||||
spN: int = -583.3514618984705 * 935.3687840856294 / 529887663 / 1220430132 * -1016910579 + 1078738159 * -429.6462148808695 + -49448161 * 201.90981893832577 - -735566777
|
||||
print(-360.53158054986636 + -277.4752435058467, end='')
|
||||
pass
|
||||
|
||||
|
131
fuzzer/input/fuzz_0.in
Normal file
131
fuzzer/input/fuzz_0.in
Normal file
|
@ -0,0 +1,131 @@
|
|||
procedure main() returns integer {
|
||||
2057937753 + 626.8824620397058 / -528.3518915422769 * 323642524 + 1664085605 * -1792677337 * -1832989058 + -521092479 - 571624797 / -454866201 * 287546754 - 367.78267927903516 + 25.249215084211983 - -860486855 + 1592782480 -> std_output;
|
||||
if (false and false or false and false xor true or true and true == true == false or true == true == false xor false or false or false) {
|
||||
} else {
|
||||
var integer eVojZ = 644977986 / 23.868372114846238 + 601760511 * -676.9703653211012 / 902875690 / 641968564 / 1828214617 * 276852524 + 947.195898623947 / 651538234 + -773.752613754156 / 395230117 * -458.44087115293223 + 758.4872311685915 / 1379924194 - -361217483 / 1872161333 - -792.0893112590295 + -1997512694 / -98232716 / 847.0092496619609 - -51.36984480114131 + 492590758 + -942.5007287487038 + -1176698377 * 646.9119351561426 / 594.54613417062 + 547.5356150085529;
|
||||
721836508 - -796.0301727716547 * -76.30749863431333 + 1238102246 / 1000110497 * 318080461 * 284320406 + 876532063 - 328571219 + 172.3492334967384 + 384.37396765124436 * -969308118 * -97761756 + -1739621230 * -1540021685 -> std_output;
|
||||
eVojZ = -2119510703 - 1490778069 + 885.6291348180314 * -853.5202909261573 + 119.64345315694891 * 58456844 * -132.6316995467855 + 1438932719 * -697.0728240753921 * -746.5272743666309 - 843.497220652597 - 1921857798 * 432612478 - 628.3806989093418;
|
||||
-925089524 * -592.9167348524024 + 2070852774 / 329793742 * 939.0385660259019 + 341483339 / -240.80678677950425 + -340.45409888039785 / 211052727 + 1812313593 * -1110038246 + -649.0130398382785 + -612131991 + -256705467 / 389599650 - -683.5579099924433 * -268.20602511269317 + -896705077 * 352580431 / -620.9686979244868 * 1150952125 -> std_output;
|
||||
-315781960 + -63.7308394824056 / 611591293 - -771.301435605708 / -936.9242647352273 * -919601258 * 2075428604 + -748490849 + -155.34046617088234 * -617493167 * -1907739597 / 288.1749134989416 + -1010320589 / -256.6763660840983 * 362861210 * 213.99232675219082 + 757.0873053813016 / -397.64389012794004 * 1373234146 * -315.42605493053213 + 970.0331276967665 / 7804491 - 840.1918732289655 * 2118779877 - 1193424774 -> std_output;
|
||||
if (false or true and true == true == false or false xor false and false and false or true or false == false and false or true or false == false xor false and false or true == false == false xor true == false xor false or false == true or true and false and false or false) {
|
||||
578.7434182078341 / 2056975865 / -855.4675375522515 + -236323977 * -2036392581 / -114.31982656386629 + 2061327793 -> std_output;
|
||||
eVojZ = -447.0567405946115 + 74.86827991778796 + 185439115 * 646796496 - 33.65923091289301 * 55.84390127041365 * -456.354522375261 / -817.1034160075745 - 355959326 / 42.926226373497 + 248331523 + 696.4553308178861 + 80.81150988688728 / -322911391 + 561.0540653220735 - 1491426992 + -468.9507988030015 * -942.3246057831975 + 1075622338 * -1879344380 - -607.422235221515 / -70.89189313645636 / 496.33457102967805 / -298.27307656712617 / 9.72119568838582 / -1272908871 + -2014134896 / 103.84173717314343 / -689.2595084277734;
|
||||
eVojZ = 966.0111371183307;
|
||||
eVojZ = -124424662 - -297118359 / 1946964098 * -236.73977366662302 - -877.5130587051481 + 26588188 * 431383577 * -544.2119199149643 * -709.6802617382183 + -922.6649138785597 - 469.7876517630925 / -871.3691669364136 + -304.5137874480222 - -157622447 / -735.8076140536787 + 911.9817507921682 * 995.3596729192518 / 688.2037445981721 / 1105289362 * 671.0145544928062 + -177120724 - 404957385 + -114.51392250367974 + 879.4085775186354;
|
||||
eVojZ = 262.11589994311385 - 842.6184934947084 / 946365971 / 252.31642812957057 / 800935245 - 525.1243578557219 * 367.5790951529625;
|
||||
eVojZ = -1968296072 + 877.5654745797606 * 1539449619 - 383.8239165043424 - -963.5634374099134 - 983824508 * -94.0924091462241 - 331.2669755337795 + -473.8719199510974 * -800346948 - -932544466 * -208.41037576816143 + -537.4031960794725 - 721.5964476694894 / 189060442 / 231.88701497434135 - -836.0808961295627 / 674.0158482844847 * -304795584 * -1834584874 * -110.84428047142717 / 880.7500553779273 * -209592946 - 748.0172260632235 * 1194050103 - 83863406;
|
||||
-153.60648580394434 -> std_output;
|
||||
-257224960 + 68748822 + 126.20408014629106 * 775470105 / 80.30771103396751 * -766899371 / 830.7843231128452 - -340807721 / -772.6278848230254 - 152.9975824514347 / 122.54559916387802 * -259407634 * 1732130059 + -902548225 * 1126734630 / -2029633119 * 1389397795 + 1949559776 - 1277529327 / 1169907708 * -2063040438 * 884800159 + 46.885895389096504 * 492493738 + 2002148687 * -451306118 * -791.9842584033665 / -1164188042 + -61.40348172911001 / 1338229690 + 1008255500 -> std_output;
|
||||
eVojZ = -1504571741;
|
||||
if (false and false == true == false or true and false == false and true == false xor false == true == false or true or false) {
|
||||
-2.9719896091493183 / 407.8980911487324 - 1011945868 + -55035895 + -1076467229 / 441.7588562912208 * 38422244 * -788.5733070379581 + 204.27461585080528 / -183.8576955809525 - -1775324356 * 1026657420 / 1716510319 - -318.3259273415264 / -275.64282674449373 / -1822900772 + 668.1634954012577 + 631.8644654140828 - 303.0681312127256 + -585.4756563007912 * -87.03938061668919 * 1364486365 * -1092511767 - 919.3259735956835 -> std_output;
|
||||
eVojZ = 1203771934 * -1619758301 + 196904158 - 1491770983 * 540.0654599817035 / 382.26740104837495 * 660092458 * -966.0254715410215 / 2101815337 + -614.7124168719098 * -800.2448589197109 * 48.18238646045779 * -381.0692701748361;
|
||||
} else {
|
||||
eVojZ = -1978369168 - 1402341755 / 1234955022 / 480.9298093230145 - -1731899420 / -870.8567901903841 - -1974495976 * -770483789 + 75.13364876154333 + 361728717 * 455.3548200204907 * 215.76596834243378 + 1526323083 + 1312847317 - 1053688573 + -260.9930908176659 - -1943958510 - 554.4743779155772 + 566111275;
|
||||
if (true) {
|
||||
eVojZ = 213.94682588718206 / -1215201190;
|
||||
loop (true) {
|
||||
eVojZ = 765.3441163247285 + 379.36469192975414 + 46.03469436008231 * 94.5959747233735 - 825.9923846286595 * 1575168903 * 74.11722183641928 - 325.5979336083619 - 353.73519574571924 * -448.9577143882077 - -1220654487 / 989956169 * 634.5392384492272 * 1801057843 + 223.55004806971874 * -1754574321 + 482.7997631626372 * 240.36652596753925 - -1835413043 * 63959647 * -272.23380875626503;
|
||||
eVojZ = -504687690 / -284391450 * 330.87477687053547 * 562.9285207642529 - -602.4784575920212 / -888850672 + 54.72290873629072 - -129023939 / -802.0548637261411 - 165.16478182662945 * 161240420 * 210.4372824778393 + -2053549544 / -2136299121 - 634.6827186776407 - 79.09055374692184 * -831.5898833278006 - 219.6536672615266 - 488.8470048811814 + 114.62224546353423 * 884724049 * 944.9348971765239 + -1680315510 - 233.8747926291328 - -1004240110 + -2011204012 / 1103972963 * -607.7187677457114;
|
||||
-139.8450684785397 + 796.871220334368 * 986059072 * 581.780213209018 / -374.28838035039576 * 397.0478133299198 * -223.43768302783133 - -45.61415943599752 - -624.4400509263794 + 984.5440838156023 - -1933582704 + -7.377755094203621 - 317273458 - -1596654596 * 1086340412 * -1219791633 + 29.546224035109162 + 1344818181 * 976.7145639305709 + -1925186476 + 1242099953 / 827.8145164494879 -> std_output;
|
||||
eVojZ = 158.300618670213 / -207777526 / 2134007741 + -475.06709193316965 - 899.4395537633459 + 607905148 + -481.6450187436452 / 1756257604 + 1417613409 + -684978867 - 929.7121396504699 - 153.2501517107628 - 113.45004436686622 + -414630660;
|
||||
eVojZ = -450.32754970486417 + 1448141013 / -376830413 * -895408190 * 201.80050609843875 + 2046884774 - -1550938014 * -499.22831003218346 + -250011951 - 260165880 / 693.8229956319797 - -1359889342 + -1231193969 / -1026503267 / -1301892015 - 362.0860915032656 / -858809618 / -569.5885234052939 / -80474547 / -218.9629389311201 + 889.601066419191 + -571657899 + -735652759 - -681584983;
|
||||
eVojZ = -404.4327522406022;
|
||||
268.0448485253478 + -2132756123 / -829.6671510232836 + -802.8865826232638 * 1577787659 / -829.047006128814 - 1828033711 + -277.4369189989285 * -2112583956 + 125.81642532162073 * -396.61130110372756 - 755579851 - -620.6847649811132 + 825158492 * -1644746140 - -1816958276 - -1395052935 + 291.7500698379315 * 535916207 * 243.28558950908177 -> std_output;
|
||||
var integer CTKlX = 951.3788347158734 - -407.2023682602128 * -1181421110 - 91537824 * 369375378 + 395.8916074133574 * 795.4196326328986 * -850935240 + 240.15795942548175 - 1402979925 + -1579901582 - -892.0484516736043 / 2043906018 * 926.1690943366777 + -2097185555 + 891.8504077331254;
|
||||
var integer rTw = 1169203671 / -56.60161767708314 * -144.36158982426934 * -296456942 * 766.1065535108914 / -1243302102 + -524606496 + -1656357347 / 985.6121128575269 / 1254486707 / -882.0785894266372 - -494.23995012839407 - 1135290669 + -912854965 - -2124904493 + -2068299699 * -307034368 - 126.2926279306007 * 418.80655372240767 / 463192838 * 344.586418931892 / -1275037171 + 426732305 / -713.6317366453893 + 174.50768244979554 / 1296422994 + -831.8068615168377 * -204.6703473586689;
|
||||
rTw = 1169987910;
|
||||
90211026 -> std_output;
|
||||
CTKlX = 524.3568268343752;
|
||||
705.49352685336 / 643144366 + 2013389034 - 444.34147180865307 + 1389665054 - -49787837 - 986.0084761115604 / -520.0130462999226 + -1775319603 + 333.9542427226729 * 87.37361565035462 / -450.65387133591344 + -1660362376 - 920.9186736152001 / 1.1961161041429023 + 891.0800454212113 - -1840737165 / -542.835358178326 - 1857648539 - -1300704685 + 975.1211345628224 / 552.184956473835 * -599.4910092222487 / -338700564 - 974.4539376443756 + 281.80696288368927 - -2016037717 - -667.5238735814328 * -1727004440 -> std_output;
|
||||
eVojZ = 523.5592866707034;
|
||||
eVojZ = -1617229017 - -29.06207192526631 - 738.6989712221309 + -357.87880497572417 / 379.6540320841709 / -686728296 + 551.7575598273418 * 68.78558190670151 / 1298374282 + 29.820135559271648 * -905.6178298135951 / -528.7658499118253 - 1035178149 + -1037045268 + 1453861543 - -620.8202598165651 * -626.5738512410961 * -779.1506838178664 - 417.4411560526121 - 1731012022 + -211.5632740566906 + 788.1078303660777 * -1750741804 + 324.70314298194626 * -155.85635471662272 * -488.61146778720934;
|
||||
CTKlX = 119425130 / 2045922178 * -977807406 + -954.4380756623365 + -371.06282230562977 * -124.70186551116558 - -37.091194823477736 / 1096184275 - -566.4026277333421 - -1907005875 / -337.26306559427746 * -370.98372516771417 / 804.1364824031295 * 642.2452828225955 - 714.3798682706717 + -1099676236 * 361.69489992027115 * -603.0669008624318 * 558446288;
|
||||
}
|
||||
|
||||
} else {
|
||||
599.401496172256 - -387.4840081129938 * -763.9956070136013 * 722.5345821947142 - -1034328614 + 2127623837 + -851448378 * -95440251 + -44.14312881851856 * 1872631211 / -2068603302 - 532.281741255016 / 662.7767897491049 -> std_output;
|
||||
778.2414475975663 + -246.94912879662786 - 556.9079732033667 - 378.4116972430704 - -398186835 + 1970458292 - -163274195 - -1050874371 * -243.05102327852637 / 862.1839117742127 + 135547382 / -735.8663865379579 + -510222204 - 165114045 -> std_output;
|
||||
} 2055142209 * 2069786969 * -703499419 / -126.61661900436559 * 1415422018 - 857.3386156072938 / 53053599 + -514.4704123122194 * 951.0885320391471 + -1369438243 + 1369294679 * -128641707 - -812.3950667732 + 1122457328 / -992723079 * -720.0483215219133 + -523957124 + -682.0394956908957 + -469.0640747664477 / -718788423 * -1606275126 + -514820525 + -784.3743580010123 / -657.6413034903787 - -1351428696 / 653376483 + -1432509677 + 747.7036270766223 -> std_output;
|
||||
var integer fUTlRFg = -219784109 * -625144745 + -240.1341194442872 + 571877735 / 1883941814 / -1518051141 * 779.2708933809954 / 236.88032639880612 - -353.72231497568646 / -750.7094163573447 - -863.7203855413956 / 135926877 / 1410623312 - -306218439 + -624.0017747782936 / 1627784591 + 990.7092168889205 + 771.1475872492704 - -796532086 - 805.4412882375032 / 566.7033277965922;
|
||||
138470068 * -787722530 -> std_output;
|
||||
eVojZ = -228.76897349663227 + 1706284925 / -1365400927 * 2089200757 * -556.9205954450433 + 884.0285193824252 / 962039171;
|
||||
fUTlRFg = 876.514675429825 + -9383281 * 200168280;
|
||||
fUTlRFg = -329.1975402345639 * 1309083387 + -644383917 - -188771962 / 1066873586 + 863.9308095916722 + 732334315 * 420.774059055429 * -171348803 / -695.6113261290504;
|
||||
fUTlRFg = 964.7652640601209 * 269.17130953801825 / 688274916 * -942955884 + -164.87941085784064 - -1345630667 + -872.2338568680212 * 431802185 + -584.3978021993084 * -992436806 / 370.7147743637431 + -377.4216991517603 - -888.5888411000134 * -591.060696543438 + 1891446439 * 852.0862404848533 + -1476764124 - 535963845 / -2003867992 + 865.9109284780616 - 574206851 + 817.7619038385626 + 545.4644351220518 * 27.824888953971595 - 1152580383 / 1081115273 * 765.379188066963;
|
||||
-126.73269537168676 + 995.270214912129 + 929854654 + 947.8864996589368 + -467.0123438569183 * 853.3810706267416 / 524.1339236107876 + -857133700 - 689.6635666815407 * 928.8385512198722 + 634612493 + 1630777740 + 1162810686 + 586.4679522044237 - -450.3989737440363 / 1606493101 * -543.2171615869454 * 352.65661552690335 + -712.5021016419462 + 588.9595440034716 - 1845300403 - 368046353 -> std_output;
|
||||
var integer CWx = 134.11479741744188 - -1280135401 / 331.0394124789493 * 1647597727 * 965.0850301073392 * 918798106 / -685.9509946777312;
|
||||
fUTlRFg = 1591222359 * 521146310 - -421534436 * 667.7894774805116 - 2090576455 - -1044766254 - 450.99904713134333 - -83.55909053167409 + 873315880 - 908.8872694945132;
|
||||
CWx = -1836946070;
|
||||
CWx = -934.9645268884548 - -724720502 * -155893278 + -57141171 * -658.2453009999494 - -420.47529764302794 - 1136780102 * 931757143 * 2042578190 * -368.27886088954415 - 692.0332801419077;
|
||||
CWx = 1577139216 * -1901876067 - -593.231600695424 - -741.900646867915 - 230.53777341525256 + -902.6549773472981 + -1556594294 * -2073590843 + 34822081;
|
||||
828359790 - -500.38437429809824 * 912.6929709347489 + 112.70515872007695 * 1477946151 * 135.40917571693194 / -812.5140756792888 + 863.3395885680484 / 434.36612945496245 * 758333367 * 838.2066280372571 + 614.0156461100582 * -241.56274390176225 -> std_output;
|
||||
987.9152686649254 / 999.2206473334998 * -1323955118 + 1739030400 * 1318544788 + 200938309 * 593.7705091263128 + 224845024 * -264.8978954256644 - 451.11017867322244 / 1697709248 + 485.418248821376 + 991689915 + 318.70960351416716 * 1553275086 * 574.0498929137661 + -1458965295 * -433170454 / 177.68852199825437 - -2064504071 * 147.16257483238337 / 793.7781591863868 -> std_output;
|
||||
-1017822703 -> std_output;
|
||||
CWx = 43.33833201892526 + -889211957 + 1721616402 * -984.2381460113716 / 415002455 + 689.6237052263725 * -1404634541 * 714639929 + 117.42796960769351 / -1143031110 / 639.7804108202779 * -1401536188 - -32536367 / -805.6139894868215 * 1890140499 + 369.7905444284836 + 1392192292;
|
||||
830670376 + -713.8871541176994 + -677.9345602060165 - 2071714154 / 176.927383886062 / 1763837241 + -2036634752 - -527.7683030597032 + -373.20040945483095 - 832.217002888972 / -307.8300909965874 + -1438570492 * -2007632972 - 426.2847323452538 * -1923261819 + 40.01830556313348 -> std_output;
|
||||
} -274.3199926710953 -> std_output;
|
||||
eVojZ = -994653201 * 1778765416 * 1676099408 + 1269346637 * -602.9121893511574 + -723967410 / 79470705 / -798.8014251415123 / -1763474924;
|
||||
-981565595 -> std_output;
|
||||
const integer YJWv = 549539131 * 1846885606 + -293.79489331576417 * -745.6163583468278 + 420373439 * -1989056284 * -2016256380 * 1852931296 * -670717632 + 600762132 - 163.1773555463401 + -844.1650717724924 * 539.6537551418069 - -682.3666322901704 + 1680765228 * -801.9918616745596;
|
||||
var integer ATuPSFm = 378.86335644974633;
|
||||
492.0272896776537 / 1288298521 - -689159756 * -773.9194868743284 + 293.4072536320921 - -452053396 + 1895315707 / 208296562 * -740.6172866842362 * 602.0096160692258 + 424.34532225237194 * 1155789034 + 568.3742183800321 + -1640994037 + -255.15196004825123 + -984.2221266264519 - -2139093315 - 763.0576300615699 + -67.4155445464595 / -394.30303017433823 / -1856376566 * 1817240865 - -1442899851 - -186.0739160468512 -> std_output;
|
||||
eVojZ = 439.13991877986814 / -835.522450363249 - 1366300369 + 232.3123816343309 * 1580822275 - -1015425747 + 335.5927058065556 - -811.8985948775957 * 1768839764 / 671939846 * 664.4693020149825 + -677325369 / 469.99291615911443 * -193.07996985547572;
|
||||
} else {
|
||||
eVojZ = -34.06765799614254 / -564580211 / -2042877945 * -1546933971 - -134.45114064620168 + -875330081 + -1774690636 + -293.97390985421043 * 151.72322713742233 * 625.6755565970943 - -1243580334 + 323.74582656218286 * 507.9568638688852 + 874.9524792993493 + 2111075675 + -186467993 - -953.7549224719066 * -681137091 - 999.8679699122463 / 706.4944279445642 / 763.7594017250062;
|
||||
eVojZ = 250.5696319073204 / -718.3176705152432 * -2027147715 / 465852948 + -54136718 / 951.7966661786586 + -870.287933200838 * 769.8368577242802;
|
||||
eVojZ = -277.93102248010507 + 905.6973569301183 - 4278535;
|
||||
616.7462707832344 * -28.70180106488101 * 194.09348514813178 - -821902556 - 69.77033788621225 / 517.8931965753925 * -431.5448809064226 + 402.78515027381536 + -766310713 + -473.3286925476465 - 203310067 + 93.16593777033063 - 1465304646 + 584.67934950731 -> std_output;
|
||||
-713676522 + -1962852770 - -760987705 - 1912190839 * -110060926 * -91958178 - 430173857 * -2127345363 + 538.0876821833092 * -1505362808 - 511.2647807161575 + -134.55339965195412 * 758.6014703154628 * -758.4694778593495 + -1859418717 + -241439884 * 34.22524438051846 / -930.9330709079602 - -770.3940747640619 + -610694188 + 720.8390648326886 - 402.72461795127015 * 394311128 * -697.7062312616642 - 608311616 * 835.5763743039208 -> std_output;
|
||||
var integer DkyytOAvl = 223783350;
|
||||
eVojZ = -388.5677121036513 * -1455929424 - -109.39897486013763 / -1941040279 + 647176043 / -573.0051093648341 - -454034641 - -1030363134 / -539460881 * 775.416244040513 / -757.0085857609623 - -1457821843 + -223.06212598319644 + 963923364 * -645364183 + 921454348 / 1928497194 + -708.8493428964725 / -831.2911441770054 / 527595380;
|
||||
} -820.6751118933182 -> std_output;
|
||||
-825.3648682375505 * -256.92463855526705 + -419828420 / 1570314206 - 202695829 - 678369533 / 1111559439 - 691.272896100963 * 2009930436 / 612.3297158892699 + 843.2246635136105 - 179.8790733582673 * -705.1765328511601 + 224966182 + -633.8351751148818 - -516.7929683547659 + -278589313 + -281660192 * 136.8564237861649 / -1301400310 + 103.2327564947625 - -68.7123402034266 * -44242055 - 1127716635 + -655.2942811599903 * 885.5128425295841 + -182354209 - -1673772927 -> std_output;
|
||||
} -1111373604 + 2136224456 * 409.2328555785457 / -1335654881 * 2008487191 * 184.79028089026724 + 307904381 - -974930243 - 410085544 + 104302868 * -455401943 / 232.94311768142666 * 1841984555 * -721.9503215816283 -> std_output;
|
||||
return 0;
|
||||
}
|
||||
|
||||
procedure Q(integer wqMUmOd) returns integer {
|
||||
return 674.9884725497111 / -580.7938408940772 + -928.2353102558585 - -150988530;
|
||||
var integer ozWgOiR = -1742282660 + 830938721 * -907095793 * 1611553646 / 917.8887667448075 * 1151541325 - 669072349 - -1559275364 * -549.8181273465939 * -209.220878058523 + -378.4261181377309 + 325644912 - -439.73133989787414 * -860.8387705100678 * 1381533220 + -503324480 / 920.9513100392446 - -421.1846642873313 * 629.0563505856455 * -953.1044426648443;
|
||||
}
|
||||
|
||||
function dBKcpUaKyw(integer NZ) returns integer {
|
||||
return 564.4846542690909;
|
||||
}
|
||||
|
||||
function xKotSMxj(integer b) returns integer {
|
||||
const integer Br = 740.3385424126773;
|
||||
868.5635971543588 / 1575822464 / -278.36948131904626 / -214913196 * 1167713979 - 628.3730814100811 / -608.2829045398157 * 880.6285261454818 / 1283836581 + 832051635 + 131.6242198367404 - -920.2632382379359 + -2058790908 + -1811702746 -> std_output;
|
||||
-1401053441 + -196.50525692557073 + 773.6737679806374 - 857347452 + -1706656031 * -124.01486623597941 * 1160853156 + -743.2970646732196 / -306974193 * 276.22527142622675 / -1729504879 + 748.5627756895256 -> std_output;
|
||||
var integer OXjVf = -479.3220134438636 + -907.6332618512926 / -622.4425169484134 * -521.0029854853376 * -302.4361761674868 + 1726095326 + 99.72904653591945 / 1126766554 + 1424571296 * 819013981 / 1979774970 + -473.1943973926043 + 338.18321603323807 / -1519046589 - 280.09969703480897 * -252.03014443879647 - 560.9629142134156 + -133.98807370987777 / -149346910 + 854592895;
|
||||
return -1753095590 * 1138580112 + 2140019127 / -2139075719 + 376748624 * 850793059 / 164727522 + 1660551719 / 714.0211942243998 * 346.57561341102246 + 975463652 + 806.7623341097076 / -850496356 - 863225509;
|
||||
-167.72886489944642 -> std_output;
|
||||
-963.5702557407412 + -1530409317 / -1796459804 - -135579709 + -356.62661482151407 + 674.4627058575979 + 87.93076346866565 / 46.795261967389706 - -1955759691 / -725.937620830259 + 6062139 * 1795956299 + -8.693106312558598 - 25.72182231033912 + 251.30990545351528 * -116560297 * -273.2220226646251 - -722.8447818578622 -> std_output;
|
||||
OXjVf = -2009471008 + 80920987 + -1993174908 * -223540337 + 709.1696310920092 / -301.382235019729 + 153.76173201521374 - -1730942745 - 492.7698340026277 / -954.629445889479 - -692659976 / -258.00826310406615 - 1385641120 * -879.2247079622459 / -487.47499912317573 + -1145569988 * -771.7603106863551 - 55.33457874391593 / 370.04374695442857 - 120.37191044541078;
|
||||
}
|
||||
|
||||
function HMxZVDYikS(integer BKKalQKjaD, integer A, integer cw, integer igsD, integer ZG, integer BknMbZ) returns integer {
|
||||
-1349150660 - 958.7062678748748 * -608362533 + 420443001 * 490.2557701953765 - 579.8476267988453 - 683915230 / 643.0360400988811 * 7.725742060699304 + -336.473102647328 -> std_output;
|
||||
var integer nYv = 165147040;
|
||||
344.2976821758132 + 917.3343524597647 - 1752725324 * -897898705 + -683956633 + 249142263 / 565630840 * -462.75225314395027 + 2088261328 + -171.6830289783751 - 1117644759 * 237215125 * 2048030097 - 87.96850519541522 - 1737774523 * -143.43565623986376 - 76.03501027901075 - 94.19728082571305 + -989767340 / -874.1449200475204 + -975957200 - -936.3270006812494 / -969.9100552783228 + 654.3310569952812 -> std_output;
|
||||
nYv = -8.27926455190277 / -723.3402139789018 + -483.9709767604867 - 490974634 + -964.4827681384457 - -1592074042 + -950.2490400654948 / -764.3689271492407 * -263.2563542495028 * -780.5716206926184 * -9.78552020292534 / -1706928434 - -483.33687352446054 + 679628629 * 978.7116910981442 + 131120706 / 894.8919259559232 + 564.4577905547692 * -704.3050764044369;
|
||||
return 1303262584 / -1551577354 - 71110632 * -265.12797490019227 * 1839806314 - -899.900727018616 / -148.33047542288602 - -451.91417205575067 / -154.96235718793014 - 164376540 * 1281486904 + 183.97108688833328 * 110.99804640456023 - 1199214466 / 590.2102144255889 * 1366797346 * -568914470;
|
||||
380.81146978406537 + 284.0874848329497 * -151280742 + 974.6616734337294 / 325948355 + 251.61592881780462 - 362.6400350231181 / 111663974 * 607.9577713777314 * -861.0082164902186 * 125999185 - -1991820880 + -388.60399020844636 + -579.1555292314547 * -676.5307481559499 * 1375036720 - 45462954 * -315.83040165021316 + 207.93516815455632 * -1961845294 / 717.8477703855183 + 330.23969256871055 / -879.3446317294282 - 560.8897548397472 -> std_output;
|
||||
nYv = 569.7200532334866 - 927868145 * -679.0215684920573 + 836622810 / -647335803 - -152865134 + 798.1907806231975 * 290205469 + -626813898 * 1546264921 * -367060465;
|
||||
1016539365 -> std_output;
|
||||
nYv = 371.00181904330725 * -13.654699817690243 + 301.67950699668086 + -468541796 / 762.6168350884193 + 968.4613338054376 * -2.981746487211467 + -467.29507156951615 + -53.82166256618075 + -1771841094 * 1453383776 * -927.8326131468948 * -865.5363213966887 * -2144475557 + -1854541676 * -80.65800361702941;
|
||||
}
|
||||
|
||||
procedure nJPT(integer zdErQ, integer mmquXa, integer qUYI, integer OdFJhuaPP, integer qnl, integer xrkLx) returns integer {
|
||||
440.3668751320961 * 1240504741 + 1012509596 - -351.04455511394735 - 1830723954 * -1442857967 * 663.465526833638 + -252.3632373478224 + -139.25516381158332 / -1671009202 -> std_output;
|
||||
return 870.5159911105991;
|
||||
-138.21784791922335 -> std_output;
|
||||
var integer kPdb = -1964184702 + -128335825 - -745.9942357188831 - 1766020656 + 879218892 * -941.3818487558578 + 993.5582227606326 * 1933522285 + 314.203938984082 / 1315565426 + 113392243 / 804.3606387647349 * 409.0071592629604 + 1182774182 / 181.91861812344632 - -818.6116779465851;
|
||||
1344459657 -> std_output;
|
||||
kPdb = 1056709477 / 1159743357 / 1540397091 * 1224186147 + -79424712 + -65.49187478076294 * -1805823576 * 520.7282403019426 + 187.36449820115217 - 2107456822 + -368.9302112273118 + 1620758505 / 343.3057579426527 * 701.6500963048634 / 460741210 * -53.04032576748523 / -231.92511667534382 + 1107344273 + 1495270415 - 404.8312487407777 + 928226045;
|
||||
-24.337669709978627 + 196.24276889795146 * 1676003593 - -1415038387 * 327063715 * 235.85849779469936 + 497779200 + 196.02566568579846 + 463.02656761495655 + 483533490 * -67.30227392628206 * 276704078 * -2024165624 * -69364849 * -316.66020000873357 + 1673929743 / 2107343384 -> std_output;
|
||||
var integer spN = -583.3514618984705 * 935.3687840856294 / 529887663 / 1220430132 * -1016910579 + 1078738159 * -429.6462148808695 + -49448161 * 201.90981893832577 - -735566777;
|
||||
-360.53158054986636 + -277.4752435058467 -> std_output;
|
||||
}
|
||||
|
|
@ -50,7 +50,7 @@ if __name__ == '__main__':
|
|||
parser = argparse.ArgumentParser(
|
||||
description='Procedurally generate a test case for Gazprea'
|
||||
)
|
||||
parser.add_argument('-b', '--batch_size', type=int, required=False,
|
||||
parser.add_argument('-b', '--batch_size', type=int, required=False, default=1,
|
||||
help="generate BATCH cases (fuzzer/source/nameX.in, /instream/..., /outputs/...)")
|
||||
parser.add_argument('--seed', type=int, required=False, action="store",
|
||||
help="rng seed")
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
import concurrent.futures
|
||||
import os
|
||||
import sys
|
||||
import unittest
|
||||
from contextlib import redirect_stdout
|
||||
|
@ -25,7 +27,7 @@ class TestCorrectness(unittest.TestCase):
|
|||
def test_assignment(self):
|
||||
self.ast_gen.ast = ET.Element("block")
|
||||
self.ast_gen.current_ast_element = self.ast_gen.ast
|
||||
self.ast_gen.generate_declaration()
|
||||
self.ast_gen.generate_declaration(mut='var')
|
||||
self.ast_gen.generate_assignment()
|
||||
|
||||
self.python_unparser.xml = self.ast_gen.ast
|
||||
|
@ -115,18 +117,19 @@ class TestCorrectness(unittest.TestCase):
|
|||
self.fail(e)
|
||||
|
||||
def test_loop(self):
|
||||
self.ast_gen.ast = ET.Element("block")
|
||||
self.ast_gen.current_ast_element = self.ast_gen.ast
|
||||
self.ast_gen.generate_loop()
|
||||
for i in range(1000):
|
||||
self.ast_gen.ast = ET.Element("block")
|
||||
self.ast_gen.current_ast_element = self.ast_gen.ast
|
||||
self.ast_gen.generate_loop()
|
||||
|
||||
self.python_unparser.xml = self.ast_gen.ast
|
||||
self.python_unparser.unparse()
|
||||
self.python_unparser.xml = self.ast_gen.ast
|
||||
self.python_unparser.unparse()
|
||||
|
||||
try:
|
||||
exec(self.python_unparser.source)
|
||||
except Exception as e:
|
||||
print(self.python_unparser.source)
|
||||
self.fail(e)
|
||||
try:
|
||||
compile(self.python_unparser.source, "beeeans", "exec")
|
||||
except Exception as e:
|
||||
print(self.python_unparser.source)
|
||||
self.fail(e)
|
||||
|
||||
def test_routine(self):
|
||||
self.ast_gen.ast = ET.Element("block")
|
||||
|
|
Loading…
Reference in a new issue