This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ************************************ | |
// Git のコミットグラフのモデル | |
// ************************************ | |
open util/ordering[Time] | |
// ------------------------------------ | |
// グラフの構成要素 | |
// ------------------------------------ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ************************************ | |
// 組み合わせ回路のモデル | |
// ************************************ | |
// ------------------------------------ | |
// 組み合わせ回路の性質 | |
// ------------------------------------ | |
// 回路の構成要素 | |
abstract sig Element { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ************************************ | |
// 群のモデル | |
// ************************************ | |
// ------------------------------------ | |
// 群の公理 | |
// ------------------------------------ | |
// 群の元 | |
sig Element { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
. | |
. | |
. | |
. | |
. | |
. | |
. | |
. | |
. | |
. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
. | |
. | |
. | |
. | |
. | |
. | |
. | |
. | |
. | |
. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
. | |
. | |
. | |
. | |
. | |
. | |
. | |
. | |
. | |
. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ************************************ | |
// 排他制御のモデル | |
// ************************************ | |
// Time シグネチャに全順序構造を導入 | |
open util/ordering [Time] | |
// 時刻を表すシグネチャ | |
sig Time {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ************************************ | |
// 連結リストを用いたキューのモデル | |
// ************************************ | |
module alloy_queue[Value] | |
// ------------------------------------ | |
// 各要素の定義 | |
// ------------------------------------ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ************************************************** | |
// 通信チャネルとしてキューを用いたモデル | |
// ************************************************** | |
open util/ordering[Time] | |
open alloy_queue[Request] | |
sig Time {} // 時刻パラメータ | |
sig Client, Server {} // 通信に参加するクライアントとサーバ | |
sig Request {} // クライアントがサーバに送るメッセージ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Impossibility of the 8-Puzzle | |
* | |
* NOTICE: For full statespace search, run-time option -m230000 needed, e.g. | |
* $ spin -a promela_8puzzle.pml | |
* $ gcc -o pan pan.c | |
* $ ./pan -m230000 | |
*/ | |
#define SPACE 0 |