123456789101112131415161718192021222324252627282930313233343536373839(******************************************************************************)(* *)(* SPDX-License-Identifier LGPL-2.1 *)(* Copyright (C) *)(* CEA (Commissariat à l'énergie atomique et aux énergies alternatives) *)(* INRIA (Institut National de Recherche en Informatique et en Automatique) *)(* INSA (Institut National des Sciences Appliquees) *)(* *)(******************************************************************************)typet=|True|False|Undefinedletbool3andc1c2=matchc1,c2with|True,True->True|_,False|False,_->False|Undefined,_|_,Undefined->Undefinedletbool3orc1c2=matchc1,c2with|True,_|_,True->True|_,Undefined|Undefined,_->Undefined|False,False->Falseletbool3notc=matchcwith|True->False|False->True|Undefined->Undefinedletbool3_of_boolb=ifbthenTrueelseFalse