Skip to content

Commit 9696cbd

Browse files
committed
m
1 parent 787a15c commit 9696cbd

File tree

1 file changed

+6
-1
lines changed
  • DynamoDbEncryption/dafny/DynamoDbEncryptionTransforms/src

1 file changed

+6
-1
lines changed

DynamoDbEncryption/dafny/DynamoDbEncryptionTransforms/src/Index.dfy

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ module {:extern "software.amazon.cryptography.dbencryptionsdk.dynamodb.transform
301301

302302
class DynamoDbEncryptionTransformsClient... {
303303

304-
predicate ValidState()
304+
predicate {:vcs_split_on_every_assert} ValidState()
305305
{
306306
&& Operations.ValidInternalConfig?(config)
307307
&& History !in Operations.ModifiesInternalConfig(config)
@@ -314,6 +314,11 @@ module {:extern "software.amazon.cryptography.dbencryptionsdk.dynamodb.transform
314314
this.config := config;
315315
History := new IDynamoDbEncryptionTransformsClientCallHistory();
316316
Modifies := Operations.ModifiesInternalConfig(config) + {History};
317+
new;
318+
assert Operations.ValidInternalConfig?(this.config);
319+
assert History !in Operations.ModifiesInternalConfig(config);
320+
assert Modifies == Operations.ModifiesInternalConfig(config) + {History};
321+
assert ValidState();
317322
}
318323

319324
}

0 commit comments

Comments
 (0)