Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
b2program
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
general
stups
b2program
Commits
17fd0f3e
Commit
17fd0f3e
authored
Jul 7, 2022
by
Cookiebowser
Browse files
Options
Downloads
Patches
Plain Diff
adjusted rust template to MC-generator changes
parent
a7c50c89
No related branches found
No related tags found
1 merge request
!28
Rust support
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/resources/de/hhu/stups/codegenerator/RustTemplate.stg
+14
-2
14 additions, 2 deletions
...ain/resources/de/hhu/stups/codegenerator/RustTemplate.stg
with
14 additions
and
2 deletions
src/main/resources/de/hhu/stups/codegenerator/RustTemplate.stg
+
14
−
2
View file @
17fd0f3e
...
...
@@ -788,12 +788,12 @@ if state.<evalTransitions>(isCaching) {
<endif>
>>
model_check_invariants(machine,
checkI
nvariant
s
, invariants) ::= <<
model_check_invariants(machine,
i
nvariant
Violated
, invariants) ::= <<
//model_check_invariants
pub fn checkInvariants(state: &<machine>, last_op: &'static str, isCaching: bool) -> bool {
if isCaching {
let dependent_invariants_of_state = Self::get_invariant_dependencies(last_op);
<
checkI
nvariant
s
; separator="\n">
<
i
nvariant
Violated
; separator="\n">
return true;
}
return !(<invariants:{inv | !state.<inv>()}; separator=" || ">);
...
...
@@ -1089,3 +1089,15 @@ if (<predicate>).booleanValue() {
}
<endif>
>>
model_check_main_method() ::= <<>>
modelchecker(main, invariantViolated, printResult, nextStates) ::= <<
<nextStates>
<invariantViolated>
<printResult>
<main>
>>
model_check_add_cached_infos() ::= <<>>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment