• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Z3.FPExpr类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: MkFPToReal

 /// <summary>
 /// Conversion of a floating-point term into a real-numbered term.
 /// </summary>
 /// <remarks>
 /// Produces a term that represents the conversion of the floating-poiunt term t into a
 /// real number. Note that this type of conversion will often result in non-linear 
 /// constraints over real terms.
 /// </remarks>        
 /// <param name="t">FloatingPoint term</param>
 public RealExpr MkFPToReal(FPExpr t)
 {
     Contract.Ensures(Contract.Result<RealExpr>() != null);
     return new RealExpr(this, Native.Z3_mk_fpa_to_real(this.nCtx, t.NativeObject));
 }
开发者ID:hitmoon,项目名称:z3,代码行数:14,代码来源: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: MkFPToIEEEBV

 /// <summary>
 /// Conversion of a floating-point term into a bit-vector term in IEEE 754-2008 format.
 /// </summary>
 /// <remarks>
 /// The size of the resulting bit-vector is automatically determined. Note that 
 /// IEEE 754-2008 allows multiple different representations of NaN. This conversion 
 /// knows only one NaN and it will always produce the same bit-vector represenatation of 
 /// that NaN. 
 /// </remarks>
 /// <param name="t">FloatingPoint term.</param>
 public BitVecExpr MkFPToIEEEBV(FPExpr t)
 {
     Contract.Ensures(Contract.Result<BitVecExpr>() != null);
     return new BitVecExpr(this, Native.Z3_mk_fpa_to_ieee_bv(this.nCtx, t.NativeObject));
 }
开发者ID:hitmoon,项目名称:z3,代码行数:15,代码来源:Context.cs


示例4: MkFPSub

 /// <summary>
 /// Floating-point subtraction
 /// </summary>
 /// <param name="rm">rounding mode term</param>
 /// <param name="t1">floating-point term</param>
 /// <param name="t2">floating-point term</param>
 public FPExpr MkFPSub(FPRMExpr rm, FPExpr t1, FPExpr t2)
 {
     Contract.Ensures(Contract.Result<FPNum>() != null);
     return new FPExpr(this, Native.Z3_mk_fpa_sub(this.nCtx, rm.NativeObject, t1.NativeObject, t2.NativeObject));
 }
开发者ID:hitmoon,项目名称:z3,代码行数:11,代码来源:Context.cs


示例5: MkFPToBV

 /// <summary>
 /// Conversion of a floating-point term into a bit-vector.
 /// </summary>
 /// <remarks>
 /// Produces a term that represents the conversion of the floating-poiunt term t into a
 /// bit-vector term of size sz in 2's complement format (signed when signed==true). If necessary, 
 /// the result will be rounded according to rounding mode rm.
 /// </remarks>        
 /// <param name="rm">RoundingMode term.</param>
 /// <param name="t">FloatingPoint term</param>
 /// <param name="sz">Size of the resulting bit-vector.</param>
 /// <param name="signed">Indicates whether the result is a signed or unsigned bit-vector.</param>
 public BitVecExpr MkFPToBV(FPRMExpr rm, FPExpr t, uint sz, bool signed)
 {
     Contract.Ensures(Contract.Result<BitVecExpr>() != null);
     if (signed)
         return new BitVecExpr(this, Native.Z3_mk_fpa_to_sbv(this.nCtx, rm.NativeObject, t.NativeObject, sz));
     else
         return new BitVecExpr(this, Native.Z3_mk_fpa_to_ubv(this.nCtx, rm.NativeObject, t.NativeObject, sz));
 }
开发者ID:hitmoon,项目名称:z3,代码行数:20,代码来源:Context.cs


示例6: MkFPRoundToIntegral

 /// <summary>
 /// Floating-point roundToIntegral. Rounds a floating-point number to 
 /// the closest integer, again represented as a floating-point number.
 /// </summary>        
 /// <param name="rm">term of RoundingMode sort</param>
 /// <param name="t">floating-point term</param>
 public FPExpr MkFPRoundToIntegral(FPRMExpr rm, FPExpr t)
 {
     Contract.Ensures(Contract.Result<FPNum>() != null);
     return new FPExpr(this, Native.Z3_mk_fpa_round_to_integral(this.nCtx, rm.NativeObject, t.NativeObject));
 }
开发者ID:hitmoon,项目名称:z3,代码行数:11,代码来源:Context.cs


示例7: MkFPNeg

 /// <summary>
 /// Floating-point negation
 /// </summary>
 /// <param name="t">floating-point term</param>
 public FPExpr MkFPNeg(FPExpr t)
 {
     Contract.Ensures(Contract.Result<FPNum>() != null);
     return new FPExpr(this, Native.Z3_mk_fpa_neg(this.nCtx, t.NativeObject));
 }
开发者ID:hitmoon,项目名称:z3,代码行数:9,代码来源:Context.cs


示例8: MkFPLt

 /// <summary>
 /// Floating-point less than.
 /// </summary>        
 /// <param name="t1">floating-point term</param>
 /// <param name="t2">floating-point term</param>
 public BoolExpr MkFPLt(FPExpr t1, FPExpr t2)
 {
     Contract.Ensures(Contract.Result<BoolExpr>() != null);
     return new BoolExpr(this, Native.Z3_mk_fpa_lt(this.nCtx, t1.NativeObject, t2.NativeObject));
 }
开发者ID:hitmoon,项目名称:z3,代码行数:10,代码来源:Context.cs


示例9: MkFPIsZero

 /// <summary>
 /// Predicate indicating whether t is a floating-point number with zero value, i.e., +0 or -0.
 /// </summary>        
 /// <param name="t">floating-point term</param>        
 public BoolExpr MkFPIsZero(FPExpr t)
 {
     Contract.Ensures(Contract.Result<BoolExpr>() != null);
     return new BoolExpr(this, Native.Z3_mk_fpa_is_zero(this.nCtx, t.NativeObject));
 }
开发者ID:hitmoon,项目名称:z3,代码行数:9,代码来源:Context.cs


示例10: ToFPExprArray

 /// <summary>
 /// Translates an ASTVector into a FPExpr[]
 /// </summary>    
 public FPExpr[] ToFPExprArray()
 {
     uint n = Size;
     FPExpr[] res = new FPExpr[n];
     for (uint i = 0; i < n; i++)
         res[i] = (FPExpr)Expr.Create(this.Context, this[i].NativeObject);
     return res;
 }
开发者ID:perillaseed,项目名称:z3,代码行数:11,代码来源:ASTVector.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Z3.FPSort类代码示例发布时间:2022-05-26
下一篇:
C# Z3.Expr类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap