A call graph is formed from functions constituting a program 102, a loop (recursive call) in the call graph is detected 103, functions which are contained in the loop are subjected to security measures by a conventional method 108, and functions which are not contained in the loop are executed while converting automatic variable to global variable or static variable 110. プログラムを構成する関数からコールグラフを作り102、コールグラフ中にループ(再帰呼び出し)があることを検出し103、そのループ中に含まれる関数には従来方法によるセキュリティー対策を施し108、そのループに含まれない関数は自動変数をグローバル変数又は静的変数へ変換110して実行する。 - 特許庁