{"id":20780004,"url":"https://github.com/sbu-fsl/metis","last_synced_at":"2025-04-30T20:05:26.046Z","repository":{"id":213421310,"uuid":"267479297","full_name":"sbu-fsl/Metis","owner":"sbu-fsl","description":"Metis: File System Model Checking via Versatile Input and State Exploration (FAST '24)","archived":false,"fork":false,"pushed_at":"2025-03-18T02:53:51.000Z","size":5271,"stargazers_count":12,"open_issues_count":5,"forks_count":3,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-30T20:05:23.901Z","etag":null,"topics":["filesystem","model-checking"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sbu-fsl.png","metadata":{"files":{"readme":"README-others.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-05-28T02:59:16.000Z","updated_at":"2025-03-18T02:53:54.000Z","dependencies_parsed_at":"2024-01-04T06:31:56.721Z","dependency_job_id":"20f191e7-82ff-4b2b-a0fa-e5297248abaf","html_url":"https://github.com/sbu-fsl/Metis","commit_stats":null,"previous_names":["sbu-fsl/metis"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbu-fsl%2FMetis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbu-fsl%2FMetis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbu-fsl%2FMetis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbu-fsl%2FMetis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sbu-fsl","download_url":"https://codeload.github.com/sbu-fsl/Metis/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251774894,"owners_count":21641731,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["filesystem","model-checking"],"created_at":"2024-11-17T13:31:11.855Z","updated_at":"2025-04-30T20:05:26.018Z","avatar_url":"https://github.com/sbu-fsl.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Other Components:\n\n### example\n\nA simple C program that demonstrates running a sequence of I/O test\noperations using multiple threads/processes.\n\nUse `make; ./test` to run this test program.\n\n### promela-demo\n\nA demo Promela model that runs a series of I/O ops on both TFS\nand RFS non-deterministically and compare the behavior of them. We\nactually don't care about whether the operations succeed or fail, but\nwe check if the behavior (e.g. return value [except open()], error code,\nfile (non)existence and file content) on the two file systems are equal.\nAhe test model will abort if there is a discrepancy of behavior between\nTFS and RFS.\n\nUse `make run` to run the test model.\n\nThis folder also contains many other experiments and demos that play\nwith promela and Spin.\n\n### mcl-demo\n\nA file system model checker written totally in C++, based on the model\nchecker that is used by eXplode project (Junfeng Yang, et al), called\nMCL/CMC.\n\nWe are not currently developing it further because CMC is too old and not\nwell maintained as a mature product.\n\n### python-demo\n\nA python program written by Haolin Yu that tries to detect non-deterministic\n`if-fi` statements in Promela code that could be translated from ambiguous\nNFS RFC specs.\n\n### common\n\nCommon code that will be use all other projects in this repo.\n\n    * `errnoname.c`: Translate errno to its macro name\n    * `nanotiming.c`: Timing utility functions\n\n### include\n\n    * `common_types.h`\n    * `errnoname.h`\n    * `nanotiming.h`\n    * `path_utils.h`\n\n## Common helper functions\n\n### Errno conversion\n\n```c\n// #include \"errnoname.h\"\nchar const *errnoname(int errno_);\n```\n\nConvert the error code number into its macro name. For example, `2` will be\nconverted to `\"ENOENT\"`.\n\n### Timing and benchmarking\n\n#### 1. Get current time in nanosecond precision\n\n```c\n// #include \"nanotiming.h\"\nvoid current_utc_time(struct timespec *ts);\n```\n\n`struct timespec` is in the following form:\n\n```c\nstruct timespec {\n    time_t tv_sec;\n    long tv_nsec;\n};\n```\n\n### 2. Calculate the difference of two timespecs\n\n```c\n// #include \"nanotiming.h\"\nvoid timediff(struct timespec *res, struct timespec *end, struct timespec *start);\n```\n\n### 3. Benchmarking\n\n```c\n// #include \"nanotiming.h\"\nstruct timespec benchmark(int (*func)(void *), void *arg);\nstruct timespec benchmark_mt(int (*func)(void *), void *arg, unsigned int times);\n```\n\n`benchmark` will run `func(arg)` once and return the execution time.\n`benchmark_mt` will run `func(arg)` `times` times and return the average\nexecution time.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsbu-fsl%2Fmetis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsbu-fsl%2Fmetis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsbu-fsl%2Fmetis/lists"}