Git Product home page Git Product logo

fault's Introduction

Fault

Fault is a modeling language for building system dynamic models and checking them using a combination of first order logic and probability

Project Status

Pre-alpha.

Install

Fault can be built from source if you like, but the best way to install Fault is by downloading the correct release for your machine.

Once installed the model checker of Fault needs access to a SMT solver, otherwise Fault will default to generating SMT of models only. Microsoft's Z3 is the recommended solver at this time and can be downloaded here

Then in order for Fault to find your solver you need to set two configuration variables

export SOLVERCMD="z3"
export SOLVERARG="-in"

For other install options please see the Fault documentation

Why "Fault"?

It is not possible to completely specify a system. All specifications must decide what parts of the system are in-scope and out-of-scope, and at what level of detail. Many formal specification approaches are designed to prove the system correct and it is very easy for an inexperienced practitioner to write a bad spec that gives a thumbs up to a flawed system.

Instead Fault is designed with the assumption that all systems will fail at some point, under some set of conditions. The name Fault was chosen to emphasize this point for users: Fault models that return no failure points are bad models. The user should keep trying until they've built a model that produces interesting and compelling failure scenarios.

Origin Story

The development Fault is documented in the series "Marianne Writes a Programming Language":

Current Status (9/19/2023)

Pushing a bunch of small patches and bug fixes in the ramp-up to presenting Fault at Strange Loop 2023 \o/

(8/31/2023)

Been doing a lot of work on how model outputs are displayed. Needed to fix how dead branches are filtered first. The default display is now formatted like an event log. Also added a static format that just outputs variable values.

(5/24/2023)

Introducing strings to Fault, plus fixing some bugs in the behavior of imports. Strings in Fault behave like booleans and allow easily readable rules to be defined for the model checker to solve. They are not treated as immutable but haven't yet figured out how I want to syntax to change their state to look yet.

(4/26/2023)

Adding support for indexes (ie accessing historical values in the model) there are some edge cases around branches that need to be worked through.

(4/13/2023)

BREAKING CHANGE. Adding support for altering the initial values of new instances of stocks and flows ended up requiring a lot of fundalmental changes, the big one being separating the initialization of model structs for the logic of a loop. Previously these both lived in the run block (for 2 run{...}) but now the run block has a optional init{} clause where initializations go, leaving the run block with just the steps the happen in the loop. The documentation and example specs have been updated to reflect this new construction.

(3/29/2023)

Been doing a lot of work on improving how Fault is packaged and ultimately released. The Dockerfiles will remain available, but going to be stepping away from Docker as the preferred way to installing Fault in favor of a traditional build and release pipeline.

(2/15/2023)

Pretty substantial rewrite of assert and assumption rule generation. First ditched assumptions as a unique AST node and added an assume flag to AssertionStatements so they could be treated the same. Then modified the order of rules involving infixs and found several logic bugs from the old approach.

Along the way, made changes to LLVM IR generation that allow rounds to be tracked so that Fault knows when two states of different variables coexist in time. Will eventually use the same approach to get rid of LLVM IR metadata for tracking concurrency, which will eliminate the issues with some of LLVM optimization passes removing metadata.

(12/30/2022)

Taking another stab at the interface question and display of results. Settled on using mermaid to visualize the solutions received from the solver which is much more useful than what I was trying otherwise. This reintroduces the dotviz generation from way back with the prototype so I've also included generated mermaid viz for the state machine and the active stock-flow subsystems.

(11/30/2022)

Trying to finish up state charts exposed some problems with conditionals that needed to be addressed, plus some bugs and funny edge cases. But state charts are now done, including a reachability analysis verifying that the system is appropriately specified that I think will be opt-in for now.

(11/2/2022)

While working on adding state chart support I finally hit the limit on what the half-assed namespace implementation I started with could support. So I ended up spending the entire month of October writing a preprocesser that annotated the AST with the proper ids for each nameable node, then integrating it into a compiler. It took a long time but the code in the LLVM compilation stage is so much cleaner and neater now. Along the way found some previously unknown bugs and added some more tests to bone up mutation scores (will need more of this later)

(9/28/2022)

Adding state chart support to the parser and LLVM compiler, plus implementing logic around "this", cleaning up some dead code, plus some minor adjustments here and there.

(8/05/2022)

In order to prepare for state chart organization, added support for Booleans. Also tweaked the syntax to allow values to be overwritten within a flow.

(7/24/2022)

For the past couples of months I've been stuck on the Fault interface. When Z3 returns results how should that be displayed so that the user understands the failure case described by the model? This is tricky because Z3 will solve for all defined variables, even the ones in branches not relevant to the rest of the model. Initially I was playing around with the idea of using Bubble Tea to do a more robust visual interface from the command line, but eventually a scrapped that as being too complicated. The real problem was filtering out inactive branches after the phi. I had a couple of pieced together approaches, but there was a lot of technical debt in figuring out SMT generation that made the code difficult to read and overwhelming. I finally decided to just completely rewrite the SMT package to make it a little bit easier to figure out and the bake in filtering of return values for the interface.

(3/18/2022)

Took another look at assert generation and made them tweaks. Found some bugs in unknown variables. Big deal is implemented temporal logic on assert generation. Now in addition to generating asserts for traditional temporal logic like "always", "eventually" and "eventually-always", Fault also has a set of specific temporal functions like "no more than" (nmt) and "no fewer than" (nft) which allow model checking a stable loop.

(2/2/2022)

In the process of adding support for unknown variables I realized I never fully connected the dots on uncertain values (whoops). So finished both of those although the logic around asserts over multiple instances is kind of wonky and brittle. May need a rethink.

(1/26/2022)

Removed the fuzzer for the time being. It wasn't really doing what I needed it to do and the newest version Go starts to roll out fuzzing functionality by default ๐ŸŽ‰ As added some error handling around the lexer/parser.

Status (1/7/2022)

This started with an honest attempt to set up CI/CD on Fault's repo so that other people can start contributing, but debugging the CI/CD pipeline made me realize I have cross platform capability issues ๐Ÿคฆ. Tried a bunch of different things and conveniently forgot to swash my commits before merging to main. All my dirty laundry is there to study!

Anyway! Long story short: Fault now has an installer and runs on Docker. It also has support for alternative SMT solvers rather than a dependency on Z3 ... at least in theory!

Status (12/05/2021)

Development of Fault kind of goes like this: I write a spec and then implement whatever features are currently missing in order to get it to run. This time I added something unexpected: support for nestled stocks (stocks of stocks). Adds a little complexity but makes the specs look so much cleaner.

Status (12/01/2021)

Using Go channels to compile parallel runs seemed like a clevel solution, but truthfully the problems with correctly handling SSA weren't offset by any benefits in performance. Might revist in the future as models grow more complex. For right now plain ordinary sequencial processing of all premutations works well.

Other major thing is parsing the SMT returned by the solver and formatting those results into a human friendly form. Laid some of the ground work on Uncertain types.

Status (10/11/2021)

Just finished the happy path on conditionals, want to shift to spec imports next. Still have to test LLVM IR -> SMTLib2 after LLVM optimization passes.

fault's People

Contributors

johanrhodin avatar kasbah avatar mbellotti avatar raymyers avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

fault's Issues

Known bug with indexes and phi values

Need to come back to this later but there's a known bug in indexes when they are using inside any kind of branching logic like so:

increment: func{
        if num.value == 0 {
              num.value = 1;
       else{
              num.value <- num.value[now-1];
       },

index references a variable in the true branch that shouldn't be accessible to the false branch.

Remove the homebrew specific path to Antlr java

In order to successfully compile Fault grammar in Java (necessarily for using the antlr gui) make includes the following line:

javac -classpath /usr/local/Cellar/antlr/4.9.3/antlr-4.9.3-complete.jar *.java

Tighten Up AST with Operand Type

Recently introduced an Operand Type which encompasses both Identifiers and Struct Properties (ParameterCall). This opens up the opportunity to tighten up the AST, which currently allows any Expression node to be inserted into places where clearly only operands would work.

An example:

type ParallelFunctions struct {
	Token        Token
	InferredType *Type
	Expressions  []Expression
}

Areas affected:
ParallelFunctions - Fault specs have run blocks where the logic of what happens in a single loop of the model is defined. Multiple functions can execute in parallel.
IndexExpression - Not yet fully implemented but allows historic values to be accessed in the model. Typically looks like foo[3]
StockLiteral - Pairs are defined as map[Expression]Expression but keys can't be anything other than Identifiers
FlowLiteral - See above
ComponentLiteral - See above

docs: initial example not immediately runnable (?)

  • Copy the sandwich model from the home page http://fault.tech/ to sandwich.fsystem.
  • Install Fault using make fault-z3.
  • Run fault -f=sandwich.fsystem.
  • Get Go error shown below.
panic:  [recovered]
	panic: Invalid spec syntax spec on line 1 col 0 in spec sandwich.fsystem [recovered]
	panic: Invalid spec syntax spec on line 1 col 0 in spec sandwich.fsystem
  • Change first line of example file from spec sandwich to system sandwich.
  • Example runs as expected.

I expected the first example to run as-is with a minimal set of command-line options.

Rename "Parameter Call" to something that makes sense

File this under: I don't know why I did this ๐Ÿคฃ

Structs (Stocks, Flows, and Components) are basically like objects:

def foo = flow{
		buzz: new bar,
		fizz: func{
			if buzz.a > 2{
				buzz.a -> b;
			}else{
				buzz.a = 10;
			}
			buzz.b -> 1;
		},
	};

def bar = stock{
			a: 10,
			b: 20,
		};

Each has a set of features that are kind of like properties or methods. These features can be accessed via the following construction buzz.a in the parser this construction is called a ParameterCall ... which is a stupid name that doesn't really communicate what it is. These features ARE treated as parameters when represented in LLVM IR, but it's still a pretty confusing name.

A Fault spec works is by connecting Stocks and Flows together to represent resource use in a system (see Thinking In Systems for more about this style of modeling) Struct properties can be static values, instances of connecting structs, or functions. When referenced with the construction [structName].[property] if the feature is a function, Fault will execute the function.

Assuming we can come up with a more sensible name this is basically a find and replace job after that, with the guiding hand of unit tests to help ๐Ÿคฃ

Grammar railroad diagram

Using some online tools like https://www.bottlecaps.de/rr/ui and https://www.bottlecaps.de/convert/ we can have a nice navigable railroad diagram.

Copy and paste the EBNF shown bellow on https://www.bottlecaps.de/rr/ui on the tab Edit Grammar the click on the tab View Diagram to see/download a navigable railroad diagram.

/* converted on Thu Mar 9, 2023, 07:28 (UTC+01) by antlr_4-to-w3c v0.62 which is Copyright (c) 2011-2022 by Gunther Rademacher <[email protected]> */

sysSpec  ::= sysClause importDecl* globalDecl* componentDecl* ( assertion | assumption )? startBlock? forStmt?
sysClause
         ::= 'system' IDENT ';'
globalDecl
         ::= 'global' IDENT '=' operand ';'
componentDecl
         ::= 'component' IDENT '=' 'states' '{' ( comProperties ',' )* '}' ';'
startBlock
         ::= 'start' '{' ( startPair ',' )* '}' ';'
startPair
         ::= IDENT ':' IDENT
spec     ::= specClause declaration* forStmt?
specClause
         ::= 'spec' IDENT ';'
importDecl
         ::= 'import' ( importSpec | '(' importSpec* ')' ) ';'
importSpec
         ::= ( '.' | IDENT )? importPath ','?
importPath
         ::= string_
declaration
         ::= constDecl
           | structDecl
           | assertion
           | assumption
comparison
         ::= '=='
           | '!='
           | '<'
           | '<='
           | '>'
           | '>='
constDecl
         ::= 'const' ( constSpec | '(' constSpec* ')' ) ';'
constSpec
         ::= identList ( '=' constants )?
identList
         ::= operandName ( ',' operandName )*
constants
         ::= numeric
           | string_
           | bool_
           | solvable
           | 'nil'
expressionList
         ::= expression ( ',' expression )*
structDecl
         ::= 'def' IDENT '=' structType ';'
structType
         ::= ( 'flow' | 'stock' ) '{' ( sfProperties ',' )* '}'
sfProperties
         ::= IDENT ':' functionLit
           | structProperties
comProperties
         ::= IDENT ':' stateLit
           | structProperties
structProperties
         ::= IDENT ( ':' ( numeric | string_ | bool_ | operandName | prefix | solvable ) )?
initDecl ::= 'init' operand ';'
block    ::= '{' statementList? '}'
statementList
         ::= statement+
statement
         ::= constDecl
           | initDecl
           | simpleStmt ';'
           | ( 'if' ( simpleStmt ';' )? expression ( block 'else' 'if' ( simpleStmt ';' )? expression )* ( block 'else' )? )? block
simpleStmt
         ::= expression
           | incDecStmt
           | assignment
           | ';'
incDecStmt
         ::= expression ( '++' | '--' )
stateChange
         ::= ( 'advance' '(' paramCall | 'stay' '(' ) ')'
           | stateChange ( '&&' | '||' ) stateChange
accessHistory
         ::= operandName ( '[' expression ']' )+
assertion
         ::= 'assert' invariant temporal? ';'
assumption
         ::= 'assume' invariant temporal? ';'
temporal ::= 'eventually'
           | 'always'
           | 'eventually-always'
           | ( 'nmt' | 'nft' ) integer
invariant
         ::= ( 'when' expression 'then' )? expression
assignment
         ::= expressionList ( ( '+' | '-' | '^' | '*' | '/' | '%' | '<<' | '>>' | '&' | '&^' )? '=' | '->' | '<-' ) expressionList
forStmt  ::= 'for' rounds 'run' runBlock ';'?
rounds   ::= integer
paramCall
         ::= ( IDENT | 'this' ) ( '.' IDENT )+
stateBlock
         ::= '{' stateStep* '}'
stateStep
         ::= ( paramCall ( '|' paramCall )* | stateChange ) ';'
           | 'if' ( simpleStmt ';' )? expression stateBlock ( 'else' 'if' ( simpleStmt ';' )? expression stateBlock )* ( 'else' stateBlock )?
runBlock ::= '{' runStep* '}'
runStep  ::= ( paramCall ( '|' paramCall )* | IDENT '=' 'new' ( paramCall | IDENT ) | simpleStmt ) ';'
           | 'if' ( simpleStmt ';' )? expression runBlock ( 'else' 'if' ( simpleStmt ';' )? expression runBlock )* ( 'else' runBlock )?
faultType
         ::= 'string'
           | 'bool'
           | 'int'
           | 'float'
           | 'natural'
           | 'uncertain'
           | 'unknown'
solvable ::= faultType '(' operand? ( ',' operand )* ')'
expression
         ::= operand
           | solvable
           | prefix
           | expression ( '**' | '*' | '/' | '%' | '<<' | '>>' | '&' | '&^' | '+' | '-' | '^' | '==' | '!=' | '<' | '<=' | '>' | '>=' | '&&' | '||' ) expression
operand  ::= 'nil'
           | numeric
           | string_
           | bool_
           | operandName
           | accessHistory
           | '(' expression ')'
operandName
         ::= ( 'new' ( IDENT '.' )? )? IDENT
           | paramCall
           | 'this'
           | 'now'
prefix   ::= ( ( '+' | '-' | '!' | '^' | '*' | '&' ) expression )?
numeric  ::= integer
           | negative
           | float_
integer  ::= DECIMAL_LIT
           | OCTAL_LIT
           | HEX_LIT
negative ::= '-' ( integer | float_ )
float_   ::= FLOAT_LIT
string_  ::= RAW_STRING_LIT
           | INTERPRETED_STRING_LIT
bool_    ::= 'true'
           | 'false'
functionLit
         ::= 'func' block
stateLit ::= 'func' stateBlock
_        ::= WS
           | COMMENT
           | TERMINATOR
           | LINE_COMMENT
          /* ws: definition */

<?TOKENS?>

IDENT    ::= LETTER ( LETTER | UNICODE_DIGIT )*
DECIMAL_LIT
         ::= [1-9] [0-9]*
OCTAL_LIT
         ::= '0' OCTAL_DIGIT*
HEX_LIT  ::= '0' [xX] HEX_DIGIT+
FLOAT_LIT
         ::= DECIMALS ( '.' DECIMALS? EXPONENT? | EXPONENT )
           | '.' DECIMALS EXPONENT?
RAW_STRING_LIT
         ::= '`' [^`]* '`'
INTERPRETED_STRING_LIT
         ::= '"' ( [^"\] | ESCAPED_VALUE )* '"'
WS       ::= [ #x9]+
COMMENT? ::= '/*' .* '*/'
TERMINATOR
         ::= [#xd#xa]+
LINE_COMMENT
         ::= '//' [^#xd#xa]*
ESCAPED_VALUE
         ::= '\' ( ( ( 'u' | 'U' HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT ) HEX_DIGIT HEX_DIGIT | 'x' ) HEX_DIGIT HEX_DIGIT | [abfnrtv\'"] | OCTAL_DIGIT OCTAL_DIGIT OCTAL_DIGIT )
DECIMALS ::= [0-9]+
OCTAL_DIGIT
         ::= [0-7]
HEX_DIGIT
         ::= [0-9a-fA-F]
EXPONENT ::= [eE] [+#x2D]? DECIMALS
LETTER   ::= UNICODE_LETTER
           | '_'
UNICODE_DIGIT
         ::= [#x0030-#x0039#x0660-#x0669#x06F0-#x06F9#x0966-#x096F#x09E6-#x09EF#x0A66-#x0A6F#x0AE6-#x0AEF#x0B66-#x0B6F#x0BE7-#x0BEF#x0C66-#x0C6F#x0CE6-#x0CEF#x0D66-#x0D6F#x0E50-#x0E59#x0ED0-#x0ED9#x0F20-#x0F29#x1040-#x1049#x1369-#x1371#x17E0-#x17E9#x1810-#x1819#xFF10-#xFF19]
UNICODE_LETTER
         ::= [#x0041-#x005A#x0061-#x007A#x00AA#x00B5#x00BA#x00C0-#x00D6#x00D8-#x00F6#x00F8-#x021F#x0222-#x0233#x0250-#x02AD#x02B0-#x02B8#x02BB-#x02C1#x02D0-#x02D1#x02E0-#x02E4#x02EE#x037A#x0386#x0388-#x038A#x038C#x038E-#x03A1#x03A3-#x03CE#x03D0-#x03D7#x03DA-#x03F3#x0400-#x0481#x048C-#x04C4#x04C7-#x04C8#x04CB-#x04CC#x04D0-#x04F5#x04F8-#x04F9#x0531-#x0556#x0559#x0561-#x0587#x05D0-#x05EA#x05F0-#x05F2#x0621-#x063A#x0640-#x064A#x0671-#x06D3#x06D5#x06E5-#x06E6#x06FA-#x06FC#x0710#x0712-#x072C#x0780-#x07A5#x0905-#x0939#x093D#x0950#x0958-#x0961#x0985-#x098C#x098F-#x0990#x0993-#x09A8#x09AA-#x09B0#x09B2#x09B6-#x09B9#x09DC-#x09DD#x09DF-#x09E1#x09F0-#x09F1#x0A05-#x0A0A#x0A0F-#x0A10#x0A13-#x0A28#x0A2A-#x0A30#x0A32-#x0A33#x0A35-#x0A36#x0A38-#x0A39#x0A59-#x0A5C#x0A5E#x0A72-#x0A74#x0A85-#x0A8B#x0A8D#x0A8F-#x0A91#x0A93-#x0AA8#x0AAA-#x0AB0#x0AB2-#x0AB3#x0AB5-#x0AB9#x0ABD#x0AD0#x0AE0#x0B05-#x0B0C#x0B0F-#x0B10#x0B13-#x0B28#x0B2A-#x0B30#x0B32-#x0B33#x0B36-#x0B39#x0B3D#x0B5C-#x0B5D#x0B5F-#x0B61#x0B85-#x0B8A#x0B8E-#x0B90#x0B92-#x0B95#x0B99-#x0B9A#x0B9C#x0B9E-#x0B9F#x0BA3-#x0BA4#x0BA8-#x0BAA#x0BAE-#x0BB5#x0BB7-#x0BB9#x0C05-#x0C0C#x0C0E-#x0C10#x0C12-#x0C28#x0C2A-#x0C33#x0C35-#x0C39#x0C60-#x0C61#x0C85-#x0C8C#x0C8E-#x0C90#x0C92-#x0CA8#x0CAA-#x0CB3#x0CB5-#x0CB9#x0CDE#x0CE0-#x0CE1#x0D05-#x0D0C#x0D0E-#x0D10#x0D12-#x0D28#x0D2A-#x0D39#x0D60-#x0D61#x0D85-#x0D96#x0D9A-#x0DB1#x0DB3-#x0DBB#x0DBD#x0DC0-#x0DC6#x0E01-#x0E30#x0E32-#x0E33#x0E40-#x0E46#x0E81-#x0E82#x0E84#x0E87-#x0E88#x0E8A#x0E8D#x0E94-#x0E97#x0E99-#x0E9F#x0EA1-#x0EA3#x0EA5#x0EA7#x0EAA-#x0EAB#x0EAD-#x0EB0#x0EB2-#x0EB3#x0EBD-#x0EC4#x0EC6#x0EDC-#x0EDD#x0F00#x0F40-#x0F6A#x0F88-#x0F8B#x1000-#x1021#x1023-#x1027#x1029-#x102A#x1050-#x1055#x10A0-#x10C5#x10D0-#x10F6#x1100-#x1159#x115F-#x11A2#x11A8-#x11F9#x1200-#x1206#x1208-#x1246#x1248#x124A-#x124D#x1250-#x1256#x1258#x125A-#x125D#x1260-#x1286#x1288#x128A-#x128D#x1290-#x12AE#x12B0#x12B2-#x12B5#x12B8-#x12BE#x12C0#x12C2-#x12C5#x12C8-#x12CE#x12D0-#x12D6#x12D8-#x12EE#x12F0-#x130E#x1310#x1312-#x1315#x1318-#x131E#x1320-#x1346#x1348-#x135A#x13A0-#x13B0#x13B1-#x13F4#x1401-#x1676#x1681-#x169A#x16A0-#x16EA#x1780-#x17B3#x1820-#x1877#x1880-#x18A8#x1E00-#x1E9B#x1EA0-#x1EE0#x1EE1-#x1EF9#x1F00-#x1F15#x1F18-#x1F1D#x1F20-#x1F39#x1F3A-#x1F45#x1F48-#x1F4D#x1F50-#x1F57#x1F59#x1F5B#x1F5D#x1F5F-#x1F7D#x1F80-#x1FB4#x1FB6-#x1FBC#x1FBE#x1FC2-#x1FC4#x1FC6-#x1FCC#x1FD0-#x1FD3#x1FD6-#x1FDB#x1FE0-#x1FEC#x1FF2-#x1FF4#x1FF6-#x1FFC#x207F#x2102#x2107#x210A-#x2113#x2115#x2119-#x211D#x2124#x2126#x2128#x212A-#x212D#x212F-#x2131#x2133-#x2139#x2160-#x2183#x3005-#x3007#x3021-#x3029#x3031-#x3035#x3038-#x303A#x3041-#x3094#x309D-#x309E#x30A1-#x30FA#x30FC-#x30FE#x3105-#x312C#x3131-#x318E#x31A0-#x31B7#x3400#x4DB5#x4E00#x9FA5#xA000-#xA48C#xAC00#xD7A3#xF900-#xFA2D#xFB00-#xFB06#xFB13-#xFB17#xFB1D#xFB1F-#xFB28#xFB2A-#xFB36#xFB38-#xFB3C#xFB3E#xFB40-#xFB41#xFB43-#xFB44#xFB46-#xFBB1#xFBD3-#xFD3D#xFD50-#xFD8F#xFD92-#xFDC7#xFDF0-#xFDFB#xFE70-#xFE72#xFE74#xFE76-#xFEFC#xFF21-#xFF3A#xFF41-#xFF5A#xFF66-#xFFBE#xFFC2-#xFFC7#xFFCA-#xFFCF#xFFD2-#xFFD7#xFFDA-#xFFDC]

Trouble getting it running on Windows

Windows doesn't have make natively. I installed it this way:

New-Item -Type File "fault.Dockerfile"
docker build -t fault-lang/fault-z3 --no-cache -f fault.Dockerfile .

It'll probably crash and burn the moment I try to update to a newer build but that's a future Hillel problem.

At this point I realized I also didn't have bash and couldn't run fault-lang.sh. I tried to copy the docker run to

docker run -v (resolve-path .) fault-lang/fault-z3 -f=(resolve-path .\example.fspec)

But this gave me "must provide path of file to compile".

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.