Let's check the variables that are read by B.
This is the variable C and the variable quote.
Lets first check C. Where is C being written?
C is being assigned here in this for statement.
Therefore, this statement indeed is what B is dependent upon.
Next one down here.
Here we have C and quote again, but they are only being read and not written.
Therefore, these do not influence the data at B.
Down here we have quote equals not quote. This is obvious.
Quote is being set, and therefore we have a data dependency.
Finally here, we have out equals out plus C.
Here the out variable is being written, but nothing in here reads the out variable.
Therefore, there is no data dependency.
Bが読み込む変数をチェックしましょう
これが変数cと変数quoteです
まず変数cを見ます
変数cはどこで書き込まれたのでしょう?
変数cはここでこの命令文に指定されています
したがってこの命令文にBが依存しているのです
次はここにあります
この変数cと変数quoteは読み込まれますが
書き込まれません
つまりこれはBのデータに影響を与えません
ここにquote=not quoteがあります
変数quoteが設定されています
したがってデータ依存関係があります
最後にout=out+c です
この変数outは書き込まれていますが
読み込むものがここには何もありません
ですからデータ依存関係はありません