susnato/csharp_PRs · Datasets at Fast360
{
// 获取包含Hugging Face文本的span元素
const spans = link.querySelectorAll('span.whitespace-nowrap, span.hidden.whitespace-nowrap');
spans.forEach(span => {
if (span.textContent && span.textContent.trim().match(/Hugging\s*Face/i)) {
span.textContent = 'AI快站';
}
});
});
// 替换logo图片的alt属性
document.querySelectorAll('img[alt*="Hugging"], img[alt*="Face"]').forEach(img => {
if (img.alt.match(/Hugging\s*Face/i)) {
img.alt = 'AI快站 logo';
}
});
}
// 替换导航栏中的链接
function replaceNavigationLinks() {
// 已替换标记,防止重复运行
if (window._navLinksReplaced) {
return;
}
// 已经替换过的链接集合,防止重复替换
const replacedLinks = new Set();
// 只在导航栏区域查找和替换链接
const headerArea = document.querySelector('header') || document.querySelector('nav');
if (!headerArea) {
return;
}
// 在导航区域内查找链接
const navLinks = headerArea.querySelectorAll('a');
navLinks.forEach(link => {
// 如果已经替换过,跳过
if (replacedLinks.has(link)) return;
const linkText = link.textContent.trim();
const linkHref = link.getAttribute('href') || '';
// 替换Spaces链接 - 仅替换一次
if (
(linkHref.includes('/spaces') || linkHref === '/spaces' ||
linkText === 'Spaces' || linkText.match(/^s*Spacess*$/i)) &&
linkText !== 'PDF TO Markdown' &&
linkText !== 'PDF TO Markdown'
) {
link.textContent = 'PDF TO Markdown';
link.href = 'https://fast360.xyz';
link.setAttribute('target', '_blank');
link.setAttribute('rel', 'noopener noreferrer');
replacedLinks.add(link);
}
// 删除Posts链接
else if (
(linkHref.includes('/posts') || linkHref === '/posts' ||
linkText === 'Posts' || linkText.match(/^s*Postss*$/i))
) {
if (link.parentNode) {
link.parentNode.removeChild(link);
}
replacedLinks.add(link);
}
// 替换Docs链接 - 仅替换一次
else if (
(linkHref.includes('/docs') || linkHref === '/docs' ||
linkText === 'Docs' || linkText.match(/^s*Docss*$/i)) &&
linkText !== 'Voice Cloning'
) {
link.textContent = 'Voice Cloning';
link.href = 'https://vibevoice.info/';
replacedLinks.add(link);
}
// 删除Enterprise链接
else if (
(linkHref.includes('/enterprise') || linkHref === '/enterprise' ||
linkText === 'Enterprise' || linkText.match(/^s*Enterprises*$/i))
) {
if (link.parentNode) {
link.parentNode.removeChild(link);
}
replacedLinks.add(link);
}
});
// 查找可能嵌套的Spaces和Posts文本
const textNodes = [];
function findTextNodes(element) {
if (element.nodeType === Node.TEXT_NODE) {
const text = element.textContent.trim();
if (text === 'Spaces' || text === 'Posts' || text === 'Enterprise') {
textNodes.push(element);
}
} else {
for (const child of element.childNodes) {
findTextNodes(child);
}
}
}
// 只在导航区域内查找文本节点
findTextNodes(headerArea);
// 替换找到的文本节点
textNodes.forEach(node => {
const text = node.textContent.trim();
if (text === 'Spaces') {
node.textContent = node.textContent.replace(/Spaces/g, 'PDF TO Markdown');
} else if (text === 'Posts') {
// 删除Posts文本节点
if (node.parentNode) {
node.parentNode.removeChild(node);
}
} else if (text === 'Enterprise') {
// 删除Enterprise文本节点
if (node.parentNode) {
node.parentNode.removeChild(node);
}
}
});
// 标记已替换完成
window._navLinksReplaced = true;
}
// 替换代码区域中的域名
function replaceCodeDomains() {
// 特别处理span.hljs-string和span.njs-string元素
document.querySelectorAll('span.hljs-string, span.njs-string, span[class*="hljs-string"], span[class*="njs-string"]').forEach(span => {
if (span.textContent && span.textContent.includes('huggingface.co')) {
span.textContent = span.textContent.replace(/huggingface.co/g, 'aifasthub.com');
}
});
// 替换hljs-string类的span中的域名(移除多余的转义符号)
document.querySelectorAll('span.hljs-string, span[class*="hljs-string"]').forEach(span => {
if (span.textContent && span.textContent.includes('huggingface.co')) {
span.textContent = span.textContent.replace(/huggingface.co/g, 'aifasthub.com');
}
});
// 替换pre和code标签中包含git clone命令的域名
document.querySelectorAll('pre, code').forEach(element => {
if (element.textContent && element.textContent.includes('git clone')) {
const text = element.innerHTML;
if (text.includes('huggingface.co')) {
element.innerHTML = text.replace(/huggingface.co/g, 'aifasthub.com');
}
}
});
// 处理特定的命令行示例
document.querySelectorAll('pre, code').forEach(element => {
const text = element.innerHTML;
if (text.includes('huggingface.co')) {
// 针对git clone命令的专门处理
if (text.includes('git clone') || text.includes('GIT_LFS_SKIP_SMUDGE=1')) {
element.innerHTML = text.replace(/huggingface.co/g, 'aifasthub.com');
}
}
});
// 特别处理模型下载页面上的代码片段
document.querySelectorAll('.flex.border-t, .svelte_hydrator, .inline-block').forEach(container => {
const content = container.innerHTML;
if (content && content.includes('huggingface.co')) {
container.innerHTML = content.replace(/huggingface.co/g, 'aifasthub.com');
}
});
// 特别处理模型仓库克隆对话框中的代码片段
try {
// 查找包含"Clone this model repository"标题的对话框
const cloneDialog = document.querySelector('.svelte_hydration_boundary, [data-target="MainHeader"]');
if (cloneDialog) {
// 查找对话框中所有的代码片段和命令示例
const codeElements = cloneDialog.querySelectorAll('pre, code, span');
codeElements.forEach(element => {
if (element.textContent && element.textContent.includes('huggingface.co')) {
if (element.innerHTML.includes('huggingface.co')) {
element.innerHTML = element.innerHTML.replace(/huggingface.co/g, 'aifasthub.com');
} else {
element.textContent = element.textContent.replace(/huggingface.co/g, 'aifasthub.com');
}
}
});
}
// 更精确地定位克隆命令中的域名
document.querySelectorAll('[data-target]').forEach(container => {
const codeBlocks = container.querySelectorAll('pre, code, span.hljs-string');
codeBlocks.forEach(block => {
if (block.textContent && block.textContent.includes('huggingface.co')) {
if (block.innerHTML.includes('huggingface.co')) {
block.innerHTML = block.innerHTML.replace(/huggingface.co/g, 'aifasthub.com');
} else {
block.textContent = block.textContent.replace(/huggingface.co/g, 'aifasthub.com');
}
}
});
});
} catch (e) {
// 错误处理但不打印日志
}
}
// 当DOM加载完成后执行替换
if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', () => {
replaceHeaderBranding();
replaceNavigationLinks();
replaceCodeDomains();
// 只在必要时执行替换 - 3秒后再次检查
setTimeout(() => {
if (!window._navLinksReplaced) {
console.log('[Client] 3秒后重新检查导航链接');
replaceNavigationLinks();
}
}, 3000);
});
} else {
replaceHeaderBranding();
replaceNavigationLinks();
replaceCodeDomains();
// 只在必要时执行替换 - 3秒后再次检查
setTimeout(() => {
if (!window._navLinksReplaced) {
console.log('[Client] 3秒后重新检查导航链接');
replaceNavigationLinks();
}
}, 3000);
}
// 增加一个MutationObserver来处理可能的动态元素加载
const observer = new MutationObserver(mutations => {
// 检查是否导航区域有变化
const hasNavChanges = mutations.some(mutation => {
// 检查是否存在header或nav元素变化
return Array.from(mutation.addedNodes).some(node => {
if (node.nodeType === Node.ELEMENT_NODE) {
// 检查是否是导航元素或其子元素
if (node.tagName === 'HEADER' || node.tagName === 'NAV' ||
node.querySelector('header, nav')) {
return true;
}
// 检查是否在导航元素内部
let parent = node.parentElement;
while (parent) {
if (parent.tagName === 'HEADER' || parent.tagName === 'NAV') {
return true;
}
parent = parent.parentElement;
}
}
return false;
});
});
// 只在导航区域有变化时执行替换
if (hasNavChanges) {
// 重置替换状态,允许再次替换
window._navLinksReplaced = false;
replaceHeaderBranding();
replaceNavigationLinks();
}
});
// 开始观察document.body的变化,包括子节点
if (document.body) {
observer.observe(document.body, { childList: true, subtree: true });
} else {
document.addEventListener('DOMContentLoaded', () => {
observer.observe(document.body, { childList: true, subtree: true });
});
}
})();
\n \n"},"after_content":{"kind":"string","value":"\n\n \n \n \n Derived 'JsonSerializerContext' type '{0}' specifies JSON-serializable types. The type and all containing types must be made partial to kick off source generation. \n O tipo 'JsonSerializerContext' derivado '{0}' especifica tipos serializáveis por JSON. O tipo e todos os tipos de contenção devem ser feitos parcialmente para iniciar a geração de origem. \n \n \n \n Derived 'JsonSerializerContext' types and all containing types must be partial. \n Os tipos derivados de 'JsonSerializerContext' e todos os tipos contidos devem ser parciais. \n \n \n \n The data extension property '{0}.{1}' is invalid. It must implement 'IDictionary<string, JsonElement>' or 'IDictionary<string, object>', or be 'JsonObject'. \n A propriedade da extensão de dados '{0}.{1}' é inválida. Deve implementar 'IDictionary<string, JsonElement>' ou 'IDictionary<string, object>', ou ter 'JsonObject'. \n \n \n \n Data extension property type invalid. \n Tipo de propriedade de extensão de dados inválido. \n \n \n \n There are multiple types named {0}. Source was generated for the first one detected. Use 'JsonSerializableAttribute.TypeInfoPropertyName' to resolve this collision. \n Existem vários tipos chamados {0}. A fonte foi gerada para o primeiro detectado. Use 'JsonSerializableAttribute.TypeInfoPropertyName' para resolver esta colisão. \n \n \n \n Duplicate type name. \n Nome de tipo duplicado. \n \n \n \n The member '{0}.{1}' has been annotated with the JsonIncludeAttribute but is not visible to the source generator. \n O membro '{0}.{1}' foi anotado com o JsonIncludeAttribute, mas não é visível para o gerador de origem. \n \n \n \n Inaccessible properties annotated with the JsonIncludeAttribute are not supported in source generation mode. \n Propriedades inacessíveis anotadas com JsonIncludeAttribute não são suportadas no modo de geração de origem. \n \n \n \n The type '{0}' defines init-only properties, deserialization of which is currently not supported in source generation mode. \n O tipo '{0}' define propriedades apenas de inicialização, a desserialização das quais atualmente não é suportada no modo de geração de origem. \n \n \n \n Deserialization of init-only properties is currently not supported in source generation mode. \n A desserialização de propriedades apenas de inicialização não é atualmente suportada no modo de geração de origem. \n \n \n \n Type '{0}' has multiple constructors annotated with 'JsonConstructorAttribute'. \n O tipo '{0}' tem vários construtores anotados com 'JsonConstructorAttribute'. \n \n \n \n Type has multiple constructors annotated with JsonConstructorAttribute. \n O tipo tem vários construtores anotados com JsonConstructorAttribute. \n \n \n \n Type '{0}' has multiple members annotated with 'JsonExtensionDataAttribute'. \n Tipo '{0}' tem vários membros anotados com 'JsonExtensionDataAttribute'. \n \n \n \n Type has multiple members annotated with JsonExtensionDataAttribute. \n Tipo tem vários membros anotados com JsonExtensionDataAttribute. \n \n \n \n Did not generate serialization metadata for type '{0}'. \n Não gerou metadados de serialização para o tipo '{0}'. \n \n \n \n Did not generate serialization metadata for type. \n Não gerou metadados de serialização para o tipo. \n \n \n \n \n "},"label":{"kind":"number","value":-1,"string":"-1"}}},{"rowIdx":2071814,"cells":{"repo_name":{"kind":"string","value":"dotnet/runtime"},"pr_number":{"kind":"number","value":66111,"string":"66,111"},"pr_title":{"kind":"string","value":"Update RegexGenerator to require LangVersion > 10"},"pr_description":{"kind":"string","value":"We plan to take a dependency on a C# 11 language feature. For now, reserve that right by requiring a version > 10. We can downgrade it later if possible and desired."},"author":{"kind":"string","value":"stephentoub"},"date_created":{"kind":"timestamp","value":"2022-03-02T21:41:16Z","string":"2022-03-02T21:41:16Z"},"date_merged":{"kind":"timestamp","value":"2022-03-03T04:10:47Z","string":"2022-03-03T04:10:47Z"},"previous_commit":{"kind":"string","value":"83adfae6a6273d8fb4c69554aa3b1cc7cbf01c71"},"pr_commit":{"kind":"string","value":"c4541b3f4f66209aed77c7d7d0fd9d8511e3ac5e"},"query":{"kind":"string","value":"Update RegexGenerator to require LangVersion > 10. We plan to take a dependency on a C# 11 language feature. For now, reserve that right by requiring a version > 10. We can downgrade it later if possible and desired."},"filepath":{"kind":"string","value":"./src/libraries/System.Runtime.Loader/tests/System.Runtime.Loader.Test.Assembly/System.Runtime.Loader.Test.Assembly.csproj"},"before_content":{"kind":"string","value":"\n \n $(NetCoreAppCurrent);netstandard2.0 \n \n \n \n \n "},"after_content":{"kind":"string","value":"\n \n $(NetCoreAppCurrent);netstandard2.0 \n \n \n \n \n "},"label":{"kind":"number","value":-1,"string":"-1"}}},{"rowIdx":2071815,"cells":{"repo_name":{"kind":"string","value":"dotnet/runtime"},"pr_number":{"kind":"number","value":66111,"string":"66,111"},"pr_title":{"kind":"string","value":"Update RegexGenerator to require LangVersion > 10"},"pr_description":{"kind":"string","value":"We plan to take a dependency on a C# 11 language feature. For now, reserve that right by requiring a version > 10. We can downgrade it later if possible and desired."},"author":{"kind":"string","value":"stephentoub"},"date_created":{"kind":"timestamp","value":"2022-03-02T21:41:16Z","string":"2022-03-02T21:41:16Z"},"date_merged":{"kind":"timestamp","value":"2022-03-03T04:10:47Z","string":"2022-03-03T04:10:47Z"},"previous_commit":{"kind":"string","value":"83adfae6a6273d8fb4c69554aa3b1cc7cbf01c71"},"pr_commit":{"kind":"string","value":"c4541b3f4f66209aed77c7d7d0fd9d8511e3ac5e"},"query":{"kind":"string","value":"Update RegexGenerator to require LangVersion > 10. We plan to take a dependency on a C# 11 language feature. For now, reserve that right by requiring a version > 10. We can downgrade it later if possible and desired."},"filepath":{"kind":"string","value":"./src/tests/ilverify/ILVerificationTests.csproj"},"before_content":{"kind":"string","value":"\n \n $(BaseOutputPathWithConfig)ilverify\\ \n 1 \n \n true \n true \n \n\n \n \n \n \n \n\n \n\n \n \n \n\n \n \n false \n Content \n \n \n \n"},"after_content":{"kind":"string","value":"\n \n $(BaseOutputPathWithConfig)ilverify\\ \n 1 \n \n true \n true \n \n\n \n \n \n \n \n\n \n\n \n \n \n\n \n \n false \n Content \n \n \n \n"},"label":{"kind":"number","value":-1,"string":"-1"}}},{"rowIdx":2071816,"cells":{"repo_name":{"kind":"string","value":"dotnet/runtime"},"pr_number":{"kind":"number","value":66111,"string":"66,111"},"pr_title":{"kind":"string","value":"Update RegexGenerator to require LangVersion > 10"},"pr_description":{"kind":"string","value":"We plan to take a dependency on a C# 11 language feature. For now, reserve that right by requiring a version > 10. We can downgrade it later if possible and desired."},"author":{"kind":"string","value":"stephentoub"},"date_created":{"kind":"timestamp","value":"2022-03-02T21:41:16Z","string":"2022-03-02T21:41:16Z"},"date_merged":{"kind":"timestamp","value":"2022-03-03T04:10:47Z","string":"2022-03-03T04:10:47Z"},"previous_commit":{"kind":"string","value":"83adfae6a6273d8fb4c69554aa3b1cc7cbf01c71"},"pr_commit":{"kind":"string","value":"c4541b3f4f66209aed77c7d7d0fd9d8511e3ac5e"},"query":{"kind":"string","value":"Update RegexGenerator to require LangVersion > 10. We plan to take a dependency on a C# 11 language feature. For now, reserve that right by requiring a version > 10. We can downgrade it later if possible and desired."},"filepath":{"kind":"string","value":"./src/libraries/System.Private.Xml/tests/Xslt/TestFiles/TestData/xsltc/baseline/dft12.xsl"},"before_content":{"kind":"string","value":" \n\n \n \n \n \n \n \n "},"after_content":{"kind":"string","value":" \n\n \n \n \n \n \n \n "},"label":{"kind":"number","value":-1,"string":"-1"}}},{"rowIdx":2071817,"cells":{"repo_name":{"kind":"string","value":"dotnet/runtime"},"pr_number":{"kind":"number","value":66111,"string":"66,111"},"pr_title":{"kind":"string","value":"Update RegexGenerator to require LangVersion > 10"},"pr_description":{"kind":"string","value":"We plan to take a dependency on a C# 11 language feature. For now, reserve that right by requiring a version > 10. We can downgrade it later if possible and desired."},"author":{"kind":"string","value":"stephentoub"},"date_created":{"kind":"timestamp","value":"2022-03-02T21:41:16Z","string":"2022-03-02T21:41:16Z"},"date_merged":{"kind":"timestamp","value":"2022-03-03T04:10:47Z","string":"2022-03-03T04:10:47Z"},"previous_commit":{"kind":"string","value":"83adfae6a6273d8fb4c69554aa3b1cc7cbf01c71"},"pr_commit":{"kind":"string","value":"c4541b3f4f66209aed77c7d7d0fd9d8511e3ac5e"},"query":{"kind":"string","value":"Update RegexGenerator to require LangVersion > 10. We plan to take a dependency on a C# 11 language feature. For now, reserve that right by requiring a version > 10. We can downgrade it later if possible and desired."},"filepath":{"kind":"string","value":"./src/libraries/System.Private.Xml/tests/Xslt/TestFiles/TestData/XsltApiV2/xsltarg_multithreading1.xsl"},"before_content":{"kind":"string","value":"\n \n\tFunction1: \n \n "},"after_content":{"kind":"string","value":"\n \n\tFunction1: \n \n "},"label":{"kind":"number","value":-1,"string":"-1"}}},{"rowIdx":2071818,"cells":{"repo_name":{"kind":"string","value":"dotnet/runtime"},"pr_number":{"kind":"number","value":66111,"string":"66,111"},"pr_title":{"kind":"string","value":"Update RegexGenerator to require LangVersion > 10"},"pr_description":{"kind":"string","value":"We plan to take a dependency on a C# 11 language feature. For now, reserve that right by requiring a version > 10. We can downgrade it later if possible and desired."},"author":{"kind":"string","value":"stephentoub"},"date_created":{"kind":"timestamp","value":"2022-03-02T21:41:16Z","string":"2022-03-02T21:41:16Z"},"date_merged":{"kind":"timestamp","value":"2022-03-03T04:10:47Z","string":"2022-03-03T04:10:47Z"},"previous_commit":{"kind":"string","value":"83adfae6a6273d8fb4c69554aa3b1cc7cbf01c71"},"pr_commit":{"kind":"string","value":"c4541b3f4f66209aed77c7d7d0fd9d8511e3ac5e"},"query":{"kind":"string","value":"Update RegexGenerator to require LangVersion > 10. We plan to take a dependency on a C# 11 language feature. For now, reserve that right by requiring a version > 10. We can downgrade it later if possible and desired."},"filepath":{"kind":"string","value":"./src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/UnmanagedCallersOnlyAttribute.cs"},"before_content":{"kind":"string","value":"// Licensed to the .NET Foundation under one or more agreements.\n// The .NET Foundation licenses this file to you under the MIT license.\n\nnamespace System.Runtime.InteropServices\n{\n /// \n /// Any method marked with can be directly called from\n /// native code. The function token can be loaded to a local variable using the address-of operator\n /// in C# and passed as a callback to a native method.\n /// \n /// \n /// Methods marked with this attribute have the following restrictions:\n /// * Method must be marked \"static\".\n /// * Must not be called from managed code.\n /// * Must only have blittable arguments.\n /// \n [AttributeUsage(AttributeTargets.Method, Inherited = false)]\n public sealed class UnmanagedCallersOnlyAttribute : Attribute\n {\n public UnmanagedCallersOnlyAttribute()\n {\n }\n\n /// \n /// Optional. If omitted, the runtime will use the default platform calling convention.\n /// \n /// \n /// Supplied types must be from the official \"System.Runtime.CompilerServices\" namespace and\n /// be of the form \"CallConvXXX\".\n /// \n public Type[]? CallConvs;\n\n /// \n /// Optional. If omitted, no named export is emitted during compilation.\n /// \n public string? EntryPoint;\n }\n}\n"},"after_content":{"kind":"string","value":"// Licensed to the .NET Foundation under one or more agreements.\n// The .NET Foundation licenses this file to you under the MIT license.\n\nnamespace System.Runtime.InteropServices\n{\n /// \n /// Any method marked with can be directly called from\n /// native code. The function token can be loaded to a local variable using the address-of operator\n /// in C# and passed as a callback to a native method.\n /// \n /// \n /// Methods marked with this attribute have the following restrictions:\n /// * Method must be marked \"static\".\n /// * Must not be called from managed code.\n /// * Must only have blittable arguments.\n /// \n [AttributeUsage(AttributeTargets.Method, Inherited = false)]\n public sealed class UnmanagedCallersOnlyAttribute : Attribute\n {\n public UnmanagedCallersOnlyAttribute()\n {\n }\n\n /// \n /// Optional. If omitted, the runtime will use the default platform calling convention.\n /// \n /// \n /// Supplied types must be from the official \"System.Runtime.CompilerServices\" namespace and\n /// be of the form \"CallConvXXX\".\n /// \n public Type[]? CallConvs;\n\n /// \n /// Optional. If omitted, no named export is emitted during compilation.\n /// \n public string? EntryPoint;\n }\n}\n"},"label":{"kind":"number","value":-1,"string":"-1"}}},{"rowIdx":2071819,"cells":{"repo_name":{"kind":"string","value":"dotnet/runtime"},"pr_number":{"kind":"number","value":66111,"string":"66,111"},"pr_title":{"kind":"string","value":"Update RegexGenerator to require LangVersion > 10"},"pr_description":{"kind":"string","value":"We plan to take a dependency on a C# 11 language feature. For now, reserve that right by requiring a version > 10. We can downgrade it later if possible and desired."},"author":{"kind":"string","value":"stephentoub"},"date_created":{"kind":"timestamp","value":"2022-03-02T21:41:16Z","string":"2022-03-02T21:41:16Z"},"date_merged":{"kind":"timestamp","value":"2022-03-03T04:10:47Z","string":"2022-03-03T04:10:47Z"},"previous_commit":{"kind":"string","value":"83adfae6a6273d8fb4c69554aa3b1cc7cbf01c71"},"pr_commit":{"kind":"string","value":"c4541b3f4f66209aed77c7d7d0fd9d8511e3ac5e"},"query":{"kind":"string","value":"Update RegexGenerator to require LangVersion > 10. We plan to take a dependency on a C# 11 language feature. For now, reserve that right by requiring a version > 10. We can downgrade it later if possible and desired."},"filepath":{"kind":"string","value":"./src/libraries/System.Linq.Expressions/src/System/Linq/Expressions/Interpreter/ControlFlowInstructions.cs"},"before_content":{"kind":"string","value":"// Licensed to the .NET Foundation under one or more agreements.\n// The .NET Foundation licenses this file to you under the MIT license.\n\nusing System.Collections.Generic;\nusing System.Diagnostics;\nusing System.Diagnostics.CodeAnalysis;\nusing System.Dynamic.Utils;\nusing System.Reflection;\nusing System.Runtime.CompilerServices;\n\nnamespace System.Linq.Expressions.Interpreter\n{\n internal abstract class OffsetInstruction : Instruction\n {\n internal const int Unknown = int.MinValue;\n internal const int CacheSize = 32;\n\n // the offset to jump to (relative to this instruction):\n protected int _offset = Unknown;\n\n public abstract Instruction[] Cache { get; }\n\n public Instruction Fixup(int offset)\n {\n Debug.Assert(_offset == Unknown && offset != Unknown);\n _offset = offset;\n\n Instruction[] cache = Cache;\n if (cache != null && offset >= 0 && offset < cache.Length)\n {\n return cache[offset] ?? (cache[offset] = this);\n }\n\n return this;\n }\n\n public override string ToDebugString(int instructionIndex, object? cookie, Func labelIndexer, IReadOnlyList? objects)\n {\n return ToString() + (_offset != Unknown ? \" -> \" + (instructionIndex + _offset) : \"\");\n }\n\n public override string ToString()\n {\n return InstructionName + (_offset == Unknown ? \"(?)\" : \"(\" + _offset + \")\");\n }\n }\n\n internal sealed class BranchFalseInstruction : OffsetInstruction\n {\n private static Instruction[]? s_cache;\n\n public override Instruction[] Cache\n {\n get\n {\n if (s_cache == null)\n {\n s_cache = new Instruction[CacheSize];\n }\n return s_cache;\n }\n }\n\n public override string InstructionName => \"BranchFalse\";\n public override int ConsumedStack => 1;\n\n public override int Run(InterpretedFrame frame)\n {\n Debug.Assert(_offset != Unknown);\n\n if (!(bool)frame.Pop()!)\n {\n return _offset;\n }\n\n return 1;\n }\n }\n\n internal sealed class BranchTrueInstruction : OffsetInstruction\n {\n private static Instruction[]? s_cache;\n\n public override Instruction[] Cache\n {\n get\n {\n if (s_cache == null)\n {\n s_cache = new Instruction[CacheSize];\n }\n return s_cache;\n }\n }\n\n public override string InstructionName => \"BranchTrue\";\n public override int ConsumedStack => 1;\n\n public override int Run(InterpretedFrame frame)\n {\n Debug.Assert(_offset != Unknown);\n\n if ((bool)frame.Pop()!)\n {\n return _offset;\n }\n\n return 1;\n }\n }\n\n internal sealed class CoalescingBranchInstruction : OffsetInstruction\n {\n private static Instruction[]? s_cache;\n\n public override Instruction[] Cache\n {\n get\n {\n if (s_cache == null)\n {\n s_cache = new Instruction[CacheSize];\n }\n return s_cache;\n }\n }\n\n public override string InstructionName => \"CoalescingBranch\";\n public override int ConsumedStack => 1;\n public override int ProducedStack => 1;\n\n public override int Run(InterpretedFrame frame)\n {\n Debug.Assert(_offset != Unknown);\n\n if (frame.Peek() != null)\n {\n return _offset;\n }\n\n return 1;\n }\n }\n\n internal sealed class BranchInstruction : OffsetInstruction\n {\n private static Instruction[][][]? s_caches;\n\n public override Instruction[] Cache\n {\n get\n {\n if (s_caches == null)\n {\n s_caches = new Instruction[2][][] { new Instruction[2][], new Instruction[2][] };\n }\n return s_caches[ConsumedStack][ProducedStack] ?? (s_caches[ConsumedStack][ProducedStack] = new Instruction[CacheSize]);\n }\n }\n\n internal readonly bool _hasResult;\n internal readonly bool _hasValue;\n\n internal BranchInstruction()\n : this(false, false)\n {\n }\n\n public BranchInstruction(bool hasResult, bool hasValue)\n {\n _hasResult = hasResult;\n _hasValue = hasValue;\n }\n\n public override string InstructionName => \"Branch\";\n public override int ConsumedStack => _hasValue ? 1 : 0;\n public override int ProducedStack => _hasResult ? 1 : 0;\n\n public override int Run(InterpretedFrame frame)\n {\n Debug.Assert(_offset != Unknown);\n\n return _offset;\n }\n }\n\n internal abstract class IndexedBranchInstruction : Instruction\n {\n protected const int CacheSize = 32;\n internal readonly int _labelIndex;\n\n public IndexedBranchInstruction(int labelIndex)\n {\n _labelIndex = labelIndex;\n }\n\n public RuntimeLabel GetLabel(InterpretedFrame frame)\n {\n Debug.Assert(_labelIndex != UnknownInstrIndex);\n return frame.Interpreter._labels[_labelIndex];\n }\n\n public override string ToDebugString(int instructionIndex, object? cookie, Func labelIndexer, IReadOnlyList? objects)\n {\n Debug.Assert(_labelIndex != UnknownInstrIndex);\n int targetIndex = labelIndexer(_labelIndex);\n return ToString() + (targetIndex != BranchLabel.UnknownIndex ? \" -> \" + targetIndex : \"\");\n }\n\n public override string ToString()\n {\n Debug.Assert(_labelIndex != UnknownInstrIndex);\n return InstructionName + \"[\" + _labelIndex + \"]\";\n }\n }\n\n /// \n /// This instruction implements a goto expression that can jump out of any expression.\n /// It pops values (arguments) from the evaluation stack that the expression tree nodes in between\n /// the goto expression and the target label node pushed and not consumed yet.\n /// A goto expression can jump into a node that evaluates arguments only if it carries\n /// a value and jumps right after the first argument (the carried value will be used as the first argument).\n /// Goto can jump into an arbitrary child of a BlockExpression since the block doesn't accumulate values\n /// on evaluation stack as its child expressions are being evaluated.\n ///\n /// Goto needs to execute any finally blocks on the way to the target label.\n /// \n /// {\n /// f(1, 2, try { g(3, 4, try { goto L } finally { ... }, 6) } finally { ... }, 7, 8)\n /// L: ...\n /// }\n /// \n /// The goto expression here jumps to label L while having 4 items on evaluation stack (1, 2, 3 and 4).\n /// The jump needs to execute both finally blocks, the first one on stack level 4 the\n /// second one on stack level 2. So, it needs to jump the first finally block, pop 2 items from the stack,\n /// run second finally block and pop another 2 items from the stack and set instruction pointer to label L.\n ///\n /// Goto also needs to rethrow ThreadAbortException iff it jumps out of a catch handler and\n /// the current thread is in \"abort requested\" state.\n /// \n internal sealed class GotoInstruction : IndexedBranchInstruction\n {\n private const int Variants = 8;\n private static readonly GotoInstruction[] s_cache = new GotoInstruction[Variants * CacheSize];\n\n public override string InstructionName => \"Goto\";\n\n private readonly bool _hasResult;\n\n private readonly bool _hasValue;\n private readonly bool _labelTargetGetsValue;\n\n // Should technically return 1 for ConsumedContinuations and ProducedContinuations for gotos that target a label whose continuation depth\n // is different from the current continuation depth. This is because we will consume one continuation from the _continuations\n // and at meantime produce a new _pendingContinuation. However, in case of forward gotos, we don't not know that is the\n // case until the label is emitted. By then the consumed and produced stack information is useless.\n // The important thing here is that the stack balance is 0.\n\n public override int ConsumedStack => _hasValue ? 1 : 0;\n public override int ProducedStack => _hasResult ? 1 : 0;\n\n private GotoInstruction(int targetIndex, bool hasResult, bool hasValue, bool labelTargetGetsValue)\n : base(targetIndex)\n {\n _hasResult = hasResult;\n _hasValue = hasValue;\n _labelTargetGetsValue = labelTargetGetsValue;\n }\n\n internal static GotoInstruction Create(int labelIndex, bool hasResult, bool hasValue, bool labelTargetGetsValue)\n {\n if (labelIndex < CacheSize)\n {\n int index = Variants * labelIndex | (labelTargetGetsValue ? 4 : 0) | (hasResult ? 2 : 0) | (hasValue ? 1 : 0);\n return s_cache[index] ?? (s_cache[index] = new GotoInstruction(labelIndex, hasResult, hasValue, labelTargetGetsValue));\n }\n return new GotoInstruction(labelIndex, hasResult, hasValue, labelTargetGetsValue);\n }\n\n public override int Run(InterpretedFrame frame)\n {\n // Are we jumping out of catch/finally while aborting the current thread?\n#if FEATURE_THREAD_ABORT\n Interpreter.AbortThreadIfRequested(frame, _labelIndex);\n#endif\n\n // goto the target label or the current finally continuation:\n object? value = _hasValue ? frame.Pop() : Interpreter.NoValue;\n return frame.Goto(_labelIndex, _labelTargetGetsValue ? value : Interpreter.NoValue, gotoExceptionHandler: false);\n }\n }\n\n internal sealed class EnterTryCatchFinallyInstruction : IndexedBranchInstruction\n {\n private readonly bool _hasFinally;\n private TryCatchFinallyHandler? _tryHandler;\n\n internal void SetTryHandler(TryCatchFinallyHandler tryHandler)\n {\n Debug.Assert(_tryHandler == null && tryHandler != null, \"the tryHandler can be set only once\");\n _tryHandler = tryHandler;\n }\n\n internal TryCatchFinallyHandler? Handler => _tryHandler;\n\n public override int ProducedContinuations => _hasFinally ? 1 : 0;\n\n private EnterTryCatchFinallyInstruction(int targetIndex, bool hasFinally)\n : base(targetIndex)\n {\n _hasFinally = hasFinally;\n }\n\n internal static EnterTryCatchFinallyInstruction CreateTryFinally(int labelIndex)\n {\n return new EnterTryCatchFinallyInstruction(labelIndex, true);\n }\n\n internal static EnterTryCatchFinallyInstruction CreateTryCatch()\n {\n return new EnterTryCatchFinallyInstruction(UnknownInstrIndex, false);\n }\n\n public override int Run(InterpretedFrame frame)\n {\n Debug.Assert(_tryHandler != null, \"the tryHandler must be set already\");\n\n if (_hasFinally)\n {\n // Push finally.\n frame.PushContinuation(_labelIndex);\n }\n int prevInstrIndex = frame.InstructionIndex;\n frame.InstructionIndex++;\n\n // Start to run the try/catch/finally blocks\n Instruction[] instructions = frame.Interpreter.Instructions.Instructions;\n try\n {\n // run the try block\n int index = frame.InstructionIndex;\n while (index >= _tryHandler.TryStartIndex && index < _tryHandler.TryEndIndex)\n {\n index += instructions[index].Run(frame);\n frame.InstructionIndex = index;\n }\n\n // we finish the try block and is about to jump out of the try/catch blocks\n if (index == _tryHandler.GotoEndTargetIndex)\n {\n // run the 'Goto' that jumps out of the try/catch/finally blocks\n Debug.Assert(instructions[index] is GotoInstruction, \"should be the 'Goto' instruction that jumps out the try/catch/finally\");\n frame.InstructionIndex += instructions[index].Run(frame);\n }\n }\n catch (Exception exception) when (_tryHandler.HasHandler(frame, exception, out ExceptionHandler? exHandler, out object? unwrappedException))\n {\n Debug.Assert(!(unwrappedException is RethrowException));\n frame.InstructionIndex += frame.Goto(exHandler.LabelIndex, unwrappedException, gotoExceptionHandler: true);\n\n#if FEATURE_THREAD_ABORT\n // stay in the current catch so that ThreadAbortException is not rethrown by CLR:\n var abort = exception as ThreadAbortException;\n if (abort != null)\n {\n Interpreter.AnyAbortException = abort;\n frame.CurrentAbortHandler = exHandler;\n }\n#endif\n\n bool rethrow = false;\n try\n {\n // run the catch block\n int index = frame.InstructionIndex;\n while (index >= exHandler.HandlerStartIndex && index < exHandler.HandlerEndIndex)\n {\n index += instructions[index].Run(frame);\n frame.InstructionIndex = index;\n }\n\n // we finish the catch block and is about to jump out of the try/catch blocks\n if (index == _tryHandler.GotoEndTargetIndex)\n {\n // run the 'Goto' that jumps out of the try/catch/finally blocks\n Debug.Assert(instructions[index] is GotoInstruction, \"should be the 'Goto' instruction that jumps out the try/catch/finally\");\n frame.InstructionIndex += instructions[index].Run(frame);\n }\n }\n catch (RethrowException)\n {\n // a rethrow instruction in a catch block gets to run\n rethrow = true;\n }\n\n if (rethrow) { throw; }\n }\n finally\n {\n if (_tryHandler.IsFinallyBlockExist)\n {\n // We get to the finally block in two paths:\n // 1. Jump from the try/catch blocks. This includes two sub-routes:\n // a. 'Goto' instruction in the middle of try/catch block\n // b. try/catch block runs to its end. Then the 'Goto(end)' will be trigger to jump out of the try/catch block\n // 2. Exception thrown from the try/catch blocks\n // In the first path, the continuation mechanism works and frame.InstructionIndex will be updated to point to the first instruction of the finally block\n // In the second path, the continuation mechanism is not involved and frame.InstructionIndex is not updated\n#if DEBUG\n bool isFromJump = frame.IsJumpHappened();\n Debug.Assert(!isFromJump || (isFromJump && _tryHandler.FinallyStartIndex == frame.InstructionIndex), \"we should already jump to the first instruction of the finally\");\n#endif\n // run the finally block\n // we cannot jump out of the finally block, and we cannot have an immediate rethrow in it\n int index = frame.InstructionIndex = _tryHandler.FinallyStartIndex;\n while (index >= _tryHandler.FinallyStartIndex && index < _tryHandler.FinallyEndIndex)\n {\n index += instructions[index].Run(frame);\n frame.InstructionIndex = index;\n }\n }\n }\n\n return frame.InstructionIndex - prevInstrIndex;\n }\n\n public override string InstructionName => _hasFinally ? \"EnterTryFinally\" : \"EnterTryCatch\";\n\n public override string ToString() => _hasFinally ? \"EnterTryFinally[\" + _labelIndex + \"]\" : \"EnterTryCatch\";\n }\n\n internal sealed class EnterTryFaultInstruction : IndexedBranchInstruction\n {\n private TryFaultHandler? _tryHandler;\n\n internal EnterTryFaultInstruction(int targetIndex)\n : base(targetIndex)\n {\n }\n\n public override string InstructionName => \"EnterTryFault\";\n public override int ProducedContinuations => 1;\n\n internal TryFaultHandler? Handler => _tryHandler;\n\n internal void SetTryHandler(TryFaultHandler tryHandler)\n {\n Debug.Assert(tryHandler != null);\n Debug.Assert(_tryHandler == null, \"the tryHandler can be set only once\");\n _tryHandler = tryHandler;\n }\n\n public override int Run(InterpretedFrame frame)\n {\n Debug.Assert(_tryHandler != null, \"the tryHandler must be set already\");\n\n // Push fault.\n frame.PushContinuation(_labelIndex);\n\n int prevInstrIndex = frame.InstructionIndex;\n frame.InstructionIndex++;\n\n // Start to run the try/fault blocks\n Instruction[] instructions = frame.Interpreter.Instructions.Instructions;\n\n // C# 6 has no direct support for fault blocks, but they can be faked or coerced out of the compiler\n // in several ways. Catch-and-rethrow can work in specific cases, but not generally as the double-pass\n // will not work correctly with filters higher up the call stack. Iterators can be used to produce real\n // fault blocks, but it depends on an implementation detail rather than a guarantee, and is rather\n // indirect. This leaves using a finally block and not doing anything in it if the body ran to\n // completion, which is the approach used here.\n bool ranWithoutFault = false;\n try\n {\n // run the try block\n int index = frame.InstructionIndex;\n while (index >= _tryHandler.TryStartIndex && index < _tryHandler.TryEndIndex)\n {\n index += instructions[index].Run(frame);\n frame.InstructionIndex = index;\n }\n\n // run the 'Goto' that jumps out of the try/fault blocks\n Debug.Assert(instructions[index] is GotoInstruction, \"should be the 'Goto' instruction that jumps out the try/fault\");\n\n // if we've arrived here there was no exception thrown. As the fault block won't run, we need to\n // pop the continuation for it here, before Gotoing the end of the try/fault.\n ranWithoutFault = true;\n frame.RemoveContinuation();\n frame.InstructionIndex += instructions[index].Run(frame);\n }\n finally\n {\n if (!ranWithoutFault)\n {\n // run the fault block\n // we cannot jump out of the finally block, and we cannot have an immediate rethrow in it\n int index = frame.InstructionIndex = _tryHandler.FinallyStartIndex;\n while (index >= _tryHandler.FinallyStartIndex && index < _tryHandler.FinallyEndIndex)\n {\n index += instructions[index].Run(frame);\n frame.InstructionIndex = index;\n }\n }\n }\n\n return frame.InstructionIndex - prevInstrIndex;\n }\n }\n\n /// \n /// The first instruction of finally block.\n /// \n internal sealed class EnterFinallyInstruction : IndexedBranchInstruction\n {\n private static readonly EnterFinallyInstruction[] s_cache = new EnterFinallyInstruction[CacheSize];\n\n private EnterFinallyInstruction(int labelIndex)\n : base(labelIndex)\n {\n }\n\n public override string InstructionName => \"EnterFinally\";\n public override int ProducedStack => 2;\n public override int ConsumedContinuations => 1;\n\n internal static EnterFinallyInstruction Create(int labelIndex)\n {\n if (labelIndex < CacheSize)\n {\n return s_cache[labelIndex] ?? (s_cache[labelIndex] = new EnterFinallyInstruction(labelIndex));\n }\n return new EnterFinallyInstruction(labelIndex);\n }\n\n public override int Run(InterpretedFrame frame)\n {\n // If _pendingContinuation == -1 then we were getting into the finally block because an exception was thrown\n // in this case we need to set the stack depth\n // Else we were getting into this finally block from a 'Goto' jump, and the stack depth is already set properly\n if (!frame.IsJumpHappened())\n {\n frame.SetStackDepth(GetLabel(frame).StackDepth);\n }\n\n frame.PushPendingContinuation();\n frame.RemoveContinuation();\n return 1;\n }\n }\n\n /// \n /// The last instruction of finally block.\n /// \n internal sealed class LeaveFinallyInstruction : Instruction\n {\n internal static readonly Instruction Instance = new LeaveFinallyInstruction();\n\n private LeaveFinallyInstruction() { }\n\n public override int ConsumedStack => 2;\n public override string InstructionName => \"LeaveFinally\";\n\n public override int Run(InterpretedFrame frame)\n {\n frame.PopPendingContinuation();\n\n // If _pendingContinuation == -1 then we were getting into the finally block because an exception was thrown\n // In this case we just return 1, and the real instruction index will be calculated by GotoHandler later\n if (!frame.IsJumpHappened()) { return 1; }\n // jump to goto target or to the next finally:\n return frame.YieldToPendingContinuation();\n }\n }\n\n internal sealed class EnterFaultInstruction : IndexedBranchInstruction\n {\n private static readonly EnterFaultInstruction[] s_cache = new EnterFaultInstruction[CacheSize];\n\n private EnterFaultInstruction(int labelIndex)\n : base(labelIndex)\n {\n }\n\n public override string InstructionName => \"EnterFault\";\n public override int ProducedStack => 2;\n\n internal static EnterFaultInstruction Create(int labelIndex)\n {\n if (labelIndex < CacheSize)\n {\n return s_cache[labelIndex] ?? (s_cache[labelIndex] = new EnterFaultInstruction(labelIndex));\n }\n\n return new EnterFaultInstruction(labelIndex);\n }\n\n public override int Run(InterpretedFrame frame)\n {\n Debug.Assert(!frame.IsJumpHappened());\n\n frame.SetStackDepth(GetLabel(frame).StackDepth);\n frame.PushPendingContinuation();\n frame.RemoveContinuation();\n return 1;\n }\n }\n\n internal sealed class LeaveFaultInstruction : Instruction\n {\n internal static readonly Instruction Instance = new LeaveFaultInstruction();\n\n private LeaveFaultInstruction() { }\n\n public override int ConsumedStack => 2;\n public override int ConsumedContinuations => 1;\n public override string InstructionName => \"LeaveFault\";\n\n public override int Run(InterpretedFrame frame)\n {\n frame.PopPendingContinuation();\n\n Debug.Assert(!frame.IsJumpHappened());\n // Just return 1, and the real instruction index will be calculated by GotoHandler later\n return 1;\n }\n }\n\n // no-op: we need this just to balance the stack depth and aid debugging of the instruction list.\n internal sealed class EnterExceptionFilterInstruction : Instruction\n {\n internal static readonly EnterExceptionFilterInstruction Instance = new EnterExceptionFilterInstruction();\n\n private EnterExceptionFilterInstruction() { }\n\n public override string InstructionName => \"EnterExceptionFilter\";\n\n\n // The exception is pushed onto the stack in the filter runner.\n public override int ProducedStack => 1;\n\n [ExcludeFromCodeCoverage(Justification = \"Known to be a no-op, this instruction is skipped on execution\")]\n public override int Run(InterpretedFrame frame) => 1;\n }\n\n // no-op: we need this just to balance the stack depth and aid debugging of the instruction list.\n internal sealed class LeaveExceptionFilterInstruction : Instruction\n {\n internal static readonly LeaveExceptionFilterInstruction Instance = new LeaveExceptionFilterInstruction();\n\n private LeaveExceptionFilterInstruction() { }\n\n public override string InstructionName => \"LeaveExceptionFilter\";\n\n // The exception and the boolean result are popped from the stack in the filter runner.\n public override int ConsumedStack => 2;\n\n [ExcludeFromCodeCoverage(Justification = \"Known to be a no-op, this instruction is skipped on execution\")]\n public override int Run(InterpretedFrame frame) => 1;\n }\n\n // no-op: we need this just to balance the stack depth.\n internal sealed class EnterExceptionHandlerInstruction : Instruction\n {\n internal static readonly EnterExceptionHandlerInstruction Void = new EnterExceptionHandlerInstruction(false);\n internal static readonly EnterExceptionHandlerInstruction NonVoid = new EnterExceptionHandlerInstruction(true);\n\n // True if try-expression is non-void.\n private readonly bool _hasValue;\n\n private EnterExceptionHandlerInstruction(bool hasValue)\n {\n _hasValue = hasValue;\n }\n\n public override string InstructionName => \"EnterExceptionHandler\";\n\n // If an exception is throws in try-body the expression result of try-body is not evaluated and loaded to the stack.\n // So the stack doesn't contain the try-body's value when we start executing the handler.\n // However, while emitting instructions try block falls thru the catch block with a value on stack.\n // We need to declare it consumed so that the stack state upon entry to the handler corresponds to the real\n // stack depth after throw jumped to this catch block.\n public override int ConsumedStack => _hasValue ? 1 : 0;\n\n // A variable storing the current exception is pushed to the stack by exception handling.\n // Catch handlers: The value is immediately popped and stored into a local.\n public override int ProducedStack => 1;\n\n [ExcludeFromCodeCoverage(Justification = \"Known to be a no-op, this instruction is skipped on execution\")]\n public override int Run(InterpretedFrame frame)\n {\n // nop (the exception value is pushed by the interpreter in HandleCatch)\n return 1;\n }\n }\n\n /// \n /// The last instruction of a catch exception handler.\n /// \n internal sealed class LeaveExceptionHandlerInstruction : IndexedBranchInstruction\n {\n private static readonly LeaveExceptionHandlerInstruction[] s_cache = new LeaveExceptionHandlerInstruction[2 * CacheSize];\n\n private readonly bool _hasValue;\n\n private LeaveExceptionHandlerInstruction(int labelIndex, bool hasValue)\n : base(labelIndex)\n {\n _hasValue = hasValue;\n }\n\n public override string InstructionName => \"LeaveExceptionHandler\";\n\n // The catch block yields a value if the body is non-void. This value is left on the stack.\n public override int ConsumedStack => _hasValue ? 1 : 0;\n public override int ProducedStack => _hasValue ? 1 : 0;\n\n internal static LeaveExceptionHandlerInstruction Create(int labelIndex, bool hasValue)\n {\n if (labelIndex < CacheSize)\n {\n int index = (2 * labelIndex) | (hasValue ? 1 : 0);\n return s_cache[index] ?? (s_cache[index] = new LeaveExceptionHandlerInstruction(labelIndex, hasValue));\n }\n return new LeaveExceptionHandlerInstruction(labelIndex, hasValue);\n }\n\n public override int Run(InterpretedFrame frame)\n {\n // CLR rethrows ThreadAbortException when leaving catch handler if abort is requested on the current thread.\n#if FEATURE_THREAD_ABORT\n Interpreter.AbortThreadIfRequested(frame, _labelIndex);\n#endif\n return GetLabel(frame).Index - frame.InstructionIndex;\n }\n }\n\n internal sealed class ThrowInstruction : Instruction\n {\n internal static readonly ThrowInstruction Throw = new ThrowInstruction(true, false);\n internal static readonly ThrowInstruction VoidThrow = new ThrowInstruction(false, false);\n internal static readonly ThrowInstruction Rethrow = new ThrowInstruction(true, true);\n internal static readonly ThrowInstruction VoidRethrow = new ThrowInstruction(false, true);\n\n private readonly bool _hasResult, _rethrow;\n\n private ThrowInstruction(bool hasResult, bool isRethrow)\n {\n _hasResult = hasResult;\n _rethrow = isRethrow;\n }\n\n public override string InstructionName => \"Throw\";\n public override int ProducedStack => _hasResult ? 1 : 0;\n public override int ConsumedStack => 1;\n\n public override int Run(InterpretedFrame frame)\n {\n Exception? ex = WrapThrownObject(frame.Pop());\n if (_rethrow)\n {\n throw new RethrowException();\n }\n\n throw ex!;\n }\n\n private static Exception? WrapThrownObject(object? thrown) =>\n thrown == null ? null : (thrown as Exception ?? new RuntimeWrappedException(thrown));\n }\n\n internal sealed class IntSwitchInstruction : Instruction where T : notnull\n {\n private readonly Dictionary _cases;\n\n internal IntSwitchInstruction(Dictionary cases)\n {\n Assert.NotNull(cases);\n _cases = cases;\n }\n\n public override string InstructionName => \"IntSwitch\";\n public override int ConsumedStack => 1;\n\n public override int Run(InterpretedFrame frame)\n {\n int target;\n return _cases.TryGetValue((T)frame.Pop()!, out target) ? target : 1;\n }\n }\n\n internal sealed class StringSwitchInstruction : Instruction\n {\n private readonly Dictionary _cases;\n private readonly StrongBox _nullCase;\n\n internal StringSwitchInstruction(Dictionary cases, StrongBox nullCase)\n {\n Assert.NotNull(cases);\n Assert.NotNull(nullCase);\n _cases = cases;\n _nullCase = nullCase;\n }\n\n public override string InstructionName => \"StringSwitch\";\n public override int ConsumedStack => 1;\n\n public override int Run(InterpretedFrame frame)\n {\n object? value = frame.Pop();\n\n if (value == null)\n {\n return _nullCase.Value;\n }\n\n int target;\n return _cases.TryGetValue((string)value, out target) ? target : 1;\n }\n }\n}\n"},"after_content":{"kind":"string","value":"// Licensed to the .NET Foundation under one or more agreements.\n// The .NET Foundation licenses this file to you under the MIT license.\n\nusing System.Collections.Generic;\nusing System.Diagnostics;\nusing System.Diagnostics.CodeAnalysis;\nusing System.Dynamic.Utils;\nusing System.Reflection;\nusing System.Runtime.CompilerServices;\n\nnamespace System.Linq.Expressions.Interpreter\n{\n internal abstract class OffsetInstruction : Instruction\n {\n internal const int Unknown = int.MinValue;\n internal const int CacheSize = 32;\n\n // the offset to jump to (relative to this instruction):\n protected int _offset = Unknown;\n\n public abstract Instruction[] Cache { get; }\n\n public Instruction Fixup(int offset)\n {\n Debug.Assert(_offset == Unknown && offset != Unknown);\n _offset = offset;\n\n Instruction[] cache = Cache;\n if (cache != null && offset >= 0 && offset < cache.Length)\n {\n return cache[offset] ?? (cache[offset] = this);\n }\n\n return this;\n }\n\n public override string ToDebugString(int instructionIndex, object? cookie, Func labelIndexer, IReadOnlyList? objects)\n {\n return ToString() + (_offset != Unknown ? \" -> \" + (instructionIndex + _offset) : \"\");\n }\n\n public override string ToString()\n {\n return InstructionName + (_offset == Unknown ? \"(?)\" : \"(\" + _offset + \")\");\n }\n }\n\n internal sealed class BranchFalseInstruction : OffsetInstruction\n {\n private static Instruction[]? s_cache;\n\n public override Instruction[] Cache\n {\n get\n {\n if (s_cache == null)\n {\n s_cache = new Instruction[CacheSize];\n }\n return s_cache;\n }\n }\n\n public override string InstructionName => \"BranchFalse\";\n public override int ConsumedStack => 1;\n\n public override int Run(InterpretedFrame frame)\n {\n Debug.Assert(_offset != Unknown);\n\n if (!(bool)frame.Pop()!)\n {\n return _offset;\n }\n\n return 1;\n }\n }\n\n internal sealed class BranchTrueInstruction : OffsetInstruction\n {\n private static Instruction[]? s_cache;\n\n public override Instruction[] Cache\n {\n get\n {\n if (s_cache == null)\n {\n s_cache = new Instruction[CacheSize];\n }\n return s_cache;\n }\n }\n\n public override string InstructionName => \"BranchTrue\";\n public override int ConsumedStack => 1;\n\n public override int Run(InterpretedFrame frame)\n {\n Debug.Assert(_offset != Unknown);\n\n if ((bool)frame.Pop()!)\n {\n return _offset;\n }\n\n return 1;\n }\n }\n\n internal sealed class CoalescingBranchInstruction : OffsetInstruction\n {\n private static Instruction[]? s_cache;\n\n public override Instruction[] Cache\n {\n get\n {\n if (s_cache == null)\n {\n s_cache = new Instruction[CacheSize];\n }\n return s_cache;\n }\n }\n\n public override string InstructionName => \"CoalescingBranch\";\n public override int ConsumedStack => 1;\n public override int ProducedStack => 1;\n\n public override int Run(InterpretedFrame frame)\n {\n Debug.Assert(_offset != Unknown);\n\n if (frame.Peek() != null)\n {\n return _offset;\n }\n\n return 1;\n }\n }\n\n internal sealed class BranchInstruction : OffsetInstruction\n {\n private static Instruction[][][]? s_caches;\n\n public override Instruction[] Cache\n {\n get\n {\n if (s_caches == null)\n {\n s_caches = new Instruction[2][][] { new Instruction[2][], new Instruction[2][] };\n }\n return s_caches[ConsumedStack][ProducedStack] ?? (s_caches[ConsumedStack][ProducedStack] = new Instruction[CacheSize]);\n }\n }\n\n internal readonly bool _hasResult;\n internal readonly bool _hasValue;\n\n internal BranchInstruction()\n : this(false, false)\n {\n }\n\n public BranchInstruction(bool hasResult, bool hasValue)\n {\n _hasResult = hasResult;\n _hasValue = hasValue;\n }\n\n public override string InstructionName => \"Branch\";\n public override int ConsumedStack => _hasValue ? 1 : 0;\n public override int ProducedStack => _hasResult ? 1 : 0;\n\n public override int Run(InterpretedFrame frame)\n {\n Debug.Assert(_offset != Unknown);\n\n return _offset;\n }\n }\n\n internal abstract class IndexedBranchInstruction : Instruction\n {\n protected const int CacheSize = 32;\n internal readonly int _labelIndex;\n\n public IndexedBranchInstruction(int labelIndex)\n {\n _labelIndex = labelIndex;\n }\n\n public RuntimeLabel GetLabel(InterpretedFrame frame)\n {\n Debug.Assert(_labelIndex != UnknownInstrIndex);\n return frame.Interpreter._labels[_labelIndex];\n }\n\n public override string ToDebugString(int instructionIndex, object? cookie, Func labelIndexer, IReadOnlyList? objects)\n {\n Debug.Assert(_labelIndex != UnknownInstrIndex);\n int targetIndex = labelIndexer(_labelIndex);\n return ToString() + (targetIndex != BranchLabel.UnknownIndex ? \" -> \" + targetIndex : \"\");\n }\n\n public override string ToString()\n {\n Debug.Assert(_labelIndex != UnknownInstrIndex);\n return InstructionName + \"[\" + _labelIndex + \"]\";\n }\n }\n\n /// \n /// This instruction implements a goto expression that can jump out of any expression.\n /// It pops values (arguments) from the evaluation stack that the expression tree nodes in between\n /// the goto expression and the target label node pushed and not consumed yet.\n /// A goto expression can jump into a node that evaluates arguments only if it carries\n /// a value and jumps right after the first argument (the carried value will be used as the first argument).\n /// Goto can jump into an arbitrary child of a BlockExpression since the block doesn't accumulate values\n /// on evaluation stack as its child expressions are being evaluated.\n ///\n /// Goto needs to execute any finally blocks on the way to the target label.\n /// \n /// {\n /// f(1, 2, try { g(3, 4, try { goto L } finally { ... }, 6) } finally { ... }, 7, 8)\n /// L: ...\n /// }\n /// \n /// The goto expression here jumps to label L while having 4 items on evaluation stack (1, 2, 3 and 4).\n /// The jump needs to execute both finally blocks, the first one on stack level 4 the\n /// second one on stack level 2. So, it needs to jump the first finally block, pop 2 items from the stack,\n /// run second finally block and pop another 2 items from the stack and set instruction pointer to label L.\n ///\n /// Goto also needs to rethrow ThreadAbortException iff it jumps out of a catch handler and\n /// the current thread is in \"abort requested\" state.\n /// \n internal sealed class GotoInstruction : IndexedBranchInstruction\n {\n private const int Variants = 8;\n private static readonly GotoInstruction[] s_cache = new GotoInstruction[Variants * CacheSize];\n\n public override string InstructionName => \"Goto\";\n\n private readonly bool _hasResult;\n\n private readonly bool _hasValue;\n private readonly bool _labelTargetGetsValue;\n\n // Should technically return 1 for ConsumedContinuations and ProducedContinuations for gotos that target a label whose continuation depth\n // is different from the current continuation depth. This is because we will consume one continuation from the _continuations\n // and at meantime produce a new _pendingContinuation. However, in case of forward gotos, we don't not know that is the\n // case until the label is emitted. By then the consumed and produced stack information is useless.\n // The important thing here is that the stack balance is 0.\n\n public override int ConsumedStack => _hasValue ? 1 : 0;\n public override int ProducedStack => _hasResult ? 1 : 0;\n\n private GotoInstruction(int targetIndex, bool hasResult, bool hasValue, bool labelTargetGetsValue)\n : base(targetIndex)\n {\n _hasResult = hasResult;\n _hasValue = hasValue;\n _labelTargetGetsValue = labelTargetGetsValue;\n }\n\n internal static GotoInstruction Create(int labelIndex, bool hasResult, bool hasValue, bool labelTargetGetsValue)\n {\n if (labelIndex < CacheSize)\n {\n int index = Variants * labelIndex | (labelTargetGetsValue ? 4 : 0) | (hasResult ? 2 : 0) | (hasValue ? 1 : 0);\n return s_cache[index] ?? (s_cache[index] = new GotoInstruction(labelIndex, hasResult, hasValue, labelTargetGetsValue));\n }\n return new GotoInstruction(labelIndex, hasResult, hasValue, labelTargetGetsValue);\n }\n\n public override int Run(InterpretedFrame frame)\n {\n // Are we jumping out of catch/finally while aborting the current thread?\n#if FEATURE_THREAD_ABORT\n Interpreter.AbortThreadIfRequested(frame, _labelIndex);\n#endif\n\n // goto the target label or the current finally continuation:\n object? value = _hasValue ? frame.Pop() : Interpreter.NoValue;\n return frame.Goto(_labelIndex, _labelTargetGetsValue ? value : Interpreter.NoValue, gotoExceptionHandler: false);\n }\n }\n\n internal sealed class EnterTryCatchFinallyInstruction : IndexedBranchInstruction\n {\n private readonly bool _hasFinally;\n private TryCatchFinallyHandler? _tryHandler;\n\n internal void SetTryHandler(TryCatchFinallyHandler tryHandler)\n {\n Debug.Assert(_tryHandler == null && tryHandler != null, \"the tryHandler can be set only once\");\n _tryHandler = tryHandler;\n }\n\n internal TryCatchFinallyHandler? Handler => _tryHandler;\n\n public override int ProducedContinuations => _hasFinally ? 1 : 0;\n\n private EnterTryCatchFinallyInstruction(int targetIndex, bool hasFinally)\n : base(targetIndex)\n {\n _hasFinally = hasFinally;\n }\n\n internal static EnterTryCatchFinallyInstruction CreateTryFinally(int labelIndex)\n {\n return new EnterTryCatchFinallyInstruction(labelIndex, true);\n }\n\n internal static EnterTryCatchFinallyInstruction CreateTryCatch()\n {\n return new EnterTryCatchFinallyInstruction(UnknownInstrIndex, false);\n }\n\n public override int Run(InterpretedFrame frame)\n {\n Debug.Assert(_tryHandler != null, \"the tryHandler must be set already\");\n\n if (_hasFinally)\n {\n // Push finally.\n frame.PushContinuation(_labelIndex);\n }\n int prevInstrIndex = frame.InstructionIndex;\n frame.InstructionIndex++;\n\n // Start to run the try/catch/finally blocks\n Instruction[] instructions = frame.Interpreter.Instructions.Instructions;\n try\n {\n // run the try block\n int index = frame.InstructionIndex;\n while (index >= _tryHandler.TryStartIndex && index < _tryHandler.TryEndIndex)\n {\n index += instructions[index].Run(frame);\n frame.InstructionIndex = index;\n }\n\n // we finish the try block and is about to jump out of the try/catch blocks\n if (index == _tryHandler.GotoEndTargetIndex)\n {\n // run the 'Goto' that jumps out of the try/catch/finally blocks\n Debug.Assert(instructions[index] is GotoInstruction, \"should be the 'Goto' instruction that jumps out the try/catch/finally\");\n frame.InstructionIndex += instructions[index].Run(frame);\n }\n }\n catch (Exception exception) when (_tryHandler.HasHandler(frame, exception, out ExceptionHandler? exHandler, out object? unwrappedException))\n {\n Debug.Assert(!(unwrappedException is RethrowException));\n frame.InstructionIndex += frame.Goto(exHandler.LabelIndex, unwrappedException, gotoExceptionHandler: true);\n\n#if FEATURE_THREAD_ABORT\n // stay in the current catch so that ThreadAbortException is not rethrown by CLR:\n var abort = exception as ThreadAbortException;\n if (abort != null)\n {\n Interpreter.AnyAbortException = abort;\n frame.CurrentAbortHandler = exHandler;\n }\n#endif\n\n bool rethrow = false;\n try\n {\n // run the catch block\n int index = frame.InstructionIndex;\n while (index >= exHandler.HandlerStartIndex && index < exHandler.HandlerEndIndex)\n {\n index += instructions[index].Run(frame);\n frame.InstructionIndex = index;\n }\n\n // we finish the catch block and is about to jump out of the try/catch blocks\n if (index == _tryHandler.GotoEndTargetIndex)\n {\n // run the 'Goto' that jumps out of the try/catch/finally blocks\n Debug.Assert(instructions[index] is GotoInstruction, \"should be the 'Goto' instruction that jumps out the try/catch/finally\");\n frame.InstructionIndex += instructions[index].Run(frame);\n }\n }\n catch (RethrowException)\n {\n // a rethrow instruction in a catch block gets to run\n rethrow = true;\n }\n\n if (rethrow) { throw; }\n }\n finally\n {\n if (_tryHandler.IsFinallyBlockExist)\n {\n // We get to the finally block in two paths:\n // 1. Jump from the try/catch blocks. This includes two sub-routes:\n // a. 'Goto' instruction in the middle of try/catch block\n // b. try/catch block runs to its end. Then the 'Goto(end)' will be trigger to jump out of the try/catch block\n // 2. Exception thrown from the try/catch blocks\n // In the first path, the continuation mechanism works and frame.InstructionIndex will be updated to point to the first instruction of the finally block\n // In the second path, the continuation mechanism is not involved and frame.InstructionIndex is not updated\n#if DEBUG\n bool isFromJump = frame.IsJumpHappened();\n Debug.Assert(!isFromJump || (isFromJump && _tryHandler.FinallyStartIndex == frame.InstructionIndex), \"we should already jump to the first instruction of the finally\");\n#endif\n // run the finally block\n // we cannot jump out of the finally block, and we cannot have an immediate rethrow in it\n int index = frame.InstructionIndex = _tryHandler.FinallyStartIndex;\n while (index >= _tryHandler.FinallyStartIndex && index < _tryHandler.FinallyEndIndex)\n {\n index += instructions[index].Run(frame);\n frame.InstructionIndex = index;\n }\n }\n }\n\n return frame.InstructionIndex - prevInstrIndex;\n }\n\n public override string InstructionName => _hasFinally ? \"EnterTryFinally\" : \"EnterTryCatch\";\n\n public override string ToString() => _hasFinally ? \"EnterTryFinally[\" + _labelIndex + \"]\" : \"EnterTryCatch\";\n }\n\n internal sealed class EnterTryFaultInstruction : IndexedBranchInstruction\n {\n private TryFaultHandler? _tryHandler;\n\n internal EnterTryFaultInstruction(int targetIndex)\n : base(targetIndex)\n {\n }\n\n public override string InstructionName => \"EnterTryFault\";\n public override int ProducedContinuations => 1;\n\n internal TryFaultHandler? Handler => _tryHandler;\n\n internal void SetTryHandler(TryFaultHandler tryHandler)\n {\n Debug.Assert(tryHandler != null);\n Debug.Assert(_tryHandler == null, \"the tryHandler can be set only once\");\n _tryHandler = tryHandler;\n }\n\n public override int Run(InterpretedFrame frame)\n {\n Debug.Assert(_tryHandler != null, \"the tryHandler must be set already\");\n\n // Push fault.\n frame.PushContinuation(_labelIndex);\n\n int prevInstrIndex = frame.InstructionIndex;\n frame.InstructionIndex++;\n\n // Start to run the try/fault blocks\n Instruction[] instructions = frame.Interpreter.Instructions.Instructions;\n\n // C# 6 has no direct support for fault blocks, but they can be faked or coerced out of the compiler\n // in several ways. Catch-and-rethrow can work in specific cases, but not generally as the double-pass\n // will not work correctly with filters higher up the call stack. Iterators can be used to produce real\n // fault blocks, but it depends on an implementation detail rather than a guarantee, and is rather\n // indirect. This leaves using a finally block and not doing anything in it if the body ran to\n // completion, which is the approach used here.\n bool ranWithoutFault = false;\n try\n {\n // run the try block\n int index = frame.InstructionIndex;\n while (index >= _tryHandler.TryStartIndex && index < _tryHandler.TryEndIndex)\n {\n index += instructions[index].Run(frame);\n frame.InstructionIndex = index;\n }\n\n // run the 'Goto' that jumps out of the try/fault blocks\n Debug.Assert(instructions[index] is GotoInstruction, \"should be the 'Goto' instruction that jumps out the try/fault\");\n\n // if we've arrived here there was no exception thrown. As the fault block won't run, we need to\n // pop the continuation for it here, before Gotoing the end of the try/fault.\n ranWithoutFault = true;\n frame.RemoveContinuation();\n frame.InstructionIndex += instructions[index].Run(frame);\n }\n finally\n {\n if (!ranWithoutFault)\n {\n // run the fault block\n // we cannot jump out of the finally block, and we cannot have an immediate rethrow in it\n int index = frame.InstructionIndex = _tryHandler.FinallyStartIndex;\n while (index >= _tryHandler.FinallyStartIndex && index < _tryHandler.FinallyEndIndex)\n {\n index += instructions[index].Run(frame);\n frame.InstructionIndex = index;\n }\n }\n }\n\n return frame.InstructionIndex - prevInstrIndex;\n }\n }\n\n /// \n /// The first instruction of finally block.\n /// \n internal sealed class EnterFinallyInstruction : IndexedBranchInstruction\n {\n private static readonly EnterFinallyInstruction[] s_cache = new EnterFinallyInstruction[CacheSize];\n\n private EnterFinallyInstruction(int labelIndex)\n : base(labelIndex)\n {\n }\n\n public override string InstructionName => \"EnterFinally\";\n public override int ProducedStack => 2;\n public override int ConsumedContinuations => 1;\n\n internal static EnterFinallyInstruction Create(int labelIndex)\n {\n if (labelIndex < CacheSize)\n {\n return s_cache[labelIndex] ?? (s_cache[labelIndex] = new EnterFinallyInstruction(labelIndex));\n }\n return new EnterFinallyInstruction(labelIndex);\n }\n\n public override int Run(InterpretedFrame frame)\n {\n // If _pendingContinuation == -1 then we were getting into the finally block because an exception was thrown\n // in this case we need to set the stack depth\n // Else we were getting into this finally block from a 'Goto' jump, and the stack depth is already set properly\n if (!frame.IsJumpHappened())\n {\n frame.SetStackDepth(GetLabel(frame).StackDepth);\n }\n\n frame.PushPendingContinuation();\n frame.RemoveContinuation();\n return 1;\n }\n }\n\n /// \n /// The last instruction of finally block.\n /// \n internal sealed class LeaveFinallyInstruction : Instruction\n {\n internal static readonly Instruction Instance = new LeaveFinallyInstruction();\n\n private LeaveFinallyInstruction() { }\n\n public override int ConsumedStack => 2;\n public override string InstructionName => \"LeaveFinally\";\n\n public override int Run(InterpretedFrame frame)\n {\n frame.PopPendingContinuation();\n\n // If _pendingContinuation == -1 then we were getting into the finally block because an exception was thrown\n // In this case we just return 1, and the real instruction index will be calculated by GotoHandler later\n if (!frame.IsJumpHappened()) { return 1; }\n // jump to goto target or to the next finally:\n return frame.YieldToPendingContinuation();\n }\n }\n\n internal sealed class EnterFaultInstruction : IndexedBranchInstruction\n {\n private static readonly EnterFaultInstruction[] s_cache = new EnterFaultInstruction[CacheSize];\n\n private EnterFaultInstruction(int labelIndex)\n : base(labelIndex)\n {\n }\n\n public override string InstructionName => \"EnterFault\";\n public override int ProducedStack => 2;\n\n internal static EnterFaultInstruction Create(int labelIndex)\n {\n if (labelIndex < CacheSize)\n {\n return s_cache[labelIndex] ?? (s_cache[labelIndex] = new EnterFaultInstruction(labelIndex));\n }\n\n return new EnterFaultInstruction(labelIndex);\n }\n\n public override int Run(InterpretedFrame frame)\n {\n Debug.Assert(!frame.IsJumpHappened());\n\n frame.SetStackDepth(GetLabel(frame).StackDepth);\n frame.PushPendingContinuation();\n frame.RemoveContinuation();\n return 1;\n }\n }\n\n internal sealed class LeaveFaultInstruction : Instruction\n {\n internal static readonly Instruction Instance = new LeaveFaultInstruction();\n\n private LeaveFaultInstruction() { }\n\n public override int ConsumedStack => 2;\n public override int ConsumedContinuations => 1;\n public override string InstructionName => \"LeaveFault\";\n\n public override int Run(InterpretedFrame frame)\n {\n frame.PopPendingContinuation();\n\n Debug.Assert(!frame.IsJumpHappened());\n // Just return 1, and the real instruction index will be calculated by GotoHandler later\n return 1;\n }\n }\n\n // no-op: we need this just to balance the stack depth and aid debugging of the instruction list.\n internal sealed class EnterExceptionFilterInstruction : Instruction\n {\n internal static readonly EnterExceptionFilterInstruction Instance = new EnterExceptionFilterInstruction();\n\n private EnterExceptionFilterInstruction() { }\n\n public override string InstructionName => \"EnterExceptionFilter\";\n\n\n // The exception is pushed onto the stack in the filter runner.\n public override int ProducedStack => 1;\n\n [ExcludeFromCodeCoverage(Justification = \"Known to be a no-op, this instruction is skipped on execution\")]\n public override int Run(InterpretedFrame frame) => 1;\n }\n\n // no-op: we need this just to balance the stack depth and aid debugging of the instruction list.\n internal sealed class LeaveExceptionFilterInstruction : Instruction\n {\n internal static readonly LeaveExceptionFilterInstruction Instance = new LeaveExceptionFilterInstruction();\n\n private LeaveExceptionFilterInstruction() { }\n\n public override string InstructionName => \"LeaveExceptionFilter\";\n\n // The exception and the boolean result are popped from the stack in the filter runner.\n public override int ConsumedStack => 2;\n\n [ExcludeFromCodeCoverage(Justification = \"Known to be a no-op, this instruction is skipped on execution\")]\n public override int Run(InterpretedFrame frame) => 1;\n }\n\n // no-op: we need this just to balance the stack depth.\n internal sealed class EnterExceptionHandlerInstruction : Instruction\n {\n internal static readonly EnterExceptionHandlerInstruction Void = new EnterExceptionHandlerInstruction(false);\n internal static readonly EnterExceptionHandlerInstruction NonVoid = new EnterExceptionHandlerInstruction(true);\n\n // True if try-expression is non-void.\n private readonly bool _hasValue;\n\n private EnterExceptionHandlerInstruction(bool hasValue)\n {\n _hasValue = hasValue;\n }\n\n public override string InstructionName => \"EnterExceptionHandler\";\n\n // If an exception is throws in try-body the expression result of try-body is not evaluated and loaded to the stack.\n // So the stack doesn't contain the try-body's value when we start executing the handler.\n // However, while emitting instructions try block falls thru the catch block with a value on stack.\n // We need to declare it consumed so that the stack state upon entry to the handler corresponds to the real\n // stack depth after throw jumped to this catch block.\n public override int ConsumedStack => _hasValue ? 1 : 0;\n\n // A variable storing the current exception is pushed to the stack by exception handling.\n // Catch handlers: The value is immediately popped and stored into a local.\n public override int ProducedStack => 1;\n\n [ExcludeFromCodeCoverage(Justification = \"Known to be a no-op, this instruction is skipped on execution\")]\n public override int Run(InterpretedFrame frame)\n {\n // nop (the exception value is pushed by the interpreter in HandleCatch)\n return 1;\n }\n }\n\n /// \n /// The last instruction of a catch exception handler.\n /// \n internal sealed class LeaveExceptionHandlerInstruction : IndexedBranchInstruction\n {\n private static readonly LeaveExceptionHandlerInstruction[] s_cache = new LeaveExceptionHandlerInstruction[2 * CacheSize];\n\n private readonly bool _hasValue;\n\n private LeaveExceptionHandlerInstruction(int labelIndex, bool hasValue)\n : base(labelIndex)\n {\n _hasValue = hasValue;\n }\n\n public override string InstructionName => \"LeaveExceptionHandler\";\n\n // The catch block yields a value if the body is non-void. This value is left on the stack.\n public override int ConsumedStack => _hasValue ? 1 : 0;\n public override int ProducedStack => _hasValue ? 1 : 0;\n\n internal static LeaveExceptionHandlerInstruction Create(int labelIndex, bool hasValue)\n {\n if (labelIndex < CacheSize)\n {\n int index = (2 * labelIndex) | (hasValue ? 1 : 0);\n return s_cache[index] ?? (s_cache[index] = new LeaveExceptionHandlerInstruction(labelIndex, hasValue));\n }\n return new LeaveExceptionHandlerInstruction(labelIndex, hasValue);\n }\n\n public override int Run(InterpretedFrame frame)\n {\n // CLR rethrows ThreadAbortException when leaving catch handler if abort is requested on the current thread.\n#if FEATURE_THREAD_ABORT\n Interpreter.AbortThreadIfRequested(frame, _labelIndex);\n#endif\n return GetLabel(frame).Index - frame.InstructionIndex;\n }\n }\n\n internal sealed class ThrowInstruction : Instruction\n {\n internal static readonly ThrowInstruction Throw = new ThrowInstruction(true, false);\n internal static readonly ThrowInstruction VoidThrow = new ThrowInstruction(false, false);\n internal static readonly ThrowInstruction Rethrow = new ThrowInstruction(true, true);\n internal static readonly ThrowInstruction VoidRethrow = new ThrowInstruction(false, true);\n\n private readonly bool _hasResult, _rethrow;\n\n private ThrowInstruction(bool hasResult, bool isRethrow)\n {\n _hasResult = hasResult;\n _rethrow = isRethrow;\n }\n\n public override string InstructionName => \"Throw\";\n public override int ProducedStack => _hasResult ? 1 : 0;\n public override int ConsumedStack => 1;\n\n public override int Run(InterpretedFrame frame)\n {\n Exception? ex = WrapThrownObject(frame.Pop());\n if (_rethrow)\n {\n throw new RethrowException();\n }\n\n throw ex!;\n }\n\n private static Exception? WrapThrownObject(object? thrown) =>\n thrown == null ? null : (thrown as Exception ?? new RuntimeWrappedException(thrown));\n }\n\n internal sealed class IntSwitchInstruction : Instruction where T : notnull\n {\n private readonly Dictionary _cases;\n\n internal IntSwitchInstruction(Dictionary cases)\n {\n Assert.NotNull(cases);\n _cases = cases;\n }\n\n public override string InstructionName => \"IntSwitch\";\n public override int ConsumedStack => 1;\n\n public override int Run(InterpretedFrame frame)\n {\n int target;\n return _cases.TryGetValue((T)frame.Pop()!, out target) ? target : 1;\n }\n }\n\n internal sealed class StringSwitchInstruction : Instruction\n {\n private readonly Dictionary _cases;\n private readonly StrongBox _nullCase;\n\n internal StringSwitchInstruction(Dictionary cases, StrongBox nullCase)\n {\n Assert.NotNull(cases);\n Assert.NotNull(nullCase);\n _cases = cases;\n _nullCase = nullCase;\n }\n\n public override string InstructionName => \"StringSwitch\";\n public override int ConsumedStack => 1;\n\n public override int Run(InterpretedFrame frame)\n {\n object? value = frame.Pop();\n\n if (value == null)\n {\n return _nullCase.Value;\n }\n\n int target;\n return _cases.TryGetValue((string)value, out target) ? target : 1;\n }\n }\n}\n"},"label":{"kind":"number","value":-1,"string":"-1"}}},{"rowIdx":2071820,"cells":{"repo_name":{"kind":"string","value":"dotnet/runtime"},"pr_number":{"kind":"number","value":66111,"string":"66,111"},"pr_title":{"kind":"string","value":"Update RegexGenerator to require LangVersion > 10"},"pr_description":{"kind":"string","value":"We plan to take a dependency on a C# 11 language feature. For now, reserve that right by requiring a version > 10. We can downgrade it later if possible and desired."},"author":{"kind":"string","value":"stephentoub"},"date_created":{"kind":"timestamp","value":"2022-03-02T21:41:16Z","string":"2022-03-02T21:41:16Z"},"date_merged":{"kind":"timestamp","value":"2022-03-03T04:10:47Z","string":"2022-03-03T04:10:47Z"},"previous_commit":{"kind":"string","value":"83adfae6a6273d8fb4c69554aa3b1cc7cbf01c71"},"pr_commit":{"kind":"string","value":"c4541b3f4f66209aed77c7d7d0fd9d8511e3ac5e"},"query":{"kind":"string","value":"Update RegexGenerator to require LangVersion > 10. We plan to take a dependency on a C# 11 language feature. For now, reserve that right by requiring a version > 10. We can downgrade it later if possible and desired."},"filepath":{"kind":"string","value":"./src/tests/JIT/IL_Conformance/Old/Conformance_Base/ldc_ckfinite_r4.ilproj"},"before_content":{"kind":"string","value":"\n \n Exe \n \n \n PdbOnly \n True \n \n \n \n \n \n"},"after_content":{"kind":"string","value":"\n \n Exe \n \n \n PdbOnly \n True \n \n \n \n \n \n"},"label":{"kind":"number","value":-1,"string":"-1"}}},{"rowIdx":2071821,"cells":{"repo_name":{"kind":"string","value":"dotnet/runtime"},"pr_number":{"kind":"number","value":66111,"string":"66,111"},"pr_title":{"kind":"string","value":"Update RegexGenerator to require LangVersion > 10"},"pr_description":{"kind":"string","value":"We plan to take a dependency on a C# 11 language feature. For now, reserve that right by requiring a version > 10. We can downgrade it later if possible and desired."},"author":{"kind":"string","value":"stephentoub"},"date_created":{"kind":"timestamp","value":"2022-03-02T21:41:16Z","string":"2022-03-02T21:41:16Z"},"date_merged":{"kind":"timestamp","value":"2022-03-03T04:10:47Z","string":"2022-03-03T04:10:47Z"},"previous_commit":{"kind":"string","value":"83adfae6a6273d8fb4c69554aa3b1cc7cbf01c71"},"pr_commit":{"kind":"string","value":"c4541b3f4f66209aed77c7d7d0fd9d8511e3ac5e"},"query":{"kind":"string","value":"Update RegexGenerator to require LangVersion > 10. We plan to take a dependency on a C# 11 language feature. For now, reserve that right by requiring a version > 10. We can downgrade it later if possible and desired."},"filepath":{"kind":"string","value":"./src/tests/JIT/HardwareIntrinsics/X86/Sse41/Blend.cs"},"before_content":{"kind":"string","value":"// Licensed to the .NET Foundation under one or more agreements.\n// The .NET Foundation licenses this file to you under the MIT license.\n//\n\nusing System;\nusing System.Runtime.CompilerServices;\nusing System.Runtime.InteropServices;\nusing System.Runtime.Intrinsics.X86;\nusing System.Runtime.Intrinsics;\n\nnamespace IntelHardwareIntrinsicTest\n{\n class Program\n {\n const int Pass = 100;\n const int Fail = 0;\n\n static unsafe int Main(string[] args)\n {\n int testResult = Pass;\n\n if (Sse41.IsSupported)\n {\n using (TestTable floatTable = new TestTable(new float[4] { 1, -5, 100, 0 }, new float[4] { 22, -1, -50, 0 }, new float[4]))\n {\n var vf1 = Unsafe.Read>(floatTable.inArray1Ptr);\n var vf2 = Unsafe.Read>(floatTable.inArray2Ptr);\n\n // SDDD\n var vf3 = Sse41.Blend(vf1, vf2, 1);\n Unsafe.Write(floatTable.outArrayPtr, vf3);\n\n if (!floatTable.CheckResult((x, y, z) => (z[0] == y[0]) && (z[1] == x[1]) &&\n (z[2] == x[2]) && (z[3] == x[3])))\n {\n Console.WriteLine(\"SSE41 Blend failed on float:\");\n foreach (var item in floatTable.outArray)\n {\n Console.Write(item + \", \");\n }\n Console.WriteLine();\n testResult = Fail;\n }\n\n // DSDD\n vf3 = Sse41.Blend(vf1, vf2, 2);\n Unsafe.Write(floatTable.outArrayPtr, vf3);\n\n if (!floatTable.CheckResult((x, y, z) => (z[0] == x[0]) && (z[1] == y[1]) &&\n (z[2] == x[2]) && (z[3] == x[3])))\n {\n Console.WriteLine(\"SSE41 Blend failed on float:\");\n foreach (var item in floatTable.outArray)\n {\n Console.Write(item + \", \");\n }\n Console.WriteLine();\n testResult = Fail;\n }\n\n // DDSD\n vf3 = Sse41.Blend(vf1, vf2, 4);\n Unsafe.Write(floatTable.outArrayPtr, vf3);\n\n if (!floatTable.CheckResult((x, y, z) => (z[0] == x[0]) && (z[1] == x[1]) &&\n (z[2] == y[2]) && (z[3] == x[3])))\n {\n Console.WriteLine(\"SSE41 Blend failed on float:\");\n foreach (var item in floatTable.outArray)\n {\n Console.Write(item + \", \");\n }\n Console.WriteLine();\n testResult = Fail;\n }\n\n // SDSD\n vf3 = Sse41.Blend(vf1, vf2, 85);\n Unsafe.Write(floatTable.outArrayPtr, vf3);\n\n if (!floatTable.CheckResult((x, y, z) => (z[0] == y[0]) && (z[1] == x[1]) &&\n (z[2] == y[2]) && (z[3] == x[3])))\n {\n Console.WriteLine(\"SSE41 Blend failed on float:\");\n foreach (var item in floatTable.outArray)\n {\n Console.Write(item + \", \");\n }\n Console.WriteLine();\n testResult = Fail;\n }\n \n // SDDD\n vf3 = (Vector128)typeof(Sse41).GetMethod(nameof(Sse41.Blend), new Type[] { vf1.GetType(), vf2.GetType(), typeof(byte) }).Invoke(null, new object[] { vf1, vf2, (byte)(1) });\n Unsafe.Write(floatTable.outArrayPtr, vf3);\n\n if (!floatTable.CheckResult((x, y, z) => (z[0] == y[0]) && (z[1] == x[1]) &&\n (z[2] == x[2]) && (z[3] == x[3])))\n {\n Console.WriteLine(\"SSE41 Blend failed on float:\");\n foreach (var item in floatTable.outArray)\n {\n Console.Write(item + \", \");\n }\n Console.WriteLine();\n testResult = Fail;\n }\n }\n\n using (TestTable doubleTable = new TestTable(new double[2] { 1, -5 }, new double[2] { 22, -1 }, new double[2]))\n {\n var vf1 = Unsafe.Read>(doubleTable.inArray1Ptr);\n var vf2 = Unsafe.Read>(doubleTable.inArray2Ptr);\n\n // DD\n var vf3 = Sse41.Blend(vf1, vf2, 0);\n Unsafe.Write(doubleTable.outArrayPtr, vf3);\n\n if (!doubleTable.CheckResult((x, y, z) => (z[0] == x[0]) && (z[1] == x[1])))\n {\n Console.WriteLine(\"SSE41 Blend failed on double:\");\n foreach (var item in doubleTable.outArray)\n {\n Console.Write(item + \", \");\n }\n Console.WriteLine();\n testResult = Fail;\n }\n\n // SD\n vf3 = Sse41.Blend(vf1, vf2, 1);\n Unsafe.Write(doubleTable.outArrayPtr, vf3);\n\n if (!doubleTable.CheckResult((x, y, z) => (z[0] == y[0]) && (z[1] == x[1])))\n {\n Console.WriteLine(\"SSE41 Blend failed on double:\");\n foreach (var item in doubleTable.outArray)\n {\n Console.Write(item + \", \");\n }\n Console.WriteLine();\n testResult = Fail;\n }\n\n // DS\n vf3 = Sse41.Blend(vf1, vf2, 2);\n Unsafe.Write(doubleTable.outArrayPtr, vf3);\n\n if (!doubleTable.CheckResult((x, y, z) => (z[0] == x[0]) && (z[1] == y[1])))\n {\n Console.WriteLine(\"SSE41 Blend failed on double:\");\n foreach (var item in doubleTable.outArray)\n {\n Console.Write(item + \", \");\n }\n Console.WriteLine();\n testResult = Fail;\n }\n\n // SS\n vf3 = Sse41.Blend(vf1, vf2, 51);\n Unsafe.Write(doubleTable.outArrayPtr, vf3);\n\n if (!doubleTable.CheckResult((x, y, z) => (z[0] == y[0]) && (z[1] == y[1])))\n {\n Console.WriteLine(\"SSE41 Blend failed on double:\");\n foreach (var item in doubleTable.outArray)\n {\n Console.Write(item + \", \");\n }\n Console.WriteLine();\n testResult = Fail;\n }\n \n // SDDD\n vf3 = (Vector128)typeof(Sse41).GetMethod(nameof(Sse41.Blend), new Type[] { vf1.GetType(), vf2.GetType(), typeof(byte) }).Invoke(null, new object[] { vf1, vf2, (byte)(0) });\n Unsafe.Write(doubleTable.outArrayPtr, vf3);\n\n if (!doubleTable.CheckResult((x, y, z) => (z[0] == x[0]) && (z[1] == x[1])))\n {\n Console.WriteLine(\"SSE41 Blend failed on double:\");\n foreach (var item in doubleTable.outArray)\n {\n Console.Write(item + \", \");\n }\n Console.WriteLine();\n testResult = Fail;\n }\n }\n\n using (TestTable shortTable = new TestTable(new short[8] { 1, -5, 100, 0, 1, -5, 100, 0 }, new short[8] { 22, -1, -50, 0, 22, -1, -50, 0 }, new short[8]))\n {\n var vf1 = Unsafe.Read>(shortTable.inArray1Ptr);\n var vf2 = Unsafe.Read>(shortTable.inArray2Ptr);\n\n // SDDD DDDD\n var vf3 = Sse41.Blend(vf1, vf2, 1);\n Unsafe.Write(shortTable.outArrayPtr, vf3);\n\n if (!shortTable.CheckResult((x, y, z) => (z[0] == y[0]) && (z[1] == x[1]) &&\n (z[2] == x[2]) && (z[3] == x[3]) &&\n (z[4] == x[4]) && (z[5] == x[5]) &&\n (z[6] == x[6]) && (z[7] == x[7])))\n {\n Console.WriteLine(\"SSE41 Blend failed on short:\");\n foreach (var item in shortTable.outArray)\n {\n Console.Write(item + \", \");\n }\n Console.WriteLine();\n testResult = Fail;\n }\n\n // DSDD DDDD\n vf3 = Sse41.Blend(vf1, vf2, 2);\n Unsafe.Write(shortTable.outArrayPtr, vf3);\n\n if (!shortTable.CheckResult((x, y, z) => (z[0] == x[0]) && (z[1] == y[1]) &&\n (z[2] == x[2]) && (z[3] == x[3]) &&\n (z[4] == x[4]) && (z[5] == x[5]) &&\n (z[6] == x[6]) && (z[7] == x[7])))\n {\n Console.WriteLine(\"SSE41 Blend failed on short:\");\n foreach (var item in shortTable.outArray)\n {\n Console.Write(item + \", \");\n }\n Console.WriteLine();\n testResult = Fail;\n }\n\n // DDSD DDDD\n vf3 = Sse41.Blend(vf1, vf2, 4);\n Unsafe.Write(shortTable.outArrayPtr, vf3);\n\n if (!shortTable.CheckResult((x, y, z) => (z[0] == x[0]) && (z[1] == x[1]) &&\n (z[2] == y[2]) && (z[3] == x[3]) &&\n (z[4] == x[4]) && (z[5] == x[5]) &&\n (z[6] == x[6]) && (z[7] == x[7])))\n {\n Console.WriteLine(\"SSE41 Blend failed on short:\");\n foreach (var item in shortTable.outArray)\n {\n Console.Write(item + \", \");\n }\n Console.WriteLine();\n testResult = Fail;\n }\n\n // SDSD SDSD\n vf3 = Sse41.Blend(vf1, vf2, 85);\n Unsafe.Write(shortTable.outArrayPtr, vf3);\n\n if (!shortTable.CheckResult((x, y, z) => (z[0] == y[0]) && (z[1] == x[1]) &&\n (z[2] == y[2]) && (z[3] == x[3]) &&\n (z[4] == y[4]) && (z[5] == x[5]) &&\n (z[6] == y[6]) && (z[7] == x[7])))\n {\n Console.WriteLine(\"SSE41 Blend failed on short:\");\n foreach (var item in shortTable.outArray)\n {\n Console.Write(item + \", \");\n }\n Console.WriteLine();\n testResult = Fail;\n }\n \n // SDDD DDDD\n vf3 = (Vector128)typeof(Sse41).GetMethod(nameof(Sse41.Blend), new Type[] { vf1.GetType(), vf2.GetType(), typeof(byte) }).Invoke(null, new object[] { vf1, vf2, (byte)(1) });\n Unsafe.Write(shortTable.outArrayPtr, vf3);\n\n if (!shortTable.CheckResult((x, y, z) => (z[0] == y[0]) && (z[1] == x[1]) &&\n (z[2] == x[2]) && (z[3] == x[3]) &&\n (z[4] == x[4]) && (z[5] == x[5]) &&\n (z[6] == x[6]) && (z[7] == x[7])))\n {\n Console.WriteLine(\"SSE41 Blend failed on short:\");\n foreach (var item in shortTable.outArray)\n {\n Console.Write(item + \", \");\n }\n Console.WriteLine();\n testResult = Fail;\n }\n }\n\n using (TestTable ushortTable = new TestTable(new ushort[8] { 1, 5, 100, 0, 1, 5, 100, 0 }, new ushort[8] { 22, 1, 50, 0, 22, 1, 50, 0 }, new ushort[8]))\n {\n var vf1 = Unsafe.Read>(ushortTable.inArray1Ptr);\n var vf2 = Unsafe.Read>(ushortTable.inArray2Ptr);\n\n // SDDD DDDD\n var vf3 = Sse41.Blend(vf1, vf2, 1);\n Unsafe.Write(ushortTable.outArrayPtr, vf3);\n\n if (!ushortTable.CheckResult((x, y, z) => (z[0] == y[0]) && (z[1] == x[1]) &&\n (z[2] == x[2]) && (z[3] == x[3]) &&\n (z[4] == x[4]) && (z[5] == x[5]) &&\n (z[6] == x[6]) && (z[7] == x[7])))\n {\n Console.WriteLine(\"SSE41 Blend failed on ushort:\");\n foreach (var item in ushortTable.outArray)\n {\n Console.Write(item + \", \");\n }\n Console.WriteLine();\n testResult = Fail;\n }\n\n // DSDD DDDD\n vf3 = Sse41.Blend(vf1, vf2, 2);\n Unsafe.Write(ushortTable.outArrayPtr, vf3);\n\n if (!ushortTable.CheckResult((x, y, z) => (z[0] == x[0]) && (z[1] == y[1]) &&\n (z[2] == x[2]) && (z[3] == x[3]) &&\n (z[4] == x[4]) && (z[5] == x[5]) &&\n (z[6] == x[6]) && (z[7] == x[7])))\n {\n Console.WriteLine(\"SSE41 Blend failed on ushort:\");\n foreach (var item in ushortTable.outArray)\n {\n Console.Write(item + \", \");\n }\n Console.WriteLine();\n testResult = Fail;\n }\n\n // DDSD DDDD\n vf3 = Sse41.Blend(vf1, vf2, 4);\n Unsafe.Write(ushortTable.outArrayPtr, vf3);\n\n if (!ushortTable.CheckResult((x, y, z) => (z[0] == x[0]) && (z[1] == x[1]) &&\n (z[2] == y[2]) && (z[3] == x[3]) &&\n (z[4] == x[4]) && (z[5] == x[5]) &&\n (z[6] == x[6]) && (z[7] == x[7])))\n {\n Console.WriteLine(\"SSE41 Blend failed on ushort:\");\n foreach (var item in ushortTable.outArray)\n {\n Console.Write(item + \", \");\n }\n Console.WriteLine();\n testResult = Fail;\n }\n\n // SDSD SDSD\n vf3 = Sse41.Blend(vf1, vf2, 85);\n Unsafe.Write(ushortTable.outArrayPtr, vf3);\n\n if (!ushortTable.CheckResult((x, y, z) => (z[0] == y[0]) && (z[1] == x[1]) &&\n (z[2] == y[2]) && (z[3] == x[3]) &&\n (z[4] == y[4]) && (z[5] == x[5]) &&\n (z[6] == y[6]) && (z[7] == x[7])))\n {\n Console.WriteLine(\"SSE41 Blend failed on ushort:\");\n foreach (var item in ushortTable.outArray)\n {\n Console.Write(item + \", \");\n }\n Console.WriteLine();\n testResult = Fail;\n }\n \n // SDDD DDDD\n vf3 = (Vector128)typeof(Sse41).GetMethod(nameof(Sse41.Blend), new Type[] { vf1.GetType(), vf2.GetType(), typeof(byte) }).Invoke(null, new object[] { vf1, vf2, (byte)(1) });\n Unsafe.Write(ushortTable.outArrayPtr, vf3);\n\n if (!ushortTable.CheckResult((x, y, z) => (z[0] == y[0]) && (z[1] == x[1]) &&\n (z[2] == x[2]) && (z[3] == x[3]) &&\n (z[4] == x[4]) && (z[5] == x[5]) &&\n (z[6] == x[6]) && (z[7] == x[7])))\n {\n Console.WriteLine(\"SSE41 Blend failed on ushort:\");\n foreach (var item in ushortTable.outArray)\n {\n Console.Write(item + \", \");\n }\n Console.WriteLine();\n testResult = Fail;\n }\n }\n }\n\n return testResult;\n }\n\n public unsafe struct TestTable : IDisposable where T : struct\n {\n public T[] inArray1;\n public T[] inArray2;\n public T[] outArray;\n\n public void* inArray1Ptr => inHandle1.AddrOfPinnedObject().ToPointer();\n public void* inArray2Ptr => inHandle2.AddrOfPinnedObject().ToPointer();\n public void* outArrayPtr => outHandle.AddrOfPinnedObject().ToPointer();\n\n GCHandle inHandle1;\n GCHandle inHandle2;\n GCHandle outHandle;\n public TestTable(T[] a, T[] b, T[] c)\n {\n this.inArray1 = a;\n this.inArray2 = b;\n this.outArray = c;\n\n inHandle1 = GCHandle.Alloc(inArray1, GCHandleType.Pinned);\n inHandle2 = GCHandle.Alloc(inArray2, GCHandleType.Pinned);\n outHandle = GCHandle.Alloc(outArray, GCHandleType.Pinned);\n }\n public bool CheckResult(Func check)\n {\n return check(inArray1, inArray2, outArray);\n }\n\n public void Dispose()\n {\n inHandle1.Free();\n inHandle2.Free();\n outHandle.Free();\n }\n }\n }\n}\n"},"after_content":{"kind":"string","value":"// Licensed to the .NET Foundation under one or more agreements.\n// The .NET Foundation licenses this file to you under the MIT license.\n//\n\nusing System;\nusing System.Runtime.CompilerServices;\nusing System.Runtime.InteropServices;\nusing System.Runtime.Intrinsics.X86;\nusing System.Runtime.Intrinsics;\n\nnamespace IntelHardwareIntrinsicTest\n{\n class Program\n {\n const int Pass = 100;\n const int Fail = 0;\n\n static unsafe int Main(string[] args)\n {\n int testResult = Pass;\n\n if (Sse41.IsSupported)\n {\n using (TestTable floatTable = new TestTable(new float[4] { 1, -5, 100, 0 }, new float[4] { 22, -1, -50, 0 }, new float[4]))\n {\n var vf1 = Unsafe.Read>(floatTable.inArray1Ptr);\n var vf2 = Unsafe.Read>(floatTable.inArray2Ptr);\n\n // SDDD\n var vf3 = Sse41.Blend(vf1, vf2, 1);\n Unsafe.Write(floatTable.outArrayPtr, vf3);\n\n if (!floatTable.CheckResult((x, y, z) => (z[0] == y[0]) && (z[1] == x[1]) &&\n (z[2] == x[2]) && (z[3] == x[3])))\n {\n Console.WriteLine(\"SSE41 Blend failed on float:\");\n foreach (var item in floatTable.outArray)\n {\n Console.Write(item + \", \");\n }\n Console.WriteLine();\n testResult = Fail;\n }\n\n // DSDD\n vf3 = Sse41.Blend(vf1, vf2, 2);\n Unsafe.Write(floatTable.outArrayPtr, vf3);\n\n if (!floatTable.CheckResult((x, y, z) => (z[0] == x[0]) && (z[1] == y[1]) &&\n (z[2] == x[2]) && (z[3] == x[3])))\n {\n Console.WriteLine(\"SSE41 Blend failed on float:\");\n foreach (var item in floatTable.outArray)\n {\n Console.Write(item + \", \");\n }\n Console.WriteLine();\n testResult = Fail;\n }\n\n // DDSD\n vf3 = Sse41.Blend(vf1, vf2, 4);\n Unsafe.Write(floatTable.outArrayPtr, vf3);\n\n if (!floatTable.CheckResult((x, y, z) => (z[0] == x[0]) && (z[1] == x[1]) &&\n (z[2] == y[2]) && (z[3] == x[3])))\n {\n Console.WriteLine(\"SSE41 Blend failed on float:\");\n foreach (var item in floatTable.outArray)\n {\n Console.Write(item + \", \");\n }\n Console.WriteLine();\n testResult = Fail;\n }\n\n // SDSD\n vf3 = Sse41.Blend(vf1, vf2, 85);\n Unsafe.Write(floatTable.outArrayPtr, vf3);\n\n if (!floatTable.CheckResult((x, y, z) => (z[0] == y[0]) && (z[1] == x[1]) &&\n (z[2] == y[2]) && (z[3] == x[3])))\n {\n Console.WriteLine(\"SSE41 Blend failed on float:\");\n foreach (var item in floatTable.outArray)\n {\n Console.Write(item + \", \");\n }\n Console.WriteLine();\n testResult = Fail;\n }\n \n // SDDD\n vf3 = (Vector128)typeof(Sse41).GetMethod(nameof(Sse41.Blend), new Type[] { vf1.GetType(), vf2.GetType(), typeof(byte) }).Invoke(null, new object[] { vf1, vf2, (byte)(1) });\n Unsafe.Write(floatTable.outArrayPtr, vf3);\n\n if (!floatTable.CheckResult((x, y, z) => (z[0] == y[0]) && (z[1] == x[1]) &&\n (z[2] == x[2]) && (z[3] == x[3])))\n {\n Console.WriteLine(\"SSE41 Blend failed on float:\");\n foreach (var item in floatTable.outArray)\n {\n Console.Write(item + \", \");\n }\n Console.WriteLine();\n testResult = Fail;\n }\n }\n\n using (TestTable doubleTable = new TestTable(new double[2] { 1, -5 }, new double[2] { 22, -1 }, new double[2]))\n {\n var vf1 = Unsafe.Read>(doubleTable.inArray1Ptr);\n var vf2 = Unsafe.Read>(doubleTable.inArray2Ptr);\n\n // DD\n var vf3 = Sse41.Blend(vf1, vf2, 0);\n Unsafe.Write(doubleTable.outArrayPtr, vf3);\n\n if (!doubleTable.CheckResult((x, y, z) => (z[0] == x[0]) && (z[1] == x[1])))\n {\n Console.WriteLine(\"SSE41 Blend failed on double:\");\n foreach (var item in doubleTable.outArray)\n {\n Console.Write(item + \", \");\n }\n Console.WriteLine();\n testResult = Fail;\n }\n\n // SD\n vf3 = Sse41.Blend(vf1, vf2, 1);\n Unsafe.Write(doubleTable.outArrayPtr, vf3);\n\n if (!doubleTable.CheckResult((x, y, z) => (z[0] == y[0]) && (z[1] == x[1])))\n {\n Console.WriteLine(\"SSE41 Blend failed on double:\");\n foreach (var item in doubleTable.outArray)\n {\n Console.Write(item + \", \");\n }\n Console.WriteLine();\n testResult = Fail;\n }\n\n // DS\n vf3 = Sse41.Blend(vf1, vf2, 2);\n Unsafe.Write(doubleTable.outArrayPtr, vf3);\n\n if (!doubleTable.CheckResult((x, y, z) => (z[0] == x[0]) && (z[1] == y[1])))\n {\n Console.WriteLine(\"SSE41 Blend failed on double:\");\n foreach (var item in doubleTable.outArray)\n {\n Console.Write(item + \", \");\n }\n Console.WriteLine();\n testResult = Fail;\n }\n\n // SS\n vf3 = Sse41.Blend(vf1, vf2, 51);\n Unsafe.Write(doubleTable.outArrayPtr, vf3);\n\n if (!doubleTable.CheckResult((x, y, z) => (z[0] == y[0]) && (z[1] == y[1])))\n {\n Console.WriteLine(\"SSE41 Blend failed on double:\");\n foreach (var item in doubleTable.outArray)\n {\n Console.Write(item + \", \");\n }\n Console.WriteLine();\n testResult = Fail;\n }\n \n // SDDD\n vf3 = (Vector128)typeof(Sse41).GetMethod(nameof(Sse41.Blend), new Type[] { vf1.GetType(), vf2.GetType(), typeof(byte) }).Invoke(null, new object[] { vf1, vf2, (byte)(0) });\n Unsafe.Write(doubleTable.outArrayPtr, vf3);\n\n if (!doubleTable.CheckResult((x, y, z) => (z[0] == x[0]) && (z[1] == x[1])))\n {\n Console.WriteLine(\"SSE41 Blend failed on double:\");\n foreach (var item in doubleTable.outArray)\n {\n Console.Write(item + \", \");\n }\n Console.WriteLine();\n testResult = Fail;\n }\n }\n\n using (TestTable shortTable = new TestTable(new short[8] { 1, -5, 100, 0, 1, -5, 100, 0 }, new short[8] { 22, -1, -50, 0, 22, -1, -50, 0 }, new short[8]))\n {\n var vf1 = Unsafe.Read>(shortTable.inArray1Ptr);\n var vf2 = Unsafe.Read>(shortTable.inArray2Ptr);\n\n // SDDD DDDD\n var vf3 = Sse41.Blend(vf1, vf2, 1);\n Unsafe.Write(shortTable.outArrayPtr, vf3);\n\n if (!shortTable.CheckResult((x, y, z) => (z[0] == y[0]) && (z[1] == x[1]) &&\n (z[2] == x[2]) && (z[3] == x[3]) &&\n (z[4] == x[4]) && (z[5] == x[5]) &&\n (z[6] == x[6]) && (z[7] == x[7])))\n {\n Console.WriteLine(\"SSE41 Blend failed on short:\");\n foreach (var item in shortTable.outArray)\n {\n Console.Write(item + \", \");\n }\n Console.WriteLine();\n testResult = Fail;\n }\n\n // DSDD DDDD\n vf3 = Sse41.Blend(vf1, vf2, 2);\n Unsafe.Write(shortTable.outArrayPtr, vf3);\n\n if (!shortTable.CheckResult((x, y, z) => (z[0] == x[0]) && (z[1] == y[1]) &&\n (z[2] == x[2]) && (z[3] == x[3]) &&\n (z[4] == x[4]) && (z[5] == x[5]) &&\n (z[6] == x[6]) && (z[7] == x[7])))\n {\n Console.WriteLine(\"SSE41 Blend failed on short:\");\n foreach (var item in shortTable.outArray)\n {\n Console.Write(item + \", \");\n }\n Console.WriteLine();\n testResult = Fail;\n }\n\n // DDSD DDDD\n vf3 = Sse41.Blend(vf1, vf2, 4);\n Unsafe.Write(shortTable.outArrayPtr, vf3);\n\n if (!shortTable.CheckResult((x, y, z) => (z[0] == x[0]) && (z[1] == x[1]) &&\n (z[2] == y[2]) && (z[3] == x[3]) &&\n (z[4] == x[4]) && (z[5] == x[5]) &&\n (z[6] == x[6]) && (z[7] == x[7])))\n {\n Console.WriteLine(\"SSE41 Blend failed on short:\");\n foreach (var item in shortTable.outArray)\n {\n Console.Write(item + \", \");\n }\n Console.WriteLine();\n testResult = Fail;\n }\n\n // SDSD SDSD\n vf3 = Sse41.Blend(vf1, vf2, 85);\n Unsafe.Write(shortTable.outArrayPtr, vf3);\n\n if (!shortTable.CheckResult((x, y, z) => (z[0] == y[0]) && (z[1] == x[1]) &&\n (z[2] == y[2]) && (z[3] == x[3]) &&\n (z[4] == y[4]) && (z[5] == x[5]) &&\n (z[6] == y[6]) && (z[7] == x[7])))\n {\n Console.WriteLine(\"SSE41 Blend failed on short:\");\n foreach (var item in shortTable.outArray)\n {\n Console.Write(item + \", \");\n }\n Console.WriteLine();\n testResult = Fail;\n }\n \n // SDDD DDDD\n vf3 = (Vector128)typeof(Sse41).GetMethod(nameof(Sse41.Blend), new Type[] { vf1.GetType(), vf2.GetType(), typeof(byte) }).Invoke(null, new object[] { vf1, vf2, (byte)(1) });\n Unsafe.Write(shortTable.outArrayPtr, vf3);\n\n if (!shortTable.CheckResult((x, y, z) => (z[0] == y[0]) && (z[1] == x[1]) &&\n (z[2] == x[2]) && (z[3] == x[3]) &&\n (z[4] == x[4]) && (z[5] == x[5]) &&\n (z[6] == x[6]) && (z[7] == x[7])))\n {\n Console.WriteLine(\"SSE41 Blend failed on short:\");\n foreach (var item in shortTable.outArray)\n {\n Console.Write(item + \", \");\n }\n Console.WriteLine();\n testResult = Fail;\n }\n }\n\n using (TestTable ushortTable = new TestTable(new ushort[8] { 1, 5, 100, 0, 1, 5, 100, 0 }, new ushort[8] { 22, 1, 50, 0, 22, 1, 50, 0 }, new ushort[8]))\n {\n var vf1 = Unsafe.Read>(ushortTable.inArray1Ptr);\n var vf2 = Unsafe.Read>(ushortTable.inArray2Ptr);\n\n // SDDD DDDD\n var vf3 = Sse41.Blend(vf1, vf2, 1);\n Unsafe.Write(ushortTable.outArrayPtr, vf3);\n\n if (!ushortTable.CheckResult((x, y, z) => (z[0] == y[0]) && (z[1] == x[1]) &&\n (z[2] == x[2]) && (z[3] == x[3]) &&\n (z[4] == x[4]) && (z[5] == x[5]) &&\n (z[6] == x[6]) && (z[7] == x[7])))\n {\n Console.WriteLine(\"SSE41 Blend failed on ushort:\");\n foreach (var item in ushortTable.outArray)\n {\n Console.Write(item + \", \");\n }\n Console.WriteLine();\n testResult = Fail;\n }\n\n // DSDD DDDD\n vf3 = Sse41.Blend(vf1, vf2, 2);\n Unsafe.Write(ushortTable.outArrayPtr, vf3);\n\n if (!ushortTable.CheckResult((x, y, z) => (z[0] == x[0]) && (z[1] == y[1]) &&\n (z[2] == x[2]) && (z[3] == x[3]) &&\n (z[4] == x[4]) && (z[5] == x[5]) &&\n (z[6] == x[6]) && (z[7] == x[7])))\n {\n Console.WriteLine(\"SSE41 Blend failed on ushort:\");\n foreach (var item in ushortTable.outArray)\n {\n Console.Write(item + \", \");\n }\n Console.WriteLine();\n testResult = Fail;\n }\n\n // DDSD DDDD\n vf3 = Sse41.Blend(vf1, vf2, 4);\n Unsafe.Write(ushortTable.outArrayPtr, vf3);\n\n if (!ushortTable.CheckResult((x, y, z) => (z[0] == x[0]) && (z[1] == x[1]) &&\n (z[2] == y[2]) && (z[3] == x[3]) &&\n (z[4] == x[4]) && (z[5] == x[5]) &&\n (z[6] == x[6]) && (z[7] == x[7])))\n {\n Console.WriteLine(\"SSE41 Blend failed on ushort:\");\n foreach (var item in ushortTable.outArray)\n {\n Console.Write(item + \", \");\n }\n Console.WriteLine();\n testResult = Fail;\n }\n\n // SDSD SDSD\n vf3 = Sse41.Blend(vf1, vf2, 85);\n Unsafe.Write(ushortTable.outArrayPtr, vf3);\n\n if (!ushortTable.CheckResult((x, y, z) => (z[0] == y[0]) && (z[1] == x[1]) &&\n (z[2] == y[2]) && (z[3] == x[3]) &&\n (z[4] == y[4]) && (z[5] == x[5]) &&\n (z[6] == y[6]) && (z[7] == x[7])))\n {\n Console.WriteLine(\"SSE41 Blend failed on ushort:\");\n foreach (var item in ushortTable.outArray)\n {\n Console.Write(item + \", \");\n }\n Console.WriteLine();\n testResult = Fail;\n }\n \n // SDDD DDDD\n vf3 = (Vector128)typeof(Sse41).GetMethod(nameof(Sse41.Blend), new Type[] { vf1.GetType(), vf2.GetType(), typeof(byte) }).Invoke(null, new object[] { vf1, vf2, (byte)(1) });\n Unsafe.Write(ushortTable.outArrayPtr, vf3);\n\n if (!ushortTable.CheckResult((x, y, z) => (z[0] == y[0]) && (z[1] == x[1]) &&\n (z[2] == x[2]) && (z[3] == x[3]) &&\n (z[4] == x[4]) && (z[5] == x[5]) &&\n (z[6] == x[6]) && (z[7] == x[7])))\n {\n Console.WriteLine(\"SSE41 Blend failed on ushort:\");\n foreach (var item in ushortTable.outArray)\n {\n Console.Write(item + \", \");\n }\n Console.WriteLine();\n testResult = Fail;\n }\n }\n }\n\n return testResult;\n }\n\n public unsafe struct TestTable : IDisposable where T : struct\n {\n public T[] inArray1;\n public T[] inArray2;\n public T[] outArray;\n\n public void* inArray1Ptr => inHandle1.AddrOfPinnedObject().ToPointer();\n public void* inArray2Ptr => inHandle2.AddrOfPinnedObject().ToPointer();\n public void* outArrayPtr => outHandle.AddrOfPinnedObject().ToPointer();\n\n GCHandle inHandle1;\n GCHandle inHandle2;\n GCHandle outHandle;\n public TestTable(T[] a, T[] b, T[] c)\n {\n this.inArray1 = a;\n this.inArray2 = b;\n this.outArray = c;\n\n inHandle1 = GCHandle.Alloc(inArray1, GCHandleType.Pinned);\n inHandle2 = GCHandle.Alloc(inArray2, GCHandleType.Pinned);\n outHandle = GCHandle.Alloc(outArray, GCHandleType.Pinned);\n }\n public bool CheckResult(Func check)\n {\n return check(inArray1, inArray2, outArray);\n }\n\n public void Dispose()\n {\n inHandle1.Free();\n inHandle2.Free();\n outHandle.Free();\n }\n }\n }\n}\n"},"label":{"kind":"number","value":-1,"string":"-1"}}},{"rowIdx":2071822,"cells":{"repo_name":{"kind":"string","value":"dotnet/runtime"},"pr_number":{"kind":"number","value":66111,"string":"66,111"},"pr_title":{"kind":"string","value":"Update RegexGenerator to require LangVersion > 10"},"pr_description":{"kind":"string","value":"We plan to take a dependency on a C# 11 language feature. For now, reserve that right by requiring a version > 10. We can downgrade it later if possible and desired."},"author":{"kind":"string","value":"stephentoub"},"date_created":{"kind":"timestamp","value":"2022-03-02T21:41:16Z","string":"2022-03-02T21:41:16Z"},"date_merged":{"kind":"timestamp","value":"2022-03-03T04:10:47Z","string":"2022-03-03T04:10:47Z"},"previous_commit":{"kind":"string","value":"83adfae6a6273d8fb4c69554aa3b1cc7cbf01c71"},"pr_commit":{"kind":"string","value":"c4541b3f4f66209aed77c7d7d0fd9d8511e3ac5e"},"query":{"kind":"string","value":"Update RegexGenerator to require LangVersion > 10. We plan to take a dependency on a C# 11 language feature. For now, reserve that right by requiring a version > 10. We can downgrade it later if possible and desired."},"filepath":{"kind":"string","value":"./src/native/external/rapidjson/memorybuffer.h"},"before_content":{"kind":"string","value":"// Tencent is pleased to support the open source community by making RapidJSON available.\n// \n// Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip. All rights reserved.\n//\n// Licensed under the MIT License (the \"License\"); you may not use this file except\n// in compliance with the License. You may obtain a copy of the License at\n//\n// http://opensource.org/licenses/MIT\n//\n// Unless required by applicable law or agreed to in writing, software distributed \n// under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR \n// CONDITIONS OF ANY KIND, either express or implied. See the License for the \n// specific language governing permissions and limitations under the License.\n\n#ifndef RAPIDJSON_MEMORYBUFFER_H_\n#define RAPIDJSON_MEMORYBUFFER_H_\n\n#include \"stream.h\"\n#include \"internal/stack.h\"\n\nRAPIDJSON_NAMESPACE_BEGIN\n\n//! Represents an in-memory output byte stream.\n/*!\n This class is mainly for being wrapped by EncodedOutputStream or AutoUTFOutputStream.\n\n It is similar to FileWriteBuffer but the destination is an in-memory buffer instead of a file.\n\n Differences between MemoryBuffer and StringBuffer:\n 1. StringBuffer has Encoding but MemoryBuffer is only a byte buffer. \n 2. StringBuffer::GetString() returns a null-terminated string. MemoryBuffer::GetBuffer() returns a buffer without terminator.\n\n \\tparam Allocator type for allocating memory buffer.\n \\note implements Stream concept\n*/\ntemplate \nstruct GenericMemoryBuffer {\n typedef char Ch; // byte\n\n GenericMemoryBuffer(Allocator* allocator = 0, size_t capacity = kDefaultCapacity) : stack_(allocator, capacity) {}\n\n void Put(Ch c) { *stack_.template Push() = c; }\n void Flush() {}\n\n void Clear() { stack_.Clear(); }\n void ShrinkToFit() { stack_.ShrinkToFit(); }\n Ch* Push(size_t count) { return stack_.template Push(count); }\n void Pop(size_t count) { stack_.template Pop(count); }\n\n const Ch* GetBuffer() const {\n return stack_.template Bottom();\n }\n\n size_t GetSize() const { return stack_.GetSize(); }\n\n static const size_t kDefaultCapacity = 256;\n mutable internal::Stack stack_;\n};\n\ntypedef GenericMemoryBuffer<> MemoryBuffer;\n\n//! Implement specialized version of PutN() with memset() for better performance.\ntemplate<>\ninline void PutN(MemoryBuffer& memoryBuffer, char c, size_t n) {\n std::memset(memoryBuffer.stack_.Push(n), c, n * sizeof(c));\n}\n\nRAPIDJSON_NAMESPACE_END\n\n#endif // RAPIDJSON_MEMORYBUFFER_H_\n"},"after_content":{"kind":"string","value":"// Tencent is pleased to support the open source community by making RapidJSON available.\n// \n// Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip. All rights reserved.\n//\n// Licensed under the MIT License (the \"License\"); you may not use this file except\n// in compliance with the License. You may obtain a copy of the License at\n//\n// http://opensource.org/licenses/MIT\n//\n// Unless required by applicable law or agreed to in writing, software distributed \n// under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR \n// CONDITIONS OF ANY KIND, either express or implied. See the License for the \n// specific language governing permissions and limitations under the License.\n\n#ifndef RAPIDJSON_MEMORYBUFFER_H_\n#define RAPIDJSON_MEMORYBUFFER_H_\n\n#include \"stream.h\"\n#include \"internal/stack.h\"\n\nRAPIDJSON_NAMESPACE_BEGIN\n\n//! Represents an in-memory output byte stream.\n/*!\n This class is mainly for being wrapped by EncodedOutputStream or AutoUTFOutputStream.\n\n It is similar to FileWriteBuffer but the destination is an in-memory buffer instead of a file.\n\n Differences between MemoryBuffer and StringBuffer:\n 1. StringBuffer has Encoding but MemoryBuffer is only a byte buffer. \n 2. StringBuffer::GetString() returns a null-terminated string. MemoryBuffer::GetBuffer() returns a buffer without terminator.\n\n \\tparam Allocator type for allocating memory buffer.\n \\note implements Stream concept\n*/\ntemplate \nstruct GenericMemoryBuffer {\n typedef char Ch; // byte\n\n GenericMemoryBuffer(Allocator* allocator = 0, size_t capacity = kDefaultCapacity) : stack_(allocator, capacity) {}\n\n void Put(Ch c) { *stack_.template Push() = c; }\n void Flush() {}\n\n void Clear() { stack_.Clear(); }\n void ShrinkToFit() { stack_.ShrinkToFit(); }\n Ch* Push(size_t count) { return stack_.template Push(count); }\n void Pop(size_t count) { stack_.template Pop(count); }\n\n const Ch* GetBuffer() const {\n return stack_.template Bottom();\n }\n\n size_t GetSize() const { return stack_.GetSize(); }\n\n static const size_t kDefaultCapacity = 256;\n mutable internal::Stack stack_;\n};\n\ntypedef GenericMemoryBuffer<> MemoryBuffer;\n\n//! Implement specialized version of PutN() with memset() for better performance.\ntemplate<>\ninline void PutN(MemoryBuffer& memoryBuffer, char c, size_t n) {\n std::memset(memoryBuffer.stack_.Push(n), c, n * sizeof(c));\n}\n\nRAPIDJSON_NAMESPACE_END\n\n#endif // RAPIDJSON_MEMORYBUFFER_H_\n"},"label":{"kind":"number","value":-1,"string":"-1"}}},{"rowIdx":2071823,"cells":{"repo_name":{"kind":"string","value":"dotnet/runtime"},"pr_number":{"kind":"number","value":66111,"string":"66,111"},"pr_title":{"kind":"string","value":"Update RegexGenerator to require LangVersion > 10"},"pr_description":{"kind":"string","value":"We plan to take a dependency on a C# 11 language feature. For now, reserve that right by requiring a version > 10. We can downgrade it later if possible and desired."},"author":{"kind":"string","value":"stephentoub"},"date_created":{"kind":"timestamp","value":"2022-03-02T21:41:16Z","string":"2022-03-02T21:41:16Z"},"date_merged":{"kind":"timestamp","value":"2022-03-03T04:10:47Z","string":"2022-03-03T04:10:47Z"},"previous_commit":{"kind":"string","value":"83adfae6a6273d8fb4c69554aa3b1cc7cbf01c71"},"pr_commit":{"kind":"string","value":"c4541b3f4f66209aed77c7d7d0fd9d8511e3ac5e"},"query":{"kind":"string","value":"Update RegexGenerator to require LangVersion > 10. We plan to take a dependency on a C# 11 language feature. For now, reserve that right by requiring a version > 10. We can downgrade it later if possible and desired."},"filepath":{"kind":"string","value":"./src/tests/JIT/Performance/CodeQuality/SIMD/ConsoleMandel/ScalarFloat.cs"},"before_content":{"kind":"string","value":"// Licensed to the .NET Foundation under one or more agreements.\n// The .NET Foundation licenses this file to you under the MIT license.\n//\n\nusing System;\nusing System.Threading.Tasks;\n\nnamespace Algorithms\n{\n // This class contains renderers that use scalar floats\n internal class ScalarFloatRenderer : FractalRenderer\n {\n public ScalarFloatRenderer(Action dp, Func abortFunc)\n : base(dp, abortFunc)\n {\n }\n\n protected const float limit = 4.0f;\n\n // Render the fractal using a Complex data type on a single thread with scalar floats\n public void RenderSingleThreadedWithADT(float xmin, float xmax, float ymin, float ymax, float step)\n {\n int yp = 0;\n for (float y = ymin; y < ymax && !Abort; y += step, yp++)\n {\n int xp = 0;\n for (float x = xmin; x < xmax; x += step, xp++)\n {\n ComplexFloat num = new ComplexFloat(x, y);\n ComplexFloat accum = num;\n int iters = 0;\n float sqabs = 0f;\n do\n {\n accum = accum.square();\n accum += num;\n iters++;\n sqabs = accum.sqabs();\n } while (sqabs < limit && iters < max_iters);\n\n DrawPixel(xp, yp, iters);\n }\n }\n }\n\n // Render the fractal with no data type abstraction on a single thread with scalar floats\n public void RenderSingleThreadedNoADT(float xmin, float xmax, float ymin, float ymax, float step)\n {\n int yp = 0;\n for (float y = ymin; y < ymax && !Abort; y += step, yp++)\n {\n int xp = 0;\n for (float x = xmin; x < xmax; x += step, xp++)\n {\n float accumx = x;\n float accumy = y;\n int iters = 0;\n float sqabs = 0f;\n do\n {\n float naccumx = accumx * accumx - accumy * accumy;\n float naccumy = 2.0f * accumx * accumy;\n accumx = naccumx + x;\n accumy = naccumy + y;\n iters++;\n sqabs = accumx * accumx + accumy * accumy;\n } while (sqabs < limit && iters < max_iters);\n DrawPixel(xp, yp, iters);\n }\n }\n }\n\n // Render the fractal using a Complex data type on a single thread with scalar floats\n public void RenderMultiThreadedWithADT(float xmin, float xmax, float ymin, float ymax, float step)\n {\n Parallel.For(0, (int)(((ymax - ymin) / step) + .5f), (yp) =>\n {\n if (Abort)\n return;\n float y = ymin + step * yp;\n int xp = 0;\n for (float x = xmin; x < xmax; x += step, xp++)\n {\n ComplexFloat num = new ComplexFloat(x, y);\n ComplexFloat accum = num;\n int iters = 0;\n float sqabs = 0f;\n do\n {\n accum = accum.square();\n accum += num;\n iters++;\n sqabs = accum.sqabs();\n } while (sqabs < limit && iters < max_iters);\n\n DrawPixel(xp, yp, iters);\n }\n });\n }\n\n // Render the fractal with no data type abstraction on multiple threads with scalar floats\n public void RenderMultiThreadedNoADT(float xmin, float xmax, float ymin, float ymax, float step)\n {\n Parallel.For(0, (int)(((ymax - ymin) / step) + .5f), (yp) =>\n {\n if (Abort)\n return;\n float y = ymin + step * yp;\n int xp = 0;\n for (float x = xmin; x < xmax; x += step, xp++)\n {\n float accumx = x;\n float accumy = y;\n int iters = 0;\n float sqabs = 0f;\n do\n {\n float naccumx = accumx * accumx - accumy * accumy;\n float naccumy = 2.0f * accumx * accumy;\n accumx = naccumx + x;\n accumy = naccumy + y;\n iters++;\n sqabs = accumx * accumx + accumy * accumy;\n } while (sqabs < limit && iters < max_iters);\n\n DrawPixel(xp, yp, iters);\n }\n });\n }\n }\n}\n"},"after_content":{"kind":"string","value":"// Licensed to the .NET Foundation under one or more agreements.\n// The .NET Foundation licenses this file to you under the MIT license.\n//\n\nusing System;\nusing System.Threading.Tasks;\n\nnamespace Algorithms\n{\n // This class contains renderers that use scalar floats\n internal class ScalarFloatRenderer : FractalRenderer\n {\n public ScalarFloatRenderer(Action dp, Func abortFunc)\n : base(dp, abortFunc)\n {\n }\n\n protected const float limit = 4.0f;\n\n // Render the fractal using a Complex data type on a single thread with scalar floats\n public void RenderSingleThreadedWithADT(float xmin, float xmax, float ymin, float ymax, float step)\n {\n int yp = 0;\n for (float y = ymin; y < ymax && !Abort; y += step, yp++)\n {\n int xp = 0;\n for (float x = xmin; x < xmax; x += step, xp++)\n {\n ComplexFloat num = new ComplexFloat(x, y);\n ComplexFloat accum = num;\n int iters = 0;\n float sqabs = 0f;\n do\n {\n accum = accum.square();\n accum += num;\n iters++;\n sqabs = accum.sqabs();\n } while (sqabs < limit && iters < max_iters);\n\n DrawPixel(xp, yp, iters);\n }\n }\n }\n\n // Render the fractal with no data type abstraction on a single thread with scalar floats\n public void RenderSingleThreadedNoADT(float xmin, float xmax, float ymin, float ymax, float step)\n {\n int yp = 0;\n for (float y = ymin; y < ymax && !Abort; y += step, yp++)\n {\n int xp = 0;\n for (float x = xmin; x < xmax; x += step, xp++)\n {\n float accumx = x;\n float accumy = y;\n int iters = 0;\n float sqabs = 0f;\n do\n {\n float naccumx = accumx * accumx - accumy * accumy;\n float naccumy = 2.0f * accumx * accumy;\n accumx = naccumx + x;\n accumy = naccumy + y;\n iters++;\n sqabs = accumx * accumx + accumy * accumy;\n } while (sqabs < limit && iters < max_iters);\n DrawPixel(xp, yp, iters);\n }\n }\n }\n\n // Render the fractal using a Complex data type on a single thread with scalar floats\n public void RenderMultiThreadedWithADT(float xmin, float xmax, float ymin, float ymax, float step)\n {\n Parallel.For(0, (int)(((ymax - ymin) / step) + .5f), (yp) =>\n {\n if (Abort)\n return;\n float y = ymin + step * yp;\n int xp = 0;\n for (float x = xmin; x < xmax; x += step, xp++)\n {\n ComplexFloat num = new ComplexFloat(x, y);\n ComplexFloat accum = num;\n int iters = 0;\n float sqabs = 0f;\n do\n {\n accum = accum.square();\n accum += num;\n iters++;\n sqabs = accum.sqabs();\n } while (sqabs < limit && iters < max_iters);\n\n DrawPixel(xp, yp, iters);\n }\n });\n }\n\n // Render the fractal with no data type abstraction on multiple threads with scalar floats\n public void RenderMultiThreadedNoADT(float xmin, float xmax, float ymin, float ymax, float step)\n {\n Parallel.For(0, (int)(((ymax - ymin) / step) + .5f), (yp) =>\n {\n if (Abort)\n return;\n float y = ymin + step * yp;\n int xp = 0;\n for (float x = xmin; x < xmax; x += step, xp++)\n {\n float accumx = x;\n float accumy = y;\n int iters = 0;\n float sqabs = 0f;\n do\n {\n float naccumx = accumx * accumx - accumy * accumy;\n float naccumy = 2.0f * accumx * accumy;\n accumx = naccumx + x;\n accumy = naccumy + y;\n iters++;\n sqabs = accumx * accumx + accumy * accumy;\n } while (sqabs < limit && iters < max_iters);\n\n DrawPixel(xp, yp, iters);\n }\n });\n }\n }\n}\n"},"label":{"kind":"number","value":-1,"string":"-1"}}},{"rowIdx":2071824,"cells":{"repo_name":{"kind":"string","value":"dotnet/runtime"},"pr_number":{"kind":"number","value":66111,"string":"66,111"},"pr_title":{"kind":"string","value":"Update RegexGenerator to require LangVersion > 10"},"pr_description":{"kind":"string","value":"We plan to take a dependency on a C# 11 language feature. For now, reserve that right by requiring a version > 10. We can downgrade it later if possible and desired."},"author":{"kind":"string","value":"stephentoub"},"date_created":{"kind":"timestamp","value":"2022-03-02T21:41:16Z","string":"2022-03-02T21:41:16Z"},"date_merged":{"kind":"timestamp","value":"2022-03-03T04:10:47Z","string":"2022-03-03T04:10:47Z"},"previous_commit":{"kind":"string","value":"83adfae6a6273d8fb4c69554aa3b1cc7cbf01c71"},"pr_commit":{"kind":"string","value":"c4541b3f4f66209aed77c7d7d0fd9d8511e3ac5e"},"query":{"kind":"string","value":"Update RegexGenerator to require LangVersion > 10. We plan to take a dependency on a C# 11 language feature. For now, reserve that right by requiring a version > 10. We can downgrade it later if possible and desired."},"filepath":{"kind":"string","value":"./src/coreclr/hosts/corerun/dotenv.cpp"},"before_content":{"kind":"string","value":"// Licensed to the .NET Foundation under one or more agreements.\n// The .NET Foundation licenses this file to you under the MIT license.\n\n#include \"dotenv.hpp\"\n#include \n#include \n#include \n#include \n\nnamespace\n{\n bool read_var_name(std::istream& file, std::string& var_name_out)\n {\n std::string var_name;\n\n char next;\n\n file.get(next);\n\n while (!file.eof() && isspace(next))\n {\n file.get(next);\n }\n if (file.eof())\n {\n return true;\n }\n\n if (next == '#')\n {\n // This is a comment, skip the line\n std::string comment;\n std::getline(file, comment);\n }\n\n bool key_quoted = next == '\\'';\n\n if (key_quoted)\n {\n file.get(next);\n }\n\n if (!isalpha(next) && next != '_')\n {\n return false;\n }\n var_name.push_back(next);\n\n while (!file.eof())\n {\n if (key_quoted && file.peek() == '\\'')\n {\n break;\n }\n else if (file.peek() == '=')\n {\n break;\n }\n\n file.get(next);\n if (isspace(next))\n {\n continue;\n }\n if (next == '#')\n {\n // Comments in names are unsupported\n return false;\n }\n if (!isalnum(next) && next != '_')\n {\n return false;\n }\n var_name.push_back(next);\n }\n\n if (key_quoted && file.get() == '\\'')\n {\n while (!file.eof() && file.peek() != '=')\n {\n file.get(next);\n if (!isspace(next))\n {\n return false;\n }\n }\n }\n\n if (!file.eof())\n {\n // read the = sign\n (void)file.get();\n }\n\n var_name_out = var_name;\n\n return !file.eof();\n }\n\n bool check_endline(char current_char, int next_char)\n {\n return current_char == '\\n' || (current_char == '\\r' && next_char == '\\n');\n }\n\n void trim_from_end(std::string &s) {\n s.erase(std::find_if(s.rbegin(), s.rend(), [](char ch) {\n return !isspace(ch);\n }).base(), s.end());\n }\n\n std::string read_substitution(std::istream& file, std::function substitution_lookup)\n {\n std::string substituted_variable_name;\n // Read the '{' character\n (void)file.get();\n bool first = false;\n bool substitute_parse_failure = false;\n while (!file.eof() && file.peek() != '}')\n {\n char var_name_next;\n file.get(var_name_next);\n //If the name is not a valid environment variable name in the format, treat is as not a substitution.\n if (!((first && isalpha(var_name_next)) || isalnum(var_name_next)) && var_name_next != '_')\n {\n substitute_parse_failure = true;\n return std::string{ \"${\" } + std::move(substituted_variable_name) + std::string{ var_name_next };\n }\n substituted_variable_name.push_back(var_name_next);\n first = false;\n }\n\n if (!file.eof() && !substitute_parse_failure && file.get() == '}')\n {\n return substitution_lookup(substituted_variable_name);\n }\n\n assert(file.eof());\n return substituted_variable_name;\n }\n\n bool read_var_value(std::istream& file, std::function substitution_lookup, std::string& var_value_out)\n {\n std::string var_value;\n char next;\n\n file.get(next);\n\n while (!file.eof() && isspace(next))\n {\n file.get(next);\n }\n\n if (file.eof())\n {\n return false;\n }\n\n bool is_quoted = next == '\\'' || next == '\"';\n char quote_char = is_quoted ? next : '\\0';\n bool can_substitute = next != '\\'';\n\n if (next == '$')\n {\n var_value.append(read_substitution(file, substitution_lookup));\n }\n else if (next == '#')\n {\n // The rest of the line is a comment. Therefore, the value of the environment variable is empty.\n var_value_out = var_value;\n return true;\n }\n else if (!is_quoted)\n {\n var_value.push_back(next);\n }\n\n while (!file.eof())\n {\n file.get(next);\n if (file.eof())\n {\n break;\n }\n else if (!is_quoted && next == '#')\n {\n // This is a comment, skip the rest of the line\n // and trim any whitespace from the end.\n std::string comment;\n std::getline(file, comment);\n trim_from_end(var_value);\n var_value_out = var_value;\n return true;\n }\n else if (!is_quoted && check_endline(next, file.eof() ? '\\0' : file.peek()))\n {\n break;\n }\n else if (is_quoted && next == quote_char)\n {\n break;\n }\n else if (is_quoted && next == '\\\\')\n {\n int escaped = file.get();\n if (file.eof())\n {\n return false;\n }\n if (quote_char == '\\'')\n {\n switch (escaped)\n {\n case '\\\\':\n case '\\'':\n var_value.push_back((char)escaped);\n break;\n default:\n return false;\n }\n }\n else\n {\n assert(quote_char == '\"');\n\n switch (escaped)\n {\n case '\\\\':\n case '\\'':\n case '\"':\n var_value.push_back((char)escaped);\n break;\n case 'a':\n var_value.push_back('\\a');\n break;\n case 'b':\n var_value.push_back('\\b');\n break;\n case 'f':\n var_value.push_back('\\f');\n break;\n case 'n':\n var_value.push_back('\\n');\n break;\n case 'r':\n var_value.push_back('\\r');\n break;\n case 't':\n var_value.push_back('\\t');\n break;\n case 'v':\n var_value.push_back('\\v');\n break;\n default:\n return false;\n }\n }\n }\n else if (next == '$' && can_substitute && file.peek() == '{')\n {\n var_value.append(read_substitution(file, substitution_lookup));\n }\n else\n {\n var_value.push_back(next);\n }\n }\n\n var_value_out = var_value;\n if (is_quoted)\n {\n file.get(next);\n while (!file.eof() && isspace(next))\n {\n if (check_endline(next, file.eof() ? '\\0' : file.peek()))\n {\n return true;\n }\n }\n return file.eof();\n }\n return true;\n }\n}\n\n\ndotenv::dotenv(pal::string_t dotEnvFilePath, std::istream& contents)\n : _dotenvFilePath{dotEnvFilePath}\n , _environmentVariables{}\n{\n // Peek at the start to set the eof bit if the file is empty\n while (!contents.eof())\n {\n std::string temp_name;\n std::string temp_value;\n if (!read_var_name(contents, temp_name))\n {\n _environmentVariables = {};\n break;\n }\n\n if (contents.eof())\n {\n _environmentVariables = {};\n break;\n }\n\n // Handle variable expansion scenarios\n if (!read_var_value(contents, [&](std::string name)\n {\n auto dot_env_entry = _environmentVariables.find(name);\n if (dot_env_entry != _environmentVariables.end())\n {\n return dot_env_entry->second;\n }\n return pal::getenvA(name.c_str());\n }, temp_value))\n {\n _environmentVariables = {};\n break;\n }\n _environmentVariables.emplace(temp_name, temp_value);\n }\n}\n\nvoid dotenv::load_into_current_process() const\n{\n for (std::pair env_vars : _environmentVariables)\n {\n pal::string_utf8_t name_string = env_vars.first;\n pal::string_utf8_t value_string = env_vars.second;\n pal::setenvA(name_string.c_str(), std::move(value_string));\n }\n}\n\n#define THROW_IF_FALSE(stmt) if (!(stmt)) throw W(#stmt);\n\nvoid dotenv::self_test()\n{\n {\n std::istringstream contents{\"\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables.size() == 0);\n }\n {\n std::istringstream contents{\"Foo=Bar\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"Foo\"] == \"Bar\");\n }\n {\n std::istringstream contents{\"Foo=Bar # Comment\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"Foo\"] == \"Bar\");\n }\n {\n std::istringstream contents{\"Foo=\\\"Bar # Not a comment\\\"\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"Foo\"] == \"Bar # Not a comment\");\n }\n {\n std::istringstream contents{\"Foo=# Comment\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"Foo\"] == \"\");\n }\n {\n std::istringstream contents{\"Foo# Comment\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables.size() == 0);\n }\n {\n std::istringstream contents{\"Foo=Bar#Comment\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"Foo\"] == \"Bar\");\n }\n {\n std::istringstream contents{\"Foo=A\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"Foo\"] == \"A\");\n }\n {\n std::istringstream contents{\"Foo=\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"Foo\"] == \"\");\n }\n {\n std::istringstream contents{\"Foo=\\r\\n\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"Foo\"] == \"\");\n }\n {\n std::istringstream contents{\"A=Foo\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"A\"] == \"Foo\");\n }\n {\n std::istringstream contents{\"Foo =Bar\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"Foo\"] == \"Bar\");\n }\n {\n std::istringstream contents{\"Foo= Bar\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"Foo\"] == \"Bar\");\n }\n {\n std::istringstream contents{\" Foo= Bar\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"Foo\"] == \"Bar\");\n }\n {\n std::istringstream contents{\"'Foo'= Bar\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"Foo\"] == \"Bar\");\n }\n {\n std::istringstream contents{\"'Foo' = Bar\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"Foo\"] == \"Bar\");\n }\n {\n std::istringstream contents{\" 'Foo' = Bar\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"Foo\"] == \"Bar\");\n }\n {\n std::istringstream contents{\"Foo=\\\"Bar\\\"\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"Foo\"] == \"Bar\");\n }\n {\n std::istringstream contents{\"Foo= \\\"Bar\\\"\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"Foo\"] == \"Bar\");\n }\n {\n std::istringstream contents{\"Foo= \\\"Bar\\\" \"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"Foo\"] == \"Bar\");\n }\n {\n std::istringstream contents{\"Foo= 'Bar'\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"Foo\"] == \"Bar\");\n }\n {\n std::istringstream contents{\"Foo='Bar'\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"Foo\"] == \"Bar\");\n }\n {\n std::istringstream contents{\"Foo='Bar' \"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"Foo\"] == \"Bar\");\n }\n {\n std::istringstream contents{\"Foo=\\\"\\r\\nBar\\\"\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"Foo\"] == \"\\r\\nBar\");\n }\n {\n std::istringstream contents{\"Foo=\\\"\\\\r\\\\nBar\\\"\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"Foo\"] == \"\\r\\nBar\");\n }\n {\n std::istringstream contents{\"Foo=Bar\\r\\nFoo2=Baz42\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"Foo\"] == \"Bar\");\n THROW_IF_FALSE(env._environmentVariables[\"Foo2\"] == \"Baz42\");\n }\n {\n std::istringstream contents{\"Foo=Bar#Comment\\r\\nFoo2=Baz\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"Foo\"] == \"Bar\");\n THROW_IF_FALSE(env._environmentVariables[\"Foo2\"] == \"Baz\");\n }\n {\n std::istringstream contents{\"Foo=Bar#Comment\\nFoo2=Baz\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"Foo\"] == \"Bar\");\n THROW_IF_FALSE(env._environmentVariables[\"Foo2\"] == \"Baz\");\n }\n {\n std::istringstream contents{\"Foo=Bar\\nFoo2=Baz42\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"Foo\"] == \"Bar\");\n THROW_IF_FALSE(env._environmentVariables[\"Foo2\"] == \"Baz42\");\n }\n {\n std::istringstream contents{\"_Foo=Bar\\r\\nFoo2=Baz42\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"_Foo\"] == \"Bar\");\n THROW_IF_FALSE(env._environmentVariables[\"Foo2\"] == \"Baz42\");\n }\n {\n std::istringstream contents{\"_Foo=Bar\\r\\nFoo2=${_Foo}42\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"_Foo\"] == \"Bar\");\n THROW_IF_FALSE(env._environmentVariables[\"Foo2\"] == \"Bar42\");\n }\n {\n std::istringstream contents{\"_Foo=Bar\\r\\nFoo2=${UnusedEnvironmentVariable}42\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"_Foo\"] == \"Bar\");\n THROW_IF_FALSE(env._environmentVariables[\"Foo2\"] == \"42\");\n }\n {\n std::istringstream contents{\"_Foo=Bar\\r\\nFoo2=${Invalid-Capture}42\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"_Foo\"] == \"Bar\");\n THROW_IF_FALSE(env._environmentVariables[\"Foo2\"] == \"${Invalid-Capture}42\");\n }\n {\n std::istringstream contents{\"Foo=${Foo2}Bar\\r\\nFoo2=42\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"Foo\"] == \"Bar\");\n THROW_IF_FALSE(env._environmentVariables[\"Foo2\"] == \"42\");\n }\n {\n pal::setenv(W(\"CORERUN_DOTENV_SELF_TEST\"), W(\"1\"));\n std::istringstream contents{\"Foo=${CORERUN_DOTENV_SELF_TEST}Bar\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"Foo\"] == \"1Bar\");\n pal::setenv(W(\"CORERUN_DOTENV_SELF_TEST\"), W(\"\"));\n }\n {\n pal::setenv(W(\"CORERUN_DOTENV_SELF_TEST\"), W(\"4\"));\n std::istringstream contents{\"Foo=${CORERUN_DOTENV_SELF_TEST}Bar\\r\\nCORERUN_DOTENV_SELF_TEST=10\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"Foo\"] == \"4Bar\");\n THROW_IF_FALSE(env._environmentVariables[\"CORERUN_DOTENV_SELF_TEST\"] == \"10\");\n pal::setenv(W(\"CORERUN_DOTENV_SELF_TEST\"), W(\"\"));\n }\n {\n THROW_IF_FALSE(pal::getenv(W(\"CORERUN_DOTENV_SELF_TEST_LOAD\")) == W(\"\"));\n std::istringstream contents{\"CORERUN_DOTENV_SELF_TEST_LOAD=20\"};\n dotenv env{ W(\"empty.env\"), contents };\n env.load_into_current_process();\n THROW_IF_FALSE(pal::getenv(W(\"CORERUN_DOTENV_SELF_TEST_LOAD\")) == W(\"20\"));\n }\n {\n THROW_IF_FALSE(pal::getenv(W(\"CORERUN_DOTENV_SELF_TEST_LOAD2\")) == W(\"\"));\n pal::setenv(W(\"CORERUN_DOTENV_SELF_TEST_LOAD2\"), W(\"25\"));\n std::istringstream contents{\"CORERUN_DOTENV_SELF_TEST_LOAD2=A\"};\n dotenv env{ W(\"empty.env\"), contents };\n env.load_into_current_process();\n THROW_IF_FALSE(pal::getenv(W(\"CORERUN_DOTENV_SELF_TEST_LOAD2\")) == W(\"A\"));\n }\n}\n"},"after_content":{"kind":"string","value":"// Licensed to the .NET Foundation under one or more agreements.\n// The .NET Foundation licenses this file to you under the MIT license.\n\n#include \"dotenv.hpp\"\n#include \n#include \n#include \n#include \n\nnamespace\n{\n bool read_var_name(std::istream& file, std::string& var_name_out)\n {\n std::string var_name;\n\n char next;\n\n file.get(next);\n\n while (!file.eof() && isspace(next))\n {\n file.get(next);\n }\n if (file.eof())\n {\n return true;\n }\n\n if (next == '#')\n {\n // This is a comment, skip the line\n std::string comment;\n std::getline(file, comment);\n }\n\n bool key_quoted = next == '\\'';\n\n if (key_quoted)\n {\n file.get(next);\n }\n\n if (!isalpha(next) && next != '_')\n {\n return false;\n }\n var_name.push_back(next);\n\n while (!file.eof())\n {\n if (key_quoted && file.peek() == '\\'')\n {\n break;\n }\n else if (file.peek() == '=')\n {\n break;\n }\n\n file.get(next);\n if (isspace(next))\n {\n continue;\n }\n if (next == '#')\n {\n // Comments in names are unsupported\n return false;\n }\n if (!isalnum(next) && next != '_')\n {\n return false;\n }\n var_name.push_back(next);\n }\n\n if (key_quoted && file.get() == '\\'')\n {\n while (!file.eof() && file.peek() != '=')\n {\n file.get(next);\n if (!isspace(next))\n {\n return false;\n }\n }\n }\n\n if (!file.eof())\n {\n // read the = sign\n (void)file.get();\n }\n\n var_name_out = var_name;\n\n return !file.eof();\n }\n\n bool check_endline(char current_char, int next_char)\n {\n return current_char == '\\n' || (current_char == '\\r' && next_char == '\\n');\n }\n\n void trim_from_end(std::string &s) {\n s.erase(std::find_if(s.rbegin(), s.rend(), [](char ch) {\n return !isspace(ch);\n }).base(), s.end());\n }\n\n std::string read_substitution(std::istream& file, std::function substitution_lookup)\n {\n std::string substituted_variable_name;\n // Read the '{' character\n (void)file.get();\n bool first = false;\n bool substitute_parse_failure = false;\n while (!file.eof() && file.peek() != '}')\n {\n char var_name_next;\n file.get(var_name_next);\n //If the name is not a valid environment variable name in the format, treat is as not a substitution.\n if (!((first && isalpha(var_name_next)) || isalnum(var_name_next)) && var_name_next != '_')\n {\n substitute_parse_failure = true;\n return std::string{ \"${\" } + std::move(substituted_variable_name) + std::string{ var_name_next };\n }\n substituted_variable_name.push_back(var_name_next);\n first = false;\n }\n\n if (!file.eof() && !substitute_parse_failure && file.get() == '}')\n {\n return substitution_lookup(substituted_variable_name);\n }\n\n assert(file.eof());\n return substituted_variable_name;\n }\n\n bool read_var_value(std::istream& file, std::function substitution_lookup, std::string& var_value_out)\n {\n std::string var_value;\n char next;\n\n file.get(next);\n\n while (!file.eof() && isspace(next))\n {\n file.get(next);\n }\n\n if (file.eof())\n {\n return false;\n }\n\n bool is_quoted = next == '\\'' || next == '\"';\n char quote_char = is_quoted ? next : '\\0';\n bool can_substitute = next != '\\'';\n\n if (next == '$')\n {\n var_value.append(read_substitution(file, substitution_lookup));\n }\n else if (next == '#')\n {\n // The rest of the line is a comment. Therefore, the value of the environment variable is empty.\n var_value_out = var_value;\n return true;\n }\n else if (!is_quoted)\n {\n var_value.push_back(next);\n }\n\n while (!file.eof())\n {\n file.get(next);\n if (file.eof())\n {\n break;\n }\n else if (!is_quoted && next == '#')\n {\n // This is a comment, skip the rest of the line\n // and trim any whitespace from the end.\n std::string comment;\n std::getline(file, comment);\n trim_from_end(var_value);\n var_value_out = var_value;\n return true;\n }\n else if (!is_quoted && check_endline(next, file.eof() ? '\\0' : file.peek()))\n {\n break;\n }\n else if (is_quoted && next == quote_char)\n {\n break;\n }\n else if (is_quoted && next == '\\\\')\n {\n int escaped = file.get();\n if (file.eof())\n {\n return false;\n }\n if (quote_char == '\\'')\n {\n switch (escaped)\n {\n case '\\\\':\n case '\\'':\n var_value.push_back((char)escaped);\n break;\n default:\n return false;\n }\n }\n else\n {\n assert(quote_char == '\"');\n\n switch (escaped)\n {\n case '\\\\':\n case '\\'':\n case '\"':\n var_value.push_back((char)escaped);\n break;\n case 'a':\n var_value.push_back('\\a');\n break;\n case 'b':\n var_value.push_back('\\b');\n break;\n case 'f':\n var_value.push_back('\\f');\n break;\n case 'n':\n var_value.push_back('\\n');\n break;\n case 'r':\n var_value.push_back('\\r');\n break;\n case 't':\n var_value.push_back('\\t');\n break;\n case 'v':\n var_value.push_back('\\v');\n break;\n default:\n return false;\n }\n }\n }\n else if (next == '$' && can_substitute && file.peek() == '{')\n {\n var_value.append(read_substitution(file, substitution_lookup));\n }\n else\n {\n var_value.push_back(next);\n }\n }\n\n var_value_out = var_value;\n if (is_quoted)\n {\n file.get(next);\n while (!file.eof() && isspace(next))\n {\n if (check_endline(next, file.eof() ? '\\0' : file.peek()))\n {\n return true;\n }\n }\n return file.eof();\n }\n return true;\n }\n}\n\n\ndotenv::dotenv(pal::string_t dotEnvFilePath, std::istream& contents)\n : _dotenvFilePath{dotEnvFilePath}\n , _environmentVariables{}\n{\n // Peek at the start to set the eof bit if the file is empty\n while (!contents.eof())\n {\n std::string temp_name;\n std::string temp_value;\n if (!read_var_name(contents, temp_name))\n {\n _environmentVariables = {};\n break;\n }\n\n if (contents.eof())\n {\n _environmentVariables = {};\n break;\n }\n\n // Handle variable expansion scenarios\n if (!read_var_value(contents, [&](std::string name)\n {\n auto dot_env_entry = _environmentVariables.find(name);\n if (dot_env_entry != _environmentVariables.end())\n {\n return dot_env_entry->second;\n }\n return pal::getenvA(name.c_str());\n }, temp_value))\n {\n _environmentVariables = {};\n break;\n }\n _environmentVariables.emplace(temp_name, temp_value);\n }\n}\n\nvoid dotenv::load_into_current_process() const\n{\n for (std::pair env_vars : _environmentVariables)\n {\n pal::string_utf8_t name_string = env_vars.first;\n pal::string_utf8_t value_string = env_vars.second;\n pal::setenvA(name_string.c_str(), std::move(value_string));\n }\n}\n\n#define THROW_IF_FALSE(stmt) if (!(stmt)) throw W(#stmt);\n\nvoid dotenv::self_test()\n{\n {\n std::istringstream contents{\"\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables.size() == 0);\n }\n {\n std::istringstream contents{\"Foo=Bar\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"Foo\"] == \"Bar\");\n }\n {\n std::istringstream contents{\"Foo=Bar # Comment\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"Foo\"] == \"Bar\");\n }\n {\n std::istringstream contents{\"Foo=\\\"Bar # Not a comment\\\"\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"Foo\"] == \"Bar # Not a comment\");\n }\n {\n std::istringstream contents{\"Foo=# Comment\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"Foo\"] == \"\");\n }\n {\n std::istringstream contents{\"Foo# Comment\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables.size() == 0);\n }\n {\n std::istringstream contents{\"Foo=Bar#Comment\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"Foo\"] == \"Bar\");\n }\n {\n std::istringstream contents{\"Foo=A\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"Foo\"] == \"A\");\n }\n {\n std::istringstream contents{\"Foo=\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"Foo\"] == \"\");\n }\n {\n std::istringstream contents{\"Foo=\\r\\n\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"Foo\"] == \"\");\n }\n {\n std::istringstream contents{\"A=Foo\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"A\"] == \"Foo\");\n }\n {\n std::istringstream contents{\"Foo =Bar\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"Foo\"] == \"Bar\");\n }\n {\n std::istringstream contents{\"Foo= Bar\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"Foo\"] == \"Bar\");\n }\n {\n std::istringstream contents{\" Foo= Bar\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"Foo\"] == \"Bar\");\n }\n {\n std::istringstream contents{\"'Foo'= Bar\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"Foo\"] == \"Bar\");\n }\n {\n std::istringstream contents{\"'Foo' = Bar\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"Foo\"] == \"Bar\");\n }\n {\n std::istringstream contents{\" 'Foo' = Bar\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"Foo\"] == \"Bar\");\n }\n {\n std::istringstream contents{\"Foo=\\\"Bar\\\"\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"Foo\"] == \"Bar\");\n }\n {\n std::istringstream contents{\"Foo= \\\"Bar\\\"\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"Foo\"] == \"Bar\");\n }\n {\n std::istringstream contents{\"Foo= \\\"Bar\\\" \"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"Foo\"] == \"Bar\");\n }\n {\n std::istringstream contents{\"Foo= 'Bar'\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"Foo\"] == \"Bar\");\n }\n {\n std::istringstream contents{\"Foo='Bar'\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"Foo\"] == \"Bar\");\n }\n {\n std::istringstream contents{\"Foo='Bar' \"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"Foo\"] == \"Bar\");\n }\n {\n std::istringstream contents{\"Foo=\\\"\\r\\nBar\\\"\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"Foo\"] == \"\\r\\nBar\");\n }\n {\n std::istringstream contents{\"Foo=\\\"\\\\r\\\\nBar\\\"\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"Foo\"] == \"\\r\\nBar\");\n }\n {\n std::istringstream contents{\"Foo=Bar\\r\\nFoo2=Baz42\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"Foo\"] == \"Bar\");\n THROW_IF_FALSE(env._environmentVariables[\"Foo2\"] == \"Baz42\");\n }\n {\n std::istringstream contents{\"Foo=Bar#Comment\\r\\nFoo2=Baz\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"Foo\"] == \"Bar\");\n THROW_IF_FALSE(env._environmentVariables[\"Foo2\"] == \"Baz\");\n }\n {\n std::istringstream contents{\"Foo=Bar#Comment\\nFoo2=Baz\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"Foo\"] == \"Bar\");\n THROW_IF_FALSE(env._environmentVariables[\"Foo2\"] == \"Baz\");\n }\n {\n std::istringstream contents{\"Foo=Bar\\nFoo2=Baz42\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"Foo\"] == \"Bar\");\n THROW_IF_FALSE(env._environmentVariables[\"Foo2\"] == \"Baz42\");\n }\n {\n std::istringstream contents{\"_Foo=Bar\\r\\nFoo2=Baz42\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"_Foo\"] == \"Bar\");\n THROW_IF_FALSE(env._environmentVariables[\"Foo2\"] == \"Baz42\");\n }\n {\n std::istringstream contents{\"_Foo=Bar\\r\\nFoo2=${_Foo}42\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"_Foo\"] == \"Bar\");\n THROW_IF_FALSE(env._environmentVariables[\"Foo2\"] == \"Bar42\");\n }\n {\n std::istringstream contents{\"_Foo=Bar\\r\\nFoo2=${UnusedEnvironmentVariable}42\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"_Foo\"] == \"Bar\");\n THROW_IF_FALSE(env._environmentVariables[\"Foo2\"] == \"42\");\n }\n {\n std::istringstream contents{\"_Foo=Bar\\r\\nFoo2=${Invalid-Capture}42\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"_Foo\"] == \"Bar\");\n THROW_IF_FALSE(env._environmentVariables[\"Foo2\"] == \"${Invalid-Capture}42\");\n }\n {\n std::istringstream contents{\"Foo=${Foo2}Bar\\r\\nFoo2=42\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"Foo\"] == \"Bar\");\n THROW_IF_FALSE(env._environmentVariables[\"Foo2\"] == \"42\");\n }\n {\n pal::setenv(W(\"CORERUN_DOTENV_SELF_TEST\"), W(\"1\"));\n std::istringstream contents{\"Foo=${CORERUN_DOTENV_SELF_TEST}Bar\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"Foo\"] == \"1Bar\");\n pal::setenv(W(\"CORERUN_DOTENV_SELF_TEST\"), W(\"\"));\n }\n {\n pal::setenv(W(\"CORERUN_DOTENV_SELF_TEST\"), W(\"4\"));\n std::istringstream contents{\"Foo=${CORERUN_DOTENV_SELF_TEST}Bar\\r\\nCORERUN_DOTENV_SELF_TEST=10\"};\n dotenv env{ W(\"empty.env\"), contents };\n THROW_IF_FALSE(env._environmentVariables[\"Foo\"] == \"4Bar\");\n THROW_IF_FALSE(env._environmentVariables[\"CORERUN_DOTENV_SELF_TEST\"] == \"10\");\n pal::setenv(W(\"CORERUN_DOTENV_SELF_TEST\"), W(\"\"));\n }\n {\n THROW_IF_FALSE(pal::getenv(W(\"CORERUN_DOTENV_SELF_TEST_LOAD\")) == W(\"\"));\n std::istringstream contents{\"CORERUN_DOTENV_SELF_TEST_LOAD=20\"};\n dotenv env{ W(\"empty.env\"), contents };\n env.load_into_current_process();\n THROW_IF_FALSE(pal::getenv(W(\"CORERUN_DOTENV_SELF_TEST_LOAD\")) == W(\"20\"));\n }\n {\n THROW_IF_FALSE(pal::getenv(W(\"CORERUN_DOTENV_SELF_TEST_LOAD2\")) == W(\"\"));\n pal::setenv(W(\"CORERUN_DOTENV_SELF_TEST_LOAD2\"), W(\"25\"));\n std::istringstream contents{\"CORERUN_DOTENV_SELF_TEST_LOAD2=A\"};\n dotenv env{ W(\"empty.env\"), contents };\n env.load_into_current_process();\n THROW_IF_FALSE(pal::getenv(W(\"CORERUN_DOTENV_SELF_TEST_LOAD2\")) == W(\"A\"));\n }\n}\n"},"label":{"kind":"number","value":-1,"string":"-1"}}},{"rowIdx":2071825,"cells":{"repo_name":{"kind":"string","value":"dotnet/runtime"},"pr_number":{"kind":"number","value":66111,"string":"66,111"},"pr_title":{"kind":"string","value":"Update RegexGenerator to require LangVersion > 10"},"pr_description":{"kind":"string","value":"We plan to take a dependency on a C# 11 language feature. For now, reserve that right by requiring a version > 10. We can downgrade it later if possible and desired."},"author":{"kind":"string","value":"stephentoub"},"date_created":{"kind":"timestamp","value":"2022-03-02T21:41:16Z","string":"2022-03-02T21:41:16Z"},"date_merged":{"kind":"timestamp","value":"2022-03-03T04:10:47Z","string":"2022-03-03T04:10:47Z"},"previous_commit":{"kind":"string","value":"83adfae6a6273d8fb4c69554aa3b1cc7cbf01c71"},"pr_commit":{"kind":"string","value":"c4541b3f4f66209aed77c7d7d0fd9d8511e3ac5e"},"query":{"kind":"string","value":"Update RegexGenerator to require LangVersion > 10. We plan to take a dependency on a C# 11 language feature. For now, reserve that right by requiring a version > 10. We can downgrade it later if possible and desired."},"filepath":{"kind":"string","value":"./src/mono/mono/tests/bug-81691.cs"},"before_content":{"kind":"string","value":"using System;\nusing System.IO;\nusing System.Reflection;\n\nclass Program\n{\n\tstatic int Main ()\n\t{\n\t\tstring assemblyFile = Path.Combine (AppDomain.CurrentDomain.BaseDirectory, \"bug-81691-b.dll\");\n\t\tAssembly assembly = Assembly.LoadFile (assemblyFile);\n\t\tint i;\n\t\tint numExceptions = 0;\n\n\t\tfor (i = 0; i < 100000; ++i) {\n\t\t\ttry {\n\t\t\t\ttry {\n\t\t\t\t\tType type = assembly.GetType (\"NS.B.TestB\");\n\t\t\t\t\tFieldInfo field =type.GetField (\"testb\", BindingFlags.NonPublic | BindingFlags.Static);\n\t\t\t\t\tif (field.FieldType == null)\n\t\t\t\t\t\treturn 1;\n\t\t\t\t} catch (TypeLoadException ex) {\n\t\t\t\t\t++numExceptions;\n\t\t\t\t}\n\t\t\t} catch (FileNotFoundException ex) {\n\t\t\t\t++numExceptions;\n\t\t\t}\n\t\t}\n\n\t\tif (numExceptions == 100000)\n\t\t\treturn 0;\n\t\treturn 1;\n\t}\n}\n"},"after_content":{"kind":"string","value":"using System;\nusing System.IO;\nusing System.Reflection;\n\nclass Program\n{\n\tstatic int Main ()\n\t{\n\t\tstring assemblyFile = Path.Combine (AppDomain.CurrentDomain.BaseDirectory, \"bug-81691-b.dll\");\n\t\tAssembly assembly = Assembly.LoadFile (assemblyFile);\n\t\tint i;\n\t\tint numExceptions = 0;\n\n\t\tfor (i = 0; i < 100000; ++i) {\n\t\t\ttry {\n\t\t\t\ttry {\n\t\t\t\t\tType type = assembly.GetType (\"NS.B.TestB\");\n\t\t\t\t\tFieldInfo field =type.GetField (\"testb\", BindingFlags.NonPublic | BindingFlags.Static);\n\t\t\t\t\tif (field.FieldType == null)\n\t\t\t\t\t\treturn 1;\n\t\t\t\t} catch (TypeLoadException ex) {\n\t\t\t\t\t++numExceptions;\n\t\t\t\t}\n\t\t\t} catch (FileNotFoundException ex) {\n\t\t\t\t++numExceptions;\n\t\t\t}\n\t\t}\n\n\t\tif (numExceptions == 100000)\n\t\t\treturn 0;\n\t\treturn 1;\n\t}\n}\n"},"label":{"kind":"number","value":-1,"string":"-1"}}},{"rowIdx":2071826,"cells":{"repo_name":{"kind":"string","value":"dotnet/runtime"},"pr_number":{"kind":"number","value":66111,"string":"66,111"},"pr_title":{"kind":"string","value":"Update RegexGenerator to require LangVersion > 10"},"pr_description":{"kind":"string","value":"We plan to take a dependency on a C# 11 language feature. For now, reserve that right by requiring a version > 10. We can downgrade it later if possible and desired."},"author":{"kind":"string","value":"stephentoub"},"date_created":{"kind":"timestamp","value":"2022-03-02T21:41:16Z","string":"2022-03-02T21:41:16Z"},"date_merged":{"kind":"timestamp","value":"2022-03-03T04:10:47Z","string":"2022-03-03T04:10:47Z"},"previous_commit":{"kind":"string","value":"83adfae6a6273d8fb4c69554aa3b1cc7cbf01c71"},"pr_commit":{"kind":"string","value":"c4541b3f4f66209aed77c7d7d0fd9d8511e3ac5e"},"query":{"kind":"string","value":"Update RegexGenerator to require LangVersion > 10. We plan to take a dependency on a C# 11 language feature. For now, reserve that right by requiring a version > 10. We can downgrade it later if possible and desired."},"filepath":{"kind":"string","value":"./src/tests/JIT/Regression/JitBlue/DevDiv_471670/DevDiv_471670.il"},"before_content":{"kind":"string","value":"// Licensed to the .NET Foundation under one or more agreements.\n// The .NET Foundation licenses this file to you under the MIT license.\n\n.assembly extern mscorlib{}\n.assembly 'DevDiv_471670'{}\n.assembly extern xunit.core {}\n.class ILGEN_CLASS\n{\n .method static bool ILGEN_METHOD(float64, char, unsigned int32)\n {\n .maxstack 65535\n .locals init (float64, native unsigned int, unsigned int16, native int, unsigned int16, unsigned int8, int64, float64)\n\n ldarg.s 0x00\n conv.ovf.u2\n ldc.i8 0x5674a8efc99eac21\n pop\n ldloc.s 0x02\n conv.ovf.u1.un\n conv.ovf.u8.un\n conv.u8\n conv.r4\n pop\n ldarg.s 0x02\n bgt IL_0037\n ldloc.s 0x06\n conv.ovf.u8.un\n ldloc 0x0006\n clt.un\n neg\n brtrue IL_002b\n nop\n \n IL_002b:\n nop\n ldloc 0x0003\n ldloc 0x0005\n clt\n pop\n\n IL_0037:\n ldloc.s 0x04\n brtrue IL_003f\n nop\n\n IL_003f:\n ldloc 0x0003\n conv.ovf.i2.un\n ldarg.s 0x01\n conv.r8\n ldloc.s 0x00\n ckfinite\n mul\n conv.r4\n ldloc.s 0x00\n conv.ovf.u8.un\n conv.r.un\n clt\n conv.i8\n conv.i4\n add.ovf\n starg.s 0x02\n ldc.i8 0x953f9661d4ec7f53\n neg\n neg\n ldloc.s 0x06\n or\n neg\n conv.r.un\n ldc.i4 0x2f6100eb\n conv.r.un\n neg\n stloc 0x0000\n ldarg 0x0000\n neg\n neg\n ldloc.s 0x07\n neg\n conv.r.un\n add\n cgt\n ret\n }\n\n .method static int32 Main()\n {\n .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (\n 01 00 00 00\n )\n .entrypoint\n\n .try\n {\n ldc.r8 0\n ldc.i4 0\n dup\n call bool ILGEN_CLASS::ILGEN_METHOD(float64, char, unsigned int32)\n pop\n leave.s done\n }\n catch [mscorlib]System.Exception\n {\n leave.s done\n }\n\n done:\n ldc.i4 100\n ret\n }\n}\n"},"after_content":{"kind":"string","value":"// Licensed to the .NET Foundation under one or more agreements.\n// The .NET Foundation licenses this file to you under the MIT license.\n\n.assembly extern mscorlib{}\n.assembly 'DevDiv_471670'{}\n.assembly extern xunit.core {}\n.class ILGEN_CLASS\n{\n .method static bool ILGEN_METHOD(float64, char, unsigned int32)\n {\n .maxstack 65535\n .locals init (float64, native unsigned int, unsigned int16, native int, unsigned int16, unsigned int8, int64, float64)\n\n ldarg.s 0x00\n conv.ovf.u2\n ldc.i8 0x5674a8efc99eac21\n pop\n ldloc.s 0x02\n conv.ovf.u1.un\n conv.ovf.u8.un\n conv.u8\n conv.r4\n pop\n ldarg.s 0x02\n bgt IL_0037\n ldloc.s 0x06\n conv.ovf.u8.un\n ldloc 0x0006\n clt.un\n neg\n brtrue IL_002b\n nop\n \n IL_002b:\n nop\n ldloc 0x0003\n ldloc 0x0005\n clt\n pop\n\n IL_0037:\n ldloc.s 0x04\n brtrue IL_003f\n nop\n\n IL_003f:\n ldloc 0x0003\n conv.ovf.i2.un\n ldarg.s 0x01\n conv.r8\n ldloc.s 0x00\n ckfinite\n mul\n conv.r4\n ldloc.s 0x00\n conv.ovf.u8.un\n conv.r.un\n clt\n conv.i8\n conv.i4\n add.ovf\n starg.s 0x02\n ldc.i8 0x953f9661d4ec7f53\n neg\n neg\n ldloc.s 0x06\n or\n neg\n conv.r.un\n ldc.i4 0x2f6100eb\n conv.r.un\n neg\n stloc 0x0000\n ldarg 0x0000\n neg\n neg\n ldloc.s 0x07\n neg\n conv.r.un\n add\n cgt\n ret\n }\n\n .method static int32 Main()\n {\n .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (\n 01 00 00 00\n )\n .entrypoint\n\n .try\n {\n ldc.r8 0\n ldc.i4 0\n dup\n call bool ILGEN_CLASS::ILGEN_METHOD(float64, char, unsigned int32)\n pop\n leave.s done\n }\n catch [mscorlib]System.Exception\n {\n leave.s done\n }\n\n done:\n ldc.i4 100\n ret\n }\n}\n"},"label":{"kind":"number","value":-1,"string":"-1"}}},{"rowIdx":2071827,"cells":{"repo_name":{"kind":"string","value":"dotnet/runtime"},"pr_number":{"kind":"number","value":66111,"string":"66,111"},"pr_title":{"kind":"string","value":"Update RegexGenerator to require LangVersion > 10"},"pr_description":{"kind":"string","value":"We plan to take a dependency on a C# 11 language feature. For now, reserve that right by requiring a version > 10. We can downgrade it later if possible and desired."},"author":{"kind":"string","value":"stephentoub"},"date_created":{"kind":"timestamp","value":"2022-03-02T21:41:16Z","string":"2022-03-02T21:41:16Z"},"date_merged":{"kind":"timestamp","value":"2022-03-03T04:10:47Z","string":"2022-03-03T04:10:47Z"},"previous_commit":{"kind":"string","value":"83adfae6a6273d8fb4c69554aa3b1cc7cbf01c71"},"pr_commit":{"kind":"string","value":"c4541b3f4f66209aed77c7d7d0fd9d8511e3ac5e"},"query":{"kind":"string","value":"Update RegexGenerator to require LangVersion > 10. We plan to take a dependency on a C# 11 language feature. For now, reserve that right by requiring a version > 10. We can downgrade it later if possible and desired."},"filepath":{"kind":"string","value":"./src/libraries/System.Runtime.Caching/System.Runtime.Caching.sln"},"before_content":{"kind":"string","value":"Microsoft Visual Studio Solution File, Format Version 12.00\nProject(\"{9A19103F-16F7-4668-BE54-9A1E7A4F7556}\") = \"TestUtilities\", \"..\\Common\\tests\\TestUtilities\\TestUtilities.csproj\", \"{4DD7C7A6-6F4C-497B-A836-20F2D4F66748}\"\nEndProject\nProject(\"{9A19103F-16F7-4668-BE54-9A1E7A4F7556}\") = \"Microsoft.Win32.SystemEvents\", \"..\\Microsoft.Win32.SystemEvents\\ref\\Microsoft.Win32.SystemEvents.csproj\", \"{11CFC209-EA63-4492-8E76-017781F5FB61}\"\nEndProject\nProject(\"{9A19103F-16F7-4668-BE54-9A1E7A4F7556}\") = \"Microsoft.Win32.SystemEvents\", \"..\\Microsoft.Win32.SystemEvents\\src\\Microsoft.Win32.SystemEvents.csproj\", \"{974C8D15-BC21-4A49-8E36-788B6C7FE51A}\"\nEndProject\nProject(\"{9A19103F-16F7-4668-BE54-9A1E7A4F7556}\") = \"System.Configuration.ConfigurationManager\", \"..\\System.Configuration.ConfigurationManager\\ref\\System.Configuration.ConfigurationManager.csproj\", \"{D2CB0E92-8F52-49A3-A2CA-9F77C8ED4A6D}\"\nEndProject\nProject(\"{9A19103F-16F7-4668-BE54-9A1E7A4F7556}\") = \"System.Configuration.ConfigurationManager\", \"..\\System.Configuration.ConfigurationManager\\src\\System.Configuration.ConfigurationManager.csproj\", \"{2AC9B23C-C788-4607-86EB-E7F66F14AFDB}\"\nEndProject\nProject(\"{9A19103F-16F7-4668-BE54-9A1E7A4F7556}\") = \"System.Drawing.Common\", \"..\\System.Drawing.Common\\ref\\System.Drawing.Common.csproj\", \"{4607440C-7237-4077-ACAB-E0910673B162}\"\nEndProject\nProject(\"{9A19103F-16F7-4668-BE54-9A1E7A4F7556}\") = \"System.Drawing.Common\", \"..\\System.Drawing.Common\\src\\System.Drawing.Common.csproj\", \"{460D6560-3CD4-4D2D-A961-407564D42D62}\"\nEndProject\nProject(\"{9A19103F-16F7-4668-BE54-9A1E7A4F7556}\") = \"System.Runtime.Caching\", \"ref\\System.Runtime.Caching.csproj\", \"{B8D8A7D0-EAE7-4D04-97CA-7B14DA9D0BD5}\"\nEndProject\nProject(\"{9A19103F-16F7-4668-BE54-9A1E7A4F7556}\") = \"System.Runtime.Caching\", \"src\\System.Runtime.Caching.csproj\", \"{6311C025-F6D3-43A0-A9DA-A58AA6602568}\"\nEndProject\nProject(\"{9A19103F-16F7-4668-BE54-9A1E7A4F7556}\") = \"System.Runtime.Caching.Tests\", \"tests\\System.Runtime.Caching.Tests.csproj\", \"{AA05074D-88AF-482E-A44A-F1AC13494E9F}\"\nEndProject\nProject(\"{9A19103F-16F7-4668-BE54-9A1E7A4F7556}\") = \"DllImportGenerator\", \"..\\System.Runtime.InteropServices\\gen\\DllImportGenerator\\DllImportGenerator.csproj\", \"{ADDFECC7-59EA-4339-9B98-5CB8B91105BF}\"\nEndProject\nProject(\"{9A19103F-16F7-4668-BE54-9A1E7A4F7556}\") = \"Microsoft.Interop.SourceGeneration\", \"..\\System.Runtime.InteropServices\\gen\\Microsoft.Interop.SourceGeneration\\Microsoft.Interop.SourceGeneration.csproj\", \"{447797DB-DF70-4568-A323-F88A45A91026}\"\nEndProject\nProject(\"{9A19103F-16F7-4668-BE54-9A1E7A4F7556}\") = \"System.Security.Cryptography.ProtectedData\", \"..\\System.Security.Cryptography.ProtectedData\\ref\\System.Security.Cryptography.ProtectedData.csproj\", \"{986272FB-E5C6-4881-9867-DC3427D883AE}\"\nEndProject\nProject(\"{9A19103F-16F7-4668-BE54-9A1E7A4F7556}\") = \"System.Security.Cryptography.ProtectedData\", \"..\\System.Security.Cryptography.ProtectedData\\src\\System.Security.Cryptography.ProtectedData.csproj\", \"{AFBFBBE6-F5EC-4889-9F34-03E07562630D}\"\nEndProject\nProject(\"{9A19103F-16F7-4668-BE54-9A1E7A4F7556}\") = \"System.Security.Permissions\", \"..\\System.Security.Permissions\\ref\\System.Security.Permissions.csproj\", \"{45E0A981-A131-4147-94E7-49AAC45F5D14}\"\nEndProject\nProject(\"{9A19103F-16F7-4668-BE54-9A1E7A4F7556}\") = \"System.Security.Permissions\", \"..\\System.Security.Permissions\\src\\System.Security.Permissions.csproj\", \"{6383A7BA-20DC-4025-9BB3-E1C6FEA669E8}\"\nEndProject\nProject(\"{9A19103F-16F7-4668-BE54-9A1E7A4F7556}\") = \"System.Windows.Extensions\", \"..\\System.Windows.Extensions\\ref\\System.Windows.Extensions.csproj\", \"{A154C9F1-845A-4596-9061-92C462E971A6}\"\nEndProject\nProject(\"{9A19103F-16F7-4668-BE54-9A1E7A4F7556}\") = \"System.Windows.Extensions\", \"..\\System.Windows.Extensions\\src\\System.Windows.Extensions.csproj\", \"{EC5D61F1-E77B-4E3D-968C-710FCFB9E028}\"\nEndProject\nProject(\"{2150E333-8FDC-42A3-9474-1A3956D46DE8}\") = \"tests\", \"tests\", \"{28BE2B3F-890C-45EF-B90A-9FA92302365E}\"\nEndProject\nProject(\"{2150E333-8FDC-42A3-9474-1A3956D46DE8}\") = \"ref\", \"ref\", \"{C315269F-EEA6-4F74-BA10-65ECAA6351C8}\"\nEndProject\nProject(\"{2150E333-8FDC-42A3-9474-1A3956D46DE8}\") = \"src\", \"src\", \"{7CAD8D92-ABBF-4ED8-ACF7-7121F99F89EC}\"\nEndProject\nProject(\"{2150E333-8FDC-42A3-9474-1A3956D46DE8}\") = \"gen\", \"gen\", \"{5E28270B-1EEB-4D0E-9A3C-6959BEA9647E}\"\nEndProject\nGlobal\n\tGlobalSection(SolutionConfigurationPlatforms) = preSolution\n\t\tDebug|Any CPU = Debug|Any CPU\n\t\tRelease|Any CPU = Release|Any CPU\n\tEndGlobalSection\n\tGlobalSection(ProjectConfigurationPlatforms) = postSolution\n\t\t{4DD7C7A6-6F4C-497B-A836-20F2D4F66748}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\n\t\t{4DD7C7A6-6F4C-497B-A836-20F2D4F66748}.Debug|Any CPU.Build.0 = Debug|Any CPU\n\t\t{4DD7C7A6-6F4C-497B-A836-20F2D4F66748}.Release|Any CPU.ActiveCfg = Release|Any CPU\n\t\t{4DD7C7A6-6F4C-497B-A836-20F2D4F66748}.Release|Any CPU.Build.0 = Release|Any CPU\n\t\t{11CFC209-EA63-4492-8E76-017781F5FB61}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\n\t\t{11CFC209-EA63-4492-8E76-017781F5FB61}.Debug|Any CPU.Build.0 = Debug|Any CPU\n\t\t{11CFC209-EA63-4492-8E76-017781F5FB61}.Release|Any CPU.ActiveCfg = Release|Any CPU\n\t\t{11CFC209-EA63-4492-8E76-017781F5FB61}.Release|Any CPU.Build.0 = Release|Any CPU\n\t\t{974C8D15-BC21-4A49-8E36-788B6C7FE51A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\n\t\t{974C8D15-BC21-4A49-8E36-788B6C7FE51A}.Debug|Any CPU.Build.0 = Debug|Any CPU\n\t\t{974C8D15-BC21-4A49-8E36-788B6C7FE51A}.Release|Any CPU.ActiveCfg = Release|Any CPU\n\t\t{974C8D15-BC21-4A49-8E36-788B6C7FE51A}.Release|Any CPU.Build.0 = Release|Any CPU\n\t\t{D2CB0E92-8F52-49A3-A2CA-9F77C8ED4A6D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\n\t\t{D2CB0E92-8F52-49A3-A2CA-9F77C8ED4A6D}.Debug|Any CPU.Build.0 = Debug|Any CPU\n\t\t{D2CB0E92-8F52-49A3-A2CA-9F77C8ED4A6D}.Release|Any CPU.ActiveCfg = Release|Any CPU\n\t\t{D2CB0E92-8F52-49A3-A2CA-9F77C8ED4A6D}.Release|Any CPU.Build.0 = Release|Any CPU\n\t\t{2AC9B23C-C788-4607-86EB-E7F66F14AFDB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\n\t\t{2AC9B23C-C788-4607-86EB-E7F66F14AFDB}.Debug|Any CPU.Build.0 = Debug|Any CPU\n\t\t{2AC9B23C-C788-4607-86EB-E7F66F14AFDB}.Release|Any CPU.ActiveCfg = Release|Any CPU\n\t\t{2AC9B23C-C788-4607-86EB-E7F66F14AFDB}.Release|Any CPU.Build.0 = Release|Any CPU\n\t\t{4607440C-7237-4077-ACAB-E0910673B162}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\n\t\t{4607440C-7237-4077-ACAB-E0910673B162}.Debug|Any CPU.Build.0 = Debug|Any CPU\n\t\t{4607440C-7237-4077-ACAB-E0910673B162}.Release|Any CPU.ActiveCfg = Release|Any CPU\n\t\t{4607440C-7237-4077-ACAB-E0910673B162}.Release|Any CPU.Build.0 = Release|Any CPU\n\t\t{460D6560-3CD4-4D2D-A961-407564D42D62}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\n\t\t{460D6560-3CD4-4D2D-A961-407564D42D62}.Debug|Any CPU.Build.0 = Debug|Any CPU\n\t\t{460D6560-3CD4-4D2D-A961-407564D42D62}.Release|Any CPU.ActiveCfg = Release|Any CPU\n\t\t{460D6560-3CD4-4D2D-A961-407564D42D62}.Release|Any CPU.Build.0 = Release|Any CPU\n\t\t{B8D8A7D0-EAE7-4D04-97CA-7B14DA9D0BD5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\n\t\t{B8D8A7D0-EAE7-4D04-97CA-7B14DA9D0BD5}.Debug|Any CPU.Build.0 = Debug|Any CPU\n\t\t{B8D8A7D0-EAE7-4D04-97CA-7B14DA9D0BD5}.Release|Any CPU.ActiveCfg = Release|Any CPU\n\t\t{B8D8A7D0-EAE7-4D04-97CA-7B14DA9D0BD5}.Release|Any CPU.Build.0 = Release|Any CPU\n\t\t{6311C025-F6D3-43A0-A9DA-A58AA6602568}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\n\t\t{6311C025-F6D3-43A0-A9DA-A58AA6602568}.Debug|Any CPU.Build.0 = Debug|Any CPU\n\t\t{6311C025-F6D3-43A0-A9DA-A58AA6602568}.Release|Any CPU.ActiveCfg = Release|Any CPU\n\t\t{6311C025-F6D3-43A0-A9DA-A58AA6602568}.Release|Any CPU.Build.0 = Release|Any CPU\n\t\t{AA05074D-88AF-482E-A44A-F1AC13494E9F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\n\t\t{AA05074D-88AF-482E-A44A-F1AC13494E9F}.Debug|Any CPU.Build.0 = Debug|Any CPU\n\t\t{AA05074D-88AF-482E-A44A-F1AC13494E9F}.Release|Any CPU.ActiveCfg = Release|Any CPU\n\t\t{AA05074D-88AF-482E-A44A-F1AC13494E9F}.Release|Any CPU.Build.0 = Release|Any CPU\n\t\t{ADDFECC7-59EA-4339-9B98-5CB8B91105BF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\n\t\t{ADDFECC7-59EA-4339-9B98-5CB8B91105BF}.Debug|Any CPU.Build.0 = Debug|Any CPU\n\t\t{ADDFECC7-59EA-4339-9B98-5CB8B91105BF}.Release|Any CPU.ActiveCfg = Release|Any CPU\n\t\t{ADDFECC7-59EA-4339-9B98-5CB8B91105BF}.Release|Any CPU.Build.0 = Release|Any CPU\n\t\t{447797DB-DF70-4568-A323-F88A45A91026}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\n\t\t{447797DB-DF70-4568-A323-F88A45A91026}.Debug|Any CPU.Build.0 = Debug|Any CPU\n\t\t{447797DB-DF70-4568-A323-F88A45A91026}.Release|Any CPU.ActiveCfg = Release|Any CPU\n\t\t{447797DB-DF70-4568-A323-F88A45A91026}.Release|Any CPU.Build.0 = Release|Any CPU\n\t\t{986272FB-E5C6-4881-9867-DC3427D883AE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\n\t\t{986272FB-E5C6-4881-9867-DC3427D883AE}.Debug|Any CPU.Build.0 = Debug|Any CPU\n\t\t{986272FB-E5C6-4881-9867-DC3427D883AE}.Release|Any CPU.ActiveCfg = Release|Any CPU\n\t\t{986272FB-E5C6-4881-9867-DC3427D883AE}.Release|Any CPU.Build.0 = Release|Any CPU\n\t\t{AFBFBBE6-F5EC-4889-9F34-03E07562630D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\n\t\t{AFBFBBE6-F5EC-4889-9F34-03E07562630D}.Debug|Any CPU.Build.0 = Debug|Any CPU\n\t\t{AFBFBBE6-F5EC-4889-9F34-03E07562630D}.Release|Any CPU.ActiveCfg = Release|Any CPU\n\t\t{AFBFBBE6-F5EC-4889-9F34-03E07562630D}.Release|Any CPU.Build.0 = Release|Any CPU\n\t\t{45E0A981-A131-4147-94E7-49AAC45F5D14}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\n\t\t{45E0A981-A131-4147-94E7-49AAC45F5D14}.Debug|Any CPU.Build.0 = Debug|Any CPU\n\t\t{45E0A981-A131-4147-94E7-49AAC45F5D14}.Release|Any CPU.ActiveCfg = Release|Any CPU\n\t\t{45E0A981-A131-4147-94E7-49AAC45F5D14}.Release|Any CPU.Build.0 = Release|Any CPU\n\t\t{6383A7BA-20DC-4025-9BB3-E1C6FEA669E8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\n\t\t{6383A7BA-20DC-4025-9BB3-E1C6FEA669E8}.Debug|Any CPU.Build.0 = Debug|Any CPU\n\t\t{6383A7BA-20DC-4025-9BB3-E1C6FEA669E8}.Release|Any CPU.ActiveCfg = Release|Any CPU\n\t\t{6383A7BA-20DC-4025-9BB3-E1C6FEA669E8}.Release|Any CPU.Build.0 = Release|Any CPU\n\t\t{A154C9F1-845A-4596-9061-92C462E971A6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\n\t\t{A154C9F1-845A-4596-9061-92C462E971A6}.Debug|Any CPU.Build.0 = Debug|Any CPU\n\t\t{A154C9F1-845A-4596-9061-92C462E971A6}.Release|Any CPU.ActiveCfg = Release|Any CPU\n\t\t{A154C9F1-845A-4596-9061-92C462E971A6}.Release|Any CPU.Build.0 = Release|Any CPU\n\t\t{EC5D61F1-E77B-4E3D-968C-710FCFB9E028}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\n\t\t{EC5D61F1-E77B-4E3D-968C-710FCFB9E028}.Debug|Any CPU.Build.0 = Debug|Any CPU\n\t\t{EC5D61F1-E77B-4E3D-968C-710FCFB9E028}.Release|Any CPU.ActiveCfg = Release|Any CPU\n\t\t{EC5D61F1-E77B-4E3D-968C-710FCFB9E028}.Release|Any CPU.Build.0 = Release|Any CPU\n\tEndGlobalSection\n\tGlobalSection(SolutionProperties) = preSolution\n\t\tHideSolutionNode = FALSE\n\tEndGlobalSection\n\tGlobalSection(NestedProjects) = preSolution\n\t\t{4DD7C7A6-6F4C-497B-A836-20F2D4F66748} = {28BE2B3F-890C-45EF-B90A-9FA92302365E}\n\t\t{AA05074D-88AF-482E-A44A-F1AC13494E9F} = {28BE2B3F-890C-45EF-B90A-9FA92302365E}\n\t\t{11CFC209-EA63-4492-8E76-017781F5FB61} = {C315269F-EEA6-4F74-BA10-65ECAA6351C8}\n\t\t{D2CB0E92-8F52-49A3-A2CA-9F77C8ED4A6D} = {C315269F-EEA6-4F74-BA10-65ECAA6351C8}\n\t\t{4607440C-7237-4077-ACAB-E0910673B162} = {C315269F-EEA6-4F74-BA10-65ECAA6351C8}\n\t\t{B8D8A7D0-EAE7-4D04-97CA-7B14DA9D0BD5} = {C315269F-EEA6-4F74-BA10-65ECAA6351C8}\n\t\t{986272FB-E5C6-4881-9867-DC3427D883AE} = {C315269F-EEA6-4F74-BA10-65ECAA6351C8}\n\t\t{45E0A981-A131-4147-94E7-49AAC45F5D14} = {C315269F-EEA6-4F74-BA10-65ECAA6351C8}\n\t\t{A154C9F1-845A-4596-9061-92C462E971A6} = {C315269F-EEA6-4F74-BA10-65ECAA6351C8}\n\t\t{974C8D15-BC21-4A49-8E36-788B6C7FE51A} = {7CAD8D92-ABBF-4ED8-ACF7-7121F99F89EC}\n\t\t{2AC9B23C-C788-4607-86EB-E7F66F14AFDB} = {7CAD8D92-ABBF-4ED8-ACF7-7121F99F89EC}\n\t\t{460D6560-3CD4-4D2D-A961-407564D42D62} = {7CAD8D92-ABBF-4ED8-ACF7-7121F99F89EC}\n\t\t{6311C025-F6D3-43A0-A9DA-A58AA6602568} = {7CAD8D92-ABBF-4ED8-ACF7-7121F99F89EC}\n\t\t{AFBFBBE6-F5EC-4889-9F34-03E07562630D} = {7CAD8D92-ABBF-4ED8-ACF7-7121F99F89EC}\n\t\t{6383A7BA-20DC-4025-9BB3-E1C6FEA669E8} = {7CAD8D92-ABBF-4ED8-ACF7-7121F99F89EC}\n\t\t{EC5D61F1-E77B-4E3D-968C-710FCFB9E028} = {7CAD8D92-ABBF-4ED8-ACF7-7121F99F89EC}\n\t\t{ADDFECC7-59EA-4339-9B98-5CB8B91105BF} = {5E28270B-1EEB-4D0E-9A3C-6959BEA9647E}\n\t\t{447797DB-DF70-4568-A323-F88A45A91026} = {5E28270B-1EEB-4D0E-9A3C-6959BEA9647E}\n\tEndGlobalSection\n\tGlobalSection(ExtensibilityGlobals) = postSolution\n\t\tSolutionGuid = {7B9B7D16-2C48-486A-B84B-6FF6D28509F6}\n\tEndGlobalSection\nEndGlobal\n"},"after_content":{"kind":"string","value":"Microsoft Visual Studio Solution File, Format Version 12.00\nProject(\"{9A19103F-16F7-4668-BE54-9A1E7A4F7556}\") = \"TestUtilities\", \"..\\Common\\tests\\TestUtilities\\TestUtilities.csproj\", \"{4DD7C7A6-6F4C-497B-A836-20F2D4F66748}\"\nEndProject\nProject(\"{9A19103F-16F7-4668-BE54-9A1E7A4F7556}\") = \"Microsoft.Win32.SystemEvents\", \"..\\Microsoft.Win32.SystemEvents\\ref\\Microsoft.Win32.SystemEvents.csproj\", \"{11CFC209-EA63-4492-8E76-017781F5FB61}\"\nEndProject\nProject(\"{9A19103F-16F7-4668-BE54-9A1E7A4F7556}\") = \"Microsoft.Win32.SystemEvents\", \"..\\Microsoft.Win32.SystemEvents\\src\\Microsoft.Win32.SystemEvents.csproj\", \"{974C8D15-BC21-4A49-8E36-788B6C7FE51A}\"\nEndProject\nProject(\"{9A19103F-16F7-4668-BE54-9A1E7A4F7556}\") = \"System.Configuration.ConfigurationManager\", \"..\\System.Configuration.ConfigurationManager\\ref\\System.Configuration.ConfigurationManager.csproj\", \"{D2CB0E92-8F52-49A3-A2CA-9F77C8ED4A6D}\"\nEndProject\nProject(\"{9A19103F-16F7-4668-BE54-9A1E7A4F7556}\") = \"System.Configuration.ConfigurationManager\", \"..\\System.Configuration.ConfigurationManager\\src\\System.Configuration.ConfigurationManager.csproj\", \"{2AC9B23C-C788-4607-86EB-E7F66F14AFDB}\"\nEndProject\nProject(\"{9A19103F-16F7-4668-BE54-9A1E7A4F7556}\") = \"System.Drawing.Common\", \"..\\System.Drawing.Common\\ref\\System.Drawing.Common.csproj\", \"{4607440C-7237-4077-ACAB-E0910673B162}\"\nEndProject\nProject(\"{9A19103F-16F7-4668-BE54-9A1E7A4F7556}\") = \"System.Drawing.Common\", \"..\\System.Drawing.Common\\src\\System.Drawing.Common.csproj\", \"{460D6560-3CD4-4D2D-A961-407564D42D62}\"\nEndProject\nProject(\"{9A19103F-16F7-4668-BE54-9A1E7A4F7556}\") = \"System.Runtime.Caching\", \"ref\\System.Runtime.Caching.csproj\", \"{B8D8A7D0-EAE7-4D04-97CA-7B14DA9D0BD5}\"\nEndProject\nProject(\"{9A19103F-16F7-4668-BE54-9A1E7A4F7556}\") = \"System.Runtime.Caching\", \"src\\System.Runtime.Caching.csproj\", \"{6311C025-F6D3-43A0-A9DA-A58AA6602568}\"\nEndProject\nProject(\"{9A19103F-16F7-4668-BE54-9A1E7A4F7556}\") = \"System.Runtime.Caching.Tests\", \"tests\\System.Runtime.Caching.Tests.csproj\", \"{AA05074D-88AF-482E-A44A-F1AC13494E9F}\"\nEndProject\nProject(\"{9A19103F-16F7-4668-BE54-9A1E7A4F7556}\") = \"DllImportGenerator\", \"..\\System.Runtime.InteropServices\\gen\\DllImportGenerator\\DllImportGenerator.csproj\", \"{ADDFECC7-59EA-4339-9B98-5CB8B91105BF}\"\nEndProject\nProject(\"{9A19103F-16F7-4668-BE54-9A1E7A4F7556}\") = \"Microsoft.Interop.SourceGeneration\", \"..\\System.Runtime.InteropServices\\gen\\Microsoft.Interop.SourceGeneration\\Microsoft.Interop.SourceGeneration.csproj\", \"{447797DB-DF70-4568-A323-F88A45A91026}\"\nEndProject\nProject(\"{9A19103F-16F7-4668-BE54-9A1E7A4F7556}\") = \"System.Security.Cryptography.ProtectedData\", \"..\\System.Security.Cryptography.ProtectedData\\ref\\System.Security.Cryptography.ProtectedData.csproj\", \"{986272FB-E5C6-4881-9867-DC3427D883AE}\"\nEndProject\nProject(\"{9A19103F-16F7-4668-BE54-9A1E7A4F7556}\") = \"System.Security.Cryptography.ProtectedData\", \"..\\System.Security.Cryptography.ProtectedData\\src\\System.Security.Cryptography.ProtectedData.csproj\", \"{AFBFBBE6-F5EC-4889-9F34-03E07562630D}\"\nEndProject\nProject(\"{9A19103F-16F7-4668-BE54-9A1E7A4F7556}\") = \"System.Security.Permissions\", \"..\\System.Security.Permissions\\ref\\System.Security.Permissions.csproj\", \"{45E0A981-A131-4147-94E7-49AAC45F5D14}\"\nEndProject\nProject(\"{9A19103F-16F7-4668-BE54-9A1E7A4F7556}\") = \"System.Security.Permissions\", \"..\\System.Security.Permissions\\src\\System.Security.Permissions.csproj\", \"{6383A7BA-20DC-4025-9BB3-E1C6FEA669E8}\"\nEndProject\nProject(\"{9A19103F-16F7-4668-BE54-9A1E7A4F7556}\") = \"System.Windows.Extensions\", \"..\\System.Windows.Extensions\\ref\\System.Windows.Extensions.csproj\", \"{A154C9F1-845A-4596-9061-92C462E971A6}\"\nEndProject\nProject(\"{9A19103F-16F7-4668-BE54-9A1E7A4F7556}\") = \"System.Windows.Extensions\", \"..\\System.Windows.Extensions\\src\\System.Windows.Extensions.csproj\", \"{EC5D61F1-E77B-4E3D-968C-710FCFB9E028}\"\nEndProject\nProject(\"{2150E333-8FDC-42A3-9474-1A3956D46DE8}\") = \"tests\", \"tests\", \"{28BE2B3F-890C-45EF-B90A-9FA92302365E}\"\nEndProject\nProject(\"{2150E333-8FDC-42A3-9474-1A3956D46DE8}\") = \"ref\", \"ref\", \"{C315269F-EEA6-4F74-BA10-65ECAA6351C8}\"\nEndProject\nProject(\"{2150E333-8FDC-42A3-9474-1A3956D46DE8}\") = \"src\", \"src\", \"{7CAD8D92-ABBF-4ED8-ACF7-7121F99F89EC}\"\nEndProject\nProject(\"{2150E333-8FDC-42A3-9474-1A3956D46DE8}\") = \"gen\", \"gen\", \"{5E28270B-1EEB-4D0E-9A3C-6959BEA9647E}\"\nEndProject\nGlobal\n\tGlobalSection(SolutionConfigurationPlatforms) = preSolution\n\t\tDebug|Any CPU = Debug|Any CPU\n\t\tRelease|Any CPU = Release|Any CPU\n\tEndGlobalSection\n\tGlobalSection(ProjectConfigurationPlatforms) = postSolution\n\t\t{4DD7C7A6-6F4C-497B-A836-20F2D4F66748}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\n\t\t{4DD7C7A6-6F4C-497B-A836-20F2D4F66748}.Debug|Any CPU.Build.0 = Debug|Any CPU\n\t\t{4DD7C7A6-6F4C-497B-A836-20F2D4F66748}.Release|Any CPU.ActiveCfg = Release|Any CPU\n\t\t{4DD7C7A6-6F4C-497B-A836-20F2D4F66748}.Release|Any CPU.Build.0 = Release|Any CPU\n\t\t{11CFC209-EA63-4492-8E76-017781F5FB61}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\n\t\t{11CFC209-EA63-4492-8E76-017781F5FB61}.Debug|Any CPU.Build.0 = Debug|Any CPU\n\t\t{11CFC209-EA63-4492-8E76-017781F5FB61}.Release|Any CPU.ActiveCfg = Release|Any CPU\n\t\t{11CFC209-EA63-4492-8E76-017781F5FB61}.Release|Any CPU.Build.0 = Release|Any CPU\n\t\t{974C8D15-BC21-4A49-8E36-788B6C7FE51A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\n\t\t{974C8D15-BC21-4A49-8E36-788B6C7FE51A}.Debug|Any CPU.Build.0 = Debug|Any CPU\n\t\t{974C8D15-BC21-4A49-8E36-788B6C7FE51A}.Release|Any CPU.ActiveCfg = Release|Any CPU\n\t\t{974C8D15-BC21-4A49-8E36-788B6C7FE51A}.Release|Any CPU.Build.0 = Release|Any CPU\n\t\t{D2CB0E92-8F52-49A3-A2CA-9F77C8ED4A6D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\n\t\t{D2CB0E92-8F52-49A3-A2CA-9F77C8ED4A6D}.Debug|Any CPU.Build.0 = Debug|Any CPU\n\t\t{D2CB0E92-8F52-49A3-A2CA-9F77C8ED4A6D}.Release|Any CPU.ActiveCfg = Release|Any CPU\n\t\t{D2CB0E92-8F52-49A3-A2CA-9F77C8ED4A6D}.Release|Any CPU.Build.0 = Release|Any CPU\n\t\t{2AC9B23C-C788-4607-86EB-E7F66F14AFDB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\n\t\t{2AC9B23C-C788-4607-86EB-E7F66F14AFDB}.Debug|Any CPU.Build.0 = Debug|Any CPU\n\t\t{2AC9B23C-C788-4607-86EB-E7F66F14AFDB}.Release|Any CPU.ActiveCfg = Release|Any CPU\n\t\t{2AC9B23C-C788-4607-86EB-E7F66F14AFDB}.Release|Any CPU.Build.0 = Release|Any CPU\n\t\t{4607440C-7237-4077-ACAB-E0910673B162}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\n\t\t{4607440C-7237-4077-ACAB-E0910673B162}.Debug|Any CPU.Build.0 = Debug|Any CPU\n\t\t{4607440C-7237-4077-ACAB-E0910673B162}.Release|Any CPU.ActiveCfg = Release|Any CPU\n\t\t{4607440C-7237-4077-ACAB-E0910673B162}.Release|Any CPU.Build.0 = Release|Any CPU\n\t\t{460D6560-3CD4-4D2D-A961-407564D42D62}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\n\t\t{460D6560-3CD4-4D2D-A961-407564D42D62}.Debug|Any CPU.Build.0 = Debug|Any CPU\n\t\t{460D6560-3CD4-4D2D-A961-407564D42D62}.Release|Any CPU.ActiveCfg = Release|Any CPU\n\t\t{460D6560-3CD4-4D2D-A961-407564D42D62}.Release|Any CPU.Build.0 = Release|Any CPU\n\t\t{B8D8A7D0-EAE7-4D04-97CA-7B14DA9D0BD5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\n\t\t{B8D8A7D0-EAE7-4D04-97CA-7B14DA9D0BD5}.Debug|Any CPU.Build.0 = Debug|Any CPU\n\t\t{B8D8A7D0-EAE7-4D04-97CA-7B14DA9D0BD5}.Release|Any CPU.ActiveCfg = Release|Any CPU\n\t\t{B8D8A7D0-EAE7-4D04-97CA-7B14DA9D0BD5}.Release|Any CPU.Build.0 = Release|Any CPU\n\t\t{6311C025-F6D3-43A0-A9DA-A58AA6602568}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\n\t\t{6311C025-F6D3-43A0-A9DA-A58AA6602568}.Debug|Any CPU.Build.0 = Debug|Any CPU\n\t\t{6311C025-F6D3-43A0-A9DA-A58AA6602568}.Release|Any CPU.ActiveCfg = Release|Any CPU\n\t\t{6311C025-F6D3-43A0-A9DA-A58AA6602568}.Release|Any CPU.Build.0 = Release|Any CPU\n\t\t{AA05074D-88AF-482E-A44A-F1AC13494E9F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\n\t\t{AA05074D-88AF-482E-A44A-F1AC13494E9F}.Debug|Any CPU.Build.0 = Debug|Any CPU\n\t\t{AA05074D-88AF-482E-A44A-F1AC13494E9F}.Release|Any CPU.ActiveCfg = Release|Any CPU\n\t\t{AA05074D-88AF-482E-A44A-F1AC13494E9F}.Release|Any CPU.Build.0 = Release|Any CPU\n\t\t{ADDFECC7-59EA-4339-9B98-5CB8B91105BF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\n\t\t{ADDFECC7-59EA-4339-9B98-5CB8B91105BF}.Debug|Any CPU.Build.0 = Debug|Any CPU\n\t\t{ADDFECC7-59EA-4339-9B98-5CB8B91105BF}.Release|Any CPU.ActiveCfg = Release|Any CPU\n\t\t{ADDFECC7-59EA-4339-9B98-5CB8B91105BF}.Release|Any CPU.Build.0 = Release|Any CPU\n\t\t{447797DB-DF70-4568-A323-F88A45A91026}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\n\t\t{447797DB-DF70-4568-A323-F88A45A91026}.Debug|Any CPU.Build.0 = Debug|Any CPU\n\t\t{447797DB-DF70-4568-A323-F88A45A91026}.Release|Any CPU.ActiveCfg = Release|Any CPU\n\t\t{447797DB-DF70-4568-A323-F88A45A91026}.Release|Any CPU.Build.0 = Release|Any CPU\n\t\t{986272FB-E5C6-4881-9867-DC3427D883AE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\n\t\t{986272FB-E5C6-4881-9867-DC3427D883AE}.Debug|Any CPU.Build.0 = Debug|Any CPU\n\t\t{986272FB-E5C6-4881-9867-DC3427D883AE}.Release|Any CPU.ActiveCfg = Release|Any CPU\n\t\t{986272FB-E5C6-4881-9867-DC3427D883AE}.Release|Any CPU.Build.0 = Release|Any CPU\n\t\t{AFBFBBE6-F5EC-4889-9F34-03E07562630D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\n\t\t{AFBFBBE6-F5EC-4889-9F34-03E07562630D}.Debug|Any CPU.Build.0 = Debug|Any CPU\n\t\t{AFBFBBE6-F5EC-4889-9F34-03E07562630D}.Release|Any CPU.ActiveCfg = Release|Any CPU\n\t\t{AFBFBBE6-F5EC-4889-9F34-03E07562630D}.Release|Any CPU.Build.0 = Release|Any CPU\n\t\t{45E0A981-A131-4147-94E7-49AAC45F5D14}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\n\t\t{45E0A981-A131-4147-94E7-49AAC45F5D14}.Debug|Any CPU.Build.0 = Debug|Any CPU\n\t\t{45E0A981-A131-4147-94E7-49AAC45F5D14}.Release|Any CPU.ActiveCfg = Release|Any CPU\n\t\t{45E0A981-A131-4147-94E7-49AAC45F5D14}.Release|Any CPU.Build.0 = Release|Any CPU\n\t\t{6383A7BA-20DC-4025-9BB3-E1C6FEA669E8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\n\t\t{6383A7BA-20DC-4025-9BB3-E1C6FEA669E8}.Debug|Any CPU.Build.0 = Debug|Any CPU\n\t\t{6383A7BA-20DC-4025-9BB3-E1C6FEA669E8}.Release|Any CPU.ActiveCfg = Release|Any CPU\n\t\t{6383A7BA-20DC-4025-9BB3-E1C6FEA669E8}.Release|Any CPU.Build.0 = Release|Any CPU\n\t\t{A154C9F1-845A-4596-9061-92C462E971A6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\n\t\t{A154C9F1-845A-4596-9061-92C462E971A6}.Debug|Any CPU.Build.0 = Debug|Any CPU\n\t\t{A154C9F1-845A-4596-9061-92C462E971A6}.Release|Any CPU.ActiveCfg = Release|Any CPU\n\t\t{A154C9F1-845A-4596-9061-92C462E971A6}.Release|Any CPU.Build.0 = Release|Any CPU\n\t\t{EC5D61F1-E77B-4E3D-968C-710FCFB9E028}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\n\t\t{EC5D61F1-E77B-4E3D-968C-710FCFB9E028}.Debug|Any CPU.Build.0 = Debug|Any CPU\n\t\t{EC5D61F1-E77B-4E3D-968C-710FCFB9E028}.Release|Any CPU.ActiveCfg = Release|Any CPU\n\t\t{EC5D61F1-E77B-4E3D-968C-710FCFB9E028}.Release|Any CPU.Build.0 = Release|Any CPU\n\tEndGlobalSection\n\tGlobalSection(SolutionProperties) = preSolution\n\t\tHideSolutionNode = FALSE\n\tEndGlobalSection\n\tGlobalSection(NestedProjects) = preSolution\n\t\t{4DD7C7A6-6F4C-497B-A836-20F2D4F66748} = {28BE2B3F-890C-45EF-B90A-9FA92302365E}\n\t\t{AA05074D-88AF-482E-A44A-F1AC13494E9F} = {28BE2B3F-890C-45EF-B90A-9FA92302365E}\n\t\t{11CFC209-EA63-4492-8E76-017781F5FB61} = {C315269F-EEA6-4F74-BA10-65ECAA6351C8}\n\t\t{D2CB0E92-8F52-49A3-A2CA-9F77C8ED4A6D} = {C315269F-EEA6-4F74-BA10-65ECAA6351C8}\n\t\t{4607440C-7237-4077-ACAB-E0910673B162} = {C315269F-EEA6-4F74-BA10-65ECAA6351C8}\n\t\t{B8D8A7D0-EAE7-4D04-97CA-7B14DA9D0BD5} = {C315269F-EEA6-4F74-BA10-65ECAA6351C8}\n\t\t{986272FB-E5C6-4881-9867-DC3427D883AE} = {C315269F-EEA6-4F74-BA10-65ECAA6351C8}\n\t\t{45E0A981-A131-4147-94E7-49AAC45F5D14} = {C315269F-EEA6-4F74-BA10-65ECAA6351C8}\n\t\t{A154C9F1-845A-4596-9061-92C462E971A6} = {C315269F-EEA6-4F74-BA10-65ECAA6351C8}\n\t\t{974C8D15-BC21-4A49-8E36-788B6C7FE51A} = {7CAD8D92-ABBF-4ED8-ACF7-7121F99F89EC}\n\t\t{2AC9B23C-C788-4607-86EB-E7F66F14AFDB} = {7CAD8D92-ABBF-4ED8-ACF7-7121F99F89EC}\n\t\t{460D6560-3CD4-4D2D-A961-407564D42D62} = {7CAD8D92-ABBF-4ED8-ACF7-7121F99F89EC}\n\t\t{6311C025-F6D3-43A0-A9DA-A58AA6602568} = {7CAD8D92-ABBF-4ED8-ACF7-7121F99F89EC}\n\t\t{AFBFBBE6-F5EC-4889-9F34-03E07562630D} = {7CAD8D92-ABBF-4ED8-ACF7-7121F99F89EC}\n\t\t{6383A7BA-20DC-4025-9BB3-E1C6FEA669E8} = {7CAD8D92-ABBF-4ED8-ACF7-7121F99F89EC}\n\t\t{EC5D61F1-E77B-4E3D-968C-710FCFB9E028} = {7CAD8D92-ABBF-4ED8-ACF7-7121F99F89EC}\n\t\t{ADDFECC7-59EA-4339-9B98-5CB8B91105BF} = {5E28270B-1EEB-4D0E-9A3C-6959BEA9647E}\n\t\t{447797DB-DF70-4568-A323-F88A45A91026} = {5E28270B-1EEB-4D0E-9A3C-6959BEA9647E}\n\tEndGlobalSection\n\tGlobalSection(ExtensibilityGlobals) = postSolution\n\t\tSolutionGuid = {7B9B7D16-2C48-486A-B84B-6FF6D28509F6}\n\tEndGlobalSection\nEndGlobal\n"},"label":{"kind":"number","value":-1,"string":"-1"}}},{"rowIdx":2071828,"cells":{"repo_name":{"kind":"string","value":"dotnet/runtime"},"pr_number":{"kind":"number","value":66111,"string":"66,111"},"pr_title":{"kind":"string","value":"Update RegexGenerator to require LangVersion > 10"},"pr_description":{"kind":"string","value":"We plan to take a dependency on a C# 11 language feature. For now, reserve that right by requiring a version > 10. We can downgrade it later if possible and desired."},"author":{"kind":"string","value":"stephentoub"},"date_created":{"kind":"timestamp","value":"2022-03-02T21:41:16Z","string":"2022-03-02T21:41:16Z"},"date_merged":{"kind":"timestamp","value":"2022-03-03T04:10:47Z","string":"2022-03-03T04:10:47Z"},"previous_commit":{"kind":"string","value":"83adfae6a6273d8fb4c69554aa3b1cc7cbf01c71"},"pr_commit":{"kind":"string","value":"c4541b3f4f66209aed77c7d7d0fd9d8511e3ac5e"},"query":{"kind":"string","value":"Update RegexGenerator to require LangVersion > 10. We plan to take a dependency on a C# 11 language feature. For now, reserve that right by requiring a version > 10. We can downgrade it later if possible and desired."},"filepath":{"kind":"string","value":"./src/libraries/Common/tests/System/Xml/XPath/CoreFunctionLibrary/BooleanFunctionsTests.cs"},"before_content":{"kind":"string","value":"// Licensed to the .NET Foundation under one or more agreements.\n// The .NET Foundation licenses this file to you under the MIT license.\n\nusing Xunit;\nusing System;\nusing System.Xml;\nusing System.Xml.XPath;\nusing XPathTests.Common;\n\nnamespace XPathTests.FunctionalTests.CoreFunctionLibrary\n{\n /// \n /// Core Function Library - Boolean Functions\n /// \n public static partial class BooleanFunctionsTests\n {\n /// \n /// Verify result.\n /// boolean(1) = true\n /// \n [Fact]\n public static void BooleanFunctionsTest251()\n {\n var xml = \"dummy.xml\";\n var testExpression = @\"boolean(1)\";\n var expected = true;\n\n Utils.XPathBooleanTest(xml, testExpression, expected);\n }\n\n /// \n /// Verify result.\n /// boolean(0) = false\n /// \n [Fact]\n public static void BooleanFunctionsTest252()\n {\n var xml = \"dummy.xml\";\n var testExpression = @\"boolean(0)\";\n var expected = false;\n\n Utils.XPathBooleanTest(xml, testExpression, expected);\n }\n\n /// \n /// boolean(infinity) = true\n /// boolean(1 div 0) = true\n /// \n [Fact]\n public static void BooleanFunctionsTest253()\n {\n var xml = \"dummy.xml\";\n var testExpression = @\"boolean(1 div 0)\";\n var expected = true;\n\n Utils.XPathBooleanTest(xml, testExpression, expected);\n }\n\n /// \n /// boolean(NaN) = false\n /// boolean(0 div 0) = false\n /// \n [Fact]\n public static void BooleanFunctionsTest254()\n {\n var xml = \"dummy.xml\";\n var testExpression = @\"boolean(0 div 0)\";\n var expected = false;\n\n Utils.XPathBooleanTest(xml, testExpression, expected);\n }\n\n /// \n /// Verify result.\n /// boolean(-0) = false\n /// \n [Fact]\n public static void BooleanFunctionsTest255()\n {\n var xml = \"dummy.xml\";\n var testExpression = @\"boolean(-0)\";\n var expected = false;\n\n Utils.XPathBooleanTest(xml, testExpression, expected);\n }\n\n /// \n /// Verify result.\n /// boolean(2.5) = true\n /// \n [Fact]\n public static void BooleanFunctionsTest256()\n {\n var xml = \"dummy.xml\";\n var testExpression = @\"boolean(2.5)\";\n var expected = true;\n\n Utils.XPathBooleanTest(xml, testExpression, expected);\n }\n\n /// \n /// Verify result.\n /// boolean(\"test\") = true\n /// \n [Fact]\n public static void BooleanFunctionsTest257()\n {\n var xml = \"dummy.xml\";\n var testExpression = @\"boolean(\"\"Test\"\")\";\n var expected = true;\n\n Utils.XPathBooleanTest(xml, testExpression, expected);\n }\n\n /// \n /// Verify result.\n /// boolean(\"\") = false\n /// \n [Fact]\n public static void BooleanFunctionsTest258()\n {\n var xml = \"dummy.xml\";\n var testExpression = @\"boolean(\"\"\"\")\";\n var expected = false;\n\n Utils.XPathBooleanTest(xml, testExpression, expected);\n }\n\n /// \n /// Verify result.\n /// boolean(child::*) = true\n /// \n [Fact]\n public static void BooleanFunctionsTest259()\n {\n var xml = \"xp004.xml\";\n var startingNodePath = \"/Doc/Test2\";\n var testExpression = @\"boolean(child::*)\";\n var expected = true;\n\n Utils.XPathBooleanTest(xml, testExpression, expected, startingNodePath: startingNodePath);\n }\n\n /// \n /// Verify result.\n /// boolean(child::DoesNotExist) = false\n /// \n [Fact]\n public static void BooleanFunctionsTest2510()\n {\n var xml = \"xp004.xml\";\n var startingNodePath = \"/Doc/Test2\";\n var testExpression = @\"boolean(child::DoesNotExist)\";\n var expected = false;\n\n Utils.XPathBooleanTest(xml, testExpression, expected, startingNodePath: startingNodePath);\n }\n\n /// \n /// Verify result.\n /// not(false()) = true\n /// \n [Fact]\n public static void BooleanFunctionsTest2511()\n {\n var xml = \"dummy.xml\";\n var testExpression = @\"not(false())\";\n var expected = true;\n\n Utils.XPathBooleanTest(xml, testExpression, expected);\n }\n\n /// \n /// Verify result.\n /// not(true()) = false\n /// \n [Fact]\n public static void BooleanFunctionsTest2512()\n {\n var xml = \"dummy.xml\";\n var testExpression = @\"not(true())\";\n var expected = false;\n\n Utils.XPathBooleanTest(xml, testExpression, expected);\n }\n\n /// \n /// Verify result.\n /// not(boolean(child::*)) = false\n /// \n [Fact]\n public static void BooleanFunctionsTest2513()\n {\n var xml = \"xp004.xml\";\n var startingNodePath = \"/Doc/Test2\";\n var testExpression = @\"not(boolean(child::*))\";\n var expected = false;\n\n Utils.XPathBooleanTest(xml, testExpression, expected, startingNodePath: startingNodePath);\n }\n\n /// \n /// Verify result.\n /// true() = true\n /// \n [Fact]\n public static void BooleanFunctionsTest2514()\n {\n var xml = \"dummy.xml\";\n var testExpression = @\"true()\";\n var expected = true;\n\n Utils.XPathBooleanTest(xml, testExpression, expected);\n }\n\n /// \n /// Verify result.\n /// false() = false\n /// \n [Fact]\n public static void BooleanFunctionsTest2515()\n {\n var xml = \"dummy.xml\";\n var testExpression = @\"false()\";\n var expected = false;\n\n Utils.XPathBooleanTest(xml, testExpression, expected);\n }\n\n /// \n /// expected true\n /// lang(\"en\") context node has xml:lang=\"en\"\n /// \n [Fact]\n public static void BooleanFunctionsTest2516()\n {\n var xml = \"lang.xml\";\n var startingNodePath = \"/bookstore\";\n var testExpression = @\"lang(\"\"en\"\")\";\n var expected = true;\n\n Utils.XPathBooleanTest(xml, testExpression, expected, startingNodePath: startingNodePath);\n }\n\n /// \n /// expected true\n /// lang(\"en\") ancestor has xml:lang = \"en\"\n /// \n [Fact]\n public static void BooleanFunctionsTest2517()\n {\n var xml = \"lang.xml\";\n var startingNodePath = \"/bookstore/book[2]\";\n var testExpression = @\"lang(\"\"en\"\")\";\n var expected = true;\n\n Utils.XPathBooleanTest(xml, testExpression, expected, startingNodePath: startingNodePath);\n }\n\n /// \n /// expected false\n /// lang(\"en-us\") is a sub-category of xml-lang=\"en\"\n /// \n [Fact]\n public static void BooleanFunctionsTest2518()\n {\n var xml = \"lang.xml\";\n var startingNodePath = \"/bookstore\";\n var testExpression = @\"lang(\"\"en-us\"\")\";\n var expected = false;\n\n Utils.XPathBooleanTest(xml, testExpression, expected, startingNodePath: startingNodePath);\n }\n\n /// \n /// expected true\n /// lang(\"en\") xml:lang = \"en-us\" is a sub category\n /// \n [Fact]\n public static void BooleanFunctionsTest2519()\n {\n var xml = \"lang.xml\";\n var startingNodePath = \"/bookstore/book[3]\";\n var testExpression = @\"lang(\"\"en\"\")\";\n var expected = true;\n\n Utils.XPathBooleanTest(xml, testExpression, expected, startingNodePath: startingNodePath);\n }\n\n /// \n /// lang() should match ignoring case, expected : true\n /// lang(\"EN\") context node has xml:lang = \"en\"\n /// \n [Fact]\n public static void BooleanFunctionsTest2520()\n {\n var xml = \"lang.xml\";\n var startingNodePath = \"/bookstore\";\n var testExpression = @\"lang(\"\"EN\"\")\";\n var expected = true;\n\n Utils.XPathBooleanTest(xml, testExpression, expected, startingNodePath: startingNodePath);\n }\n\n /// \n /// Code Coverage: Covers the case where lang() is used in an expression\n /// child::*[lang(\"en\")]\n /// \n [Fact]\n public static void BooleanFunctionsTest2521()\n {\n var xml = \"lang.xml\";\n var testExpression = @\"child::*[lang(\"\"en\"\")]\";\n var expected = new XPathResult(0,\n new XPathResultToken\n {\n NodeType = XPathNodeType.Element,\n HasChildren = true,\n HasAttributes = true,\n LocalName = \"bookstore\",\n Name = \"bookstore\",\n HasNameTable = true,\n Value =\n \"\\n\\t\\n\\t\\tSeven Years in Trenton\\n\\t\\t\\n\\t\\t\\tJoe\\n\\t\\t\\tBob\\n\\t\\t\\tTrenton Literary Review Honorable Mention\\n\\t\\t\\tUSA\\n\\t\\t\\n\\t\\t12\\n\\t\\n\\t\\n\\t\\tHistory of Trenton\\n\\t\\t\\n\\t\\t\\tMary\\n\\t\\t\\tBob\\n\\t\\t\\t\\n\\t\\t\\t\\tSelected Short Stories of\\n\\t\\t\\t\\tJoeBob\\n\\t\\t\\t\\tLoser\\n\\t\\t\\t\\tUS\\n\\t\\t\\t\\n\\t\\t\\n\\t\\t55\\n\\t\\n\\t\\n\\t\\tXQL The Golden Years\\n\\t\\t\\n\\t\\t\\tMike\\n\\t\\t\\tHyman\\n\\t\\t\\t\\n\\t\\t\\t\\tXQL For Dummies\\n\\t\\t\\t\\tJonathan\\n\\t\\t\\t\\tMarsh\\n\\t\\t\\t\\n\\t\\t\\n\\t\\t55.95\\n\\t\\n\\t\\n\\t\\tRoad and Track\\n\\t\\t3.50\\n\\t\\t\\n\\t\\tYes\\n\\t\\n\\t\\n\\t\\tPC Week\\n\\t\\tfree\\n\\t\\tZiff Davis\\n\\t\\n\\t\\n\\t\\tPC Magazine\\n\\t\\t3.95\\n\\t\\tZiff Davis\\n\\t\\t\\n\\t\\t\\tCreate a dream PC\\n\\t\\t\\t\\tCreate a list of needed hardware\\n\\t\\t\\t\\n\\t\\t\\tThe future of the web\\n\\t\\t\\t\\tCan Netscape stay alive with Microsoft eating up its browser share?\\n\\t\\t\\t\\tMSFT 99.30\\n\\t\\t\\t\\t1998-06-23\\n\\t\\t\\t\\n\\t\\t\\tVisual Basic 5.0 - Will it stand the test of time?\\n\\t\\t\\t\\n\\t\\t\\n\\t\\n\\t\\n\\t\\t\\n\\t\\t\\tSport Cars - Can you really dream?\\n\\t\\t\\t\\n\\t\\t\\n\\t\\n\\t\\n\\t\\tPC Magazine Best Product of 1997\\n\\t\\n\\t\\n\\t\\tHistory of Trenton 2\\n\\t\\t\\n\\t\\t\\tMary F\\n\\t\\t\\tRobinson\\n\\t\\t\\t\\n\\t\\t\\t\\tSelected Short Stories of\\n\\t\\t\\t\\tMary F\\n\\t\\t\\t\\tRobinson\\n\\t\\t\\t\\n\\t\\t\\n\\t\\t55\\n\\t\\n\\t\\n\\t\\tHistory of Trenton Vol 3\\n\\t\\t\\n\\t\\t\\tMary F\\n\\t\\t\\tRobinson\\n\\t\\t\\tFrank\\n\\t\\t\\tAnderson\\n\\t\\t\\tPulizer\\n\\t\\t\\t\\n\\t\\t\\t\\tSelected Short Stories of\\n\\t\\t\\t\\tMary F\\n\\t\\t\\t\\tRobinson\\n\\t\\t\\t\\n\\t\\t\\n\\t\\t10\\n\\t\\n\\t\\n\\t\\tHow To Fix Computers\\n\\t\\t\\n\\t\\t\\tHack\\n\\t\\t\\ter\\n\\t\\t\\tPh.D.\\n\\t\\t\\n\\t\\t08\\n\\t\\n\\t\\n\\t\\tTracking Trenton\\n\\t\\t2.50\\n\\t\\t\\n\\t\\n\\t\\n\\t\\tTracking Trenton Stocks\\n\\t\\t0.98\\n\\t\\t\\n\\t\\n\\t\\n\\t\\tTrenton Today, Trenton Tomorrow\\n\\t\\t\\n\\t\\t\\tToni\\n\\t\\t\\tBob\\n\\t\\t\\tB.A.\\n\\t\\t\\tPh.D.\\n\\t\\t\\tPulizer\\n\\t\\t\\tStill in Trenton\\n\\t\\t\\tTrenton Forever\\n\\t\\t\\n\\t\\t6.50\\n\\t\\t\\n\\t\\t\\tIt was a dark and stormy night.\\n\\t\\t\\tBut then all nights in Trenton seem dark and\\n\\t\\t\\tstormy to someone who has gone through what\\n\\t\\t\\tI have.\\n\\t\\t\\t\\n\\t\\t\\t\\n\\t\\t\\t\\tTrenton\\n\\t\\t\\t\\tmisery\\n\\t\\t\\t\\n\\t\\t\\n\\t\\n\\t\\n\\t\\tWho's Who in Trenton\\n\\t\\tRobert Bob\\n\\t\\n\\t\\n\\t\\tWhere is Trenton?\\n\\t\\n\\t\\n\\t\\tWhere in the world is Trenton?\\n\\t\\n\",\n XmlLang = \"en\"\n });\n\n Utils.XPathNodesetTest(xml, testExpression, expected);\n }\n }\n}\n"},"after_content":{"kind":"string","value":"// Licensed to the .NET Foundation under one or more agreements.\n// The .NET Foundation licenses this file to you under the MIT license.\n\nusing Xunit;\nusing System;\nusing System.Xml;\nusing System.Xml.XPath;\nusing XPathTests.Common;\n\nnamespace XPathTests.FunctionalTests.CoreFunctionLibrary\n{\n /// \n /// Core Function Library - Boolean Functions\n /// \n public static partial class BooleanFunctionsTests\n {\n /// \n /// Verify result.\n /// boolean(1) = true\n /// \n [Fact]\n public static void BooleanFunctionsTest251()\n {\n var xml = \"dummy.xml\";\n var testExpression = @\"boolean(1)\";\n var expected = true;\n\n Utils.XPathBooleanTest(xml, testExpression, expected);\n }\n\n /// \n /// Verify result.\n /// boolean(0) = false\n /// \n [Fact]\n public static void BooleanFunctionsTest252()\n {\n var xml = \"dummy.xml\";\n var testExpression = @\"boolean(0)\";\n var expected = false;\n\n Utils.XPathBooleanTest(xml, testExpression, expected);\n }\n\n /// \n /// boolean(infinity) = true\n /// boolean(1 div 0) = true\n /// \n [Fact]\n public static void BooleanFunctionsTest253()\n {\n var xml = \"dummy.xml\";\n var testExpression = @\"boolean(1 div 0)\";\n var expected = true;\n\n Utils.XPathBooleanTest(xml, testExpression, expected);\n }\n\n /// \n /// boolean(NaN) = false\n /// boolean(0 div 0) = false\n /// \n [Fact]\n public static void BooleanFunctionsTest254()\n {\n var xml = \"dummy.xml\";\n var testExpression = @\"boolean(0 div 0)\";\n var expected = false;\n\n Utils.XPathBooleanTest(xml, testExpression, expected);\n }\n\n /// \n /// Verify result.\n /// boolean(-0) = false\n /// \n [Fact]\n public static void BooleanFunctionsTest255()\n {\n var xml = \"dummy.xml\";\n var testExpression = @\"boolean(-0)\";\n var expected = false;\n\n Utils.XPathBooleanTest(xml, testExpression, expected);\n }\n\n /// \n /// Verify result.\n /// boolean(2.5) = true\n /// \n [Fact]\n public static void BooleanFunctionsTest256()\n {\n var xml = \"dummy.xml\";\n var testExpression = @\"boolean(2.5)\";\n var expected = true;\n\n Utils.XPathBooleanTest(xml, testExpression, expected);\n }\n\n /// \n /// Verify result.\n /// boolean(\"test\") = true\n /// \n [Fact]\n public static void BooleanFunctionsTest257()\n {\n var xml = \"dummy.xml\";\n var testExpression = @\"boolean(\"\"Test\"\")\";\n var expected = true;\n\n Utils.XPathBooleanTest(xml, testExpression, expected);\n }\n\n /// \n /// Verify result.\n /// boolean(\"\") = false\n /// \n [Fact]\n public static void BooleanFunctionsTest258()\n {\n var xml = \"dummy.xml\";\n var testExpression = @\"boolean(\"\"\"\")\";\n var expected = false;\n\n Utils.XPathBooleanTest(xml, testExpression, expected);\n }\n\n /// \n /// Verify result.\n /// boolean(child::*) = true\n /// \n [Fact]\n public static void BooleanFunctionsTest259()\n {\n var xml = \"xp004.xml\";\n var startingNodePath = \"/Doc/Test2\";\n var testExpression = @\"boolean(child::*)\";\n var expected = true;\n\n Utils.XPathBooleanTest(xml, testExpression, expected, startingNodePath: startingNodePath);\n }\n\n /// \n /// Verify result.\n /// boolean(child::DoesNotExist) = false\n /// \n [Fact]\n public static void BooleanFunctionsTest2510()\n {\n var xml = \"xp004.xml\";\n var startingNodePath = \"/Doc/Test2\";\n var testExpression = @\"boolean(child::DoesNotExist)\";\n var expected = false;\n\n Utils.XPathBooleanTest(xml, testExpression, expected, startingNodePath: startingNodePath);\n }\n\n /// \n /// Verify result.\n /// not(false()) = true\n /// \n [Fact]\n public static void BooleanFunctionsTest2511()\n {\n var xml = \"dummy.xml\";\n var testExpression = @\"not(false())\";\n var expected = true;\n\n Utils.XPathBooleanTest(xml, testExpression, expected);\n }\n\n /// \n /// Verify result.\n /// not(true()) = false\n /// \n [Fact]\n public static void BooleanFunctionsTest2512()\n {\n var xml = \"dummy.xml\";\n var testExpression = @\"not(true())\";\n var expected = false;\n\n Utils.XPathBooleanTest(xml, testExpression, expected);\n }\n\n /// \n /// Verify result.\n /// not(boolean(child::*)) = false\n /// \n [Fact]\n public static void BooleanFunctionsTest2513()\n {\n var xml = \"xp004.xml\";\n var startingNodePath = \"/Doc/Test2\";\n var testExpression = @\"not(boolean(child::*))\";\n var expected = false;\n\n Utils.XPathBooleanTest(xml, testExpression, expected, startingNodePath: startingNodePath);\n }\n\n /// \n /// Verify result.\n /// true() = true\n /// \n [Fact]\n public static void BooleanFunctionsTest2514()\n {\n var xml = \"dummy.xml\";\n var testExpression = @\"true()\";\n var expected = true;\n\n Utils.XPathBooleanTest(xml, testExpression, expected);\n }\n\n /// \n /// Verify result.\n /// false() = false\n /// \n [Fact]\n public static void BooleanFunctionsTest2515()\n {\n var xml = \"dummy.xml\";\n var testExpression = @\"false()\";\n var expected = false;\n\n Utils.XPathBooleanTest(xml, testExpression, expected);\n }\n\n /// \n /// expected true\n /// lang(\"en\") context node has xml:lang=\"en\"\n /// \n [Fact]\n public static void BooleanFunctionsTest2516()\n {\n var xml = \"lang.xml\";\n var startingNodePath = \"/bookstore\";\n var testExpression = @\"lang(\"\"en\"\")\";\n var expected = true;\n\n Utils.XPathBooleanTest(xml, testExpression, expected, startingNodePath: startingNodePath);\n }\n\n /// \n /// expected true\n /// lang(\"en\") ancestor has xml:lang = \"en\"\n /// \n [Fact]\n public static void BooleanFunctionsTest2517()\n {\n var xml = \"lang.xml\";\n var startingNodePath = \"/bookstore/book[2]\";\n var testExpression = @\"lang(\"\"en\"\")\";\n var expected = true;\n\n Utils.XPathBooleanTest(xml, testExpression, expected, startingNodePath: startingNodePath);\n }\n\n /// \n /// expected false\n /// lang(\"en-us\") is a sub-category of xml-lang=\"en\"\n /// \n [Fact]\n public static void BooleanFunctionsTest2518()\n {\n var xml = \"lang.xml\";\n var startingNodePath = \"/bookstore\";\n var testExpression = @\"lang(\"\"en-us\"\")\";\n var expected = false;\n\n Utils.XPathBooleanTest(xml, testExpression, expected, startingNodePath: startingNodePath);\n }\n\n /// \n /// expected true\n /// lang(\"en\") xml:lang = \"en-us\" is a sub category\n /// \n [Fact]\n public static void BooleanFunctionsTest2519()\n {\n var xml = \"lang.xml\";\n var startingNodePath = \"/bookstore/book[3]\";\n var testExpression = @\"lang(\"\"en\"\")\";\n var expected = true;\n\n Utils.XPathBooleanTest(xml, testExpression, expected, startingNodePath: startingNodePath);\n }\n\n /// \n /// lang() should match ignoring case, expected : true\n /// lang(\"EN\") context node has xml:lang = \"en\"\n /// \n [Fact]\n public static void BooleanFunctionsTest2520()\n {\n var xml = \"lang.xml\";\n var startingNodePath = \"/bookstore\";\n var testExpression = @\"lang(\"\"EN\"\")\";\n var expected = true;\n\n Utils.XPathBooleanTest(xml, testExpression, expected, startingNodePath: startingNodePath);\n }\n\n /// \n /// Code Coverage: Covers the case where lang() is used in an expression\n /// child::*[lang(\"en\")]\n /// \n [Fact]\n public static void BooleanFunctionsTest2521()\n {\n var xml = \"lang.xml\";\n var testExpression = @\"child::*[lang(\"\"en\"\")]\";\n var expected = new XPathResult(0,\n new XPathResultToken\n {\n NodeType = XPathNodeType.Element,\n HasChildren = true,\n HasAttributes = true,\n LocalName = \"bookstore\",\n Name = \"bookstore\",\n HasNameTable = true,\n Value =\n \"\\n\\t\\n\\t\\tSeven Years in Trenton\\n\\t\\t\\n\\t\\t\\tJoe\\n\\t\\t\\tBob\\n\\t\\t\\tTrenton Literary Review Honorable Mention\\n\\t\\t\\tUSA\\n\\t\\t\\n\\t\\t12\\n\\t\\n\\t\\n\\t\\tHistory of Trenton\\n\\t\\t\\n\\t\\t\\tMary\\n\\t\\t\\tBob\\n\\t\\t\\t\\n\\t\\t\\t\\tSelected Short Stories of\\n\\t\\t\\t\\tJoeBob\\n\\t\\t\\t\\tLoser\\n\\t\\t\\t\\tUS\\n\\t\\t\\t\\n\\t\\t\\n\\t\\t55\\n\\t\\n\\t\\n\\t\\tXQL The Golden Years\\n\\t\\t\\n\\t\\t\\tMike\\n\\t\\t\\tHyman\\n\\t\\t\\t\\n\\t\\t\\t\\tXQL For Dummies\\n\\t\\t\\t\\tJonathan\\n\\t\\t\\t\\tMarsh\\n\\t\\t\\t\\n\\t\\t\\n\\t\\t55.95\\n\\t\\n\\t\\n\\t\\tRoad and Track\\n\\t\\t3.50\\n\\t\\t\\n\\t\\tYes\\n\\t\\n\\t\\n\\t\\tPC Week\\n\\t\\tfree\\n\\t\\tZiff Davis\\n\\t\\n\\t\\n\\t\\tPC Magazine\\n\\t\\t3.95\\n\\t\\tZiff Davis\\n\\t\\t\\n\\t\\t\\tCreate a dream PC\\n\\t\\t\\t\\tCreate a list of needed hardware\\n\\t\\t\\t\\n\\t\\t\\tThe future of the web\\n\\t\\t\\t\\tCan Netscape stay alive with Microsoft eating up its browser share?\\n\\t\\t\\t\\tMSFT 99.30\\n\\t\\t\\t\\t1998-06-23\\n\\t\\t\\t\\n\\t\\t\\tVisual Basic 5.0 - Will it stand the test of time?\\n\\t\\t\\t\\n\\t\\t\\n\\t\\n\\t\\n\\t\\t\\n\\t\\t\\tSport Cars - Can you really dream?\\n\\t\\t\\t\\n\\t\\t\\n\\t\\n\\t\\n\\t\\tPC Magazine Best Product of 1997\\n\\t\\n\\t\\n\\t\\tHistory of Trenton 2\\n\\t\\t\\n\\t\\t\\tMary F\\n\\t\\t\\tRobinson\\n\\t\\t\\t\\n\\t\\t\\t\\tSelected Short Stories of\\n\\t\\t\\t\\tMary F\\n\\t\\t\\t\\tRobinson\\n\\t\\t\\t\\n\\t\\t\\n\\t\\t55\\n\\t\\n\\t\\n\\t\\tHistory of Trenton Vol 3\\n\\t\\t\\n\\t\\t\\tMary F\\n\\t\\t\\tRobinson\\n\\t\\t\\tFrank\\n\\t\\t\\tAnderson\\n\\t\\t\\tPulizer\\n\\t\\t\\t\\n\\t\\t\\t\\tSelected Short Stories of\\n\\t\\t\\t\\tMary F\\n\\t\\t\\t\\tRobinson\\n\\t\\t\\t\\n\\t\\t\\n\\t\\t10\\n\\t\\n\\t\\n\\t\\tHow To Fix Computers\\n\\t\\t\\n\\t\\t\\tHack\\n\\t\\t\\ter\\n\\t\\t\\tPh.D.\\n\\t\\t\\n\\t\\t08\\n\\t\\n\\t\\n\\t\\tTracking Trenton\\n\\t\\t2.50\\n\\t\\t\\n\\t\\n\\t\\n\\t\\tTracking Trenton Stocks\\n\\t\\t0.98\\n\\t\\t\\n\\t\\n\\t\\n\\t\\tTrenton Today, Trenton Tomorrow\\n\\t\\t\\n\\t\\t\\tToni\\n\\t\\t\\tBob\\n\\t\\t\\tB.A.\\n\\t\\t\\tPh.D.\\n\\t\\t\\tPulizer\\n\\t\\t\\tStill in Trenton\\n\\t\\t\\tTrenton Forever\\n\\t\\t\\n\\t\\t6.50\\n\\t\\t\\n\\t\\t\\tIt was a dark and stormy night.\\n\\t\\t\\tBut then all nights in Trenton seem dark and\\n\\t\\t\\tstormy to someone who has gone through what\\n\\t\\t\\tI have.\\n\\t\\t\\t\\n\\t\\t\\t\\n\\t\\t\\t\\tTrenton\\n\\t\\t\\t\\tmisery\\n\\t\\t\\t\\n\\t\\t\\n\\t\\n\\t\\n\\t\\tWho's Who in Trenton\\n\\t\\tRobert Bob\\n\\t\\n\\t\\n\\t\\tWhere is Trenton?\\n\\t\\n\\t\\n\\t\\tWhere in the world is Trenton?\\n\\t\\n\",\n XmlLang = \"en\"\n });\n\n Utils.XPathNodesetTest(xml, testExpression, expected);\n }\n }\n}\n"},"label":{"kind":"number","value":-1,"string":"-1"}}},{"rowIdx":2071829,"cells":{"repo_name":{"kind":"string","value":"dotnet/runtime"},"pr_number":{"kind":"number","value":66111,"string":"66,111"},"pr_title":{"kind":"string","value":"Update RegexGenerator to require LangVersion > 10"},"pr_description":{"kind":"string","value":"We plan to take a dependency on a C# 11 language feature. For now, reserve that right by requiring a version > 10. We can downgrade it later if possible and desired."},"author":{"kind":"string","value":"stephentoub"},"date_created":{"kind":"timestamp","value":"2022-03-02T21:41:16Z","string":"2022-03-02T21:41:16Z"},"date_merged":{"kind":"timestamp","value":"2022-03-03T04:10:47Z","string":"2022-03-03T04:10:47Z"},"previous_commit":{"kind":"string","value":"83adfae6a6273d8fb4c69554aa3b1cc7cbf01c71"},"pr_commit":{"kind":"string","value":"c4541b3f4f66209aed77c7d7d0fd9d8511e3ac5e"},"query":{"kind":"string","value":"Update RegexGenerator to require LangVersion > 10. We plan to take a dependency on a C# 11 language feature. For now, reserve that right by requiring a version > 10. We can downgrade it later if possible and desired."},"filepath":{"kind":"string","value":"./src/libraries/System.Security.Cryptography.Encoding/src/System.Security.Cryptography.Encoding.csproj"},"before_content":{"kind":"string","value":"\n \n $(NetCoreAppCurrent) \n true \n enable \n \n \n \n \n \n \n"},"after_content":{"kind":"string","value":"\n \n $(NetCoreAppCurrent) \n true \n enable \n \n \n \n \n \n \n"},"label":{"kind":"number","value":-1,"string":"-1"}}},{"rowIdx":2071830,"cells":{"repo_name":{"kind":"string","value":"dotnet/runtime"},"pr_number":{"kind":"number","value":66111,"string":"66,111"},"pr_title":{"kind":"string","value":"Update RegexGenerator to require LangVersion > 10"},"pr_description":{"kind":"string","value":"We plan to take a dependency on a C# 11 language feature. For now, reserve that right by requiring a version > 10. We can downgrade it later if possible and desired."},"author":{"kind":"string","value":"stephentoub"},"date_created":{"kind":"timestamp","value":"2022-03-02T21:41:16Z","string":"2022-03-02T21:41:16Z"},"date_merged":{"kind":"timestamp","value":"2022-03-03T04:10:47Z","string":"2022-03-03T04:10:47Z"},"previous_commit":{"kind":"string","value":"83adfae6a6273d8fb4c69554aa3b1cc7cbf01c71"},"pr_commit":{"kind":"string","value":"c4541b3f4f66209aed77c7d7d0fd9d8511e3ac5e"},"query":{"kind":"string","value":"Update RegexGenerator to require LangVersion > 10. We plan to take a dependency on a C# 11 language feature. For now, reserve that right by requiring a version > 10. We can downgrade it later if possible and desired."},"filepath":{"kind":"string","value":"./src/libraries/System.Configuration.ConfigurationManager/src/System/Configuration/IntegerValidator.cs"},"before_content":{"kind":"string","value":"// Licensed to the .NET Foundation under one or more agreements.\n// The .NET Foundation licenses this file to you under the MIT license.\n\nnamespace System.Configuration\n{\n public class IntegerValidator : ConfigurationValidatorBase\n {\n private readonly ValidationFlags _flags;\n private readonly int _maxValue;\n private readonly int _minValue;\n private readonly int _resolution;\n\n public IntegerValidator(int minValue, int maxValue) :\n this(minValue, maxValue, false, 1)\n { }\n\n public IntegerValidator(int minValue, int maxValue, bool rangeIsExclusive) :\n this(minValue, maxValue, rangeIsExclusive, 1)\n { }\n\n public IntegerValidator(int minValue, int maxValue, bool rangeIsExclusive, int resolution)\n {\n if (resolution <= 0) throw new ArgumentOutOfRangeException(nameof(resolution));\n\n if (minValue > maxValue)\n throw new ArgumentOutOfRangeException(nameof(minValue), SR.Validator_min_greater_than_max);\n\n _minValue = minValue;\n _maxValue = maxValue;\n _resolution = resolution;\n\n _flags = rangeIsExclusive ? ValidationFlags.ExclusiveRange : ValidationFlags.None;\n }\n\n public override bool CanValidate(Type type)\n {\n return type == typeof(int);\n }\n\n public override void Validate(object value)\n {\n ValidatorUtils.HelperParamValidation(value, typeof(int));\n\n ValidatorUtils.ValidateScalar((int)value,\n _minValue,\n _maxValue,\n _resolution,\n _flags == ValidationFlags.ExclusiveRange);\n }\n\n private enum ValidationFlags\n {\n None = 0x0000,\n ExclusiveRange = 0x0001, // If set the value must be outside of the range instead of inside\n }\n }\n}\n"},"after_content":{"kind":"string","value":"// Licensed to the .NET Foundation under one or more agreements.\n// The .NET Foundation licenses this file to you under the MIT license.\n\nnamespace System.Configuration\n{\n public class IntegerValidator : ConfigurationValidatorBase\n {\n private readonly ValidationFlags _flags;\n private readonly int _maxValue;\n private readonly int _minValue;\n private readonly int _resolution;\n\n public IntegerValidator(int minValue, int maxValue) :\n this(minValue, maxValue, false, 1)\n { }\n\n public IntegerValidator(int minValue, int maxValue, bool rangeIsExclusive) :\n this(minValue, maxValue, rangeIsExclusive, 1)\n { }\n\n public IntegerValidator(int minValue, int maxValue, bool rangeIsExclusive, int resolution)\n {\n if (resolution <= 0) throw new ArgumentOutOfRangeException(nameof(resolution));\n\n if (minValue > maxValue)\n throw new ArgumentOutOfRangeException(nameof(minValue), SR.Validator_min_greater_than_max);\n\n _minValue = minValue;\n _maxValue = maxValue;\n _resolution = resolution;\n\n _flags = rangeIsExclusive ? ValidationFlags.ExclusiveRange : ValidationFlags.None;\n }\n\n public override bool CanValidate(Type type)\n {\n return type == typeof(int);\n }\n\n public override void Validate(object value)\n {\n ValidatorUtils.HelperParamValidation(value, typeof(int));\n\n ValidatorUtils.ValidateScalar((int)value,\n _minValue,\n _maxValue,\n _resolution,\n _flags == ValidationFlags.ExclusiveRange);\n }\n\n private enum ValidationFlags\n {\n None = 0x0000,\n ExclusiveRange = 0x0001, // If set the value must be outside of the range instead of inside\n }\n }\n}\n"},"label":{"kind":"number","value":-1,"string":"-1"}}},{"rowIdx":2071831,"cells":{"repo_name":{"kind":"string","value":"dotnet/runtime"},"pr_number":{"kind":"number","value":66111,"string":"66,111"},"pr_title":{"kind":"string","value":"Update RegexGenerator to require LangVersion > 10"},"pr_description":{"kind":"string","value":"We plan to take a dependency on a C# 11 language feature. For now, reserve that right by requiring a version > 10. We can downgrade it later if possible and desired."},"author":{"kind":"string","value":"stephentoub"},"date_created":{"kind":"timestamp","value":"2022-03-02T21:41:16Z","string":"2022-03-02T21:41:16Z"},"date_merged":{"kind":"timestamp","value":"2022-03-03T04:10:47Z","string":"2022-03-03T04:10:47Z"},"previous_commit":{"kind":"string","value":"83adfae6a6273d8fb4c69554aa3b1cc7cbf01c71"},"pr_commit":{"kind":"string","value":"c4541b3f4f66209aed77c7d7d0fd9d8511e3ac5e"},"query":{"kind":"string","value":"Update RegexGenerator to require LangVersion > 10. We plan to take a dependency on a C# 11 language feature. For now, reserve that right by requiring a version > 10. We can downgrade it later if possible and desired."},"filepath":{"kind":"string","value":"./src/libraries/System.Data.DataSetExtensions/tests/Mono/EnumerableRowCollectionTest.cs"},"before_content":{"kind":"string","value":"// Licensed to the .NET Foundation under one or more agreements.\n// The .NET Foundation licenses this file to you under the MIT license.\n//\n// EnumerableRowCollectionTest.cs\n//\n// Author:\n// Atsushi Enomoto \n//\n// Copyright (C) 2008 Novell, Inc. http://www.novell.com\n//\n\n//\n// Permission is hereby granted, free of charge, to any person obtaining\n// a copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to\n// permit persons to whom the Software is furnished to do so, subject to\n// the following conditions:\n//\n// The above copyright notice and this permission notice shall be\n// included in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\n// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\n// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\n// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n//\n\nusing System;\nusing System.Collections.Generic;\nusing System.Data;\nusing Xunit;\n\nnamespace MonoTests.System.Data\n{\n public class EnumerableRowCollectionTest\n {\n private string _testDataSet = \"Mono/testdataset1.xml\";\n\n [Fact]\n public void QueryWhere()\n {\n var ds = new DataSet();\n ds.ReadXml(_testDataSet);\n var table = ds.Tables[0];\n /* schema generated as ...\n var table = ds.Tables.Add (\"ScoreList\");\n table.Columns.Add (\"ID\", typeof (int));\n table.Columns.Add (\"RegisteredDate\", typeof (DateTime));\n table.Columns.Add (\"Name\", typeof (string));\n table.Columns.Add (\"Score\", typeof (int));\n ds.WriteXml (\"Test/System.Data/testdataset1.xsd\", XmlWriteMode.WriteSchema);\n */\n var q = from line in table.AsEnumerable()\n where line.Field(\"Score\") > 80\n select line;\n bool iterated = false;\n foreach (var line in q)\n {\n if (iterated)\n Assert.True(false, \"should match only one raw\");\n Assert.Equal(100, line[\"Score\"]);\n iterated = true;\n }\n }\n\n [Fact]\n public void QueryWhereSelect ()\n {\n var ds = new DataSet ();\n ds.ReadXml (_testDataSet);\n var table = ds.Tables [0];\n var q = from line in table.AsEnumerable ()\n where line.Field (\"Score\") > 80\n select new {\n StudentID = line.Field (\"ID\"),\n StudentName = line.Field (\"Name\"),\n StudentScore = line.Field (\"Score\") };\n bool iterated = false;\n foreach (var ql in q) {\n if (iterated)\n Assert.True(false, \"should match only one raw\");\n Assert.Equal(100, ql.StudentScore);\n iterated = true;\n }\n }\n\n [Fact]\n public void QueryWhereSelectOrderBy ()\n {\n var ds = new DataSet ();\n ds.ReadXml (_testDataSet);\n var table = ds.Tables [0];\n var q = from line in table.AsEnumerable ()\n where line.Field (\"Score\") >= 80\n orderby line.Field (\"ID\")\n select new {\n StudentID = line.Field (\"ID\"),\n StudentName = line.Field (\"Name\"),\n StudentScore = line.Field (\"Score\") };\n int prevID = -1;\n foreach (var ql in q) {\n switch (prevID) {\n case -1:\n Assert.Equal(1, ql.StudentID);\n break;\n case 1:\n Assert.Equal(4, ql.StudentID);\n break;\n default:\n Assert.True(false, \"should match only one raw\");\n break;\n }\n prevID = ql.StudentID;\n }\n }\n\n [Fact]\n public void QueryWhereSelectOrderByDescending ()\n {\n var ds = new DataSet ();\n ds.ReadXml (_testDataSet);\n var table = ds.Tables [0];\n var q = from line in table.AsEnumerable ()\n where line.Field (\"Score\") >= 80\n orderby line.Field (\"ID\") descending\n select new {\n StudentID = line.Field (\"ID\"),\n StudentName = line.Field (\"Name\"),\n StudentScore = line.Field (\"Score\") };\n int prevID = -1;\n foreach (var ql in q) {\n switch (prevID) {\n case -1:\n Assert.Equal(4, ql.StudentID);\n break;\n case 4:\n Assert.Equal(1, ql.StudentID);\n break;\n default:\n Assert.True(false, \"should match only one raw\");\n break;\n }\n prevID = ql.StudentID;\n }\n }\n\n [Fact]\n public void ThenBy ()\n {\n var ds = new DataSet ();\n ds.ReadXml (_testDataSet);\n var table = ds.Tables [0];\n var q = from line in table.AsEnumerable ()\n where line.Field (\"Score\") >= 80\n orderby line.Field (\"Gender\"), line.Field (\"ID\")\n select new {\n StudentID = line.Field (\"ID\"),\n StudentName = line.Field (\"Name\"),\n StudentScore = line.Field (\"Score\") };\n int prevID = -1;\n foreach (var ql in q) {\n switch (prevID) {\n case -1:\n Assert.Equal(1, ql.StudentID);\n break;\n case 1:\n Assert.Equal(4, ql.StudentID);\n break;\n default:\n Assert.True(false, \"should match only one raw\");\n break;\n }\n prevID = ql.StudentID;\n }\n }\n\n [Fact]\n public void ThenByDescending ()\n {\n var ds = new DataSet ();\n ds.ReadXml (_testDataSet);\n var table = ds.Tables [0];\n var q = from line in table.AsEnumerable ()\n where line.Field (\"Score\") >= 80\n orderby line.Field (\"Gender\"), line.Field (\"ID\") descending\n select new {\n StudentID = line.Field (\"ID\"),\n StudentName = line.Field (\"Name\"),\n StudentScore = line.Field (\"Score\") };\n int prevID = -1;\n foreach (var ql in q) {\n switch (prevID) {\n case -1:\n Assert.Equal(4, ql.StudentID);\n break;\n case 4:\n Assert.Equal(1, ql.StudentID);\n break;\n default:\n Assert.True(false, \"should match only one raw\");\n break;\n }\n prevID = ql.StudentID;\n }\n }\n }\n}\n"},"after_content":{"kind":"string","value":"// Licensed to the .NET Foundation under one or more agreements.\n// The .NET Foundation licenses this file to you under the MIT license.\n//\n// EnumerableRowCollectionTest.cs\n//\n// Author:\n// Atsushi Enomoto \n//\n// Copyright (C) 2008 Novell, Inc. http://www.novell.com\n//\n\n//\n// Permission is hereby granted, free of charge, to any person obtaining\n// a copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to\n// permit persons to whom the Software is furnished to do so, subject to\n// the following conditions:\n//\n// The above copyright notice and this permission notice shall be\n// included in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\n// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\n// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\n// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n//\n\nusing System;\nusing System.Collections.Generic;\nusing System.Data;\nusing Xunit;\n\nnamespace MonoTests.System.Data\n{\n public class EnumerableRowCollectionTest\n {\n private string _testDataSet = \"Mono/testdataset1.xml\";\n\n [Fact]\n public void QueryWhere()\n {\n var ds = new DataSet();\n ds.ReadXml(_testDataSet);\n var table = ds.Tables[0];\n /* schema generated as ...\n var table = ds.Tables.Add (\"ScoreList\");\n table.Columns.Add (\"ID\", typeof (int));\n table.Columns.Add (\"RegisteredDate\", typeof (DateTime));\n table.Columns.Add (\"Name\", typeof (string));\n table.Columns.Add (\"Score\", typeof (int));\n ds.WriteXml (\"Test/System.Data/testdataset1.xsd\", XmlWriteMode.WriteSchema);\n */\n var q = from line in table.AsEnumerable()\n where line.Field(\"Score\") > 80\n select line;\n bool iterated = false;\n foreach (var line in q)\n {\n if (iterated)\n Assert.True(false, \"should match only one raw\");\n Assert.Equal(100, line[\"Score\"]);\n iterated = true;\n }\n }\n\n [Fact]\n public void QueryWhereSelect ()\n {\n var ds = new DataSet ();\n ds.ReadXml (_testDataSet);\n var table = ds.Tables [0];\n var q = from line in table.AsEnumerable ()\n where line.Field (\"Score\") > 80\n select new {\n StudentID = line.Field (\"ID\"),\n StudentName = line.Field (\"Name\"),\n StudentScore = line.Field (\"Score\") };\n bool iterated = false;\n foreach (var ql in q) {\n if (iterated)\n Assert.True(false, \"should match only one raw\");\n Assert.Equal(100, ql.StudentScore);\n iterated = true;\n }\n }\n\n [Fact]\n public void QueryWhereSelectOrderBy ()\n {\n var ds = new DataSet ();\n ds.ReadXml (_testDataSet);\n var table = ds.Tables [0];\n var q = from line in table.AsEnumerable ()\n where line.Field (\"Score\") >= 80\n orderby line.Field (\"ID\")\n select new {\n StudentID = line.Field (\"ID\"),\n StudentName = line.Field (\"Name\"),\n StudentScore = line.Field (\"Score\") };\n int prevID = -1;\n foreach (var ql in q) {\n switch (prevID) {\n case -1:\n Assert.Equal(1, ql.StudentID);\n break;\n case 1:\n Assert.Equal(4, ql.StudentID);\n break;\n default:\n Assert.True(false, \"should match only one raw\");\n break;\n }\n prevID = ql.StudentID;\n }\n }\n\n [Fact]\n public void QueryWhereSelectOrderByDescending ()\n {\n var ds = new DataSet ();\n ds.ReadXml (_testDataSet);\n var table = ds.Tables [0];\n var q = from line in table.AsEnumerable ()\n where line.Field (\"Score\") >= 80\n orderby line.Field (\"ID\") descending\n select new {\n StudentID = line.Field (\"ID\"),\n StudentName = line.Field (\"Name\"),\n StudentScore = line.Field (\"Score\") };\n int prevID = -1;\n foreach (var ql in q) {\n switch (prevID) {\n case -1:\n Assert.Equal(4, ql.StudentID);\n break;\n case 4:\n Assert.Equal(1, ql.StudentID);\n break;\n default:\n Assert.True(false, \"should match only one raw\");\n break;\n }\n prevID = ql.StudentID;\n }\n }\n\n [Fact]\n public void ThenBy ()\n {\n var ds = new DataSet ();\n ds.ReadXml (_testDataSet);\n var table = ds.Tables [0];\n var q = from line in table.AsEnumerable ()\n where line.Field (\"Score\") >= 80\n orderby line.Field (\"Gender\"), line.Field (\"ID\")\n select new {\n StudentID = line.Field (\"ID\"),\n StudentName = line.Field (\"Name\"),\n StudentScore = line.Field (\"Score\") };\n int prevID = -1;\n foreach (var ql in q) {\n switch (prevID) {\n case -1:\n Assert.Equal(1, ql.StudentID);\n break;\n case 1:\n Assert.Equal(4, ql.StudentID);\n break;\n default:\n Assert.True(false, \"should match only one raw\");\n break;\n }\n prevID = ql.StudentID;\n }\n }\n\n [Fact]\n public void ThenByDescending ()\n {\n var ds = new DataSet ();\n ds.ReadXml (_testDataSet);\n var table = ds.Tables [0];\n var q = from line in table.AsEnumerable ()\n where line.Field (\"Score\") >= 80\n orderby line.Field (\"Gender\"), line.Field (\"ID\") descending\n select new {\n StudentID = line.Field (\"ID\"),\n StudentName = line.Field (\"Name\"),\n StudentScore = line.Field (\"Score\") };\n int prevID = -1;\n foreach (var ql in q) {\n switch (prevID) {\n case -1:\n Assert.Equal(4, ql.StudentID);\n break;\n case 4:\n Assert.Equal(1, ql.StudentID);\n break;\n default:\n Assert.True(false, \"should match only one raw\");\n break;\n }\n prevID = ql.StudentID;\n }\n }\n }\n}\n"},"label":{"kind":"number","value":-1,"string":"-1"}}},{"rowIdx":2071832,"cells":{"repo_name":{"kind":"string","value":"dotnet/runtime"},"pr_number":{"kind":"number","value":66111,"string":"66,111"},"pr_title":{"kind":"string","value":"Update RegexGenerator to require LangVersion > 10"},"pr_description":{"kind":"string","value":"We plan to take a dependency on a C# 11 language feature. For now, reserve that right by requiring a version > 10. We can downgrade it later if possible and desired."},"author":{"kind":"string","value":"stephentoub"},"date_created":{"kind":"timestamp","value":"2022-03-02T21:41:16Z","string":"2022-03-02T21:41:16Z"},"date_merged":{"kind":"timestamp","value":"2022-03-03T04:10:47Z","string":"2022-03-03T04:10:47Z"},"previous_commit":{"kind":"string","value":"83adfae6a6273d8fb4c69554aa3b1cc7cbf01c71"},"pr_commit":{"kind":"string","value":"c4541b3f4f66209aed77c7d7d0fd9d8511e3ac5e"},"query":{"kind":"string","value":"Update RegexGenerator to require LangVersion > 10. We plan to take a dependency on a C# 11 language feature. For now, reserve that right by requiring a version > 10. We can downgrade it later if possible and desired."},"filepath":{"kind":"string","value":"./src/libraries/System.Net.HttpListener/tests/HttpListenerResponseTests.Cookies.cs"},"before_content":{"kind":"string","value":"// Licensed to the .NET Foundation under one or more agreements.\n// The .NET Foundation licenses this file to you under the MIT license.\n\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Threading.Tasks;\nusing Xunit;\n\nnamespace System.Net.Tests\n{\n [SkipOnCoreClr(\"System.Net.Tests may timeout in stress configurations\", ~RuntimeConfiguration.Release)]\n [ActiveIssue(\"https://github.com/dotnet/runtime/issues/2391\", TestRuntimes.Mono)]\n [ConditionalClass(typeof(PlatformDetection), nameof(PlatformDetection.IsNotWindowsNanoServer))] // httpsys component missing in Nano.\n public class HttpListenerResponseCookiesTests : HttpListenerResponseTestBase\n {\n [Fact]\n public async Task Cookies_GetSet_ReturnsExpected()\n {\n HttpListenerResponse response = await GetResponse();\n Assert.Same(response.Cookies, response.Cookies);\n Assert.Empty(response.Cookies);\n\n var cookies = new CookieCollection() { new Cookie(\"name\", \"value\") };\n response.Cookies = cookies;\n Assert.Equal(cookies, response.Cookies);\n\n response.Cookies = null;\n Assert.Empty(response.Cookies);\n }\n\n public static IEnumerable Cookies_TestData()\n {\n yield return new object[]\n {\n new CookieCollection()\n {\n new Cookie()\n },\n 120, null, null\n };\n\n yield return new object[]\n {\n new CookieCollection()\n {\n new Cookie(),\n new Cookie(\"name\", \"value\")\n },\n 144, \"Set-Cookie: name=value\", null\n };\n\n yield return new object[]\n {\n new CookieCollection()\n {\n new Cookie(\"name\", \"value\")\n },\n 144, \"Set-Cookie: name=value\", null\n };\n\n yield return new object[]\n {\n new CookieCollection()\n {\n new Cookie(\"foo bar\", \"value\")\n },\n 147, \"Set-Cookie: foo bar=value\", null\n };\n\n yield return new object[]\n {\n new CookieCollection()\n {\n new Cookie(\"name1\", \"value1\"),\n new Cookie(\"name2\", \"value2\")\n },\n 160, \"Set-Cookie: name1=value1, name2=value2\", null\n };\n\n yield return new object[]\n {\n new CookieCollection()\n {\n new Cookie(\"name1\", \"value1\") { Port = \"\\\"200\\\"\" },\n new Cookie(\"name2\", \"value2\") { Port = \"\\\"300\\\"\" },\n },\n 207, null, \"Set-Cookie2: name1=value1; Port=\\\"200\\\"; Version=1, name2=value2; Port=\\\"300\\\"; Version=1\"\n };\n\n yield return new object[]\n {\n new CookieCollection()\n {\n new Cookie(\"name1\", \"value1\"),\n new Cookie(\"name2\", \"value2\") { Port = \"\\\"300\\\"\" },\n },\n 196, \"Set-Cookie: name1=value1\", \"Set-Cookie2: name2=value2; Port=\\\"300\\\"; Version=1\"\n };\n }\n\n [Theory]\n [MemberData(nameof(Cookies_TestData))]\n public async Task Cookies_SetAndSend_ClientReceivesExpectedHeaders(CookieCollection cookies, int expectedBytes, string expectedSetCookie, string expectedSetCookie2)\n {\n HttpListenerResponse response = await GetResponse();\n response.Cookies = cookies;\n\n response.Close();\n\n Assert.Equal(expectedSetCookie?.Replace(\"Set-Cookie: \", \"\"), response.Headers[\"Set-Cookie\"]);\n Assert.Equal(expectedSetCookie2?.Replace(\"Set-Cookie2: \", \"\"), response.Headers[\"Set-Cookie2\"]);\n\n string clientResponse = GetClientResponse(expectedBytes);\n if (expectedSetCookie != null)\n {\n Assert.Contains($\"\\r\\n{expectedSetCookie}\\r\\n\", clientResponse);\n }\n else\n {\n Assert.DoesNotContain(\"Set-Cookie:\", clientResponse);\n }\n\n if (expectedSetCookie2 != null)\n {\n Assert.Contains($\"\\r\\n{expectedSetCookie2}\\r\\n\", clientResponse);\n }\n else\n {\n Assert.DoesNotContain(\"Set-Cookie2:\", clientResponse);\n }\n }\n\n [Fact]\n public async Task Cookies_SetInHeader_ClientReceivesExpectedHeaders()\n {\n HttpListenerResponse response = await GetResponse();\n response.Headers[\"Set-Cookie\"] = \"name1=value1\";\n response.Headers[\"Set-Cookie2\"] = \"name2=value2\";\n\n response.Close();\n\n string clientResponse = GetClientResponse(expectedLength:173);\n Assert.Contains(\"\\r\\nSet-Cookie: name1=value1\\r\\n\", clientResponse);\n Assert.Contains(\"\\r\\nSet-Cookie2: name2=value2\\r\\n\", clientResponse);\n }\n\n [Fact]\n public async Task Cookies_SetCookie2InHeadersButNotInCookies_RemovesFromHeaders()\n {\n HttpListenerResponse response = await GetResponse();\n response.Headers[\"Set-Cookie\"] = \"name1=value2\";\n response.Headers[\"Set-Cookie2\"] = \"name2=value2\";\n\n response.Cookies.Add(new Cookie(\"name3\", \"value3\") { Port = \"\\\"200\\\"\" });\n\n response.Close();\n\n Assert.Null(response.Headers[\"Set-Cookie\"]);\n Assert.Equal(\"name3=value3; Port=\\\"200\\\"; Version=1\", response.Headers[\"Set-Cookie2\"]);\n\n string clientResponse = GetClientResponse(expectedLength:170);\n Assert.DoesNotContain(\"Set-Cookie:\", clientResponse);\n Assert.Contains(\"\\r\\nSet-Cookie2: name3=value3; Port=\\\"200\\\"; Version=1\\r\\n\", clientResponse);\n }\n\n [Fact]\n public async Task Cookies_SetCookieInHeadersButNotInCookies_RemovesFromHeaders()\n {\n HttpListenerResponse response = await GetResponse();\n response.Headers[\"Set-Cookie\"] = \"name1=value2\";\n response.Headers[\"Set-Cookie2\"] = \"name2=value2\";\n\n response.Cookies.Add(new Cookie(\"name3\", \"value3\"));\n\n response.Close();\n\n Assert.Equal(\"name3=value3\", response.Headers[\"Set-Cookie\"]);\n Assert.Null(response.Headers[\"Set-Cookie2\"]);\n\n string clientResponse = GetClientResponse(expectedLength:146);\n Assert.Contains(\"\\r\\nSet-Cookie: name3=value3\\r\\n\", clientResponse);\n Assert.DoesNotContain(\"Set-Cookie2\", clientResponse);\n }\n\n [Fact]\n public async Task Cookies_AddMultipleInHeader_ClientReceivesExpectedHeaders()\n {\n HttpListenerResponse response = await GetResponse();\n response.Headers.Add(\"Set-Cookie\", \"name1=value1\");\n response.Headers.Add(\"Set-Cookie\", \"name2=value2\");\n response.Headers.Add(\"Set-Cookie\", \"name3=value3\");\n response.Headers.Add(\"Set-Cookie\", \"name4=value4\");\n\n response.Close();\n\n string clientResponse = GetClientResponse(expectedLength:224);\n Assert.Contains(\"\\r\\nSet-Cookie: name1=value1\\r\\n\", clientResponse);\n Assert.Contains(\"\\r\\nSet-Cookie: name2=value2\\r\\n\", clientResponse);\n Assert.Contains(\"\\r\\nSet-Cookie: name3=value3\\r\\n\", clientResponse);\n Assert.Contains(\"\\r\\nSet-Cookie: name4=value4\\r\\n\", clientResponse);\n }\n\n [Fact]\n public async Task AppendCookie_ValidCookie_AddsCookieToCollection()\n {\n HttpListenerResponse response = await GetResponse();\n\n var cookie1 = new Cookie(\"name1\", \"value\");\n var cookie2 = new Cookie(\"name2\", \"value2\");\n\n response.AppendCookie(cookie1);\n response.AppendCookie(cookie2);\n Assert.Equal(new Cookie[] { cookie1, cookie2 }, response.Cookies.Cast());\n\n var cookie3 = new Cookie(\"name1\", \"value2\");\n response.AppendCookie(cookie3);\n Assert.Equal(new Cookie[] { cookie3, cookie2 }, response.Cookies.Cast());\n\n // Cookies are not cloned.\n cookie3.Value = \"value3\";\n Assert.Equal(\"value3\", response.Cookies[0].Value);\n }\n\n [Fact]\n public async Task AppendCookie_NullCookie_ThrowsArgumentNullException()\n {\n HttpListenerResponse response = await GetResponse();\n AssertExtensions.Throws(\"cookie\", () => response.AppendCookie(null));\n }\n\n [Fact]\n public async Task SetCookie_ValidCookie_AddsCookieToCollection()\n {\n HttpListenerResponse response = await GetResponse();\n\n var cookie1 = new Cookie(\"name1\", \"value1\");\n var cookie2 = new Cookie(\"name2\", \"value2\");\n\n response.SetCookie(cookie1);\n response.SetCookie(cookie2);\n Assert.Equal(new Cookie[] { cookie1, cookie2 }, response.Cookies.Cast());\n }\n\n [Fact]\n public async Task SetCookie_ValidCookie_ClonesCookie()\n {\n HttpListenerResponse response = await GetResponse();\n var cookie = new Cookie(\"name\", \"value\");\n response.SetCookie(cookie);\n\n // Cookies are cloned.\n cookie.Value = \"value3\";\n Assert.Equal(\"value\", response.Cookies[0].Value);\n }\n\n [Fact]\n public async Task SetCookie_NullCookie_ThrowsArgumentNullException()\n {\n HttpListenerResponse response = await GetResponse();\n AssertExtensions.Throws(\"cookie\", () => response.SetCookie(null));\n }\n\n [Fact]\n public async Task SetCookie_CookieDoesntExist_ThrowsArgumentException()\n {\n HttpListenerResponse response = await GetResponse();\n var cookie1 = new Cookie(\"name\", \"value\");\n\n response.SetCookie(cookie1);\n AssertExtensions.Throws(\"cookie\", () => response.SetCookie(cookie1));\n\n var cookie2 = new Cookie(\"name\", \"value2\");\n AssertExtensions.Throws(\"cookie\", () => response.SetCookie(cookie2));\n Assert.Equal(new Cookie[] { cookie2 }, response.Cookies.Cast());\n }\n }\n}\n"},"after_content":{"kind":"string","value":"// Licensed to the .NET Foundation under one or more agreements.\n// The .NET Foundation licenses this file to you under the MIT license.\n\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Threading.Tasks;\nusing Xunit;\n\nnamespace System.Net.Tests\n{\n [SkipOnCoreClr(\"System.Net.Tests may timeout in stress configurations\", ~RuntimeConfiguration.Release)]\n [ActiveIssue(\"https://github.com/dotnet/runtime/issues/2391\", TestRuntimes.Mono)]\n [ConditionalClass(typeof(PlatformDetection), nameof(PlatformDetection.IsNotWindowsNanoServer))] // httpsys component missing in Nano.\n public class HttpListenerResponseCookiesTests : HttpListenerResponseTestBase\n {\n [Fact]\n public async Task Cookies_GetSet_ReturnsExpected()\n {\n HttpListenerResponse response = await GetResponse();\n Assert.Same(response.Cookies, response.Cookies);\n Assert.Empty(response.Cookies);\n\n var cookies = new CookieCollection() { new Cookie(\"name\", \"value\") };\n response.Cookies = cookies;\n Assert.Equal(cookies, response.Cookies);\n\n response.Cookies = null;\n Assert.Empty(response.Cookies);\n }\n\n public static IEnumerable Cookies_TestData()\n {\n yield return new object[]\n {\n new CookieCollection()\n {\n new Cookie()\n },\n 120, null, null\n };\n\n yield return new object[]\n {\n new CookieCollection()\n {\n new Cookie(),\n new Cookie(\"name\", \"value\")\n },\n 144, \"Set-Cookie: name=value\", null\n };\n\n yield return new object[]\n {\n new CookieCollection()\n {\n new Cookie(\"name\", \"value\")\n },\n 144, \"Set-Cookie: name=value\", null\n };\n\n yield return new object[]\n {\n new CookieCollection()\n {\n new Cookie(\"foo bar\", \"value\")\n },\n 147, \"Set-Cookie: foo bar=value\", null\n };\n\n yield return new object[]\n {\n new CookieCollection()\n {\n new Cookie(\"name1\", \"value1\"),\n new Cookie(\"name2\", \"value2\")\n },\n 160, \"Set-Cookie: name1=value1, name2=value2\", null\n };\n\n yield return new object[]\n {\n new CookieCollection()\n {\n new Cookie(\"name1\", \"value1\") { Port = \"\\\"200\\\"\" },\n new Cookie(\"name2\", \"value2\") { Port = \"\\\"300\\\"\" },\n },\n 207, null, \"Set-Cookie2: name1=value1; Port=\\\"200\\\"; Version=1, name2=value2; Port=\\\"300\\\"; Version=1\"\n };\n\n yield return new object[]\n {\n new CookieCollection()\n {\n new Cookie(\"name1\", \"value1\"),\n new Cookie(\"name2\", \"value2\") { Port = \"\\\"300\\\"\" },\n },\n 196, \"Set-Cookie: name1=value1\", \"Set-Cookie2: name2=value2; Port=\\\"300\\\"; Version=1\"\n };\n }\n\n [Theory]\n [MemberData(nameof(Cookies_TestData))]\n public async Task Cookies_SetAndSend_ClientReceivesExpectedHeaders(CookieCollection cookies, int expectedBytes, string expectedSetCookie, string expectedSetCookie2)\n {\n HttpListenerResponse response = await GetResponse();\n response.Cookies = cookies;\n\n response.Close();\n\n Assert.Equal(expectedSetCookie?.Replace(\"Set-Cookie: \", \"\"), response.Headers[\"Set-Cookie\"]);\n Assert.Equal(expectedSetCookie2?.Replace(\"Set-Cookie2: \", \"\"), response.Headers[\"Set-Cookie2\"]);\n\n string clientResponse = GetClientResponse(expectedBytes);\n if (expectedSetCookie != null)\n {\n Assert.Contains($\"\\r\\n{expectedSetCookie}\\r\\n\", clientResponse);\n }\n else\n {\n Assert.DoesNotContain(\"Set-Cookie:\", clientResponse);\n }\n\n if (expectedSetCookie2 != null)\n {\n Assert.Contains($\"\\r\\n{expectedSetCookie2}\\r\\n\", clientResponse);\n }\n else\n {\n Assert.DoesNotContain(\"Set-Cookie2:\", clientResponse);\n }\n }\n\n [Fact]\n public async Task Cookies_SetInHeader_ClientReceivesExpectedHeaders()\n {\n HttpListenerResponse response = await GetResponse();\n response.Headers[\"Set-Cookie\"] = \"name1=value1\";\n response.Headers[\"Set-Cookie2\"] = \"name2=value2\";\n\n response.Close();\n\n string clientResponse = GetClientResponse(expectedLength:173);\n Assert.Contains(\"\\r\\nSet-Cookie: name1=value1\\r\\n\", clientResponse);\n Assert.Contains(\"\\r\\nSet-Cookie2: name2=value2\\r\\n\", clientResponse);\n }\n\n [Fact]\n public async Task Cookies_SetCookie2InHeadersButNotInCookies_RemovesFromHeaders()\n {\n HttpListenerResponse response = await GetResponse();\n response.Headers[\"Set-Cookie\"] = \"name1=value2\";\n response.Headers[\"Set-Cookie2\"] = \"name2=value2\";\n\n response.Cookies.Add(new Cookie(\"name3\", \"value3\") { Port = \"\\\"200\\\"\" });\n\n response.Close();\n\n Assert.Null(response.Headers[\"Set-Cookie\"]);\n Assert.Equal(\"name3=value3; Port=\\\"200\\\"; Version=1\", response.Headers[\"Set-Cookie2\"]);\n\n string clientResponse = GetClientResponse(expectedLength:170);\n Assert.DoesNotContain(\"Set-Cookie:\", clientResponse);\n Assert.Contains(\"\\r\\nSet-Cookie2: name3=value3; Port=\\\"200\\\"; Version=1\\r\\n\", clientResponse);\n }\n\n [Fact]\n public async Task Cookies_SetCookieInHeadersButNotInCookies_RemovesFromHeaders()\n {\n HttpListenerResponse response = await GetResponse();\n response.Headers[\"Set-Cookie\"] = \"name1=value2\";\n response.Headers[\"Set-Cookie2\"] = \"name2=value2\";\n\n response.Cookies.Add(new Cookie(\"name3\", \"value3\"));\n\n response.Close();\n\n Assert.Equal(\"name3=value3\", response.Headers[\"Set-Cookie\"]);\n Assert.Null(response.Headers[\"Set-Cookie2\"]);\n\n string clientResponse = GetClientResponse(expectedLength:146);\n Assert.Contains(\"\\r\\nSet-Cookie: name3=value3\\r\\n\", clientResponse);\n Assert.DoesNotContain(\"Set-Cookie2\", clientResponse);\n }\n\n [Fact]\n public async Task Cookies_AddMultipleInHeader_ClientReceivesExpectedHeaders()\n {\n HttpListenerResponse response = await GetResponse();\n response.Headers.Add(\"Set-Cookie\", \"name1=value1\");\n response.Headers.Add(\"Set-Cookie\", \"name2=value2\");\n response.Headers.Add(\"Set-Cookie\", \"name3=value3\");\n response.Headers.Add(\"Set-Cookie\", \"name4=value4\");\n\n response.Close();\n\n string clientResponse = GetClientResponse(expectedLength:224);\n Assert.Contains(\"\\r\\nSet-Cookie: name1=value1\\r\\n\", clientResponse);\n Assert.Contains(\"\\r\\nSet-Cookie: name2=value2\\r\\n\", clientResponse);\n Assert.Contains(\"\\r\\nSet-Cookie: name3=value3\\r\\n\", clientResponse);\n Assert.Contains(\"\\r\\nSet-Cookie: name4=value4\\r\\n\", clientResponse);\n }\n\n [Fact]\n public async Task AppendCookie_ValidCookie_AddsCookieToCollection()\n {\n HttpListenerResponse response = await GetResponse();\n\n var cookie1 = new Cookie(\"name1\", \"value\");\n var cookie2 = new Cookie(\"name2\", \"value2\");\n\n response.AppendCookie(cookie1);\n response.AppendCookie(cookie2);\n Assert.Equal(new Cookie[] { cookie1, cookie2 }, response.Cookies.Cast());\n\n var cookie3 = new Cookie(\"name1\", \"value2\");\n response.AppendCookie(cookie3);\n Assert.Equal(new Cookie[] { cookie3, cookie2 }, response.Cookies.Cast());\n\n // Cookies are not cloned.\n cookie3.Value = \"value3\";\n Assert.Equal(\"value3\", response.Cookies[0].Value);\n }\n\n [Fact]\n public async Task AppendCookie_NullCookie_ThrowsArgumentNullException()\n {\n HttpListenerResponse response = await GetResponse();\n AssertExtensions.Throws(\"cookie\", () => response.AppendCookie(null));\n }\n\n [Fact]\n public async Task SetCookie_ValidCookie_AddsCookieToCollection()\n {\n HttpListenerResponse response = await GetResponse();\n\n var cookie1 = new Cookie(\"name1\", \"value1\");\n var cookie2 = new Cookie(\"name2\", \"value2\");\n\n response.SetCookie(cookie1);\n response.SetCookie(cookie2);\n Assert.Equal(new Cookie[] { cookie1, cookie2 }, response.Cookies.Cast());\n }\n\n [Fact]\n public async Task SetCookie_ValidCookie_ClonesCookie()\n {\n HttpListenerResponse response = await GetResponse();\n var cookie = new Cookie(\"name\", \"value\");\n response.SetCookie(cookie);\n\n // Cookies are cloned.\n cookie.Value = \"value3\";\n Assert.Equal(\"value\", response.Cookies[0].Value);\n }\n\n [Fact]\n public async Task SetCookie_NullCookie_ThrowsArgumentNullException()\n {\n HttpListenerResponse response = await GetResponse();\n AssertExtensions.Throws(\"cookie\", () => response.SetCookie(null));\n }\n\n [Fact]\n public async Task SetCookie_CookieDoesntExist_ThrowsArgumentException()\n {\n HttpListenerResponse response = await GetResponse();\n var cookie1 = new Cookie(\"name\", \"value\");\n\n response.SetCookie(cookie1);\n AssertExtensions.Throws(\"cookie\", () => response.SetCookie(cookie1));\n\n var cookie2 = new Cookie(\"name\", \"value2\");\n AssertExtensions.Throws(\"cookie\", () => response.SetCookie(cookie2));\n Assert.Equal(new Cookie[] { cookie2 }, response.Cookies.Cast());\n }\n }\n}\n"},"label":{"kind":"number","value":-1,"string":"-1"}}},{"rowIdx":2071833,"cells":{"repo_name":{"kind":"string","value":"dotnet/runtime"},"pr_number":{"kind":"number","value":66111,"string":"66,111"},"pr_title":{"kind":"string","value":"Update RegexGenerator to require LangVersion > 10"},"pr_description":{"kind":"string","value":"We plan to take a dependency on a C# 11 language feature. For now, reserve that right by requiring a version > 10. We can downgrade it later if possible and desired."},"author":{"kind":"string","value":"stephentoub"},"date_created":{"kind":"timestamp","value":"2022-03-02T21:41:16Z","string":"2022-03-02T21:41:16Z"},"date_merged":{"kind":"timestamp","value":"2022-03-03T04:10:47Z","string":"2022-03-03T04:10:47Z"},"previous_commit":{"kind":"string","value":"83adfae6a6273d8fb4c69554aa3b1cc7cbf01c71"},"pr_commit":{"kind":"string","value":"c4541b3f4f66209aed77c7d7d0fd9d8511e3ac5e"},"query":{"kind":"string","value":"Update RegexGenerator to require LangVersion > 10. We plan to take a dependency on a C# 11 language feature. For now, reserve that right by requiring a version > 10. We can downgrade it later if possible and desired."},"filepath":{"kind":"string","value":"./src/libraries/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/SignerInfoEnumerator.cs"},"before_content":{"kind":"string","value":"// Licensed to the .NET Foundation under one or more agreements.\n// The .NET Foundation licenses this file to you under the MIT license.\n\nusing System.Collections;\nusing System.Diagnostics;\n\nnamespace System.Security.Cryptography.Pkcs\n{\n public sealed class SignerInfoEnumerator : IEnumerator\n {\n private readonly SignerInfoCollection _signerInfos;\n private int _position;\n\n internal SignerInfoEnumerator(SignerInfoCollection signerInfos)\n {\n Debug.Assert(signerInfos != null);\n\n _signerInfos = signerInfos;\n _position = -1;\n }\n\n public SignerInfo Current => _signerInfos[_position];\n object IEnumerator.Current => _signerInfos[_position];\n\n public bool MoveNext()\n {\n int next = _position + 1;\n\n if (next >= _signerInfos.Count)\n return false;\n\n _position = next;\n return true;\n }\n\n public void Reset()\n {\n _position = -1;\n }\n }\n}\n"},"after_content":{"kind":"string","value":"// Licensed to the .NET Foundation under one or more agreements.\n// The .NET Foundation licenses this file to you under the MIT license.\n\nusing System.Collections;\nusing System.Diagnostics;\n\nnamespace System.Security.Cryptography.Pkcs\n{\n public sealed class SignerInfoEnumerator : IEnumerator\n {\n private readonly SignerInfoCollection _signerInfos;\n private int _position;\n\n internal SignerInfoEnumerator(SignerInfoCollection signerInfos)\n {\n Debug.Assert(signerInfos != null);\n\n _signerInfos = signerInfos;\n _position = -1;\n }\n\n public SignerInfo Current => _signerInfos[_position];\n object IEnumerator.Current => _signerInfos[_position];\n\n public bool MoveNext()\n {\n int next = _position + 1;\n\n if (next >= _signerInfos.Count)\n return false;\n\n _position = next;\n return true;\n }\n\n public void Reset()\n {\n _position = -1;\n }\n }\n}\n"},"label":{"kind":"number","value":-1,"string":"-1"}}},{"rowIdx":2071834,"cells":{"repo_name":{"kind":"string","value":"dotnet/runtime"},"pr_number":{"kind":"number","value":66111,"string":"66,111"},"pr_title":{"kind":"string","value":"Update RegexGenerator to require LangVersion > 10"},"pr_description":{"kind":"string","value":"We plan to take a dependency on a C# 11 language feature. For now, reserve that right by requiring a version > 10. We can downgrade it later if possible and desired."},"author":{"kind":"string","value":"stephentoub"},"date_created":{"kind":"timestamp","value":"2022-03-02T21:41:16Z","string":"2022-03-02T21:41:16Z"},"date_merged":{"kind":"timestamp","value":"2022-03-03T04:10:47Z","string":"2022-03-03T04:10:47Z"},"previous_commit":{"kind":"string","value":"83adfae6a6273d8fb4c69554aa3b1cc7cbf01c71"},"pr_commit":{"kind":"string","value":"c4541b3f4f66209aed77c7d7d0fd9d8511e3ac5e"},"query":{"kind":"string","value":"Update RegexGenerator to require LangVersion > 10. We plan to take a dependency on a C# 11 language feature. For now, reserve that right by requiring a version > 10. We can downgrade it later if possible and desired."},"filepath":{"kind":"string","value":"./src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLByte.cs"},"before_content":{"kind":"string","value":"// Licensed to the .NET Foundation under one or more agreements.\n// The .NET Foundation licenses this file to you under the MIT license.\n\nusing System.Data.Common;\nusing System.Runtime.InteropServices;\nusing System.Xml;\nusing System.Xml.Schema;\nusing System.Xml.Serialization;\nusing System.Diagnostics.CodeAnalysis;\n\nnamespace System.Data.SqlTypes\n{\n /// \n /// Represents an 8-bit unsigned integer to be stored in\n /// or retrieved from a database.\n /// \n [Serializable]\n [StructLayout(LayoutKind.Sequential)]\n [XmlSchemaProvider(\"GetXsdType\")]\n [System.Runtime.CompilerServices.TypeForwardedFrom(\"System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\")]\n public struct SqlByte : INullable, IComparable, IXmlSerializable, IEquatable\n {\n private bool m_fNotNull; // false if null. Do not rename (binary serialization)\n private byte m_value; // Do not rename (binary serialization)\n\n private const int s_iBitNotByteMax = ~0xff;\n\n // constructor\n // construct a Null\n private SqlByte(bool fNull)\n {\n m_fNotNull = false;\n m_value = 0;\n }\n\n public SqlByte(byte value)\n {\n m_value = value;\n m_fNotNull = true;\n }\n\n // INullable\n public bool IsNull\n {\n get { return !m_fNotNull; }\n }\n\n // property: Value\n public byte Value\n {\n get\n {\n if (m_fNotNull)\n return m_value;\n else\n throw new SqlNullValueException();\n }\n }\n\n // Implicit conversion from byte to SqlByte\n public static implicit operator SqlByte(byte x)\n {\n return new SqlByte(x);\n }\n\n // Explicit conversion from SqlByte to byte. Throw exception if x is Null.\n public static explicit operator byte(SqlByte x)\n {\n return x.Value;\n }\n\n public override string ToString()\n {\n return IsNull ? SQLResource.NullString : m_value.ToString((IFormatProvider)null!);\n }\n\n public static SqlByte Parse(string s)\n {\n if (s == SQLResource.NullString)\n return SqlByte.Null;\n else\n return new SqlByte(byte.Parse(s, null));\n }\n\n // Unary operators\n public static SqlByte operator ~(SqlByte x)\n {\n return x.IsNull ? Null : new SqlByte(unchecked((byte)~x.m_value));\n }\n\n\n // Binary operators\n\n // Arithmetic operators\n public static SqlByte operator +(SqlByte x, SqlByte y)\n {\n if (x.IsNull || y.IsNull)\n return Null;\n\n int iResult = x.m_value + y.m_value;\n if ((iResult & s_iBitNotByteMax) != 0)\n throw new OverflowException(SQLResource.ArithOverflowMessage);\n else\n return new SqlByte((byte)iResult);\n }\n\n public static SqlByte operator -(SqlByte x, SqlByte y)\n {\n if (x.IsNull || y.IsNull)\n return Null;\n\n int iResult = x.m_value - y.m_value;\n if ((iResult & s_iBitNotByteMax) != 0)\n throw new OverflowException(SQLResource.ArithOverflowMessage);\n else\n return new SqlByte((byte)iResult);\n }\n\n public static SqlByte operator *(SqlByte x, SqlByte y)\n {\n if (x.IsNull || y.IsNull)\n return Null;\n\n int iResult = x.m_value * y.m_value;\n if ((iResult & s_iBitNotByteMax) != 0)\n throw new OverflowException(SQLResource.ArithOverflowMessage);\n else\n return new SqlByte((byte)iResult);\n }\n\n public static SqlByte operator /(SqlByte x, SqlByte y)\n {\n if (x.IsNull || y.IsNull)\n return Null;\n\n if (y.m_value != 0)\n {\n return new SqlByte((byte)(x.m_value / y.m_value));\n }\n else\n throw new DivideByZeroException(SQLResource.DivideByZeroMessage);\n }\n\n public static SqlByte operator %(SqlByte x, SqlByte y)\n {\n if (x.IsNull || y.IsNull)\n return Null;\n\n if (y.m_value != 0)\n {\n return new SqlByte((byte)(x.m_value % y.m_value));\n }\n else\n throw new DivideByZeroException(SQLResource.DivideByZeroMessage);\n }\n\n // Bitwise operators\n public static SqlByte operator &(SqlByte x, SqlByte y)\n {\n return (x.IsNull || y.IsNull) ? Null : new SqlByte((byte)(x.m_value & y.m_value));\n }\n\n public static SqlByte operator |(SqlByte x, SqlByte y)\n {\n return (x.IsNull || y.IsNull) ? Null : new SqlByte((byte)(x.m_value | y.m_value));\n }\n\n public static SqlByte operator ^(SqlByte x, SqlByte y)\n {\n return (x.IsNull || y.IsNull) ? Null : new SqlByte((byte)(x.m_value ^ y.m_value));\n }\n\n\n\n // Implicit conversions\n\n // Implicit conversion from SqlBoolean to SqlByte\n public static explicit operator SqlByte(SqlBoolean x)\n {\n return x.IsNull ? Null : new SqlByte(x.ByteValue);\n }\n\n\n // Explicit conversions\n\n // Explicit conversion from SqlMoney to SqlByte\n public static explicit operator SqlByte(SqlMoney x)\n {\n return x.IsNull ? Null : new SqlByte(checked((byte)x.ToInt32()));\n }\n\n // Explicit conversion from SqlInt16 to SqlByte\n public static explicit operator SqlByte(SqlInt16 x)\n {\n if (x.IsNull)\n return Null;\n\n if (x.Value > byte.MaxValue || x.Value < byte.MinValue)\n throw new OverflowException(SQLResource.ArithOverflowMessage);\n\n return x.IsNull ? Null : new SqlByte((byte)(x.Value));\n }\n\n // Explicit conversion from SqlInt32 to SqlByte\n public static explicit operator SqlByte(SqlInt32 x)\n {\n if (x.IsNull)\n return Null;\n\n if (x.Value > byte.MaxValue || x.Value < byte.MinValue)\n throw new OverflowException(SQLResource.ArithOverflowMessage);\n\n return x.IsNull ? Null : new SqlByte((byte)(x.Value));\n }\n\n // Explicit conversion from SqlInt64 to SqlByte\n public static explicit operator SqlByte(SqlInt64 x)\n {\n if (x.IsNull)\n return Null;\n\n if (x.Value > byte.MaxValue || x.Value < byte.MinValue)\n throw new OverflowException(SQLResource.ArithOverflowMessage);\n\n return x.IsNull ? Null : new SqlByte((byte)(x.Value));\n }\n\n // Explicit conversion from SqlSingle to SqlByte\n public static explicit operator SqlByte(SqlSingle x)\n {\n if (x.IsNull)\n return Null;\n\n if (x.Value > byte.MaxValue || x.Value < byte.MinValue)\n throw new OverflowException(SQLResource.ArithOverflowMessage);\n\n return x.IsNull ? Null : new SqlByte((byte)(x.Value));\n }\n\n // Explicit conversion from SqlDouble to SqlByte\n public static explicit operator SqlByte(SqlDouble x)\n {\n if (x.IsNull)\n return Null;\n\n if (x.Value > byte.MaxValue || x.Value < byte.MinValue)\n throw new OverflowException(SQLResource.ArithOverflowMessage);\n\n return x.IsNull ? Null : new SqlByte((byte)(x.Value));\n }\n\n // Explicit conversion from SqlDecimal to SqlByte\n public static explicit operator SqlByte(SqlDecimal x)\n {\n return (SqlByte)(SqlInt32)x;\n }\n\n // Implicit conversion from SqlString to SqlByte\n // Throws FormatException or OverflowException if necessary.\n public static explicit operator SqlByte(SqlString x)\n {\n return x.IsNull ? Null : new SqlByte(byte.Parse(x.Value, null));\n }\n\n // Overloading comparison operators\n public static SqlBoolean operator ==(SqlByte x, SqlByte y)\n {\n return (x.IsNull || y.IsNull) ? SqlBoolean.Null : new SqlBoolean(x.m_value == y.m_value);\n }\n\n public static SqlBoolean operator !=(SqlByte x, SqlByte y)\n {\n return !(x == y);\n }\n\n public static SqlBoolean operator <(SqlByte x, SqlByte y)\n {\n return (x.IsNull || y.IsNull) ? SqlBoolean.Null : new SqlBoolean(x.m_value < y.m_value);\n }\n\n public static SqlBoolean operator >(SqlByte x, SqlByte y)\n {\n return (x.IsNull || y.IsNull) ? SqlBoolean.Null : new SqlBoolean(x.m_value > y.m_value);\n }\n\n public static SqlBoolean operator <=(SqlByte x, SqlByte y)\n {\n return (x.IsNull || y.IsNull) ? SqlBoolean.Null : new SqlBoolean(x.m_value <= y.m_value);\n }\n\n public static SqlBoolean operator >=(SqlByte x, SqlByte y)\n {\n return (x.IsNull || y.IsNull) ? SqlBoolean.Null : new SqlBoolean(x.m_value >= y.m_value);\n }\n\n //--------------------------------------------------\n // Alternative methods for overloaded operators\n //--------------------------------------------------\n\n // Alternative method for operator ~\n public static SqlByte OnesComplement(SqlByte x)\n {\n return ~x;\n }\n\n // Alternative method for operator +\n public static SqlByte Add(SqlByte x, SqlByte y)\n {\n return x + y;\n }\n\n // Alternative method for operator -\n public static SqlByte Subtract(SqlByte x, SqlByte y)\n {\n return x - y;\n }\n\n // Alternative method for operator *\n public static SqlByte Multiply(SqlByte x, SqlByte y)\n {\n return x * y;\n }\n\n // Alternative method for operator /\n public static SqlByte Divide(SqlByte x, SqlByte y)\n {\n return x / y;\n }\n\n // Alternative method for operator %\n public static SqlByte Mod(SqlByte x, SqlByte y)\n {\n return x % y;\n }\n\n public static SqlByte Modulus(SqlByte x, SqlByte y)\n {\n return x % y;\n }\n\n // Alternative method for operator &\n public static SqlByte BitwiseAnd(SqlByte x, SqlByte y)\n {\n return x & y;\n }\n\n // Alternative method for operator |\n public static SqlByte BitwiseOr(SqlByte x, SqlByte y)\n {\n return x | y;\n }\n\n // Alternative method for operator ^\n public static SqlByte Xor(SqlByte x, SqlByte y)\n {\n return x ^ y;\n }\n\n // Alternative method for operator ==\n public static SqlBoolean Equals(SqlByte x, SqlByte y)\n {\n return (x == y);\n }\n\n // Alternative method for operator !=\n public static SqlBoolean NotEquals(SqlByte x, SqlByte y)\n {\n return (x != y);\n }\n\n // Alternative method for operator <\n public static SqlBoolean LessThan(SqlByte x, SqlByte y)\n {\n return (x < y);\n }\n\n // Alternative method for operator >\n public static SqlBoolean GreaterThan(SqlByte x, SqlByte y)\n {\n return (x > y);\n }\n\n // Alternative method for operator <=\n public static SqlBoolean LessThanOrEqual(SqlByte x, SqlByte y)\n {\n return (x <= y);\n }\n\n // Alternative method for operator >=\n public static SqlBoolean GreaterThanOrEqual(SqlByte x, SqlByte y)\n {\n return (x >= y);\n }\n\n // Alternative method for conversions.\n\n public SqlBoolean ToSqlBoolean()\n {\n return (SqlBoolean)this;\n }\n\n public SqlDouble ToSqlDouble()\n {\n return this;\n }\n\n public SqlInt16 ToSqlInt16()\n {\n return this;\n }\n\n public SqlInt32 ToSqlInt32()\n {\n return this;\n }\n\n public SqlInt64 ToSqlInt64()\n {\n return this;\n }\n\n public SqlMoney ToSqlMoney()\n {\n return this;\n }\n\n public SqlDecimal ToSqlDecimal()\n {\n return this;\n }\n\n public SqlSingle ToSqlSingle()\n {\n return this;\n }\n\n public SqlString ToSqlString()\n {\n return (SqlString)this;\n }\n\n\n\n // IComparable\n // Compares this object to another object, returning an integer that\n // indicates the relationship.\n // Returns a value less than zero if this < object, zero if this = object,\n // or a value greater than zero if this > object.\n // null is considered to be less than any instance.\n // If object is not of same type, this method throws an ArgumentException.\n public int CompareTo(object? value)\n {\n if (value is SqlByte)\n {\n SqlByte i = (SqlByte)value;\n\n return CompareTo(i);\n }\n throw ADP.WrongType(value!.GetType(), typeof(SqlByte));\n }\n\n public int CompareTo(SqlByte value)\n {\n // If both Null, consider them equal.\n // Otherwise, Null is less than anything.\n if (IsNull)\n return value.IsNull ? 0 : -1;\n else if (value.IsNull)\n return 1;\n\n if (this < value) return -1;\n if (this > value) return 1;\n return 0;\n }\n\n // Compares this instance with a specified object\n public override bool Equals([NotNullWhen(true)] object? value) =>\n value is SqlByte other && Equals(other);\n\n /// Indicates whether the current instance is equal to another instance of the same type. \n /// An instance to compare with this instance.\n /// true if the current instance is equal to the other instance; otherwise, false. \n public bool Equals(SqlByte other) =>\n other.IsNull || IsNull ? other.IsNull && IsNull :\n (this == other).Value;\n\n // For hashing purpose\n public override int GetHashCode() => IsNull ? 0 : Value.GetHashCode();\n\n XmlSchema? IXmlSerializable.GetSchema() { return null; }\n\n void IXmlSerializable.ReadXml(XmlReader reader)\n {\n string? isNull = reader.GetAttribute(\"nil\", XmlSchema.InstanceNamespace);\n if (isNull != null && XmlConvert.ToBoolean(isNull))\n {\n // Read the next value.\n reader.ReadElementString();\n m_fNotNull = false;\n }\n else\n {\n m_value = XmlConvert.ToByte(reader.ReadElementString());\n m_fNotNull = true;\n }\n }\n\n void IXmlSerializable.WriteXml(XmlWriter writer)\n {\n if (IsNull)\n {\n writer.WriteAttributeString(\"xsi\", \"nil\", XmlSchema.InstanceNamespace, \"true\");\n }\n else\n {\n writer.WriteString(XmlConvert.ToString(m_value));\n }\n }\n\n public static XmlQualifiedName GetXsdType(XmlSchemaSet schemaSet)\n {\n return new XmlQualifiedName(\"unsignedByte\", XmlSchema.Namespace);\n }\n\n public static readonly SqlByte Null = new SqlByte(true);\n public static readonly SqlByte Zero = new SqlByte(0);\n public static readonly SqlByte MinValue = new SqlByte(byte.MinValue);\n public static readonly SqlByte MaxValue = new SqlByte(byte.MaxValue);\n } // SqlByte\n} // namespace System\n"},"after_content":{"kind":"string","value":"// Licensed to the .NET Foundation under one or more agreements.\n// The .NET Foundation licenses this file to you under the MIT license.\n\nusing System.Data.Common;\nusing System.Runtime.InteropServices;\nusing System.Xml;\nusing System.Xml.Schema;\nusing System.Xml.Serialization;\nusing System.Diagnostics.CodeAnalysis;\n\nnamespace System.Data.SqlTypes\n{\n /// \n /// Represents an 8-bit unsigned integer to be stored in\n /// or retrieved from a database.\n /// \n [Serializable]\n [StructLayout(LayoutKind.Sequential)]\n [XmlSchemaProvider(\"GetXsdType\")]\n [System.Runtime.CompilerServices.TypeForwardedFrom(\"System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\")]\n public struct SqlByte : INullable, IComparable, IXmlSerializable, IEquatable\n {\n private bool m_fNotNull; // false if null. Do not rename (binary serialization)\n private byte m_value; // Do not rename (binary serialization)\n\n private const int s_iBitNotByteMax = ~0xff;\n\n // constructor\n // construct a Null\n private SqlByte(bool fNull)\n {\n m_fNotNull = false;\n m_value = 0;\n }\n\n public SqlByte(byte value)\n {\n m_value = value;\n m_fNotNull = true;\n }\n\n // INullable\n public bool IsNull\n {\n get { return !m_fNotNull; }\n }\n\n // property: Value\n public byte Value\n {\n get\n {\n if (m_fNotNull)\n return m_value;\n else\n throw new SqlNullValueException();\n }\n }\n\n // Implicit conversion from byte to SqlByte\n public static implicit operator SqlByte(byte x)\n {\n return new SqlByte(x);\n }\n\n // Explicit conversion from SqlByte to byte. Throw exception if x is Null.\n public static explicit operator byte(SqlByte x)\n {\n return x.Value;\n }\n\n public override string ToString()\n {\n return IsNull ? SQLResource.NullString : m_value.ToString((IFormatProvider)null!);\n }\n\n public static SqlByte Parse(string s)\n {\n if (s == SQLResource.NullString)\n return SqlByte.Null;\n else\n return new SqlByte(byte.Parse(s, null));\n }\n\n // Unary operators\n public static SqlByte operator ~(SqlByte x)\n {\n return x.IsNull ? Null : new SqlByte(unchecked((byte)~x.m_value));\n }\n\n\n // Binary operators\n\n // Arithmetic operators\n public static SqlByte operator +(SqlByte x, SqlByte y)\n {\n if (x.IsNull || y.IsNull)\n return Null;\n\n int iResult = x.m_value + y.m_value;\n if ((iResult & s_iBitNotByteMax) != 0)\n throw new OverflowException(SQLResource.ArithOverflowMessage);\n else\n return new SqlByte((byte)iResult);\n }\n\n public static SqlByte operator -(SqlByte x, SqlByte y)\n {\n if (x.IsNull || y.IsNull)\n return Null;\n\n int iResult = x.m_value - y.m_value;\n if ((iResult & s_iBitNotByteMax) != 0)\n throw new OverflowException(SQLResource.ArithOverflowMessage);\n else\n return new SqlByte((byte)iResult);\n }\n\n public static SqlByte operator *(SqlByte x, SqlByte y)\n {\n if (x.IsNull || y.IsNull)\n return Null;\n\n int iResult = x.m_value * y.m_value;\n if ((iResult & s_iBitNotByteMax) != 0)\n throw new OverflowException(SQLResource.ArithOverflowMessage);\n else\n return new SqlByte((byte)iResult);\n }\n\n public static SqlByte operator /(SqlByte x, SqlByte y)\n {\n if (x.IsNull || y.IsNull)\n return Null;\n\n if (y.m_value != 0)\n {\n return new SqlByte((byte)(x.m_value / y.m_value));\n }\n else\n throw new DivideByZeroException(SQLResource.DivideByZeroMessage);\n }\n\n public static SqlByte operator %(SqlByte x, SqlByte y)\n {\n if (x.IsNull || y.IsNull)\n return Null;\n\n if (y.m_value != 0)\n {\n return new SqlByte((byte)(x.m_value % y.m_value));\n }\n else\n throw new DivideByZeroException(SQLResource.DivideByZeroMessage);\n }\n\n // Bitwise operators\n public static SqlByte operator &(SqlByte x, SqlByte y)\n {\n return (x.IsNull || y.IsNull) ? Null : new SqlByte((byte)(x.m_value & y.m_value));\n }\n\n public static SqlByte operator |(SqlByte x, SqlByte y)\n {\n return (x.IsNull || y.IsNull) ? Null : new SqlByte((byte)(x.m_value | y.m_value));\n }\n\n public static SqlByte operator ^(SqlByte x, SqlByte y)\n {\n return (x.IsNull || y.IsNull) ? Null : new SqlByte((byte)(x.m_value ^ y.m_value));\n }\n\n\n\n // Implicit conversions\n\n // Implicit conversion from SqlBoolean to SqlByte\n public static explicit operator SqlByte(SqlBoolean x)\n {\n return x.IsNull ? Null : new SqlByte(x.ByteValue);\n }\n\n\n // Explicit conversions\n\n // Explicit conversion from SqlMoney to SqlByte\n public static explicit operator SqlByte(SqlMoney x)\n {\n return x.IsNull ? Null : new SqlByte(checked((byte)x.ToInt32()));\n }\n\n // Explicit conversion from SqlInt16 to SqlByte\n public static explicit operator SqlByte(SqlInt16 x)\n {\n if (x.IsNull)\n return Null;\n\n if (x.Value > byte.MaxValue || x.Value < byte.MinValue)\n throw new OverflowException(SQLResource.ArithOverflowMessage);\n\n return x.IsNull ? Null : new SqlByte((byte)(x.Value));\n }\n\n // Explicit conversion from SqlInt32 to SqlByte\n public static explicit operator SqlByte(SqlInt32 x)\n {\n if (x.IsNull)\n return Null;\n\n if (x.Value > byte.MaxValue || x.Value < byte.MinValue)\n throw new OverflowException(SQLResource.ArithOverflowMessage);\n\n return x.IsNull ? Null : new SqlByte((byte)(x.Value));\n }\n\n // Explicit conversion from SqlInt64 to SqlByte\n public static explicit operator SqlByte(SqlInt64 x)\n {\n if (x.IsNull)\n return Null;\n\n if (x.Value > byte.MaxValue || x.Value < byte.MinValue)\n throw new OverflowException(SQLResource.ArithOverflowMessage);\n\n return x.IsNull ? Null : new SqlByte((byte)(x.Value));\n }\n\n // Explicit conversion from SqlSingle to SqlByte\n public static explicit operator SqlByte(SqlSingle x)\n {\n if (x.IsNull)\n return Null;\n\n if (x.Value > byte.MaxValue || x.Value < byte.MinValue)\n throw new OverflowException(SQLResource.ArithOverflowMessage);\n\n return x.IsNull ? Null : new SqlByte((byte)(x.Value));\n }\n\n // Explicit conversion from SqlDouble to SqlByte\n public static explicit operator SqlByte(SqlDouble x)\n {\n if (x.IsNull)\n return Null;\n\n if (x.Value > byte.MaxValue || x.Value < byte.MinValue)\n throw new OverflowException(SQLResource.ArithOverflowMessage);\n\n return x.IsNull ? Null : new SqlByte((byte)(x.Value));\n }\n\n // Explicit conversion from SqlDecimal to SqlByte\n public static explicit operator SqlByte(SqlDecimal x)\n {\n return (SqlByte)(SqlInt32)x;\n }\n\n // Implicit conversion from SqlString to SqlByte\n // Throws FormatException or OverflowException if necessary.\n public static explicit operator SqlByte(SqlString x)\n {\n return x.IsNull ? Null : new SqlByte(byte.Parse(x.Value, null));\n }\n\n // Overloading comparison operators\n public static SqlBoolean operator ==(SqlByte x, SqlByte y)\n {\n return (x.IsNull || y.IsNull) ? SqlBoolean.Null : new SqlBoolean(x.m_value == y.m_value);\n }\n\n public static SqlBoolean operator !=(SqlByte x, SqlByte y)\n {\n return !(x == y);\n }\n\n public static SqlBoolean operator <(SqlByte x, SqlByte y)\n {\n return (x.IsNull || y.IsNull) ? SqlBoolean.Null : new SqlBoolean(x.m_value < y.m_value);\n }\n\n public static SqlBoolean operator >(SqlByte x, SqlByte y)\n {\n return (x.IsNull || y.IsNull) ? SqlBoolean.Null : new SqlBoolean(x.m_value > y.m_value);\n }\n\n public static SqlBoolean operator <=(SqlByte x, SqlByte y)\n {\n return (x.IsNull || y.IsNull) ? SqlBoolean.Null : new SqlBoolean(x.m_value <= y.m_value);\n }\n\n public static SqlBoolean operator >=(SqlByte x, SqlByte y)\n {\n return (x.IsNull || y.IsNull) ? SqlBoolean.Null : new SqlBoolean(x.m_value >= y.m_value);\n }\n\n //--------------------------------------------------\n // Alternative methods for overloaded operators\n //--------------------------------------------------\n\n // Alternative method for operator ~\n public static SqlByte OnesComplement(SqlByte x)\n {\n return ~x;\n }\n\n // Alternative method for operator +\n public static SqlByte Add(SqlByte x, SqlByte y)\n {\n return x + y;\n }\n\n // Alternative method for operator -\n public static SqlByte Subtract(SqlByte x, SqlByte y)\n {\n return x - y;\n }\n\n // Alternative method for operator *\n public static SqlByte Multiply(SqlByte x, SqlByte y)\n {\n return x * y;\n }\n\n // Alternative method for operator /\n public static SqlByte Divide(SqlByte x, SqlByte y)\n {\n return x / y;\n }\n\n // Alternative method for operator %\n public static SqlByte Mod(SqlByte x, SqlByte y)\n {\n return x % y;\n }\n\n public static SqlByte Modulus(SqlByte x, SqlByte y)\n {\n return x % y;\n }\n\n // Alternative method for operator &\n public static SqlByte BitwiseAnd(SqlByte x, SqlByte y)\n {\n return x & y;\n }\n\n // Alternative method for operator |\n public static SqlByte BitwiseOr(SqlByte x, SqlByte y)\n {\n return x | y;\n }\n\n // Alternative method for operator ^\n public static SqlByte Xor(SqlByte x, SqlByte y)\n {\n return x ^ y;\n }\n\n // Alternative method for operator ==\n public static SqlBoolean Equals(SqlByte x, SqlByte y)\n {\n return (x == y);\n }\n\n // Alternative method for operator !=\n public static SqlBoolean NotEquals(SqlByte x, SqlByte y)\n {\n return (x != y);\n }\n\n // Alternative method for operator <\n public static SqlBoolean LessThan(SqlByte x, SqlByte y)\n {\n return (x < y);\n }\n\n // Alternative method for operator >\n public static SqlBoolean GreaterThan(SqlByte x, SqlByte y)\n {\n return (x > y);\n }\n\n // Alternative method for operator <=\n public static SqlBoolean LessThanOrEqual(SqlByte x, SqlByte y)\n {\n return (x <= y);\n }\n\n // Alternative method for operator >=\n public static SqlBoolean GreaterThanOrEqual(SqlByte x, SqlByte y)\n {\n return (x >= y);\n }\n\n // Alternative method for conversions.\n\n public SqlBoolean ToSqlBoolean()\n {\n return (SqlBoolean)this;\n }\n\n public SqlDouble ToSqlDouble()\n {\n return this;\n }\n\n public SqlInt16 ToSqlInt16()\n {\n return this;\n }\n\n public SqlInt32 ToSqlInt32()\n {\n return this;\n }\n\n public SqlInt64 ToSqlInt64()\n {\n return this;\n }\n\n public SqlMoney ToSqlMoney()\n {\n return this;\n }\n\n public SqlDecimal ToSqlDecimal()\n {\n return this;\n }\n\n public SqlSingle ToSqlSingle()\n {\n return this;\n }\n\n public SqlString ToSqlString()\n {\n return (SqlString)this;\n }\n\n\n\n // IComparable\n // Compares this object to another object, returning an integer that\n // indicates the relationship.\n // Returns a value less than zero if this < object, zero if this = object,\n // or a value greater than zero if this > object.\n // null is considered to be less than any instance.\n // If object is not of same type, this method throws an ArgumentException.\n public int CompareTo(object? value)\n {\n if (value is SqlByte)\n {\n SqlByte i = (SqlByte)value;\n\n return CompareTo(i);\n }\n throw ADP.WrongType(value!.GetType(), typeof(SqlByte));\n }\n\n public int CompareTo(SqlByte value)\n {\n // If both Null, consider them equal.\n // Otherwise, Null is less than anything.\n if (IsNull)\n return value.IsNull ? 0 : -1;\n else if (value.IsNull)\n return 1;\n\n if (this < value) return -1;\n if (this > value) return 1;\n return 0;\n }\n\n // Compares this instance with a specified object\n public override bool Equals([NotNullWhen(true)] object? value) =>\n value is SqlByte other && Equals(other);\n\n /// Indicates whether the current instance is equal to another instance of the same type. \n /// An instance to compare with this instance.\n /// true if the current instance is equal to the other instance; otherwise, false. \n public bool Equals(SqlByte other) =>\n other.IsNull || IsNull ? other.IsNull && IsNull :\n (this == other).Value;\n\n // For hashing purpose\n public override int GetHashCode() => IsNull ? 0 : Value.GetHashCode();\n\n XmlSchema? IXmlSerializable.GetSchema() { return null; }\n\n void IXmlSerializable.ReadXml(XmlReader reader)\n {\n string? isNull = reader.GetAttribute(\"nil\", XmlSchema.InstanceNamespace);\n if (isNull != null && XmlConvert.ToBoolean(isNull))\n {\n // Read the next value.\n reader.ReadElementString();\n m_fNotNull = false;\n }\n else\n {\n m_value = XmlConvert.ToByte(reader.ReadElementString());\n m_fNotNull = true;\n }\n }\n\n void IXmlSerializable.WriteXml(XmlWriter writer)\n {\n if (IsNull)\n {\n writer.WriteAttributeString(\"xsi\", \"nil\", XmlSchema.InstanceNamespace, \"true\");\n }\n else\n {\n writer.WriteString(XmlConvert.ToString(m_value));\n }\n }\n\n public static XmlQualifiedName GetXsdType(XmlSchemaSet schemaSet)\n {\n return new XmlQualifiedName(\"unsignedByte\", XmlSchema.Namespace);\n }\n\n public static readonly SqlByte Null = new SqlByte(true);\n public static readonly SqlByte Zero = new SqlByte(0);\n public static readonly SqlByte MinValue = new SqlByte(byte.MinValue);\n public static readonly SqlByte MaxValue = new SqlByte(byte.MaxValue);\n } // SqlByte\n} // namespace System\n"},"label":{"kind":"number","value":-1,"string":"-1"}}},{"rowIdx":2071835,"cells":{"repo_name":{"kind":"string","value":"dotnet/runtime"},"pr_number":{"kind":"number","value":66111,"string":"66,111"},"pr_title":{"kind":"string","value":"Update RegexGenerator to require LangVersion > 10"},"pr_description":{"kind":"string","value":"We plan to take a dependency on a C# 11 language feature. For now, reserve that right by requiring a version > 10. We can downgrade it later if possible and desired."},"author":{"kind":"string","value":"stephentoub"},"date_created":{"kind":"timestamp","value":"2022-03-02T21:41:16Z","string":"2022-03-02T21:41:16Z"},"date_merged":{"kind":"timestamp","value":"2022-03-03T04:10:47Z","string":"2022-03-03T04:10:47Z"},"previous_commit":{"kind":"string","value":"83adfae6a6273d8fb4c69554aa3b1cc7cbf01c71"},"pr_commit":{"kind":"string","value":"c4541b3f4f66209aed77c7d7d0fd9d8511e3ac5e"},"query":{"kind":"string","value":"Update RegexGenerator to require LangVersion > 10. We plan to take a dependency on a C# 11 language feature. For now, reserve that right by requiring a version > 10. We can downgrade it later if possible and desired."},"filepath":{"kind":"string","value":"./src/libraries/System.Runtime.InteropServices/src/System/Runtime/InteropServices/ComTypes/IEnumFormatETC.cs"},"before_content":{"kind":"string","value":"// Licensed to the .NET Foundation under one or more agreements.\n// The .NET Foundation licenses this file to you under the MIT license.\n\nusing System.ComponentModel;\n\nnamespace System.Runtime.InteropServices.ComTypes\n{\n /// \n /// The IEnumFORMATETC interface is used to enumerate an array of FORMATETC\n /// structures. IEnumFORMATETC has the same methods as all enumerator interfaces:\n /// Next, Skip, Reset, and Clone.\n /// \n [ComImport]\n [Guid(\"00000103-0000-0000-C000-000000000046\")]\n [EditorBrowsable(EditorBrowsableState.Never)]\n [InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]\n public interface IEnumFORMATETC\n {\n /// \n /// Retrieves the next celt items in the enumeration sequence. If there are\n /// fewer than the requested number of elements left in the sequence, it\n /// retrieves the remaining elements. The number of elements actually\n /// retrieved is returned through pceltFetched (unless the caller passed\n /// in NULL for that parameter).\n /// \n [PreserveSig]\n int Next(int celt, [Out, MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 0)] FORMATETC[] rgelt, [Out, MarshalAs(UnmanagedType.LPArray)] int[] pceltFetched);\n\n /// \n /// Skips over the next specified number of elements in the enumeration sequence.\n /// \n [PreserveSig]\n int Skip(int celt);\n\n /// \n /// Resets the enumeration sequence to the beginning.\n /// \n [PreserveSig]\n int Reset();\n\n /// \n /// Creates another enumerator that contains the same enumeration state as\n /// the current one. Using this function, a client can record a particular\n /// point in the enumeration sequence and then return to that point at a\n /// later time. The new enumerator supports the same interface as the original one.\n /// \n void Clone(out IEnumFORMATETC newEnum);\n }\n}\n"},"after_content":{"kind":"string","value":"// Licensed to the .NET Foundation under one or more agreements.\n// The .NET Foundation licenses this file to you under the MIT license.\n\nusing System.ComponentModel;\n\nnamespace System.Runtime.InteropServices.ComTypes\n{\n /// \n /// The IEnumFORMATETC interface is used to enumerate an array of FORMATETC\n /// structures. IEnumFORMATETC has the same methods as all enumerator interfaces:\n /// Next, Skip, Reset, and Clone.\n /// \n [ComImport]\n [Guid(\"00000103-0000-0000-C000-000000000046\")]\n [EditorBrowsable(EditorBrowsableState.Never)]\n [InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]\n public interface IEnumFORMATETC\n {\n /// \n /// Retrieves the next celt items in the enumeration sequence. If there are\n /// fewer than the requested number of elements left in the sequence, it\n /// retrieves the remaining elements. The number of elements actually\n /// retrieved is returned through pceltFetched (unless the caller passed\n /// in NULL for that parameter).\n /// \n [PreserveSig]\n int Next(int celt, [Out, MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 0)] FORMATETC[] rgelt, [Out, MarshalAs(UnmanagedType.LPArray)] int[] pceltFetched);\n\n /// \n /// Skips over the next specified number of elements in the enumeration sequence.\n /// \n [PreserveSig]\n int Skip(int celt);\n\n /// \n /// Resets the enumeration sequence to the beginning.\n /// \n [PreserveSig]\n int Reset();\n\n /// \n /// Creates another enumerator that contains the same enumeration state as\n /// the current one. Using this function, a client can record a particular\n /// point in the enumeration sequence and then return to that point at a\n /// later time. The new enumerator supports the same interface as the original one.\n /// \n void Clone(out IEnumFORMATETC newEnum);\n }\n}\n"},"label":{"kind":"number","value":-1,"string":"-1"}}},{"rowIdx":2071836,"cells":{"repo_name":{"kind":"string","value":"dotnet/runtime"},"pr_number":{"kind":"number","value":66111,"string":"66,111"},"pr_title":{"kind":"string","value":"Update RegexGenerator to require LangVersion > 10"},"pr_description":{"kind":"string","value":"We plan to take a dependency on a C# 11 language feature. For now, reserve that right by requiring a version > 10. We can downgrade it later if possible and desired."},"author":{"kind":"string","value":"stephentoub"},"date_created":{"kind":"timestamp","value":"2022-03-02T21:41:16Z","string":"2022-03-02T21:41:16Z"},"date_merged":{"kind":"timestamp","value":"2022-03-03T04:10:47Z","string":"2022-03-03T04:10:47Z"},"previous_commit":{"kind":"string","value":"83adfae6a6273d8fb4c69554aa3b1cc7cbf01c71"},"pr_commit":{"kind":"string","value":"c4541b3f4f66209aed77c7d7d0fd9d8511e3ac5e"},"query":{"kind":"string","value":"Update RegexGenerator to require LangVersion > 10. We plan to take a dependency on a C# 11 language feature. For now, reserve that right by requiring a version > 10. We can downgrade it later if possible and desired."},"filepath":{"kind":"string","value":"./src/libraries/Common/src/Interop/Unix/System.Native/Interop.GetTimestamp.cs"},"before_content":{"kind":"string","value":"// Licensed to the .NET Foundation under one or more agreements.\n// The .NET Foundation licenses this file to you under the MIT license.\n\nusing System.Runtime.InteropServices;\n\ninternal static partial class Interop\n{\n internal static partial class Sys\n {\n [GeneratedDllImport(Libraries.SystemNative, EntryPoint = \"SystemNative_GetTimestamp\")]\n [SuppressGCTransition]\n internal static partial ulong GetTimestamp();\n }\n}\n"},"after_content":{"kind":"string","value":"// Licensed to the .NET Foundation under one or more agreements.\n// The .NET Foundation licenses this file to you under the MIT license.\n\nusing System.Runtime.InteropServices;\n\ninternal static partial class Interop\n{\n internal static partial class Sys\n {\n [GeneratedDllImport(Libraries.SystemNative, EntryPoint = \"SystemNative_GetTimestamp\")]\n [SuppressGCTransition]\n internal static partial ulong GetTimestamp();\n }\n}\n"},"label":{"kind":"number","value":-1,"string":"-1"}}},{"rowIdx":2071837,"cells":{"repo_name":{"kind":"string","value":"dotnet/runtime"},"pr_number":{"kind":"number","value":66111,"string":"66,111"},"pr_title":{"kind":"string","value":"Update RegexGenerator to require LangVersion > 10"},"pr_description":{"kind":"string","value":"We plan to take a dependency on a C# 11 language feature. For now, reserve that right by requiring a version > 10. We can downgrade it later if possible and desired."},"author":{"kind":"string","value":"stephentoub"},"date_created":{"kind":"timestamp","value":"2022-03-02T21:41:16Z","string":"2022-03-02T21:41:16Z"},"date_merged":{"kind":"timestamp","value":"2022-03-03T04:10:47Z","string":"2022-03-03T04:10:47Z"},"previous_commit":{"kind":"string","value":"83adfae6a6273d8fb4c69554aa3b1cc7cbf01c71"},"pr_commit":{"kind":"string","value":"c4541b3f4f66209aed77c7d7d0fd9d8511e3ac5e"},"query":{"kind":"string","value":"Update RegexGenerator to require LangVersion > 10. We plan to take a dependency on a C# 11 language feature. For now, reserve that right by requiring a version > 10. We can downgrade it later if possible and desired."},"filepath":{"kind":"string","value":"./src/libraries/System.Runtime.Loader/tests/ContextualReflectionDependency/System.Runtime.Loader.Test.ContextualReflectionDependency.csproj"},"before_content":{"kind":"string","value":"\n \n $(NetCoreAppCurrent) \n \n \n \n \n "},"after_content":{"kind":"string","value":"\n \n $(NetCoreAppCurrent) \n \n \n \n \n "},"label":{"kind":"number","value":-1,"string":"-1"}}},{"rowIdx":2071838,"cells":{"repo_name":{"kind":"string","value":"dotnet/runtime"},"pr_number":{"kind":"number","value":66111,"string":"66,111"},"pr_title":{"kind":"string","value":"Update RegexGenerator to require LangVersion > 10"},"pr_description":{"kind":"string","value":"We plan to take a dependency on a C# 11 language feature. For now, reserve that right by requiring a version > 10. We can downgrade it later if possible and desired."},"author":{"kind":"string","value":"stephentoub"},"date_created":{"kind":"timestamp","value":"2022-03-02T21:41:16Z","string":"2022-03-02T21:41:16Z"},"date_merged":{"kind":"timestamp","value":"2022-03-03T04:10:47Z","string":"2022-03-03T04:10:47Z"},"previous_commit":{"kind":"string","value":"83adfae6a6273d8fb4c69554aa3b1cc7cbf01c71"},"pr_commit":{"kind":"string","value":"c4541b3f4f66209aed77c7d7d0fd9d8511e3ac5e"},"query":{"kind":"string","value":"Update RegexGenerator to require LangVersion > 10. We plan to take a dependency on a C# 11 language feature. For now, reserve that right by requiring a version > 10. We can downgrade it later if possible and desired."},"filepath":{"kind":"string","value":"./src/tests/JIT/IL_Conformance/Old/Conformance_Base/cgt_un_r8.ilproj"},"before_content":{"kind":"string","value":"\n \n Exe \n true \n 1 \n \n \n PdbOnly \n True \n \n \n \n \n \n"},"after_content":{"kind":"string","value":"\n \n Exe \n true \n 1 \n \n \n PdbOnly \n True \n \n \n \n \n \n"},"label":{"kind":"number","value":-1,"string":"-1"}}},{"rowIdx":2071839,"cells":{"repo_name":{"kind":"string","value":"dotnet/runtime"},"pr_number":{"kind":"number","value":66111,"string":"66,111"},"pr_title":{"kind":"string","value":"Update RegexGenerator to require LangVersion > 10"},"pr_description":{"kind":"string","value":"We plan to take a dependency on a C# 11 language feature. For now, reserve that right by requiring a version > 10. We can downgrade it later if possible and desired."},"author":{"kind":"string","value":"stephentoub"},"date_created":{"kind":"timestamp","value":"2022-03-02T21:41:16Z","string":"2022-03-02T21:41:16Z"},"date_merged":{"kind":"timestamp","value":"2022-03-03T04:10:47Z","string":"2022-03-03T04:10:47Z"},"previous_commit":{"kind":"string","value":"83adfae6a6273d8fb4c69554aa3b1cc7cbf01c71"},"pr_commit":{"kind":"string","value":"c4541b3f4f66209aed77c7d7d0fd9d8511e3ac5e"},"query":{"kind":"string","value":"Update RegexGenerator to require LangVersion > 10. We plan to take a dependency on a C# 11 language feature. For now, reserve that right by requiring a version > 10. We can downgrade it later if possible and desired."},"filepath":{"kind":"string","value":"./src/tests/JIT/CodeGenBringUpTests/ModConst_d.csproj"},"before_content":{"kind":"string","value":"\n \n Exe \n \n \n Full \n False \n \n \n \n \n \n"},"after_content":{"kind":"string","value":"\n \n Exe \n \n \n Full \n False \n \n \n \n \n \n"},"label":{"kind":"number","value":-1,"string":"-1"}}},{"rowIdx":2071840,"cells":{"repo_name":{"kind":"string","value":"dotnet/runtime"},"pr_number":{"kind":"number","value":66111,"string":"66,111"},"pr_title":{"kind":"string","value":"Update RegexGenerator to require LangVersion > 10"},"pr_description":{"kind":"string","value":"We plan to take a dependency on a C# 11 language feature. For now, reserve that right by requiring a version > 10. We can downgrade it later if possible and desired."},"author":{"kind":"string","value":"stephentoub"},"date_created":{"kind":"timestamp","value":"2022-03-02T21:41:16Z","string":"2022-03-02T21:41:16Z"},"date_merged":{"kind":"timestamp","value":"2022-03-03T04:10:47Z","string":"2022-03-03T04:10:47Z"},"previous_commit":{"kind":"string","value":"83adfae6a6273d8fb4c69554aa3b1cc7cbf01c71"},"pr_commit":{"kind":"string","value":"c4541b3f4f66209aed77c7d7d0fd9d8511e3ac5e"},"query":{"kind":"string","value":"Update RegexGenerator to require LangVersion > 10. We plan to take a dependency on a C# 11 language feature. For now, reserve that right by requiring a version > 10. We can downgrade it later if possible and desired."},"filepath":{"kind":"string","value":"./src/tests/JIT/IL_Conformance/Old/Conformance_Base/sub_ovf_i1.il"},"before_content":{"kind":"string","value":"// Licensed to the .NET Foundation under one or more agreements.\n// The .NET Foundation licenses this file to you under the MIT license.\n\n.assembly extern legacy library mscorlib {}\n\n\n.class public\t\tsub_ovf_i1 {\n\n\n\n.method public static int32 i1(int32,int32,int32) {\n.locals\t\t(class [mscorlib]System.OverflowException, int8)\n.maxstack\t2\ntry_start:\n\tldarg\t0\n\tldarg\t1\n\tsub\n\tconv.ovf.i1\n\tstloc.1\n\tleave.s\ttry_end\ntry_end:\n\tldloc.1\n\tldarg\t2\n\tceq\n\tbr\t\t\tEND\naHandler:\n\tisinst\t[mscorlib]System.OverflowException\n\tstloc\t0\n\tleave\t\t\tHEnd\nHEnd:\n\n\tldloc\t0\n\tbrfalse\t\tFAIL\n\tldarg\t2\n\tldc.i4\t\t0xEEEEEEEE\n\tceq\n\tbr\t\t\tEND\nFAIL:\n\tldc.i4\t\t0x00000000\nEND:\n\tret\n.try try_start to try_end catch [mscorlib]System.OverflowException handler aHandler to HEnd\n}\n\n\n.method public\t\tvoid sub_ovf_i1() {\n.maxstack\t0\n\tret\n}\n\n.method public static\tint32 main(class [mscorlib]System.String[]) {\n.entrypoint\n.maxstack\t\t5\n\tldc.i4\t\t0xFFFFFF80\n\tldc.i4\t\t0xFFFFFF80\n\tldc.i4\t\t0x00000000\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0xFFFFFF80\n\tldc.i4\t\t0xFFFFFFFF\n\tldc.i4\t\t0xFFFFFF81\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0xFFFFFF80\n\tldc.i4\t\t0x00000000\n\tldc.i4\t\t0xFFFFFF80\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0xFFFFFF80\n\tldc.i4\t\t0x00000001\n\tldc.i4\t\t0xEEEEEEEE\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0xFFFFFF80\n\tldc.i4\t\t0x0000007F\n\tldc.i4\t\t0xEEEEEEEE\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0xFFFFFF80\n\tldc.i4\t\t0x00000055\n\tldc.i4\t\t0xEEEEEEEE\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0xFFFFFF80\n\tldc.i4\t\t0xFFFFFFAA\n\tldc.i4\t\t0xFFFFFFD6\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0xFFFFFFFF\n\tldc.i4\t\t0xFFFFFF80\n\tldc.i4\t\t0x0000007F\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0xFFFFFFFF\n\tldc.i4\t\t0xFFFFFFFF\n\tldc.i4\t\t0x00000000\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0xFFFFFFFF\n\tldc.i4\t\t0x00000000\n\tldc.i4\t\t0xFFFFFFFF\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0xFFFFFFFF\n\tldc.i4\t\t0x00000001\n\tldc.i4\t\t0xFFFFFFFE\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0xFFFFFFFF\n\tldc.i4\t\t0x0000007F\n\tldc.i4\t\t0xFFFFFF80\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0xFFFFFFFF\n\tldc.i4\t\t0x00000055\n\tldc.i4\t\t0xFFFFFFAA\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0xFFFFFFFF\n\tldc.i4\t\t0xFFFFFFAA\n\tldc.i4\t\t0x00000055\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0x00000000\n\tldc.i4\t\t0xFFFFFF80\n\tldc.i4\t\t0xEEEEEEEE\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0x00000000\n\tldc.i4\t\t0xFFFFFFFF\n\tldc.i4\t\t0x00000001\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0x00000000\n\tldc.i4\t\t0x00000000\n\tldc.i4\t\t0x00000000\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0x00000000\n\tldc.i4\t\t0x00000001\n\tldc.i4\t\t0xFFFFFFFF\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0x00000000\n\tldc.i4\t\t0x0000007F\n\tldc.i4\t\t0xFFFFFF81\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0x00000000\n\tldc.i4\t\t0x00000055\n\tldc.i4\t\t0xFFFFFFAB\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0x00000000\n\tldc.i4\t\t0xFFFFFFAA\n\tldc.i4\t\t0x00000056\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\n\tldc.i4\t\t0x00000001\n\tldc.i4\t\t0xFFFFFF80\n\tldc.i4\t\t0xEEEEEEEE\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0x00000001\n\tldc.i4\t\t0xFFFFFFFF\n\tldc.i4\t\t0x00000002\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0x00000001\n\tldc.i4\t\t0x00000000\n\tldc.i4\t\t0x00000001\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0x00000001\n\tldc.i4\t\t0x00000001\n\tldc.i4\t\t0x00000000\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0x00000001\n\tldc.i4\t\t0x0000007F\n\tldc.i4\t\t0xFFFFFF82\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0x00000001\n\tldc.i4\t\t0x00000055\n\tldc.i4\t\t0xFFFFFFAC\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0x00000001\n\tldc.i4\t\t0xFFFFFFAA\n\tldc.i4\t\t0x00000057\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\n\tldc.i4\t\t0x0000007F\n\tldc.i4\t\t0xFFFFFF80\n\tldc.i4\t\t0xEEEEEEEE\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0x0000007F\n\tldc.i4\t\t0xFFFFFFFF\n\tldc.i4\t\t0xEEEEEEEE\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0x0000007F\n\tldc.i4\t\t0x00000000\n\tldc.i4\t\t0x0000007F\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0x0000007F\n\tldc.i4\t\t0x00000001\n\tldc.i4\t\t0x0000007E\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0x0000007F\n\tldc.i4\t\t0x0000007F\n\tldc.i4\t\t0x00000000\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0x0000007F\n\tldc.i4\t\t0x00000055\n\tldc.i4\t\t0x0000002A\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0x0000007F\n\tldc.i4\t\t0xFFFFFFAA\n\tldc.i4\t\t0xEEEEEEEE\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\n\tldc.i4\t\t0x00000055\n\tldc.i4\t\t0xFFFFFF80\n\tldc.i4\t\t0xEEEEEEEE\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0x00000055\n\tldc.i4\t\t0xFFFFFFFF\n\tldc.i4\t\t0x00000056\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0x00000055\n\tldc.i4\t\t0x00000000\n\tldc.i4\t\t0x00000055\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0x00000055\n\tldc.i4\t\t0x00000001\n\tldc.i4\t\t0x00000054\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0x00000055\n\tldc.i4\t\t0x0000007F\n\tldc.i4\t\t0xFFFFFFD6\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0x00000055\n\tldc.i4\t\t0x00000055\n\tldc.i4\t\t0x00000000\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0x00000055\n\tldc.i4\t\t0xFFFFFFAA\n\tldc.i4\t\t0xEEEEEEEE\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\n\tldc.i4\t\t0xFFFFFFAA\n\tldc.i4\t\t0xFFFFFF80\n\tldc.i4\t\t0x0000002A\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0xFFFFFFAA\n\tldc.i4\t\t0xFFFFFFFF\n\tldc.i4\t\t0xFFFFFFAB\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0xFFFFFFAA\n\tldc.i4\t\t0x00000000\n\tldc.i4\t\t0xFFFFFFAA\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0xFFFFFFAA\n\tldc.i4\t\t0x00000001\n\tldc.i4\t\t0xFFFFFFA9\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0xFFFFFFAA\n\tldc.i4\t\t0x0000007F\n\tldc.i4\t\t0xEEEEEEEE\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0xFFFFFFAA\n\tldc.i4\t\t0x00000055\n\tldc.i4\t\t0xEEEEEEEE\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0xFFFFFFAA\n\tldc.i4\t\t0xFFFFFFAA\n\tldc.i4\t\t0x00000000\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\n\n\nPASS:\n\tldc.i4 100\n\tbr\t\tEND\n\nFAIL:\n\tldc.i4\t0x00000000\n\nEND:\n\tret\n}\n}\n\n.assembly sub_ovf_i1{}\n"},"after_content":{"kind":"string","value":"// Licensed to the .NET Foundation under one or more agreements.\n// The .NET Foundation licenses this file to you under the MIT license.\n\n.assembly extern legacy library mscorlib {}\n\n\n.class public\t\tsub_ovf_i1 {\n\n\n\n.method public static int32 i1(int32,int32,int32) {\n.locals\t\t(class [mscorlib]System.OverflowException, int8)\n.maxstack\t2\ntry_start:\n\tldarg\t0\n\tldarg\t1\n\tsub\n\tconv.ovf.i1\n\tstloc.1\n\tleave.s\ttry_end\ntry_end:\n\tldloc.1\n\tldarg\t2\n\tceq\n\tbr\t\t\tEND\naHandler:\n\tisinst\t[mscorlib]System.OverflowException\n\tstloc\t0\n\tleave\t\t\tHEnd\nHEnd:\n\n\tldloc\t0\n\tbrfalse\t\tFAIL\n\tldarg\t2\n\tldc.i4\t\t0xEEEEEEEE\n\tceq\n\tbr\t\t\tEND\nFAIL:\n\tldc.i4\t\t0x00000000\nEND:\n\tret\n.try try_start to try_end catch [mscorlib]System.OverflowException handler aHandler to HEnd\n}\n\n\n.method public\t\tvoid sub_ovf_i1() {\n.maxstack\t0\n\tret\n}\n\n.method public static\tint32 main(class [mscorlib]System.String[]) {\n.entrypoint\n.maxstack\t\t5\n\tldc.i4\t\t0xFFFFFF80\n\tldc.i4\t\t0xFFFFFF80\n\tldc.i4\t\t0x00000000\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0xFFFFFF80\n\tldc.i4\t\t0xFFFFFFFF\n\tldc.i4\t\t0xFFFFFF81\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0xFFFFFF80\n\tldc.i4\t\t0x00000000\n\tldc.i4\t\t0xFFFFFF80\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0xFFFFFF80\n\tldc.i4\t\t0x00000001\n\tldc.i4\t\t0xEEEEEEEE\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0xFFFFFF80\n\tldc.i4\t\t0x0000007F\n\tldc.i4\t\t0xEEEEEEEE\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0xFFFFFF80\n\tldc.i4\t\t0x00000055\n\tldc.i4\t\t0xEEEEEEEE\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0xFFFFFF80\n\tldc.i4\t\t0xFFFFFFAA\n\tldc.i4\t\t0xFFFFFFD6\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0xFFFFFFFF\n\tldc.i4\t\t0xFFFFFF80\n\tldc.i4\t\t0x0000007F\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0xFFFFFFFF\n\tldc.i4\t\t0xFFFFFFFF\n\tldc.i4\t\t0x00000000\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0xFFFFFFFF\n\tldc.i4\t\t0x00000000\n\tldc.i4\t\t0xFFFFFFFF\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0xFFFFFFFF\n\tldc.i4\t\t0x00000001\n\tldc.i4\t\t0xFFFFFFFE\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0xFFFFFFFF\n\tldc.i4\t\t0x0000007F\n\tldc.i4\t\t0xFFFFFF80\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0xFFFFFFFF\n\tldc.i4\t\t0x00000055\n\tldc.i4\t\t0xFFFFFFAA\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0xFFFFFFFF\n\tldc.i4\t\t0xFFFFFFAA\n\tldc.i4\t\t0x00000055\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0x00000000\n\tldc.i4\t\t0xFFFFFF80\n\tldc.i4\t\t0xEEEEEEEE\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0x00000000\n\tldc.i4\t\t0xFFFFFFFF\n\tldc.i4\t\t0x00000001\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0x00000000\n\tldc.i4\t\t0x00000000\n\tldc.i4\t\t0x00000000\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0x00000000\n\tldc.i4\t\t0x00000001\n\tldc.i4\t\t0xFFFFFFFF\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0x00000000\n\tldc.i4\t\t0x0000007F\n\tldc.i4\t\t0xFFFFFF81\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0x00000000\n\tldc.i4\t\t0x00000055\n\tldc.i4\t\t0xFFFFFFAB\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0x00000000\n\tldc.i4\t\t0xFFFFFFAA\n\tldc.i4\t\t0x00000056\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\n\tldc.i4\t\t0x00000001\n\tldc.i4\t\t0xFFFFFF80\n\tldc.i4\t\t0xEEEEEEEE\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0x00000001\n\tldc.i4\t\t0xFFFFFFFF\n\tldc.i4\t\t0x00000002\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0x00000001\n\tldc.i4\t\t0x00000000\n\tldc.i4\t\t0x00000001\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0x00000001\n\tldc.i4\t\t0x00000001\n\tldc.i4\t\t0x00000000\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0x00000001\n\tldc.i4\t\t0x0000007F\n\tldc.i4\t\t0xFFFFFF82\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0x00000001\n\tldc.i4\t\t0x00000055\n\tldc.i4\t\t0xFFFFFFAC\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0x00000001\n\tldc.i4\t\t0xFFFFFFAA\n\tldc.i4\t\t0x00000057\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\n\tldc.i4\t\t0x0000007F\n\tldc.i4\t\t0xFFFFFF80\n\tldc.i4\t\t0xEEEEEEEE\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0x0000007F\n\tldc.i4\t\t0xFFFFFFFF\n\tldc.i4\t\t0xEEEEEEEE\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0x0000007F\n\tldc.i4\t\t0x00000000\n\tldc.i4\t\t0x0000007F\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0x0000007F\n\tldc.i4\t\t0x00000001\n\tldc.i4\t\t0x0000007E\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0x0000007F\n\tldc.i4\t\t0x0000007F\n\tldc.i4\t\t0x00000000\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0x0000007F\n\tldc.i4\t\t0x00000055\n\tldc.i4\t\t0x0000002A\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0x0000007F\n\tldc.i4\t\t0xFFFFFFAA\n\tldc.i4\t\t0xEEEEEEEE\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\n\tldc.i4\t\t0x00000055\n\tldc.i4\t\t0xFFFFFF80\n\tldc.i4\t\t0xEEEEEEEE\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0x00000055\n\tldc.i4\t\t0xFFFFFFFF\n\tldc.i4\t\t0x00000056\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0x00000055\n\tldc.i4\t\t0x00000000\n\tldc.i4\t\t0x00000055\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0x00000055\n\tldc.i4\t\t0x00000001\n\tldc.i4\t\t0x00000054\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0x00000055\n\tldc.i4\t\t0x0000007F\n\tldc.i4\t\t0xFFFFFFD6\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0x00000055\n\tldc.i4\t\t0x00000055\n\tldc.i4\t\t0x00000000\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0x00000055\n\tldc.i4\t\t0xFFFFFFAA\n\tldc.i4\t\t0xEEEEEEEE\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\n\tldc.i4\t\t0xFFFFFFAA\n\tldc.i4\t\t0xFFFFFF80\n\tldc.i4\t\t0x0000002A\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0xFFFFFFAA\n\tldc.i4\t\t0xFFFFFFFF\n\tldc.i4\t\t0xFFFFFFAB\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0xFFFFFFAA\n\tldc.i4\t\t0x00000000\n\tldc.i4\t\t0xFFFFFFAA\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0xFFFFFFAA\n\tldc.i4\t\t0x00000001\n\tldc.i4\t\t0xFFFFFFA9\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0xFFFFFFAA\n\tldc.i4\t\t0x0000007F\n\tldc.i4\t\t0xEEEEEEEE\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0xFFFFFFAA\n\tldc.i4\t\t0x00000055\n\tldc.i4\t\t0xEEEEEEEE\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\tldc.i4\t\t0xFFFFFFAA\n\tldc.i4\t\t0xFFFFFFAA\n\tldc.i4\t\t0x00000000\n\tcall\tint32 sub_ovf_i1::i1(int32,int32,int32)\n\tbrfalse\t\tFAIL\n\n\n\nPASS:\n\tldc.i4 100\n\tbr\t\tEND\n\nFAIL:\n\tldc.i4\t0x00000000\n\nEND:\n\tret\n}\n}\n\n.assembly sub_ovf_i1{}\n"},"label":{"kind":"number","value":-1,"string":"-1"}}},{"rowIdx":2071841,"cells":{"repo_name":{"kind":"string","value":"dotnet/runtime"},"pr_number":{"kind":"number","value":66111,"string":"66,111"},"pr_title":{"kind":"string","value":"Update RegexGenerator to require LangVersion > 10"},"pr_description":{"kind":"string","value":"We plan to take a dependency on a C# 11 language feature. For now, reserve that right by requiring a version > 10. We can downgrade it later if possible and desired."},"author":{"kind":"string","value":"stephentoub"},"date_created":{"kind":"timestamp","value":"2022-03-02T21:41:16Z","string":"2022-03-02T21:41:16Z"},"date_merged":{"kind":"timestamp","value":"2022-03-03T04:10:47Z","string":"2022-03-03T04:10:47Z"},"previous_commit":{"kind":"string","value":"83adfae6a6273d8fb4c69554aa3b1cc7cbf01c71"},"pr_commit":{"kind":"string","value":"c4541b3f4f66209aed77c7d7d0fd9d8511e3ac5e"},"query":{"kind":"string","value":"Update RegexGenerator to require LangVersion > 10. We plan to take a dependency on a C# 11 language feature. For now, reserve that right by requiring a version > 10. We can downgrade it later if possible and desired."},"filepath":{"kind":"string","value":"./src/libraries/Common/src/System/CodeDom/CodeObject.cs"},"before_content":{"kind":"string","value":"// Licensed to the .NET Foundation under one or more agreements.\n// The .NET Foundation licenses this file to you under the MIT license.\n\n#nullable enable\n\nusing System.Collections;\nusing System.Collections.Specialized;\n\n#if CODEDOM\nnamespace System.CodeDom\n#else\nnamespace System.Runtime.Serialization\n#endif\n{\n#if CODEDOM\n public class CodeObject\n#else\n internal class CodeObject\n#endif\n {\n private IDictionary? _userData;\n\n public CodeObject() { }\n\n public IDictionary UserData => _userData ?? (_userData = new ListDictionary());\n }\n}\n"},"after_content":{"kind":"string","value":"// Licensed to the .NET Foundation under one or more agreements.\n// The .NET Foundation licenses this file to you under the MIT license.\n\n#nullable enable\n\nusing System.Collections;\nusing System.Collections.Specialized;\n\n#if CODEDOM\nnamespace System.CodeDom\n#else\nnamespace System.Runtime.Serialization\n#endif\n{\n#if CODEDOM\n public class CodeObject\n#else\n internal class CodeObject\n#endif\n {\n private IDictionary? _userData;\n\n public CodeObject() { }\n\n public IDictionary UserData => _userData ?? (_userData = new ListDictionary());\n }\n}\n"},"label":{"kind":"number","value":-1,"string":"-1"}}},{"rowIdx":2071842,"cells":{"repo_name":{"kind":"string","value":"dotnet/runtime"},"pr_number":{"kind":"number","value":66111,"string":"66,111"},"pr_title":{"kind":"string","value":"Update RegexGenerator to require LangVersion > 10"},"pr_description":{"kind":"string","value":"We plan to take a dependency on a C# 11 language feature. For now, reserve that right by requiring a version > 10. We can downgrade it later if possible and desired."},"author":{"kind":"string","value":"stephentoub"},"date_created":{"kind":"timestamp","value":"2022-03-02T21:41:16Z","string":"2022-03-02T21:41:16Z"},"date_merged":{"kind":"timestamp","value":"2022-03-03T04:10:47Z","string":"2022-03-03T04:10:47Z"},"previous_commit":{"kind":"string","value":"83adfae6a6273d8fb4c69554aa3b1cc7cbf01c71"},"pr_commit":{"kind":"string","value":"c4541b3f4f66209aed77c7d7d0fd9d8511e3ac5e"},"query":{"kind":"string","value":"Update RegexGenerator to require LangVersion > 10. We plan to take a dependency on a C# 11 language feature. For now, reserve that right by requiring a version > 10. We can downgrade it later if possible and desired."},"filepath":{"kind":"string","value":"./src/tests/JIT/HardwareIntrinsics/General/Vector64/GreaterThanOrEqualAll.Byte.cs"},"before_content":{"kind":"string","value":"// Licensed to the .NET Foundation under one or more agreements.\n// The .NET Foundation licenses this file to you under the MIT license.\n\n/******************************************************************************\n * This file is auto-generated from a template file by the GenerateTests.csx *\n * script in tests\\src\\JIT\\HardwareIntrinsics\\X86\\Shared. In order to make *\n * changes, please update the corresponding template and run according to the *\n * directions listed in the file. *\n ******************************************************************************/\n\nusing System;\nusing System.Runtime.CompilerServices;\nusing System.Runtime.InteropServices;\nusing System.Runtime.Intrinsics;\n\nnamespace JIT.HardwareIntrinsics.General\n{\n public static partial class Program\n {\n private static void GreaterThanOrEqualAllByte()\n {\n var test = new VectorBooleanBinaryOpTest__GreaterThanOrEqualAllByte();\n\n // Validates basic functionality works, using Unsafe.Read\n test.RunBasicScenario_UnsafeRead();\n\n // Validates calling via reflection works, using Unsafe.Read\n test.RunReflectionScenario_UnsafeRead();\n\n // Validates passing a static member works\n test.RunClsVarScenario();\n\n // Validates passing a local works, using Unsafe.Read\n test.RunLclVarScenario_UnsafeRead();\n\n // Validates passing the field of a local class works\n test.RunClassLclFldScenario();\n\n // Validates passing an instance member of a class works\n test.RunClassFldScenario();\n\n // Validates passing the field of a local struct works\n test.RunStructLclFldScenario();\n\n // Validates passing an instance member of a struct works\n test.RunStructFldScenario();\n\n if (!test.Succeeded)\n {\n throw new Exception(\"One or more scenarios did not complete as expected.\");\n }\n }\n }\n\n public sealed unsafe class VectorBooleanBinaryOpTest__GreaterThanOrEqualAllByte\n {\n private struct DataTable\n {\n private byte[] inArray1;\n private byte[] inArray2;\n\n private GCHandle inHandle1;\n private GCHandle inHandle2;\n\n private ulong alignment;\n\n public DataTable(Byte[] inArray1, Byte[] inArray2, int alignment)\n {\n int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf();\n int sizeOfinArray2 = inArray2.Length * Unsafe.SizeOf();\n if ((alignment != 32 && alignment != 16 && alignment != 8) || (alignment * 2) < sizeOfinArray1 || (alignment * 2) < sizeOfinArray2)\n {\n throw new ArgumentException(\"Invalid value of alignment\");\n }\n\n this.inArray1 = new byte[alignment * 2];\n this.inArray2 = new byte[alignment * 2];\n\n this.inHandle1 = GCHandle.Alloc(this.inArray1, GCHandleType.Pinned);\n this.inHandle2 = GCHandle.Alloc(this.inArray2, GCHandleType.Pinned);\n\n this.alignment = (ulong)alignment;\n\n Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef(inArray1Ptr), ref Unsafe.As(ref inArray1[0]), (uint)sizeOfinArray1);\n Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef(inArray2Ptr), ref Unsafe.As(ref inArray2[0]), (uint)sizeOfinArray2);\n }\n\n public void* inArray1Ptr => Align((byte*)(inHandle1.AddrOfPinnedObject().ToPointer()), alignment);\n public void* inArray2Ptr => Align((byte*)(inHandle2.AddrOfPinnedObject().ToPointer()), alignment);\n\n public void Dispose()\n {\n inHandle1.Free();\n inHandle2.Free();\n }\n\n private static unsafe void* Align(byte* buffer, ulong expectedAlignment)\n {\n return (void*)(((ulong)buffer + expectedAlignment - 1) & ~(expectedAlignment - 1));\n }\n }\n\n private struct TestStruct\n {\n public Vector64 _fld1;\n public Vector64 _fld2;\n\n public static TestStruct Create()\n {\n var testStruct = new TestStruct();\n\n for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetByte(); }\n Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref testStruct._fld1), ref Unsafe.As(ref _data1[0]), (uint)Unsafe.SizeOf>());\n for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetByte(); }\n Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref testStruct._fld2), ref Unsafe.As(ref _data2[0]), (uint)Unsafe.SizeOf>());\n\n return testStruct;\n }\n\n public void RunStructFldScenario(VectorBooleanBinaryOpTest__GreaterThanOrEqualAllByte testClass)\n {\n var result = Vector64.GreaterThanOrEqualAll(_fld1, _fld2);\n testClass.ValidateResult(_fld1, _fld2, result);\n }\n }\n\n private static readonly int LargestVectorSize = 8;\n\n private static readonly int Op1ElementCount = Unsafe.SizeOf>() / sizeof(Byte);\n private static readonly int Op2ElementCount = Unsafe.SizeOf>() / sizeof(Byte);\n\n private static Byte[] _data1 = new Byte[Op1ElementCount];\n private static Byte[] _data2 = new Byte[Op2ElementCount];\n\n private static Vector64 _clsVar1;\n private static Vector64 _clsVar2;\n\n private Vector64 _fld1;\n private Vector64 _fld2;\n\n private DataTable _dataTable;\n\n static VectorBooleanBinaryOpTest__GreaterThanOrEqualAllByte()\n {\n for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetByte(); }\n Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar1), ref Unsafe.As(ref _data1[0]), (uint)Unsafe.SizeOf>());\n for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetByte(); }\n Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar2), ref Unsafe.As(ref _data2[0]), (uint)Unsafe.SizeOf>());\n }\n\n public VectorBooleanBinaryOpTest__GreaterThanOrEqualAllByte()\n {\n Succeeded = true;\n\n for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetByte(); }\n Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _fld1), ref Unsafe.As(ref _data1[0]), (uint)Unsafe.SizeOf>());\n for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetByte(); }\n Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _fld2), ref Unsafe.As(ref _data2[0]), (uint)Unsafe.SizeOf>());\n\n for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetByte(); }\n for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetByte(); }\n _dataTable = new DataTable(_data1, _data2, LargestVectorSize);\n }\n\n public bool Succeeded { get; set; }\n\n public void RunBasicScenario_UnsafeRead()\n {\n TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead));\n\n var result = Vector64.GreaterThanOrEqualAll(\n Unsafe.Read>(_dataTable.inArray1Ptr),\n Unsafe.Read>(_dataTable.inArray2Ptr)\n );\n\n ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, result);\n }\n\n public void RunReflectionScenario_UnsafeRead()\n {\n TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead));\n\n var method = typeof(Vector64).GetMethod(nameof(Vector64.GreaterThanOrEqualAll), new Type[] {\n typeof(Vector64),\n typeof(Vector64)\n });\n\n if (method is null)\n {\n method = typeof(Vector64).GetMethod(nameof(Vector64.GreaterThanOrEqualAll), 1, new Type[] {\n typeof(Vector64<>).MakeGenericType(Type.MakeGenericMethodParameter(0)),\n typeof(Vector64<>).MakeGenericType(Type.MakeGenericMethodParameter(0))\n });\n }\n\n if (method.IsGenericMethodDefinition)\n {\n method = method.MakeGenericMethod(typeof(Byte));\n }\n\n var result = method.Invoke(null, new object[] {\n Unsafe.Read>(_dataTable.inArray1Ptr),\n Unsafe.Read>(_dataTable.inArray2Ptr)\n });\n\n ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, (bool)(result));\n }\n\n public void RunClsVarScenario()\n {\n TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario));\n\n var result = Vector64.GreaterThanOrEqualAll(\n _clsVar1,\n _clsVar2\n );\n\n ValidateResult(_clsVar1, _clsVar2, result);\n }\n\n public void RunLclVarScenario_UnsafeRead()\n {\n TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead));\n\n var op1 = Unsafe.Read>(_dataTable.inArray1Ptr);\n var op2 = Unsafe.Read>(_dataTable.inArray2Ptr);\n var result = Vector64.GreaterThanOrEqualAll(op1, op2);\n\n ValidateResult(op1, op2, result);\n }\n\n public void RunClassLclFldScenario()\n {\n TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario));\n\n var test = new VectorBooleanBinaryOpTest__GreaterThanOrEqualAllByte();\n var result = Vector64.GreaterThanOrEqualAll(test._fld1, test._fld2);\n\n ValidateResult(test._fld1, test._fld2, result);\n }\n\n public void RunClassFldScenario()\n {\n TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario));\n\n var result = Vector64.GreaterThanOrEqualAll(_fld1, _fld2);\n\n ValidateResult(_fld1, _fld2, result);\n }\n\n public void RunStructLclFldScenario()\n {\n TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario));\n\n var test = TestStruct.Create();\n var result = Vector64.GreaterThanOrEqualAll(test._fld1, test._fld2);\n ValidateResult(test._fld1, test._fld2, result);\n }\n\n public void RunStructFldScenario()\n {\n TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario));\n\n var test = TestStruct.Create();\n test.RunStructFldScenario(this);\n }\n\n private void ValidateResult(Vector64 op1, Vector64 op2, bool result, [CallerMemberName] string method = \"\")\n {\n Byte[] inArray1 = new Byte[Op1ElementCount];\n Byte[] inArray2 = new Byte[Op2ElementCount];\n\n Unsafe.WriteUnaligned(ref Unsafe.As(ref inArray1[0]), op1);\n Unsafe.WriteUnaligned(ref Unsafe.As(ref inArray2[0]), op2);\n\n ValidateResult(inArray1, inArray2, result, method);\n }\n\n private void ValidateResult(void* op1, void* op2, bool result, [CallerMemberName] string method = \"\")\n {\n Byte[] inArray1 = new Byte[Op1ElementCount];\n Byte[] inArray2 = new Byte[Op2ElementCount];\n\n Unsafe.CopyBlockUnaligned(ref Unsafe.As(ref inArray1[0]), ref Unsafe.AsRef(op1), (uint)Unsafe.SizeOf>());\n Unsafe.CopyBlockUnaligned(ref Unsafe.As(ref inArray2[0]), ref Unsafe.AsRef(op2), (uint)Unsafe.SizeOf>());\n\n ValidateResult(inArray1, inArray2, result, method);\n }\n\n private void ValidateResult(Byte[] left, Byte[] right, bool result, [CallerMemberName] string method = \"\")\n {\n bool succeeded = true;\n\n var expectedResult = true;\n\n for (var i = 0; i < Op1ElementCount; i++)\n {\n expectedResult &= (left[i] >= right[i]);\n }\n\n succeeded = (expectedResult == result);\n\n if (!succeeded)\n {\n TestLibrary.TestFramework.LogInformation($\"{nameof(Vector64)}.{nameof(Vector64.GreaterThanOrEqualAll)}(Vector64, Vector64): {method} failed:\");\n TestLibrary.TestFramework.LogInformation($\" left: ({string.Join(\", \", left)})\");\n TestLibrary.TestFramework.LogInformation($\" right: ({string.Join(\", \", right)})\");\n TestLibrary.TestFramework.LogInformation($\" result: ({result})\");\n TestLibrary.TestFramework.LogInformation(string.Empty);\n\n Succeeded = false;\n }\n }\n }\n}\n"},"after_content":{"kind":"string","value":"// Licensed to the .NET Foundation under one or more agreements.\n// The .NET Foundation licenses this file to you under the MIT license.\n\n/******************************************************************************\n * This file is auto-generated from a template file by the GenerateTests.csx *\n * script in tests\\src\\JIT\\HardwareIntrinsics\\X86\\Shared. In order to make *\n * changes, please update the corresponding template and run according to the *\n * directions listed in the file. *\n ******************************************************************************/\n\nusing System;\nusing System.Runtime.CompilerServices;\nusing System.Runtime.InteropServices;\nusing System.Runtime.Intrinsics;\n\nnamespace JIT.HardwareIntrinsics.General\n{\n public static partial class Program\n {\n private static void GreaterThanOrEqualAllByte()\n {\n var test = new VectorBooleanBinaryOpTest__GreaterThanOrEqualAllByte();\n\n // Validates basic functionality works, using Unsafe.Read\n test.RunBasicScenario_UnsafeRead();\n\n // Validates calling via reflection works, using Unsafe.Read\n test.RunReflectionScenario_UnsafeRead();\n\n // Validates passing a static member works\n test.RunClsVarScenario();\n\n // Validates passing a local works, using Unsafe.Read\n test.RunLclVarScenario_UnsafeRead();\n\n // Validates passing the field of a local class works\n test.RunClassLclFldScenario();\n\n // Validates passing an instance member of a class works\n test.RunClassFldScenario();\n\n // Validates passing the field of a local struct works\n test.RunStructLclFldScenario();\n\n // Validates passing an instance member of a struct works\n test.RunStructFldScenario();\n\n if (!test.Succeeded)\n {\n throw new Exception(\"One or more scenarios did not complete as expected.\");\n }\n }\n }\n\n public sealed unsafe class VectorBooleanBinaryOpTest__GreaterThanOrEqualAllByte\n {\n private struct DataTable\n {\n private byte[] inArray1;\n private byte[] inArray2;\n\n private GCHandle inHandle1;\n private GCHandle inHandle2;\n\n private ulong alignment;\n\n public DataTable(Byte[] inArray1, Byte[] inArray2, int alignment)\n {\n int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf();\n int sizeOfinArray2 = inArray2.Length * Unsafe.SizeOf();\n if ((alignment != 32 && alignment != 16 && alignment != 8) || (alignment * 2) < sizeOfinArray1 || (alignment * 2) < sizeOfinArray2)\n {\n throw new ArgumentException(\"Invalid value of alignment\");\n }\n\n this.inArray1 = new byte[alignment * 2];\n this.inArray2 = new byte[alignment * 2];\n\n this.inHandle1 = GCHandle.Alloc(this.inArray1, GCHandleType.Pinned);\n this.inHandle2 = GCHandle.Alloc(this.inArray2, GCHandleType.Pinned);\n\n this.alignment = (ulong)alignment;\n\n Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef(inArray1Ptr), ref Unsafe.As(ref inArray1[0]), (uint)sizeOfinArray1);\n Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef(inArray2Ptr), ref Unsafe.As(ref inArray2[0]), (uint)sizeOfinArray2);\n }\n\n public void* inArray1Ptr => Align((byte*)(inHandle1.AddrOfPinnedObject().ToPointer()), alignment);\n public void* inArray2Ptr => Align((byte*)(inHandle2.AddrOfPinnedObject().ToPointer()), alignment);\n\n public void Dispose()\n {\n inHandle1.Free();\n inHandle2.Free();\n }\n\n private static unsafe void* Align(byte* buffer, ulong expectedAlignment)\n {\n return (void*)(((ulong)buffer + expectedAlignment - 1) & ~(expectedAlignment - 1));\n }\n }\n\n private struct TestStruct\n {\n public Vector64 _fld1;\n public Vector64 _fld2;\n\n public static TestStruct Create()\n {\n var testStruct = new TestStruct();\n\n for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetByte(); }\n Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref testStruct._fld1), ref Unsafe.As(ref _data1[0]), (uint)Unsafe.SizeOf>());\n for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetByte(); }\n Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref testStruct._fld2), ref Unsafe.As(ref _data2[0]), (uint)Unsafe.SizeOf>());\n\n return testStruct;\n }\n\n public void RunStructFldScenario(VectorBooleanBinaryOpTest__GreaterThanOrEqualAllByte testClass)\n {\n var result = Vector64.GreaterThanOrEqualAll(_fld1, _fld2);\n testClass.ValidateResult(_fld1, _fld2, result);\n }\n }\n\n private static readonly int LargestVectorSize = 8;\n\n private static readonly int Op1ElementCount = Unsafe.SizeOf>() / sizeof(Byte);\n private static readonly int Op2ElementCount = Unsafe.SizeOf>() / sizeof(Byte);\n\n private static Byte[] _data1 = new Byte[Op1ElementCount];\n private static Byte[] _data2 = new Byte[Op2ElementCount];\n\n private static Vector64 _clsVar1;\n private static Vector64 _clsVar2;\n\n private Vector64 _fld1;\n private Vector64 _fld2;\n\n private DataTable _dataTable;\n\n static VectorBooleanBinaryOpTest__GreaterThanOrEqualAllByte()\n {\n for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetByte(); }\n Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar1), ref Unsafe.As(ref _data1[0]), (uint)Unsafe.SizeOf>());\n for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetByte(); }\n Unsafe.CopyBlockUnaligned(ref Unsafe.As, byte>(ref _clsVar2), ref Unsafe.As(ref _data2[0]), (uint)Unsafe.SizeOf>());\n }\n\n public VectorBooleanBinaryOpTest__GreaterThanOrEqualAllByte()\n {\n Succeeded = true;\n\n for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetByte(); }\n Unsafe.CopyBlockUnaligned(ref Unsafe.As