-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add feature to parse a string as an input file * Add a webworker for Alt-Ergo * Add a small web example that uses the alt-ergo webworker * Add documentation for the worker and its example * Fix formatter * Add the webworker build in javascript workflow in the ci
- Loading branch information
1 parent
199e0bc
commit 1279bec
Showing
28 changed files
with
2,307 additions
and
47 deletions.
There are no files selected for viewing
This file contains 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,4 +35,9 @@ mlw | |
tmp/ | ||
*.tmp | ||
alt-ergo/tmp/ | ||
_opam | ||
_opam | ||
|
||
# Generated javascript files | ||
alt-ergo.js | ||
alt-ergo-worker.js | ||
www/ |
This file contains 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 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 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 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<!doctype html> | ||
|
||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Alt-Ergo JS</title> | ||
<meta name="description" content="Alt-Ergo Js"> | ||
<meta name="author" content="Alt-Ergo dev team"> | ||
<link rel="stylesheet" href="style.css"> | ||
<!-- ENTRY POINT --> | ||
<script type="text/javascript" src="alt-ergo-main.js"></script> | ||
</head> | ||
|
||
<body> | ||
<div id="main"></div> | ||
</body> | ||
</html> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
// Example of json file that contains a filename and the content of the file | ||
{ "filename": "Try-alt-ergo", | ||
"worker_id": 42, | ||
"content": | ||
"type 'a set\n\nlogic empty : 'a set\nlogic add : 'a , 'a set -> 'a set\n\\logic mem : 'a , 'a set -> prop\n\naxiom mem_empty:\n forall x : 'a.\n not mem(x, empty : 'a set)\n\naxiom mem_add:\n forall x, y : 'a. forall s : 'a set.\n mem(x, add(y, s)) <->\n (x = y or mem(x, s))\n\nlogic is1, is2 : int set\nlogic iss : int set set\n\ngoal g_4:\n is1 = is2 -> \n (not mem(1, add(2+3, empty : int set))) and\n mem (is1, add (is2, iss)) " | ||
} | ||
|
||
// Example of Json file that represent all options that can be set in the worker : | ||
{ | ||
"debug": false, "debug_ac": false, "debug_adt": false, | ||
"debug_arith": false, "debug_arrays": false, "debug_bitv": false, | ||
"debug_cc": false, "debug_combine": false, "debug_constr": false, | ||
"debug_explanations": false, "debug_fm": false, "debug_fpa": 0, | ||
"debug_gc": false, "debug_interpretation": false, "debug_ite": false, | ||
"debug_matching": 0, "debug_sat": false, "debug_split": false, | ||
"debug_sum": false, "debug_triggers": false, "debug_types": false, | ||
"debug_typing": false, "debug_uf": false, "debug_unsat_core": false, | ||
"debug_use": false, "debug_warnings": false, "rule": 0, | ||
"case_split_policy": "AfterTheoryAssume", "enable_adts_cs": false, | ||
"max_split": 0, "replay": false, "replay_all_used_context": false, | ||
"save_used_context": false, "answers_with_loc": false, | ||
"answers_with_loc": false, "frontend": "Legacy", "input_format": "Native", | ||
"infer_input_format": false, "parse_only": false, "parsers": [], | ||
"preludes": [], "type_only": false, "type_smt2": false, | ||
"disable_weaks": false, "enable_assertions": false, "age_bound": 100, | ||
"fm_cross_limit": 100, "steps_bound": 1000, "interpretation": 3, | ||
"model": "MAll", "output_format": "Smtlib2", "infer_output_format": false, | ||
"unsat_core": false, "verbose": false, "greedy": false, | ||
"instanciate_after_backjump": false, "max_multi_triggers_size": 4, | ||
"nb_triggers": 2, "no_ematching": false, "no_user_triggers": false, | ||
"normalize_instances": false, "triggers_var": false, | ||
"arith_matchin": false, "bottom_classes": false, | ||
"cdcl_tableaux_inst": false, "cdcl_tableaux_th": false, | ||
"disable_flat_formulas_simplifiaction": false, "enable_restarts": false, | ||
"minimal_bj": false, "no_backjumping": false, "no_backward": false, | ||
"no_decisions": false, "no_decisions_on": [], "no_sat_learning": false, | ||
"sat_solver": "Tableaux", "tableaux_cdcl": false, "disable_ites": false, | ||
"inline_lets": false, "rewriting": false, "term_like_pp": false, | ||
"disable_adts": false, "no_ac": false, "no_contracongru": false, | ||
"no_fm": false, "no_nla": false, "no_tcp": false, "no_theory": false, | ||
"restricted": false, "tighten_vars": false, "use_fpa": false, | ||
"timers": false, "file": "try-alt-ergo" | ||
} | ||
|
||
// Example of Json file that represent the results from a run of the Worker | ||
{ | ||
"worker_id": 42, "status": { "Unsat": 0 }, | ||
"results": [ "Valid (0.1940) (0 steps) (goal g)", "" ], | ||
"debugs": [ "[Debug][Sat_solver]", "use Tableaux-like solver", "" ], | ||
"model": [ "[all-models] No SAT models found", "" ], | ||
"unsat_core": [ "unsat-core:", "", "", "" ] | ||
"errors": [ "" ], | ||
"warnings": [ "" ], | ||
"statistics": [ [], [] ], | ||
} |
Oops, something went wrong.