Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Refinedrust Dev
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lennard Gäher
Refinedrust Dev
Commits
619f7557
Unverified
Commit
619f7557
authored
1 year ago
by
Lennard Gäher
Browse files
Options
Downloads
Patches
Plain Diff
enable rr::only_spec when function has unsupported features
parent
85f1342c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
rr_frontend/translation/src/function_body.rs
+563
-517
563 additions, 517 deletions
rr_frontend/translation/src/function_body.rs
rr_frontend/translation/src/lib.rs
+3
-3
3 additions, 3 deletions
rr_frontend/translation/src/lib.rs
with
566 additions
and
520 deletions
rr_frontend/translation/src/function_body.rs
+
563
−
517
View file @
619f7557
This diff is collapsed.
Click to expand it.
rr_frontend/translation/src/lib.rs
+
3
−
3
View file @
619f7557
...
...
@@ -58,7 +58,7 @@ mod inclusion_tracker;
mod
arg_folder
;
use
environment
::
Environment
;
use
function_body
::
Body
Translator
;
use
function_body
::
Function
Translator
;
use
type_translator
::
TypeTranslator
;
use
function_body
::
ProcedureScope
;
...
...
@@ -297,7 +297,7 @@ impl<'tcx, 'rcx> VerificationCtxt<'tcx, 'rcx> {
proof_file
.write
(
"End proof."
.as_bytes
())
.unwrap
();
}
else
if
fun
.spec
.has_spec
()
{
else
if
!
fun
.spec
.has_spec
()
{
proof_file
.write
(
format!
(
"(* No specification provided *)"
)
.as_bytes
())
.unwrap
();
}
else
{
...
...
@@ -459,7 +459,7 @@ fn translate_functions<'rcx, 'tcx>(vcx: &mut VerificationCtxt<'tcx, 'rcx>) {
info!
(
"Translating function {}"
,
fname
);
let
translator
=
Body
Translator
::
new
(
&
vcx
.env
,
meta
,
proc
,
attrs
,
&
vcx
.type_translator
,
&
vcx
.procedure_registry
);
let
translator
=
Function
Translator
::
new
(
&
vcx
.env
,
meta
,
proc
,
attrs
,
&
vcx
.type_translator
,
&
vcx
.procedure_registry
);
if
mode
.is_only_spec
()
{
// Only generate a spec
...
...
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