From 5f69d9c39d5f307219b9f97a4fed55f931a43cee Mon Sep 17 00:00:00 2001 From: AntonMilienkov Date: Wed, 20 Mar 2024 10:08:06 +0300 Subject: [PATCH] fixed load and save blocks insert --- sapfor/experts/Sapfor_2017/_src/Transformations/checkpoints.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sapfor/experts/Sapfor_2017/_src/Transformations/checkpoints.cpp b/sapfor/experts/Sapfor_2017/_src/Transformations/checkpoints.cpp index 67d96a1..0ccf36e 100644 --- a/sapfor/experts/Sapfor_2017/_src/Transformations/checkpoints.cpp +++ b/sapfor/experts/Sapfor_2017/_src/Transformations/checkpoints.cpp @@ -825,7 +825,7 @@ void createCheckpoints(SgFile* file, const map& commonBloc { func = file->functions(z); point = func->lexNext(); - while (point && point->lineNumber() < cpLine && point != func->lastNodeOfStmt() && point->variant() != CONTAINS_STMT) + while (point && ((point->fileName() != file->filename()) || (point->lineNumber() < cpLine)) && point != func->lastNodeOfStmt() && point->variant() != CONTAINS_STMT) point = point->lexNext(); //cp place was found