diff --git a/src/api/dotnet/ArithExpr.cs b/src/api/dotnet/ArithExpr.cs index 58d160900..705a9f6ca 100644 --- a/src/api/dotnet/ArithExpr.cs +++ b/src/api/dotnet/ArithExpr.cs @@ -41,129 +41,129 @@ namespace Microsoft.Z3 #region Operators - private static ArithExpr MkNum(ArithExpr e, int i) => (ArithExpr)e.Context.MkNumeral(i, e.Context.MkIntSort()); + private static ArithExpr MkNum(ArithExpr e, int i) { return (ArithExpr)e.Context.MkNumeral(i, e.Context.MkIntSort()); } - private static ArithExpr MkNum(ArithExpr e, double d) => (ArithExpr)e.Context.MkNumeral(d.ToString(), e.Context.MkRealSort()); + private static ArithExpr MkNum(ArithExpr e, double d) { return (ArithExpr)e.Context.MkNumeral(d.ToString(), e.Context.MkRealSort()); } /// Operator overloading for arithmetical divsion operator (over reals) - public static ArithExpr operator /(ArithExpr a, ArithExpr b) => a.Context.MkDiv(a, b); + public static ArithExpr operator /(ArithExpr a, ArithExpr b) { return a.Context.MkDiv(a, b); } /// Operator overloading for arithmetical operator - public static ArithExpr operator /(ArithExpr a, int b) => a / MkNum(a, b); + public static ArithExpr operator /(ArithExpr a, int b) { return a / MkNum(a, b); } /// Operator overloading for arithmetical operator - public static ArithExpr operator /(ArithExpr a, double b) => a / MkNum(a, b); + public static ArithExpr operator /(ArithExpr a, double b) { return a / MkNum(a, b); } /// Operator overloading for arithmetical operator - public static ArithExpr operator /(int a, ArithExpr b) => MkNum(b, a) / b; + public static ArithExpr operator /(int a, ArithExpr b) { return MkNum(b, a) / b; } /// Operator overloading for arithmetical operator - public static ArithExpr operator /(double a, ArithExpr b) => MkNum(b, a) / b; + public static ArithExpr operator /(double a, ArithExpr b) { return MkNum(b, a) / b; } /// Operator overloading for arithmetical operator - public static ArithExpr operator -(ArithExpr a, ArithExpr b) => a.Context.MkSub(a, b); + public static ArithExpr operator -(ArithExpr a, ArithExpr b) { return a.Context.MkSub(a, b); } /// Operator overloading for arithmetical operator - public static ArithExpr operator -(ArithExpr a, int b) => a - MkNum(a, b); + public static ArithExpr operator -(ArithExpr a, int b) { return a - MkNum(a, b); } /// Operator overloading for arithmetical operator - public static ArithExpr operator -(ArithExpr a, double b) => a - MkNum(a, b); + public static ArithExpr operator -(ArithExpr a, double b) { return a - MkNum(a, b); } /// Operator overloading for arithmetical operator - public static ArithExpr operator -(int a, ArithExpr b) => MkNum(b, a) - b; + public static ArithExpr operator -(int a, ArithExpr b) { return MkNum(b, a) - b; } /// Operator overloading for arithmetical operator - public static ArithExpr operator -(double a, ArithExpr b) => MkNum(b, a) - b; + public static ArithExpr operator -(double a, ArithExpr b) { return MkNum(b, a) - b; } /// Operator overloading for arithmetical operator - public static ArithExpr operator +(ArithExpr a, ArithExpr b) => a.Context.MkAdd(a, b); + public static ArithExpr operator +(ArithExpr a, ArithExpr b) { return a.Context.MkAdd(a, b); } /// Operator overloading for arithmetical operator - public static ArithExpr operator +(ArithExpr a, int b) => a + MkNum(a, b); + public static ArithExpr operator +(ArithExpr a, int b) { return a + MkNum(a, b); } /// Operator overloading for arithmetical operator - public static ArithExpr operator +(ArithExpr a, double b) => a + MkNum(a, b); + public static ArithExpr operator +(ArithExpr a, double b) { return a + MkNum(a, b); } /// Operator overloading for arithmetical operator - public static ArithExpr operator +(int a, ArithExpr b) => MkNum(b, a) + b; + public static ArithExpr operator +(int a, ArithExpr b) { return MkNum(b, a) + b; } /// Operator overloading for arithmetical operator - public static ArithExpr operator +(double a, ArithExpr b) => MkNum(b, a) + b; + public static ArithExpr operator +(double a, ArithExpr b) { return MkNum(b, a) + b; } /// Operator overloading for arithmetical operator - public static ArithExpr operator *(ArithExpr a, ArithExpr b) => a.Context.MkMul(a, b); + public static ArithExpr operator *(ArithExpr a, ArithExpr b) { return a.Context.MkMul(a, b); } /// Operator overloading for arithmetical operator - public static ArithExpr operator *(ArithExpr a, int b) => a * MkNum(a, b); + public static ArithExpr operator *(ArithExpr a, int b) { return a * MkNum(a, b); } /// Operator overloading for arithmetical operator - public static ArithExpr operator *(ArithExpr a, double b) => a * MkNum(a, b); + public static ArithExpr operator *(ArithExpr a, double b) { return a * MkNum(a, b); } /// Operator overloading for arithmetical operator - public static ArithExpr operator *(int a, ArithExpr b) => MkNum(b, a) * b; + public static ArithExpr operator *(int a, ArithExpr b) { return MkNum(b, a) * b; } /// Operator overloading for arithmetical operator - public static ArithExpr operator *(double a, ArithExpr b) => MkNum(b, a) * b; + public static ArithExpr operator *(double a, ArithExpr b) { return MkNum(b, a) * b; } /// Operator overloading for arithmetical operator - public static BoolExpr operator <=(ArithExpr a, ArithExpr b) => a.Context.MkLe(a, b); + public static BoolExpr operator <=(ArithExpr a, ArithExpr b) { return a.Context.MkLe(a, b); } /// Operator overloading for arithmetical operator - public static BoolExpr operator <=(ArithExpr a, int b) => a <= MkNum(a, b); + public static BoolExpr operator <=(ArithExpr a, int b) { return a <= MkNum(a, b); } /// Operator overloading for arithmetical operator - public static BoolExpr operator <=(ArithExpr a, double b) => a <= MkNum(a, b); + public static BoolExpr operator <=(ArithExpr a, double b) { return a <= MkNum(a, b); } /// Operator overloading for arithmetical operator - public static BoolExpr operator <=(int a, ArithExpr b) => MkNum(b, a) <= b; + public static BoolExpr operator <=(int a, ArithExpr b) { return MkNum(b, a) <= b; } /// Operator overloading for arithmetical operator - public static BoolExpr operator <=(double a, ArithExpr b) => MkNum(b, a) <= b; + public static BoolExpr operator <=(double a, ArithExpr b) { return MkNum(b, a) <= b; } /// Operator overloading for arithmetical operator - public static BoolExpr operator <(ArithExpr a, ArithExpr b) => a.Context.MkLt(a, b); + public static BoolExpr operator <(ArithExpr a, ArithExpr b) { return a.Context.MkLt(a, b); } /// Operator overloading for arithmetical operator - public static BoolExpr operator <(ArithExpr a, int b) => a < MkNum(a, b); + public static BoolExpr operator <(ArithExpr a, int b) { return a < MkNum(a, b); } /// Operator overloading for arithmetical operator - public static BoolExpr operator <(ArithExpr a, double b) => a < MkNum(a, b); + public static BoolExpr operator <(ArithExpr a, double b) { return a < MkNum(a, b); } /// Operator overloading for arithmetical operator - public static BoolExpr operator <(int a, ArithExpr b) => MkNum(b, a) < b; + public static BoolExpr operator <(int a, ArithExpr b) { return MkNum(b, a) < b; } /// Operator overloading for arithmetical operator - public static BoolExpr operator <(double a, ArithExpr b) => MkNum(b, a) < b; + public static BoolExpr operator <(double a, ArithExpr b) { return MkNum(b, a) < b; } /// Operator overloading for arithmetical operator - public static BoolExpr operator >(ArithExpr a, ArithExpr b) => a.Context.MkGt(a, b); + public static BoolExpr operator >(ArithExpr a, ArithExpr b) { return a.Context.MkGt(a, b); } /// Operator overloading for arithmetical operator - public static BoolExpr operator >(ArithExpr a, int b) => a > MkNum(a, b); + public static BoolExpr operator >(ArithExpr a, int b) { return a > MkNum(a, b); } /// Operator overloading for arithmetical operator - public static BoolExpr operator >(ArithExpr a, double b) => a > MkNum(a, b); + public static BoolExpr operator >(ArithExpr a, double b) { return a > MkNum(a, b); } /// Operator overloading for arithmetical operator - public static BoolExpr operator >(int a, ArithExpr b) => MkNum(b, a) > b; + public static BoolExpr operator >(int a, ArithExpr b) { return MkNum(b, a) > b; } /// Operator overloading for arithmetical operator - public static BoolExpr operator >(double a, ArithExpr b) => MkNum(b, a) > b; + public static BoolExpr operator >(double a, ArithExpr b) { return MkNum(b, a) > b; } /// Operator overloading for arithmetical operator - public static BoolExpr operator >=(ArithExpr a, ArithExpr b) => a.Context.MkGe(a, b); + public static BoolExpr operator >=(ArithExpr a, ArithExpr b) { return a.Context.MkGe(a, b); } /// Operator overloading for arithmetical operator - public static BoolExpr operator >=(ArithExpr a, int b) => a >= MkNum(a, b); + public static BoolExpr operator >=(ArithExpr a, int b) { return a >= MkNum(a, b); } /// Operator overloading for arithmetical operator - public static BoolExpr operator >=(ArithExpr a, double b) => a >= MkNum(a, b); + public static BoolExpr operator >=(ArithExpr a, double b) { return a >= MkNum(a, b); } /// Operator overloading for arithmetical operator - public static BoolExpr operator >=(int a, ArithExpr b) => MkNum(b, a) >= b; + public static BoolExpr operator >=(int a, ArithExpr b) { return MkNum(b, a) >= b; } /// Operator overloading for arithmetical operator - public static BoolExpr operator >=(double a, ArithExpr b) => MkNum(b, a) >= b; + public static BoolExpr operator >=(double a, ArithExpr b) { return MkNum(b, a) >= b; } #endregion } diff --git a/src/api/dotnet/BoolExpr.cs b/src/api/dotnet/BoolExpr.cs index 5bac65243..b25d99570 100644 --- a/src/api/dotnet/BoolExpr.cs +++ b/src/api/dotnet/BoolExpr.cs @@ -37,18 +37,18 @@ namespace Microsoft.Z3 #region Operators /// Disjunction of Boolean expressions - public static BoolExpr operator|(BoolExpr a, BoolExpr b) => a.Context.MkOr(a, b); + public static BoolExpr operator|(BoolExpr a, BoolExpr b) { return a.Context.MkOr(a, b); } /// /// Conjunction of Boolean expressions /// - public static BoolExpr operator &(BoolExpr a, BoolExpr b) => a.Context.MkAnd(a, b); + public static BoolExpr operator &(BoolExpr a, BoolExpr b) { return a.Context.MkAnd(a, b); } /// Xor of Boolean expressions - public static BoolExpr operator ^(BoolExpr a, BoolExpr b) => a.Context.MkXor(a, b); + public static BoolExpr operator ^(BoolExpr a, BoolExpr b) { return a.Context.MkXor(a, b); } /// Negation - public static BoolExpr operator !(BoolExpr a) => a.Context.MkNot(a); + public static BoolExpr operator !(BoolExpr a) { return a.Context.MkNot(a); } #endregion }