This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <fcntl.h> | |
#include <iostream> | |
#include <string> | |
#include <unistd.h> | |
#include <sys/wait.h> | |
#include <cstring> | |
#include "z3_pipe.h" | |
#define ensure(b) ensure_helper(b, __FILE__, __FUNCTION__, __LINE__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
enum e { a, c, d }; | |
class o { | |
uint32_t b = 0; | |
void p(int c) { b |= 1 << c; } | |
bool s(int c) { return b >> c & 1; } | |
public: | |
void t(int f, int col, e h) { | |
int g = 2 * (3 * f + col); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; result 1: | |
%0:i8 = var ; 0 | |
; result 2: | |
%0:i8 = var ; 0 | |
%1:i8 = add 255:i8, %0 | |
%2:i8 = add 1:i8, %1 | |
; result 3: | |
%0:i8 = var ; 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; result 1: | |
%0:i8 = var ; 0 | |
; result 2: | |
%0:i8 = var ; 0 | |
%1:i8 = add 0:i8, %0 | |
; result 3: | |
%0:i8 = var ; 0 | |
%1:i8 = mul 1:i8, %0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
static unsigned f(unsigned i) { return i * 40; } | |
static unsigned setbit(unsigned i, unsigned b) { return i | (1U << b); } | |
static unsigned clearbit(unsigned i, unsigned b) { return i & ~(1U << b); } | |
static void testbit(unsigned b) { | |
printf("bit %d : ", b); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static APInt XXXones(const KnownBits &x, const KnownBits &y) { | |
const int WIDTH = x.One.getBitWidth(); | |
const APInt t0 = operator+(y.Zero, APInt(WIDTH, 1)); | |
const APInt t1 = operator+(t0, x.One); | |
const APInt t2 = (APInt::getSignedMinValue(WIDTH).isOneValue()) ? (x.Zero) : (x.Zero); | |
const APInt t3 = operator+(x.One, t2); | |
const APInt t4 = ~x.One; | |
const APInt t5 = (t4.isNegative()) ? (x.Zero) : (x.Zero); | |
const APInt t6 = operator-(y.Zero, t5); | |
APInt t7 = APInt::getAllOnesValue(WIDTH); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <random> | |
#include <functional> | |
#include <map> | |
namespace { | |
bool enumerate; | |
std::random_device rd; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
---------------------------------------- | |
define i64 @slice(i64 %0) { | |
%1: | |
%2 = shl i64 9223372036854775807, %0 | |
ret i64 %2 | |
} | |
=> | |
define i64 @slice(i64 %rdi) { | |
%0: | |
ret i64 -2246371524778917889 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"arch": "amd64", | |
"os": "linux", | |
"functions": [ | |
{ | |
"address": 0, | |
"name": "slice", | |
"parameters": [ | |
{ | |
"name": "rdi", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"arch": "amd64", | |
"os": "linux", | |
"functions": [ | |
{ | |
"address": 0, | |
"name": "slice", | |
"parameters": [ | |
{ | |
"name": "edi", |
NewerOlder