当前位置: 首页>>代码示例>>C#>>正文


C# Z3.FPSort类代码示例

本文整理汇总了C#中Microsoft.Z3.FPSort的典型用法代码示例。如果您正苦于以下问题:C# FPSort类的具体用法?C# FPSort怎么用?C# FPSort使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


FPSort类属于Microsoft.Z3命名空间,在下文中一共展示了FPSort类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: MkFPZero

 /// <summary>
 /// Create a floating-point zero of sort s.
 /// </summary>        
 /// <param name="s">FloatingPoint sort.</param>   
 /// <param name="negative">indicates whether the result should be negative.</param>
 public FPNum MkFPZero(FPSort s, bool negative)
 {
     Contract.Ensures(Contract.Result<FPRMExpr>() != null);
     return new FPNum(this, Native.Z3_mk_fpa_zero(nCtx, s.NativeObject, negative ? 1 : 0));
 }
开发者ID:hitmoon,项目名称:z3,代码行数:10,代码来源:Context.cs

示例2: MkFPToFP

 /// <summary>
 /// Conversion of a floating-point number to another FloatingPoint sort s.
 /// </summary>
 /// <remarks>
 /// Produces a term that represents the conversion of a floating-point term t to a different
 /// FloatingPoint sort s. If necessary, rounding according to rm is applied. 
 /// </remarks>
 /// <param name="s">FloatingPoint sort</param>
 /// <param name="rm">floating-point rounding mode term</param>
 /// <param name="t">floating-point term</param>
 public FPExpr MkFPToFP(FPSort s, FPRMExpr rm, FPExpr t)
 {
     Contract.Ensures(Contract.Result<FPExpr>() != null);
     return new FPExpr(this, Native.Z3_mk_fpa_to_fp_float(this.nCtx, s.NativeObject, rm.NativeObject, t.NativeObject));
 }
开发者ID:hitmoon,项目名称:z3,代码行数:15,代码来源:Context.cs

示例3: MkFPNumeral

 /// <summary>
 /// Create a numeral of FloatingPoint sort from a sign bit and two 64-bit integers.
 /// </summary>        
 /// <param name="sgn">the sign.</param>
 /// <param name="sig">the significand.</param>
 /// <param name="exp">the exponent.</param>
 /// <param name="s">FloatingPoint sort.</param>        
 public FPNum MkFPNumeral(bool sgn, Int64 exp, UInt64 sig, FPSort s)
 {
     Contract.Ensures(Contract.Result<FPRMExpr>() != null);
     return new FPNum(this, Native.Z3_mk_fpa_numeral_int64_uint64(nCtx, sgn ? 1 : 0, exp, sig, s.NativeObject));
 }
开发者ID:hitmoon,项目名称:z3,代码行数:12,代码来源:Context.cs

示例4: MkFPNaN

 /// <summary>
 /// Create a NaN of sort s.
 /// </summary>        
 /// <param name="s">FloatingPoint sort.</param>        
 public FPNum MkFPNaN(FPSort s)
 {
     Contract.Ensures(Contract.Result<FPRMExpr>() != null);
     return new FPNum(this, Native.Z3_mk_fpa_nan(nCtx, s.NativeObject));
 }
开发者ID:hitmoon,项目名称:z3,代码行数:9,代码来源:Context.cs

示例5: MkFP

 /// <summary>
 /// Create a numeral of FloatingPoint sort from a sign bit and two 64-bit integers.
 /// </summary>        
 /// <param name="sgn">the sign.</param>        
 /// <param name="exp">the exponent.</param>
 /// <param name="sig">the significand.</param>
 /// <param name="s">FloatingPoint sort.</param>        
 public FPNum MkFP(bool sgn, Int64 exp, UInt64 sig, FPSort s)
 {
     Contract.Ensures(Contract.Result<FPRMExpr>() != null);
     return MkFPNumeral(sgn, exp, sig, s);
 }
开发者ID:hitmoon,项目名称:z3,代码行数:12,代码来源:Context.cs


注:本文中的Microsoft.Z3.FPSort类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。