LAWSWhole.hpet_whole: law of bend-osdev-acpi@0.1.2.0 Import: import bend-osdev-acpi@0.1.2.0/LAWS_whole.bend as LAWSWhole Lines 46-69 of bend-osdev-acpi@0.1.2.0/LAWS_whole.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-acpi@0.1.2.0/LAWS_whole.bend&start_line=46&end_line=69 import Base import bend-osdev-word64@0.1.1.1/word64.bend as W import bend-osdev-bytes@0.1.1.1/bytes.bend as B import bend-osdev-acpi@0.1.2.0/error.bend as E import bend-osdev-acpi@0.1.2.0/header.bend as H import bend-osdev-acpi@0.1.2.0/gas.bend as G import bend-osdev-acpi@0.1.2.0/hpet.bend as Hp # The HPET table law hpet_whole: for +h0: H.AcpiHeader for +oem6b: {B.Octets.len(H.AcpiHeader.oem_id(h0)) == 6n : Nat} for +tid8b: {B.Octets.len(H.AcpiHeader.oem_table_id(h0)) == 8n : Nat} for +cid4b: {B.Octets.len(H.AcpiHeader.creator_id(h0)) == 4n : Nat} for +rev8b: {B.byte(H.AcpiHeader.revision(h0)) == H.AcpiHeader.revision(h0) : U32} for +id: U32 for +gs: U32 for +gw: U32 for +go: U32 for +ga: U32 for +gaddr: W.W64 for +n: U32 for +m: U32 for +p: U32 for +gs8: {B.byte(gs) == gs : U32} for +gw8: {B.byte(gw) == gw : U32} for +go8: {B.byte(go) == go : U32} for +ga8: {B.byte(ga) == ga : U32} for +n8: {B.byte(n) == n : U32} for +m16: {B.low16(m) == m : U32} for +p8: {B.byte(p) == p : U32} {Hp.AcpiHpet.parse(Hp.AcpiHpet.build(Hp.AcpiHpet{h0, id, G.AcpiGas{gs, gw, go, ga, gaddr}, n, m, p})) == Done{Hp.AcpiHpet{acpilaw.written(B.Octets.of_string("HPET"), h0, Hp.AcpiHpet.build(Hp.AcpiHpet{h0, id, G.AcpiGas{gs, gw, go, ga, gaddr}, n, m, p})), id, G.AcpiGas{gs, gw, go, ga, gaddr}, n, m, p}} : Result<&2, &2, E.AcpiError, Hp.AcpiHpet>} Uses (41): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Equal.sym https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe.default https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.from_nat https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.2.0/LAWS_tables.bend&name=hpet_round_trip https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.2.0/LAWS_whole.bend&name=acpilaw.written https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.2.0/LAWS_whole.bend&name=sdt_round_trip https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.2.0/PROOF_tables.bend&name=tb.sdt_body https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.2.0/PROOF_whole.bend&name=ckw.hpfit https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.2.0/error.bend&name=AcpiError https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.2.0/gas.bend&name=AcpiGas https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.2.0/gas.bend&name=AcpiGas.encode https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.2.0/header.bend&name=AcpiHeader https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.2.0/header.bend&name=AcpiHeader.creator_id https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.2.0/header.bend&name=AcpiHeader.oem_id https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.2.0/header.bend&name=AcpiHeader.oem_table_id https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.2.0/header.bend&name=AcpiHeader.revision https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.2.0/header.bend&name=AcpiSdt https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.2.0/header.bend&name=AcpiSdt.build https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.2.0/header.bend&name=AcpiSdt.parse https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.2.0/header.bend&name=sdt.sig.go https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.2.0/hpet.bend&name=AcpiHpet https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.2.0/hpet.bend&name=AcpiHpet.build https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.2.0/hpet.bend&name=AcpiHpet.of_sdt https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.2.0/hpet.bend&name=AcpiHpet.parse https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.2.0/hpet.bend&name=hpet.parse https://jend.leeeet.dev/definition.txt?path=bend-osdev-bytes@0.1.1.1/bytes.bend&name=Octets https://jend.leeeet.dev/definition.txt?path=bend-osdev-bytes@0.1.1.1/bytes.bend&name=Octets.at https://jend.leeeet.dev/definition.txt?path=bend-osdev-bytes@0.1.1.1/bytes.bend&name=Octets.concat https://jend.leeeet.dev/definition.txt?path=bend-osdev-bytes@0.1.1.1/bytes.bend&name=Octets.drop https://jend.leeeet.dev/definition.txt?path=bend-osdev-bytes@0.1.1.1/bytes.bend&name=Octets.le16 https://jend.leeeet.dev/definition.txt?path=bend-osdev-bytes@0.1.1.1/bytes.bend&name=Octets.le32 https://jend.leeeet.dev/definition.txt?path=bend-osdev-bytes@0.1.1.1/bytes.bend&name=Octets.len https://jend.leeeet.dev/definition.txt?path=bend-osdev-bytes@0.1.1.1/bytes.bend&name=Octets.of_list https://jend.leeeet.dev/definition.txt?path=bend-osdev-bytes@0.1.1.1/bytes.bend&name=Octets.of_string https://jend.leeeet.dev/definition.txt?path=bend-osdev-bytes@0.1.1.1/bytes.bend&name=byte https://jend.leeeet.dev/definition.txt?path=bend-osdev-bytes@0.1.1.1/bytes.bend&name=low16 https://jend.leeeet.dev/definition.txt?path=bend-osdev-word64@0.1.1.1/word64.bend&name=W64