You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			68 lines
		
	
	
		
			3.3 KiB
		
	
	
	
		
			XML
		
	
			
		
		
	
	
			68 lines
		
	
	
		
			3.3 KiB
		
	
	
	
		
			XML
		
	
| <?xml version="1.0"?>
 | |
| <flowgorithm fileversion="3.0">
 | |
|     <attributes>
 | |
|         <attribute name="name" value="benchtest.ts"/>
 | |
|         <attribute name="authors" value="skybl, ezfprg"/>
 | |
|         <attribute name="about" value="test program for transpiler benchmarks"/>
 | |
|         <attribute name="saved" value="2022-10-19 01:17:24 AM"/>
 | |
|         <attribute name="created" value="c2t5Ymw7cG9uZDsyMDIyLTEwLTE5OzAxOjE3OjI0IEFN"/>
 | |
|         <attribute name="edited" value="c2t5Ymw7cG9uZDsyMDIyLTEwLTE5OzAxOjE3OjI0IEFNOzU7Mjk5MQ=="/>
 | |
|     </attributes>
 | |
|     <function name="Main" type="None" variable="">
 | |
|         <parameters/>
 | |
|         <body>
 | |
|             <declare name="a, b" type="Integer" array="False" size=""/>
 | |
|             <assign variable="a" expression="1"/>
 | |
|             <input variable="b"/>
 | |
|             <output expression="a + b" newline="True"/>
 | |
|             <declare name="c" type="Real" array="False" size=""/>
 | |
|             <assign variable="c" expression="20 / ((5 + a) ^ (a + b))"/>
 | |
|             <output expression="c" newline="True"/>
 | |
|             <declare name="f" type="Integer" array="False" size=""/>
 | |
|             <declare name="e" type="Real" array="False" size=""/>
 | |
|             <assign variable="e" expression="1.4"/>
 | |
|             <assign variable="f" expression="2"/>
 | |
|             <declare name="g" type="Real" array="False" size=""/>
 | |
|             <assign variable="g" expression="e / f"/>
 | |
|             <declare name="h" type="Boolean" array="False" size=""/>
 | |
|             <assign variable="h" expression="false"/>
 | |
|             <output expression="" " & e & " / " & f & " = " & g & ", h = " & h" newline="True"/>
 | |
|             <declare name="i" type="String" array="False" size=""/>
 | |
|             <assign variable="i" expression="2 & " hello""/>
 | |
|             <declare name="j" type="String" array="False" size=""/>
 | |
|             <assign variable="j" expression="i & " world""/>
 | |
|             <output expression="j" newline="True"/>
 | |
|             <if expression="a < b">
 | |
|                 <then>
 | |
|                     <output expression=""a is less than b"" newline="True"/>
 | |
|                 </then>
 | |
|                 <else>
 | |
|                     <output expression=""a is more than b"" newline="True"/>
 | |
|                 </else>
 | |
|             </if>
 | |
|             <if expression="true">
 | |
|                 <then>
 | |
|                     <output expression=""single arm"" newline="True"/>
 | |
|                 </then>
 | |
|                 <else>
 | |
|                 </else>
 | |
|             </if>
 | |
|             <declare name="k" type="Integer" array="False" size=""/>
 | |
|             <assign variable="k" expression="0"/>
 | |
|             <while expression="k < 10">
 | |
|                     <output expression="k" newline="True"/>
 | |
|                     <assign variable="k" expression="k + 1"/>
 | |
|             </while>
 | |
|                         <declare name="l" type="Integer" array="False" size=""/>
 | |
|             <assign variable="l" expression="0"/>
 | |
|             <for variable="l" start="0" end="10" direction="inc" step="1">
 | |
|                     <output expression="l" newline="True"/>
 | |
|             </for>
 | |
|             <for variable="l" start="20" end="10" direction="dec" step="2">
 | |
|                     <output expression="l" newline="True"/>
 | |
|             </for>
 | |
| 
 | |
|         </body>
 | |
|     </function>
 | |
| </flowgorithm>
 |