Skip to content

Commit 39e6abc

Browse files
committed
Rename "assume-state-define" to "assume-defined"
1 parent 9c07a05 commit 39e6abc

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

booster/library/Booster/JsonRpc.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ respond stateVar request =
132132
, req.logFailedRewrites
133133
]
134134
checkConstraintsConsistent =
135-
case req.assumeStateDefined of
135+
case req.assumeDefined of
136136
Nothing -> ApplyEquations.CheckConstraintsConsistent
137137
Just False -> ApplyEquations.CheckConstraintsConsistent
138138
Just True -> ApplyEquations.NoCheckConstraintsConsistent

booster/tools/booster/Proxy.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ respondEither cfg@ProxyConfig{boosterState} booster kore req = case req of
351351
r
352352
{ state = execStateToKoreJson simplifiedBoosterState
353353
, maxDepth = Just $ Depth 1
354-
, assumeStateDefined = Just True
354+
, assumeDefined = Just True
355355
}
356356
)
357357
Booster.Log.withContexts [CtxProxy, CtxTiming, CtxKore] $

docs/2022-07-18-JSON-RPC-Server-API.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ The server runs over sockets and can be interacted with by sending JSON RPC mess
2424
"method": "execute",
2525
"params": {
2626
"max-depth": 4,
27-
"assume-state-defined": true,
27+
"assume-defined": true,
2828
"cut-point-rules": ["rule1"],
2929
"terminal-rules": ["ruleFoo"],
3030
"moving-average-step-timeout": true,
@@ -41,9 +41,9 @@ The server runs over sockets and can be interacted with by sending JSON RPC mess
4141
}
4242
```
4343

44-
Optional parameters: `max-depth`, `cut-point-rules`, `terminal-rules`, `moving-average-step-timeout`, `step-timeout` (timeout is in milliseconds), `module` (main module name), `assume-state-defined` (description follows) and all the `log-*` options, which default to false if unspecified.
44+
Optional parameters: `max-depth`, `cut-point-rules`, `terminal-rules`, `moving-average-step-timeout`, `step-timeout` (timeout is in milliseconds), `module` (main module name), `assume-defined` (description follows) and all the `log-*` options, which default to false if unspecified.
4545

46-
The `assume-state-defined` flag has different meaning in Booster and Kore. If set to `true`, Booster will not check the constraints of the initial pattern for satisfiability. It is the responsibility of the caller to ensure that the pattern is not vacuous. In Kore, if `assume-state-defined` is set to `true`, then all sub-terms of `state` will be assumed to be defined before attempting rewrite rules.
46+
The `assume-defined` flag defaults to `false`. The `assume-defined` flag has different meaning in Booster and Kore. If set to `true`, Booster will not check the constraints of the initial pattern for satisfiability. It is the responsibility of the caller to ensure that the pattern is not vacuous. In Kore, if `assume-defined` is set to `true`, then all sub-terms of `state` will be assumed to be defined before attempting rewrite rules.
4747

4848
_Note: `id` can be an int or a string and each message must have a new `id`. The response objects have the same id as the message._
4949

kore-rpc-types/src/Kore/JsonRpc/Types.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ data ExecuteRequest = ExecuteRequest
4343
, terminalRules :: !(Maybe [Text])
4444
, movingAverageStepTimeout :: !(Maybe Bool)
4545
, stepTimeout :: !(Maybe Int)
46-
, assumeStateDefined :: !(Maybe Bool)
46+
, assumeDefined :: !(Maybe Bool)
4747
, logSuccessfulRewrites :: !(Maybe Bool)
4848
, logFailedRewrites :: !(Maybe Bool)
4949
}

kore/src/Kore/JsonRpc.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ respond reqId serverState moduleName runSMT =
141141
, cutPointRules
142142
, terminalRules
143143
, movingAverageStepTimeout
144-
, assumeStateDefined
144+
, assumeDefined
145145
, stepTimeout
146146
, logSuccessfulRewrites
147147
} -> withMainModule (coerce _module) $ \serializedModule lemmas -> do
@@ -167,7 +167,7 @@ respond reqId serverState moduleName runSMT =
167167
then EnableMovingAverage
168168
else DisableMovingAverage
169169
)
170-
( if fromMaybe False assumeStateDefined
170+
( if fromMaybe False assumeDefined
171171
then EnableAssumeInitialDefined
172172
else DisableAssumeInitialDefined
173173
)

0 commit comments

Comments
 (0)