Skip to content

Commit

Permalink
Add early stop for verify specification
Browse files Browse the repository at this point in the history
  • Loading branch information
mldiego committed Aug 29, 2024
1 parent 480cc89 commit e9b9a12
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/nnv/engine/utils/verify_specification.m
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
if ~isa(Set, "Star")
Set = Set.toStar;
end
if isa(Set.V, 'gpuArray')
Set = Set.changeDevice('cpu');
end
S = Set.intersectHalfSpace(property.G, property.g); % compute intersection with unsafe/not robust region
if isempty(S)
result = 1; % no intersection with unsafe region = safe (unsat)
Expand All @@ -57,6 +60,7 @@
continue; % does nothing, just need an statement, wanted to make this clear
else
result = 2; % unknown if approx, sat if exact
return;
end
end
cp = cp+1;
Expand Down

0 comments on commit e9b9a12

Please sign in to comment.