|
| 1 | +<?xml version="1.0"?> |
| 2 | +<flowgorithm fileversion="2.11"> |
| 3 | + <attributes> |
| 4 | + <attribute name="name" value="All Flowgorithm elements"/> |
| 5 | + <attribute name="authors" value="Andrea Vallorani"/> |
| 6 | + <attribute name="about" value="Base test case"/> |
| 7 | + <attribute name="saved" value="2019-04-06 17.55.45 "/> |
| 8 | + <attribute name="created" value="YW5kcmU7REVTS1RPUC1TNFFIVENJOzIwMTktMDItMTc7IjA0LjI4LjI4ICI7Mjc5NA=="/> |
| 9 | + <attribute name="edited" value="YW5kcmU7REVTS1RPUC1TNFFIVENJOzIwMTktMDItMTc7IjA0LjI4LjQ1ICI7MTsyOTAx"/> |
| 10 | + </attributes> |
| 11 | + <function name="Main" type="None" variable=""> |
| 12 | + <parameters/> |
| 13 | + <body> |
| 14 | + <declare name="N,N2,N3,N4,N5" type="Integer" array="False" size=""/> |
| 15 | + <declare name="S" type="String" array="False" size=""/> |
| 16 | + <declare name="B" type="Boolean" array="False" size=""/> |
| 17 | + <declare name="A" type="Real" array="True" size="10"/> |
| 18 | + <input variable="N"/> |
| 19 | + <output expression=""Text line " & N" newline="True"/> |
| 20 | + <assign variable="N" expression="R"/> |
| 21 | + <call expression="Selections()"/> |
| 22 | + </body> |
| 23 | + </function> |
| 24 | + <function name="Selections" type="None" variable=""> |
| 25 | + <parameters/> |
| 26 | + <body> |
| 27 | + <if expression="condition"> |
| 28 | + <then> |
| 29 | + <more/> |
| 30 | + </then> |
| 31 | + <else> |
| 32 | + <more/> |
| 33 | + </else> |
| 34 | + </if> |
| 35 | + <if expression="condition"> |
| 36 | + <then> |
| 37 | + <more/> |
| 38 | + </then> |
| 39 | + <else/> |
| 40 | + </if> |
| 41 | + <if expression="condition"> |
| 42 | + <then/> |
| 43 | + <else> |
| 44 | + <more/> |
| 45 | + </else> |
| 46 | + </if> |
| 47 | + </body> |
| 48 | + </function> |
| 49 | + <function name="Iteractions" type="Integer" variable="P1"> |
| 50 | + <parameters> |
| 51 | + <parameter name="P1" type="Integer" array="False"/> |
| 52 | + </parameters> |
| 53 | + <body> |
| 54 | + <while expression="condition"> |
| 55 | + <more/> |
| 56 | + </while> |
| 57 | + <do expression="condition"> |
| 58 | + <more/> |
| 59 | + </do> |
| 60 | + <for variable="I" start="0" end="N" step="1"> |
| 61 | + <more/> |
| 62 | + </for> |
| 63 | + <while expression="condition"> |
| 64 | + </while> |
| 65 | + </body> |
| 66 | + </function> |
| 67 | + <function name="ComplexConditions" type="Real" variable="P1"> |
| 68 | + <parameters> |
| 69 | + <parameter name="P1" type="Real" array="False"/> |
| 70 | + <parameter name="P2" type="Real" array="False"/> |
| 71 | + </parameters> |
| 72 | + <body> |
| 73 | + <if expression="part1 and part2 or part3"> |
| 74 | + <then> |
| 75 | + <more/> |
| 76 | + </then> |
| 77 | + <else/> |
| 78 | + </if> |
| 79 | + <while expression="part1 && (part2 || part3) && (part4 || part5 || part6)"> |
| 80 | + <more/> |
| 81 | + </while> |
| 82 | + <do expression="part1 && (part2 || part3) && (part4 || part5 || part6)"> |
| 83 | + <more/> |
| 84 | + </do> |
| 85 | + </body> |
| 86 | + </function> |
| 87 | +</flowgorithm> |
0 commit comments