Esempio n. 1
0
int main() {
int v1 = nondet();
int v2 = nondet();
int v3 = nondet();
goto loc_2;
loc_2:
 if (nondet_bool()) {
  goto loc_0;
 }
 goto end;
loc_0:
 if (nondet_bool()) {
  if (!( 0 <= v3 )) goto end;
  v3 = -1+v3;
  v1 = v2;
  goto loc_1;
 }
 if (nondet_bool()) {
  if (!( 1+v3 <= 0 )) goto end;
  v1 = v2;
  goto loc_1;
 }
 goto end;
loc_1:
end:
;
}
Esempio n. 2
0
int main() {
int v1 = nondet();
goto loc_3;
loc_3:
 if (nondet_bool()) {
  goto loc_2;
 }
 goto end;
loc_CP_0:
 if (nondet_bool()) {
  v1 = 3;
  v1 = 2;
  goto loc_1;
 }
 goto end;
loc_1:
 if (nondet_bool()) {
  goto loc_CP_0;
 }
 goto end;
loc_2:
 if (nondet_bool()) {
  v1 = 2;
  goto loc_CP_0;
 }
 goto end;
end:
;
}
Esempio n. 3
0
int main() {
int v1 = nondet();
int v2 = nondet();
goto loc_4;
loc_4:
 if (nondet_bool()) {
  goto loc_0;
 }
 goto end;
loc_CP_1:
 if (nondet_bool()) {
  v1 = 1+v1;
  goto loc_2;
 }
 if (nondet_bool()) {
  if (!( 2 <= 0 )) goto end;
  goto loc_3;
 }
 goto end;
loc_0:
 if (nondet_bool()) {
  v1 = 1;
  v2 = 1;
  goto loc_CP_1;
 }
 goto end;
loc_2:
 if (nondet_bool()) {
  goto loc_CP_1;
 }
 goto end;
loc_3:
end:
;
}
Esempio n. 4
0
int main() {
int v1 = nondet();
int v2 = nondet();
int v3 = nondet();
int v4 = nondet();
int v5 = nondet();
goto loc_2;
loc_2:
 if (nondet_bool()) {
  goto loc_0;
 }
 goto end;
loc_0:
 if (nondet_bool()) {
  v4 = 0;
  v1 = v4;
  v5 = nondet();
  v3 = nondet();
  v2 = nondet();
  goto loc_1;
 }
 goto end;
loc_1:
end:
;
}
Esempio n. 5
0
int main() {
int v1 = nondet();
int v2 = nondet();
goto loc_3;
loc_3:
 if (nondet_bool()) {
  goto loc_2;
 }
 goto end;
loc_CP_0:
 if (nondet_bool()) {
  if (!( 1 <= v1 )) goto end;
  v1 = v1-v2;
  v2 = 1+v2;
  goto loc_1;
 }
 goto end;
loc_1:
 if (nondet_bool()) {
  goto loc_CP_0;
 }
 goto end;
loc_2:
 if (nondet_bool()) {
  if (!( 1 <= v2 )) goto end;
  goto loc_CP_0;
 }
 goto end;
end:
;
}
Esempio n. 6
0
int main() {
int v1 = nondet();
goto loc_3;
loc_3:
 if (nondet_bool()) {
  goto loc_2;
 }
 goto end;
loc_CP_0:
 if (nondet_bool()) {
  v1 = -1+v1;
  if (!( 201 <= v1 )) goto end;
  goto loc_1;
 }
 goto end;
loc_1:
 if (nondet_bool()) {
  goto loc_CP_0;
 }
 goto end;
loc_2:
 if (nondet_bool()) {
  goto loc_CP_0;
 }
 goto end;
end:
;
}
Esempio n. 7
0
int main() {
int v1 = nondet();
int v2 = nondet();
goto loc_4;
loc_4:
 if (nondet_bool()) {
  goto loc_0;
 }
 goto end;
loc_CP_1:
 if (nondet_bool()) {
  if (!( -1*v2 <= 0 )) goto end;
  goto loc_2;
 }
 if (nondet_bool()) {
  if (!( 0 <= -1-v2 )) goto end;
  v1 = nondet();
  goto loc_3;
 }
 goto end;
loc_0:
 if (nondet_bool()) {
  goto loc_CP_1;
 }
 goto end;
loc_2:
 if (nondet_bool()) {
  goto loc_CP_1;
 }
 goto end;
loc_3:
end:
;
}
Esempio n. 8
0
int main() {
int v1 = nondet();
int v2 = nondet();
goto loc_3;
loc_3:
 if (nondet_bool()) {
  goto loc_2;
 }
 goto end;
loc_CP_0:
 if (nondet_bool()) {
  if (!( 1+v2 <= 2000 )) goto end;
  v1 = 1000+v1;
  if (!( 111 <= v1 )) goto end;
  goto loc_1;
 }
 goto end;
loc_1:
 if (nondet_bool()) {
  goto loc_CP_0;
 }
 goto end;
loc_2:
 if (nondet_bool()) {
  v2 = 3000;
  goto loc_CP_0;
 }
 goto end;
end:
;
}
Esempio n. 9
0
int main() {
int v1 = nondet();
int v2 = nondet();
int v3 = nondet();
int v4 = nondet();
int v5 = nondet();
int v6 = nondet();
int v7 = nondet();
int v8 = nondet();
int v9 = nondet();
int v10 = nondet();
goto loc_4;
loc_4:
 if (nondet_bool()) {
  goto loc_3;
 }
 goto end;
loc_CP_0:
 if (nondet_bool()) {
  v4 = v2;
  v5 = v3;
  if (!( -1*v4+v5 <= 0 )) goto end;
  v4 = nondet();
  v5 = nondet();
  v1 = nondet();
  goto loc_1;
 }
 if (nondet_bool()) {
  v4 = v2;
  v5 = v3;
  if (!( 0 <= -1-v4+v5 )) goto end;
  v4 = nondet();
  v5 = nondet();
  v6 = v2;
  v6 = nondet();
  goto loc_2;
 }
 goto end;
loc_2:
 if (nondet_bool()) {
  goto loc_CP_0;
 }
 goto end;
loc_3:
 if (nondet_bool()) {
  v10 = nondet();
  v9 = nondet();
  v8 = v9;
  v7 = v10;
  goto loc_CP_0;
 }
 goto end;
loc_1:
end:
;
}
Esempio n. 10
0
int main() {
int v1 = nondet();
int v2 = nondet();
int v3 = nondet();
int v4 = nondet();
int v5 = nondet();
int v6 = nondet();
int v7 = nondet();
int v8 = nondet();
int v9 = nondet();
int v10 = nondet();
goto loc_4;
loc_4:
 if (nondet_bool()) {
  goto loc_0;
 }
 goto end;
loc_CP_1:
 if (nondet_bool()) {
  v7 = v4;
  v8 = v5;
  if (!( -1*v7+v8 <= 0 )) goto end;
  v7 = nondet();
  v8 = nondet();
  v1 = nondet();
  goto loc_2;
 }
 if (nondet_bool()) {
  v7 = v4;
  v8 = v5;
  if (!( 0 <= -1-v7+v8 )) goto end;
  v7 = nondet();
  v8 = nondet();
  v6 = v4;
  v6 = nondet();
  goto loc_3;
 }
 goto end;
loc_0:
 if (nondet_bool()) {
  v10 = nondet();
  v9 = nondet();
  v3 = nondet();
  v2 = nondet();
  goto loc_CP_1;
 }
 goto end;
loc_3:
 if (nondet_bool()) {
  goto loc_CP_1;
 }
 goto end;
loc_2:
end:
;
}
Esempio n. 11
0
int main() {
int v1 = nondet();
int v2 = nondet();
int v3 = nondet();
int v4 = nondet();
int v5 = nondet();
int v6 = nondet();
int v7 = nondet();
int v8 = nondet();
goto loc_4;
loc_4:
 if (nondet_bool()) {
  goto loc_3;
 }
 goto end;
loc_CP_0:
 if (nondet_bool()) {
  v5 = v8;
  v3 = v2;
  if (!( v3 <= 0 )) goto end;
  v5 = nondet();
  v3 = nondet();
  v1 = nondet();
  goto loc_1;
 }
 if (nondet_bool()) {
  v5 = v8;
  v3 = v2;
  if (!( 0 <= -1+v3 )) goto end;
  v5 = nondet();
  v3 = nondet();
  v4 = v2;
  v4 = nondet();
  goto loc_2;
 }
 goto end;
loc_2:
 if (nondet_bool()) {
  goto loc_CP_0;
 }
 goto end;
loc_3:
 if (nondet_bool()) {
  v6 = nondet();
  v8 = nondet();
  v7 = v6;
  goto loc_CP_0;
 }
 goto end;
loc_1:
end:
;
}
Esempio n. 12
0
int main() {
int v1 = nondet();
int v2 = nondet();
int v3 = nondet();
int v4 = nondet();
int v5 = nondet();
int v6 = nondet();
int v7 = nondet();
int v8 = nondet();
goto loc_4;
loc_4:
 if (nondet_bool()) {
  goto loc_0;
 }
 goto end;
loc_CP_1:
 if (nondet_bool()) {
  v5 = v2;
  v6 = v3;
  if (!( -1*v5+v6 <= 0 )) goto end;
  v5 = nondet();
  v6 = nondet();
  v1 = nondet();
  goto loc_2;
 }
 if (nondet_bool()) {
  v5 = v2;
  v6 = v3;
  if (!( 0 <= -1-v5+v6 )) goto end;
  v5 = nondet();
  v6 = nondet();
  v4 = v2;
  v4 = nondet();
  goto loc_3;
 }
 goto end;
loc_0:
 if (nondet_bool()) {
  v8 = nondet();
  v7 = nondet();
  goto loc_CP_1;
 }
 goto end;
loc_3:
 if (nondet_bool()) {
  goto loc_CP_1;
 }
 goto end;
loc_2:
end:
;
}
Esempio n. 13
0
int main() {
int v1 = nondet();
int v2 = nondet();
int v3 = nondet();
int v4 = nondet();
int v5 = nondet();
goto loc_6;
loc_6:
 if (nondet_bool()) {
  goto loc_5;
 }
 goto end;
loc_CP_1:
 if (nondet_bool()) {
  goto loc_3;
 }
 goto end;
loc_CP_2:
 if (nondet_bool()) {
  goto loc_0;
 }
 goto end;
loc_0:
 if (nondet_bool()) {
  if (!( 100 <= v1 )) goto end;
  v2 = 100;
  goto loc_CP_1;
 }
 if (nondet_bool()) {
  if (!( 1+v1 <= 100 )) goto end;
  v3 = v1;
  v4 = v1;
  v1 = 1+v1;
  goto loc_CP_2;
 }
 goto end;
loc_3:
 if (nondet_bool()) {
  if (!( 200 <= v2 )) goto end;
  goto loc_4;
 }
 if (nondet_bool()) {
  if (!( 1+v2 <= 200 )) goto end;
  v5 = v2;
  v2 = 1+v2;
  goto loc_CP_1;
 }
 goto end;
loc_5:
 if (nondet_bool()) {
  v1 = 0;
  goto loc_CP_2;
 }
 goto end;
loc_4:
end:
;
}
Esempio n. 14
0
int main()
{
        int t ;  
	int i, j ;    
	__CPROVER_bool onoff = nondet_bool();
         unsigned char rcsdips[] = {8, 3, 7, 3, 8, 3, 9, 3, 10, 3, 11, 3, 12, 3, 13, 3, 14 }; //all dips other than unit0 dips 
	//unsigned char rcsdips[] = {3,0 , 7, 0, 8, 0, 9}; //only unit0 dips
      //unsigned char rcsdips[] = {8, 3, 7, 3, 8, 3, 9, 3, 10, 3, 11, 2, 12, 0, 13, 1, 14 }; //combination of all units  dips
        for (i = 0; i <= 51; i++)
        {
        	survstatbuf[i] = nondet_unsignedchar();
        	survstatbuf2[i] = nondet_unsignedchar();
     	}

    // for(i = 0; i<4; i++)	
	for(j = 0; j<128; j++)
	{
 		lookup_status[0][j].unit = nondet_ushort();
		lookup_status[0][j].channel = nondet_ushort();
		lookup_status[0][j].common = nondet_ushort();
	}

	for(j= 0; j< 128; j++)
	{
	__CPROVER_assume( lookup_status[0][j].unit == 0 || lookup_status[0][j].unit == 1 || lookup_status[0][j].unit == 2 || lookup_status[0][j].unit == 3 || lookup_status[0][j].unit == 300);
	__CPROVER_assume( (lookup_status[0][j].channel >=0 && lookup_status[0][j].channel <= 127 ) || lookup_status[0][j].channel== 300 );
	__CPROVER_assume( (lookup_status[0][j].common >=0 &&  lookup_status[0][j].common <= 127 ) || lookup_status[0][j].common== 300 );
	}

     t =check_dips(rcsdips, onoff);
     verif_check_dips( t, rcsdips, onoff);

}
Esempio n. 15
0
File: main.e.c Progetto: hbgit/LTGit
int main()
{
  int x = nondet_int();
  int y = nondet_int();
  int z = nondet_int();

  while(x<100 && 100<z)
  {
    int tmp=nondet_bool();
    if (tmp)
   {
     x++;
   }
   else
   {
     x--;
     z--;
   }
  }

  //assert(0);
  if(! (0)) goto ERROR;


ERROR: assert(0, "ERROR");
}
Esempio n. 16
0
// EC_POINT_oct2point() convert from and to EC_points for the format octet
// return 1 on success or 0 on error
int EC_POINT_oct2point(const EC_GROUP *group, EC_POINT *p, const unsigned char *buf, size_t len, BN_CTX *ctx) {
    if(len && nondet_bool()){
        buf[len - 1];
        return 1;
    }
    return 0;
};
Esempio n. 17
0
int main() {
int v1 = nondet();
int v2 = nondet();
goto loc_5;
loc_5:
 if (nondet_bool()) {
  goto loc_0;
 }
 goto end;
loc_CP_1:
 if (nondet_bool()) {
  if (!( 1 <= v1 )) goto end;
  v1 = -1+v1;
  v2 = 1+v2;
  goto loc_CP_4;
 }
 goto end;
loc_CP_2:
 if (nondet_bool()) {
  if (!( 1 <= v2 )) goto end;
  v1 = 1+v1;
  v2 = -1+v2;
  goto loc_3;
 }
 if (nondet_bool()) {
  if (!( 1 <= v1 )) goto end;
  v1 = -1+v1;
  v2 = 1+v2;
  goto loc_CP_4;
 }
 goto end;
loc_CP_4:
 if (nondet_bool()) {
  if (!( 1 <= v2 )) goto end;
  v2 = -1+v2;
  goto loc_CP_2;
 }
 if (nondet_bool()) {
  goto loc_CP_1;
 }
 goto end;
loc_0:
 if (nondet_bool()) {
  if (!( v2 <= 0 )) goto end;
  if (!( 0 <= v2 )) goto end;
  if (!( 0 <= v1 )) goto end;
  goto loc_CP_1;
 }
 goto end;
loc_3:
 if (nondet_bool()) {
  goto loc_CP_2;
 }
 goto end;
end:
;
}
Esempio n. 18
0
File: dllist.c Progetto: lquan/OVS
void *my_malloc (size_t s)
 {
  if (nondet_bool()) {
	return (NULL);
  }
  counter++;
  return (malloc (s)); 
 }
int main(int argc, char **argv)
{
    uint8_t u8; uint16_t u16; uint32_t u32;
    
    uint32_t stuffer_size = nondet_uint32();
	__CPROVER_assume(stuffer_size > 0);
	
	uint32_t entropy_size = nondet_uint32();
	__CPROVER_assume(entropy_size > 0);
	
	uint8_t entropy[entropy_size];
    struct s2n_stuffer stuffer;
	
    GUARD(s2n_stuffer_alloc(&stuffer, stuffer_size));

    struct s2n_blob in = {.data = entropy,.size = entropy_size};
    GUARD(s2n_stuffer_write(&stuffer, &in));

	GUARD(s2n_stuffer_wipe(&stuffer));
	while(nondet_bool()) {
        GUARD(s2n_stuffer_write_uint8(&stuffer, nondet_uint64()));
    }

    while(nondet_bool()) {
        GUARD(s2n_stuffer_read_uint8(&stuffer, &u8));
    }

    GUARD(s2n_stuffer_wipe(&stuffer));
    while(nondet_bool()) {
        GUARD(s2n_stuffer_write_uint16(&stuffer, nondet_uint64()));
    }

    while(nondet_bool()) {
        GUARD(s2n_stuffer_read_uint16(&stuffer, &u16));
    }

    GUARD(s2n_stuffer_wipe(&stuffer));
    while(nondet_bool()) {
        GUARD(s2n_stuffer_write_uint24(&stuffer, nondet_uint64()));
    }

    while(nondet_bool()) {
        GUARD(s2n_stuffer_read_uint24(&stuffer, &u32));
    }

    GUARD(s2n_stuffer_wipe(&stuffer));
    while(nondet_bool()) {
        GUARD(s2n_stuffer_write_uint32(&stuffer, nondet_uint64()));
    }

    while(nondet_bool()) {
        GUARD(s2n_stuffer_read_uint32(&stuffer, &u32));
    }

    GUARD(s2n_stuffer_free(&stuffer));
}
Esempio n. 20
0
int main() {
int v1 = nondet();
goto loc_2;
loc_2:
 if (nondet_bool()) {
  goto loc_0;
 }
 goto end;
loc_0:
 if (nondet_bool()) {
  v1 = 1;
  goto loc_1;
 }
 goto end;
loc_1:
end:
;
}
Esempio n. 21
0
int main() {
goto loc_1;
loc_1:
 if (nondet_bool()) {
  goto loc_0;
 }
 goto end;
loc_0:
end:
;
}
Esempio n. 22
0
int main() {
int v1 = nondet();
int v2 = nondet();
int v3 = nondet();
int v4 = nondet();
goto loc_4;
loc_4:
 if (nondet_bool()) {
  goto loc_2;
 }
 goto end;
loc_CP_0:
 if (nondet_bool()) {
  v2 = 1+v2;
  v3 = 1+v3;
  v4 = -1+v4;
  goto loc_1;
 }
 goto end;
loc_1:
 if (nondet_bool()) {
  goto loc_CP_0;
 }
 goto end;
loc_2:
 if (nondet_bool()) {
  if (!( -1*v2+v3 <= 0 )) goto end;
  v1 = nondet();
  goto loc_3;
 }
 if (nondet_bool()) {
  if (!( 0 <= -1-v2+v3 )) goto end;
  if (!( -1*v3+v4 <= 0 )) goto end;
  v1 = nondet();
  goto loc_3;
 }
 if (nondet_bool()) {
  if (!( 0 <= -1-v2+v3 )) goto end;
  if (!( 0 <= -1-v3+v4 )) goto end;
  if (!( 0 <= -1-v2+v4 )) goto end;
  v1 = nondet();
  goto loc_3;
 }
 if (nondet_bool()) {
  if (!( 0 <= -1-v2+v3 )) goto end;
  if (!( 0 <= -1-v3+v4 )) goto end;
  if (!( -1*v2+v4 <= 0 )) goto end;
  goto loc_CP_0;
 }
 goto end;
loc_3:
end:
;
}
Esempio n. 23
0
int analyze_this()
{
  char *p_char=malloc(sizeof(char));
  int *p_int=malloc(sizeof(int));
  void *p;
  
  p=nondet_bool()?p_char:p_int;

  p_int=p;
  
  // this should fail, as a char is too small
  *p_int=1;
}
Esempio n. 24
0
int main() {
int v1 = nondet();
int v2 = nondet();
goto loc_4;
loc_4:
 if (nondet_bool()) {
  goto loc_3;
 }
 goto end;
loc_CP_2:
 if (nondet_bool()) {
  goto loc_0;
 }
 goto end;
loc_0:
 if (nondet_bool()) {
  if (!( 50 <= v1 )) goto end;
  goto loc_1;
 }
 if (nondet_bool()) {
  if (!( 1+v1 <= 50 )) goto end;
  v1 = 1+v1;
  goto loc_CP_2;
 }
 goto end;
loc_3:
 if (nondet_bool()) {
  v1 = 0;
  v2 = nondet();
  v1 = 0;
  goto loc_CP_2;
 }
 goto end;
loc_1:
end:
;
}
Esempio n. 25
0
int main() {
int v1 = nondet();
goto loc_3;
loc_3:
 if (nondet_bool()) {
  goto loc_2;
 }
 goto end;
loc_CP_1:
 if (nondet_bool()) {
  v1 = 400+v1;
  if (!( 101 <= v1 )) goto end;
  goto loc_0;
 }
 goto end;
loc_0:
 if (nondet_bool()) {
  v1 = 300+v1;
  if (!( 101 <= v1 )) goto end;
  goto loc_CP_1;
 }
 goto end;
loc_2:
 if (nondet_bool()) {
  v1 = 200+v1;
  if (!( 101 <= v1 )) goto end;
  goto loc_0;
 }
 if (nondet_bool()) {
  v1 = 100+v1;
  if (!( 101 <= v1 )) goto end;
  goto loc_CP_1;
 }
 goto end;
end:
;
}
Esempio n. 26
0
int main() {
int v1 = nondet();
int v2 = nondet();
int v3 = nondet();
goto loc_4;
loc_4:
 if (nondet_bool()) {
  goto loc_3;
 }
 goto end;
loc_CP_0:
 if (nondet_bool()) {
  if (!( v2 <= 0 )) goto end;
  v1 = nondet();
  goto loc_1;
 }
 if (nondet_bool()) {
  if (!( 0 <= -1+v2 )) goto end;
  if (!( v3 <= 0 )) goto end;
  v1 = nondet();
  goto loc_1;
 }
 if (nondet_bool()) {
  if (!( 0 <= -1+v2 )) goto end;
  if (!( 0 <= -1+v3 )) goto end;
  if (!( v2+v3 <= 0 )) goto end;
  v1 = nondet();
  goto loc_1;
 }
 if (nondet_bool()) {
  if (!( 0 <= -1+v2 )) goto end;
  if (!( 0 <= -1+v3 )) goto end;
  if (!( 0 <= -1+v2+v3 )) goto end;
  v2 = -2+v3;
  v3 = 1+v2;
  goto loc_2;
 }
 goto end;
loc_2:
 if (nondet_bool()) {
  goto loc_CP_0;
 }
 goto end;
loc_3:
 if (nondet_bool()) {
  goto loc_CP_0;
 }
 goto end;
loc_1:
end:
;
}
Esempio n. 27
0
int main() {
int v1 = nondet();
int v2 = nondet();
int v3 = nondet();
goto loc_3;
loc_3:
 if (nondet_bool()) {
  goto loc_2;
 }
 goto end;
loc_CP_1:
 if (nondet_bool()) {
  if (!( 0 <= v1 )) goto end;
  if (!( v2 <= v3 )) goto end;
  goto loc_0;
 }
 goto end;
loc_0:
 if (nondet_bool()) {
  v2 = -1+v2;
  v3 = v2+v3;
  goto loc_CP_1;
 }
 if (nondet_bool()) {
  v1 = -1+v1;
  v2 = -1+v2;
  goto loc_CP_1;
 }
 goto end;
loc_2:
 if (nondet_bool()) {
  goto loc_CP_1;
 }
 goto end;
end:
;
}
Esempio n. 28
0
int main() {
int v1 = nondet();
int v2 = nondet();
goto loc_3;
loc_3:
 if (nondet_bool()) {
  goto loc_2;
 }
 goto end;
loc_CP_1:
 if (nondet_bool()) {
  v2 = -1+v2;
  goto loc_0;
 }
 if (nondet_bool()) {
  v1 = -1+v1;
  goto loc_0;
 }
 goto end;
loc_0:
 if (nondet_bool()) {
  if (!( 1 <= v1 )) goto end;
  if (!( 1 <= v2 )) goto end;
  goto loc_CP_1;
 }
 goto end;
loc_2:
 if (nondet_bool()) {
  if (!( 1 <= v1 )) goto end;
  if (!( 1 <= v2 )) goto end;
  goto loc_CP_1;
 }
 goto end;
end:
;
}
Esempio n. 29
0
int main() {
int v1 = nondet();
int v2 = nondet();
goto loc_4;
loc_4:
 if (nondet_bool()) {
  goto loc_3;
 }
 goto end;
loc_CP_0:
 if (nondet_bool()) {
  if (!( 1+v1 <= 0 )) goto end;
  goto loc_1;
 }
 if (nondet_bool()) {
  if (!( 0 <= v1 )) goto end;
  v1 = v1-v2;
  goto loc_2;
 }
 goto end;
loc_2:
 if (nondet_bool()) {
  goto loc_CP_0;
 }
 goto end;
loc_3:
 if (nondet_bool()) {
  if (!( 1+v1+v2 <= 0 )) goto end;
  if (!( 1 <= v1 )) goto end;
  goto loc_CP_0;
 }
 goto end;
loc_1:
end:
;
}
Esempio n. 30
0
int main() {
int v1 = nondet();
int v2 = nondet();
goto loc_4;
loc_4:
 if (nondet_bool()) {
  goto loc_3;
 }
 goto end;
loc_CP_2:
 if (nondet_bool()) {
  v2 = 2+v2;
  v1 = 2+v2;
  goto loc_0;
 }
 goto end;
loc_0:
 if (nondet_bool()) {
  if (!( 20 <= v2 )) goto end;
  goto loc_1;
 }
 if (nondet_bool()) {
  if (!( 1+v2 <= 20 )) goto end;
  goto loc_CP_2;
 }
 goto end;
loc_3:
 if (nondet_bool()) {
  v2 = 0;
  goto loc_CP_2;
 }
 goto end;
loc_1:
end:
;
}