538def sm86PlaceEncodedField =
539 (lambda unrestricted field : SM86EncodedField . unrestricted encoded : Bytes .
540 eliminate
541 SM86EncodedField
542 (lambda unrestricted current : SM86EncodedField . SM86FieldEncodingResult)
543 field
544 (branch
545 SM86EncodedFieldValue
546 position
547 width
548 value
549 .
550 app
551 (lambda unrestricted extent : Nat .
552 nat-eliminate
553 (lambda unrestricted wordLengthValid : Nat . SM86FieldEncodingResult)
554 (sm86FieldFailure
555 SM86EncodingWordLengthInvalid
556 position
557 width
558 (bytes-length encoded)
559 (bytes-length encoded))
560 (lambda unrestricted lengthPredecessor : Nat .
561 unrestricted lengthInduction : SM86FieldEncodingResult .
562 nat-eliminate
563 (lambda unrestricted widthValid : Nat . SM86FieldEncodingResult)
564 (sm86FieldFailure
565 SM86EncodingFieldWidthInvalid
566 position
567 width
568 width
569 (bytes-length encoded))
570 (lambda unrestricted widthPredecessor : Nat .
571 unrestricted widthInduction : SM86FieldEncodingResult .
572 nat-eliminate
573 (lambda unrestricted extentValid : Nat . SM86FieldEncodingResult)
574 (sm86FieldFailure
575 SM86EncodingFieldExtentInvalid
576 position
577 width
578 extent
579 (bytes-length encoded))
580 (lambda unrestricted extentPredecessor : Nat .
581 unrestricted extentInduction : SM86FieldEncodingResult .
582 nat-eliminate
583 (lambda unrestricted valueValid : Nat . SM86FieldEncodingResult)
584 (sm86FieldFailure
585 SM86EncodingFieldValueOverflow
586 position
587 width
588 value
589 (bytes-length encoded))
590 (lambda unrestricted valuePredecessor : Nat .
591 unrestricted valueInduction : SM86FieldEncodingResult .
592 constructor
593 SM86FieldEncodingResult
594 SM86FieldEncodingSucceeded
595 (sm86PlaceFieldBitsUnchecked position width value encoded)
596 (sm86FieldTelemetryOne width extent))
597 (sm86FieldValueFits width value))
598 (naturalLessOrEqual extent sm86EncodingNaturalOneHundredTwentyEight))
599 (nat-less-than 0 width))
600 (naturalEqual (bytes-length encoded) sm86EncodingNaturalSixteen))
601 (naturalAdd position width))
602 (branch
603 SM86EncodedFieldWord32Value
604 position
605 value
606 .
607 sm86PlaceWord32Field position value encoded)
608 (branch
609 SM86EncodedFieldWord24Value
610 position
611 byte0
612 byte1
613 byte2
614 .
615 sm86PlaceWord24Field position byte0 byte1 byte2 encoded))The compiler supplied declaration spans and resolved links from this source snapshot. This page does not assert that this file belongs to a checked closure.