We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0312dce commit fbcac10Copy full SHA for fbcac10
4 files changed
powershell/ql/test/library-tests/ssa/explicit.ps1
@@ -0,0 +1,8 @@
1
+$glo_a = 42
2
+$glob_b = $glob_a
3
+
4
+function f() {
5
+ $a = 43
6
+ $b = $a
7
+ return $b
8
+}
powershell/ql/test/library-tests/ssa/parameters.ps1
@@ -0,0 +1,11 @@
+function function-param([int]$n1, [int]$n2) {
+ return $n1 + $n2
+function param-block {
+ param(
+ [int]$a,
+ [int]$b
9
+ )
10
+ return $a + $b
11
powershell/ql/test/library-tests/ssa/ssa.expected
@@ -0,0 +1,2 @@
+| explicit.ps1:1:1:8:2 | <uninitialized> glob_a | explicit.ps1:2:11:2:18 | glob_a |
+| explicit.ps1:5:5:5:7 | a | explicit.ps1:5:5:5:7 | a |
powershell/ql/test/library-tests/ssa/ssa.ql
@@ -0,0 +1,4 @@
+import powershell
+import semmle.code.powershell.dataflow.Ssa
+query predicate definition(Ssa::Definition def, Variable v) { def.getSourceVariable() = v }
0 commit comments