{"id":4712,"date":"2022-08-24T01:14:54","date_gmt":"2022-08-23T19:44:54","guid":{"rendered":"https:\/\/jassweb.com\/solved\/solved-does-px-x-always-result-in-p-for-pointer-p-and-integer-x-in-gcc-linux-x86-64-c\/"},"modified":"2022-08-24T01:14:54","modified_gmt":"2022-08-23T19:44:54","slug":"solved-does-px-x-always-result-in-p-for-pointer-p-and-integer-x-in-gcc-linux-x86-64-c","status":"publish","type":"post","link":"https:\/\/jassweb.com\/solved\/solved-does-px-x-always-result-in-p-for-pointer-p-and-integer-x-in-gcc-linux-x86-64-c\/","title":{"rendered":"[Solved] Does (p+x)-x always result in p for pointer p and integer x in gcc linux x86-64 C++"},"content":{"rendered":"<p> [ad_1]<br \/>\n<\/p>\n<div id=\"answer-54975680\" class=\"answer js-answer accepted-answer js-accepted-answer\" data-answerid=\"54975680\" data-parentid=\"54967979\" data-score=\"1\" data-position-on-page=\"1\" data-highest-scored=\"1\" data-question-has-accepted-highest-score=\"1\" itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n<div class=\"post-layout\">\n<div class=\"votecell post-layout--left\"><\/div>\n<div class=\"answercell post-layout--right\">\n<div class=\"js-endorsements\" data-for-answer=\"54975680\">\n<\/div>\n<div class=\"s-prose js-post-body\" itemprop=\"text\">\n<p>Yes, for gcc5.x and later specifically, that specific expression is optimized very early to just <code>p<\/code>, even with optimization disabled, regardless of any possible runtime UB.<\/p>\n<p>This happens even with a static array and compile-time constant size.  <code>gcc -fsanitize=undefined<\/code> doesn&#8217;t insert any instrumentation to look for it either.  Also no warnings at <code>-Wall -Wextra -Wpedantic<\/code><\/p>\n<pre><code>int *add(int *p, long long x) {\n    return (p+x) - x;\n}\n\nint *visible_UB(void) {\n    static int arr[100];\n    return (arr+200) - 200;\n}\n<\/code><\/pre>\n<p>Using <code>gcc -dump-tree-original<\/code> to dump its internal representation of program logic before any optimization passes shows that this optimization happened even before that <strong>in gcc5.x and newer<\/strong>.  (And happens even at <code>-O0<\/code>).<\/p>\n<pre><code>;; Function int* add(int*, long long int) (null)\n;; enabled by -tree-original\n\nreturn &lt;retval&gt; = p;\n\n\n;; Function int* visible_UB() (null)\n;; enabled by -tree-original\n{\n  static int arr[100];\n\n    static int arr[100];\n  return &lt;retval&gt; = (int *) &amp;arr;\n}\n<\/code><\/pre>\n<p>That&#8217;s <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/godbolt.org\/#g:!((g:!((g:!((h:codeEditor,i:(fontScale:1.2899450879999999,j:1,lang:c%2B%2B,source:'int+*add(int+*p,+long+long+x)+%7B%0A++++return+(p%2Bx)+-+x%3B%0A%7D%0A%0Aint+*visible_UB(void)+%7B%0A++++static+int+arr%5B100%5D%3B%0A++++return+(arr%2B200)+-+200%3B%0A%7D'),l:'5',n:'0',o:'C%2B%2B+source+%231',t:'0')),k:34.448214174817394,l:'4',n:'0',o:'',s:0,t:'0'),(g:!((g:!((h:compiler,i:(compiler:g83,filters:(b:'0',binary:'1',commentOnly:'0',demangle:'0',directives:'0',execute:'1',intel:'0',libraryCode:'1',trim:'1'),fontScale:1.2899450879999999,lang:c%2B%2B,libs:!(),options:'-O0+-Wall+-Wextra+-Wpedantic+-fomit-frame-pointer+-fsanitize%3Dundefined',source:1),l:'5',n:'0',o:'x86-64+gcc+8.3+(Editor+%231,+Compiler+%231)+C%2B%2B',t:'0')),k:33.466137537238424,l:'4',m:72.58691893189553,n:'0',o:'',s:0,t:'0'),(g:!((h:gccdump,i:(_compilerid:1,_editorid:1,rtlDump:'0',selectedPass:'003t.original',treeDump:'0'),l:'5',n:'0',o:'x86-64+gcc+8.3+GCC+Tree\/RTL+Viewer+(Editor+%231,+Compiler+%231)',t:'0')),header:(),l:'4',m:27.41308106810447,n:'0',o:'',s:0,t:'0')),k:33.466137537238424,l:'3',n:'0',o:'',t:'0'),(g:!((h:compiler,i:(compiler:g83,filters:(b:'0',binary:'1',commentOnly:'0',demangle:'0',directives:'0',execute:'1',intel:'0',libraryCode:'1',trim:'1'),fontScale:1.2899450879999999,lang:c%2B%2B,libs:!(),options:'-O3+-Wall++-Wextra+-Wpedantic+-fstrict-overflow+-fsanitize%3Dundefined',source:1),l:'5',n:'0',o:'x86-64+gcc+8.3+(Editor+%231,+Compiler+%232)+C%2B%2B',t:'0')),k:32.0856482879442,l:'4',n:'0',o:'',s:0,t:'0')),l:'2',n:'0',o:'',t:'0')),version:4\">from the Godbolt compiler explorer with gcc8.3<\/a> with <code>-O0<\/code>.<\/p>\n<p>The x86-64 asm output is just:<\/p>\n<pre><code>; g++8.3 -O0 \nadd(int*, long long):\n    mov     QWORD PTR [rsp-8], rdi\n    mov     QWORD PTR [rsp-16], rsi    # spill args\n    mov     rax, QWORD PTR [rsp-8]     # reload only the pointer\n    ret\nvisible_UB():\n    mov     eax, OFFSET FLAT:_ZZ10visible_UBvE3arr\n    ret\n<\/code><\/pre>\n<p><strong><code>-O3<\/code> output is of course just <code>mov  rax, rdi<\/code><\/strong><\/p>\n<hr>\n<p><strong>gcc4.9 and earlier only do this optimization in a later pass, and not at <code>-O0<\/code><\/strong>: the tree dump still includes the subtract, and the x86-64 asm is<\/p>\n<pre><code># g++4.9.4 -O0\nadd(int*, long long):\n    mov     QWORD PTR [rsp-8], rdi\n    mov     QWORD PTR [rsp-16], rsi\n    mov     rax, QWORD PTR [rsp-16]\n    lea     rdx, [0+rax*4]            # RDX = x*4 = x*sizeof(int)\n    mov     rax, QWORD PTR [rsp-16]\n    sal     rax, 2\n    neg     rax                       # RAX = -(x*4)\n    add     rdx, rax                  # RDX = x*4 + (-(x*4)) = 0\n    mov     rax, QWORD PTR [rsp-8]\n    add     rax, rdx                  # p += x + (-x)\n    ret\n\nvisible_UB():       # but constants still optimize away at -O0\n    mov     eax, OFFSET FLAT:_ZZ10visible_UBvE3arr\n    ret\n<\/code><\/pre>\n<p>This does line up with the <code>-fdump-tree-original<\/code> output:<\/p>\n<pre><code>return &lt;retval&gt; = p + ((sizetype) ((long unsigned int) x * 4) + -(sizetype) ((long unsigned int) x * 4));\n<\/code><\/pre>\n<p>If <code>x*4<\/code> overflows, you&#8217;ll still get the right answer.  In practice I can&#8217;t think of a way to write a function that would lead to the UB causing an observable change in behaviour.<\/p>\n<hr>\n<p><strong>As part of a larger function, a compiler would be allowed to infer some range info, like that <code>p[x]<\/code> is part of the same object as <code>p[0]<\/code><\/strong>, so reading memory in between \/ out that far is allowed and won&#8217;t segfault.  e.g. allowing auto-vectorization of a search loop.<\/p>\n<p>But I doubt that gcc even looks for that, let alone takes advantage of it.<\/p>\n<p>(Note that your question title was specific to gcc targeting x86-64 on Linux, <strong>not about whether similar things are safe<\/strong> in gcc, e.g. if done in separate statements.  I mean yes probably safe in practice, but won&#8217;t be optimized away almost immediately after parsing.  And definitely not about C++ in general.)<\/p>\n<hr>\n<p><strong>I highly recommend <em>not<\/em> doing this.  Use <code>uintptr_t<\/code> to hold pointer-like values that aren&#8217;t actual valid pointers.<\/strong>  like you&#8217;re doing in the updates to your answer on C++ gcc extension for non-zero-based array pointer allocation?.<\/p>\n<\/p><\/div>\n<div class=\"mt24\"><\/div>\n<\/div>\n<p>            <span class=\"d-none\" itemprop=\"commentCount\">10<\/span> <\/p><\/div>\n<\/div>\n<p>[ad_2]<\/p>\n<p>solved Does (p+x)-x always result in p for pointer p and integer x in gcc linux x86-64 C++ <\/p>\n","protected":false},"excerpt":{"rendered":"<p>[ad_1] Yes, for gcc5.x and later specifically, that specific expression is optimized very early to just p, even with optimization disabled, regardless of any possible runtime UB. This happens even with a static array and compile-time constant size. gcc -fsanitize=undefined doesn&#8217;t insert any instrumentation to look for it either. Also no warnings at -Wall -Wextra &#8230; <a title=\"[Solved] Does (p+x)-x always result in p for pointer p and integer x in gcc linux x86-64 C++\" class=\"read-more\" href=\"https:\/\/jassweb.com\/solved\/solved-does-px-x-always-result-in-p-for-pointer-p-and-integer-x-in-gcc-linux-x86-64-c\/\" aria-label=\"More on [Solved] Does (p+x)-x always result in p for pointer p and integer x in gcc linux x86-64 C++\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[320],"tags":[324,608,424,1035,1034],"class_list":["post-4712","post","type-post","status-publish","format-standard","hentry","category-solved","tag-c","tag-gcc","tag-linux","tag-pointer-arithmetic","tag-x86-64"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>[Solved] Does (p+x)-x always result in p for pointer p and integer x in gcc linux x86-64 C++ - JassWeb<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/jassweb.com\/solved\/solved-does-px-x-always-result-in-p-for-pointer-p-and-integer-x-in-gcc-linux-x86-64-c\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[Solved] Does (p+x)-x always result in p for pointer p and integer x in gcc linux x86-64 C++ - JassWeb\" \/>\n<meta property=\"og:description\" content=\"[ad_1] Yes, for gcc5.x and later specifically, that specific expression is optimized very early to just p, even with optimization disabled, regardless of any possible runtime UB. This happens even with a static array and compile-time constant size. gcc -fsanitize=undefined doesn&#8217;t insert any instrumentation to look for it either. Also no warnings at -Wall -Wextra ... Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jassweb.com\/solved\/solved-does-px-x-always-result-in-p-for-pointer-p-and-integer-x-in-gcc-linux-x86-64-c\/\" \/>\n<meta property=\"og:site_name\" content=\"JassWeb\" \/>\n<meta property=\"article:published_time\" content=\"2022-08-23T19:44:54+00:00\" \/>\n<meta name=\"author\" content=\"Kirat\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Kirat\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-does-px-x-always-result-in-p-for-pointer-p-and-integer-x-in-gcc-linux-x86-64-c\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-does-px-x-always-result-in-p-for-pointer-p-and-integer-x-in-gcc-linux-x86-64-c\/\"},\"author\":{\"name\":\"Kirat\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31\"},\"headline\":\"[Solved] Does (p+x)-x always result in p for pointer p and integer x in gcc linux x86-64 C++\",\"datePublished\":\"2022-08-23T19:44:54+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-does-px-x-always-result-in-p-for-pointer-p-and-integer-x-in-gcc-linux-x86-64-c\/\"},\"wordCount\":367,\"publisher\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\"},\"keywords\":[\"c++\",\"gcc\",\"linux\",\"pointer-arithmetic\",\"x86-64\"],\"articleSection\":[\"Solved\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-does-px-x-always-result-in-p-for-pointer-p-and-integer-x-in-gcc-linux-x86-64-c\/\",\"url\":\"https:\/\/jassweb.com\/solved\/solved-does-px-x-always-result-in-p-for-pointer-p-and-integer-x-in-gcc-linux-x86-64-c\/\",\"name\":\"[Solved] Does (p+x)-x always result in p for pointer p and integer x in gcc linux x86-64 C++ - JassWeb\",\"isPartOf\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#website\"},\"datePublished\":\"2022-08-23T19:44:54+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-does-px-x-always-result-in-p-for-pointer-p-and-integer-x-in-gcc-linux-x86-64-c\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/jassweb.com\/solved\/solved-does-px-x-always-result-in-p-for-pointer-p-and-integer-x-in-gcc-linux-x86-64-c\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-does-px-x-always-result-in-p-for-pointer-p-and-integer-x-in-gcc-linux-x86-64-c\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/jassweb.com\/solved\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[Solved] Does (p+x)-x always result in p for pointer p and integer x in gcc linux x86-64 C++\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/jassweb.com\/solved\/#website\",\"url\":\"https:\/\/jassweb.com\/solved\/\",\"name\":\"JassWeb\",\"description\":\"Build High-quality Websites\",\"publisher\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/jassweb.com\/solved\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\",\"name\":\"Jass Web\",\"url\":\"https:\/\/jassweb.com\/solved\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png\",\"contentUrl\":\"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png\",\"width\":693,\"height\":132,\"caption\":\"Jass Web\"},\"image\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31\",\"name\":\"Kirat\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1775193939\",\"contentUrl\":\"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1775193939\",\"caption\":\"Kirat\"},\"sameAs\":[\"http:\/\/jassweb.com\"],\"url\":\"https:\/\/jassweb.com\/solved\/author\/jaspritsinghghumangmail-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[Solved] Does (p+x)-x always result in p for pointer p and integer x in gcc linux x86-64 C++ - JassWeb","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/jassweb.com\/solved\/solved-does-px-x-always-result-in-p-for-pointer-p-and-integer-x-in-gcc-linux-x86-64-c\/","og_locale":"en_US","og_type":"article","og_title":"[Solved] Does (p+x)-x always result in p for pointer p and integer x in gcc linux x86-64 C++ - JassWeb","og_description":"[ad_1] Yes, for gcc5.x and later specifically, that specific expression is optimized very early to just p, even with optimization disabled, regardless of any possible runtime UB. This happens even with a static array and compile-time constant size. gcc -fsanitize=undefined doesn&#8217;t insert any instrumentation to look for it either. Also no warnings at -Wall -Wextra ... Read more","og_url":"https:\/\/jassweb.com\/solved\/solved-does-px-x-always-result-in-p-for-pointer-p-and-integer-x-in-gcc-linux-x86-64-c\/","og_site_name":"JassWeb","article_published_time":"2022-08-23T19:44:54+00:00","author":"Kirat","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Kirat","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/jassweb.com\/solved\/solved-does-px-x-always-result-in-p-for-pointer-p-and-integer-x-in-gcc-linux-x86-64-c\/#article","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/solved-does-px-x-always-result-in-p-for-pointer-p-and-integer-x-in-gcc-linux-x86-64-c\/"},"author":{"name":"Kirat","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31"},"headline":"[Solved] Does (p+x)-x always result in p for pointer p and integer x in gcc linux x86-64 C++","datePublished":"2022-08-23T19:44:54+00:00","mainEntityOfPage":{"@id":"https:\/\/jassweb.com\/solved\/solved-does-px-x-always-result-in-p-for-pointer-p-and-integer-x-in-gcc-linux-x86-64-c\/"},"wordCount":367,"publisher":{"@id":"https:\/\/jassweb.com\/solved\/#organization"},"keywords":["c++","gcc","linux","pointer-arithmetic","x86-64"],"articleSection":["Solved"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/jassweb.com\/solved\/solved-does-px-x-always-result-in-p-for-pointer-p-and-integer-x-in-gcc-linux-x86-64-c\/","url":"https:\/\/jassweb.com\/solved\/solved-does-px-x-always-result-in-p-for-pointer-p-and-integer-x-in-gcc-linux-x86-64-c\/","name":"[Solved] Does (p+x)-x always result in p for pointer p and integer x in gcc linux x86-64 C++ - JassWeb","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/#website"},"datePublished":"2022-08-23T19:44:54+00:00","breadcrumb":{"@id":"https:\/\/jassweb.com\/solved\/solved-does-px-x-always-result-in-p-for-pointer-p-and-integer-x-in-gcc-linux-x86-64-c\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jassweb.com\/solved\/solved-does-px-x-always-result-in-p-for-pointer-p-and-integer-x-in-gcc-linux-x86-64-c\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/jassweb.com\/solved\/solved-does-px-x-always-result-in-p-for-pointer-p-and-integer-x-in-gcc-linux-x86-64-c\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/jassweb.com\/solved\/"},{"@type":"ListItem","position":2,"name":"[Solved] Does (p+x)-x always result in p for pointer p and integer x in gcc linux x86-64 C++"}]},{"@type":"WebSite","@id":"https:\/\/jassweb.com\/solved\/#website","url":"https:\/\/jassweb.com\/solved\/","name":"JassWeb","description":"Build High-quality Websites","publisher":{"@id":"https:\/\/jassweb.com\/solved\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/jassweb.com\/solved\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/jassweb.com\/solved\/#organization","name":"Jass Web","url":"https:\/\/jassweb.com\/solved\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/","url":"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png","contentUrl":"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png","width":693,"height":132,"caption":"Jass Web"},"image":{"@id":"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31","name":"Kirat","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/image\/","url":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1775193939","contentUrl":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1775193939","caption":"Kirat"},"sameAs":["http:\/\/jassweb.com"],"url":"https:\/\/jassweb.com\/solved\/author\/jaspritsinghghumangmail-com\/"}]}},"_links":{"self":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts\/4712","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/comments?post=4712"}],"version-history":[{"count":0,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts\/4712\/revisions"}],"wp:attachment":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/media?parent=4712"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/categories?post=4712"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/tags?post=4712"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}