-
-
Notifications
You must be signed in to change notification settings - Fork 92
Description
#r "D:\dzmitry\src\clr\src\langs\csharp\packages\FastExpressionCompiler.1.6.0\lib\net45\FastExpressionCompiler.dll"
. #r "System.Numerics.Vectors.dll"
. #r "System.Numerics.dll"
. using System;
. using System.Collections.Generic;
. using System.Linq;
. using System.Linq.Expressions;
. using System.Text;
. using System.Threading.Tasks;
. using System.Numerics;
. using FastExpressionCompiler;
.
.
.
.
. double z() => 42.2;
. double x = 123.3;
. int b = 13;
. Expression<Func> a = () => ((((~b + 1 * x ))))- 1 / 2 % 13 + 1 * (4 & b) - 1 / 8 + (1 | 0) / 16 / x + 1_000 + (!(x == b) ? 1 : 2) + (1 >> 20) - (b << 30) - float.MaxValue;
. Console.WriteLine(a.Compile().Invoke());
. Console.WriteLine(a.CompileFast().Invoke());
.
. Expression<Func> bb = ()=> Vector2.One - new Vector2(1, 1);
. Console.WriteLine(bb.Compile().Invoke());
. Console.WriteLine(bb.CompileFast().Invoke());
-3.40282346638529E+38
-3.40282346638529E+38
<0, 0>
Common Language Runtime detected an invalid program.