Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

POC: simple dataflow analysis #690

Draft
wants to merge 5 commits into
base: datev-loon-staging-20222
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5896,6 +5896,22 @@
</node>
<node concept="10P_77" id="4llm6dFyLwd" role="3clF45" />
</node>
<node concept="13i0hz" id="2X44w_B9GQu" role="13h7CS">
<property role="TrG5h" value="getReferenableNode" />
<ref role="13i0hy" to="pbu6:2X44w_B9GfH" resolve="getReferenableNode" />
<node concept="3Tm1VV" id="2X44w_B9GQv" role="1B3o_S" />
<node concept="3clFbS" id="2X44w_B9GQy" role="3clF47">
<node concept="3clFbF" id="2X44w_B9IpB" role="3cqZAp">
<node concept="2OqwBi" id="2X44w_B9IFU" role="3clFbG">
<node concept="13iPFW" id="2X44w_B9IpA" role="2Oq$k0" />
<node concept="3TrEf2" id="2X44w_B9J0A" role="2OqNvi">
<ref role="3Tt5mk" to="w9y2:7kdj6EM4KJZ" resolve="var" />
</node>
</node>
</node>
</node>
<node concept="3Tqbb2" id="2X44w_B9GQz" role="3clF45" />
</node>
</node>
<node concept="13h7C7" id="435Eqf9c0kq">
<property role="3GE5qa" value="expr.nav" />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,210 @@
<?xml version="1.0" encoding="UTF-8"?>
<model ref="r:149c2a80-88c0-44a2-b20a-c6fe769602c8(org.iets3.components.core.dataFlow)">
<persistence version="9" />
<languages>
<use id="7fa12e9c-b949-4976-b4fa-19accbc320b4" name="jetbrains.mps.lang.dataFlow" version="1" />
<devkit ref="fbc25dd2-5da4-483a-8b19-70928e1b62d7(jetbrains.mps.devkit.general-purpose)" />
</languages>
<imports>
<import index="w9y2" ref="r:b3786745-c763-4a49-a754-f84e15236f18(org.iets3.components.core.structure)" implicit="true" />
</imports>
<registry>
<language id="f3061a53-9226-4cc5-a443-f952ceaf5816" name="jetbrains.mps.baseLanguage">
<concept id="1197027756228" name="jetbrains.mps.baseLanguage.structure.DotExpression" flags="nn" index="2OqwBi">
<child id="1197027771414" name="operand" index="2Oq$k0" />
<child id="1197027833540" name="operation" index="2OqNvi" />
</concept>
<concept id="1137021947720" name="jetbrains.mps.baseLanguage.structure.ConceptFunction" flags="in" index="2VMwT0">
<child id="1137022507850" name="body" index="2VODD2" />
</concept>
<concept id="1068580123159" name="jetbrains.mps.baseLanguage.structure.IfStatement" flags="nn" index="3clFbJ">
<child id="1068580123160" name="condition" index="3clFbw" />
<child id="1068580123161" name="ifTrue" index="3clFbx" />
</concept>
<concept id="1068580123136" name="jetbrains.mps.baseLanguage.structure.StatementList" flags="sn" stub="5293379017992965193" index="3clFbS">
<child id="1068581517665" name="statement" index="3cqZAp" />
</concept>
</language>
<language id="7fa12e9c-b949-4976-b4fa-19accbc320b4" name="jetbrains.mps.lang.dataFlow">
<concept id="1206442055221" name="jetbrains.mps.lang.dataFlow.structure.DataFlowBuilderDeclaration" flags="ig" index="3_zdsH">
<reference id="1206442096288" name="conceptDeclaration" index="3_znuS" />
<child id="1206442812839" name="builderBlock" index="3_A6iZ" />
</concept>
<concept id="1206442659665" name="jetbrains.mps.lang.dataFlow.structure.BuilderBlock" flags="in" index="3__wT9" />
<concept id="1206442747519" name="jetbrains.mps.lang.dataFlow.structure.NodeParameter" flags="nn" index="3__QtB" />
<concept id="1206443823146" name="jetbrains.mps.lang.dataFlow.structure.EmitReadStatement" flags="nn" index="3_DX4M" />
<concept id="1206444349662" name="jetbrains.mps.lang.dataFlow.structure.EmitWriteStatement" flags="nn" index="3_FXB6">
<child id="1230468250683" name="value" index="1XBRO_" />
</concept>
<concept id="1206444622344" name="jetbrains.mps.lang.dataFlow.structure.BaseEmitVariableStatement" flags="nn" index="3_H0cg">
<child id="1206444629799" name="variable" index="3_H1SZ" />
</concept>
<concept id="1206454052847" name="jetbrains.mps.lang.dataFlow.structure.EmitCodeForStatement" flags="nn" index="3AgYrR">
<child id="1206454079161" name="codeFor" index="3Ah4Yx" />
</concept>
</language>
<language id="7866978e-a0f0-4cc7-81bc-4d213d9375e1" name="jetbrains.mps.lang.smodel">
<concept id="1172008320231" name="jetbrains.mps.lang.smodel.structure.Node_IsNotNullOperation" flags="nn" index="3x8VRR" />
<concept id="1138056143562" name="jetbrains.mps.lang.smodel.structure.SLinkAccess" flags="nn" index="3TrEf2">
<reference id="1138056516764" name="link" index="3Tt5mk" />
</concept>
</language>
<language id="ceab5195-25ea-4f22-9b92-103b95ca8c0c" name="jetbrains.mps.lang.core">
<concept id="1133920641626" name="jetbrains.mps.lang.core.structure.BaseConcept" flags="ng" index="2VYdi">
<property id="1193676396447" name="virtualPackage" index="3GE5qa" />
</concept>
</language>
</registry>
<node concept="3_zdsH" id="1Qni$o5ZZW0">
<property role="3GE5qa" value="components" />
<ref role="3_znuS" to="w9y2:6LfBX8Yi4o1" resolve="Component" />
<node concept="3__wT9" id="1Qni$o5ZZW1" role="3_A6iZ">
<node concept="3clFbS" id="1Qni$o5ZZW2" role="2VODD2">
<node concept="3clFbJ" id="1Qni$o600bL" role="3cqZAp">
<node concept="2OqwBi" id="1Qni$o601Cx" role="3clFbw">
<node concept="2OqwBi" id="1Qni$o600Dn" role="2Oq$k0">
<node concept="3__QtB" id="1Qni$o600ek" role="2Oq$k0" />
<node concept="3TrEf2" id="1Qni$o601rI" role="2OqNvi">
<ref role="3Tt5mk" to="w9y2:1WAg9TyWDtQ" resolve="expttest" />
</node>
</node>
<node concept="3x8VRR" id="1Qni$o601Wr" role="2OqNvi" />
</node>
<node concept="3clFbS" id="1Qni$o600bN" role="3clFbx">
<node concept="3AgYrR" id="1Qni$o602dw" role="3cqZAp">
<node concept="2OqwBi" id="1Qni$o602gN" role="3Ah4Yx">
<node concept="3__QtB" id="1Qni$o602fd" role="2Oq$k0" />
<node concept="3TrEf2" id="1Qni$o602lj" role="2OqNvi">
<ref role="3Tt5mk" to="w9y2:1WAg9TyWDtQ" resolve="expttest" />
</node>
</node>
</node>
</node>
</node>
</node>
</node>
</node>
<node concept="3_zdsH" id="1Qni$o603gu">
<property role="3GE5qa" value="components.iface.param" />
<ref role="3_znuS" to="w9y2:cJpacq6wur" resolve="Parameter" />
<node concept="3__wT9" id="1Qni$o603gv" role="3_A6iZ">
<node concept="3clFbS" id="1Qni$o603gw" role="2VODD2">
<node concept="3AgYrR" id="6ZQeJ8QF3hl" role="3cqZAp">
<node concept="2OqwBi" id="6ZQeJ8QF3hq" role="3Ah4Yx">
<node concept="3__QtB" id="6ZQeJ8QF3hn" role="2Oq$k0" />
<node concept="3TrEf2" id="6ZQeJ8QF88U" role="2OqNvi">
<ref role="3Tt5mk" to="w9y2:cJpacq6wuw" resolve="defaultValue" />
</node>
</node>
</node>
<node concept="3_FXB6" id="6ZQeJ8QF3hy" role="3cqZAp">
<node concept="3__QtB" id="6ZQeJ8QF3h$" role="3_H1SZ" />
<node concept="2OqwBi" id="6ZQeJ8QF3hE" role="1XBRO_">
<node concept="3__QtB" id="6ZQeJ8QF3hB" role="2Oq$k0" />
<node concept="3TrEf2" id="6ZQeJ8QF88X" role="2OqNvi">
<ref role="3Tt5mk" to="w9y2:cJpacq6wuw" resolve="defaultValue" />
</node>
</node>
</node>
</node>
</node>
</node>
<node concept="3_zdsH" id="1Qni$o604hz">
<property role="3GE5qa" value="components.iface.param" />
<ref role="3_znuS" to="w9y2:3NBP8_O5tqM" resolve="ParamRef" />
<node concept="3__wT9" id="1Qni$o604h$" role="3_A6iZ">
<node concept="3clFbS" id="1Qni$o604h_" role="2VODD2">
<node concept="3_DX4M" id="1Qni$o604lC" role="3cqZAp">
<node concept="2OqwBi" id="1Qni$o604Aa" role="3_H1SZ">
<node concept="3__QtB" id="1Qni$o604o9" role="2Oq$k0" />
<node concept="3TrEf2" id="1Qni$o6051n" role="2OqNvi">
<ref role="3Tt5mk" to="w9y2:3NBP8_O5tqN" resolve="param" />
</node>
</node>
</node>
</node>
</node>
</node>
<node concept="3_zdsH" id="1Qni$o6059U">
<property role="3GE5qa" value="components.substructure" />
<ref role="3_znuS" to="w9y2:4UgzZxsF_xB" resolve="ParameterValue" />
<node concept="3__wT9" id="1Qni$o6059V" role="3_A6iZ">
<node concept="3clFbS" id="1Qni$o6059W" role="2VODD2">
<node concept="3_DX4M" id="1Qni$o605ep" role="3cqZAp">
<node concept="2OqwBi" id="1Qni$o605op" role="3_H1SZ">
<node concept="3__QtB" id="1Qni$o605gc" role="2Oq$k0" />
<node concept="3TrEf2" id="1Qni$o605$V" role="2OqNvi">
<ref role="3Tt5mk" to="w9y2:4UgzZxsF_xI" resolve="param" />
</node>
</node>
</node>
<node concept="3AgYrR" id="1Qni$o607TO" role="3cqZAp">
<node concept="2OqwBi" id="1Qni$o607X1" role="3Ah4Yx">
<node concept="3__QtB" id="1Qni$o607WA" role="2Oq$k0" />
<node concept="3TrEf2" id="1Qni$o6080H" role="2OqNvi">
<ref role="3Tt5mk" to="w9y2:4UgzZxsF_xC" resolve="value" />
</node>
</node>
</node>
</node>
</node>
</node>
<node concept="3_zdsH" id="1Qni$o6085I">
<property role="3GE5qa" value="behavior" />
<ref role="3_znuS" to="w9y2:426GYJ1_saM" resolve="PortRefExpr" />
<node concept="3__wT9" id="1Qni$o6085J" role="3_A6iZ">
<node concept="3clFbS" id="1Qni$o6085K" role="2VODD2">
<node concept="3_DX4M" id="1Qni$o608ad" role="3cqZAp">
<node concept="2OqwBi" id="1Qni$o608nn" role="3_H1SZ">
<node concept="3__QtB" id="1Qni$o608bA" role="2Oq$k0" />
<node concept="3TrEf2" id="1Qni$o608Gl" role="2OqNvi">
<ref role="3Tt5mk" to="w9y2:426GYJ1_sL0" resolve="port" />
</node>
</node>
</node>
</node>
</node>
</node>
<node concept="3_zdsH" id="1Qni$o6094z">
<property role="3GE5qa" value="behavior.simple" />
<ref role="3_znuS" to="w9y2:7kdj6EM4KIW" resolve="VarRef" />
<node concept="3__wT9" id="1Qni$o6094$" role="3_A6iZ">
<node concept="3clFbS" id="1Qni$o6094_" role="2VODD2">
<node concept="3_DX4M" id="1Qni$o6098e" role="3cqZAp">
<node concept="2OqwBi" id="1Qni$o609mh" role="3_H1SZ">
<node concept="3__QtB" id="1Qni$o6099x" role="2Oq$k0" />
<node concept="3TrEf2" id="1Qni$o609Hg" role="2OqNvi">
<ref role="3Tt5mk" to="w9y2:7kdj6EM4KJZ" resolve="var" />
</node>
</node>
</node>
</node>
</node>
</node>
<node concept="3_zdsH" id="1Qni$o60aFn">
<property role="3GE5qa" value="behavior.simple" />
<ref role="3_znuS" to="w9y2:7kdj6EM27c1" resolve="Variable" />
<node concept="3__wT9" id="1Qni$o60aFo" role="3_A6iZ">
<node concept="3clFbS" id="1Qni$o60aFp" role="2VODD2">
<node concept="3AgYrR" id="1Qni$o60aHr" role="3cqZAp">
<node concept="2OqwBi" id="1Qni$o60aHs" role="3Ah4Yx">
<node concept="3__QtB" id="1Qni$o60aHt" role="2Oq$k0" />
<node concept="3TrEf2" id="1Qni$o60aHu" role="2OqNvi">
<ref role="3Tt5mk" to="w9y2:7kdj6EM27d6" resolve="init" />
</node>
</node>
</node>
<node concept="3_FXB6" id="1Qni$o60aHv" role="3cqZAp">
<node concept="3__QtB" id="1Qni$o60aHw" role="3_H1SZ" />
<node concept="2OqwBi" id="1Qni$o60aHx" role="1XBRO_">
<node concept="3__QtB" id="1Qni$o60aHy" role="2Oq$k0" />
<node concept="3TrEf2" id="1Qni$o60aHz" role="2OqNvi">
<ref role="3Tt5mk" to="w9y2:7kdj6EM27d6" resolve="init" />
</node>
</node>
</node>
</node>
</node>
</node>
</model>

Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
<language slang="l:3ad5badc-1d9c-461c-b7b1-fa2fcd0a0ae7:jetbrains.mps.lang.context" version="0" />
<language slang="l:ea3159bf-f48e-4720-bde2-86dba75f0d34:jetbrains.mps.lang.context.defs" version="0" />
<language slang="l:ceab5195-25ea-4f22-9b92-103b95ca8c0c:jetbrains.mps.lang.core" version="2" />
<language slang="l:7fa12e9c-b949-4976-b4fa-19accbc320b4:jetbrains.mps.lang.dataFlow" version="1" />
<language slang="l:f4ad079d-bc71-4ffb-9600-9328705cf998:jetbrains.mps.lang.descriptor" version="0" />
<language slang="l:18bc6592-03a6-4e29-a83a-7ff23bde13ba:jetbrains.mps.lang.editor" version="14" />
<language slang="l:b1ab8c10-c118-4755-bf2a-cebab35cf533:jetbrains.mps.lang.editor.tooltips" version="0" />
Expand All @@ -79,6 +80,7 @@
<language slang="l:7866978e-a0f0-4cc7-81bc-4d213d9375e1:jetbrains.mps.lang.smodel" version="19" />
<language slang="l:c72da2b9-7cce-4447-8389-f407dc1158b7:jetbrains.mps.lang.structure" version="9" />
<language slang="l:c7fb639f-be78-4307-89b0-b5959c3fa8c8:jetbrains.mps.lang.text" version="0" />
<language slang="l:b83431fe-5c8f-40bc-8a36-65e25f4dd253:jetbrains.mps.lang.textGen" version="1" />
<language slang="l:9ded098b-ad6a-4657-bfd9-48636cfe8bc3:jetbrains.mps.lang.traceable" version="0" />
<language slang="l:7a5dda62-9140-4668-ab76-d5ed1746f2b2:jetbrains.mps.lang.typesystem" version="5" />
<language slang="l:c9d137c4-3259-44f8-80ff-33ab2b506ee4:jetbrains.mps.lang.util.order" version="0" />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
<?xml version="1.0" encoding="UTF-8"?>
<model ref="r:3e30dd79-fa40-44bd-8c1d-163deeb323f7(org.iets3.core.attributes.dataFlow)">
<persistence version="9" />
<languages>
<use id="7fa12e9c-b949-4976-b4fa-19accbc320b4" name="jetbrains.mps.lang.dataFlow" version="1" />
<devkit ref="fbc25dd2-5da4-483a-8b19-70928e1b62d7(jetbrains.mps.devkit.general-purpose)" />
</languages>
<imports>
<import index="138" ref="r:2c1007f3-e814-47ba-b729-c3ea0297f627(org.iets3.core.attributes.structure)" implicit="true" />
</imports>
<registry>
<language id="f3061a53-9226-4cc5-a443-f952ceaf5816" name="jetbrains.mps.baseLanguage">
<concept id="1197027756228" name="jetbrains.mps.baseLanguage.structure.DotExpression" flags="nn" index="2OqwBi">
<child id="1197027771414" name="operand" index="2Oq$k0" />
<child id="1197027833540" name="operation" index="2OqNvi" />
</concept>
<concept id="1137021947720" name="jetbrains.mps.baseLanguage.structure.ConceptFunction" flags="in" index="2VMwT0">
<child id="1137022507850" name="body" index="2VODD2" />
</concept>
<concept id="1068580123136" name="jetbrains.mps.baseLanguage.structure.StatementList" flags="sn" stub="5293379017992965193" index="3clFbS">
<child id="1068581517665" name="statement" index="3cqZAp" />
</concept>
</language>
<language id="7fa12e9c-b949-4976-b4fa-19accbc320b4" name="jetbrains.mps.lang.dataFlow">
<concept id="1206442055221" name="jetbrains.mps.lang.dataFlow.structure.DataFlowBuilderDeclaration" flags="ig" index="3_zdsH">
<reference id="1206442096288" name="conceptDeclaration" index="3_znuS" />
<child id="1206442812839" name="builderBlock" index="3_A6iZ" />
</concept>
<concept id="1206442659665" name="jetbrains.mps.lang.dataFlow.structure.BuilderBlock" flags="in" index="3__wT9" />
<concept id="1206442747519" name="jetbrains.mps.lang.dataFlow.structure.NodeParameter" flags="nn" index="3__QtB" />
<concept id="1206454052847" name="jetbrains.mps.lang.dataFlow.structure.EmitCodeForStatement" flags="nn" index="3AgYrR">
<child id="1206454079161" name="codeFor" index="3Ah4Yx" />
</concept>
</language>
<language id="7866978e-a0f0-4cc7-81bc-4d213d9375e1" name="jetbrains.mps.lang.smodel">
<concept id="1138056143562" name="jetbrains.mps.lang.smodel.structure.SLinkAccess" flags="nn" index="3TrEf2">
<reference id="1138056516764" name="link" index="3Tt5mk" />
</concept>
</language>
<language id="ceab5195-25ea-4f22-9b92-103b95ca8c0c" name="jetbrains.mps.lang.core">
<concept id="1133920641626" name="jetbrains.mps.lang.core.structure.BaseConcept" flags="ng" index="2VYdi">
<property id="1193676396447" name="virtualPackage" index="3GE5qa" />
</concept>
</language>
</registry>
<node concept="3_zdsH" id="1Qni$o60d94">
<property role="3GE5qa" value="attributes" />
<ref role="3_znuS" to="138:4fgA7QrBOmZ" resolve="IAttributeWithContext" />
<node concept="3__wT9" id="1Qni$o60d95" role="3_A6iZ">
<node concept="3clFbS" id="1Qni$o60d96" role="2VODD2">
<node concept="3AgYrR" id="1Qni$o60dqn" role="3cqZAp">
<node concept="2OqwBi" id="1Qni$o60dAz" role="3Ah4Yx">
<node concept="3__QtB" id="1Qni$o60dtG" role="2Oq$k0" />
<node concept="3TrEf2" id="1Qni$o60dOO" role="2OqNvi">
<ref role="3Tt5mk" to="138:4fgA7QrBOn0" resolve="ctx" />
</node>
</node>
</node>
</node>
</node>
</node>
<node concept="3_zdsH" id="1Qni$o60dWh">
<property role="3GE5qa" value="attributes" />
<ref role="3_znuS" to="138:43MQ47XHP6_" resolve="IExprValueAttribute" />
<node concept="3__wT9" id="1Qni$o60dWi" role="3_A6iZ">
<node concept="3clFbS" id="1Qni$o60dWj" role="2VODD2">
<node concept="3AgYrR" id="1Qni$o60e0K" role="3cqZAp">
<node concept="2OqwBi" id="1Qni$o60ecW" role="3Ah4Yx">
<node concept="3__QtB" id="1Qni$o60e45" role="2Oq$k0" />
<node concept="3TrEf2" id="1Qni$o60erB" role="2OqNvi">
<ref role="3Tt5mk" to="138:43MQ47XHSpR" resolve="value" />
</node>
</node>
</node>
</node>
</node>
</node>
</model>

Loading