Skip to content
Snippets Groups Projects
Commit a5b1437b authored by Regis Blanc's avatar Regis Blanc Committed by Ravi
Browse files

extern never extracts the body

parent e301e6fa
Branches
Tags
No related merge requests found
...@@ -941,11 +941,14 @@ trait CodeExtraction extends ASTExtractors { ...@@ -941,11 +941,14 @@ trait CodeExtraction extends ASTExtractors {
NoTree(funDef.returnType) NoTree(funDef.returnType)
} }
if (fctx.isExtern && !exists(_.isInstanceOf[NoTree])(finalBody)) { //if (fctx.isExtern && !exists(_.isInstanceOf[NoTree])(finalBody)) {
reporter.warning(finalBody.getPos, "External function could be extracted as Leon tree: "+finalBody) // reporter.warning(finalBody.getPos, "External function could be extracted as Leon tree: "+finalBody)
} //}
funDef.fullBody = finalBody funDef.fullBody = finalBody
if(fctx.isExtern) { //extern never keeps the body, but we keep pre and post
funDef.body = None
}
// Post-extraction sanity checks // Post-extraction sanity checks
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment