Skip to content
Tcl Source Code Artifact [c6a93ca484]
Login

Artifact [c6a93ca484]

Artifact c6a93ca4849b3e8b2625a87b6729d598de1579ba8075e05df4ec6f7de3e3c4d0:


== formes
$s + $x*$x                               pure 1 why {} statements 1 reads {s x} writes {} carried {} temps {} folds {} conditional {} funcs {}
s = $s + $x*$x                           pure 1 why {} statements 1 reads x writes s carried s temps {} folds s conditional {} funcs {}
s = $s + $x*$x; m = max($m, $x)          pure 1 why {} statements 2 reads x writes {s m} carried {s m} temps {} folds s conditional {} funcs max
d = $x - 1; s = $s + $d*$d               pure 1 why {} statements 2 reads x writes {d s} carried s temps d folds s conditional {} funcs {}
s = ($s + $x)                            pure 1 why {} statements 1 reads x writes s carried s temps {} folds s conditional {} funcs {}
s = $x + $s                              pure 1 why {} statements 1 reads x writes s carried s temps {} folds {} conditional {} funcs {}
s = $s - $x                              pure 1 why {} statements 1 reads x writes s carried s temps {} folds {} conditional {} funcs {}
s = $s + $s*$x                           pure 1 why {} statements 1 reads x writes s carried s temps {} folds {} conditional {} funcs {}
s = $s + $x; s = $s + $y                 pure 1 why {} statements 2 reads {x y} writes s carried s temps {} folds s conditional {} funcs {}
s = $s + $x; t = $t + $s                 pure 1 why {} statements 2 reads x writes {s t} carried {s t} temps {} folds t conditional {} funcs {}
a = (b = $x + 1) * 2                     pure 1 why {} statements 1 reads x writes {a b} carried {} temps {a b} folds {} conditional {} funcs {}
c = $x > 0 ? $c + 1 : $c                 pure 1 why {} statements 1 reads x writes c carried c temps {} folds {} conditional {} funcs {}
$x > 0 ? (p = $p + $x) : (n = $n + $x)   pure 1 why {} statements 1 reads x writes {p n} carried {p n} temps {} folds {} conditional {p n} funcs {}
$x > 0 && (c = $c + 1)                   pure 1 why {} statements 1 reads x writes c carried c temps {} folds {} conditional c funcs {}
m = $x; m = max($m, $y)                  pure 1 why {} statements 2 reads {x y} writes m carried {} temps m folds {} conditional {} funcs max
s = $s + sqrt($x) + hypot($x, $y)        pure 1 why {} statements 1 reads {x y} writes s carried s temps {} folds {} conditional {} funcs {sqrt hypot}
== refus et leur raison
s = $s + [llength $L]                    0 {a command substitution [...]}
$a eq "x"                                0 {a string or list operator}
s = $s + $a(1)                           0 {a variable that is not a simple scalar}
s = $s + $ns::v                          0 {a variable that is not a simple scalar}
(a, b) = [list 1 2]                      0 {an assignment to a tuple or a declaration}
x is int                                 0 {a type test (is)}
s = $s + "abc"                           0 {a literal that is not a number}
s = $s + rand()                          0 {a function outside the compiled set}
s = $s + $x << 2                         0 {an operator outside the compiled set}
$x in {1 2}                              0 {a string or list operator}
s = $s +                                 ERREUR missing operand at _@_
in expression "s = $s +_@_"
== accord avec l'analyseur de type map, au hasard
1500 expressions, 410 pures, 0 écarts (74 connus : ${x}, Inf)